/* ── /map ──
   The map fills the screen; the panel is a left column on a desk and a
   bottom sheet on a phone. Tokens mirror the landing page's palette. The
   nav is the landing's, rule for rule. */

:root {
    --n950: #070b14;
    --n900: #0c1221;
    --n800: #131c34;
    --btc: #f7931a;
    --btc4: #f9a94b;
    --btc6: #e07d08;
    --g5: #22c55e;
    --red: #f87171;
    --w: #fff;
    --w9: rgba(255,255,255,.9);
    --w7: rgba(255,255,255,.7);
    --w5: rgba(255,255,255,.5);
    --w3: rgba(255,255,255,.3);
    --w2: rgba(255,255,255,.2);
    --w1: rgba(255,255,255,.1);
    --w05: rgba(255,255,255,.05);
    --w03: rgba(255,255,255,.03);
    --rmd: 12px;
    --rlg: 16px;
    --rf: 9999px;
    --fd: 'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    --fm: 'Space Mono','SF Mono',ui-monospace,monospace;
    --eo: cubic-bezier(.16,1,.3,1);
    --navh: 64px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* hidden wins over any display an element carries (the legend and the tell form are grids, the buttons flex) */
[hidden] { display: none !important; }
html, body { height: 100%; }
body { font-family: var(--fd); background: var(--n950); color: var(--w); line-height: 1.5; overflow: hidden; }
a { color: inherit; }

/* ══ NAV (the landing's, exactly, always solid here because the map sits under it) ══ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--navh); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav.scrolled { background: rgba(7,11,20,.88); backdrop-filter: blur(20px) saturate(1.2); border-bottom: 1px solid var(--w1); }
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--w); }
.nav-logo-i { display: block; height: 32px; width: auto; }
.nav-logo-t { font-weight: 700; font-size: 16px; letter-spacing: -.3px; }
.nav-logo-t span { color: var(--btc); }
.nav-a { display: flex; align-items: center; gap: 6px; }
.nav-lk { font-size: 13px; font-weight: 600; color: var(--w5); text-decoration: none; padding: 8px 10px; transition: color .2s; }
.nav-lk:hover, .nav-lk.on { color: var(--w); }
.ham { display: none; width: 36px; height: 36px; border: 1px solid var(--w2); border-radius: 8px; background: var(--w05); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ham span { display: block; width: 16px; height: 1.5px; background: var(--w7); transition: all .25s; }
.ham.open span:nth-child(1) { transform: rotate(45deg) translate(2px,2px); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: rotate(-45deg) translate(2px,-2px); }
.mob-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; z-index: 99; background: rgba(7,11,20,.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--w1); padding: 16px 24px; flex-direction: column; gap: 8px; }
.mob-menu.open { display: flex; }
.mob-menu a { padding: 12px 16px; color: var(--w7); font-size: 15px; text-decoration: none; border-radius: 8px; }
.mob-menu a:hover { color: var(--w); background: var(--w05); }
@media (max-width: 640px) { .nav-lk, .nav-a .btn { display: none; } .ham { display: flex; } }

/* ══ BUTTONS ══ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--rf); font-family: inherit; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s var(--eo), box-shadow .2s var(--eo), background .2s; }
.btn-p { background: linear-gradient(135deg,var(--btc),var(--btc6)); color: #1a1000; box-shadow: 0 6px 20px rgba(247,147,26,.22); }
.btn-p:hover { transform: translateY(-1px); }
.btn-s { background: var(--w05); border-color: var(--w1); color: var(--w9); }
.btn-s:hover { background: var(--w1); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ══ THE STAGE: panel + map ══ */
.stage { position: fixed; top: var(--navh); left: 0; right: 0; bottom: 0; display: flex; }
.map { flex: 1; min-width: 0; height: 100%; background: #0f1626; }
.panel { width: 380px; flex: none; height: 100%; overflow-y: auto; background: rgba(10,15,28,.96); border-right: 1px solid var(--w1); }
.panel-in { padding: 22px 22px 28px; }
.sheet-grab { display: none; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.7px; line-height: 1.1; margin-bottom: 8px; }
.lead { font-size: 13.5px; color: var(--w7); margin-bottom: 16px; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.counters div { background: var(--w05); border: 1px solid var(--w1); border-radius: var(--rmd); padding: 10px 8px; text-align: center; }
.counters b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.counters b.o { color: var(--btc); }
.counters span { display: block; font-size: 10.5px; color: var(--w5); margin-top: 3px; line-height: 1.3; }
.search { margin-bottom: 10px; }
.search gmp-place-autocomplete { width: 100%; --gmp-mat-color-surface: #0c1221; --gmp-mat-color-on-surface: #fff; --gmp-mat-color-on-surface-variant: rgba(255,255,255,.55); --gmp-mat-color-primary: #f7931a; --gmp-mat-color-outline: rgba(255,255,255,.15); border-radius: var(--rmd); }
.near { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.hint { font-size: 12.5px; color: var(--w5); margin-bottom: 14px; }
.nokey { background: rgba(247,147,26,.1); border: 1px solid rgba(247,147,26,.3); border-radius: var(--rmd); padding: 12px 14px; font-size: 13.5px; color: var(--w9); margin-bottom: 14px; }
.nokey a { color: var(--btc4); }

/* One place */
.card { background: var(--w05); border: 1px solid var(--w1); border-radius: var(--rlg); padding: 16px; margin-bottom: 14px; }
.card-name { font-size: 18px; font-weight: 800; letter-spacing: -.3px; overflow-wrap: anywhere; }
.card-addr { font-size: 12.5px; color: var(--w5); margin: 2px 0 10px; overflow-wrap: anywhere; }
.card-state { font-size: 13.5px; color: var(--w9); margin-bottom: 12px; }
.card-state.live { color: var(--btc4); font-weight: 700; }
.tipnow { margin-bottom: 6px; }
.left { font-size: 12px; color: var(--w3); text-align: center; margin-top: 8px; }
.thanks { font-size: 14px; font-weight: 700; color: var(--g5); margin: 4px 0 12px; }
.capped { font-size: 13px; color: var(--btc4); margin: 4px 0 8px; }
.follow { margin-top: 4px; }
.tell { margin-top: 10px; display: grid; gap: 10px; }
.tell label { display: block; font-size: 12px; font-weight: 700; color: var(--w7); }
.tell label span { font-weight: 500; color: var(--w3); }
.tell input { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; background: var(--n900); border: 1px solid var(--w1); border-radius: var(--rmd); color: var(--w); font-family: var(--fd); font-size: 14px; outline: none; }
.tell input:focus { border-color: var(--btc); box-shadow: 0 0 0 3px rgba(247,147,26,.15); }
.told { font-size: 13.5px; color: var(--g5); margin-top: 10px; }
.err { font-size: 13px; color: var(--red); margin-top: 8px; }

/* Legend and the pins (the same drawing in the legend and on the map) */
.legend { display: grid; gap: 8px; font-size: 12.5px; color: var(--w7); margin: 6px 0 14px; }
.legend span { display: flex; align-items: center; gap: 10px; }
.pin-s, .pin { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font: 700 11px var(--fd); font-style: normal; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); flex: none; }
.pin-s.grey, .pin.grey { background: #5b6478; }
.pin-s.ring, .pin.ring { background: #5b6478; box-shadow: 0 0 0 3px var(--btc), 0 2px 8px rgba(0,0,0,.4); }
.pin-s.orange, .pin.orange { background: var(--btc); font-size: 13px; font-weight: 800; }
.pin { cursor: pointer; transition: transform .15s var(--eo); }
.pin:hover { transform: scale(1.12); }
.pin.orange { width: 30px; height: 30px; }
.google { font-size: 11px; color: var(--w3); margin-bottom: 6px; }
.foot { font-size: 12px; color: var(--w3); }
.foot a { color: var(--w5); text-decoration: none; }
.foot a:hover { color: var(--w9); }

/* Toast */
.toast { position: fixed; bottom: 28px; left: 50%; z-index: 1000; transform: translateX(-50%) translateY(80px); padding: 12px 22px; background: var(--n800); border: 1px solid var(--w2); border-radius: var(--rf); font-size: 13px; font-weight: 500; color: var(--w); box-shadow: 0 8px 32px rgba(0,0,0,.3); pointer-events: none; transition: transform .35s var(--eo); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ══ A phone: the map fills the screen, the panel is a bottom sheet ══ */
@media (max-width: 800px) {
    .stage { display: block; }
    .map { position: absolute; inset: 0; height: auto; z-index: 1; }
    .panel { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; width: auto; height: auto; max-height: 58vh; border-right: 0; border-top: 1px solid var(--w2); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.45); transition: max-height .3s var(--eo); }
    .panel.down { max-height: 74px; overflow: hidden; }
    .sheet-grab { display: block; width: 44px; height: 5px; border-radius: var(--rf); background: var(--w2); margin: 10px auto 0; cursor: pointer; }
    .panel-in { padding: 10px 18px 24px; }
    h1 { font-size: 20px; }
    .lead { font-size: 12.5px; margin-bottom: 12px; }
    .counters b { font-size: 18px; }
    .toast { bottom: auto; top: 76px; transform: translateX(-50%) translateY(-160px); }
}

@media (prefers-reduced-motion: reduce) {
    .btn, .toast, .panel, .pin { transition: none; }
}
