        :root {
            --safe-color: #10b981;
            --safe-light: #d1fae5;
            --caution-color: #f59e0b;
            --caution-light: #fef3c7;
            --risky-color: #ef4444;
            --risky-light: #fee2e2;
            
            --wind-color: #3b82f6;
            --wave-color: #06b6d4;
            --tide-color: #8b5cf6;
            
            --slate-900: #0f172a;
            --slate-700: #334155;
            --slate-600: #475569;
            --slate-500: #64748b;
            --slate-400: #94a3b8;
            --slate-300: #cbd5e1;
            --slate-200: #e2e8f0;
            --slate-100: #f1f5f9;
            --slate-50: #f8fafc;
            
            --bg-glass: rgba(255, 255, 255, 0.95);
            --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
            --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
            
            --primary-color: #3b82f6;
            --primary-light: #dbeafe;

            --ui-container-max: 1440px;
            --ui-gutter: clamp(12px, 2vw, 24px);
            --ui-gutter-lg: clamp(16px, 2.2vw, 32px);
            --ui-modal-pad: clamp(14px, 2.2vw, 32px);
            --ui-radius-lg: clamp(14px, 1.2vw, 20px);
            --ui-tap: 44px;
            --ui-panel-w: clamp(320px, 32vw, 420px);

            --ds-1: 4px;
            --ds-2: 8px;
            --ds-3: 12px;
            --ds-4: 16px;
            --ds-5: 24px;
            --ds-6: 32px;
            --ds-7: 48px;

            --ds-r-1: 10px;
            --ds-r-2: 14px;
            --ds-r-3: 18px;

            --ds-text-sm: 0.8125rem;
            --ds-text: 0.9375rem;
            --ds-text-lg: 1.0625rem;
            --ds-title: 1.125rem;
            --ds-lh: 1.45;

            --ds-border: rgba(15, 23, 42, 0.10);
            --ds-border-soft: rgba(15, 23, 42, 0.08);
            --ds-surface: rgba(255,255,255,0.92);
            --ds-surface-strong: rgba(255,255,255,0.96);
            --ds-shadow-1: 0 10px 26px rgba(2, 6, 23, 0.10);
            --ds-shadow-2: 0 18px 48px rgba(2, 6, 23, 0.14);
            --ds-ease: cubic-bezier(0.4, 0, 0.2, 1);
            --ds-dur: 180ms;
        }
        
        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }

        *, *::before, *::after { box-sizing: border-box; }
        html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; overflow-x: hidden; }
        body {
            margin: 0;
            padding: 0;
            font-family: 'Inter', sans-serif;
            overflow: hidden;
            height: 100%;
            overflow-x: hidden;
            -webkit-tap-highlight-color: transparent;
        }

        #map {
            height: 100vh;
            height: 100svh;
            height: 100dvh;
            width: 100%;
            z-index: 1;
            transition: width 0.25s ease-out;
            position: relative;
            -webkit-tap-highlight-color: transparent;
        }
        @media (max-width: 768px) {
            #map {
                padding-bottom: 64px;
            }
        }
        @media (min-width: 769px) {
            #map {
                padding-top: 56px;
            }
            .mc-top {
                top: calc(56px + env(safe-area-inset-top, 0px) + var(--ui-gutter));
            }
        }
        
        /* bay-panel overlay handles dimming — no extra tint needed */

        .header {
            position: absolute;
            top: 16px;
            left: 16px;
            z-index: 1000;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
        }
        
        .modern-header {
            z-index: 1000 !important;
        }

        .header-logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: opacity 0.2s ease;
            padding: 8px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .header-logo:hover {
            opacity: 0.9;
        }

        .header-logo img {
            height: 32px;
            width: auto;
            display: block;
        }

        @media (max-width: 768px) {
            .header {
                top: 10px;
                left: 10px;
            }
            
            .header-logo {
                padding: 6px;
            }
            
            .header-logo img {
                height: 24px;
            }
            
            .route-control-button {
                margin-top: 60px !important;
            }
            
            #route-planning-btn {
                padding: 10px 14px !important;
                font-size: 0.75rem !important;
            }
            
            .route-info-panel {
                top: 10px !important;
                right: 10px !important;
                left: 10px !important;
                max-width: none !important;
                padding: 16px !important;
            }
        }

        .custom-marker {
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            transition: all 0.2s ease-out;
            position: relative;
            width: 28px;
            height: 28px;
        }
        .marker-amenities {
            position: absolute;
            left: 30px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            gap: 1px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(4px);
            padding: 1px 3px;
            border-radius: 6px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
            border: 1px solid rgba(0,0,0,0.1);
            line-height: 1;
            white-space: nowrap;
            z-index: 1000;
            pointer-events: none;
        }
        .marker-amenities-icon {
            display: inline-block;
            font-size: 9px;
            line-height: 1;
        }
        .custom-marker:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
            z-index: 1000 !important;
        }
        .custom-marker.selected {
            transform: scale(1.1);
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
        }
        .marker-anchor {
            width: 14px;
            height: 14px;
            fill: white;
        }
        
        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            display: inline-block;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .dot.green { background: var(--safe-color); }
        .dot.yellow { background: var(--caution-color); }
        .dot.red { background: var(--risky-color); }

        .leaflet-popup-content-wrapper,
        .leaflet-pane,
        .leaflet-tile-pane {
            -webkit-tap-highlight-color: transparent;
        }
        .leaflet-popup-content-wrapper {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            padding: 0;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.5);
        }
        .leaflet-popup-content {
            margin: 0;
            width: 260px !important;
        }
        /* Marine marker popups - wider */
        .marine-marker + .leaflet-popup .leaflet-popup-content {
            width: 320px !important;
        }
        /* Spot popup - premium styling */
        .spot-popup-leaflet .leaflet-popup-content-wrapper {
            background: transparent;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            box-shadow: none;
            border: none;
            padding: 0;
        }
        .spot-popup-leaflet .leaflet-popup-content {
            width: auto !important;
            margin: 0;
            padding: 0;
        }
        .spot-popup-leaflet .leaflet-popup-tip {
            background: #ffffff;
            border: 1px solid rgba(15, 23, 42, 0.08);
        }
        .spot-popup-leaflet .leaflet-popup-close-button {
            width: 32px;
            height: 32px;
            font-size: 20px;
            line-height: 32px;
            color: #64748b;
            transition: all 0.2s;
            z-index: 1000;
            top: 12px;
            right: 12px;
        }
        .spot-popup-leaflet .leaflet-popup-close-button:hover {
            color: #0f172a;
            background: rgba(15, 23, 42, 0.06);
            border-radius: 8px;
        }
        .popup-header {
            padding: 15px 20px;
            background: white;
            border-bottom: 1px solid var(--slate-200);
            font-weight: 600;
            font-size: 1.125rem;
            color: var(--slate-900);
        }
        .popup-body {
            padding: 20px;
            font-size: 0.875rem;
            color: var(--slate-600);
            line-height: 1.6;
        }
        .popup-footer {
            padding: 12px 20px;
            background: var(--slate-50);
            border-top: 1px solid var(--slate-200);
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .popup-footer-row {
            display: flex;
            gap: 8px;
            width: 100%;
        }
        .btn-details {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 16px;
            background: var(--wind-color);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            transition: all 0.2s;
            box-shadow: var(--shadow-soft);
            border: none;
            cursor: pointer;
            flex: 1;
            text-align: center;
        }
        .btn-details:hover {
            background: #2563eb;
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }
        .btn-route {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 16px;
            background: var(--safe-color);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            transition: all 0.2s;
            box-shadow: var(--shadow-soft);
            cursor: pointer;
            border: none;
            flex: 1;
            text-align: center;
        }
        .btn-route:hover {
            background: #059669;
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }
        .btn-timeline {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 16px;
            background: var(--tide-color);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            transition: all 0.2s;
            box-shadow: var(--shadow-soft);
            cursor: pointer;
            border: none;
            flex: 1;
            text-align: center;
        }
        .btn-timeline:hover {
            background: #7c3aed;
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        .leaflet-routing-container {
            background: var(--bg-glass) !important;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            box-shadow: var(--shadow-soft) !important;
            padding: 15px !important;
            font-family: 'Inter', sans-serif;
            margin-right: 20px !important;
        }
        .leaflet-routing-alt {
            max-height: 200px;
            overflow-y: auto;
        }

        .timeline-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            padding: var(--ui-modal-pad);
            padding-top: calc(var(--ui-modal-pad) + env(safe-area-inset-top, 0px));
            padding-bottom: calc(var(--ui-modal-pad) + env(safe-area-inset-bottom, 0px));
        }
        .timeline-modal.active {
            display: flex;
            animation: tlBackdropIn .28s ease both;
        }
        .timeline-modal.active .timeline-content {
            animation: tlSheetIn .40s cubic-bezier(.22, 1, .36, 1) both;
        }
        @keyframes tlBackdropIn {
            from { background: rgba(0, 0, 0, 0); }
            to   { background: rgba(0, 0, 0, 0.3); }
        }
        @keyframes tlSheetIn {
            from { opacity: 0; transform: translateY(28px) scale(.985); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }
        @media (prefers-reduced-motion: reduce) {
            .timeline-modal.active,
            .timeline-modal.active .timeline-content { animation: none; }
        }
        /* Fishing-score ring: draws itself on open for a lively, professional feel */
        .tl-score-arc { animation: tlRingDraw 1.05s cubic-bezier(.22, 1, .36, 1) both; }
        @keyframes tlRingDraw { from { stroke-dashoffset: 220; } }
        @media (prefers-reduced-motion: reduce) { .tl-score-arc { animation: none; } }

        /* ── Tıklama kartı balık paneli — "Veri Panosu Pro" tasarımı ──────────── */
        .vp-root {
            --vp-ink: #0b0d12; --vp-ink2: #3a4453; --vp-ink3: #6b7686; --vp-ink4: #9aa4b2; --vp-ink5: #c3cad4;
            --vp-line: #e9edf2; --vp-line2: #f1f4f8; --vp-tint: #f7f9fb;
            --accent: #e08c0b; --accent-soft: #fcf3e1; --accent-deep: #a96506;
            --vp-mono: "SF Mono", ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
            color: var(--vp-ink);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            letter-spacing: -.011em; -webkit-font-smoothing: antialiased; display: block;
        }
        .vp-root * { box-sizing: border-box; }
        .vp-lbl { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--vp-ink4); }
        .vp-num { font-family: var(--vp-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
        .vp-score { display: flex; align-items: center; gap: 20px; padding: 2px 0 18px; }
        .vp-gauge { position: relative; width: 104px; height: 104px; flex: none; }
        .vp-gauge svg { width: 104px; height: 104px; transform: rotate(-90deg); }
        .vp-gauge .track { stroke: var(--vp-line); }
        .vp-gauge .fill { stroke: var(--accent); stroke-linecap: round; }
        .vp-gauge-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .vp-gauge-mid .v { font-family: var(--vp-mono); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 680; letter-spacing: -.04em; color: var(--vp-ink); line-height: 1; }
        .vp-gauge-mid .v sup { font-size: 15px; font-weight: 600; color: var(--vp-ink4); top: -.85em; margin-left: 1px; }
        .vp-gauge-mid .u { margin-top: 5px; font-size: 9px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--vp-ink4); }
        .vp-score-meta { flex: 1; min-width: 0; }
        .vp-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent-deep); font-size: 12px; font-weight: 650; }
        .vp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
        .vp-score-label { margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--vp-ink4); }
        .vp-score-title { margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--vp-ink2); line-height: 1.4; }
        .vp-conf { margin-top: 14px; display: flex; align-items: center; gap: 8px; }
        .vp-conf .bars { display: flex; gap: 3px; }
        .vp-conf .bars i { width: 3px; height: 12px; border-radius: 2px; background: var(--vp-ink2); }
        .vp-conf .bars i.off { background: var(--vp-line); }
        .vp-conf-txt { font-size: 11px; color: var(--vp-ink3); }
        .vp-conf-txt b { color: var(--vp-ink2); font-weight: 600; }
        .vp-reasons { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 18px; }
        .vp-rb { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--vp-line); border-radius: 8px; background: var(--vp-tint); font-size: 12px; font-weight: 500; color: var(--vp-ink2); }
        .vp-rb svg { width: 13px; height: 13px; color: var(--vp-ink3); flex: none; }
        .vp-grid { border-top: 1px solid var(--vp-line); border-bottom: 1px solid var(--vp-line); display: grid; grid-template-columns: 1fr 1fr; }
        .vp-cell { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
        .vp-cell:nth-child(odd) { border-right: 1px solid var(--vp-line); }
        .vp-cell:nth-child(n+3) { border-top: 1px solid var(--vp-line); }
        .vp-cell-top { display: flex; align-items: center; gap: 8px; }
        .vp-cell-top svg { width: 15px; height: 15px; color: var(--vp-ink4); flex: none; }
        .vp-cell-val { display: flex; align-items: baseline; gap: 4px; }
        .vp-cell-val .n { font-family: var(--vp-mono); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 620; letter-spacing: -.02em; color: var(--vp-ink); line-height: 1; }
        .vp-cell-val .un { font-size: 11px; font-weight: 550; color: var(--vp-ink3); }
        .vp-cell-val .tag { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--vp-ink3); }
        .vp-cell-val .tag svg { width: 12px; height: 12px; color: var(--vp-ink4); flex: none; }
        .vp-timing { padding: 4px 0; }
        .vp-trow { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
        .vp-trow + .vp-trow { border-top: 1px solid var(--vp-line2); }
        .vp-ticon { width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--vp-tint); border: 1px solid var(--vp-line); display: grid; place-items: center; color: var(--vp-ink3); }
        .vp-ticon svg { width: 16px; height: 16px; }
        .vp-ticon.hl { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
        .vp-tmain { flex: 1; min-width: 0; }
        .vp-tmain .k { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--vp-ink4); }
        .vp-tmain .v { margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--vp-ink); }
        .vp-tscore { flex: none; font-family: var(--vp-mono); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 650; letter-spacing: -.02em; color: var(--vp-ink3); text-align: right; }
        .vp-tscore.hl { color: var(--accent-deep); }
        .vp-tscore sup { font-size: 9px; color: var(--vp-ink4); font-weight: 600; top: -.6em; margin-left: 1px; }
        .vp-tscore small { display: block; font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--vp-ink4); margin-top: 2px; }
        .vp-chart { border-top: 1px solid var(--vp-line); padding: 16px 0 4px; }
        .vp-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
        .vp-legend { display: flex; align-items: center; gap: 14px; }
        .vp-leg { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 550; color: var(--vp-ink3); }
        .vp-leg .sw { width: 8px; height: 8px; border-radius: 2px; }
        .vp-leg .sw.now { background: var(--accent); }
        .vp-leg .sw.peak { background: var(--vp-ink2); }
        .vp-bars-wrap { position: relative; }
        .vp-bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 72px; }
        .vp-b { flex: 1; border: none; padding: 0; margin: 0; border-radius: 2px 2px 0 0; background: var(--vp-ink5); min-height: 2px; cursor: pointer; transition: opacity .12s; }
        .vp-b:hover { opacity: .6; }
        .vp-b.now { background: var(--accent); }
        .vp-b.peak { background: var(--vp-ink2); }
        .vp-nowline { position: absolute; top: -4px; bottom: 0; width: 1px; background: var(--accent); opacity: .4; pointer-events: none; }
        .vp-nowline::before { content: "ŞİMDİ"; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 8px; font-weight: 700; letter-spacing: .1em; color: var(--accent-deep); white-space: nowrap; }
        .vp-axis { margin-top: 8px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 550; color: var(--vp-ink4); font-family: var(--vp-mono); }
        .vp-detail { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--vp-line); color: var(--vp-ink4); font-size: 12px; }
        .vp-foot { border-top: 1px solid var(--vp-line); margin-top: 8px; padding: 12px 0 2px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
        .vp-foot .src { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--vp-ink3); }
        .vp-foot .src svg { width: 14px; height: 14px; color: var(--vp-ink4); flex: none; }
        .vp-foot .src b { color: var(--vp-ink2); font-weight: 600; }
        .vp-foot .ts { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--vp-ink3); }
        .vp-foot .ts svg { width: 13px; height: 13px; color: var(--vp-ink4); flex: none; }
        @keyframes vpGaugeDraw { from { stroke-dasharray: 0 276.46; } }
        .vp-gauge .fill { animation: vpGaugeDraw 1s cubic-bezier(.22, 1, .36, 1) both; }
        @media (prefers-reduced-motion: reduce) { .vp-gauge .fill { animation: none; } }
        .timeline-content {
            background: white;
            border-radius: 16px;
            max-width: min(720px, calc(100vw - (var(--ui-modal-pad) * 2)));
            width: 100%;
            height: 74vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: var(--ds-shadow-2);
            border: 1px solid var(--ds-border-soft);
            position: relative;
        }
        /* Kartı stabil tut: başlık/özet/sekmeler sabit kalır, sadece gövde kayar */
        .timeline-header, .tl-summary-strip, .tl-tabs { flex-shrink: 0; }
        .timeline-header {
            padding: var(--ds-4) var(--ds-5);
            border-bottom: 1px solid var(--slate-200);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
            color: var(--slate-900);
            border-radius: 16px 16px 0 0;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .timeline-header h2 {
            margin: 0;
            font-size: var(--ds-title);
            font-weight: 700;
            letter-spacing: -0.01em;
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }
        .timeline-header h2 span {
            flex: 1;
        }
        .timeline-close {
            background: transparent;
            border: none;
            color: var(--slate-500);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            z-index: 3010;
            position: relative;
            -webkit-tap-highlight-color: transparent;
        }
        .timeline-close:hover {
            background: var(--slate-100);
            color: var(--slate-900);
        }
        .timeline-tab.active {
            color: var(--slate-900) !important;
            border-bottom-color: #3b82f6 !important;
            background: white !important;
        }
        .timeline-tab:hover {
            color: var(--slate-900);
            background: rgba(255,255,255,0.5);
        }

        /* ── Timeline Tab System (.tl-*) ── */
        .tl-tabs {
            display: flex;
            gap: 0;
            padding: 0 16px;
            border-bottom: 1px solid var(--slate-200);
            background: var(--slate-50);
            overflow-x: auto;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            position: sticky;
            top: 0;
            z-index: 8;
        }
        .tl-tabs::-webkit-scrollbar { display: none; }
        .tl-tab {
            flex: 0 0 auto;
            padding: 10px 14px;
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.8125rem;
            color: var(--slate-500);
            white-space: nowrap;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
            min-height: 42px;
        }
        .tl-tab:hover { color: var(--slate-800); background: rgba(255,255,255,0.5); }
        .tl-tab.active {
            color: var(--slate-900);
            border-bottom-color: #3b82f6;
            background: white;
        }
        .tl-tab:focus-visible {
            outline: 2px solid #3b82f6;
            outline-offset: -2px;
            border-radius: 4px 4px 0 0;
        }
        .tl-tab .tl-tab-icon { font-size: 1rem; }
        .tl-tabpanel { padding: 16px 20px; }
        .tl-tabpanel[hidden] { display: none; }
        .tl-summary-strip {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 20px;
            background: white;
            border-bottom: 1px solid var(--slate-100);
            overflow-x: auto;
            scrollbar-width: none;
            position: sticky;
            top: 0;
            z-index: 9;
        }
        .tl-summary-strip::-webkit-scrollbar { display: none; }
        .tl-summary-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px;
            border-radius: 999px;
            background: var(--slate-50);
            border: 1px solid var(--slate-200);
            font-size: 0.72rem;
            font-weight: 600;
            color: var(--slate-700);
            white-space: nowrap;
        }
        .tl-share-btn {
            margin-left: auto;
            flex: 0 0 auto;
            padding: 6px 12px;
            background: var(--safe-color);
            color: white;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.75rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: all 0.2s;
        }
        .tl-share-btn:hover { background: #059669; }

        /* Compact toggle in summary strip */
        .tl-mode-toggle {
            display: inline-flex;
            align-items: center;
            background: rgba(255,255,255,0.95);
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            padding: 2px;
            gap: 2px;
            margin-left: auto;
            flex: 0 0 auto;
        }
        .tl-mode-toggle button {
            padding: 4px 10px;
            border: none;
            background: transparent;
            color: var(--slate-500);
            font-size: 0.6875rem;
            font-weight: 600;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .tl-mode-toggle button:hover { color: var(--slate-700); background: var(--slate-50); }
        .tl-mode-toggle button.active {
            background: var(--primary-color);
            color: white;
            font-weight: 700;
        }

        /* Pro content blur preview */
        .tl-blur-wrap {
            position: relative;
            overflow: hidden;
            max-height: 220px;
            border-radius: 14px;
            margin-bottom: 14px;
        }
        .tl-blur-wrap .tl-blur-inner {
            filter: blur(6px);
            -webkit-filter: blur(6px);
            pointer-events: none;
            user-select: none;
            -webkit-user-select: none;
        }
        .tl-blur-wrap .tl-blur-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.25);
            backdrop-filter: blur(1px);
            -webkit-backdrop-filter: blur(1px);
            z-index: 3;
        }
        .tl-blur-badge {
            font-size: 0.8125rem;
            font-weight: 800;
            color: white;
            background: linear-gradient(135deg, #667eea, #764ba2);
            padding: 6px 22px;
            border-radius: 999px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            box-shadow: 0 4px 14px rgba(102,126,234,0.35);
            margin-bottom: 10px;
        }
        .tl-blur-text {
            font-size: 0.72rem;
            color: var(--slate-600);
            margin-bottom: 10px;
            text-align: center;
        }
        .tl-blur-free {
            font-size: 0.6rem; color: var(--slate-500);
            margin-bottom: 8px; font-weight: 500;
        }
        .tl-blur-btn {
            padding: 8px 22px;
            background: white;
            color: #667eea;
            border: 2px solid #667eea;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .tl-blur-btn:hover {
            background: #667eea;
            color: white;
        }
        /* In pro mode, blur wraps become transparent */
        .tl-blur-wrap.tl-blur-unlocked {
            max-height: none;
            overflow: visible;
        }
        .tl-blur-wrap.tl-blur-unlocked .tl-blur-inner {
            filter: none;
            -webkit-filter: none;
            pointer-events: auto;
            user-select: auto;
            -webkit-user-select: auto;
        }
        .tl-blur-wrap.tl-blur-unlocked .tl-blur-overlay {
            display: none;
        }

        /* ── Species Tab Professional Design ── */
        .sp-header {
            display: flex; align-items: center; gap: 10px;
            margin-bottom: 16px; padding-bottom: 12px;
            border-bottom: 1px solid var(--slate-200);
        }
        .sp-header-icon {
            width: 36px; height: 36px; border-radius: 10px;
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            display: flex; align-items: center; justify-content: center;
            font-size: 1.1rem; flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(99,102,241,0.25);
        }
        .sp-header-text { flex: 1; }
        .sp-header-title {
            font-size: 0.8125rem; font-weight: 800; color: var(--slate-800);
            letter-spacing: 0.02em;
        }
        .sp-header-meta {
            font-size: 0.6875rem; color: var(--slate-500); margin-top: 1px;
            display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
        }
        .sp-region-badge {
            display: inline-flex; align-items: center; gap: 3px;
            padding: 2px 8px; border-radius: 6px;
            background: rgba(99,102,241,0.08); color: #6366f1;
            font-size: 0.625rem; font-weight: 700;
        }
        .sp-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 10px;
        }
        .sp-card {
            background: white;
            border: 1px solid var(--slate-200);
            border-radius: 14px;
            padding: 14px;
            position: relative;
            overflow: hidden;
            transition: box-shadow 0.2s ease, border-color 0.2s ease;
        }
        .sp-card:hover {
            border-color: rgba(99,102,241,0.3);
            box-shadow: 0 4px 16px rgba(99,102,241,0.10);
        }
        .sp-card-accent {
            position: absolute; top: 0; left: 0; width: 4px; height: 100%;
            border-radius: 14px 0 0 14px;
        }
        .sp-card-top {
            display: flex; align-items: center; gap: 10px;
            margin-bottom: 12px; padding-left: 8px;
        }
        .sp-card-icon {
            font-size: 1.5rem; line-height: 1;
        }
        .sp-card-name {
            flex: 1; font-weight: 700; font-size: 0.8125rem;
            color: var(--slate-900);
        }
        .sp-card-score {
            display: flex; flex-direction: column; align-items: center;
            justify-content: center;
            width: 48px; height: 48px; border-radius: 50%;
            border: 3px solid currentColor;
            font-size: 1rem; font-weight: 800; line-height: 1;
        }
        .sp-card-score small {
            font-size: 0.5rem; font-weight: 600; opacity: 0.65;
            margin-top: 1px;
        }
        /* Seasonal chart */
        .sp-chart {
            display: flex; gap: 2px; align-items: end;
            height: 32px; margin-bottom: 2px; padding-left: 8px;
        }
        .sp-chart-bar {
            flex: 1; border-radius: 2px 2px 0 0;
            transition: background 0.15s;
            position: relative;
        }
        .sp-chart-bar[data-current="true"] {
            box-shadow: 0 -2px 0 0 #4f46e5;
        }
        .sp-chart-bar[data-current="true"]::after {
            content: '▼'; position: absolute; top: -10px; left: 50%;
            transform: translateX(-50%); font-size: 6px; color: #4f46e5;
            line-height: 1;
        }
        .sp-chart-labels {
            display: flex; justify-content: space-between;
            padding: 0 2px 0 8px;
            margin-bottom: 10px;
        }
        .sp-chart-labels span {
            font-size: 0.5625rem; color: var(--slate-400); font-weight: 500;
        }
        /* Tags */
        .sp-tags {
            display: flex; flex-wrap: wrap; gap: 4px;
            padding-left: 8px;
        }
        .sp-tag {
            display: inline-flex; align-items: center; gap: 3px;
            font-size: 0.625rem; font-weight: 600;
            padding: 2px 7px; border-radius: 5px;
            line-height: 1.4;
        }
        .sp-tag-region { background: rgba(99,102,241,0.08); }
        .sp-tag-peak { background: #ede9fe; color: #7c3aed; }
        .sp-tag-emodnet { background: #dbeafe; color: #2563eb; }
        .sp-tag-seasonal { background: rgba(16,185,129,0.08); color: #059669; }
        .sp-footer {
            margin-top: 14px; padding-top: 10px;
            border-top: 1px solid var(--slate-100);
            font-size: 0.65rem; color: var(--slate-400);
            line-height: 1.5; display: flex; align-items: center; gap: 6px;
        }
        .sp-footer-dot {
            width: 4px; height: 4px; border-radius: 50%;
            background: var(--slate-300); flex-shrink: 0;
        }
        @media (max-width: 480px) {
            .sp-grid { grid-template-columns: 1fr; }
            .sp-card { padding: 12px; }
            .sp-card-score { width: 40px; height: 40px; font-size: 0.875rem; }
        }

        /* ── Weather Animation Layer ──
           Sticky overlay div inside scrollable containers.
           Height:0 + overflow:visible = doesn't affect layout.
           Pseudo-elements create the visual effects. */
        .tl-wx-layer {
            position: sticky; top: 0;
            height: 0; overflow: visible;
            pointer-events: none; z-index: 1;
            width: 100%;
        }
        .tl-wx-layer::before,
        .tl-wx-layer::after {
            content: ''; position: absolute; top: 0;
            pointer-events: none;
        }

        /* ─── SUNNY ─── */
        .tl-wx-layer.tl-wx-sunny::before {
            /* Sun disc */
            right: -20px; top: -20px;
            width: 100px; height: 100px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(250,204,21,0.35) 0%, rgba(251,191,36,0.15) 40%, transparent 70%);
            box-shadow: 0 0 40px 10px rgba(250,204,21,0.18), 0 0 80px 30px rgba(251,191,36,0.08);
            animation: wxSunPulse 4s ease-in-out infinite;
        }
        .tl-wx-layer.tl-wx-sunny::after {
            /* Warm ambient glow */
            right: 0; top: 0;
            width: 60%; height: 120px;
            background: linear-gradient(135deg, rgba(250,204,21,0.10) 0%, rgba(251,191,36,0.04) 50%, transparent 100%);
            border-radius: 0 0 0 60%;
            animation: wxSunGlow 6s ease-in-out infinite;
        }
        @keyframes wxSunPulse {
            0%, 100% { transform: scale(1); opacity: 0.9; }
            50% { transform: scale(1.12); opacity: 1; }
        }
        @keyframes wxSunGlow {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        /* ─── CLOUDY ─── */
        .tl-wx-layer.tl-wx-cloudy::before {
            /* Cloud 1 */
            left: 8%; top: 6px;
            width: 90px; height: 32px;
            background: rgba(148,163,184,0.13);
            border-radius: 20px;
            box-shadow:
                25px -10px 0 8px rgba(148,163,184,0.10),
                50px -4px 0 4px rgba(148,163,184,0.08);
            animation: wxCloud1 16s ease-in-out infinite;
        }
        .tl-wx-layer.tl-wx-cloudy::after {
            /* Cloud 2 */
            right: 12%; top: 14px;
            width: 70px; height: 26px;
            background: rgba(148,163,184,0.10);
            border-radius: 16px;
            box-shadow:
                18px -8px 0 6px rgba(148,163,184,0.08),
                40px -2px 0 3px rgba(148,163,184,0.06);
            animation: wxCloud2 20s ease-in-out infinite;
        }
        @keyframes wxCloud1 {
            0%, 100% { transform: translateX(0); opacity: 0.7; }
            50% { transform: translateX(30px); opacity: 1; }
        }
        @keyframes wxCloud2 {
            0%, 100% { transform: translateX(0); opacity: 0.6; }
            50% { transform: translateX(-25px); opacity: 0.9; }
        }

        /* ─── RAINY ─── */
        .tl-wx-layer.tl-wx-rainy::before {
            /* Dark overcast gradient */
            left: 0; top: 0; right: 0;
            height: 80px;
            background: linear-gradient(180deg, rgba(100,116,139,0.12) 0%, rgba(100,116,139,0.04) 60%, transparent 100%);
            border-radius: 0;
        }
        .tl-wx-layer.tl-wx-rainy::after {
            /* Rain streaks */
            left: 0; top: 0; right: 0;
            height: 140px;
            background-image: repeating-linear-gradient(
                172deg,
                transparent 0px,
                transparent 8px,
                rgba(100,116,139,0.12) 8px,
                rgba(100,116,139,0.12) 9px
            );
            background-size: 20px 50px;
            animation: wxRainFall 1.2s linear infinite;
        }
        @keyframes wxRainFall {
            0% { background-position: 0px -50px; }
            100% { background-position: -8px 0px; }
        }

        @media (max-width: 768px) {
            .tl-tabs { padding: 0 10px; gap: 0; }
            .tl-tab { padding: 8px 10px; font-size: 0.75rem; min-height: 38px; }
            .tl-tab .tl-tab-label { display: none; }
            .tl-tab .tl-tab-icon { font-size: 1.1rem; }
            .tl-tabpanel { padding: 12px 14px; }
            .tl-summary-strip { padding: 8px 14px; gap: 8px; }
            .tl-summary-chip { font-size: 0.65rem; padding: 3px 8px; }
            .tl-mode-toggle button { padding: 3px 8px; font-size: 0.625rem; }
        }

        @media (max-width: 768px) {
            .timeline-modal {
                padding: 18px;
            }
            .timeline-content {
                max-width: 92vw;
                height: 76vh;
                border-radius: 18px;
            }
            .timeline-body {
                padding: 0;
            }
            .timeline-close {
                width: 44px;
                height: 44px;
                font-size: 2rem;
                background: var(--slate-100);
                color: var(--slate-700);
            }
            .timeline-close:active {
                background: var(--slate-200);
                transform: scale(0.95);
            }
        }
        .timeline-body {
            padding: 0;
            font-size: var(--ds-text);
            line-height: var(--ds-lh);
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .timeline-summary {
            background: var(--slate-50);
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 30px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 12px;
        }
        .summary-item {
            text-align: center;
        }
        .summary-item .label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--slate-600);
            margin-bottom: 8px;
        }
        .summary-item .value {
            font-size: 1.5rem;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            color: var(--slate-900);
        }
        .summary-item .value.safe { color: var(--safe-color); }
        .summary-item .value.caution { color: var(--caution-color); }
        .summary-item .value.risky { color: var(--risky-color); }
        .timeline-bar {
            display: flex;
            gap: 4px;
            margin-bottom: 30px;
            overflow-x: auto;
            padding-bottom: 10px;
        }
        .timeline-hour {
            min-width: 60px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            border-radius: 8px;
            padding: 10px 5px;
            position: relative;
        }
        .timeline-hour:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
            z-index: 10;
        }
        .timeline-hour.safe {
            background: var(--safe-color);
            color: white;
        }
        .timeline-hour.caution {
            background: var(--caution-color);
            color: #1f2937;
        }
        .timeline-hour.risky {
            background: var(--risky-color);
            color: white;
        }
        .timeline-hour .time {
            font-weight: 600;
            font-size: 0.85rem;
            margin-bottom: 5px;
        }
        .timeline-hour .score {
            font-size: 0.75rem;
            opacity: 0.9;
        }
        .timeline-hour-detail {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: var(--slate-900);
            color: white;
            padding: 12px;
            border-radius: 8px;
            min-width: 200px;
            margin-bottom: 10px;
            display: none;
            box-shadow: var(--shadow-md);
            z-index: 100;
        }
        .timeline-hour:hover .timeline-hour-detail {
            display: block;
        }
        .timeline-hour-detail::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: var(--slate-900);
        }
        .timeline-hour-detail .detail-row {
            margin-bottom: 6px;
            font-size: 0.9rem;
        }
        .timeline-hour-detail .detail-row:last-child {
            margin-bottom: 0;
        }
        .timeline-hour-detail strong {
            display: inline-block;
            min-width: 80px;
        }
        .critical-moments {
            margin-top: 30px;
            padding-top: 30px;
            border-top: 2px solid #eee;
        }
        .critical-moments h3 {
            margin: 0 0 15px 0;
            color: var(--risky-color);
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .critical-moment {
            background: var(--caution-light);
            border-left: 4px solid var(--caution-color);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 10px;
        }
        .critical-moment.major {
            background: var(--risky-light);
            border-left-color: var(--risky-color);
        }
        .critical-moment .time {
            font-weight: 700;
            color: var(--risky-color);
            margin-bottom: 5px;
        }
        .critical-moment .reason {
            color: var(--slate-600);
            font-size: 0.875rem;
        }
        @media (max-width: 768px) {
            .timeline-modal {
                padding: 10px;
            }
            .timeline-content {
                max-height: 95vh;
            }
            .timeline-bar {
                gap: 2px;
            }
            .timeline-hour {
                min-width: 50px;
                padding: 8px 3px;
            }
            .timeline-hour .time {
                font-size: 0.75rem;
            }
        }

        .fish-density-toggle {
            display: inline-flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--slate-200);
            border-radius: 10px;
            padding: 3px;
            gap: 3px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            position: relative;
        }
        .fish-density-toggle button {
            flex: 1;
            min-width: 50px;
            min-height: 30px;
            padding: 5px 12px;
            border: none;
            background: transparent;
            color: var(--slate-600);
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: 7px;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            position: relative;
            z-index: 1;
        }
        .fish-density-toggle button:hover {
            color: var(--slate-700);
            background: var(--slate-50);
        }
        .fish-density-toggle button.active {
            background: var(--primary-color);
            color: white;
            box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
            font-weight: 700;
        }
        .fish-density-toggle button:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }
        @media (max-width: 768px) {
            .fish-density-toggle {
                min-height: 38px;
            }
            .fish-density-toggle button {
                min-height: 38px;
                font-size: 0.8125rem;
                padding: 6px 12px;
            }
        }
        @media (prefers-reduced-motion: reduce) {
            .fish-density-toggle button {
                transition: none;
            }
        }

        /* Pro Login Popup */
        .pro-login-overlay {
            position: fixed;
            inset: 0;
            z-index: 10000;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: proOverlayIn 0.25s ease-out;
        }
        @keyframes proOverlayIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .pro-login-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 25px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
            max-width: 380px;
            width: 100%;
            overflow: hidden;
            animation: proCardIn 0.3s ease-out;
        }
        @keyframes proCardIn {
            from { opacity: 0; transform: scale(0.92) translateY(20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        .pro-login-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 28px 24px 22px;
            color: white;
            position: relative;
        }
        .pro-login-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            font-size: 1.125rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }
        .pro-login-close:hover {
            background: rgba(255,255,255,0.35);
        }
        .pro-login-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.6875rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            background: rgba(255,255,255,0.2);
            padding: 4px 10px;
            border-radius: 20px;
            margin-bottom: 12px;
        }
        .pro-login-title {
            font-size: 1.375rem;
            font-weight: 800;
            margin-bottom: 6px;
            line-height: 1.2;
        }
        .pro-login-subtitle {
            font-size: 0.8125rem;
            opacity: 0.9;
            line-height: 1.4;
        }
        .pro-login-body {
            padding: 20px 24px 24px;
        }
        .pro-login-features {
            list-style: none;
            padding: 0;
            margin: 0 0 20px 0;
        }
        .pro-login-features li {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
            font-size: 0.8125rem;
            color: var(--slate-700, #334155);
            border-bottom: 1px solid var(--slate-100, #f1f5f9);
        }
        .pro-login-features li:last-child {
            border-bottom: none;
        }
        .pro-login-features .feat-icon {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            flex-shrink: 0;
        }
        .pro-login-cta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            height: 52px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 14px;
            font-size: 0.9375rem;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
        }
        .pro-login-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
        }
        .pro-login-cta .g-icon-white {
            width: 20px;
            height: 20px;
        }
        .pro-login-footer {
            text-align: center;
            margin-top: 12px;
            font-size: 0.75rem;
            color: var(--slate-400, #94a3b8);
        }
        @media (max-width: 480px) {
            .pro-login-card {
                max-width: 100%;
                border-radius: 16px;
            }
            .pro-login-header {
                padding: 22px 18px 18px;
            }
            .pro-login-body {
                padding: 16px 18px 20px;
            }
        }

        /* ========================================
           MAP VIEW SWITCHER - Harita Görünüm Seçici
           Kullanıcı harita görünümlerini değiştirebilir
           (Uydu, Sokak, Outdoor, Karanlık)
           ======================================== */

        .map-view-switcher {
            position: fixed;
            top: calc(env(safe-area-inset-top, 0px) + 16px + 48px + 8px + 48px + 12px); /* top-row + gap + locate FAB + gap */
            right: 12px;
            z-index: 1650; /* Locate button ile aynı seviyede ama onun altında */
            transition: opacity var(--ds-dur, 0.2s) var(--ds-ease, ease), transform var(--ds-dur, 0.2s) var(--ds-ease, ease);
        }

        /* Desktop: Farklı pozisyon */
        @media (min-width: 769px) {
            .map-view-switcher {
                top: 80px;
                right: 12px;
                z-index: 1000;
            }
        }

        /* Panel veya timeline açıkken gizle (FAB'ler gibi) */
        body.panel-open .map-view-switcher,
        body.timeline-open .map-view-switcher {
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
        }

        /* ── EMODnet Bathymetry - View Switcher Overlay Section ── */
        .view-menu-divider {
            height: 1px; background: var(--ds-border); margin: 6px 0;
        }
        .view-menu-overlay {
            padding: 6px 10px;
        }
        .view-menu-overlay-label {
            font-size: 10px; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.06em; color: var(--slate-400); margin-bottom: 6px;
        }
        .bathy-menu-toggle {
            display: flex; align-items: center; gap: 8px;
            width: 100%; padding: 8px 10px; border-radius: 8px;
            cursor: pointer; transition: background 0.15s ease;
            border: none; background: transparent;
            font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-600);
        }
        .bathy-menu-toggle:hover { background: var(--slate-50); }
        .bathy-menu-toggle.active { background: rgba(14,165,233,0.10); color: #0369a1; }
        .bathy-menu-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
        .bathy-menu-toggle .bathy-check {
            margin-left: auto; width: 18px; height: 18px; border-radius: 4px;
            border: 2px solid var(--slate-300); display: flex; align-items: center; justify-content: center;
            transition: all 0.15s ease;
        }
        .bathy-menu-toggle.active .bathy-check {
            background: #0ea5e9; border-color: #0ea5e9;
        }
        .bathy-menu-toggle.active .bathy-check svg { stroke: #fff; }
        .bathy-opacity-row {
            display: none; align-items: center; gap: 4px;
            padding: 4px 10px 8px;
        }
        .bathy-opacity-row.show { display: flex; }
        .bathy-opacity-btn {
            flex: 1; padding: 4px 0; border: 1px solid var(--ds-border);
            border-radius: 6px; background: transparent; cursor: pointer;
            font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
            color: var(--slate-500); transition: all 0.15s ease;
        }
        .bathy-opacity-btn:hover { background: var(--slate-50); }
        .bathy-opacity-btn.active {
            background: #0ea5e9; color: #fff; border-color: #0ea5e9;
        }
        /* More Sheet Bathymetry Section */
        .bt-more-layer-section {
            padding: 12px 16px; border-bottom: 1px solid var(--ds-border-soft);
        }
        .bt-more-layer-title {
            font-size: 11px; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.06em; color: var(--slate-400); margin-bottom: 8px;
        }
        .bt-more-layer-toggle {
            display: flex; align-items: center; gap: 10px;
            width: 100%; padding: 10px 12px; border-radius: 10px;
            cursor: pointer; transition: background 0.15s ease;
            border: 1px solid var(--ds-border-soft); background: rgba(255,255,255,0.8);
            font-family: 'Inter', sans-serif; font-size: 14px; color: var(--slate-600);
        }
        .bt-more-layer-toggle:hover { background: rgba(255,255,255,1); }
        .bt-more-layer-toggle.active {
            background: rgba(14,165,233,0.08); border-color: rgba(14,165,233,0.3); color: #0369a1;
        }
        .bt-more-layer-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
        .bt-more-layer-toggle .layer-check {
            margin-left: auto; width: 20px; height: 20px; border-radius: 5px;
            border: 2px solid var(--slate-300); display: flex; align-items: center; justify-content: center;
            transition: all 0.15s ease;
        }
        .bt-more-layer-toggle.active .layer-check { background: #0ea5e9; border-color: #0ea5e9; }
        .bt-more-layer-toggle.active .layer-check svg { stroke: #fff; }
        .bt-more-opacity-row {
            display: none; align-items: center; gap: 5px;
            padding: 8px 12px 0; margin-top: 8px;
        }
        .bt-more-opacity-row.show { display: flex; }
        .bt-more-opacity-btn {
            flex: 1; padding: 6px 0; border: 1px solid var(--ds-border);
            border-radius: 8px; background: transparent; cursor: pointer;
            font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
            color: var(--slate-500); transition: all 0.15s ease;
        }
        .bt-more-opacity-btn:hover { background: var(--slate-50); }
        .bt-more-opacity-btn.active {
            background: #0ea5e9; color: #fff; border-color: #0ea5e9;
        }
        /* MPA Layer */
        .mpa-menu-toggle {
            display: flex; align-items: center; gap: 8px;
            width: 100%; padding: 8px 10px; border-radius: 8px;
            cursor: pointer; transition: background 0.15s ease;
            border: none; background: transparent;
            font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-600);
        }
        .mpa-menu-toggle:hover { background: var(--slate-50); }
        .mpa-menu-toggle.active { background: rgba(239,68,68,0.08); color: #dc2626; }
        .mpa-menu-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
        .mpa-menu-toggle .mpa-check {
            margin-left: auto; width: 18px; height: 18px; border-radius: 4px;
            border: 2px solid var(--slate-300); display: flex; align-items: center; justify-content: center;
            transition: all 0.15s ease;
        }
        .mpa-menu-toggle.active .mpa-check { background: #ef4444; border-color: #ef4444; }
        .mpa-menu-toggle.active .mpa-check svg { stroke: #fff; }
        .bt-more-mpa-toggle {
            display: flex; align-items: center; gap: 10px;
            width: 100%; padding: 10px 12px; border-radius: 10px;
            cursor: pointer; transition: background 0.15s ease;
            border: 1px solid var(--ds-border-soft); background: rgba(255,255,255,0.8);
            font-family: 'Inter', sans-serif; font-size: 14px; color: var(--slate-600);
            margin-top: 8px;
        }
        .bt-more-mpa-toggle:hover { background: rgba(255,255,255,1); }
        .bt-more-mpa-toggle.active {
            background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.3); color: #dc2626;
        }
        .bt-more-mpa-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
        .bt-more-mpa-toggle .layer-check {
            margin-left: auto; width: 20px; height: 20px; border-radius: 5px;
            border: 2px solid var(--slate-300); display: flex; align-items: center; justify-content: center;
            transition: all 0.15s ease;
        }
        .bt-more-mpa-toggle.active .layer-check { background: #ef4444; border-color: #ef4444; }
        .bt-more-mpa-toggle.active .layer-check svg { stroke: #fff; }

        .view-switcher-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            background: var(--bg-glass);
            border: 1px solid var(--ds-border);
            border-radius: 8px;
            box-shadow: var(--shadow-md);
            cursor: pointer;
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 500;
            color: var(--slate-700);
            transition: all 0.2s ease;
            min-height: 44px;
            min-width: 44px;
        }

        .view-switcher-btn:hover {
            background: rgba(255, 255, 255, 1);
            box-shadow: var(--shadow-lg);
            border-color: var(--primary-color);
        }

        .view-switcher-btn:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }

        .view-switcher-btn:active {
            transform: scale(0.98);
        }

        .view-switcher-btn svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        .view-switcher-text {
            white-space: nowrap;
        }

        /* Dropdown menü */
        .view-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 180px;
            background: var(--bg-glass);
            border: 1px solid var(--ds-border);
            border-radius: 8px;
            box-shadow: var(--shadow-lg);
            padding: 6px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s ease;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .view-menu[aria-hidden="false"] {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .view-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.15s ease;
            color: var(--slate-700);
            font-size: 14px;
            font-weight: 500;
            position: relative;
            min-height: 44px;
        }

        .view-menu-item:hover {
            background: rgba(59, 130, 246, 0.1);
            color: var(--primary-color);
        }

        .view-menu-item:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: -2px;
            background: rgba(59, 130, 246, 0.1);
        }

        .view-menu-item[aria-checked="true"] {
            background: rgba(59, 130, 246, 0.15);
            color: var(--primary-color);
            font-weight: 600;
        }

        .view-menu-item[aria-checked="true"]::after {
            content: '✓';
            position: absolute;
            right: 12px;
            font-size: 16px;
            font-weight: 700;
        }

        .view-menu-item svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }

        /* Mobil uyumluluk (768px ve altı - locate button ile çakışma engelleme) */
        @media (max-width: 768px) {
            .map-view-switcher {
                /* Locate button'ın altına yerleştir: top-row (64px) + locate button (48px) + gap (12px) */
                top: calc(env(safe-area-inset-top, 0px) + 64px + 48px + 12px) !important;
                right: 12px !important;
                z-index: 1650 !important;
            }

            .view-switcher-btn {
                padding: 10px;
                gap: 0;
                width: 48px;  /* Locate button ile aynı boyut */
                height: 48px;
                min-width: 48px;
                min-height: 48px;
                border-radius: 14px; /* Locate button ile aynı radius */
            }

            .view-switcher-btn svg {
                width: 20px;
                height: 20px;
            }

            .view-switcher-text {
                display: none;
            }

            .view-menu {
                min-width: 160px;
            }

            .view-menu-item {
                font-size: 13px;
                padding: 9px 10px;
            }
        }

        /* Animasyon devre dışı (erişilebilirlik) */
        @media (prefers-reduced-motion: reduce) {
            .view-switcher-btn,
            .view-menu,
            .view-menu-item {
                transition: none;
            }

            .view-menu {
                transform: none;
            }
        }

        /* Dark mode desteği (opsiyonel) */
        @media (prefers-color-scheme: dark) {
            .view-switcher-btn,
            .view-menu {
                background: rgba(15, 23, 42, 0.95);
                border-color: rgba(71, 85, 105, 0.4);
                color: var(--slate-300);
            }

            .view-switcher-btn:hover {
                background: rgba(30, 41, 59, 1);
            }

            .view-menu-item {
                color: var(--slate-300);
            }

            .view-menu-item:hover,
            .view-menu-item:focus {
                background: rgba(59, 130, 246, 0.2);
                color: #93c5fd;
            }

            .view-menu-item[aria-checked="true"] {
                background: rgba(59, 130, 246, 0.25);
                color: #60a5fa;
            }
        }

        /* Yüksek kontrast modu */
        @media (prefers-contrast: high) {
            .view-switcher-btn,
            .view-menu {
                border-width: 2px;
            }

            .view-menu-item:focus {
                outline-width: 3px;
            }
        }

        .click-marker-icon {
            background: transparent !important;
            border: none !important;
        }
        
        .leaflet-popup-content-wrapper {
            border-radius: 12px !important;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
            padding: 0 !important;
            overflow: hidden;
        }
        .leaflet-popup-content {
            margin: 0 !important;
            padding: 0 !important;
        }
        .leaflet-popup-tip {
            background: white !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        }
        
        .marine-marker {
            cursor: pointer;
        }
        
        .bay-panel {
            position: fixed;
            right: 0;
            top: 0;
            width: var(--ui-panel-w);
            height: 100vh;
            height: 100dvh;
            background: white;
            box-shadow: var(--shadow-2xl);
            z-index: 2000;
            transform: translateX(100%);
            transition: transform 0.25s ease-out;
            display: none;
            flex-direction: column;
            overflow: hidden;
        }
        .bay-panel.open {
            transform: translateX(0);
        }
        .bay-panel-header {
            padding: 20px 24px;
            padding-top: calc(20px + env(safe-area-inset-top, 0px));
            border-bottom: 1px solid var(--slate-200);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .bay-panel-header h2 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--slate-900);
        }
        .bay-panel-close {
            background: transparent;
            border: none;
            color: var(--slate-500);
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            z-index: 2010; /* Panel'in üstünde (2000) - her zaman tıklanabilir */
            position: relative;
            -webkit-tap-highlight-color: transparent;
        }
        .bay-panel-close:hover {
            background: var(--slate-100);
            color: var(--slate-900);
        }
        @media (max-width: 768px) {
            .bay-panel-close {
                width: 48px; /* Mobilde daha büyük */
                height: 48px;
                min-width: 48px;
                min-height: 48px;
                font-size: 1.75rem;
                background: var(--slate-100);
                color: var(--slate-700);
            }
            .bay-panel-close:active {
                background: var(--slate-200);
                transform: scale(0.95);
            }
        }
        .bay-panel-content {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
        }

        /* Long content safety: prevent layout break on long tokens/URLs */
        .bay-panel, .timeline-content, .spot-popup-container, .nearby-bays-panel {
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .bay-panel-section {
            margin-bottom: 32px;
        }
        .bay-panel-section:last-child {
            margin-bottom: 0;
        }
        .section-header {
            font-size: var(--ds-text-sm);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--slate-500);
            margin-bottom: var(--ds-4);
        }

        /* ── Bay Panel Tabs & Summary ── */
        .bp-header-actions {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .bp-header-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 6px 10px;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: var(--slate-50);
            color: var(--slate-700);
            font-size: 0.6875rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s, border-color 0.15s;
            -webkit-tap-highlight-color: transparent;
        }
        .bp-header-btn:hover { background: var(--slate-100); border-color: var(--slate-300); }
        .bp-header-btn:focus-visible { outline: 2px solid rgba(59,130,246,0.55); outline-offset: 1px; }
        .bp-header-btn.saved { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.3); color: var(--safe-color); }
        .bp-header-coords {
            font-size: 0.625rem;
            color: var(--slate-400);
            margin-top: 2px;
            font-variant-numeric: tabular-nums;
        }
        .bp-summary {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
            padding: 12px 0;
            border-bottom: 1px solid var(--slate-200);
        }
        .bp-summary-card {
            background: var(--slate-50);
            border: 1px solid var(--slate-200);
            border-radius: 10px;
            padding: 8px 6px;
            text-align: center;
            min-width: 0;
        }
        .bp-summary-icon { font-size: 0.875rem; margin-bottom: 2px; line-height: 1; }
        .bp-summary-value { font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; color: var(--slate-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .bp-summary-label { font-size: 0.5625rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 2px; line-height: 1.2; }
        .bp-tabs {
            display: flex;
            gap: 0;
            border-bottom: 2px solid var(--slate-200);
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            position: sticky;
            top: 0;
            background: white;
            z-index: 5;
            padding: 0;
        }
        .bp-tabs::-webkit-scrollbar { display: none; }
        .bp-tab {
            flex: 0 0 auto;
            padding: 10px 12px;
            font-size: 0.6875rem;
            font-weight: 600;
            color: var(--slate-500);
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            cursor: pointer;
            white-space: nowrap;
            transition: color 0.15s, border-color 0.15s;
            min-height: 44px;
            -webkit-tap-highlight-color: transparent;
        }
        .bp-tab:hover { color: var(--slate-700); }
        .bp-tab.active {
            color: var(--wind-color);
            border-bottom-color: var(--wind-color);
        }
        .bp-tab:focus-visible {
            outline: 2px solid rgba(59,130,246,0.55);
            outline-offset: -2px;
            border-radius: 4px 4px 0 0;
        }
        .bp-tabpanel { padding: 16px 0; overflow-x: hidden; }
        .bp-tabpanel[hidden] { display: none; }
        .bp-skeleton {
            background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
            background-size: 200% 100%;
            animation: bp-shimmer 1.5s infinite;
            border-radius: 6px;
            height: 1em;
        }
        @keyframes bp-shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        .bp-forecast-day-header {
            position: sticky;
            top: 0;
            background: var(--slate-100);
            padding: 6px 10px;
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--slate-700);
            border-bottom: 1px solid var(--slate-200);
            z-index: 2;
        }
        .bp-chart-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 3000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .bp-chart-overlay-content {
            background: white;
            border-radius: var(--ui-radius-lg);
            padding: 24px;
            max-width: 90vw;
            max-height: 90vh;
            overflow: auto;
            position: relative;
            width: 100%;
        }
        .bp-chart-overlay-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--slate-100);
            border: none;
            cursor: pointer;
            font-size: 1.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .bp-chart-overlay-close:hover { background: var(--slate-200); }
        .bp-chart-overlay-close:focus-visible { outline: 2px solid rgba(59,130,246,0.55); outline-offset: 2px; }
        .bp-footer {
            padding: 12px 0 0;
            border-top: 1px solid var(--slate-200);
            margin-top: 8px;
        }

        /* Reduce motion: keep UI crisp (no bouncing/pulsing) */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
            .nearby-bays-header .location-status {
                animation: none !important;
            }
        }

        /* -------------------------
           Map Controls (minimal, premium)
           ------------------------- */
        .mc-sr-only {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
            white-space: nowrap !important;
            border: 0 !important;
        }
        .mc-overlay {
            position: fixed;
            inset: 0;
            z-index: 1200;
            pointer-events: none;
        }
        .mc-top {
            position: fixed;
            top: calc(env(safe-area-inset-top, 0px) + var(--ui-gutter));
            left: var(--ui-gutter);
            display: flex;
            align-items: center;
            gap: var(--ds-2);
            pointer-events: none;
            z-index: 1700; /* FAB'lerin üstünde (1600) */
        }
        /* Hide mc-top on desktop (top nav shows instead) */
        @media (min-width: 769px) {
            .mc-top {
                display: none;
            }
        }
        .mc-brand {
            pointer-events: auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 40px;
            padding: 0 12px;
            background: var(--ds-surface);
            border: 1px solid var(--ds-border-soft);
            border-radius: var(--ds-r-2);
            box-shadow: var(--ds-shadow-1);
            text-decoration: none;
            transition: transform var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease), background var(--ds-dur) var(--ds-ease);
        }
        .mc-brand:hover {
            transform: translateY(-1px);
            box-shadow: var(--ds-shadow-2);
            background: var(--ds-surface-strong);
        }
        .mc-brand-img {
            height: 24px; /* Mobil logo: 24px */
            width: auto;
            max-width: 120px;
            display: block;
            object-fit: contain;
        }
        .mc-brand-text {
            font-size: 0.875rem;
            font-weight: 700;
            letter-spacing: -0.01em;
            color: var(--slate-900);
        }
        .mc-icon-btn {
            pointer-events: auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: var(--ds-r-2);
            border: 1px solid var(--ds-border-soft);
            background: var(--ds-surface);
            box-shadow: var(--ds-shadow-1);
            color: var(--slate-800);
            cursor: pointer;
            transition: transform var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease), background var(--ds-dur) var(--ds-ease);
            -webkit-tap-highlight-color: transparent;
        }
        .mc-icon-btn:hover {
            transform: translateY(-1px);
            box-shadow: var(--ds-shadow-2);
            background: var(--ds-surface-strong);
        }
        .mc-icon-btn:active { transform: translateY(0); }
        .mc-icon-btn-inline {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            box-shadow: none;
            background: rgba(15,23,42,0.03);
            border-color: rgba(15,23,42,0.08);
            margin-right: 8px;
        }
        .mc-login-btn {
            pointer-events: auto;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            height: 40px;
            padding: 0 12px;
            background: var(--ds-surface);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border-radius: var(--ds-r-2);
            box-shadow: var(--ds-shadow-1);
            border: 1px solid var(--ds-border-soft);
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: transform var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease), background var(--ds-dur) var(--ds-ease), border-color var(--ds-dur) var(--ds-ease);
            white-space: nowrap;
        }
        .mc-login-btn:hover {
            transform: translateY(-1px);
            box-shadow: var(--ds-shadow-2);
            background: var(--ds-surface-strong);
        }
        .mc-login-btn:active {
            transform: translateY(0);
        }
        .mc-login-btn .g-icon {
            width: 18px;
            height: 18px;
            display: inline-block;
            flex-shrink: 0;
        }
        .mc-login-btn .btn-text {
            display: inline;
        }
        @media (max-width: 768px) {
            .mc-login-btn {
                padding: 0 10px;
                font-size: 0.8125rem;
            }
            .mc-login-btn .btn-text {
                display: inline;
            }
        }

        .mc-fabs {
            position: fixed;
            pointer-events: none;
            z-index: 1600; /* Bay panel'in altında (2000) */
            transition: opacity var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease);
        }
        
        /* Bay panel açıkken FAB'leri gizle */
        body.panel-open .mc-fabs {
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
        }
        
        /* Desktop: FABs bottom-left, stacked vertically */
        @media (min-width: 769px) {
            .mc-fabs {
                left: var(--ui-gutter);
                bottom: calc(env(safe-area-inset-bottom, 0px) + var(--ui-gutter));
                display: flex;
                flex-direction: column;
                gap: 12px;
            }
        }
        
        /* Mobile: FABs top corners */
        @media (max-width: 768px) {
            .mc-fabs {
                top: calc(env(safe-area-inset-top, 0px) + var(--ui-gutter));
                left: 0;
                right: 0;
                display: block;
                padding: 0;
                /* Mobile: some browsers won't deliver touch events to children if parent has pointer-events:none */
                pointer-events: auto;
            }
        }
        
        .mc-fab {
            pointer-events: auto;
            width: 48px; /* FAB boyutu: 48px (touch target) */
            height: 48px;
            min-width: 48px;
            min-height: 48px;
            border-radius: 14px;
            border: 1px solid rgba(15, 23, 42, 0.2);
            background: rgba(15, 23, 42, 0.85); /* Koyu renk */
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
            color: white; /* Beyaz ikon */
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease), background var(--ds-dur) var(--ds-ease);
            -webkit-tap-highlight-color: transparent;
            z-index: 1650; /* Above mobile panel overlay (998), below search popover (1700) */
        }
        /* Timeline modal açıkken FAB'ları gizle */
        body.timeline-open .mc-fabs {
            display: none !important;
        }
        .mc-fab svg {
            width: 22px; /* İkon: 22px */
            height: 22px;
        }
        .mc-fab:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
            background: rgba(15, 23, 42, 0.95);
        }
        .mc-fab:active {
            transform: translateY(0);
        }
        .mc-fab:focus-visible {
            outline: 2px solid rgba(255, 255, 255, 0.6);
            outline-offset: 2px;
        }
        
        /* Desktop: FABs stacked */
        @media (min-width: 769px) {
            .mc-fab-left,
            .mc-fab-right {
                position: relative;
                left: auto;
                right: auto;
            }
            /* Show search FAB on desktop */
            #mc-search-fab {
                display: inline-flex !important;
            }
        }
        /* Hide search FAB on mobile (it's in top-row) */
        @media (max-width: 768px) {
            #mc-search-fab {
                display: none !important;
            }
            /* Push FAB inside mc-fabs is desktop-only; mobile uses #bt-push-btn-mobile in top-row */
            #bt-push-btn {
                display: none !important;
            }
        }
        /* Push mobile button: only show on mobile */
        @media (min-width: 769px) {
            #bt-push-btn-mobile {
                display: none !important;
            }
        }
        
        /* Mobile: FABs positioning */
        @media (max-width: 768px) {
            /* Search FAB: top-row içinde (logo ile aynı satır) - handled by top-row */
            .mc-top-row .mc-fab-left {
                position: relative;
                left: auto;
                top: auto;
                flex-shrink: 0;
            }
            /* Locate FAB: top-right corner (standalone, below top-row) */
            .mc-fab-right {
                position: fixed;
                right: var(--ui-gutter);
                top: calc(env(safe-area-inset-top, 0px) + 16px + 48px + 8px); /* top-row height (48px) + gap (8px) */
            }
            /* Mobile: Use a dedicated locate button to avoid parent stacking/pointer-events quirks on real devices */
            #mc-locate-fab {
                display: none !important; /* keep existing button for desktop */
            }
            #mc-locate-fab-mobile {
                display: inline-flex !important;
                position: fixed !important;
                right: var(--ui-gutter) !important;
                top: calc(env(safe-area-inset-top, 0px) + 16px + 48px + 8px) !important;
                /* Keep below overlays (More Sheet: 2000, Page Modal: 2100), but above top-row (1700) */
                z-index: 1750 !important;
                pointer-events: auto !important;
                touch-action: manipulation;
                -webkit-tap-highlight-color: transparent;
                transform: translateZ(0);
            }
        }
        /* Desktop: hide mobile locate button */
        #mc-locate-fab-mobile { display: none; }

        .mc-search-popover {
            position: fixed;
            pointer-events: none;
            opacity: 0;
            transform: translateY(6px);
            transition: opacity var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease);
            z-index: 1800; /* Above FABs + locate on mobile */
        }
        /* Desktop: Search popover below FABs */
        @media (min-width: 769px) {
            .mc-search-popover {
                left: var(--ui-gutter);
                bottom: calc(env(safe-area-inset-bottom, 0px) + var(--ui-gutter) + 64px + 12px);
                width: min(420px, calc(100vw - (var(--ui-gutter) * 2)));
            }
        }
        /* Mobile: Search popover below top row */
        @media (max-width: 768px) {
            .mc-search-popover {
                left: var(--ui-gutter);
                top: calc(env(safe-area-inset-top, 0px) + 16px + 48px + 8px); /* top-row height + gap */
                width: min(420px, calc(100vw - (var(--ui-gutter) * 2)));
                max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px - 48px - 8px - 16px); /* Viewport içinde */
            }
        }
        .mc-search-popover.open {
            opacity: 1;
            transform: translateY(0);
            pointer-events: none;
        }
        /* Ensure aria-hidden is false when popover is open */
        .mc-search-popover.open[aria-hidden="true"] {
            /* This shouldn't happen, but if it does, fix it */
        }
        .mc-search-surface {
            pointer-events: auto;
            background: var(--ds-surface);
            border: 1px solid var(--ds-border-soft);
            border-radius: var(--ds-r-3);
            box-shadow: var(--ds-shadow-2);
            padding: var(--ds-2);
            display: flex;
            flex-direction: column;
            max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 100px);
            overflow: hidden;
        }
        .mc-search-surface .search-container {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }
        /* Override old search collapsing behavior inside popover */
        .mc-search-popover .search-box { width: 100% !important; height: 48px; border-radius: var(--ds-r-2); }
        .mc-search-popover .search-icon { min-width: 48px; height: 48px; }
        .mc-search-popover .search-input { opacity: 1 !important; font-size: var(--ds-text); padding-right: 8px; }
        .mc-search-popover .search-results {
            width: 100% !important;
            margin-top: 10px;
            position: relative !important;
            top: auto !important;
            left: auto !important;
            max-height: 400px;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            flex: 1;
            min-height: 0;
        }

        /* Shore Photo Modal */
        .shore-photo-modal {
            position: fixed;
            inset: 0;
            z-index: 2000;
            display: none;
            background: rgba(2, 6, 23, 0.75);
            backdrop-filter: blur(4px);
            align-items: center;
            justify-content: center;
            padding: var(--ui-gutter);
        }
        .shore-photo-modal[aria-hidden="false"] {
            display: flex;
        }
        .shore-photo-surface {
            background: var(--ds-surface);
            border-radius: 12px;
            border: 1px solid var(--ds-border-soft);
            box-shadow: 0 24px 64px rgba(2, 6, 23, 0.24);
            width: min(480px, 100%);
            max-height: min(90vh, 800px);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .shore-photo-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: var(--ds-3);
            border-bottom: 1px solid var(--ds-border-soft);
        }
        .shore-photo-header h3 {
            margin: 0;
            font-size: var(--ds-text-xl);
            font-weight: 600;
            color: var(--ds-text);
        }
        .shore-photo-content {
            flex: 1;
            overflow-y: auto;
            padding: var(--ds-3);
            display: flex;
            flex-direction: column;
            gap: var(--ds-2);
        }
        .shore-photo-camera {
            position: relative;
            background: #000;
            border-radius: 8px;
            overflow: hidden;
            aspect-ratio: 4/3;
        }
        .shore-photo-camera video,
        .shore-photo-camera canvas {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .shore-photo-preview {
            position: relative;
            background: #000;
            border-radius: 8px;
            overflow: hidden;
            aspect-ratio: 4/3;
        }
        .shore-photo-preview img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        .shore-photo-status {
            padding: var(--ds-2);
            border-radius: 6px;
            font-size: var(--ds-text-sm);
            font-weight: 500;
        }
        .shore-photo-status.success {
            background: #d1fae5;
            color: #065f46;
            border: 1px solid #6ee7b7;
        }
        .shore-photo-status.error {
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #fca5a5;
        }
        .shore-photo-status.info {
            background: #dbeafe;
            color: #1e40af;
            border: 1px solid #93c5fd;
        }
        .shore-photo-instructions {
            background: var(--ds-surface-raised);
            padding: var(--ds-2);
            border-radius: 6px;
            font-size: var(--ds-text-sm);
            color: var(--ds-text-muted);
            border: 1px solid var(--ds-border-soft);
        }
        .shore-photo-instructions p {
            margin: 0.5rem 0;
        }
        .shore-photo-instructions p:first-child {
            margin-top: 0;
        }
        .shore-photo-instructions p:last-child {
            margin-bottom: 0;
        }
        .shore-photo-actions {
            display: flex;
            gap: var(--ds-2);
            padding: var(--ds-3);
            border-top: 1px solid var(--ds-border-soft);
        }
        .shore-photo-actions .btn {
            flex: 1;
            padding: 12px 16px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            font-size: var(--ds-text);
        }
        .shore-photo-actions .btn-primary {
            background: var(--ds-primary);
            color: white;
        }
        .shore-photo-actions .btn-primary:hover {
            opacity: 0.9;
        }
        .shore-photo-actions .btn-secondary {
            background: var(--ds-surface-raised);
            color: var(--ds-text);
            border: 1px solid var(--ds-border);
        }
        .shore-photo-actions .btn-secondary:hover {
            background: var(--ds-surface-hover);
        }
        .shore-photo-actions .btn-success {
            background: #10b981;
            color: white;
        }
        .shore-photo-actions .btn-success:hover {
            background: #059669;
        }
        #mc-shore-photo-fab {
            margin-top: 8px;
        }
        @media (max-width: 768px) {
            #mc-shore-photo-fab {
                position: fixed;
                top: calc(env(safe-area-inset-top, 0px) + 16px + 48px + 8px + 48px + 12px + 48px + 12px);
                right: 12px;
                z-index: 1620 !important; /* Shore photo FAB: map-view-switcher'ın altında */
            }
        }

        .mc-menu { position: fixed; inset: 0; z-index: 1990; display: none; }
        .mc-menu.open { display: block; }
        .mc-menu-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(2, 6, 23, 0.45);
            backdrop-filter: blur(2px);
        }
        .mc-menu-panel {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--ds-surface);
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
            border: 1px solid var(--ds-border-soft);
            box-shadow: 0 -18px 48px rgba(2, 6, 23, 0.18);
            padding: var(--ds-3);
            padding-bottom: calc(var(--ds-3) + env(safe-area-inset-bottom, 0px));
            max-height: min(70vh, 520px);
            overflow: auto;
            transform: translateY(12px);
            opacity: 0;
            transition: transform var(--ds-dur) var(--ds-ease), opacity var(--ds-dur) var(--ds-ease);
        }
        .mc-menu.open .mc-menu-panel {
            transform: translateY(0);
            opacity: 1;
        }
        .mc-menu-header {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding: var(--ds-2) var(--ds-2) var(--ds-3);
        }
        .mc-menu-list { display: flex; flex-direction: column; gap: var(--ds-2); }
        .mc-menu-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--ds-3);
            width: 100%;
            padding: 14px 14px;
            border-radius: var(--ds-r-2);
            border: 1px solid rgba(15, 23, 42, 0.08);
            background: rgba(255,255,255,0.88);
            color: var(--slate-900);
            text-decoration: none;
            cursor: pointer;
            transition: background var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease);
        }
        .mc-menu-item:hover {
            background: rgba(255,255,255,0.96);
            transform: translateY(-1px);
            box-shadow: 0 10px 22px rgba(2,6,23,0.08);
        }
        .mc-menu-item:active { transform: translateY(0); }
        .mc-menu-ico { width: 24px; display: inline-flex; justify-content: center; align-items: center; font-size: 18px; }
        .mc-menu-label { flex: 1; text-align: left; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; }
        .mc-menu-chev { opacity: 0.55; font-size: 20px; }

        @media (min-width: 1024px) {
            .mc-menu-panel {
                top: 0;
                bottom: 0;
                left: auto;
                right: 0;
                width: min(380px, 92vw);
                border-radius: 0;
                border-left: 1px solid var(--ds-border-soft);
                border-top: none;
                box-shadow: -18px 0 48px rgba(2, 6, 23, 0.14);
                padding-top: calc(env(safe-area-inset-top, 0px) + var(--ds-4));
                transform: translateX(12px);
            }
            .mc-menu.open .mc-menu-panel {
                transform: translateX(0);
            }
        }

        /* Ensure focus ring works on our controls */
        .mc-icon-btn:focus-visible,
        .mc-fab:focus-visible,
        .mc-menu-item:focus-visible {
            outline: 2px solid rgba(59,130,246,0.55);
            outline-offset: 3px;
        }

        /* ============================================
           NEW NAVIGATION SYSTEM
           ============================================ */
        
        /* Floating Dock Navigation (Map-First Design) */
        /* Mobile: Bottom floating dock (centered, 3 items) */
        .floating-dock {
            position: fixed;
            bottom: calc(16px + env(safe-area-inset-bottom, 0px));
            left: 50%;
            transform: translateX(-50%);
            z-index: 1500;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(15, 23, 42, 0.1);
            border-radius: 20px; /* 18-22px range */
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
            padding: 8px;
            display: none; /* Hidden by default */
            pointer-events: none;
            transition: bottom 0.3s ease-out, opacity 0.2s ease;
        }
        @media (max-width: 768px) {
            .floating-dock {
                display: flex;
            }
        }
        .floating-dock-list {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .dock-item {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-width: 56px;
            min-height: 56px;
            padding: 8px 12px;
            border-radius: 14px;
            background: transparent;
            border: none;
            color: var(--slate-600);
            text-decoration: none;
            cursor: pointer;
            transition: all 200ms ease-out;
            -webkit-tap-highlight-color: transparent;
            pointer-events: auto;
        }
        .dock-item:active {
            transform: scale(0.95);
        }
        .dock-item.active {
            background: rgba(14, 165, 233, 0.1);
            color: var(--primary-color);
        }
        .dock-icon {
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }
        .dock-item.active .dock-icon {
            width: 22px; /* Active: 22px */
            height: 22px;
        }
        .dock-icon svg {
            width: 100%;
            height: 100%;
        }
        .dock-label {
            font-size: 0.625rem;
            font-weight: 600;
            line-height: 1.2;
            margin-top: 2px;
            display: none; /* Hidden by default */
        }
        .dock-item.active .dock-label {
            display: block; /* Show only on active */
        }
        .dock-item:focus-visible {
            outline: 2px solid rgba(59, 130, 246, 0.55);
            outline-offset: 2px;
        }
        
        /* Desktop: Right-bottom dock */
        @media (min-width: 769px) {
            .floating-dock {
                bottom: calc(16px + env(safe-area-inset-bottom, 0px));
                right: var(--ui-gutter);
                left: auto;
                transform: none;
                display: flex;
            }
            .floating-dock-list {
                flex-direction: column;
                gap: 8px;
            }
            .dock-item {
                min-width: 52px;
                min-height: 52px;
                padding: 10px;
            }
            .dock-item-more {
                display: none; /* Hide "More" on desktop (profile menu has it) */
            }
        }
        
        /* More Button (Mobile only, positioned separately) */
        .dock-item-more {
            position: fixed;
            bottom: calc(16px + env(safe-area-inset-bottom, 0px));
            right: 16px;
            z-index: 1500;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1.5px solid rgba(15, 23, 42, 0.15);
            border-radius: 20px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
            padding: 10px 14px;
            min-width: 60px;
            min-height: 60px;
            display: none; /* Hidden by default */
            pointer-events: auto;
            transition: all 0.2s ease-out;
            -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
        }
        .dock-item-more:active {
            transform: scale(0.95);
        }
        .dock-item-more:focus-visible {
            outline: 2px solid rgba(59, 130, 246, 0.5);
            outline-offset: 2px;
        }
        @media (max-width: 768px) {
            .dock-item-more {
                display: flex;
            }
            .dock-item-more .dock-icon {
                width: 24px;
                height: 24px;
            }
            .dock-item-more .dock-label {
                display: none; /* Hide label on mobile for cleaner look */
            }
        }
        /* Marina kartı açıkken More butonunu da yukarı taşı (JavaScript handles this) */

        /* Top Row Container (Mobile: logo + search in same row) */
        .mc-top-row {
            position: fixed;
            top: calc(env(safe-area-inset-top, 0px) + 16px);
            left: 16px;
            right: 16px;
            z-index: 1700;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            pointer-events: none;
        }
        @media (min-width: 769px) {
            .mc-top-row {
                display: none; /* Desktop'ta gizle (brand-chip ve profile-chip ayrı) */
            }
        }
        
        /* Brand Chip (Mobile: inside top-row, Desktop: standalone) */
        .brand-chip {
            position: relative; /* Mobile: top-row içinde relative */
            z-index: 1700;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(15, 23, 42, 0.1);
            border-radius: 999px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            text-decoration: none;
            color: var(--slate-900);
            font-weight: 700;
            font-size: 0.875rem;
            transition: all 200ms ease-out;
            pointer-events: auto;
            flex-shrink: 0;
            min-width: 0; /* Allow text truncation */
            overflow: hidden; /* Text truncation */
        }
        /* Mobile: Hide standalone brand-chip (only show the one inside mc-top-row) */
        @media (max-width: 768px) {
            body > .brand-chip {
                display: none !important;
            }
        }
        /* Desktop: brand-chip standalone (top-left) */
        @media (min-width: 769px) {
            .brand-chip {
                display: flex !important;
                position: fixed;
                top: calc(env(safe-area-inset-top, 0px) + 16px);
                left: 16px;
            }
        }
        .brand-chip:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        .brand-chip-img {
            height: 20px;
            width: auto;
            max-width: 100px;
            object-fit: contain;
        }
        .brand-chip-text {
            font-size: 0.875rem;
            font-weight: 700;
            letter-spacing: -0.01em;
        }
        
        /* Profile Menu Chip (Desktop: top-right) */
        .profile-chip {
            position: fixed;
            top: calc(env(safe-area-inset-top, 0px) + 16px);
            right: 16px;
            z-index: 1700;
            display: none; /* Hidden on mobile */
        }
        @media (min-width: 769px) {
            .profile-chip {
                display: block;
            }
        }
        .profile-chip-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(15, 23, 42, 0.1);
            border-radius: 999px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            color: var(--slate-700);
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 200ms ease-out;
        }
        .profile-chip-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        .profile-chip-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
        }
        .profile-chip-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 180px;
            background: white;
            border-radius: 14px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(15, 23, 42, 0.1);
            padding: 8px;
            display: none;
            z-index: 1800;
        }
        .profile-chip-dropdown.open {
            display: block;
        }
        .profile-chip-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 10px;
            color: var(--slate-700);
            text-decoration: none;
            font-size: 0.875rem;
            transition: background 150ms ease;
            cursor: pointer;
            border: none;
            background: transparent;
            width: 100%;
            text-align: left;
        }
        .profile-chip-item:hover {
            background: var(--slate-50);
        }
        .profile-chip-item.danger {
            color: #dc2626;
        }
        .profile-chip-item.danger:hover {
            background: #fef2f2;
        }

        /* Account Menu Dropdown (Desktop) */
        .bt-account-menu {
            position: relative;
        }
        .bt-account-trigger {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            border-radius: var(--ds-r-2);
            border: 1px solid var(--ds-border-soft);
            background: var(--ds-surface);
            color: var(--slate-700);
            cursor: pointer;
            transition: all 180ms var(--ds-ease);
        }
        .bt-account-trigger:hover {
            background: var(--slate-50);
            border-color: var(--slate-300);
        }
        .bt-account-trigger:focus-visible {
            outline: 2px solid rgba(59,130,246,0.55);
            outline-offset: 2px;
        }
        .bt-account-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 200px;
            background: var(--ds-surface);
            border: 1px solid var(--ds-border-soft);
            border-radius: var(--ds-r-2);
            box-shadow: var(--ds-shadow-2);
            padding: var(--ds-2);
            display: none;
            flex-direction: column;
            gap: var(--ds-1);
        }
        .bt-account-dropdown.open {
            display: flex;
        }
        .bt-account-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: var(--ds-r-1);
            color: var(--slate-700);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: background 150ms var(--ds-ease);
        }
        .bt-account-item:hover {
            background: var(--slate-50);
        }
        .bt-account-item.danger {
            color: var(--danger);
        }
        .bt-account-item.danger:hover {
            background: var(--danger-light);
        }
        .bt-account-item:focus-visible {
            outline: 2px solid rgba(59,130,246,0.55);
            outline-offset: -2px;
        }

        /* More Sheet (Mobile) */
        .bt-more-sheet {
            position: fixed;
            inset: 0;
            z-index: 2000;
            display: none;
            pointer-events: none;
        }
        .bt-more-sheet.open {
            display: block;
            pointer-events: auto;
        }
        .bt-more-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(2, 6, 23, 0.55);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            pointer-events: auto;
            cursor: pointer;
        }
        .bt-more-panel {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--ds-surface);
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            border: 1px solid var(--ds-border-soft);
            box-shadow: 0 -18px 48px rgba(2, 6, 23, 0.18);
            padding: var(--ds-3) var(--ds-4) var(--ds-4);
            padding-top: calc(var(--ds-3) + env(safe-area-inset-top, 0px));
            padding-bottom: calc(var(--ds-4) + env(safe-area-inset-bottom, 0px));
            max-height: min(85vh, 600px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            transform: translateY(12px);
            opacity: 0;
            transition: transform 250ms var(--ds-ease), opacity 250ms var(--ds-ease);
            pointer-events: auto;
            touch-action: pan-y;
        }
        .bt-more-sheet.open .bt-more-panel {
            transform: translateY(0);
            opacity: 1;
        }
        .bt-more-drag-handle {
            width: 40px;
            height: 4px;
            background: rgba(15, 23, 42, 0.2);
            border-radius: 2px;
            margin: 0 auto 16px;
            flex-shrink: 0;
        }
        .bt-more-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: var(--ds-4);
            margin-bottom: var(--ds-3);
            border-bottom: 2px solid var(--ds-border-soft);
        }
        .bt-more-header .mc-icon-btn {
            width: 44px;
            height: 44px;
            font-size: 24px;
            font-weight: 600;
            color: var(--slate-700);
            background: rgba(15, 23, 42, 0.05);
        }
        .bt-more-header .mc-icon-btn:hover {
            background: rgba(15, 23, 42, 0.1);
            color: var(--slate-900);
        }
        .bt-more-title {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--slate-900);
            letter-spacing: -0.01em;
        }
        .bt-more-list {
            display: flex;
            flex-direction: column;
            gap: var(--ds-3);
        }
        .bt-more-item {
            display: flex;
            align-items: center;
            gap: var(--ds-4);
            padding: 18px 20px;
            min-height: 60px;
            border-radius: var(--ds-r-2);
            border: 1.5px solid rgba(15, 23, 42, 0.12);
            background: rgba(255,255,255,0.95);
            color: var(--slate-900);
            text-decoration: none;
            cursor: pointer;
            transition: all 200ms var(--ds-ease);
            -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
            width: 100%;
            text-align: left;
        }
        .bt-more-item:hover {
            background: rgba(255,255,255,1);
            border-color: rgba(59, 130, 246, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
        }
        .bt-more-item:active {
            transform: translateY(0);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
        }
        .bt-more-item:focus-visible {
            outline: 2px solid rgba(59, 130, 246, 0.5);
            outline-offset: 2px;
        }
        .bt-more-item.danger {
            color: #dc2626;
            border-color: rgba(220, 38, 38, 0.25);
            background: rgba(254, 242, 242, 0.95);
        }
        .bt-more-item.danger:hover {
            background: rgba(254, 242, 242, 1);
            border-color: rgba(220, 38, 38, 0.4);
        }
        .bt-more-icon {
            width: 32px;
            height: 32px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 22px;
            flex-shrink: 0;
            background: rgba(59, 130, 246, 0.08);
            border-radius: 10px;
        }
        .bt-more-item.danger .bt-more-icon {
            background: rgba(220, 38, 38, 0.1);
        }
        .bt-more-label {
            flex: 1;
            font-weight: 700;
            font-size: 1rem;
            line-height: 1.4;
            color: var(--slate-900);
        }
        
        /* Mobile specific improvements */
        @media (max-width: 768px) {
            .bt-more-panel {
                padding: var(--ds-4) var(--ds-5) var(--ds-5);
                padding-top: calc(var(--ds-4) + env(safe-area-inset-top, 0px));
                padding-bottom: calc(var(--ds-5) + env(safe-area-inset-bottom, 0px));
                max-height: min(90vh, 650px);
            }
            .bt-more-item {
                padding: 20px 22px;
                min-height: 64px;
                font-size: 1rem;
            }
            .bt-more-icon {
                width: 40px;
                height: 40px;
                font-size: 26px;
                background: rgba(59, 130, 246, 0.12);
            }
            .bt-more-label {
                font-size: 1.125rem;
                font-weight: 700;
                letter-spacing: -0.01em;
            }
            .bt-more-title {
                font-size: 1.5rem;
                font-weight: 900;
            }
            .bt-more-drag-handle {
                width: 48px;
                height: 5px;
                background: rgba(15, 23, 42, 0.25);
                margin-bottom: 20px;
            }
            .bt-more-header {
                padding-bottom: var(--ds-5);
                margin-bottom: var(--ds-4);
            }
            .bt-more-list {
                gap: var(--ds-4);
            }
        }

        /* Scroll lock when menu/sheet open */
        body.bt-nav-locked {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        /* Reduced motion */
        @media (prefers-reduced-motion: reduce) {
            .bt-nav-item,
            .bt-top-nav-link,
            .bt-account-trigger,
            .bt-account-item,
            .bt-more-item,
            .bt-more-panel {
                transition: none;
            }
        }

        /* Menu pages modal */
        .mc-page-modal { position: fixed; inset: 0; z-index: 2100; display: none; }
        .mc-page-modal.open { display: flex; align-items: center; justify-content: center; }
        .mc-page-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(2, 6, 23, 0.52);
            backdrop-filter: blur(3px);
        }
        .mc-page-panel {
            position: relative;
            width: min(760px, calc(100vw - (var(--ui-modal-pad) * 2)));
            max-height: min(80vh, 760px);
            overflow: auto;
            background: var(--ds-surface);
            border: 1px solid var(--ds-border-soft);
            border-radius: var(--ds-r-3);
            box-shadow: var(--ds-shadow-2);
        }
        .mc-page-header {
            position: sticky;
            top: 0;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--ds-3);
            padding: var(--ds-4) var(--ds-5);
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(15,23,42,0.08);
        }
        .mc-page-title {
            font-weight: 900;
            letter-spacing: -0.01em;
            color: var(--slate-900);
            font-size: var(--ds-title);
        }
        .mc-page-body { padding: var(--ds-5); font-size: var(--ds-text); line-height: var(--ds-lh); color: var(--slate-800); }
        .mc-page-body h1 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 var(--ds-3); letter-spacing: -0.01em; }
        .mc-page-body h2 { font-size: 1rem; margin: var(--ds-5) 0 var(--ds-2); letter-spacing: -0.01em; }
        .mc-page-body p { margin: 0 0 var(--ds-3); color: var(--slate-700); }
        .mc-page-body ul { margin: 0; padding-left: 18px; color: var(--slate-700); }
        .mc-page-body li { margin: 0 0 var(--ds-2); }
        .mc-page-card {
            background: rgba(248,250,252,0.92);
            border: 1px solid rgba(15,23,42,0.08);
            border-radius: var(--ds-r-2);
            padding: var(--ds-4);
            margin: var(--ds-4) 0;
        }
        .mc-page-meta { font-size: var(--ds-text-sm); font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); margin-bottom: var(--ds-2); }
        .mc-page-link { color: #2563eb; font-weight: 800; text-decoration: none; }
        .mc-page-link:hover { text-decoration: underline; }
        .mc-page-muted { color: var(--slate-500); font-size: var(--ds-text-sm); }
        
        /* Blog list (map modal) */
        .mc-page-list { display: flex; flex-direction: column; gap: var(--ds-2); margin-top: var(--ds-3); }
        .mc-page-list-item {
            display: block;
            border: 1px solid rgba(15,23,42,0.10);
            background: rgba(255,255,255,0.92);
            border-radius: 14px;
            padding: 14px;
            text-decoration: none;
            color: var(--slate-900);
            transition: transform 160ms var(--ds-ease), box-shadow 160ms var(--ds-ease), border-color 160ms var(--ds-ease);
        }
        .mc-page-list-item:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(2,6,23,0.08); border-color: rgba(59,130,246,0.25); }
        .mc-page-list-title { font-weight: 900; letter-spacing: -0.01em; margin-bottom: 6px; }
        .mc-page-list-desc { color: var(--slate-700); font-size: 0.93rem; margin-bottom: 8px; }
        .mc-page-list-meta { color: var(--slate-500); font-size: 0.8rem; display:flex; gap:8px; flex-wrap:wrap; }

        /* FAQ (map modal, no Tailwind dependency) */
        .faq-category-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
        .faq-category-btn {
            border: 1px solid rgba(15,23,42,0.12);
            background: rgba(248,250,252,0.92);
            color: var(--slate-700);
            padding: 10px 12px;
            border-radius: 999px;
            font-weight: 800;
            font-size: 0.875rem;
            cursor: pointer;
            transition: background 160ms var(--ds-ease), border-color 160ms var(--ds-ease), color 160ms var(--ds-ease);
        }
        .faq-category-btn.is-active {
            background: rgba(59,130,246,0.12);
            border-color: rgba(59,130,246,0.35);
            color: #1d4ed8;
        }
        .faq-item { border: 1px solid rgba(15,23,42,0.10); border-radius: 14px; background: rgba(255,255,255,0.92); margin-bottom: 10px; overflow: hidden; }
        .faq-question {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 14px;
            border: 0;
            background: transparent;
            cursor: pointer;
            font-weight: 900;
            letter-spacing: -0.01em;
            color: var(--slate-900);
            text-align: left;
        }
        .faq-chevron { opacity: 0.7; font-size: 18px; }
        .faq-answer { padding: 0 14px 14px; color: var(--slate-700); }
        .faq-answer p { margin: 10px 0 0; }

        /* Contact form (map modal) */
        .mc-form { display: grid; gap: 12px; }
        .mc-form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
        @media (min-width: 640px) { .mc-form-grid { grid-template-columns: 1fr 1fr; } }
        .mc-field { display: grid; gap: 6px; }
        .mc-label { font-weight: 800; color: var(--slate-800); font-size: 0.9rem; }
        .mc-input, .mc-select, .mc-textarea {
            width: 100%;
            border-radius: 14px;
            border: 1px solid rgba(15,23,42,0.12);
            padding: 12px 14px;
            background: rgba(255,255,255,0.96);
            color: var(--slate-900);
            font-size: 1rem;
        }
        .mc-select { height: 48px; }
        .mc-textarea { resize: vertical; min-height: 120px; }
        .mc-input:focus, .mc-select:focus, .mc-textarea:focus { outline: 2px solid rgba(59,130,246,0.35); outline-offset: 2px; }
        .mc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--slate-700); }
        .mc-check input { margin-top: 3px; }
        .mc-btn-primary {
            height: 48px;
            border-radius: 14px;
            border: 1px solid rgba(2, 132, 199, 0.25);
            background: #0284c7;
            color: white;
            font-weight: 900;
            letter-spacing: -0.01em;
            cursor: pointer;
            transition: filter 160ms var(--ds-ease), transform 160ms var(--ds-ease);
        }
        .mc-btn-primary:active { transform: translateY(1px); }
        .mc-btn-primary:hover { filter: brightness(0.98); }
        .mc-btn-primary[disabled] { opacity: 0.7; cursor: not-allowed; }
        .mc-success {
            border: 1px solid rgba(16,185,129,0.25);
            background: rgba(209,250,229,0.6);
            color: #065f46;
            border-radius: 14px;
            padding: 12px 14px;
            font-weight: 700;
        }

        @media (max-width: 768px) {
            .mc-page-modal.open { align-items: flex-end; }
            .mc-page-panel {
                width: 100%;
                border-radius: 16px 16px 0 0;
                max-height: 88vh;
            }
            .mc-page-body { padding: var(--ds-4); padding-bottom: calc(var(--ds-4) + env(safe-area-inset-bottom, 0px)); }
        }
        
        /* Nearby Bays Panel - Live Location Based */
        .nearby-bays-panel {
            position: fixed;
            bottom: calc(var(--ui-gutter) + env(safe-area-inset-bottom, 0px));
            left: var(--ui-gutter);
            max-width: 280px;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
            z-index: 999;
            transform: translateY(0);
            transition: transform 0.3s ease-out;
            border: 1px solid rgba(255, 255, 255, 0.5);
            overflow: hidden;
        }
        .nearby-bays-panel.active {
            transform: translateY(0);
        }
        .nearby-bays-header {
            padding: 8px 12px;
            border-bottom: 1px solid rgba(226, 232, 240, 0.6);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.85);
        }
        .nearby-bays-header h3 {
            margin: 0;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--slate-900);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .nearby-bays-header .location-status {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--safe-color);
            animation: pulse 2s infinite;
            flex-shrink: 0;
        }
        .nearby-bays-header .location-status.tracking {
            background: var(--caution-color);
        }
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        .nearby-bays-close:hover {
            background: var(--slate-100);
            color: var(--slate-900);
        }
        .nearby-bays-content {
            max-height: 280px;
            overflow-y: auto;
            padding: 8px;
        }
        .nearby-bay-item {
            padding: 6px 8px;
            border-radius: 6px;
            margin-bottom: 4px;
            background: rgba(248, 250, 252, 0.6);
            border: 1px solid rgba(226, 232, 240, 0.5);
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }
        .nearby-bay-item:hover {
            background: rgba(241, 245, 249, 0.8);
            border-color: var(--wind-color);
            transform: translateX(2px);
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
        }
        .nearby-bay-item:last-child {
            margin-bottom: 0;
        }
        .nearby-bay-info {
            flex: 1;
            min-width: 0;
        }
        .nearby-bay-name {
            font-weight: 600;
            color: var(--slate-900);
            font-size: 0.75rem;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .nearby-bay-type {
            font-size: 0.625rem;
            color: var(--slate-500);
        }
        .nearby-bay-distance {
            text-align: right;
            margin-left: 6px;
            flex-shrink: 0;
        }
        .nearby-bay-distance-value {
            font-weight: 700;
            color: var(--wind-color);
            font-size: 0.8125rem;
        }
        .nearby-bay-distance-unit {
            font-size: 0.625rem;
            color: var(--slate-500);
        }
        .nearby-bays-loading {
            padding: 12px;
            text-align: center;
            color: var(--slate-500);
            font-size: 0.6875rem;
        }
        .nearby-bays-empty {
            padding: 12px;
            text-align: center;
            color: var(--slate-500);
            font-size: 0.6875rem;
        }
        
        /* Mobile Responsive - Nearby Bays Panel */
        @media (max-width: 768px) {
            .nearby-bays-panel {
                bottom: calc(var(--ui-gutter) + env(safe-area-inset-bottom, 0px));
                left: var(--ui-gutter);
                right: auto;
                max-width: 200px;
                width: auto;
                border-radius: 8px;
                max-height: 25vh;
                box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
            }
            .nearby-bays-header {
                padding: 8px 12px;
                position: sticky;
                top: 0;
                z-index: 10;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(10px);
            }
            .nearby-bays-header h3 {
                font-size: 0.75rem;
            }
            .nearby-bays-content {
                max-height: calc(25vh - 32px);
                padding: 4px 6px;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }
            .nearby-bay-item {
                padding: 4px 6px;
                margin-bottom: 3px;
                border-radius: 4px;
            }
            .nearby-bay-name {
                font-size: 0.75rem;
                font-weight: 600;
            }
            .nearby-bay-type {
                font-size: 0.625rem;
            }
            .nearby-bay-distance-value {
                font-size: 0.875rem;
            }
            .nearby-bay-distance-unit {
                font-size: 0.625rem;
            }
            
            /* Control buttons mobile adjustment */
            #control-buttons-container {
                top: 70px !important;
                left: 10px !important;
                gap: 8px !important;
            }
            
            #find-nearby-btn {
                font-size: 0.8125rem !important;
                padding: 10px 14px !important;
                white-space: nowrap;
            }
            
            #route-planning-btn {
                font-size: 0.8125rem !important;
                padding: 10px 14px !important;
            }
        }
        
        /* Tablet */
        @media (min-width: 769px) and (max-width: 1024px) {
            .nearby-bays-panel {
                max-width: 380px;
            }
        }
        
        /* Overview Cards */
        .overview-summary {
            padding: 16px;
            border-radius: 12px;
            margin-bottom: 20px;
            border-left: 4px solid;
        }
        .overview-summary.safe { 
            background: var(--safe-light);
            border-color: var(--safe-color);
            color: #065f46;
        }
        .overview-summary.caution { 
            background: var(--caution-light);
            border-color: var(--caution-color);
            color: #92400e;
        }
        .overview-summary.risky { 
            background: var(--risky-light);
            border-color: var(--risky-color);
            color: #991b1b;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }
        .stat-card {
            padding: 12px;
            border-radius: 8px;
            text-align: center;
            border: 1px solid var(--slate-200);
        }
        .stat-card.safe {
            background: var(--safe-light);
            border-color: var(--safe-color);
        }
        .stat-card.caution {
            background: var(--caution-light);
            border-color: var(--caution-color);
        }
        .stat-card.risky {
            background: var(--risky-light);
            border-color: var(--risky-color);
        }
        .stat-label {
            font-size: 0.625rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--slate-600);
            margin-bottom: 4px;
        }
        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            color: var(--slate-900);
        }
        .stat-value.safe { color: #065f46; }
        .stat-value.caution { color: #92400e; }
        .stat-value.risky { color: #991b1b; }
        
        /* Enhanced Timeline */
        .timeline-container {
            margin-bottom: 24px;
        }
        .timeline-bar-new {
            display: flex;
            gap: 4px;
            overflow-x: auto;
            padding-bottom: 8px;
            scroll-snap-type: x mandatory;
        }
        .timeline-hour-new {
            width: 56px;
            height: 70px;
            border-radius: 6px;
            padding: 6px 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
            scroll-snap-align: start;
            transition: all 0.15s ease-out;
            border: 1px solid rgba(0,0,0,0.1);
        }
        .timeline-hour-new:hover {
            box-shadow: var(--shadow-md);
            z-index: 10;
            filter: brightness(1.08);
        }
        .timeline-hour-new.safe {
            background: var(--safe-color);
            color: white;
        }
        .timeline-hour-new.caution {
            background: var(--caution-color);
            color: #1f2937;
        }
        .timeline-hour-new.risky {
            background: var(--risky-color);
            color: white;
        }
        .timeline-hour-time {
            font-size: 0.625rem;
            font-weight: 600;
            text-transform: uppercase;
        }
        .timeline-hour-wind {
            font-size: 0.625rem;
            text-align: center;
        }
        .timeline-hour-score {
            font-size: 0.875rem;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
        }
        
        /* Mobile Panel - floating card (matching timeline modal) */
        @media (max-width: 768px) {
            .bay-panel {
                width: calc(100vw - 20px) !important;
                max-height: 82vh !important;
                height: auto !important;
                top: auto !important;
                bottom: 10px !important;
                left: 10px !important;
                right: 10px !important;
                border-radius: 16px !important;
                transform: translateY(calc(100% + 20px));
                padding-bottom: env(safe-area-inset-bottom, 0px);
                box-shadow: 0 8px 32px rgba(0,0,0,0.18);
                overflow: hidden;
            }
            .bay-panel.open {
                transform: translateY(0);
            }
            .bay-panel-header {
                padding: 14px 16px !important;
                padding-top: calc(14px + env(safe-area-inset-top, 0px)) !important;
                border-radius: 16px 16px 0 0 !important;
            }
            .bay-panel-content {
                padding: 14px !important;
                max-height: calc(82vh - 60px) !important;
            }
            /* Mobile: Full-screen overlay behind panel */
            .bay-panel-overlay {
                display: none;
            }
            body.panel-open .bay-panel-overlay {
                display: block;
                position: fixed;
                inset: 0;
                background: rgba(0, 0, 0, 0.15);
                z-index: 998;
                cursor: pointer;
            }
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            /* Mobile tab & summary overrides */
            .bp-summary { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 10px 0; }
            .bp-summary-card { padding: 6px 4px; }
            .bp-summary-value { font-size: 0.75rem; }
            .bp-summary-label { font-size: 0.5rem; }
            .bp-tabs {
                scroll-snap-type: x mandatory;
                padding: 4px;
                background: var(--slate-100);
                border-radius: 10px;
                margin: 0 -4px;
                gap: 2px;
            }
            .bp-tab {
                scroll-snap-align: center;
                padding: 8px 10px;
                font-size: 0.625rem;
                min-height: 40px;
                border-radius: 8px;
            }
            .bp-tab.active {
                background: white;
                box-shadow: 0 1px 3px rgba(0,0,0,0.08);
                border-bottom-color: transparent;
            }
            .bp-tabpanel { padding: 12px 0; }
            .bp-header-actions { gap: 4px; }
            .bp-header-btn { padding: 5px 8px; font-size: 0.625rem; }

            /* Mobile accordion for safety sections */
            .bp-accordion-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 10px 0;
                cursor: pointer;
                border-bottom: 1px solid var(--slate-100);
                font-size: 0.8125rem;
                font-weight: 600;
                color: var(--slate-800);
            }
            .bp-accordion-header::after {
                content: '▸';
                font-size: 0.75rem;
                color: var(--slate-400);
                transition: transform 0.2s ease;
            }
            .bp-accordion-header.open::after {
                transform: rotate(90deg);
            }
            .bp-accordion-body {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
            }
            .bp-accordion-body.open {
                max-height: 2000px;
            }

            /* Mobile chart overlay */
            .bp-chart-overlay { padding: 10px; }
            .bp-chart-overlay-content { padding: 16px; border-radius: 12px; }
            .bp-chart-overlay-close { top: 8px; right: 8px; width: 32px; height: 32px; }

            /* Mobile forecast table */
            .bp-forecast-day-header { font-size: 0.6875rem; padding: 8px 10px; }
            .bp-forecast-row { padding: 6px 8px !important; }

            /* Mobile bay panel section spacing */
            .bay-panel-section { margin-bottom: 12px; }
            .section-header { font-size: 0.8125rem; }
        }

        /* Desktop: Adjust map width when panel is open */
        @media (min-width: 1024px) {
            body.panel-open #map {
                width: calc(100% - var(--ui-panel-w));
            }
        }
        /* Premium Glassmorphism Design System */
        :root {
            --glass-bg: rgba(255, 255, 255, 0.7);
            --glass-border: rgba(255, 255, 255, 0.4);
            --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
            --glass-blur: blur(20px);
            --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --accent-color: #3b82f6;
        }

        /* Modern Header & Search */
        .modern-header {
            position: fixed;
            top: calc(env(safe-area-inset-top, 0px) + var(--ui-gutter));
            left: var(--ui-gutter);
            right: var(--ui-gutter);
            z-index: 1000 !important; /* Lower than route button */
            display: flex;
            justify-content: space-between;
            align-items: center;
            pointer-events: none;
        }
        
        .header-content {
            display: flex;
            align-items: center;
            gap: 20px;
            pointer-events: auto;
            z-index: 1000;
            flex-wrap: nowrap;
            width: 100%;
            max-width: var(--ui-container-max);
            margin: 0 auto;
        }
        
        .logo-box {
            display: flex;
            z-index: 1000;
            align-items: center;
            justify-content: center;
            min-width: 56px;
            height: 56px;
            padding: 0 16px;
            background: var(--glass-bg);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border-radius: var(--ds-r-3);
            box-shadow: var(--ds-shadow-1);
            border: 1px solid var(--ds-border-soft);
            transition: transform var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease), background var(--ds-dur) var(--ds-ease);
            text-decoration: none;
        }
        
        .logo-box:hover {
            transform: translateY(-2px);
            box-shadow: var(--ds-shadow-2);
            background: var(--ds-surface-strong);
        }
        
        .logo-img {
            height: 34px;
            width: auto;
            max-width: 140px;
            object-fit: contain;
        }
        
        .search-container {
            position: relative;
            flex: 1 1 auto;
            min-width: 180px;
            max-width: 680px;
        }

        /* xs: keep header from overflowing (wrap into two rows, consistent spacing) */
        @media (max-width: 479px) {
            .header-content {
                flex-wrap: wrap;
                gap: 10px;
            }
            .logo-box {
                height: var(--ui-tap);
                min-width: var(--ui-tap);
                border-radius: var(--ui-radius-lg);
                padding: 0 12px;
            }
            .auth-btn {
                height: var(--ui-tap);
                border-radius: var(--ui-radius-lg);
                padding: 0 12px;
            }
            .search-container {
                order: 3;
                flex: 1 1 100%;
                max-width: none;
                min-width: 0;
            }
        }

        /* Auth button (Google login) - matches glass header style */
        .auth-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            pointer-events: auto;
            flex-wrap: nowrap;
        }
        .auth-btn.secondary {
            font-weight: 700;
            font-size: 0.84rem;
            opacity: 0.95;
        }
        .auth-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            height: 56px;
            padding: 0 16px;
            background: var(--glass-bg);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border-radius: var(--ds-r-3);
            box-shadow: var(--ds-shadow-1);
            border: 1px solid var(--ds-border-soft);
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 600;
            font-size: var(--ds-text);
            cursor: pointer;
            transition: transform var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease), background var(--ds-dur) var(--ds-ease), border-color var(--ds-dur) var(--ds-ease);
            white-space: nowrap;
            min-width: unset;
        }
        .auth-btn.icon-only {
            width: 56px;
            padding: 0;
            justify-content: center;
        }
        .auth-btn .btn-text {
            display: inline;
        }
        /* Desktop: compact must NOT force fixed width (otherwise text overlaps) */
        .auth-btn.compact {
            width: auto;
            padding: 0 16px;
            justify-content: center;
        }
        .auth-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--ds-shadow-2);
            background: var(--ds-surface-strong);
        }

        /* Focus (premium + accessible) */
        .auth-btn:focus-visible,
        .logo-box:focus-visible,
        .timeline-close:focus-visible,
        .bay-panel-close:focus-visible {
            outline: 2px solid rgba(59,130,246,0.55);
            outline-offset: 3px;
        }
        .auth-btn .g-icon {
            width: 18px;
            height: 18px;
            display: inline-block;
        }

        /* Spot markers */
        .spot-pin {
            width: 26px;
            height: 26px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.92);
            border: 1px solid rgba(15,23,42,0.18);
            box-shadow: 0 8px 20px rgba(15,23,42,0.18);
            font-size: 14px;
            line-height: 1;
        }
        .spot-pin img {
            width: 18px;
            height: 18px;
            display: block;
        }
        .spot-pin.fav {
            border-color: rgba(245,158,11,0.55);
            box-shadow: 0 10px 24px rgba(245,158,11,0.20);
        }
        .spot-pin .fav-dot {
            position: absolute;
            width: 7px;
            height: 7px;
            right: -1px;
            top: -1px;
            border-radius: 999px;
            background: rgba(245,158,11,0.95);
            box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
        }

        /* Premium Spot Popup Styles */
        .spot-popup-container {
            min-width: min(280px, calc(100vw - (var(--ui-gutter) * 2)));
            max-width: min(360px, calc(100vw - (var(--ui-gutter) * 2)));
            background: #ffffff;
            border-radius: 18px;
            box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.08);
            overflow: hidden;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            animation: spotPopupSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        @keyframes spotPopupSlideIn {
            from {
                opacity: 0;
                transform: translateY(-8px) scale(0.96);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        .spot-popup-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 16px 18px 12px;
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        }
        .spot-popup-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.3;
            flex: 1;
            margin-right: 8px;
        }
        .spot-popup-title-subtitle {
            font-size: 0.75rem;
            color: #64748b;
            font-weight: 400;
            margin-top: 2px;
        }
        .spot-popup-actions {
            display: flex;
            gap: 6px;
            flex-shrink: 0;
        }
        .spot-popup-btn-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: none;
            background: rgba(15, 23, 42, 0.04);
            color: #475569;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            font-size: 18px;
            line-height: 1;
        }
        .spot-popup-btn-icon:hover {
            background: rgba(15, 23, 42, 0.08);
            transform: scale(1.05);
        }
        .spot-popup-btn-icon:active {
            transform: scale(0.95);
        }
        .spot-popup-updated {
            font-size: 0.72rem;
            color: #94a3b8;
            padding: 0 18px 12px;
            margin-top: -4px;
        }
        .spot-popup-updated.warning {
            color: #f59e0b;
        }
        .spot-popup-kpi {
            padding: 20px 18px;
            text-align: center;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(147, 51, 234, 0.03) 100%);
        }
        .spot-popup-kpi-value {
            font-size: 2.5rem;
            font-weight: 800;
            color: #0f172a;
            line-height: 1;
            margin-bottom: 6px;
        }
        .spot-popup-kpi-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #475569;
            margin-bottom: 8px;
        }
        .spot-popup-kpi-status {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 10px;
        }
        .spot-popup-kpi-status.low {
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
        }
        .spot-popup-kpi-status.medium {
            background: rgba(234, 179, 8, 0.15);
            color: #ca8a04;
        }
        .spot-popup-kpi-status.high {
            background: rgba(34, 197, 94, 0.15);
            color: #16a34a;
        }
        .spot-popup-kpi-desc {
            font-size: 0.82rem;
            color: #64748b;
            line-height: 1.4;
            max-width: 280px;
            margin: 0 auto;
        }
        .spot-popup-chips {
            padding: 16px 18px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        .spot-popup-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            background: rgba(15, 23, 42, 0.04);
            border-radius: 10px;
            font-size: 0.8rem;
            color: #334155;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .spot-popup-chip-icon {
            font-size: 16px;
            line-height: 1;
        }
        .spot-popup-cta {
            padding: 14px 18px;
            border-top: 1px solid rgba(15, 23, 42, 0.08);
            display: flex;
            gap: 10px;
        }
        .spot-popup-btn-primary {
            flex: 1;
            height: 44px;
            border-radius: 12px;
            border: none;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
        }
        .spot-popup-btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
        }
        .spot-popup-btn-primary:active {
            transform: translateY(0);
        }
        .spot-popup-btn-secondary {
            height: 44px;
            padding: 0 16px;
            border-radius: 12px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            background: white;
            color: #475569;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .spot-popup-btn-secondary:hover {
            background: rgba(15, 23, 42, 0.04);
            border-color: rgba(15, 23, 42, 0.2);
        }
        .spot-popup-btn-secondary:active {
            transform: scale(0.98);
        }
        .spot-popup-cta a.spot-popup-btn-primary,
        .spot-popup-cta a.spot-popup-btn-secondary {
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }
        .spot-popup-cta a.spot-popup-btn-primary,
        .spot-popup-cta a.spot-popup-btn-primary:visited,
        .spot-popup-cta a.spot-popup-btn-primary:hover,
        .spot-popup-cta a.spot-popup-btn-primary:active {
            color: #ffffff !important;
        }
        .spot-popup-cta a.spot-popup-btn-secondary,
        .spot-popup-cta a.spot-popup-btn-secondary:visited,
        .spot-popup-cta a.spot-popup-btn-secondary:hover,
        .spot-popup-cta a.spot-popup-btn-secondary:active {
            color: #475569 !important;
        }
        /* Mordoğan marker: white halo for better contrast on map */
        .mordogan-marker-icon {
            background: transparent !important;
            border: none !important;
        }
        .mordogan-marker-wrap {
            width: 44px;
            height: 44px;
        }
        .mordogan-marker-wrap img {
            width: 44px;
            height: 44px;
            display: block;
            /* White halo + subtle dark shadow for readability on satellite */
            filter:
                drop-shadow(0 0 10px rgba(255, 255, 255, 0.98))
                drop-shadow(0 0 4px rgba(255, 255, 255, 0.98))
                drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
        }
        .spot-popup-empty {
            padding: 40px 20px;
            text-align: center;
            color: #64748b;
        }
        .spot-popup-empty-title {
            font-size: 1rem;
            font-weight: 600;
            color: #475569;
            margin-bottom: 8px;
        }
        .spot-popup-empty-desc {
            font-size: 0.85rem;
            margin-bottom: 16px;
        }
        @media (max-width: 480px) {
            .spot-popup-container {
                min-width: 280px;
                max-width: calc(100vw - 40px);
            }
            .spot-popup-kpi-value {
                font-size: 2.2rem;
            }
            .spot-popup-chips {
                padding: 14px 16px;
                gap: 6px;
            }
            .spot-popup-chip {
                padding: 7px 10px;
                font-size: 0.78rem;
            }
        }

        /* Premium Spot Detail Page Styles */
        .spot-detail-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 18px;
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
            background: white;
            position: sticky;
            top: 0;
            z-index: 100;
            margin: -14px -16px 0 -16px;
            padding-left: 18px;
            padding-right: 18px;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
        }
        /* Ensure header stays on top when scrolling */
        .timeline-body .spot-detail-header {
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .spot-detail-header-left {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }
        .spot-detail-back-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            border: none;
            background: rgba(15, 23, 42, 0.04);
            color: #475569;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all 0.2s;
        }
        .spot-detail-back-btn:hover {
            background: rgba(15, 23, 42, 0.08);
        }
        .spot-detail-header-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #0f172a;
        }
        .spot-detail-header-actions {
            display: flex;
            gap: 8px;
        }
        .spot-detail-header-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            border: none;
            background: rgba(15, 23, 42, 0.04);
            color: #475569;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.2s;
        }
        .spot-detail-header-btn:hover {
            background: rgba(15, 23, 42, 0.08);
        }
        .spot-detail-location-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
            border: 1px solid rgba(15, 23, 42, 0.08);
            margin: 16px 18px;
            padding: 18px;
        }
        .spot-detail-location-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 6px;
        }
        .spot-detail-location-coords {
            font-size: 0.8rem;
            color: #64748b;
            font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .spot-detail-location-coords-copy {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            border: none;
            background: rgba(15, 23, 42, 0.04);
            color: #64748b;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.2s;
        }
        .spot-detail-location-coords-copy:hover {
            background: rgba(15, 23, 42, 0.08);
        }
        .spot-detail-location-actions {
            display: flex;
            gap: 10px;
        }
        .spot-detail-btn-goto {
            flex: 1;
            height: 48px;
            border-radius: 12px;
            border: none;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .spot-detail-btn-goto:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
        }
        .spot-detail-btn-goto:active {
            transform: translateY(0);
        }
        .spot-detail-filters {
            padding: 12px 18px;
            background: rgba(15, 23, 42, 0.02);
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .spot-detail-search {
            flex: 1;
            min-width: 200px;
            height: 40px;
            padding: 0 14px;
            border-radius: 10px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            background: white;
            font-size: 0.9rem;
            color: #0f172a;
        }
        .spot-detail-filter-select {
            height: 40px;
            padding: 0 12px;
            border-radius: 10px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            background: white;
            font-size: 0.85rem;
            color: #475569;
            cursor: pointer;
        }
        .spot-detail-visits-list {
            padding: 16px 18px;
        }
        .spot-detail-visit-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
            border: 1px solid rgba(15, 23, 42, 0.08);
            padding: 16px;
            margin-bottom: 12px;
        }
        .spot-detail-visit-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }
        .spot-detail-visit-date {
            font-size: 0.95rem;
            font-weight: 700;
            color: #0f172a;
            font-variant-numeric: tabular-nums;
        }
        .spot-detail-visit-kpi {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .spot-detail-visit-kpi-value {
            font-size: 1.3rem;
            font-weight: 800;
            color: #0f172a;
            font-variant-numeric: tabular-nums;
        }
        .spot-detail-visit-kpi-label {
            font-size: 0.75rem;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 10px;
        }
        .spot-detail-visit-kpi-label.low {
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
        }
        .spot-detail-visit-kpi-label.medium {
            background: rgba(234, 179, 8, 0.15);
            color: #ca8a04;
        }
        .spot-detail-visit-kpi-label.high {
            background: rgba(34, 197, 94, 0.15);
            color: #16a34a;
        }
        .spot-detail-visit-delete-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: none;
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .spot-detail-visit-delete-btn:hover {
            background: rgba(239, 68, 68, 0.2);
            transform: scale(1.1);
        }
        .spot-detail-visit-delete-btn:active {
            transform: scale(0.95);
        }
        .spot-detail-visit-note {
            font-size: 0.9rem;
            color: #334155;
            line-height: 1.5;
            margin-bottom: 12px;
            white-space: pre-wrap;
        }
        .spot-detail-visit-note.empty {
            color: #94a3b8;
            font-style: italic;
        }
        .spot-detail-visit-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        .spot-detail-visit-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(15, 23, 42, 0.04);
            border-radius: 10px;
            font-size: 0.8rem;
            color: #334155;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .spot-detail-visit-chip-icon {
            font-size: 14px;
            line-height: 1;
        }
        .spot-detail-empty {
            padding: 60px 20px;
            text-align: center;
        }
        .spot-detail-empty-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #475569;
            margin-bottom: 8px;
        }
        .spot-detail-empty-desc {
            font-size: 0.9rem;
            color: #64748b;
            margin-bottom: 20px;
        }
        .spot-detail-empty-btn {
            height: 44px;
            padding: 0 20px;
            border-radius: 12px;
            border: none;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .spot-detail-empty-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
        }
        @media (max-width: 480px) {
            .spot-detail-header {
                padding: 14px 16px;
            }
            .spot-detail-location-card {
                margin: 12px 16px;
                padding: 16px;
            }
            .spot-detail-filters {
                padding: 10px 16px;
            }
            .spot-detail-search {
                min-width: 100%;
            }
            .spot-detail-visits-list {
                padding: 12px 16px;
            }
            .spot-detail-visit-card {
                padding: 14px;
            }
        }

        /* Premium Spots List Styles */
        .spots-list-header {
            padding: 16px 18px;
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
            background: white;
        }
        .spots-list-header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .spots-list-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #0f172a;
        }
        .spots-list-header-actions {
            display: flex;
            gap: 8px;
        }
        .spots-list-header-btn {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: none;
            background: rgba(15, 23, 42, 0.04);
            color: #475569;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.2s;
        }
        .spots-list-header-btn:hover {
            background: rgba(15, 23, 42, 0.08);
        }
        .spots-list-header-info {
            font-size: 0.8rem;
            color: #64748b;
        }
        .spots-list-search-bar {
            padding: 12px 18px;
            background: rgba(15, 23, 42, 0.02);
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        }
        .spots-list-search-input {
            width: 100%;
            height: 40px;
            padding: 0 14px;
            border-radius: 10px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            background: white;
            font-size: 0.9rem;
            color: #0f172a;
            margin-bottom: 10px;
        }
        .spots-list-filters {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 4px;
        }
        .spots-list-filter-chip {
            display: inline-flex;
            align-items: center;
            padding: 6px 14px;
            border-radius: 12px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            background: white;
            color: #475569;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .spots-list-filter-chip.active {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            border-color: transparent;
        }
        .spots-list-filter-chip:hover:not(.active) {
            background: rgba(15, 23, 42, 0.04);
            border-color: rgba(15, 23, 42, 0.2);
        }
        .spots-list-sort {
            margin-top: 10px;
            width: 100%;
            height: 36px;
            padding: 0 12px;
            border-radius: 10px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            background: white;
            font-size: 0.85rem;
            color: #475569;
            cursor: pointer;
        }
        .spots-list-content {
            padding: 12px 18px;
        }
        .spots-list-group {
            margin-bottom: 24px;
        }
        .spots-list-group-title {
            font-size: 0.85rem;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
            padding: 0 4px;
        }
        .spots-list-card {
            background: white;
            border-radius: 14px;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
            border: 1px solid rgba(15, 23, 42, 0.08);
            padding: 14px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .spots-list-card:hover {
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
            transform: translateY(-1px);
        }
        .spots-list-card-content {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
        }
        .spots-list-card-left {
            flex: 1;
            min-width: 0;
        }
        .spots-list-card-title {
            font-size: 1rem;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .spots-list-card-meta {
            font-size: 0.82rem;
            color: #64748b;
            line-height: 1.4;
        }
        .spots-list-card-meta-item {
            display: inline;
            margin-right: 8px;
        }
        .spots-list-card-kpi {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.8rem;
        }
        .spots-list-card-kpi.low {
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
        }
        .spots-list-card-kpi.medium {
            background: rgba(234, 179, 8, 0.15);
            color: #ca8a04;
        }
        .spots-list-card-kpi.high {
            background: rgba(34, 197, 94, 0.15);
            color: #16a34a;
        }
        .spots-list-card-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .spots-list-card-fav {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: none;
            background: rgba(15, 23, 42, 0.04);
            color: #f59e0b;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.2s;
        }
        .spots-list-card-fav:not(.active) {
            color: #94a3b8;
        }
        .spots-list-card-fav:hover {
            background: rgba(15, 23, 42, 0.08);
            transform: scale(1.1);
        }
        .spots-list-card-goto {
            height: 32px;
            padding: 0 12px;
            border-radius: 8px;
            border: none;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
        }
        .spots-list-card-goto:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(59, 130, 246, 0.35);
        }
        .spots-list-card-menu {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: none;
            background: rgba(15, 23, 42, 0.04);
            color: #475569;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.2s;
            position: relative;
        }
        .spots-list-card-menu:hover {
            background: rgba(15, 23, 42, 0.08);
        }
        .spots-list-menu-dropdown {
            position: absolute;
            bottom: 40px;
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
            border: 1px solid rgba(15, 23, 42, 0.08);
            min-width: 180px;
            z-index: 1000;
            overflow: hidden;
        }
        .spots-list-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            font-size: 0.9rem;
            color: #334155;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
        }
        .spots-list-menu-item:hover {
            background: rgba(15, 23, 42, 0.04);
        }
        .spots-list-menu-item.danger {
            color: #dc2626;
        }
        .spots-list-menu-item.danger:hover {
            background: rgba(239, 68, 68, 0.1);
        }
        .spots-list-menu-item-icon {
            font-size: 16px;
            width: 20px;
            text-align: center;
        }
        .spots-list-empty {
            padding: 60px 20px;
            text-align: center;
        }
        .spots-list-empty-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #475569;
            margin-bottom: 8px;
        }
        .spots-list-empty-desc {
            font-size: 0.9rem;
            color: #64748b;
            margin-bottom: 20px;
        }
        @media (max-width: 480px) {
            .spots-list-header {
                padding: 14px 16px;
            }
            .spots-list-search-bar {
                padding: 10px 16px;
            }
            .spots-list-content {
                padding: 10px 16px;
            }
            .spots-list-card {
                padding: 12px;
            }
        }

        /* Premium Save Button Styles - Compact */
        .save-spot-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            height: 32px;
            padding: 0 10px;
            border-radius: 8px;
            border: none;
            font-weight: 500;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            white-space: nowrap;
        }
        .save-spot-btn.primary {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
        }
        .save-spot-btn.primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
        }
        .save-spot-btn.primary:active {
            transform: translateY(0);
        }
        .save-spot-btn.saved {
            background: rgba(34, 197, 94, 0.1);
            color: #16a34a;
            border: 1px solid rgba(34, 197, 94, 0.2);
        }
        .save-spot-btn.saved:hover {
            background: rgba(34, 197, 94, 0.15);
        }
        .save-spot-btn.loading {
            opacity: 0.7;
            cursor: not-allowed;
        }
        .save-spot-btn-subtext {
            font-size: 0.7rem;
            font-weight: 400;
            opacity: 0.8;
            margin-top: 2px;
        }
        .save-spot-btn-note-link {
            font-size: 0.75rem;
            color: #3b82f6;
            cursor: pointer;
            text-decoration: underline;
            margin-left: 6px;
        }
        .save-spot-btn-note-link:hover {
            color: #2563eb;
        }

        /* Bottom Sheet Modal for Note - Compact */
        .note-bottom-sheet {
            position: fixed;
            left: 0;
            right: 0;
            bottom: -100%;
            z-index: 10000;
            background: white;
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
            box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.15);
            border-top: 1px solid rgba(15, 23, 42, 0.08);
            max-height: 75vh;
            overflow-y: auto;
            transition: bottom 0.22s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .note-bottom-sheet.active {
            bottom: 0;
        }
        .note-bottom-sheet-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 23, 42, 0.4);
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.22s;
            pointer-events: none;
        }
        .note-bottom-sheet-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }
        .note-sheet-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 16px;
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
            position: sticky;
            top: 0;
            background: white;
            z-index: 10;
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
        }
        .note-sheet-title {
            font-size: 1rem;
            font-weight: 700;
            color: #0f172a;
        }
        .note-sheet-location {
            font-size: 0.75rem;
            color: #64748b;
            margin-top: 2px;
        }
        .note-sheet-close {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: none;
            background: rgba(15, 23, 42, 0.04);
            color: #475569;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.2s;
        }
        .note-sheet-close:hover {
            background: rgba(15, 23, 42, 0.08);
        }
        .note-sheet-body {
            padding: 16px;
        }
        .note-sheet-field {
            margin-bottom: 16px;
        }
        .note-sheet-label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            color: #334155;
            margin-bottom: 6px;
        }
        .note-sheet-textarea {
            width: 100%;
            min-height: 100px;
            padding: 10px;
            border-radius: 10px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            font-size: 0.85rem;
            font-family: inherit;
            color: #0f172a;
            resize: vertical;
            transition: all 0.2s;
        }
        .note-sheet-textarea:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }
        .note-sheet-char-count {
            font-size: 0.7rem;
            color: #94a3b8;
            text-align: right;
            margin-top: 4px;
        }
        .note-sheet-photos {
            margin-bottom: 16px;
        }
        .note-sheet-photos-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: #334155;
            margin-bottom: 10px;
        }
        .note-sheet-photo-slots {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        .note-sheet-photo-slot {
            aspect-ratio: 1;
            border-radius: 10px;
            border: 2px dashed rgba(15, 23, 42, 0.2);
            background: rgba(15, 23, 42, 0.02);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            overflow: hidden;
        }
        .note-sheet-photo-slot:hover:not(.filled):not(.disabled) {
            border-color: #3b82f6;
            background: rgba(59, 130, 246, 0.05);
        }
        .note-sheet-photo-slot.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .note-sheet-photo-slot.filled {
            border: none;
            padding: 0;
        }
        .note-sheet-photo-slot-icon {
            font-size: 24px;
            color: #94a3b8;
            margin-bottom: 6px;
        }
        .note-sheet-photo-slot-text {
            font-size: 0.75rem;
            color: #64748b;
            text-align: center;
        }
        .note-sheet-photo-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px;
        }
        .note-sheet-photo-remove {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(239, 68, 68, 0.9);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.2s;
            z-index: 10;
        }
        .note-sheet-photo-remove:hover {
            background: rgba(239, 68, 68, 1);
            transform: scale(1.1);
        }
        .note-sheet-photo-max {
            font-size: 0.75rem;
            color: #94a3b8;
            margin-top: 6px;
        }
        .note-sheet-actions {
            display: flex;
            gap: 10px;
            padding: 14px 16px;
            border-top: 1px solid rgba(15, 23, 42, 0.08);
            position: sticky;
            bottom: 0;
            background: white;
        }
        .note-sheet-btn-primary {
            flex: 1;
            height: 40px;
            border-radius: 10px;
            border: none;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
        }
        .note-sheet-btn-primary:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
        }
        .note-sheet-btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        .note-sheet-btn-secondary {
            height: 40px;
            padding: 0 16px;
            border-radius: 10px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            background: white;
            color: #475569;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .note-sheet-btn-secondary:hover {
            background: rgba(15, 23, 42, 0.04);
        }
        @media (max-width: 480px) {
            .note-sheet-header {
                padding: 12px 14px;
            }
            .note-sheet-body {
                padding: 14px;
            }
            .note-sheet-actions {
                padding: 12px 14px;
            }
        }
        
        .search-box {
            display: flex;
            align-items: center;
            background: var(--glass-bg);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border-radius: var(--ds-r-3);
            box-shadow: var(--ds-shadow-1);
            border: 1px solid var(--ds-border-soft);
            transition: width var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease), background var(--ds-dur) var(--ds-ease), border-color var(--ds-dur) var(--ds-ease);
            width: 56px;
            height: 56px;
            overflow: hidden;
            cursor: pointer;
        }
        
        .search-container:focus-within .search-box {
            width: 280px;
            background: var(--ds-surface-strong);
            box-shadow: var(--ds-shadow-2);
            cursor: text;
        }
        
        .search-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 56px;
            height: 56px;
            color: var(--text-secondary);
            transition: color 0.3s;
        }
        
        .search-container:focus-within .search-icon {
            color: var(--accent-color);
        }
        
        .search-input {
            width: 100%;
            height: 100%;
            background: transparent;
            border: none;
            outline: none;
            color: var(--text-primary);
            font-family: 'Inter', sans-serif;
            font-size: var(--ds-text);
            font-weight: 500;
            padding-right: 20px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .search-input:focus-visible {
            outline: none;
        }

        /* Mobile header: compact, premium, no horizontal scrolling */
        @media (max-width: 640px) {
            .modern-header {
                top: 14px;
                left: 12px;
                right: 12px;
            }
            .header-content {
                gap: 4px;
                max-width: calc(100vw - 24px);
                overflow: visible;
                flex-wrap: wrap;
            }
            .logo-box {
                height: 40px;
                min-width: 36px;
                padding: 0 10px;
            }
            .logo-img {
                height: 22px;
                max-width: 110px;
            }
            .auth-actions {
                gap: 4px;
            }
            .auth-btn {
                height: 40px;
                padding: 0 8px;
                gap: 6px;
                border-radius: var(--ds-r-2);
                font-size: var(--ds-text-sm);
            }
            .auth-btn .g-icon {
                width: 16px;
                height: 16px;
            }
            /* Mobile: show small labels so buttons are understandable */
            .auth-btn .btn-text {
                display: inline;
                font-size: 0.68rem;
                opacity: 0.9;
            }
            /* Hide long username on mobile; keep only "Çıkış" */
            .auth-btn .user-name {
                display: none;
            }
            .auth-btn.icon-only {
                width: 40px;
                padding: 0;
            }
            .auth-btn.compact {
                width: auto;
                padding: 0 10px;
            }
            .search-icon svg {
                width: 20px;
                height: 20px;
            }
            .search-box {
                width: 40px;
                height: 40px;
                border-radius: var(--ds-r-2);
            }
            .search-icon {
                min-width: 40px;
                height: 40px;
            }
            .search-container:focus-within .search-box {
                width: min(70vw, 220px);
            }
        }
        
        .search-input::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }
        
        .search-container:focus-within .search-input {
            opacity: 1;
        }
        
        .search-results {
            position: relative;
            top: auto;
            left: auto;
            margin-top: 12px;
            width: 100%;
            background: var(--ds-surface);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: var(--ds-r-3);
            box-shadow: var(--ds-shadow-2);
            border: 1px solid var(--ds-border-soft);
            overflow: hidden;
            display: none;
            max-height: 400px;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            z-index: 2000;
            animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .search-results.active {
            display: block;
        }
        
        .search-result-item {
            padding: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .search-result-item:last-child {
            border-bottom: none;
        }
        
        .search-result-item:hover {
            background: rgba(59, 130, 246, 0.05);
            padding-left: 20px;
        }
        
        .search-item-left {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        
        .search-item-icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            box-shadow: inset 0 2px 4px rgba(255,255,255,0.8);
        }
        
        .search-item-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        
        .search-item-name {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 15px;
            letter-spacing: -0.01em;
        }
        
        .search-item-type {
            font-size: 12px;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
        }
        
        .search-item-amenities {
            margin-top: 6px;
            display: flex;
            gap: 8px;
            font-size: 14px;
            opacity: 0.8;
        }
        
        .search-item-score {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            background: rgba(255,255,255,0.5);
            padding: 6px 10px;
            border-radius: 10px;
            border: 1px solid rgba(0,0,0,0.05);
        }
        
        .score-val {
            font-weight: 800;
            font-size: 16px;
            letter-spacing: -0.02em;
        }
        
        .score-label {
            font-size: 10px;
            color: var(--text-secondary);
            text-transform: uppercase;
            font-weight: 600;
            letter-spacing: 0.05em;
        }
        
        .text-emerald-500 { color: #059669; }
        .text-amber-500 { color: #d97706; }
        .text-rose-500 { color: #e11d48; }
        
        /* Custom Scrollbar for Search Results */
        .search-results::-webkit-scrollbar {
            width: 6px;
        }
        .search-results::-webkit-scrollbar-track {
            background: transparent;
        }
        .search-results::-webkit-scrollbar-thumb {
            background: rgba(0,0,0,0.1);
            border-radius: 10px;
        }
        .search-results::-webkit-scrollbar-thumb:hover {
            background: rgba(0,0,0,0.2);
        }
        
        /* Vessel Markers */
        .vessel-marker {
            transition: all 1s linear;
            cursor: pointer;
        }
        
        .vessel-icon {
            width: 24px;
            height: 24px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .vessel-yacht { font-size: 20px; }
        .vessel-cargo { font-size: 24px; }
        .vessel-ferry { font-size: 22px; }
        
        /* Vessel Cluster */
        .vessel-cluster {
            background: transparent !important;
            border: none !important;
        }
        
        .marker-cluster {
            background-color: rgba(59, 130, 246, 0.6) !important;
        }
        
        .marker-cluster div {
            background-color: #3b82f6 !important;
            color: white !important;
        }
        
        .vessel-popup .leaflet-popup-content-wrapper {
            border-radius: 12px;
            padding: 0;
            overflow: hidden;
        }
        
        .vessel-popup .leaflet-popup-content {
            margin: 0;
            width: 200px !important;
        }
        
        .vessel-card {
            padding: 12px;
        }
        
        .vessel-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            border-bottom: 1px solid #eee;
            padding-bottom: 8px;
        }
        
        .vessel-icon-large {
            font-size: 24px;
        }
        
        .vessel-name {
            font-weight: 700;
            font-size: 14px;
            color: #1e293b;
        }
        
        .vessel-type {
            font-size: 11px;
            color: #64748b;
            text-transform: uppercase;
        }
        
        .vessel-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            font-size: 12px;
        }
        
        .vessel-stat-item {
            display: flex;
            flex-direction: column;
        }
        
        .vessel-stat-label {
            color: #94a3b8;
            font-size: 10px;
        }
        
        .vessel-stat-value {
            color: #334155;
            font-weight: 600;
        }

        .hidden { display: none !important; }
        
        /* Route Control Button - Custom fixed position below header/search */
        /* Matches header glassmorphism style */
        .route-control-button-custom {
            position: fixed !important;
            top: 90px !important;
            left: 24px !important;
            z-index: 10000 !important;
            pointer-events: auto !important;
        }
        
        #route-planning-btn {
            z-index: 10001 !important;
            position: relative !important;
            background: rgba(255, 255, 255, 0.7) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
            color: #1e293b !important;
            border: 1px solid rgba(255, 255, 255, 0.4) !important;
            border-radius: 12px !important;
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
            font-family: 'Inter', sans-serif !important;
        }
        
        #route-planning-btn:hover {
            background: rgba(255, 255, 255, 0.85) !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2) !important;
        }
        
        @media (max-width: 768px) {
            .route-control-button-custom {
                top: 90px !important;
                left: 10px !important;
            }
        }
        
        /* Hide old Leaflet control route button if it exists */
        .route-control-button {
            display: none !important;
        }
        
        /* Mobile specific fixes */
        @media (max-width: 768px) {
            /* Route info panel mobile */
            .route-info-panel {
                font-size: 0.875rem !important;
            }
            .route-info-panel h3 {
                font-size: 1rem !important;
            }
            
            /* Timeline modal mobile - floating card (not full screen) */
            .timeline-modal {
                padding: 10px !important;
                padding-top: calc(10px + env(safe-area-inset-top, 0px)) !important;
                padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
            }
            .timeline-content {
                max-height: 82vh !important;
                border-radius: 16px !important;
                width: 100% !important;
            }
            .timeline-header {
                padding: 14px 16px !important;
                border-radius: 16px 16px 0 0 !important;
            }
            .timeline-body {
                padding: 0 !important;
            }

            /* Timeline bar mobile - horizontal scroll */
            .timeline-bar-new {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: thin;
                padding-bottom: 8px;
            }
            .timeline-hour-new {
                min-width: 50px !important;
                width: 50px !important;
                flex-shrink: 0;
            }
            
            /* Current conditions mobile - single column */
            .current-conditions-grid {
                grid-template-columns: 1fr !important;
            }
            
            /* Popup mobile - responsive width */
            .leaflet-popup-content-wrapper {
                max-width: 90vw !important;
            }
            .leaflet-popup {
                max-width: 90vw !important;
            }
            
            /* Vessel cluster mobile - smaller */
            .vessel-marker {
                transform: scale(0.85);
            }
            
            /* Bay panel mobile - better spacing */
            .bay-panel {
                font-size: 0.875rem;
            }
            
            /* Stats grid mobile */
            .stats-grid {
                gap: 8px !important;
            }
            
            /* Route control button mobile spacing */
            .route-control-button {
                margin-top: 60px !important;
            }
            #route-planning-btn {
                padding: 10px 14px !important;
                font-size: 0.75rem !important;
            }
        }
        
        /* Footer styles for map.blade.php */
        footer {
            background-color: #f9fafb;
            border-top: 1px solid #e5e7eb;
            margin-top: 2rem;
            padding: 2rem 1.5rem;
        }
        footer .max-w-4xl {
            max-width: 56rem;
            margin: 0 auto;
        }
        footer a {
            color: #0284c7;
            text-decoration: none;
            transition: color 0.2s;
        }
        footer a:hover {
            color: #0369a1;
            text-decoration: underline;
        }
        footer .text-sm {
            font-size: 0.875rem;
        }
        footer .text-xs {
            font-size: 0.75rem;
        }
        footer .text-gray-600 {
            color: #4b5563;
        }
        footer .text-gray-500 {
            color: #6b7280;
        }
        footer .flex {
            display: flex;
        }
        footer .flex-wrap {
            flex-wrap: wrap;
        }
        footer .justify-between {
            justify-content: space-between;
        }
        footer .items-center {
            align-items: center;
        }
        footer .gap-4 {
            gap: 1rem;
        }
        footer .mt-4 {
            margin-top: 1rem;
        }
        footer .pt-4 {
            padding-top: 1rem;
        }
        footer .border-t {
            border-top-width: 1px;
        }
        footer .border-gray-200 {
            border-color: #e5e7eb;
        }
        
        /* Cookie Consent Banner styles for map.blade.php */
        #cookie-consent-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: #ffffff;
            border-top: 1px solid #d1d5db;
            box-shadow: 0 -10px 15px -3px rgba(0, 0, 0, 0.1);
            z-index: 9999;
            padding: 1rem;
        }
        @media (min-width: 768px) {
            #cookie-consent-banner {
                padding: 1.5rem;
            }
        }
        #cookie-consent-banner .max-w-6xl {
            max-width: 72rem;
            margin: 0 auto;
        }
        #cookie-consent-banner .flex {
            display: flex;
        }
        #cookie-consent-banner .flex-col {
            flex-direction: column;
        }
        @media (min-width: 768px) {
            #cookie-consent-banner .md\:flex-row {
                flex-direction: row;
            }
            #cookie-consent-banner .md\:items-center {
                align-items: center;
            }
            #cookie-consent-banner .md\:justify-between {
                justify-content: space-between;
            }
            #cookie-consent-banner .md\:ml-6 {
                margin-left: 1.5rem;
            }
        }
        #cookie-consent-banner .flex-1 {
            flex: 1 1 0%;
        }
        #cookie-consent-banner .gap-4 {
            gap: 1rem;
        }
        #cookie-consent-banner .gap-3 {
            gap: 0.75rem;
        }
        @media (min-width: 640px) {
            #cookie-consent-banner .sm\:flex-row {
                flex-direction: row;
            }
        }
        #cookie-consent-banner h3 {
            font-size: 1.125rem;
            font-weight: 600;
            color: #111827;
            margin-bottom: 0.5rem;
        }
        #cookie-consent-banner p {
            font-size: 0.875rem;
            color: #4b5563;
            line-height: 1.625;
        }
        #cookie-consent-banner a {
            color: #0284c7;
            text-decoration: underline;
        }
        #cookie-consent-banner a:hover {
            color: #0369a1;
        }
        #cookie-consent-accept,
        #cookie-consent-reject {
            padding: 0.5rem 1.5rem;
            border-radius: 0.5rem;
            font-weight: 500;
            white-space: nowrap;
            cursor: pointer;
            border: none;
            transition: background-color 0.2s;
        }
        #cookie-consent-accept {
            background-color: #0284c7;
            color: #ffffff;
        }
        #cookie-consent-accept:hover {
            background-color: #0369a1;
        }
        #cookie-consent-reject {
            background-color: #e5e7eb;
            color: #374151;
        }
        #cookie-consent-reject:hover {
            background-color: #d1d5db;
        }
        #cookie-consent-banner.hidden {
            display: none !important;
        }
        
