:root {
  --bg: #1b1c1f;
  --surface: #26272b;
  --surface-2: #303136;
  --surface-3: #3a3b41;
  --line: rgba(255,255,255,.08);
  --text: #eceef1;
  --muted: #9aa0a6;
  --faint: #6f747b;
  --brand: #1a3d7a;
  --brand-2: #18adda;
  --brand-grad: linear-gradient(135deg, #1a3d7a 0%, #1a72ab 55%, #18adda 100%);
  --accent: #18adda;
  --accent-ink: #ffffff;
  --accent-soft: rgba(24,173,218,.15);
  --green: #5fd59a;
  --green-soft: rgba(95,213,154,.14);
  --amber: #f6c453;
  --amber-soft: rgba(246,196,83,.14);
  --red: #ff7b72;
  --red-soft: rgba(255,123,114,.14);
  --shadow: 0 2px 6px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.35);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sheet-h: 0px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.pill-btn, .chip, .segmented button, .wordmark, .fdot, .badge { transition: background .3s, color .3s, box-shadow .3s; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
svg { flex: none; }

.map { position: fixed; inset: 0; background: #1d2433; }

/* ── Buttons ─────────────────────────────────────────── */
.icon-btn {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.badge {
  position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px;
}
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s;
}
.pill-btn:hover { background: var(--surface-3); }
.pill-btn:active { transform: scale(.97); }
.pill-btn:disabled { opacity: .5; cursor: default; }
.pill-btn svg { width: 18px; height: 18px; fill: currentColor; }
.pill-btn svg use { fill: none; }
.pill-btn.primary { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 14px rgba(26,61,122,.35); }
.pill-btn.primary:hover { background: var(--brand-grad); filter: brightness(1.1); }
.pill-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--surface-3); }
.pill-btn.ghost:hover { background: var(--surface-2); }
.pill-btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.pill-btn.grow { flex: 1; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ── Search bar ──────────────────────────────────────── */
.searchbar {
  position: fixed; z-index: 20; top: 12px; left: 12px; width: 452px;
  display: flex; align-items: center; gap: 2px; height: 52px; padding: 0 6px 0 8px;
  background: var(--surface); border-radius: 26px; box-shadow: var(--shadow);
}
.searchbar:focus-within { box-shadow: var(--shadow), 0 0 0 2px var(--accent-soft); }
.logo { display: flex; align-items: center; height: 40px; flex: none; text-decoration: none; padding: 0 12px 0 8px; margin-right: 4px; border-right: 1px solid var(--line); }
.sb-word { font-size: 19px; }
.logo svg { width: 34px; height: 34px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.searchbar input {
  flex: 1; min-width: 0; height: 100%; padding: 0 8px; border: 0; background: transparent;
  font-size: 16px; outline: none;
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar input::-webkit-search-cancel-button { filter: invert(.7); }

/* ── Chips over the map ──────────────────────────────── */
.chips {
  position: fixed; z-index: 15; top: 18px; left: 476px; right: 12px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 0; border-radius: 18px; background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.chip svg { width: 18px; height: 18px; color: var(--muted); }
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--brand-grad); color: #fff; }
.chip.on svg { color: #fff; }
.chip-sep { flex: none; width: 1px; margin: 6px 2px; background: var(--surface-3); }


/* ── Map controls ────────────────────────────────────── */
.mapctl { position: fixed; z-index: 15; right: 14px; bottom: 28px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.zoom { display: flex; flex-direction: column; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.round { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.zoom .round { border-radius: 0; box-shadow: none; background: transparent; }
.zoom .round + .round { border-top: 1px solid var(--line); }
.round:hover { background: var(--surface-2); }
.round svg { width: 22px; height: 22px; fill: currentColor; }

/* ── Results sheet ───────────────────────────────────── */
.sheet {
  position: fixed; z-index: 10; top: 76px; left: 12px; bottom: 12px; width: 452px;
  display: flex; flex-direction: column; background: var(--bg);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.grab { display: none; }
@media (min-width: 761px) { .sheet .brand { display: none; } }
.bullseye.area { color: #fff; background: var(--brand-grad); box-shadow: 0 0 0 4px var(--accent-soft); animation: nudge 1.6s ease-in-out 2; }
.bullseye.area:hover { color: #fff; background: var(--brand-grad); }
@keyframes nudge { 50% { box-shadow: 0 0 0 9px rgba(24,173,218,0); } }
.brand { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.brand-can svg { display: block; width: 38px; height: 38px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
.wordmark { font-family: "Montserrat", var(--font); font-weight: 900; font-size: 22px; letter-spacing: .02em; color: var(--brand-2); line-height: 1; white-space: nowrap; }
.wordmark b { font-weight: 900; color: #fff; }
.wordmark.big { font-size: 30px; }
.info-btn { margin-left: auto; }
.sheet-head { padding: 18px 18px 12px; }
.title-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sheet-head h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.tr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.flavor-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 7px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.flavor-btn:hover { color: var(--text); background: var(--surface-2); }
.flavor-btn.set { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.fdot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #f4f6f8, inset 0 0 0 2px var(--accent); }
.flavor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; padding: 8px 20px 22px; }
.ft { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 10px; border: 0; border-radius: 14px; background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 600; }
.ft:hover { background: var(--surface-2); }
.ft.on { box-shadow: inset 0 0 0 2px var(--b, var(--accent)); background: var(--surface-2); }
.ft-can { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, var(--d) 0 58%, var(--b) 58% 63%, var(--d) 63% 72%, #f4f6f8 72%); box-shadow: 0 2px 6px rgba(0,0,0,.5), inset 0 0 0 1px #c9d1d9; }
.ft-name { text-align: center; line-height: 1.2; }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,213,154,.6); } 70% { box-shadow: 0 0 0 7px rgba(95,213,154,0); } 100% { box-shadow: 0 0 0 0 rgba(95,213,154,0); } }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 999px; background: var(--surface); }
.segmented button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px;
}
.segmented button svg { width: 17px; height: 17px; fill: currentColor; }
.segmented button.on { background: var(--brand-grad); color: #fff; box-shadow: 0 2px 8px rgba(26,61,122,.4); }

.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.sheet-foot { padding: 18px; color: var(--faint); font-size: 8px; text-align: center; }

.ticker {
  display: flex; align-items: center; gap: 8px; width: calc(100% - 28px); margin: 12px 14px 2px; padding: 7px 12px;
  border: 0; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12.5px; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ticker #feed-list { overflow: hidden; text-overflow: ellipsis; }
.ticker b { color: var(--green); }
.ticker:hover { color: var(--text); }
.ticker.new { animation: flash 2.5s ease-out; }
/* First visit: a clear search prompt; results-only bits stay hidden until the first search */
.hero { display: none; padding: 4px 18px 8px; }
body.fresh .hero { display: block; }
body.fresh .segmented, body.fresh .live, body.fresh #sub, body.fresh .empty, body.fresh .ticker { display: none !important; }
.hero-lede { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.hero-btn { width: 100%; height: 52px; font-size: 16px; }
.hero-btn svg { width: 20px; height: 20px; }
.hero-or { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hero-or::before, .hero-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hero-search { display: flex; gap: 8px; }
.hero-search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--surface-3); font-size: 16px; outline: none; }
.hero-search input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.hero-search .pill-btn { height: 48px; }
.hero-points { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: 13.5px; }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }

.seo { margin: 22px 14px 0; padding: 14px 14px 12px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 12.5px; }
.seo h2 { margin: 0 0 6px; color: var(--text); font-size: 14px; }
.seo p { margin: 0 0 8px; line-height: 1.5; }
.seo b { color: var(--text); font-weight: 600; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { padding: 7px 0; color: var(--text); font-size: 12.5px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 14px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 8px; }
.guides { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.guides a { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 500; }
.guides a:hover { background: var(--surface-3); }
.feed { margin: 14px 14px 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.feed h2 { margin: 0 0 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feed li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 14px; cursor: pointer; }
.feed li:hover .f-store { color: var(--accent); }
.feed .f-price { font-weight: 800; min-width: 50px; color: var(--green); }
.feed .f-store { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .f-ago { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.feed li.none { color: var(--muted); cursor: default; }
.feed li.new { animation: flash 2.5s ease-out; border-radius: 6px; }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }

.list { list-style: none; margin: 0; padding: 6px 8px; }
.card {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 0 12px; align-items: start;
  padding: 14px 10px; border-radius: 14px; cursor: pointer; transition: background .12s;
}
.card + .card { margin-top: 2px; }
.card:hover { background: var(--surface); }
.card.sel { background: var(--surface); box-shadow: inset 0 0 0 1.5px rgba(24,173,218,.55); }
.avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.avatar svg { width: 22px; height: 22px; }
.card.rep .avatar { background: rgba(26,61,122,.22); color: var(--brand-2); }
.c-name { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.c-meta { margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.c-meta .open { color: var(--green); font-weight: 500; }
.c-meta .closed { color: var(--red); font-weight: 500; }
.c-addr { color: var(--faint); font-size: 13px; margin-top: 1px; }
.c-price { text-align: right; min-width: 74px; }
.c-price .amt { font-size: 23px; font-weight: 800; letter-spacing: -.02em; color: var(--green); }
.c-price .best { display: inline-block; margin-bottom: 3px; padding: 2px 8px; border-radius: 999px; background: var(--green); color: #06291a; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.card.best-card { box-shadow: inset 0 0 0 1.5px rgba(95,213,154,.45); }
.c-price .amt.est { color: var(--muted); font-weight: 600; font-size: 17px; }
.c-price .amt.oos { color: var(--red); font-size: 14px; font-weight: 600; }
.c-price .per { color: var(--faint); font-size: 12px; }
.badge-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-pill.rep { background: var(--green-soft); color: var(--green); }
.badge-pill.aging { background: var(--amber-soft); color: var(--amber); }
.badge-pill.stale { background: var(--surface-2); color: var(--muted); }
.badge-pill.est { background: var(--surface-2); color: var(--muted); }
.c-badges { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.c-actions { grid-column: 1 / -1; display: none; flex-direction: column; gap: 10px; margin-top: 14px; }
.card.sel .c-actions { display: flex; }
.c-go { display: flex; gap: 8px; }
.c-go .pill-btn { flex: 1; }
.c-go svg, .c-pq svg { width: 17px; height: 17px; }
.c-pq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--surface-2); }
.pq-text { flex: 1 1 auto; font-weight: 600; font-size: 14px; }
.c-pq .report { margin-left: auto; }
.c-pq .pill-btn { background: var(--surface-3); }
.hrs-ic { display: inline-grid; place-items: center; vertical-align: -3px; margin-left: 5px; color: #b9adff; }
.hrs-ic svg { width: 16px; height: 16px; }
.chips .chip { flex: none; }
.chip.ic { width: 36px; padding: 0; justify-content: center; }
.chip.ic svg { width: 19px; height: 19px; color: #b9adff; }
.chip.ic.on svg { color: #fff; }
.hrs { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 0 7px; height: 20px; border-radius: 999px; background: rgba(140,120,255,.16); color: #b9adff; font-size: 12px; font-weight: 600; vertical-align: 1px; }
.hrs svg { width: 12px; height: 12px; }
.c-price .amt.unv { color: var(--amber); }
.badge-pill svg { width: 13px; height: 13px; }
button.badge-pill { border: 0; cursor: pointer; font-family: inherit; }
.badge-pill.verified { background: var(--green); color: #06291a; }
.badge-pill.photo { background: var(--accent-soft); color: var(--accent); }
.badge-pill.onsite { background: var(--accent-soft); color: var(--accent); }
.badge-pill.unverified { background: var(--amber-soft); color: var(--amber); }
.c-actions .pill-btn.ok { color: var(--green); }
.c-actions .pill-btn.no { color: var(--red); }

.skeleton { padding: 14px 10px; display: grid; grid-template-columns: 44px 1fr 60px; gap: 12px; }
.skeleton i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton i.a { width: 44px; height: 44px; border-radius: 12px; grid-row: span 2; }
.skeleton i.b { width: 70%; margin-top: 6px; }
.skeleton i.c { width: 45%; }
.skeleton i.d { grid-column: 3; grid-row: 1; height: 20px; margin-top: 4px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { margin-top: 50px; padding: 0 30px 6px; text-align: center; color: var(--muted); }
.empty-word { margin-top: 8px; font-size: 20px; }
.empty svg { width: 72px; height: 72px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.empty p { margin: 10px 0 0; font-size: 14px; }

.deliver-banner {
  display: flex; align-items: center; gap: 12px; margin: 6px 2px 8px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(26,61,122,.28), rgba(24,173,218,.14)); box-shadow: inset 0 0 0 1px rgba(24,173,218,.3);
  cursor: pointer; list-style: none;
}
.deliver-banner:hover { background: linear-gradient(135deg, rgba(26,61,122,.38), rgba(24,173,218,.2)); }
.db-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-grad); flex: none; }
.db-icon svg { width: 24px; height: 24px; color: #fff; }
.db-text { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); }
.db-text b { color: var(--text); font-size: 15px; }
.db-go { color: var(--brand-2); font-size: 24px; }
.delivery-note { padding: 0 20px 22px; margin: 0; }
.ad { margin: 10px 14px; text-align: center; }
li.more { list-style: none; padding: 10px 4px 4px; }
li.more .pill-btn { width: 100%; }
li.ad-feed { margin: 6px 2px; padding: 10px 12px 12px; border-radius: 14px; background: var(--surface); list-style: none; }
.ad-label { display: block; margin-bottom: 6px; color: var(--faint); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ad-box { display: grid; place-items: center; height: 90px; border-radius: 10px; border: 1.5px dashed var(--surface-3); color: var(--faint); font-size: 13px; }

/* ── Map pins: top-down ZYN cans with a price tag ───── */
.pin { position: absolute; top: 0; left: 0; width: 34px; height: 34px; cursor: pointer; }
.pin .can { position: absolute; inset: 0; z-index: 2; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.55); transition: transform .12s; }
.pin .can svg { display: block; width: 100%; height: 100%; }
.pin .pill {
  position: absolute; left: 26px; top: 50%; transform: translateY(-50%); z-index: 1;
  height: 24px; padding: 0 10px 0 13px; border-radius: 0 12px 12px 0; display: flex; align-items: center;
  background: #2b2d31; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.55);
}
.pin .name {
  position: absolute; left: 50%; top: 38px; transform: translateX(-50%);
  width: max-content; max-width: 140px; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center;
  text-shadow: 0 0 2px #10131a, 0 0 3px #10131a, 0 0 4px #10131a; pointer-events: none;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pin.rep .pill { background: var(--green); color: #06291a; font-weight: 800; }
.pin.est .can { opacity: .9; }
.pin.est .pill { color: #c8ccd1; font-weight: 600; }
.pin.oos .can { filter: grayscale(1) brightness(.8); }
.pin.oos .pill { color: var(--red); }
.pin.unv .pill { background: #3b3220; color: var(--amber); box-shadow: inset 0 0 0 1.5px rgba(246,196,83,.6), 0 1px 4px rgba(0,0,0,.55); }
.pin .hrs-dot {
  position: absolute; z-index: 3; top: -5px; left: -5px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px;
  border-radius: 9px; background: #6d5ce6; color: #fff; font-size: 9.5px; font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.pin .hrs-dot svg { width: 11px; height: 11px; }
.map:not(.zin) .pin.est .hrs-dot { display: none; }
.pin:hover .can { transform: scale(1.1); }
.pin.sel { z-index: 5; }
.pin.sel .can { transform: scale(1.3); box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(0,0,0,.6); }
.pin.sel .pill { left: 32px; background: #fff; color: #10131a; }
.pin.cluster .pill { background: #2b2d31; color: #fff; }
.pin .pill.stack { height: auto; min-height: 30px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 3px 10px 3px 13px; line-height: 1.15; border-radius: 0 10px 10px 0; }
.pin .pill.stack b { font-size: 13px; font-weight: 800; }
.pin .pill.stack small { font-size: 10.5px; font-weight: 500; opacity: .75; }
.pin.cluster.rep .pill { background: var(--green); color: #06291a; font-weight: 800; }
.map:not(.zin) .pin .name { display: none; }
.center-dot { width: 18px; height: 18px; border-radius: 50%; background: #4285f4; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(66,133,244,.25); }
.maplibregl-marker { will-change: transform; }

.maplibregl-ctrl-attrib { background: rgba(27,28,31,.75) !important; color: var(--muted); font-size: 11px; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }

/* ── Dialogs ─────────────────────────────────────────── */
.dlg {
  padding: 0; border: 0; border-radius: 20px; background: var(--bg); color: var(--text);
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); box-shadow: var(--shadow);
}
.dlg::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.dlg-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); overflow-y: auto; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 6px; position: sticky; top: 0; background: var(--bg); z-index: 1; }
.dlg-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.muted { color: var(--muted); margin: 2px 0 0; font-size: 14px; }
.fsec { padding: 14px 20px; }
.fsec + .fsec { border-top: 1px solid var(--line); }
.fsec h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.fsec-head { display: flex; justify-content: space-between; align-items: baseline; }
.fsec-head .val { color: var(--accent); font-weight: 600; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice button {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--surface-3); color: var(--text); font-size: 14px; font-weight: 500;
}
.choice button:hover { background: var(--surface-2); }
.choice button.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.toggles { display: grid; gap: 14px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 500; }
.switch-row small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 46px; height: 28px; flex: none; border-radius: 14px; background: var(--surface-3); transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.dlg-foot { display: flex; gap: 10px; padding: 14px 20px 20px; position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); }
.money { display: flex; align-items: center; height: 64px; padding: 0 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--surface-3); }
.money:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.money span { font-size: 28px; font-weight: 700; color: var(--muted); }
.money input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 30px; font-weight: 700; padding: 0 6px; outline: none; }
.money input:disabled { opacity: .35; }
.hint { margin: 8px 0 0; color: var(--faint); font-size: 13px; }
.rec { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; vertical-align: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.photo-drop { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1.5px dashed rgba(24,173,218,.55); background: var(--accent-soft); cursor: pointer; }
.photo-drop:hover { background: rgba(24,173,218,.22); }
.photo-drop b { display: block; font-size: 15px; }
.photo-drop small { display: block; color: var(--muted); font-size: 13px; }
.pd-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-grad); color: #fff; flex: none; }
.pd-icon svg { width: 24px; height: 24px; }
.photo-preview { display: flex; align-items: center; gap: 12px; }
.photo-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.photo-dlg #photo-img { display: block; width: calc(100% - 40px); margin: 6px 20px 0; border-radius: 12px; max-height: 70dvh; object-fit: contain; background: #000; }
.photo-cap { padding: 10px 20px 22px; }
.err { margin: 0 20px; padding: 10px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 14px; }
.dir-links { display: grid; gap: 8px; padding: 10px 20px 22px; }
.dir { display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 0 18px; border-radius: 14px; background: var(--surface); text-decoration: none; font-size: 15px; }
.dir:hover { background: var(--surface-2); }
.dir span { color: var(--muted); font-size: 22px; }
.info { padding: 6px 20px 22px; display: grid; gap: 14px; }
.info p { margin: 0; line-height: 1.55; }
.info .badge-pill { margin-right: 4px; }
.warn { padding: 12px 14px; border-radius: 12px; background: var(--surface); font-weight: 600; font-size: 13.5px; }

/* ── Toast & age gate ────────────────────────────────── */
.toast {
  position: fixed; z-index: 100; left: 50%; bottom: calc(var(--sheet-h) + 24px);
  transform: translate(-50%, 20px); opacity: 0; visibility: hidden;
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px;
  background: #eceef1; color: #1b1c1f; font-weight: 600; font-size: 14px; box-shadow: var(--shadow);
  transition: transform .2s, opacity .2s, visibility .2s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.error { background: var(--red); color: #2b0906; }
.age-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(12,13,15,.92); backdrop-filter: blur(6px); }
.age-card { display: grid; gap: 10px; justify-items: center; width: min(380px, 100%); padding: 30px 24px 24px; border-radius: 24px; background: var(--bg); box-shadow: var(--shadow); text-align: center; }
.age-card h2 { margin: 6px 0 0; font-size: 22px; }
.age-card p { margin: 0; color: var(--muted); }
.age-card .q { color: var(--text); font-weight: 600; font-size: 17px; margin: 8px 0 6px; }
.age-card .pill-btn { width: 100%; }
.age-legal { order: 9; font-size: 12.5px; }
.age-legal a { color: var(--accent); }

/* ── Phones: full-screen map + draggable bottom sheet ── */
@media (max-width: 760px) {
  .searchbar { top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; width: auto; }
  .logo { display: none; }
  .searchbar input { padding-left: 14px; }
  .chips {
    top: auto; bottom: 0; left: 0; right: 0; z-index: 16;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
  }
  .chip { box-shadow: none; background: var(--surface); }
  .mapctl { bottom: calc(var(--sheet-h) + 72px); right: 10px; }
  .mapctl .zoom { display: none; }

  .sheet {
    top: auto; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); width: auto;
    height: var(--sheet-h); border-radius: 20px 20px 0 0;
    transition: height .25s cubic-bezier(.2,.8,.2,1);
  }
  .sheet.dragging { transition: none; }
  .grab { display: flex; justify-content: center; padding: 10px 0 2px; cursor: grab; touch-action: none; }
  .grab span { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); }
  .sheet-head { padding: 6px 16px 10px; }
  .grab { padding: 12px 0 8px; }
  .list { padding: 4px 6px; }
  .toast { bottom: calc(var(--sheet-h) + 80px); }

  .dlg { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 22px 22px 0 0; max-height: 90dvh; }
  .dlg-inner { max-height: 90dvh; }
  .dlg-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
