/*
 * header styles — estratto 1:1 da header.php (blocco <style> A, incondizionato). Fase 6.
 */
        body { font-family: var(--bon-font); }
        .rounded-2xl { border-radius: 0.3rem !important; }
        .glass { background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(40px); border-bottom: 1px solid rgba(0,0,0,0.05); }
        .glass-panel { background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(40px); border: 1px solid rgba(255, 255, 255, 0.3); }

        .dark .glass { background: rgba(5, 5, 5, 0.88); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
        .dark .glass-panel { background: rgba(5, 5, 5, 0.88); border: 1px solid rgba(255, 255, 255, 0.05); }
        .post-content img { max-width: 100%; height: auto; margin: 2.5rem 0; border-radius: 2rem; box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1); }
        .active-filter { background: #dc2626 !important; color: white !important; box-shadow: 0 15px 25px -5px rgba(220, 38, 38, 0.4); }

        .post-card { transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
        .post-card:hover { transform: translateY(-15px); box-shadow: 0 40px 80px -20px rgba(0,0,0,0.08); }

        .list-view .posts-grid { grid-template-columns: 1fr !important; gap: 1rem; }
        .list-view .post-card { flex-direction: row; height: auto; min-height: 100px; padding: 1rem; box-shadow: none; border: none; border-bottom: 1px solid #f1f5f9; background: transparent; align-items: center; }
        .list-view .post-card:hover { transform: none; box-shadow: none; background: #fff; }
        .list-view .post-card .image-wrapper { width: 120px; height: 90px; border-radius: 1.5rem; flex-shrink: 0; }
        .list-view .post-card .content-wrapper { padding: 0 2rem; flex-grow: 1; flex-direction: row; align-items: center; display: flex; justify-content: justify-between; }
        .list-view .post-card h2 { font-size: 1.125rem; margin-bottom: 0; flex-grow: 1; line-clamp: 1; }
        .list-view .post-card .post-excerpt { display: none; }
        .list-view .post-card .meta-wrapper { margin-top: 0; padding-top: 0; border: none; width: auto; flex-shrink: 0; }

        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
        ::-webkit-scrollbar-thumb:hover { background: #dc2626; }

        .hero-gradient { background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.05), transparent 40%), radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.18), transparent 42%); }

        .is-mappa, .is-mappa body {
            height: 100vh;
            height: -webkit-fill-available;
            overflow: hidden;
            margin: 0;
            padding: 0;
        }
        .is-mappa #map-container {
            position: fixed;
            inset: 0;
            height: 100%;
            width: 100%;
            z-index: 0;
        }

        .py-2 { padding-top: 0rem; padding-bottom: 0rem; }
        .pt-12 { padding-top: 6rem; }

        @media (min-width: 768px) {
            .md\:text-8xl {
                font-size: 2rem !important;
                line-height: 1 !important;
            }
        }

        /* PANEL MODE STYLES */
        body.is-panel { background: #050505; }
        .panel-hidden { display: none !important; }

        .panel-logo { position: fixed; top: 1.5rem; left: 2rem; z-index: 200; height: 3rem; display: none; }
        .is-panel .panel-logo { display: block; }
        @media (min-width: 768px) {
            .is-panel .panel-logo { display: none !important; }
        }
        @media (max-width: 768px) {
            .is-mappa .panel-logo { display: none !important; }
        }
        .is-post-page .panel-logo { display: none !important; }

        .bottom-nav {
            position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%);
            z-index: 9999; width: auto;
        }
        .is-panel .bottom-nav {
            display: block;
        }
        .bottom-nav-inner {
            background: #050505;
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
            padding: 0.75rem;
            border-radius: 5rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 0.5rem;
        }
        .has-scroll-pad-page .bottom-nav {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .dark .bottom-nav-inner {
            background: #050505;
            border-color: rgba(255, 255, 255, 0.08);
            box-shadow: 0 50px 120px -20px rgba(0, 0, 0, 0.6);
        }

        .nav-item {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            padding: 0.8rem 2.5rem;
            border-radius: 4rem;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            color: rgba(255,255,255,0.4);
            text-decoration: none;
            position: relative;
            min-width: 160px;
        }
        .nav-item.active {
            background: #dc2626;
            color: white !important;
            box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.4);
        }
        .nav-item svg { width: 1.5rem; height: 1.5rem; }
        .nav-item span { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.15em; }

        /* Map specific controls in dock */
        .dock-divider { width: 1px; height: 2.5rem; background: rgba(255,255,255,0.1); margin: 0 0.5rem; }

        .dock-btn-group { display: flex; align-items: center; gap: 0.5rem; background: rgba(0,0,0,0.03); padding: 0.5rem; border-radius: 3rem; }
        .dark .dock-btn-group { background: rgba(255,255,255,0.03); }

        .style-btn-nav {
            padding: 0.9rem 2rem;
            border-radius: 2.5rem;
            font-size: 15px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(0,0,0,0.4);
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        .dark .style-btn-nav { color: rgba(255,255,255,0.4); }
        .style-btn-nav.active {
            background: white;
            color: #dc2626 !important;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }
        .dark .style-btn-nav.active {
            background: rgba(255,255,255,0.1);
            color: white !important;
        }

        .dock-control-btn {
            padding: 0.9rem;
            width: 4rem;
            height: 4rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 2rem;
            color: #475569;
            transition: all 0.2s ease;
        }
        .dark .dock-control-btn { color: #94a3b8; }
        .dock-control-btn:hover { background: rgba(0,0,0,0.05); color: #dc2626; }
        .dark .dock-control-btn:hover { background: rgba(255,255,255,0.05); color: white; }

        .post-scroll-pad {
            display: none;
            width: 6.75rem;
            height: 6.75rem;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            gap: 0.22rem;
            padding: 0.5rem;
            border-radius: 2rem;
            background: rgba(5,5,5,0.94);
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 28px 70px -24px rgba(0,0,0,0.72);
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
            touch-action: none;
            user-select: none;
        }
        .has-scroll-pad-page.has-active-scroll-pad .post-scroll-pad {
            display: grid;
        }
        .post-scroll-pad-btn {
            border: 0;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255,255,255,0.46);
            background: rgba(255,255,255,0.055);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015);
            transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
        }
        .post-scroll-pad-btn {
            cursor: pointer;
        }
        .post-scroll-pad-btn:hover,
        .post-scroll-pad-btn:focus-visible,
        .post-scroll-pad-btn.is-pressed {
            color: white;
            background: rgba(220,38,38,0.92);
            transform: scale(1.04);
            box-shadow: 0 8px 20px rgba(220,38,38,0.3);
            outline: none;
        }
        .post-scroll-pad-btn svg {
            width: 1.25rem;
            height: 1.25rem;
            stroke-width: 3;
        }
        .post-scroll-pad-up { grid-column: 2; grid-row: 1; }
        .post-scroll-pad-left { grid-column: 1; grid-row: 2; }
        .post-scroll-pad-right { grid-column: 3; grid-row: 2; }
        .post-scroll-pad-down { grid-column: 2; grid-row: 3; }

        .current-page-qr {
            display: none;
            width: 6.75rem;
            height: 6.75rem;
            flex: 0 0 6.75rem;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            padding: 0.55rem;
            border-radius: 1.65rem;
            background: rgba(5,5,5,0.94);
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 28px 70px -24px rgba(0,0,0,0.72);
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
            user-select: none;
        }
        .has-scroll-pad-page.has-active-scroll-pad .current-page-qr {
            display: flex;
        }
        .current-page-qr img {
            width: 4.75rem;
            height: 4.75rem;
            display: block;
            border-radius: 0.75rem;
            background: #fff;
            padding: 0.28rem;
        }
        .current-page-qr span {
            color: rgba(255,255,255,0.58);
            font-size: 0.52rem;
            font-weight: 900;
            letter-spacing: 0.12em;
            line-height: 1;
            text-transform: uppercase;
        }

        /* Big Close Button Overlay */
        .btn-dock-close {
            position: fixed;
            top: auto;
            left: 50%;
            bottom: var(--panel-close-bottom, 8.5rem);
            transform: translateX(-50%) scale(0);
            width: 4.25rem;
            height: 4.25rem;
            background: #dc2626;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 20px 40px rgba(220, 38, 38, 0.4);
            z-index: 10030;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            pointer-events: none;
            opacity: 0;
            border: 4px solid white;
        }
        .dark .btn-dock-close { border-color: #050505; }
        .modal-active #btn-esplora-dock {
            opacity: 0;
            pointer-events: none;
            transform: scale(0.5);
        }
        .modal-active #btn-dock-close {
            transform: translateX(-50%) scale(1);
            pointer-events: auto;
            opacity: 1;
        }
        .is-post-page #btn-dock-close {
            transform: translateX(-50%) scale(1);
            pointer-events: auto;
            opacity: 1;
        }

        @keyframes pulse-esplora {
            0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(220,38,38,0)); color: #64748b; }
            50% { transform: scale(1.1); filter: drop-shadow(0 -5px 15px rgba(220,38,38,0.5)); color: #dc2626; }
            100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(220,38,38,0)); color: #64748b; }
        }
        .dark .animate-invite {
            animation: pulse-esplora-dark 2s infinite ease-in-out;
        }
        @keyframes pulse-esplora-dark {
            0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(220,38,38,0)); color: #94a3b8; }
            50% { transform: scale(1.1); filter: drop-shadow(0 -5px 15px rgba(220,38,38,0.5)); color: #ef4444; }
            100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(220,38,38,0)); color: #94a3b8; }
        }
        .animate-invite {
            animation: pulse-esplora 2s infinite ease-in-out;
            color: #dc2626;
        }
        .modal-active .animate-invite {
            animation: none !important;
            transform: scale(0.5) !important;
        }

        @media (max-width: 768px) {
            .bottom-nav { right: auto; width: max-content; max-width: 95vw; }
            .nav-item { min-width: 50px; padding: 0.5rem 0.75rem; }
            .nav-item span { display: none; }
            .nav-item svg { margin-bottom: 0; width: 1.4rem; height: 1.4rem; }
            .style-btn-nav { padding: 0.5rem 0.75rem; font-size: 8px; }
            .dock-divider { margin: 0.25rem 0; }
            .hide-on-mobile-dock { display: none; }
            .has-scroll-pad-page .post-scroll-pad { display: none; }
            .has-scroll-pad-page .current-page-qr { display: none; }
        }

        /* DARK MODE GLOBAL STYLES */
        html.dark body { background-color: #0d131f !important; color: #f1f5f9; }
        .dark .bg-white { background-color: rgba(5, 5, 5, 0.92) !important; }
        .dark .bg-white { background-color: #050505 !important; }
        .dark .text-slate-900 { color: #f1f5f9 !important; }
        .dark .text-slate-800 { color: #e2e8f0 !important; }
        .dark .text-slate-700 { color: #cbd5e1 !important; }
        .dark .text-slate-600 { color: #94a3b8 !important; }
        .dark .bg-slate-100 { background-color: #050505 !important; }
        .dark .bg-slate-50 { background-color: #050505 !important; }
        .dark .border-slate-100 { border-color: rgba(255, 255, 255, 0.05) !important; }
        .dark .border-slate-50 { border-color: rgba(255, 255, 255, 0.03) !important; }
        .dark .post-card { background-color: #050505 !important; border-color: rgba(255, 255, 255, 0.08) !important; color: #f1f5f9 !important; }
        .dark .post-card:hover { background-color: #050505 !important; }
        .dark .post-card h2 { color: #f1f5f9 !important; }
        .dark .bg-emerald-50 { background-color: rgba(16, 185, 129, 0.1) !important; }
        .dark .text-emerald-600 { color: #34d399 !important; }
        .dark .hero-gradient { background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.12), transparent 40%), radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.45), transparent 42%); }
        .dark input { background-color: #050505 !important; border-color: rgba(255, 255, 255, 0.1) !important; color: white !important; }

        html.dark body.bon-white-content,
        body.bon-white-content {
            background: #ffffff !important;
            color: #0f172a !important;
        }
        body.bon-white-content.hero-gradient,
        .dark body.bon-white-content.hero-gradient {
            background: #ffffff !important;
        }
        html.dark body.bon-white-content .bg-white,
        body.bon-white-content .bg-white,
        html.dark body.bon-white-content .bg-slate-50,
        body.bon-white-content .bg-slate-50,
        html.dark body.bon-white-content .bg-slate-100,
        body.bon-white-content .bg-slate-100 {
            background-color: #ffffff !important;
        }
        body.bon-white-content .text-slate-900,
        html.dark body.bon-white-content .text-slate-900 {
            color: #050505 !important;
        }
        body.bon-white-content .text-slate-800,
        body.bon-white-content .text-slate-700,
        html.dark body.bon-white-content .text-slate-800,
        html.dark body.bon-white-content .text-slate-700 {
            color: #1f2937 !important;
        }
        body.bon-white-content .text-slate-600,
        body.bon-white-content .text-slate-500,
        body.bon-white-content .text-slate-400,
        html.dark body.bon-white-content .text-slate-600,
        html.dark body.bon-white-content .text-slate-500,
        html.dark body.bon-white-content .text-slate-400 {
            color: #64748b !important;
        }
        body.bon-white-content .post-card,
        html.dark body.bon-white-content .post-card {
            background: #ffffff !important;
            border-color: #e5e7eb !important;
            color: #0f172a !important;
            box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12) !important;
        }
        body.bon-white-content .post-card:hover,
        html.dark body.bon-white-content .post-card:hover {
            background: #ffffff !important;
            border-color: rgba(220, 38, 38, 0.28) !important;
            box-shadow: 0 26px 65px rgba(15, 23, 42, 0.16) !important;
        }
        body.bon-white-content .post-card h2,
        html.dark body.bon-white-content .post-card h2 {
            color: #050505 !important;
        }
        body.bon-white-content .post-card .post-excerpt {
            color: #475569 !important;
        }
        body.bon-white-content .post-card .bg-slate-900,
        body.bon-white-content .post-card .bg-slate-800 {
            background-color: #f1f5f9 !important;
        }
        body.bon-white-content .post-card .border-slate-600,
        body.bon-white-content .post-card .border-slate-700 {
            border-color: #cbd5e1 !important;
        }

        /* Floating Global Switcher */
        .global-switcher {
            position: fixed; top: 1.5rem; right: 2rem; z-index: 2000;
            display: flex; gap: 0.5rem;
        }
        .is-panel .global-switcher { top: 1.5rem; }

        /* Genie Category Menu Redesign */
        .genie-menu {
            position: fixed !important;
            bottom: 7rem;
            left: 5% !important;
            right: 5% !important;
            transform: none !important;
            width: auto !important;
            max-width: none !important;
            z-index: 900;
            transition: opacity 0.4s ease, transform 0.4s ease;
            background: #050505 !important;
            backdrop-filter: blur(30px) !important;
            -webkit-backdrop-filter: blur(30px) !important;
            border-radius: 1.75rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.4);
            padding-bottom: 0;
        }
        body.bon-mobile-navigation:not(.bon-kiosk-navigation) .genie-menu {
            background: #ffffff !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 -18px 48px rgba(15,23,42,0.18) !important;
        }
        /* mappa.php: genie menu overlay (scurito per maggiore leggibilità sulla mappa topografica) */
        .is-mappa .genie-menu {
            background: #050505 !important;
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
        }
        body.is-mappa.bon-mobile-navigation:not(.bon-kiosk-navigation) .genie-menu {
            background: #050505 !important;
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
            border-color: rgba(255, 255, 255, 0.08) !important;
            box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.4) !important;
        }
        .menu-hidden { opacity: 0 !important; pointer-events: none; transform: translateY(15px) !important; }
        .menu-visible { opacity: 1 !important; pointer-events: auto; transform: translateY(0) !important; }
        .category-bubble-grid {
            display: flex;
            gap: 1rem;
            padding: 0.5rem 1.5rem 0.75rem;
            width: auto;
            justify-content: center;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .category-bubble-grid::-webkit-scrollbar { display: none; }

        .cat-bubble-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            padding: 1.5rem;
            border-radius: 2.5rem;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            width: 190px;
            flex-shrink: 0;
        }
        .cat-bubble-btn svg {
            width: 3.5rem !important;
            height: 3.5rem !important;
            background: #ffffff;
            border-radius: 50%;
            padding: 0.85rem;
            color: #1e293b !important;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
            transition: all 0.3s ease;
        }
        .cat-bubble-btn span {
            font-size: 14px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255,255,255,0.75);
            text-shadow: 0 1px 8px rgba(0,0,0,0.6);
        }
        body.bon-mobile-navigation:not(.bon-kiosk-navigation) .cat-bubble-btn span {
            color: #0f172a !important;
            text-shadow: none !important;
        }
        body.bon-mobile-navigation:not(.bon-kiosk-navigation) .cat-bubble-btn:hover {
            background: #f8fafc;
        }
        body.bon-mobile-navigation:not(.bon-kiosk-navigation) .cat-bubble-btn.active {
            background: #dc2626 !important;
            border-color: #dc2626 !important;
        }
        body.bon-mobile-navigation:not(.bon-kiosk-navigation) .cat-bubble-btn.active span {
            color: #ffffff !important;
        }
        .cat-bubble-btn:hover { background: rgba(255, 255, 255, 0.05); transform: translateY(-10px); }
        .cat-bubble-btn.active { background: rgba(255, 255, 255, 0.1); border: 2px solid white; }
        .cat-bubble-btn.active span { color: white !important; }

        /* Genie Area Chips */
        .genie-area-chips {
            display: flex;
            gap: 0.4rem;
            padding: 0.6rem 1.5rem 0;
            overflow-x: auto;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            justify-content: center;
            flex-wrap: wrap;
        }
        .genie-area-chips::-webkit-scrollbar { display: none; }
        .area-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.5rem 1rem;
            border-radius: 9999px;
            font-size: 0.65rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #94a3b8;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            cursor: pointer;
            transition: all 0.25s;
            white-space: nowrap;
        }
        .area-chip:hover { color: white; background: rgba(255, 255, 255, 0.1); }
        .area-chip.active {
            color: white;
            background: #dc2626;
            border-color: #dc2626;
            box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
        }
        body.bon-mobile-navigation:not(.bon-kiosk-navigation) .area-chip {
            color: #0f172a;
            background: #f8fafc;
            border-color: #e2e8f0;
            box-shadow: 0 6px 18px rgba(15,23,42,0.06);
        }
        body.bon-mobile-navigation:not(.bon-kiosk-navigation) .area-chip:hover {
            color: #0f172a;
            background: #f1f5f9;
        }
        body.bon-mobile-navigation:not(.bon-kiosk-navigation) .area-chip.active {
            color: #ffffff;
            background: #dc2626;
            border-color: #dc2626;
            box-shadow: 0 10px 24px rgba(220,38,38,0.2);
        }
        body.bon-mobile-navigation:not(.bon-kiosk-navigation) .genie-separator {
            background: #e2e8f0;
        }
        .area-chip svg { width: 0.875rem; height: 0.875rem; }
        .genie-separator {
            height: 1px;
            margin: 0.35rem 1.5rem;
            background: rgba(255, 255, 255, 0.08);
        }

        @media (max-width: 640px) {
            .genie-area-chips {
                flex-wrap: nowrap;
                justify-content: flex-start;
                padding: 0.5rem 1rem 0;
            }
            .area-chip { font-size: 0.6rem; padding: 0.4rem 0.75rem; }
            .genie-menu { bottom: calc(5.5rem + 15px); left: 3% !important; right: 3% !important; border-radius: 1.25rem; }
            .cat-bubble-btn { min-width: unset; width: 100px; padding: 0.75rem 0.5rem; gap: 0.4rem; flex-shrink: 0; }
            .cat-bubble-btn svg { width: 1.75rem !important; height: 1.75rem !important; }
            .cat-bubble-btn span { font-size: 9px !important; line-height: 1.2; text-align: center; white-space: normal; }
            .category-bubble-grid { padding: 0.25rem 1rem 0.75rem; gap: 0.5rem; }
            .genie-separator { margin: 0.25rem 1rem; }

            .map-controls-panel {
                left: auto !important;
                right: -0.5rem !important;
                bottom: 110% !important;
            }
        }

        /* Map Controls Popup Panel */
        .map-controls-panel {
            position: absolute;
            bottom: 100%;
            margin-bottom: 2rem;
            left: 0;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(40px);
            border-radius: 3rem;
            padding: 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: 0 40px 100px -20px rgba(0,0,0,0.3);
            opacity: 0;
            transform: translateY(20px) scale(0.9);
            pointer-events: none;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            z-index: 1001;
        }
        .dark .map-controls-panel { background: #050505; border-color: rgba(255,255,255,0.1); }
        .map-controls-panel.visible {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        /* Language trigger/flyout: keep the menu above the navigation island. */
        #lang-menu-container {
            position: relative;
            z-index: 10080;
            isolation: isolate;
        }
        .lang-trigger-btn {
            width: 3.35rem;
            height: 3.35rem;
            border-radius: 9999px;
            background: rgba(148, 163, 184, 0.28);
            color: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(0,0,0,0.22);
            transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
        }
        .lang-trigger-btn:hover,
        .lang-trigger-btn.is-open {
            background: rgba(148, 163, 184, 0.42);
            color: #ffffff;
            transform: translateY(-1px);
        }
        .lang-trigger-btn svg {
            width: 1.95rem;
            height: 1.95rem;
            stroke-width: 1.45;
        }
        .lang-trigger-btn .translate-glyph {
            font-family: var(--bon-font);
            font-weight: 900;
            fill: currentColor;
            stroke: none;
        }
        #lang-flyout {
            z-index: 10090 !important;
            bottom: calc(100% + 1rem) !important;
            background: #050505 !important;
            border-color: rgba(255,255,255,0.12) !important;
            box-shadow: 0 22px 60px rgba(0,0,0,0.65) !important;
        }
        #lang-flyout.l-active {
            z-index: 10090 !important;
        }

        /* PWA Install Prompt */
        #pwa-install-banner {
            position: fixed;
            inset: 0;
            z-index: 10260;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.25rem;
            background: rgba(15, 23, 42, 0.42);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            pointer-events: none;
        }
        #pwa-install-banner.visible {
            display: flex;
            pointer-events: auto;
        }
        .pwa-install-card {
            width: min(360px, calc(100vw - 32px));
            border-radius: 28px;
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid rgba(255, 255, 255, 0.78);
            box-shadow: 0 28px 90px rgba(15, 23, 42, 0.34);
            padding: 1.25rem;
            color: #111827;
            font-family: var(--bon-font, 'Lato', sans-serif);
            transform: translateY(16px) scale(0.96);
            opacity: 0;
            animation: pwa-install-pop 0.34s ease forwards;
        }
        @keyframes pwa-install-pop {
            to { transform: translateY(0) scale(1); opacity: 1; }
        }
        .pwa-install-title {
            margin: 0 0 0.35rem;
            font-size: 1.2rem;
            font-weight: 900;
            letter-spacing: 0;
        }
        .pwa-install-copy {
            margin: 0 0 1rem;
            color: #475569;
            font-size: 0.92rem;
            font-weight: 700;
            line-height: 1.42;
        }
        .pwa-install-actions {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 0.65rem;
            align-items: center;
        }
        .pwa-install-primary,
        .pwa-install-secondary {
            min-height: 48px;
            border: 0;
            border-radius: 999px;
            font-family: var(--bon-font, 'Lato', sans-serif);
            font-weight: 900;
            cursor: pointer;
        }
        .pwa-install-primary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.55rem;
            padding: 0 1.1rem;
            background: #e11d2e;
            color: #ffffff;
            box-shadow: 0 14px 32px rgba(225, 29, 46, 0.28);
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }
        .pwa-install-primary svg {
            width: 20px;
            height: 20px;
        }
        .pwa-install-secondary {
            padding: 0 1rem;
            background: #f1f5f9;
            color: #475569;
        }
        @media (min-width: 768px) {
            #pwa-install-banner { display: none !important; }
        }

        /* HIDE GOOGLE TRANSLATE BANNER - comprehensive */
        .goog-te-banner-frame,
        .goog-te-banner-frame.skiptranslate,
        #\:1\.container,
        .skiptranslate > iframe { display: none !important; height: 0 !important; }
        body { top: 0 !important; position: static !important; }
        body.translated-rtl,
        body.translated-ltr { top: 0 !important; }
        .goog-logo-link { display: none !important; }
        .goog-te-gadget { color: transparent !important; font-size: 0 !important; }
