/* ============================================================
   ARAY AI Navigator — explore.css v12
   PREMIUM VISUAL UPGRADE: glassmorphism · gradient accents ·
   micro-animations · depth layers · glow effects · smooth
   transitions · premium cards · refined typography · particle
   shimmer · spring easing · focus rings · frosted panels ·
   color-coded categories · rich shadows · refined spacing
   ============================================================ */

/* ─── CSS Custom Properties ──────────────────────────────── */
:root {
    --bg: #06080d;
    --bg-surface: #0d1117;
    --bg-card: #161b22;
    --bg-elevated: #1c2333;
    --accent: #00d4c8;
    --accent-hover: #00ebe0;
    --accent-glow: rgba(0, 212, 200, 0.12);
    --accent-border: rgba(0, 212, 200, 0.18);
    --text: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --border: rgba(42, 49, 66, 0.6);
    --border-light: rgba(255, 255, 255, 0.06);
    --gold: #f59e0b;
    --rose: #f43f5e;
    --green: #34d399;
    --blue: #3b82f6;
    --purple: #a78bfa;
    --glass: rgba(13, 17, 23, 0.72);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: blur(24px) saturate(1.4);
    --radius-pill: 100px;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 40px rgba(0, 212, 200, 0.08);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Light Theme ──────────────────────────────────────── */
[data-theme="light"] {
    --bg: #f5f7fa;
    --bg-surface: #edf0f5;
    --bg-card: #ffffff;
    --bg-elevated: #f0f2f5;
    --accent: #00a89e;
    --accent-hover: #00918a;
    --accent-glow: rgba(0, 168, 158, 0.10);
    --accent-border: rgba(0, 168, 158, 0.25);
    --text: #1a1d23;
    --text-secondary: #57606a;
    --text-muted: #8b949e;
    --border: rgba(0, 0, 0, 0.10);
    --border-light: rgba(0, 0, 0, 0.06);
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.10);
    --shadow-glow: 0 0 40px rgba(0, 168, 158, 0.06);
}

/* ─── Splash Screen ─────────────────────────────────────── */
.splash-overlay {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at 50% 30%, rgba(0,212,200,0.06) 0%, rgba(167,139,250,0.02) 40%, var(--bg) 70%);
    animation: splashIn 0.7s var(--ease-out); padding: 20px;
}
@keyframes splashIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.splash-card { max-width: 460px; width: 100%; text-align: center; }
.splash-logo {
    margin-bottom: 28px;
    animation: splashFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0,212,200,0.3));
}
@keyframes splashFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.splash-title {
    font-family: 'Outfit', sans-serif;
    font-size: 34px; font-weight: 700; color: var(--text);
    margin: 0 0 10px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.splash-sub { font-size: 16px; color: var(--text-secondary); margin: 0 0 40px; line-height: 1.5; }
.splash-buttons { display: flex; flex-direction: column; gap: 14px; }
.splash-btn {
    display: flex; align-items: center; gap: 16px; padding: 20px 24px;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    background: var(--glass); backdrop-filter: var(--glass-blur);
    cursor: pointer; transition: all .35s var(--ease-out);
    text-decoration: none; color: inherit; text-align: left;
    touch-action: manipulation; position: relative; overflow: hidden;
}
.splash-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,212,200,0.04) 100%);
    opacity: 0; transition: opacity .35s;
}
.splash-btn:hover::before { opacity: 1; }
.splash-btn:hover {
    border-color: var(--accent-border); transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(0,212,200,0.08);
}
.splash-btn-icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .35s var(--ease-spring);
}
.splash-btn:hover .splash-btn-icon { transform: scale(1.08); }
.splash-btn-owner .splash-btn-icon { background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(249,115,22,.15)); color: var(--gold); }
.splash-btn-explore .splash-btn-icon { background: linear-gradient(135deg, rgba(0,212,200,.15), rgba(0,235,224,.15)); color: var(--accent); }
.splash-btn-title { display: block; font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.splash-btn-desc { display: block; font-size: 13px; color: var(--text-secondary); }
.splash-overlay.splash-exit { animation: splashExit .5s var(--ease-out) forwards; }
@keyframes splashExit { to { opacity: 0; transform: scale(1.03); pointer-events: none; } }

/* ─── Map Loader ────────────────────────────────────────── */
.explore-loader {
    position: absolute; inset: 0; z-index: 2000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(6,8,13,.94); backdrop-filter: blur(30px);
    transition: opacity .4s var(--ease-smooth);
}
.loader-pulse {
    width: 52px; height: 52px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,200,.2), transparent 70%);
    border: 2px solid rgba(0,212,200,.4);
    animation: loaderPulse 1.4s ease-in-out infinite;
    margin-bottom: 18px;
    box-shadow: 0 0 30px rgba(0,212,200,0.15);
}
@keyframes loaderPulse {
    0%   { transform: scale(.7); opacity: .4; box-shadow: 0 0 0 0 rgba(0,212,200,.3); }
    50%  { transform: scale(1.1); opacity: 1; box-shadow: 0 0 30px 15px rgba(0,212,200,.08); }
    100% { transform: scale(.7); opacity: .4; box-shadow: 0 0 0 0 rgba(0,212,200,.3); }
}
.loader-text {
    font-size: 14px; color: var(--text-secondary);
    letter-spacing: 0.8px; font-weight: 500;
}

/* ─── Offline Banner ────────────────────────────────────── */
.explore-offline {
    position: absolute; top: calc(76px + env(safe-area-inset-top, 0px)); left: 50%;
    transform: translateX(-50%); z-index: 1100;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.25); border-radius: var(--radius-pill);
    font-size: 13px; color: #fca5a5;
    backdrop-filter: var(--glass-blur);
    animation: floatIn .5s var(--ease-out);
    box-shadow: 0 4px 20px rgba(239,68,68,.1);
}

/* ─── Empty State ───────────────────────────────────────── */
.explore-empty {
    position: absolute; inset: 0; z-index: 500;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; color: var(--text-secondary); text-align: center; padding: 20px;
}
.explore-empty p { font-size: 16px; color: var(--text); margin: 12px 0 4px; font-weight: 500; }
.explore-empty span { font-size: 13px; }

/* ─── App Container ─────────────────────────────────────── */
.explore-app { position: fixed; inset: 0; z-index: 100; background: var(--bg); }
.explore-map { width: 100%; height: 100%; }

/* Map style variants */
.explore-map.map-dark .leaflet-tile-pane {
    filter: saturate(0.85) brightness(0.88) contrast(1.08) hue-rotate(8deg);
}
.explore-map.map-light .leaflet-tile-pane {
    filter: saturate(0.9) brightness(1.05) contrast(1.0);
}
.explore-map.map-satellite .leaflet-tile-pane {
    filter: saturate(1.15) brightness(0.92) contrast(1.12);
}

/* Top gradient — richer, layered */
.explore-map::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom,
        rgba(6,8,13,.7) 0%,
        rgba(6,8,13,.3) 50%,
        transparent 100%
    );
    pointer-events: none; z-index: 400;
}
/* Bottom gradient — deeper for bottom sheet contrast */
.explore-map::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 160px;
    background: linear-gradient(to top,
        rgba(6,8,13,.85) 0%,
        rgba(6,8,13,.4) 40%,
        transparent 100%
    );
    pointer-events: none; z-index: 400;
}

/* ─── Focus Styles (Accessibility) ───────────────────────── */
.explore-hint:focus-visible,
.explore-clear:focus-visible,
.explore-locate:focus-visible,
.explore-back:focus-visible,
.explore-voice:focus-visible,
.explore-style-toggle:focus-visible,
.preview-close:focus-visible,
.preview-btn:focus-visible,
.preview-btn-share:focus-visible,
.preview-fav:focus-visible,
.rl-item:focus-visible,
.rl-fav-btn:focus-visible,
.splash-btn:focus-visible,
.error-retry:focus-visible,
.recent-item:focus-visible,
.suggest-item:focus-visible,
.onboard-next:focus-visible,
.onboard-skip:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ─── MARKERS ────────────────────────────────────────────── */
.am-wrap {
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
}
.am {
    position: relative; width: 44px; height: 56px;
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.5));
    transition: filter .3s;
}
.am:hover { filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.am-pin {
    width: 0; height: 0;
    border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-top: 8px solid var(--c, var(--accent)); opacity: 0.7; margin-top: -1px;
}
.am-body {
    width: 40px; height: 40px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(35,40,50,.95), rgba(13,17,23,.98));
    border: 2.5px solid var(--c, var(--accent));
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 2;
    box-shadow:
        0 0 12px var(--c, var(--accent)),
        0 0 24px rgba(0,0,0,.4),
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 0 10px rgba(0,0,0,.3);
    transition: transform .3s var(--ease-spring), box-shadow .3s, border-color .3s;
}
.am-emoji { font-size: 18px; line-height: 1; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.am-verified {
    position: absolute; bottom: -2px; right: -2px;
    width: 15px; height: 15px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #00ebe0);
    color: var(--bg); font-size: 9px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 6px rgba(0,212,200,.4);
    border: 1.5px solid var(--bg);
}
.am-pulse {
    position: absolute; top: 0; left: 50%; margin-left: -20px;
    width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid var(--c, var(--accent)); opacity: 0; z-index: 1;
    animation: amPulse 2.5s ease-out infinite;
}
@keyframes amPulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(2.2); opacity: 0; } }

/* Stagger entrance */
.am-wrap {
    opacity: 0; transform: scale(0) translateY(20px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.am-wrap.am-visible { opacity: 1; transform: scale(1) translateY(0); }

/* Hover */
.am:hover .am-body {
    transform: scale(1.18);
    box-shadow:
        0 0 20px var(--c, var(--accent)),
        0 0 40px var(--c, var(--accent)),
        0 0 60px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.1);
}
.am:hover .am-pulse { animation-duration: 1.5s; }

/* ─── Marker States ──────────────────────────────────────── */
.am-found .am-body {
    border-color: var(--c, var(--accent));
    box-shadow: 0 0 16px var(--c, var(--accent)), 0 0 32px var(--c, var(--accent)), 0 0 48px rgba(0,0,0,.2);
    transform: scale(1.1);
}
.am-found .am-pulse { animation: amFoundPulse 1s ease-out infinite; }
@keyframes amFoundPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.5); opacity: 0; } }

.am-dim { opacity: .06 !important; filter: grayscale(1) brightness(.25); pointer-events: none; transition: opacity .5s, filter .5s; }

.am-selected .am-body {
    border-color: var(--gold) !important; transform: scale(1.22);
    box-shadow: 0 0 20px var(--gold), 0 0 40px rgba(245,158,11,.3), 0 0 60px rgba(0,0,0,.25);
}
.am-selected .am-pulse { border-color: var(--gold); animation: amSelectedPulse 1.2s ease-out infinite; }
@keyframes amSelectedPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.5); opacity: 0; } }

/* Marker bounce */
.am-bounce .am-body {
    animation: amBounce .6s var(--ease-spring);
}
@keyframes amBounce {
    0%, 100% { transform: translateY(0) scale(1.1); }
    30% { transform: translateY(-10px) scale(1.18); }
    60% { transform: translateY(-3px) scale(1.12); }
}

/* ─── Cluster Icons ─────────────────────────────────────── */
.cluster-wrap { background: transparent !important; border: none !important; }
.cluster-icon {
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0,212,200,.22), rgba(0,212,200,.08));
    border: 2px solid rgba(0,212,200,.4);
    color: var(--accent); font-weight: 700;
    box-shadow: 0 0 20px rgba(0,212,200,.2), 0 4px 16px rgba(0,0,0,.35);
    transition: transform .25s var(--ease-spring), box-shadow .25s;
    backdrop-filter: blur(8px);
}
.cluster-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 0 30px rgba(0,212,200,.3), 0 6px 20px rgba(0,0,0,.4);
}
.cluster-sm { width: 38px; height: 38px; font-size: 13px; border-color: rgba(0,212,200,.35); }
.cluster-md {
    width: 46px; height: 46px; font-size: 15px; border-color: rgba(0,212,200,.45);
    background: radial-gradient(circle at 30% 30%, rgba(0,212,200,.28), rgba(0,212,200,.1));
}
.cluster-lg {
    width: 54px; height: 54px; font-size: 17px; font-weight: 800; border-color: rgba(0,212,200,.55);
    background: radial-gradient(circle at 30% 30%, rgba(0,212,200,.32), rgba(0,212,200,.12));
}
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: transparent !important; }
.marker-cluster div { background: transparent !important; }

/* ─── Tooltips ──────────────────────────────────────────── */
.am-tooltip {
    background: var(--glass) !important;
    border: 1px solid var(--accent-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 14px !important;
    font-size: 12px !important; color: var(--text) !important;
    font-weight: 500 !important;
    box-shadow: var(--shadow-md) !important;
    backdrop-filter: var(--glass-blur);
    white-space: nowrap;
}
.am-tooltip::before { border-top-color: var(--glass) !important; }
.leaflet-tooltip.am-tooltip { pointer-events: none; }

/* ─── Search Bar — Premium Frosted Glass ─────────────────── */
.explore-search-bar {
    position: absolute; top: calc(20px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
    z-index: 1000; width: 90%; max-width: 560px;
}
.explore-search-wrap {
    display: flex; align-items: center; gap: 10px; padding: 14px 20px;
    background: var(--glass);
    border: 1px solid var(--accent-border);
    border-radius: 22px;
    backdrop-filter: var(--glass-blur);
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 var(--glass-border),
        0 0 0 0 rgba(0,212,200,0);
    transition: all .35s var(--ease-out);
}
.explore-search-wrap:focus-within {
    border-color: var(--accent-border);
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 var(--glass-border),
        0 0 0 3px rgba(0,212,200,0.06);
}
.explore-search-icon {
    flex-shrink: 0; color: var(--accent); opacity: .8;
    transition: opacity .2s;
}
.explore-search-wrap:focus-within .explore-search-icon { opacity: 1; }
.explore-input {
    flex: 1; background: none; border: none; outline: none;
    font-size: 16px; color: var(--text); font-family: inherit;
    font-weight: 500;
}
.explore-input:focus,
.explore-input:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}
.explore-input::placeholder { color: var(--text-muted); font-weight: 400; }
.explore-clear, .explore-voice {
    flex-shrink: 0; background: none; border: none; color: var(--text-muted);
    cursor: pointer; padding: 8px; border-radius: var(--radius-sm);
    transition: color .25s, background .25s, transform .25s;
    min-width: 36px; min-height: 36px; display: flex; align-items: center; justify-content: center;
    touch-action: manipulation;
}
.explore-clear:hover, .explore-voice:hover {
    color: var(--text); background: rgba(255,255,255,.06);
    transform: scale(1.05);
}
.explore-voice.voice-active {
    color: #ef4444; background: rgba(239,68,68,.1);
    animation: voicePulse 1s ease infinite;
}
@keyframes voicePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .7; transform: scale(1.08); } }

/* Spinner */
.explore-spinner { flex-shrink: 0; }
.spinner-ring {
    width: 22px; height: 22px;
    border: 2.5px solid rgba(0,212,200,.15); border-top-color: var(--accent);
    border-radius: 50%; animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* AI badge — premium gradient */
.explore-ai-badge {
    display: flex; align-items: center; gap: 8px; margin-top: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0,212,200,.1) 0%, rgba(167,139,250,.06) 100%);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-pill);
    font-size: 13px; color: var(--accent); font-weight: 500;
    width: fit-content;
    animation: floatIn .4s var(--ease-out);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-sm), var(--shadow-glow);
}
@keyframes floatIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── No Results ─────────────────────────────────────────── */
.explore-no-results {
    display: flex; align-items: center; gap: 8px; margin-top: 8px;
    padding: 8px 16px;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: var(--radius-pill);
    font-size: 13px; color: #fca5a5; font-weight: 500;
    width: fit-content;
    animation: floatIn .4s var(--ease-out);
    backdrop-filter: var(--glass-blur);
}

/* ─── Search Error + Retry ───────────────────────────────── */
.explore-error {
    display: flex; align-items: center; gap: 8px; margin-top: 8px;
    padding: 8px 16px;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: var(--radius-pill);
    font-size: 13px; color: #fca5a5; font-weight: 500;
    width: fit-content;
    animation: floatIn .4s var(--ease-out);
    backdrop-filter: var(--glass-blur);
}
.error-retry {
    background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3);
    color: #fca5a5; padding: 5px 14px; border-radius: var(--radius-pill); cursor: pointer;
    font-size: 12px; font-weight: 600; transition: all .25s var(--ease-out);
    min-height: 28px; touch-action: manipulation;
}
.error-retry:hover { background: rgba(239,68,68,.25); color: #fff; transform: scale(1.03); }

/* ─── Smart Suggestions Dropdown ─────────────────────────── */
.explore-suggestions {
    margin-top: 6px;
    background: var(--glass);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: floatIn .25s var(--ease-out);
    display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px;
}
.suggest-item {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0,212,200,.06), rgba(167,139,250,.04));
    border: 1px solid rgba(0,212,200,.12);
    border-radius: var(--radius-pill);
    color: var(--text-secondary); font-size: 13px; font-weight: 500;
    cursor: pointer;
    font-family: inherit; transition: all .25s var(--ease-out); touch-action: manipulation;
}
.suggest-item:hover {
    background: linear-gradient(135deg, rgba(0,212,200,.14), rgba(167,139,250,.08));
    border-color: rgba(0,212,200,.3); color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,212,200,.08);
}

/* ─── Recent Searches Dropdown ───────────────────────────── */
.explore-recent {
    margin-top: 6px;
    background: var(--glass);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: floatIn .25s var(--ease-out);
}
.recent-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 18px 6px; font-size: 11px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600;
}
.recent-clear {
    background: none; border: none; color: var(--text-muted); font-size: 11px;
    cursor: pointer; transition: color .25s; text-transform: uppercase;
    letter-spacing: 0.5px; touch-action: manipulation; font-weight: 600;
}
.recent-clear:hover { color: #fca5a5; }
.recent-item {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 18px; background: none; border: none;
    color: var(--text-secondary); font-size: 14px; cursor: pointer;
    font-family: inherit; text-align: left;
    transition: all .2s var(--ease-out);
    touch-action: manipulation;
}
.recent-item:hover {
    background: linear-gradient(135deg, rgba(0,212,200,.05), rgba(167,139,250,.02));
    color: var(--text);
}
.recent-item svg { flex-shrink: 0; color: var(--text-muted); transition: color .2s; }
.recent-item:hover svg { color: var(--accent); }

/* ─── Hint Chips (horizontal scroll) — Premium ────────────── */
.explore-hints {
    position: absolute; bottom: 80px; left: 0; right: 0;
    z-index: 1000; display: flex; gap: 8px;
    padding: 0 20px; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
}
.explore-hints::-webkit-scrollbar { display: none; }
.explore-hints.scroll-start {
    mask-image: linear-gradient(to right, black 0, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 20px), transparent 100%);
}
.explore-hints.scroll-end {
    mask-image: linear-gradient(to right, transparent 0, black 20px, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 20px, black 100%);
}

.explore-hint {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary); font-size: 13px; font-weight: 600;
    cursor: pointer;
    backdrop-filter: var(--glass-blur);
    transition: all .3s var(--ease-out);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0; scroll-snap-align: start;
    touch-action: manipulation;
    position: relative; overflow: hidden;
}
.explore-hint::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,212,200,0.08), rgba(167,139,250,0.04));
    opacity: 0; transition: opacity .3s; border-radius: inherit;
}
.explore-hint:hover::before { opacity: 1; }
.explore-hint:hover {
    border-color: var(--accent-border); color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(0,212,200,.06);
}
.explore-hint.hint-active {
    background: linear-gradient(135deg, rgba(0,212,200,.18), rgba(0,212,200,.08));
    border-color: var(--accent); color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,212,200,.15), var(--shadow-glow);
}
.explore-hint.hint-active::before { opacity: 0; }
.explore-hint.hint-special {
    border-color: rgba(245,158,11,.18);
}
.explore-hint.hint-special::before {
    background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(249,115,22,0.03));
}
.explore-hint.hint-special.hint-active {
    background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(249,115,22,.06));
    border-color: var(--gold); color: var(--gold);
    box-shadow: 0 4px 20px rgba(245,158,11,.12);
}

/* ─── Results List (Bottom Sheet) — Premium Glass ────────── */
.explore-results {
    position: absolute; bottom: 0; left: 0; right: 0;
    z-index: 1001; max-height: 42vh;
    overflow-y: auto; overflow-x: hidden;
    background: linear-gradient(180deg, var(--glass) 0%, rgba(6,8,13,.95) 100%);
    border-top: 1px solid var(--accent-border);
    backdrop-filter: var(--glass-blur);
    padding: 0 0 env(safe-area-inset-bottom, 8px);
    animation: rlSlideUp .45s var(--ease-out);
    -webkit-overflow-scrolling: touch;
    transition: max-height .35s var(--ease-smooth);
    box-shadow: 0 -8px 40px rgba(0,0,0,.3);
}
@keyframes rlSlideUp { from { transform: translateY(100%); opacity: .5; } to { transform: translateY(0); opacity: 1; } }

/* Drag handle — refined */
.rl-handle {
    display: flex; justify-content: center; padding: 12px 0 6px;
    cursor: grab; touch-action: none;
}
.rl-handle-bar {
    width: 40px; height: 4px; border-radius: var(--radius-pill);
    background: linear-gradient(90deg, rgba(0,212,200,.15), rgba(255,255,255,.2), rgba(0,212,200,.15));
}

.rl-item {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 14px 20px;
    background: none; border: none;
    border-bottom: 1px solid rgba(42,49,66,.25);
    color: var(--text); cursor: pointer; text-align: left;
    transition: all .25s var(--ease-out); font-family: inherit;
    touch-action: manipulation;
    position: relative;
}
.rl-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,212,200,.04), rgba(167,139,250,.02));
    opacity: 0; transition: opacity .25s;
}
.rl-item:hover::before, .rl-item:focus::before { opacity: 1; }
.rl-item:hover { border-bottom-color: rgba(0,212,200,.1); }
.rl-item:last-of-type { border-bottom: none; }

.rl-emoji {
    flex-shrink: 0; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(22,27,34,.9), rgba(13,17,23,.95));
    border: 1.5px solid rgba(0,212,200,.15); font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.2), inset 0 1px 0 var(--glass-border);
    transition: transform .3s var(--ease-spring), border-color .3s;
}
.rl-item:hover .rl-emoji {
    transform: scale(1.08);
    border-color: rgba(0,212,200,.3);
}
.rl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rl-name {
    font-size: 15px; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 6px;
    transition: color .2s;
}
.rl-item:hover .rl-name { color: var(--accent-hover); }
.rl-verified {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #00ebe0);
    color: var(--bg); font-size: 9px; font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,212,200,.3);
}
.rl-meta {
    font-size: 12px; color: var(--text-secondary);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.rl-rating { color: var(--gold); font-weight: 600; }
.rl-open { color: var(--green); font-weight: 600; }
.rl-closed { color: #f87171; font-weight: 500; }
.rl-views { color: var(--text-muted); font-size: 11px; }
.rl-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rl-fav-btn {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 18px; padding: 6px; border-radius: var(--radius-sm);
    transition: all .25s var(--ease-spring);
    touch-action: manipulation;
}
.rl-fav-btn:hover { color: #f87171; transform: scale(1.25); }
.rl-fav-btn.rl-fav-active { color: #f87171; }
.rl-arrow { flex-shrink: 0; color: var(--text-muted); transition: all .25s; }
.rl-item:hover .rl-arrow { color: var(--accent); transform: translateX(2px); }

/* "N more" indicator */
.rl-more {
    text-align: center; padding: 14px; font-size: 13px;
    color: var(--text-muted); font-weight: 500;
    border-top: 1px solid rgba(42,49,66,.25);
    background: linear-gradient(135deg, rgba(0,212,200,.02), transparent);
}

/* Skeleton loading — shimmer */
.rl-skeleton {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; border-bottom: 1px solid rgba(42,49,66,.25);
}
.rl-skel-emoji {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px;
    background: linear-gradient(90deg, rgba(30,35,45,.8) 25%, rgba(55,60,70,.6) 50%, rgba(30,35,45,.8) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite;
}
.rl-skel-info { flex: 1; }
.rl-skel-name {
    width: 60%; height: 14px; border-radius: 6px; margin-bottom: 8px;
    background: linear-gradient(90deg, rgba(30,35,45,.8) 25%, rgba(55,60,70,.6) 50%, rgba(30,35,45,.8) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite;
}
.rl-skel-meta {
    width: 40%; height: 10px; border-radius: 6px;
    background: linear-gradient(90deg, rgba(30,35,45,.8) 25%, rgba(55,60,70,.6) 50%, rgba(30,35,45,.8) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Scrollbar — refined */
.explore-results::-webkit-scrollbar { width: 4px; }
.explore-results::-webkit-scrollbar-track { background: transparent; }
.explore-results::-webkit-scrollbar-thumb { background: rgba(0,212,200,.15); border-radius: 4px; }
.explore-results::-webkit-scrollbar-thumb:hover { background: rgba(0,212,200,.3); }

/* ─── Preview Card — Premium Glassmorphism ───────────────── */
.explore-preview {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 1002; width: 90%; max-width: 400px;
    background: linear-gradient(180deg, rgba(13,17,23,.96) 0%, rgba(6,8,13,.98) 100%);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-xl);
    backdrop-filter: var(--glass-blur);
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px var(--glass-border),
        0 0 80px rgba(0,212,200,.04);
    overflow: hidden;
    animation: previewUp .45s var(--ease-out);
    touch-action: pan-y;
}
@keyframes previewUp {
    from { opacity: 0; transform: translateX(-50%) translateY(50px) scale(0.95); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.preview-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08);
    color: var(--text-secondary); cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(12px); transition: all .25s var(--ease-out);
    touch-action: manipulation;
}
.preview-close:hover {
    color: var(--text); background: rgba(0,0,0,.7);
    transform: scale(1.08);
}

/* Favorite button on preview */
.preview-fav {
    position: absolute; top: 12px; right: 56px; z-index: 2;
    background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08);
    color: var(--text-muted); cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(12px);
    transition: all .25s var(--ease-spring);
    touch-action: manipulation;
}
.preview-fav:hover { color: #f87171; transform: scale(1.15); }
.preview-fav.fav-active {
    color: #f87171; background: rgba(248,113,113,.15);
    border-color: rgba(248,113,113,.2);
}

/* Image — refined overlay + skeleton */
.preview-img-wrap {
    position: relative; height: 160px; overflow: hidden;
    background: var(--bg-surface);
}
.preview-img-wrap.img-loading {
    background: linear-gradient(90deg, rgba(30,35,45,.8) 25%, rgba(55,60,70,.6) 50%, rgba(30,35,45,.8) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}
.preview-img-wrap.img-loading .preview-img { opacity: 0; }
.preview-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity .4s var(--ease-smooth), transform .4s;
}
.preview-img-wrap:hover .preview-img { transform: scale(1.03); }
.preview-img-wrap::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(13,17,23,.8) 0%,
        rgba(13,17,23,.2) 40%,
        transparent 70%
    );
    pointer-events: none;
}
.preview-cat {
    position: absolute; bottom: 10px; left: 14px; padding: 5px 12px;
    background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
    color: var(--text-secondary); backdrop-filter: blur(8px); z-index: 1;
}

/* Photo gallery dots */
.preview-gallery {
    position: absolute; bottom: 10px; right: 14px; z-index: 1;
    display: flex; gap: 6px; align-items: center;
}
.gallery-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.25); cursor: pointer;
    transition: all .25s var(--ease-spring); touch-action: manipulation;
    border: 1px solid rgba(255,255,255,.1);
}
.gallery-dot:hover { background: rgba(255,255,255,.5); transform: scale(1.2); }
.gallery-dot.gallery-dot-active {
    background: var(--accent); transform: scale(1.35);
    box-shadow: 0 0 8px rgba(0,212,200,.4);
    border-color: transparent;
}

.preview-body { padding: 18px 22px 22px; }
.preview-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.preview-name {
    font-size: 19px; font-weight: 700; color: var(--text);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1; min-width: 0;
}
.preview-verified {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--accent); flex-shrink: 0;
    filter: drop-shadow(0 1px 4px rgba(0,212,200,.3));
}
.preview-views {
    font-size: 12px; color: var(--text-muted); flex-shrink: 0;
    font-weight: 500;
}
.preview-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-secondary);
    margin-bottom: 8px; flex-wrap: wrap;
}
.preview-rating { color: var(--gold); font-weight: 600; }

/* Open/Closed indicator — pill badge */
.preview-open {
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: var(--radius-pill); text-transform: uppercase;
    letter-spacing: 0.3px;
}
.preview-open.open-yes {
    color: var(--green); background: rgba(52,211,153,.1);
    border: 1px solid rgba(52,211,153,.15);
}
.preview-open.open-no {
    color: #f87171; background: rgba(248,113,113,.08);
    border: 1px solid rgba(248,113,113,.12);
}

/* Tags in preview */
.preview-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.preview-tag {
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(0,212,200,.06), rgba(167,139,250,.04));
    border: 1px solid rgba(0,212,200,.1);
    border-radius: var(--radius-pill);
    font-size: 11px; color: var(--text-secondary); font-weight: 500;
    transition: all .2s;
}
.preview-tag:hover {
    border-color: rgba(0,212,200,.2); color: var(--accent);
}

/* Hours + Phone */
.preview-extra {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px;
}
.preview-extra-item {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-secondary); font-weight: 500;
}
.preview-extra-item svg { flex-shrink: 0; color: var(--text-muted); }
.preview-extra-phone {
    color: #93c5fd; text-decoration: none; transition: color .2s;
}
.preview-extra-phone:hover { color: #bfdbfe; }

.preview-desc {
    font-size: 13px; color: var(--text-secondary); line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Action buttons — premium gradient system */
.preview-actions { display: flex; gap: 8px; }
.preview-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px;
    background: linear-gradient(135deg, var(--accent), #00b8ae);
    color: var(--bg); font-weight: 700; font-size: 13px;
    border-radius: var(--radius-md); text-decoration: none;
    transition: all .3s var(--ease-out); flex: 1; justify-content: center;
    border: none; cursor: pointer; touch-action: manipulation;
    box-shadow: 0 2px 12px rgba(0,212,200,.2);
    position: relative; overflow: hidden;
}
.preview-btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
    opacity: 0; transition: opacity .3s;
}
.preview-btn:hover::after { opacity: 1; }
.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,212,200,.3);
}
.preview-btn-nav {
    background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(59,130,246,.08));
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,.25); flex: 0 0 auto;
    box-shadow: none;
}
.preview-btn-nav::after { display: none; }
.preview-btn-nav:hover {
    background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(59,130,246,.12));
    box-shadow: 0 4px 20px rgba(59,130,246,.15);
}
.preview-btn-call {
    background: linear-gradient(135deg, rgba(52,211,153,.15), rgba(52,211,153,.08));
    color: #6ee7b7;
    border: 1px solid rgba(52,211,153,.25); flex: 0 0 auto;
    padding: 11px 14px; box-shadow: none;
}
.preview-btn-call::after { display: none; }
.preview-btn-call:hover {
    background: linear-gradient(135deg, rgba(52,211,153,.25), rgba(52,211,153,.12));
    box-shadow: 0 4px 20px rgba(52,211,153,.15);
}
.preview-btn-share {
    background: linear-gradient(135deg, rgba(167,139,250,.15), rgba(139,92,246,.08));
    color: #c4b5fd;
    border: 1px solid rgba(167,139,250,.25); flex: 0 0 auto;
    padding: 11px 14px; box-shadow: none;
}
.preview-btn-share::after { display: none; }
.preview-btn-share:hover {
    background: linear-gradient(135deg, rgba(167,139,250,.25), rgba(139,92,246,.12));
    box-shadow: 0 4px 20px rgba(167,139,250,.15);
}

/* ─── Back Button — Glass ──────────────────────────────────── */
.explore-back {
    position: absolute; top: calc(20px + env(safe-area-inset-top, 0px)); left: 20px; z-index: 1000;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: var(--glass); border: 1px solid var(--border);
    border-radius: 14px; color: var(--text-secondary); text-decoration: none;
    backdrop-filter: var(--glass-blur);
    transition: all .3s var(--ease-out);
    box-shadow: var(--shadow-sm); touch-action: manipulation;
}
.explore-back:hover {
    border-color: var(--accent-border); color: var(--accent);
    box-shadow: var(--shadow-md), 0 0 20px rgba(0,212,200,.06);
    transform: translateX(-2px);
}

/* ─── Map Style Toggle — Glass Button ─────────────────────── */
.explore-style-toggle {
    position: absolute; bottom: 176px; right: 7px; z-index: 1000;
    width: 46px; height: 46px; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    background: var(--glass); border: 1px solid var(--border);
    border-radius: 14px; cursor: pointer;
    backdrop-filter: var(--glass-blur);
    transition: all .3s var(--ease-out);
    box-shadow: var(--shadow-sm); touch-action: manipulation;
}
.explore-style-toggle:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md), 0 0 20px rgba(0,212,200,.06);
    transform: scale(1.06);
}

/* ─── Flash Transition ───────────────────────────────────── */
.explore-flash {
    position: fixed; inset: 0; z-index: 99999;
    background: radial-gradient(circle at center, rgba(0,212,200,.06), rgba(0,0,0,.1));
    backdrop-filter: blur(40px) saturate(1.5);
    animation: flash .5s var(--ease-out) forwards;
}
@keyframes flash { 0% { opacity: 0 } 40% { opacity: 1 } 100% { opacity: 1 } }

/* ─── Leaflet Controls — Glass ──────────────────────────── */
.leaflet-bottom.leaflet-right {
    right: 0 !important; bottom: 8px !important;
}
.leaflet-control-zoom {
    border: 1px solid var(--border) !important;
    border-radius: 14px !important; overflow: hidden;
    box-shadow: var(--shadow-md) !important;
    margin-right: 7px !important; margin-bottom: 0 !important;
}
.leaflet-control-zoom a {
    background: var(--glass) !important; color: var(--text-secondary) !important;
    border: none !important;
    backdrop-filter: var(--glass-blur);
    width: 46px !important; height: 46px !important;
    line-height: 46px !important; font-size: 18px !important;
    transition: all .2s !important;
}
.leaflet-control-zoom a:hover {
    background: rgba(0,212,200,.12) !important; color: var(--accent) !important;
}
.leaflet-control-zoom-in { border-bottom: 1px solid var(--border) !important; }
.leaflet-control-attribution {
    background: rgba(0,0,0,.35) !important; color: rgba(255,255,255,.25) !important;
    font-size: 10px !important; padding: 2px 8px !important;
    backdrop-filter: blur(8px);
}
.leaflet-control-attribution a { color: rgba(255,255,255,.35) !important; }

/* ─── User Location Marker — Premium ────────────────────── */
.user-marker-wrap { background: transparent !important; border: none !important; overflow: visible !important; }
.user-marker { position: relative; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.user-marker-dot {
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #60a5fa);
    border: 3px solid #fff;
    box-shadow: 0 0 16px rgba(59,130,246,.8), 0 0 40px rgba(59,130,246,.3);
    position: relative; z-index: 3;
}
.user-marker-wave {
    position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
    border-radius: 50%; background: rgba(59,130,246,.1); border: 1.5px solid rgba(59,130,246,.25);
    animation: userWave 2s ease-out infinite; z-index: 1;
}
.user-marker-wave-2 { animation-delay: 1s; }
@keyframes userWave { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }

/* ─── My Location Button — Glass ─────────────────────────── */
.explore-locate {
    position: absolute; bottom: 120px; right: 7px; z-index: 1000;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: var(--glass); border: 1px solid var(--border);
    border-radius: 14px; color: var(--text-secondary); cursor: pointer;
    backdrop-filter: var(--glass-blur);
    transition: all .3s var(--ease-out);
    box-shadow: var(--shadow-sm); touch-action: manipulation;
}
.explore-locate:hover {
    border-color: rgba(59,130,246,.35); color: var(--blue);
    box-shadow: var(--shadow-md), 0 0 20px rgba(59,130,246,.08);
    transform: scale(1.06);
}
.explore-locate.locating { color: var(--blue); border-color: rgba(59,130,246,.35); }
.explore-locate.locating svg { animation: spin .8s linear infinite; }

/* ─── Nearby Badge — Frosted ────────────────────────────── */
.explore-nearby-badge {
    position: absolute; top: calc(80px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
    z-index: 900;
    display: flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(59,130,246,.06));
    border: 1px solid rgba(59,130,246,.25);
    border-radius: var(--radius-pill);
    font-size: 13px; color: #93c5fd; font-weight: 500;
    backdrop-filter: var(--glass-blur);
    animation: floatIn .5s var(--ease-out);
    box-shadow: var(--shadow-sm);
}

/* ─── Onboarding Overlay — Premium Glass Cards ──────────── */
.onboarding-overlay {
    position: absolute; inset: 0; z-index: 5000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(12px) saturate(1.2);
    animation: fadeIn .35s var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.onboard-card {
    max-width: 360px; width: 90%; padding: 36px 32px;
    background: linear-gradient(180deg, rgba(22,27,34,.98) 0%, rgba(13,17,23,.99) 100%);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-xl); text-align: center;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0,212,200,.04);
    animation: previewUp .5s var(--ease-out);
    position: relative; overflow: hidden;
}
.onboard-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,200,.2), transparent);
}
.onboard-icon { font-size: 52px; margin-bottom: 18px; }
.onboard-card h3 {
    font-size: 22px; color: var(--text); margin: 0 0 10px;
    font-family: 'Outfit', sans-serif; font-weight: 700;
}
.onboard-card p { font-size: 14px; color: var(--text-secondary); margin: 0 0 28px; line-height: 1.6; }
.onboard-actions { display: flex; gap: 12px; justify-content: center; }
.onboard-skip {
    background: none; border: 1px solid rgba(255,255,255,.08); color: var(--text-secondary);
    padding: 11px 22px; border-radius: var(--radius-md); cursor: pointer;
    font-size: 14px; transition: all .25s var(--ease-out); touch-action: manipulation;
}
.onboard-skip:hover { border-color: rgba(255,255,255,.15); color: var(--text); }
.onboard-next {
    background: linear-gradient(135deg, var(--accent), #00b8ae); color: var(--bg);
    padding: 11px 26px; border-radius: var(--radius-md); cursor: pointer;
    font-size: 14px; font-weight: 700; border: none;
    transition: all .25s var(--ease-out); touch-action: manipulation;
    box-shadow: 0 2px 12px rgba(0,212,200,.2);
    position: relative; overflow: hidden;
}
.onboard-next::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
    opacity: 0; transition: opacity .25s;
}
.onboard-next:hover::after { opacity: 1; }
.onboard-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,212,200,.3);
}
.onboard-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.onboard-dots .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.12); transition: all .35s var(--ease-spring);
}
.onboard-dots .dot.active {
    background: var(--accent); transform: scale(1.3);
    box-shadow: 0 0 8px rgba(0,212,200,.3);
}

/* ─── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .am-wrap { opacity: 1; transform: none; transition: none; }
    .am-pulse, .user-marker-wave { display: none; }
    .splash-logo { animation: none; }
    .explore-results { animation: none; }
    .explore-preview { animation: none; }
    .onboard-card { animation: none; }
    .am-bounce .am-body { animation: none; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .splash-title { font-size: 26px; }
    .splash-btn { padding: 16px 18px; }

    /* Back arrow — keep left, shrink */
    .explore-back { top: 12px; left: 10px; width: 38px; height: 38px; border-radius: 12px; font-size: 16px; }

    /* Search bar — shift right so it doesn't overlap back arrow */
    .explore-search-bar {
        top: 12px;
        left: auto; right: 10px;
        transform: none;
        width: calc(100% - 64px);  /* leave space for 38px back btn + 10px left + 16px gap */
    }
    .explore-search-wrap { padding: 10px 14px; border-radius: 16px; gap: 8px; }
    .explore-search-icon { width: 16px; height: 16px; }
    .explore-input { font-size: 14px; }
    .explore-clear, .explore-voice { min-width: 32px; min-height: 32px; }

    /* Nearby badge */
    .explore-nearby-badge { max-width: 88%; padding: 7px 14px; font-size: 12px; }

    /* Hint chips — tighter, better mask fade */
    .explore-hints {
        bottom: 56px; gap: 6px; padding: 0 10px;
        mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
    }
    .explore-hint { padding: 7px 14px; font-size: 12px; }

    /* Preview card */
    .explore-preview { max-width: 94%; bottom: 16px; border-radius: 20px; }
    .preview-img-wrap { height: 120px; }
    .preview-body { padding: 14px 16px 18px; }
    .preview-name { font-size: 16px; }
    .preview-actions { flex-wrap: wrap; gap: 6px; }
    .preview-btn { padding: 10px 14px; font-size: 12px; }

    /* Markers */
    .am-body { width: 34px; height: 34px; }
    .am-emoji { font-size: 16px; }
    .am-pulse { width: 34px; height: 34px; }

    /* Results list */
    .explore-results { max-height: 38vh; }
    .rl-item { padding: 10px 14px; gap: 10px; }
    .rl-emoji { width: 38px; height: 38px; font-size: 17px; border-radius: 11px; }
    .rl-name { font-size: 14px; }
    .rl-meta { font-size: 11px; }

    /* Map controls */
    .explore-style-toggle { bottom: 150px; right: 7px; width: 40px; height: 40px; font-size: 17px; }
    .explore-locate { bottom: 102px; right: 7px; width: 40px; height: 40px; }
    .leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 16px !important; }

    /* Onboarding */
    .onboard-card { padding: 24px 20px; }
    .onboard-icon { font-size: 40px; }
    .onboard-card h3 { font-size: 18px; }
}

@media (max-width: 380px) {
    .explore-search-bar { width: calc(100% - 56px); right: 8px; }
    .explore-back { left: 8px; width: 36px; height: 36px; }
    .explore-search-wrap { padding: 9px 12px; gap: 6px; }
    .explore-input { font-size: 14px; }
    .explore-hint { padding: 7px 12px; font-size: 12px; }
    .explore-nearby-badge { max-width: 82%; font-size: 12px; padding: 6px 12px; }
    .rl-item { padding: 9px 12px; gap: 8px; }
    .rl-emoji { width: 34px; height: 34px; font-size: 15px; }
    .rl-meta { font-size: 11px; }
    .preview-btn { padding: 9px 12px; font-size: 11px; }
}

/* ─── Landscape: reduce vertical elements ─────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .explore-hints { bottom: 44px; }
    .explore-results { max-height: 32vh; }
    .explore-preview { bottom: 10px; }
    .preview-img-wrap { height: 80px; }
    .explore-style-toggle { bottom: 120px; }
    .explore-locate { bottom: 78px; }
    .onboard-card { padding: 16px; }
    .onboard-icon { font-size: 28px; }
}

/* ═══════════════════════════════════════════════════════════
   Light Theme Component Overrides
   ═══════════════════════════════════════════════════════════ */

/* Splash */
[data-theme="light"] .splash-overlay {
    background: radial-gradient(ellipse at 50% 30%, rgba(0,168,158,0.06) 0%, rgba(167,139,250,0.02) 40%, var(--bg) 70%);
}

/* Map loader */
[data-theme="light"] .explore-loader {
    background: rgba(245,247,250,0.94);
    backdrop-filter: blur(30px);
}

/* Map top/bottom gradients */
[data-theme="light"] .explore-map::before {
    background: linear-gradient(to bottom,
        rgba(245,247,250,0.7) 0%,
        rgba(245,247,250,0.3) 50%,
        transparent 100%
    );
}
[data-theme="light"] .explore-map::after {
    background: linear-gradient(to top,
        rgba(245,247,250,0.85) 0%,
        rgba(245,247,250,0.4) 40%,
        transparent 100%
    );
}

/* Marker body — softer shadow for light theme */
[data-theme="light"] .am-body {
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.97), rgba(240,242,245,0.99));
    box-shadow:
        0 2px 8px rgba(0,0,0,0.10),
        0 0 0 2px rgba(255,255,255,0.8),
        inset 0 1px 0 rgba(255,255,255,.9);
}
[data-theme="light"] .am:hover .am-body {
    box-shadow:
        0 4px 16px rgba(0,0,0,0.14),
        0 0 0 2px rgba(255,255,255,0.9),
        inset 0 1px 0 rgba(255,255,255,.9);
}
[data-theme="light"] .am-found .am-body {
    box-shadow:
        0 0 6px var(--c, var(--accent)),
        0 2px 10px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,.9);
}
[data-theme="light"] .am-selected .am-body {
    box-shadow:
        0 0 8px var(--gold),
        0 2px 10px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,.9);
}
/* Marker pin */
[data-theme="light"] .am {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}
[data-theme="light"] .am:hover {
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.2));
}

/* Results bottom sheet */
[data-theme="light"] .explore-results {
    background: linear-gradient(180deg, var(--glass) 0%, rgba(255,255,255,0.98) 100%);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.08);
}
[data-theme="light"] .rl-handle-bar {
    background: linear-gradient(90deg, rgba(0,168,158,.15), rgba(0,0,0,.12), rgba(0,168,158,.15));
}
[data-theme="light"] .rl-item {
    border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .rl-item::before {
    background: linear-gradient(135deg, rgba(0,168,158,.03), rgba(167,139,250,.02));
}
[data-theme="light"] .rl-item:hover {
    border-bottom-color: rgba(0,168,158,.1);
}
[data-theme="light"] .rl-emoji {
    background: radial-gradient(circle at 30% 30%, #ffffff, #f0f2f5);
    border-color: rgba(0,168,158,.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,.9);
}

/* Skeleton shimmer */
[data-theme="light"] .rl-skel-emoji,
[data-theme="light"] .rl-skel-name,
[data-theme="light"] .rl-skel-meta {
    background: linear-gradient(90deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.02) 50%, rgba(0,0,0,.05) 75%);
    background-size: 200% 100%;
}
[data-theme="light"] .rl-skeleton {
    border-bottom-color: rgba(0,0,0,0.04);
}

/* Scrollbar */
[data-theme="light"] .explore-results::-webkit-scrollbar-thumb {
    background: rgba(0,168,158,.15);
}
[data-theme="light"] .explore-results::-webkit-scrollbar-thumb:hover {
    background: rgba(0,168,158,.3);
}

/* Preview card */
[data-theme="light"] .explore-preview {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,247,250,0.99) 100%);
    box-shadow:
        0 16px 64px rgba(0,0,0,0.10),
        0 0 0 1px var(--glass-border);
}
[data-theme="light"] .preview-img-wrap.img-loading {
    background: linear-gradient(90deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.02) 50%, rgba(0,0,0,.05) 75%);
    background-size: 200% 100%;
}
[data-theme="light"] .preview-img-wrap::after {
    background: linear-gradient(to top,
        rgba(255,255,255,.8) 0%,
        rgba(255,255,255,.2) 40%,
        transparent 70%
    );
}
[data-theme="light"] .preview-cat {
    background: rgba(255,255,255,.85);
    border-color: rgba(0,0,0,.08);
    color: var(--text);
}

/* Onboarding overlay */
[data-theme="light"] .explore-onboarding {
    background: rgba(255,255,255,.55);
}
[data-theme="light"] .onboard-card {
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
    border-color: #d0d5dd;
    box-shadow: 0 16px 64px rgba(0,0,0,0.10), 0 0 60px rgba(0,168,158,.04);
}
[data-theme="light"] .onboard-card::before {
    background: linear-gradient(90deg, transparent, rgba(0,168,158,.15), transparent);
}
[data-theme="light"] .onboard-skip {
    border-color: rgba(0,0,0,.1);
    color: var(--text-secondary);
}
[data-theme="light"] .onboard-skip:hover {
    background: rgba(0,0,0,.03);
    border-color: rgba(0,0,0,.15);
}

/* Search bar — neutral border on focus in light theme (not green) */
[data-theme="light"] .explore-search-wrap {
    border-color: #d0d5dd;
}
[data-theme="light"] .explore-search-wrap:focus-within {
    border-color: #b0b8c4;
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 0 0 3px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .explore-search-icon { color: #57606a; }
[data-theme="light"] .explore-clear:hover,
[data-theme="light"] .explore-voice:hover {
    background: rgba(0,0,0,.05);
}

/* Nearby badge — light theme */
[data-theme="light"] .explore-nearby-badge {
    background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(59,130,246,.03));
    border-color: rgba(59,130,246,.2);
    color: #3b82f6;
}

/* AI badge — light theme */
[data-theme="light"] .explore-ai-badge {
    background: linear-gradient(135deg, rgba(0,168,158,.08) 0%, rgba(167,139,250,.04) 100%);
    border-color: rgba(0,168,158,.2);
    color: var(--accent);
}

/* No results — light theme */
[data-theme="light"] .explore-no-results {
    background: rgba(239,68,68,.06);
    border-color: rgba(239,68,68,.15);
    color: #dc2626;
}
[data-theme="light"] .explore-error {
    background: rgba(239,68,68,.06);
    border-color: rgba(239,68,68,.15);
    color: #dc2626;
}
[data-theme="light"] .error-retry {
    background: rgba(239,68,68,.08);
    border-color: rgba(239,68,68,.2);
    color: #dc2626;
}

/* Suggestions — light theme */
[data-theme="light"] .explore-suggestions {
    border-color: #d0d5dd;
}
[data-theme="light"] .suggest-item {
    background: rgba(0,0,0,.03);
    border-color: rgba(0,0,0,.08);
    color: var(--text-secondary);
}
[data-theme="light"] .suggest-item:hover {
    background: rgba(0,168,158,.06);
    border-color: rgba(0,168,158,.2);
    color: var(--accent);
}

/* Recent searches — light theme */
[data-theme="light"] .explore-recent {
    border-color: #d0d5dd;
}
[data-theme="light"] .recent-item:hover {
    background: rgba(0,0,0,.03);
}

/* Cluster icons — light theme */
[data-theme="light"] .cluster-icon {
    background: radial-gradient(circle at 30% 30%, rgba(0,168,158,.12), rgba(0,168,158,.04));
    border-color: rgba(0,168,158,.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Leaflet controls — light theme */
[data-theme="light"] .leaflet-control-zoom a {
    background: rgba(255,255,255,0.9) !important;
    color: #57606a !important;
}
[data-theme="light"] .leaflet-control-zoom {
    border-color: #d0d5dd !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .leaflet-control-attribution {
    background: rgba(255,255,255,.7) !important;
    color: rgba(0,0,0,.35) !important;
}
[data-theme="light"] .leaflet-control-attribution a { color: rgba(0,0,0,.45) !important; }

/* Preview card buttons — light theme */
[data-theme="light"] .preview-close {
    background: rgba(255,255,255,.8);
    border-color: rgba(0,0,0,.08);
    color: #57606a;
}
[data-theme="light"] .preview-close:hover {
    background: rgba(255,255,255,.95);
    color: #1a1d23;
}
[data-theme="light"] .preview-fav {
    background: rgba(255,255,255,.8);
    border-color: rgba(0,0,0,.08);
    color: #8b949e;
}

/* Offline banner — light theme */
[data-theme="light"] .explore-offline {
    background: rgba(239,68,68,.06);
    border-color: rgba(239,68,68,.2);
    color: #dc2626;
}
