* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    /* Allow content to dictate height */
    font-family: 'Quicksand', sans-serif;
    background: #F0FDFB;
    color: #1E203B;
    touch-action: pan-y;
    /* Allow vertical scrolling */
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    transition: background 0.3s;
}

body.theater-mode {
    background: #000;
}

body.theater-mode #global-header,
body.theater-mode #global-footer {
    display: none;
}

body.theater-mode #app-content {
    height: 100vh !important;
}

/* --- Layout --- */
#app-content {
    position: relative;
    flex: none;
    /* Changed from 1 to avoid forcing layout if page scrolls */
    width: 95%;
    /* Make it look contained */
    max-width: 1400px;
    height: 70vh;
    /* Consistent initial height */
    margin: 20px auto;
    /* Centered in page */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(42, 192, 166, 0.15), 0 0 0 10px rgba(255, 255, 255, 0.5);
    /* Frame look */
    border: 1px solid rgba(42, 192, 166, 0.2);
    transition: all 0.4s ease;
}

/* --- Header --- */
#global-header {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 192, 166, 0.1);
    z-index: 1000;
    padding: 15px 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-text {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #2AC0A6 0%, #8D7BE3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

/* Navigation */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links a {
    color: rgba(30, 32, 59, 0.6);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2AC0A6;
    transform: translateY(-2px);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background: #2AC0A6;
    transition: 0.3s;
}

/* --- Footer --- */
#global-footer {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(42, 192, 166, 0.1);
    z-index: 1000;
    padding: 30px 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h3 {
    font-family: 'Fredoka', sans-serif;
    color: #1E203B;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    color: rgba(30, 32, 59, 0.7);
    font-size: 0.85rem;
    margin: 8px 0;
    line-height: 1.5;
}

.footer-section i {
    width: 20px;
    color: #2AC0A6;
}

.highlight {
    color: #ff3c3c !important;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(42, 192, 166, 0.1);
    border-radius: 50%;
    color: #2AC0A6;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: #2AC0A6;
    color: #fff;
    transform: translateY(-3px) scale(1.1);
}

/* Glass Modal Styling */
.glass-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.glass-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    /* Ensure modal fits on screen */
    overflow-y: auto;
    /* Enable vertical scroll if content is tall */
    padding: 40px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 25px 50px -12px rgba(42, 192, 166, 0.2);
    color: #1E203B;
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(42, 192, 166, 0.2);
    border-radius: 3px;
}


.glass-modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(42, 192, 166, 0.2);
    border-radius: 50%;
    color: #1E203B;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.close-modal:hover {
    background: #FF5E5E;
    /* Friendly red for closing */
    color: #fff;
    transform: rotate(90deg) scale(1.1);
    border-color: transparent;
}


.modal-body {
    text-align: center;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(141, 123, 227, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #8D7BE3;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.modal-body h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: #1E203B;
    margin-bottom: 20px;
}

.modal-body p {
    color: rgba(30, 32, 59, 0.7);
    line-height: 1.7;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 12px;
    }

    .modal-content {
        padding: 30px 20px;
        /* More space on mobile */
    }
}

.feature {
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(42, 192, 166, 0.1);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature i {
    font-size: 1.5rem;
    color: #8D7BE3;
    margin-bottom: 12px;
}

.feature h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    color: #1E203B;
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #2AC0A6 0%, #8D7BE3 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Gallery Modal */
.gallery-modal {
    max-width: 750px;
    max-height: 80vh;
    overflow-y: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

/* ─── Firefox Compatibility ─── */
/* Firefox doesn't support backdrop-filter well — provide solid fallbacks */
@supports not (backdrop-filter: blur(10px)) {
    #global-header {
        background: rgba(255, 255, 255, 0.95);
    }

    #global-footer {
        background: rgba(255, 255, 255, 0.95);
    }

    .glass-modal {
        background: rgba(255, 255, 255, 0.85);
    }

    .modal-content {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-links {
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/* Firefox logo text fallback */
@-moz-document url-prefix() {
    .logo-text {
        color: #2AC0A6;
        -webkit-text-fill-color: unset;
        background: none;
    }
}

/* ─── Floating Call FAB ─── */
#call-fab {
    position: fixed;
    /* Global floating */
    bottom: 20px;
    left: 20px;
    z-index: 2500;
    /* Above header/footer */
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
}

#call-fab-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fab-pulse 1.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

#call-fab-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

#call-fab-toggle i {
    font-size: 1.1rem;
}

@keyframes fab-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 4px 35px rgba(37, 211, 102, 0.8), 0 0 0 15px rgba(37, 211, 102, 0.2);
    }
}

.call-fab-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(42, 192, 166, 0.1);
    border-radius: 16px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#call-fab.open .call-fab-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.call-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #1E203B;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s;
}

.call-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.call-link i {
    width: 18px;
    color: #25d366;
    font-size: 1rem;
}

.whatsapp-link {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2px;
    padding-top: 12px;
}

/* Footer clickable links */
.footer-link {
    color: rgba(30, 32, 59, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Firefox vertical range slider fix */
@-moz-document url-prefix() {
    .scroll-bar.vertical {
        writing-mode: bt-lr;
        -webkit-appearance: slider-vertical;
        appearance: slider-vertical;
        width: 28px;
    }
}

/* Viewer Controls & Resizer */
#viewer-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

#theater-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: #1E203B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#theater-toggle:hover {
    background: #2AC0A6;
    color: #fff;
    transform: scale(1.1);
}

#viewer-resizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16px;
    cursor: ns-resize;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

#viewer-resizer:hover {
    background: rgba(42, 192, 166, 0.1);
}

.resizer-knob {
    width: 40px;
    height: 4px;
    background: rgba(30, 32, 59, 0.2);
    border-radius: 2px;
}

#viewer-resizer:hover .resizer-knob {
    background: #2AC0A6;
}

#viewer {
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    /* Allow page scroll start on viewer */
}

#viewer canvas {
    display: block;
    touch-action: pan-y;
    /* Allow scrolling on canvas */
}

#ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #1E203B;
    pointer-events: none;
    z-index: 10;
}

h1 {
    margin: 0;
    font-weight: 300;
    font-size: 1.5rem;
}

/* Premium Loading Screen */
#loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0FDFB;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#loader.visible {
    opacity: 1;
    visibility: visible;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.bubbly-loader {
    position: relative;
    width: 120px;
    height: 120px;
}

.bubble-main {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2AC0A6 0%, #8D7BE3 100%);
    border-radius: 50%;
    margin: 20px;
    animation: bubble-float 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(42, 192, 166, 0.3);
}

.bubble-mini {
    position: absolute;
    width: 25px;
    height: 25px;
    background: rgba(141, 123, 227, 0.4);
    border-radius: 50%;
    top: 10px;
    right: 10px;
    animation: bubble-pop 4s ease-in-out infinite;
}

.bubble-mini:last-child {
    width: 15px;
    height: 15px;
    background: rgba(42, 192, 166, 0.4);
    top: auto;
    bottom: 20px;
    left: 10px;
    animation-delay: 1.5s;
}

.loader-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loader-text .brand {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #2AC0A6 0%, #8D7BE3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.loader-text .status {
    font-size: 1.1rem;
    color: rgba(30, 32, 59, 0.6);
    font-weight: 500;
    animation: pulse-text 2s infinite;
}

@keyframes bubble-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes bubble-pop {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    33% {
        transform: translate(10px, -20px) scale(1.2);
        opacity: 0.8;
    }

    66% {
        transform: translate(-10px, -10px) scale(0.8);
        opacity: 0.3;
    }
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Map Container */
#map-container {
    position: fixed;
    /* Global floating */
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(42, 192, 166, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(42, 192, 166, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2500;
    /* High but below modal */
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

#map-container:active {
    cursor: grabbing;
}

#map-container.dragging {
    transition: none;
    opacity: 0.8;
    box-shadow: 0 15px 40px rgba(42, 192, 166, 0.3);
}

#map-container.minimized {
    width: 350px;
    max-width: 45vw;
    height: 250px;
    max-height: 35vh;
}

#map-container.maximized {
    width: 96vw;
    height: 96vh;
    bottom: 2vh;
    right: 2vw;
}

/* Toggle Button */
#map-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 6px;
    color: black;
    padding: 6px 10px;
    cursor: pointer;
    z-index: 110;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.2s;
    touch-action: manipulation;
}

#map-toggle:hover {
    background: rgba(255, 255, 255, 1);
}

#map-toggle:active {
    transform: scale(0.95);
}

/* Map Content */
#map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#map-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Hotspots */
#hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hotspot {
    position: absolute;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0;
    overflow: hidden;
    animation: hotspot-pulse 3s infinite;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hotspot:hover,
.hotspot:active {
    background: rgba(141, 123, 227, 0.15);
    box-shadow: inset 0 0 12px rgba(141, 123, 227, 0.6);
}

@keyframes hotspot-pulse {
    0% {
        box-shadow: inset 0 0 0 0 rgba(0, 255, 255, 0);
        transform: scale(1);
    }

    50% {
        box-shadow: inset 0 0 18px 6px rgba(141, 123, 227, 0.7), 0 0 12px 2px rgba(141, 123, 227, 0.35);
        transform: scale(1.08);
        background: rgba(141, 123, 227, 0.08);
    }

    100% {
        box-shadow: inset 0 0 0 0 rgba(0, 255, 255, 0);
        transform: scale(1);
    }
}

/* Scroll Bar Navigation */
#scroll-nav {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.scroll-bar {
    position: absolute;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    opacity: 0.5;
    transition: opacity 0.3s;
    touch-action: none;
}

.scroll-bar:hover,
.scroll-bar:active {
    opacity: 0.85;
}

/* Horizontal scroll bar — bottom center */
.scroll-bar.horizontal {
    bottom: 12px;
    left: 10%;
    width: 80%;
    height: 28px;
}

/* Vertical scroll bar — right side */
.scroll-bar.vertical {
    right: 12px;
    top: 10%;
    height: 80%;
    width: 28px;
    writing-mode: vertical-lr;
    direction: rtl;
    /* so top = up, bottom = down */
}

/* Track styling */
.scroll-bar::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.scroll-bar.vertical::-webkit-slider-runnable-track {
    width: 6px;
    height: auto;
    border-radius: 3px;
}

/* Thumb styling */
.scroll-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #8D7BE3;
    border: 2px solid #fff;
    cursor: grab;
    box-shadow: 0 4px 10px rgba(141, 123, 227, 0.3);
}

.scroll-bar.horizontal::-webkit-slider-thumb {
    margin-top: -11px;
    /* Center horizontal thumb */
}

.scroll-bar.vertical::-webkit-slider-thumb {
    margin-left: -11px;
    /* Center vertical thumb rotated by vertical-lr */
    margin-top: 0;
}


.scroll-bar::-webkit-slider-thumb:active {
    background: #2AC0A6;
    cursor: grabbing;
    transform: scale(1.15);
}

/* Firefox */
.scroll-bar::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.scroll-bar::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #8D7BE3;
    border: 2px solid #fff;
    cursor: grab;
    box-shadow: 0 4px 10px rgba(141, 123, 227, 0.3);
}

/* ============ RESPONSIVE ============ */

/* Tablets */
@media (max-width: 1024px) {
    #map-container.minimized {
        width: 320px;
        max-width: 50vw;
        height: 220px;
    }

    h1 {
        font-size: 1.3rem;
    }
}

/* Phones */
@media (max-width: 768px) {
    #global-header {
        padding: 10px 20px;
        z-index: 2000;
        /* Ensure header stays on top */
    }

    #global-footer {
        padding: 10px 20px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        z-index: 1500;
        /* Higher than map (100) */
    }

    .nav-links.active {
        max-height: 400px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(42, 192, 166, 0.05);
    }

    .nav-links li a {
        display: block;
        padding: 18px;
        font-size: 1rem;
    }

    #ui-overlay {
        top: 12px;
        left: 12px;
    }

    h1 {
        font-size: 1.1rem;
    }

    #map-container {
        bottom: 10px;
        right: 10px;
    }

    #map-container.minimized {
        width: 240px;
        max-width: 65vw;
        height: 180px;
        max-height: 30vh;
    }

    #map-container.maximized {
        width: 98vw;
        height: 80vh;
        bottom: 1vh;
        right: 1vw;
    }

    #map-toggle {
        padding: 5px 8px;
        font-size: 0.7rem;
        top: 5px;
        right: 5px;
    }

    .scroll-bar.horizontal {
        bottom: 12px;
        left: 5%;
        width: 60%;
        /* Avoid overlapping map on right */
    }

    .scroll-bar.vertical {
        right: 8px;
        top: 5%;
        height: 50%;
        /* Shorter on mobile */
    }

    .scroll-bar::-webkit-slider-thumb {
        width: 34px;
        height: 34px;
        margin-top: -14px;
    }

    .scroll-bar::-moz-range-thumb {
        width: 30px;
        height: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-content {
        padding: 25px;
    }

    .modal-body h2 {
        font-size: 1.4rem;
    }

    .gallery-modal {
        max-height: 75vh;
    }

    #call-fab {
        bottom: 12px;
        left: 12px;
        cursor: pointer;
        user-select: none;
        touch-action: manipulation;
    }

    #call-fab.dragging {
        transition: none;
        opacity: 0.8;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .social-links {
        justify-content: center;
        gap: 15px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    #map-container.minimized {
        width: 180px;
        max-width: 55vw;
        height: 140px;
        max-height: 25vh;
        bottom: 8px;
        right: 8px;
    }

    #map-container.maximized {
        width: 98vw;
        height: 85vh;
        bottom: 1vh;
        right: 1vw;
    }

    h1 {
        font-size: 0.95rem;
    }

    #map-toggle {
        font-size: 0.65rem;
        padding: 4px 7px;
    }

    .scroll-bar.horizontal {
        bottom: 10px;
        left: 4%;
        width: 55%;
    }

    .scroll-bar.vertical {
        right: 6px;
        top: 5%;
        height: 45%;
    }

    .scroll-bar::-webkit-slider-thumb {
        width: 38px;
        height: 38px;
        margin-top: -16px;
    }

    .scroll-bar::-moz-range-thumb {
        width: 34px;
        height: 34px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #call-fab {
        bottom: 10px;
        left: 10px;
    }

    #call-fab-toggle {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .fab-label {
        display: none;
    }

    .call-fab-panel {
        min-width: 170px;
    }

    .call-link {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
}