html,
body {
    overflow: hidden !important;
    height: 100% !important;
}

[v-cloak] {
    display: none !important;
}

.fade-slide-enter-active,
.fade-slide-leave-active {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-fade-right-enter-active,
.slide-fade-right-leave-active {
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.slide-fade-right-enter-from,
.slide-fade-right-leave-to {
    opacity: 0;
    transform: translateX(10px) scale(0.9);
}

.fade-slide-enter-from {
    opacity: 0;
    transform: translateX(30px);
}

.fade-slide-leave-to {
    opacity: 0;
    transform: translateX(-30px);
}

.slide-up-enter-active,
.slide-up-leave-active {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-up-enter-from,
.slide-up-leave-to {
    transform: translateY(100%);
}

#mobile-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(85vh - 30px);
    z-index: 2000;
    background: white;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.08);
    /* Lighter shadow for perf */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    will-change: transform;
    transform: translate3d(0, 100%, 0);
    backface-visibility: hidden;
    perspective: 1000;
    contain: strict;
}

/* Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Marker Performance */
.bodu-marker-icon {
    will-change: transform;
    transform: translateZ(0);
}

.marker-pill {
    will-change: transform, opacity;
}

/* Filter Hub Mobile */
.md\:hidden.absolute.top-4 {
    pointer-events: none;
    /* Let clicks pass through to map between buttons */
}

.md\:hidden.absolute.top-4>* {
    pointer-events: auto;
}

/* Hide mobile sheet on desktop strictly */
@media (min-width: 768px) {
    #mobile-sheet {
        display: none !important;
    }
}

.sheet-full {
    transform: translateY(0);
}

.sheet-peek {
    transform: translateY(40vh);
}

.sheet-collapsed {
    transform: translateY(calc(85vh - 30px - 70px));
}

.metro-pin {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.marker-pill {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 999px;
    padding: 3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center bottom;
    border: 2px solid white;
    overflow: hidden;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
}

.marker-pill:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.marker-pill.selected {
    max-width: 48px;
    min-width: 48px;
    z-index: 1000;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: white;
}

.marker-pill-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hall (Salon) Styles */
.type-hall .marker-pill-icon {
    background: linear-gradient(135deg, #8A2BE2, #4B0082);
}

.marker-pill.selected.type-hall {
    background: linear-gradient(to right, #ffffff, #f5f0ff);
    border-color: #8A2BE2;
}

.marker-event-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #F48C06;
    color: white;
    font-size: 9px;
    font-weight: 900;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 10px rgba(244, 140, 6, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
}

.marker-pill.selected.type-restaurant {
    background: linear-gradient(to right, #ffffff, #fff0f6);
    border-color: #F72585;
}

.marker-pill.selected.type-attraction {
    background: linear-gradient(to right, #ffffff, #f0f9ff);
    border-color: #4CC9F0;
}

.marker-pill.selected.type-hotel {
    background: linear-gradient(to right, #ffffff, #f5f3ff);
    border-color: #7209B7;
}

.marker-pill.selected.type-club {
    background: linear-gradient(to right, #ffffff, #f5f3ff);
    border-color: #560BAD;
}

.marker-pill.selected.type-concert {
    background: linear-gradient(to right, #ffffff, #fff7ed);
    border-color: #F48C06;
}

.marker-pill.selected.type-hall {
    background: linear-gradient(to right, #ffffff, #f5f0ff);
    border-color: #8A2BE2;
}

/* Category Gradients */
.type-restaurant .marker-pill-icon {
    background: linear-gradient(135deg, #F72585, #B5179E);
}

.type-attraction .marker-pill-icon {
    background: linear-gradient(135deg, #4CC9F0, #4361EE);
}

.type-hotel .marker-pill-icon {
    background: linear-gradient(135deg, #7209B7, #560BAD);
}

.type-club .marker-pill-icon {
    background: linear-gradient(135deg, #560BAD, #3A0CA3);
}

.type-concert .marker-pill-icon {
    background: linear-gradient(135deg, #F48C06, #DC2F02);
}

.type-hall .marker-pill-icon {
    background: linear-gradient(135deg, #8A2BE2, #5F26A3);
}

/* Marker Label UI (If enabled in future) */
.marker-label span {
    white-space: nowrap;
}

.marker-label span {
    white-space: nowrap;
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .7;
    }
}

/* Marker Cluster Custom Design */
.bodu-cluster {
    background: white;
    border: 2px solid white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    min-width: 45px;
    min-height: 45px;
}

.cluster-summary {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.summary-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.bg-attraction {
    background: #00B4D8;
}

.bg-hotel {
    background: #9D4EDD;
}

.bg-restaurant {
    background: #F72585;
}

.bg-club {
    background: #7209B7;
}

.bg-hall {
    background: #8A2BE2;
}

.bg-concert {
    background: #F48C06;
}

/* Fix Sidebar Z-Index and Alignment */
#explorer-sidebar {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#explorer-sidebar.closed {
    transform: translateX(calc(100% + 40px));
}



/* Modal Styling (Old if still used, but we moved to sidebar) */
.poi-detail-modal {
    backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.4);
}

/* Skeletons */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

#map-loading {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    padding: 8px 16px;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: bold;
    color: #4b5563;
}

#map-loading.active {
    display: flex;
}

.spinner-s {
    width: 14px;
    height: 14px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #F48C06;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Map Watermark Layer */
.map-watermark {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Above map tiles, below markers/controls */
    pointer-events: none;
    opacity: 0.02;
    filter: grayscale(1);
    background-image: url('https://borodubai.com/wp-content/uploads/2025/06/cropped-Asset-74@1.5x-100.webp');
    background-size: 100px;
    background-repeat: repeat;
    transform: rotate(-20deg) scale(1.2);
}

.marker-pin {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

#mobile-sheet {
    touch-action: pan-y;
}

.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

#mobile-detail-actions {
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1010;
}

#mobile-detail-actions a,
#mobile-detail-actions button {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#mobile-detail-actions .action-icon-btn {
    width: 52px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    color: #64748b;
}

#mobile-detail-actions .action-main-btn {
    flex: 1;
    background: #093E51;
    color: white;
    font-weight: 800;
    border-radius: 16px;
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(9, 62, 81, 0.1);
}

/* POI Card Gallery & Video Styles */
.poi-card img {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.poi-card:hover img {
    transform: scale(1.05);
}

.poi-card .gallery-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.poi-card .gallery-thumb:hover {
    transform: translateY(-3px) scale(1.1);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.video-btn-badge {
    animation: video-glow 2s infinite;
}

@keyframes video-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 140, 6, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(244, 140, 6, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 140, 6, 0);
    }
}


/* --- Leaflet MarkerCluster Local Styles --- */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
    -webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;
    -moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;
    -o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;
    transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}

.leaflet-cluster-spider-leg {
    -webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;
    -moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;
    -o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;
    transition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;
}

.marker-cluster-small {
    background-color: rgba(181, 226, 140, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-medium {
    background-color: rgba(241, 211, 87, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(240, 194, 12, 0.6);
}

.marker-cluster-large {
    background-color: rgba(253, 156, 115, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(241, 128, 23, 0.6);
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.marker-cluster span {
    line-height: 30px;
}

/* Toast Notification */
#bodu-toast {
    position: fixed;
    top: 110px;
    /* Default below header */
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 10000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 90vw;
    white-space: normal;
    text-align: right;
    direction: rtl;
    transform: translateX(-50%) translateY(-20px);
    visibility: hidden;
}

#bodu-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Adjust Toast when Map is Full Screen (Header Hidden) */
body.map-full-mode #bodu-toast {
    top: 30px;
}

/* Material Symbols Fill */
.material-symbols-outlined.fill {
    font-variation-settings: 'FILL' 1;
}

/* Mosaic Gallery Styles */
#main-gallery-img {
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.gallery-thumb-swap {
    cursor: pointer;
}

.gallery-thumb-swap:active {
    transform: scale(0.95);
}