body {
    font-family: 'Inter', sans-serif;
}

#map {
    height: 100vh;
    width: 100vw;
    z-index: 10;
}

.modal-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none !important;
    visibility: hidden;
}
.modal-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    visibility: visible;
}

.custom-marker {
    border-radius: 9999px;
    padding: 6px;
    border: 2px solid white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-marker svg {
    width: 20px;
    height: 20px;
    color: white;
}
.camera-marker-icon {
    background: #2563eb;
}
.note-marker-icon {
    background: #f97316;
}
.audio-marker-icon {
    background: #3b82f6;
    font-size: 16px;
}

.image-marker-icon {
    width: 55px;
    height: 55px;
    border-radius: 9999px;
    border: 5px solid white;
    background-color: #eee;
    box-shadow: 6px 6px 15px 0px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.image-marker-icon img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
}

.youtube-marker {
    position: relative;
    width: 100%;
    height: 100%;
}

.youtube-marker img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.youtube-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.leaflet-control-attribution, .leaflet-control-custom {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}
.leaflet-control-custom {
    width: 34px !important;
    height: 34px !important;
}
.leaflet-control-custom a {
    color: black !important;
    background-color: transparent !important;
    border-radius: 6px;
}
.leaflet-control-custom a:hover {
    background-color: rgba(255, 255, 255, 0.4) !important;
}
.leaflet-control-attribution {
    padding: 2px 6px !important;
}
.leaflet-control-attribution a {
    color: #333 !important;
}

.leaflet-top, .leaflet-bottom {
    z-index: 1001 !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.leaflet-control-zoom a {
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    text-align: center;
    text-decoration: none;
    color: black !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}
.leaflet-control-zoom a:hover {
     background-color: rgba(255, 255, 255, 0.4) !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.leaflet-popup-content {
    margin: 12px !important;
    min-width: 150px;
}
.gallery-note-item {
    aspect-ratio: 1 / 1;
}

#bottom-sheet {
    transition: transform 0.3s ease-out;
    transform: translateY(100%);
}
#bottom-sheet.visible {
    transform: translateY(0);
}
#bottom-sheet-content {
    position: relative;
}
#bottom-sheet-content::-webkit-scrollbar {
    height: 6px;
}
#bottom-sheet-content::-webkit-scrollbar-track {
    background: transparent;
}
#bottom-sheet-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#notification-bar {
    top: 4.5rem;
    transform: scale(0.9) translateY(-150%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    z-index: 10000;
}
#notification-bar.visible {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.reaction-btn {
    transition: transform 0.2s ease;
}
.reaction-btn:hover {
    transform: scale(1.2);
}
.reaction-btn.selected {
    background-color: rgba(0, 123, 255, 0.2);
    border-radius: 9999px;
}