/* CurbKicks v2 — design tokens, base, content pages, app shell, admin */
:root {
  --orange: #F4511E; --orange-600: #D9400F; --orange-50: #FFF0EB;
  --ink: #1A1A18; --asphalt: #2E2E2B; --mid: #66655F;
  --bg: #F7F3EC; --surface: #FFFFFF; --surface-2: #FBF8F3; --line: #E3DDD4;
  --green: #2E7D32; --green-50: #E8F5E9; --red: #C62828; --red-50: #FFEBEE; --blue: #1565C0;
  --focus: #1565C0;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --sh-1: 0 1px 3px rgba(0,0,0,.08); --sh-2: 0 6px 20px rgba(0,0,0,.12); --sh-3: 0 14px 44px rgba(0,0,0,.2);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --head-h: 56px;
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3EFE8; --mid: #A9A69D; --bg: #151513; --surface: #1F1F1C; --surface-2: #262623; --line: #36352F;
    --orange-50: #3A1F16; --green-50: #1B2E1C; --red-50: #3A1B1B; --focus: #6AA9FF;
    --sh-1: 0 1px 3px rgba(0,0,0,.5); --sh-2: 0 6px 20px rgba(0,0,0,.5); --sh-3: 0 14px 44px rgba(0,0,0,.6);
  }
  .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.7); }
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 400 16px/1.55 var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--orange-600); text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { a { color: #FF8A65; } }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 5000; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mid); }
code { font-family: ui-monospace, monospace; font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--orange); color: #fff; } .btn-primary:hover { background: var(--orange-600); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); } .btn-ghost:hover { border-color: var(--mid); }
.btn-success { background: var(--green); color: #fff; } .btn-danger { background: var(--red); color: #fff; }
.btn-link { background: none; color: var(--mid); text-decoration: underline; min-height: 36px; padding: 0 8px; }
.btn-block { width: 100%; }

.logo { font-family: var(--display); font-size: 30px; letter-spacing: 2px; color: var(--orange); text-decoration: none; line-height: 1; }
.logo span { color: var(--ink); } .logo small { font: 700 10px/1 var(--font); letter-spacing: 1px; color: var(--mid); margin-left: 8px; }
.site-header .logo span, .app-header .logo span { color: #fff; }

/* Site header (content pages) */
.site-header, .app-header { background: #1A1A18; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(var(--safe-t)) 16px 0; min-height: calc(var(--head-h) + var(--safe-t)); position: sticky; top: 0; z-index: 1000; box-shadow: var(--sh-2); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: #ddd; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.site-nav a:not(.btn):hover { color: #fff; background: #2E2E2B; }
@media (max-width: 560px) { .site-nav a:not(.btn):not(:first-child) { display: none; } }

/* Content pages */
.content { max-width: 1040px; margin: 0 auto; padding: 28px 16px 56px; }
.content.narrow { max-width: 740px; } .content.wide { max-width: 1200px; }
.content h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 64px); line-height: 1.02; letter-spacing: 1px; margin-bottom: 12px; }
.content h2 { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: .5px; margin-bottom: 12px; }
.lede { font-size: 18px; color: var(--mid); max-width: 62ch; margin-bottom: 18px; }
.section { margin-top: 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.fine { font-size: 13px; color: var(--mid); margin-top: 10px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; font-size: 13px; color: var(--mid); margin-bottom: 14px; }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.state { text-align: center; padding: 56px 20px; } .state-icon { font-size: 52px; margin-bottom: 8px; }
.notice { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 14px; }
.notice-info { background: var(--green-50); } .notice-warn { background: var(--red-50); }
.steps { padding-left: 22px; display: grid; gap: 10px; } .steps li::marker { color: var(--orange); font-weight: 700; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; } .faq p { padding-bottom: 14px; color: var(--mid); }

/* Item page */
.item-detail { display: grid; gap: 24px; grid-template-columns: 1.1fr 1fr; align-items: start; }
@media (max-width: 760px) { .item-detail { grid-template-columns: 1fr; } }
.item-photo { position: relative; background: var(--surface-2); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; display: grid; place-items: center; }
.item-photo img { width: 100%; height: 100%; object-fit: contain; }
.emoji-ph { font-size: 44px; } .emoji-ph.big { font-size: 96px; }
.free-pill { position: absolute; top: 10px; left: 10px; background: var(--orange); color: #fff; font: 400 18px/1 var(--display); letter-spacing: 1.5px; padding: 5px 10px 3px; border-radius: 6px; }
.free-pill.lg { font-size: 26px; padding: 7px 14px 4px; }
.meta-list { list-style: none; padding: 0; display: grid; gap: 4px; margin: 10px 0 14px; color: var(--mid); font-size: 15px; }
.item-desc { margin-bottom: 8px; }

/* Cards & lists */
.card-grid { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 20px; }
.item-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--sh-1); transition: box-shadow .15s, transform .15s; }
.item-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.item-card-img { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--surface-2); }
.item-card-img img { width: 100%; height: 100%; object-fit: contain; }
.item-card-body { display: grid; gap: 2px; padding: 10px 12px 12px; } .item-card-body small { color: var(--mid); }
.city-list { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 24px; }
.city-list a { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; }
.city-list a:hover { border-color: var(--orange); } .city-list span { color: var(--mid); font-size: 14px; }
.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Footer */
.site-footer { background: #1A1A18; color: #bbb; padding: 14px 16px 16px; }
.site-footer > p { max-width: 1040px; margin: 0 auto; }
.foot-tag { font-size: 14px; color: #ccc; margin-bottom: 4px !important; }
.foot-saved { font-size: 14px; color: #ddd; margin-bottom: 10px !important; } .foot-saved strong { color: #fff; font-size: 16px; }
.foot-small { font-size: 12.5px; line-height: 1.6; color: #999; margin-top: 4px !important; padding-top: 10px; border-top: 1px solid #2d2d2a; }
.site-footer a { color: #ddd; }

/* Forms / dialogs / toast */
.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 25%, transparent); }
.field { display: grid; gap: 6px; margin-bottom: 16px; } .field > label, .label { font-weight: 600; font-size: 14px; }
.hint { font-size: 12px; color: var(--mid); }
.radio { display: flex; gap: 10px; align-items: center; min-height: 40px; }
dialog.dialog { border: none; border-radius: var(--r-lg); padding: 0; background: var(--surface); color: var(--ink); box-shadow: var(--sh-3); width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
dialog.dialog::backdrop { background: rgba(10,10,8,.55); backdrop-filter: blur(2px); }
.dialog-body { padding: 22px; } .dialog-body h2 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .5px; margin-bottom: 14px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 24px); background: #1A1A18; color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; z-index: 6000; max-width: calc(100vw - 32px); box-shadow: var(--sh-3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: var(--r-sm); }
@keyframes sk { to { background-position: -200% 0; } }

/* ───────── APP SHELL ───────── */
body.app { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.app-header { position: relative; flex: none; }
.hdr-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.loc-btn { display: inline-flex; align-items: center; gap: 7px; background: #2E2E2B; color: #ddd; border: 0; border-radius: 999px; padding: 0 12px; min-height: 36px; font-size: 13px; cursor: pointer; max-width: 200px; }
.loc-btn span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; flex: none; } .dot.search { background: #FFB300; animation: pulse 1s infinite; } .dot.off { background: #888; }
@keyframes pulse { 50% { opacity: .3; } }
.hdr-btn { background: transparent; border: 1.5px solid #4a4a45; color: #ddd; border-radius: 999px; min-height: 36px; padding: 0 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.hdr-btn[hidden] { display: none; }
@media (max-width: 640px) { .hdr-btn.opt { display: none; } .loc-btn { max-width: 130px; } .logo { font-size: 26px; } }

.app-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 400px 1fr; position: relative; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; z-index: 600; }
.sheet-handle { display: none; }
.filters { padding: 12px 14px 8px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.search-wrap { position: relative; } .search-wrap .input { padding-left: 40px; } .search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mid); }
.filters { grid-template-columns: minmax(0, 1fr); }
.chips-wrap { position: relative; margin: 0 -14px; min-width: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 14px 4px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; } .chips::-webkit-scrollbar { display: none; }
.chips .chip { flex: none; }
.chip-nav { position: absolute; top: 0; z-index: 2; width: 38px; height: 36px; border: 0; cursor: pointer; font-size: 24px; line-height: 1; font-weight: 700; color: var(--ink); display: grid; place-items: center; padding-bottom: 3px; }
.chip-nav[hidden] { display: none; }
.chip-nav.prev { left: 0; justify-content: start; padding-left: 8px; background: linear-gradient(to right, var(--surface) 55%, transparent); }
.chip-nav.next { right: 0; justify-content: end; padding-right: 8px; background: linear-gradient(to left, var(--surface) 55%, transparent); }
.addr-set { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; } .addr-set legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 8px; }
.addr-set .field { margin-bottom: 12px; } .addr-set .muted { font-weight: 400; }
.addr-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.addr-set .hint { margin-bottom: 4px; }
.ctrl-row { display: flex; gap: 12px; align-items: center; }
.radius { flex: 1; display: grid; gap: 2px; } .radius-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--mid); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.radius input[type=range] { width: 100%; accent-color: var(--orange); height: 28px; }
.select { min-height: 36px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 12px; font-size: 13px; font-weight: 600; }
.count-bar { padding: 8px 14px; font-size: 13px; color: var(--mid); display: flex; justify-content: space-between; align-items: center; }
.item-list { list-style: none; padding: 0 10px 20px; margin: 0; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.row { position: relative; margin-bottom: 8px; }
.row-main { width: 100%; display: flex; gap: 12px; text-align: left; padding: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; align-items: center; }
.row-main:hover { border-color: var(--mid); } .row-main[aria-current="true"] { border-color: var(--orange); background: var(--orange-50); }
.row-img { flex: none; width: 68px; height: 68px; border-radius: 10px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; font-size: 30px; }
.row-img img { width: 100%; height: 100%; object-fit: contain; }
.row-body { min-width: 0; display: grid; gap: 2px; padding-right: 34px; } .row-body strong { font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { font-size: 12.5px; color: var(--mid); } .row-meta .soon { color: var(--red); font-weight: 700; }
.row-fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--mid); }
.row-fav[aria-pressed="true"] { color: var(--orange); }
.empty { text-align: center; padding: 40px 20px; color: var(--mid); } .empty h3 { color: var(--ink); font-size: 17px; margin: 6px 0; }
.empty .btn { margin-top: 12px; }
.seed h3 { padding: 6px 4px 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--mid); }

.map-wrap { position: relative; min-width: 0; min-height: 0; }
#map { position: absolute; inset: 0; background: #e8e4dd; z-index: 1; }
.map-btns { position: absolute; right: 12px; bottom: calc(24px + var(--safe-b)); display: grid; gap: 8px; z-index: 500; }
.fab-map { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--sh-2); cursor: pointer; display: grid; place-items: center; }
.fab-map svg { width: 22px; height: 22px; }
.user-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(21,101,192,.25); }
.pin { width: 40px; height: 40px; background: #fff; border: 2.5px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 8px rgba(0,0,0,.35); overflow: hidden; cursor: pointer; transition: transform .12s; }
.pin.sel { border-color: var(--orange); width: 48px; height: 48px; }
.pin > i { display: grid; place-items: center; width: 100%; height: 100%; transform: rotate(45deg) scale(1.45); font-style: normal; background-size: cover; background-position: center; background-color: #1A1A18; font-size: 14px; }
.cluster { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); cursor: pointer; }

/* Detail panel */
.detail { position: absolute; z-index: 700; top: 12px; right: 12px; width: 372px; max-height: calc(100% - 24px); overflow-y: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3); border: 1px solid var(--line); transform: translateX(120%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.detail.open { transform: none; }
.detail-body { padding: 0 16px 2px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--mid); font-size: 13.5px; margin-bottom: 10px; } .detail-meta .soon { color: var(--red); font-weight: 700; }
.detail-desc { font-size: 15px; color: var(--ink); opacity: .9; margin-bottom: 8px; white-space: pre-line; }
.detail-actions { padding: 6px 16px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-actions .btn-row { grid-column: 1 / -1; }
.detail-actions .btn { min-height: 42px; padding: 0 10px; font-size: 14px; }
.detail-actions .btn-link { min-height: 32px; font-size: 13px; padding: 0 4px; }
.btn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .btn-row .btn { padding: 0 8px; font-size: 13px; }
.ios-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: none; gap: 12px; align-items: center; z-index: 5000; box-shadow: var(--sh-3); font-size: 14px; }
.ios-banner.show { display: flex; } .ios-banner img { width: 40px; border-radius: 9px; }

/* Post dialog extras */
.drop { border: 2px dashed var(--line); border-radius: var(--r); padding: 26px 16px; text-align: center; cursor: pointer; background: var(--surface-2); width: 100%; }
.drop:hover { border-color: var(--orange); } .drop .ico { font-size: 34px; } .drop small { display: block; color: var(--mid); }
.preview { position: relative; } .preview img { width: 100%; max-height: 240px; object-fit: contain; background: var(--surface-2); border-radius: var(--r); } .preview .icon-btn { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.65); color: #fff; }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; } .progress > div { height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.loc-status { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-sm); font-size: 14px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mine-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .mine-row:last-child { border: 0; }
.mine-row .row-img { width: 56px; height: 56px; } .mine-info { flex: 1; min-width: 0; } .mine-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); } .status.available { background: var(--green-50); color: var(--green); } .status.pending { background: #FFF3CD; color: #8a6d00; }

/* ── Mobile: sidebar becomes a bottom sheet ── */
@media (max-width: 860px) {
  .app-main { grid-template-columns: 1fr; }
  .sidebar { position: absolute; left: 0; right: 0; bottom: 0; height: min(78%, 640px); border: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.2);
    transform: translateY(calc(100% - 78px - var(--safe-b))); transition: transform .3s cubic-bezier(.2,.8,.2,1); padding-bottom: var(--safe-b); }
  .sidebar.open { transform: none; }
  .sheet-handle { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 10px 14px 6px; cursor: pointer; }
  .sheet-handle::before { content: ''; width: 40px; height: 4px; border-radius: 2px; background: var(--line); }
  .sheet-handle b { font-size: 15px; }
  .map-btns { bottom: calc(100px + var(--safe-b)); }
  .detail { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 78%; border-radius: 20px 20px 0 0; transform: translateY(110%); padding-bottom: var(--safe-b); }
}

/* ── Admin ── */
body.admin-page { min-height: 100vh; }
.tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tab { background: none; border: 1.5px solid #4a4a45; color: #bbb; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.badge { background: rgba(255,255,255,.2); border-radius: 10px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }
.admin-tools { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 16px; }
.admin-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.admin-img { aspect-ratio: 4/3; background: var(--surface-2); display: grid; place-items: center; font-size: 56px; overflow: hidden; } .admin-img img { width: 100%; height: 100%; object-fit: contain; }
.admin-body { padding: 12px 14px; display: grid; gap: 4px; flex: 1; } .admin-body p { font-size: 14px; color: var(--mid); } .admin-body small { color: var(--mid); } .admin-body small.warn { color: var(--red); font-weight: 700; }
.admin-actions { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: var(--surface); padding: 28px; border-radius: var(--r-lg); box-shadow: var(--sh-2); width: min(380px, 100%); display: grid; gap: 12px; }
.login-card .logo span { color: var(--ink); }

#pinMap { height: 230px; border-radius: var(--r-sm); border: 1.5px solid var(--line); z-index: 0; }

.sign-photo img { object-fit: contain !important; background: #f3f0ea; }
.item-qr { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); max-width: 340px; }
.item-qr .qr-box { flex: none; width: 96px; height: 96px; background: #fff; border-radius: 6px; padding: 4px; display: flex; }
.item-qr .qr-box canvas, .item-qr .qr-box img { width: 100% !important; height: 100% !important; }
.item-qr p { font-size: 13px; color: var(--mid); line-height: 1.4; } .item-qr strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.item-addr { font-weight: 600; }

#newBanner { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; } #newBanner[hidden] { display: none; }

/* ───────── Mobile polish ───────── */
.site-header .btn-ghost, .app-header .btn-ghost { color: #ddd; border-color: #4a4a45; }
.signout { flex: none; }
@media (max-width: 860px) {
  input.input, select.input, textarea.input, .select { font-size: 16px; }      /* stops iOS zooming into fields */
  .sidebar { height: min(84%, 680px); transform: translateY(calc(100% - 48px - var(--safe-b))); }
  .sheet-handle { padding: 10px 14px 4px; }
  .map-btns { bottom: calc(70px + var(--safe-b)); }
  .filters { gap: 8px; padding: 8px 14px 6px; }
}
@media (max-width: 640px) {
  .app-header { padding-left: 10px; padding-right: 10px; gap: 8px; }
  .app-header .logo { font-size: 24px; letter-spacing: 1px; flex: none; }
  .hdr-right { flex: 1; justify-content: flex-end; gap: 6px; }
  .loc-btn { min-width: 0; flex: 0 1 auto; max-width: 128px; padding: 0 10px; gap: 6px; }
  #btnPost { flex: none; padding: 0 12px; }
}
@media (max-width: 760px) {
  .content { padding: 18px 14px 40px; }
  .item-info h1 { font-size: 34px; }
  .item-qr { display: none; }                                  /* you're already on the phone – the QR is for desktop screens */
  .item-info .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .item-info .actions .btn { padding: 0 10px; white-space: normal; text-align: center; min-width: 0; }
  .item-info .actions .btn-primary { grid-column: 1 / -1; order: 1; }
  .item-info .actions #btnTaken { grid-column: 1 / -1; order: 2; }
  .item-info .actions .btn-ghost.btn-lg { order: 3; } .item-info .actions #btnShare { order: 4; }
  .item-info .actions #btnReport { grid-column: 1 / -1; order: 5; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 560px) {
  dialog.dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92dvh; padding-bottom: var(--safe-b); }
  .dialog-body { padding: 18px 16px; }
  .dialog-actions { flex-wrap: wrap; } .dialog-actions .btn { flex: 1 1 0; padding: 0 14px; }
  .dialog-actions .btn-lg { flex: 2 1 0; font-size: 15px; }
}
@media (max-width: 640px) {
  .admin-page .site-header { flex-wrap: wrap; padding: 8px 12px; gap: 8px; min-height: 0; }
  .admin-page .signout { order: 2; margin-left: auto; }
  .admin-page .tabs { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .admin-page .tabs::-webkit-scrollbar { display: none; }
  .admin-page .tab { flex: none; min-height: 40px; }
  .admin-page .content { padding: 12px 12px 40px; }
  .admin-tools { flex-wrap: wrap; justify-content: stretch; } .admin-tools .btn { flex: 1 1 auto; }
  #newBanner { position: sticky; top: 8px; z-index: 50; box-shadow: var(--sh-2); }
  .admin-grid { grid-template-columns: 1fr; gap: 10px; }
  .admin-card { display: grid; grid-template-columns: 104px 1fr; }
  .admin-img { aspect-ratio: auto; height: 100%; min-height: 104px; font-size: 36px; }
  .admin-actions { grid-column: 1 / -1; } .admin-actions .btn { flex: 1; min-height: 44px; padding: 0 8px; }
}

@media (max-width: 860px) {
  .select { font-size: 16px; min-height: 40px; font-weight: 500; padding: 0 10px; }
  .row-body strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 560px) {
  .dialog-body h2 { font-size: 26px; line-height: 1.1; }
  .drop { padding: 18px 12px; } .drop .ico { font-size: 28px; }
  .field { margin-bottom: 12px; }
  .dialog-actions { position: sticky; bottom: 0; margin: 12px -16px 0; padding: 12px 16px calc(12px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
}

/* ── Full photos + taller bottom sheet ── */
.lightbox { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.92); display: grid; place-items: center; cursor: zoom-out; touch-action: pinch-zoom; }
.lightbox img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.lightbox .lb-close { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 860px) {
  .sidebar, .sidebar.open { height: var(--sheet-h, 48px); max-height: 100%; transform: none; transition: height .28s cubic-bezier(.2,.8,.2,1); }
  .sidebar[data-state="full"] { --sheet-h: 100%; border-radius: 0; }
  .sidebar:not([data-state]) { --sheet-h: calc(48px + var(--safe-b)); }
  .sidebar[data-state="peek"] { --sheet-h: calc(48px + var(--safe-b)); }
  .sheet-handle { touch-action: none; }
  .sidebar[data-state="full"] .sheet-handle::before { background: var(--mid); }
}

/* ── Mobile: give the list the room ── */
.filter-toggle { display: none; }
@media (max-width: 860px) {
  :root { --head-h: 52px; }
  .sidebar { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .sheet-handle { position: sticky; top: 0; z-index: 3; background: var(--surface); flex: none; }
  .filters, .count-bar { flex: none; }
  .item-list { overflow: visible; flex: none; padding-bottom: calc(24px + var(--safe-b)); }
  .ctrl-row { display: none; } .filters.show-ctrl .ctrl-row { display: flex; }
  .filter-toggle { display: inline-flex; margin-right: auto; padding-left: 0; font-weight: 600; color: var(--ink); text-decoration: none; }
  .count-bar { padding: 0 14px 4px; } #count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .filters { padding-top: 4px; gap: 6px; } .search-wrap .input, .input { min-height: 42px; }
  .row-main { padding: 8px; gap: 10px; } .row-img { width: 60px; height: 60px; } .row { margin-bottom: 6px; }
}
@media (max-width: 760px) {
  .site-header { position: static; }                       /* content pages: header scrolls away instead of eating the screen */
  .admin-page .site-header { position: sticky; }
}

/* ── Nearby items as a compact list ── */
.near-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.near-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; box-shadow: var(--sh-1); min-height: 88px; }
.near-row:hover { box-shadow: var(--sh-2); }
.near-img { flex: none; width: 72px; height: 72px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; font-size: 30px; }
.near-img img { width: 100%; height: 100%; object-fit: contain; }
.near-body { min-width: 0; display: grid; gap: 2px; }
.near-body strong { font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.near-body small { color: var(--mid); font-size: 13px; }
.near-chev { margin-left: auto; color: var(--mid); font-size: 26px; line-height: 1; }
@media (max-width: 560px) { .near-list { grid-template-columns: 1fr; } }

/* ── Category scroll arrows: easier to see ── */
.chip-nav { width: 34px; height: 34px; top: 1px; padding: 0 0 3px; justify-content: center; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.chip-nav.prev { left: 6px; padding-left: 0; } .chip-nav.next { right: 6px; padding-right: 0; }
.chip-nav:hover, .chip-nav:focus-visible { background: var(--ink); color: #fff; }
.chips-wrap:has(.chip-nav.next:not([hidden]))::after { content: ""; position: absolute; top: 0; right: 0; width: 54px; height: 36px; pointer-events: none; background: linear-gradient(to left, var(--surface) 30%, transparent); }
.chips-wrap:has(.chip-nav.prev:not([hidden]))::before { content: ""; position: absolute; top: 0; left: 0; width: 54px; height: 36px; z-index: 1; pointer-events: none; background: linear-gradient(to right, var(--surface) 30%, transparent); }
.chip-nav { z-index: 3; }
.chip-nav.prev, .chip-nav.next { justify-content: center; place-items: center; padding: 0 0 3px; font-size: 26px; width: 34px; }

.diag-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.diag-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 15px; }
.diag-list li.bad { background: #fdecea; } .diag-list small { display: block; color: var(--mid); font-weight: 400; }

/* ───────── Screen real estate (mobile) ───────── */
.mobile-only { display: none; }
@media (max-width: 760px) {
  /* Item page */
  .crumbs { display: none; }                                   /* still in the page source / structured data for search engines */
  .item-photo { margin-left: -14px; margin-right: -14px; border-radius: 0; border-left: 0; border-right: 0; }
  .item-info h1 { font-size: 28px; line-height: 1.12; margin-top: 12px; }
  .meta-list { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; margin: 8px 0 10px; }
  .item-info .actions { margin: 12px 0; }
  .near-list { margin-top: 10px; }
  .content h2 { font-size: 22px; }
}
@media (max-width: 640px) {
  /* Admin: single slim tab bar; sign out moves into the tools row */
  .admin-page .site-header { padding: 6px 10px; }
  .admin-page .site-header .logo, .admin-page .site-header .signout { display: none; }
  .admin-page .tabs { margin: 0; }
  .mobile-only { display: inline-flex; }
}

/* ── Footer logo: "Kicks" was dark-on-dark ── */
.site-footer .logo span { color: #fff; }

/* ── Site menu (home page header) ── */
.menu-wrap { position: relative; flex: none; }
.menu-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #4a4a45; background: #2a2a27; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: #fff; color: var(--ink); }
.site-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--surface); color: var(--ink); border-radius: var(--r); box-shadow: 0 12px 36px rgba(0,0,0,.28); border: 1px solid var(--line); padding: 6px; z-index: 1300; display: grid; }
.site-menu[hidden] { display: none; }
.site-menu a, .site-menu button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 0; background: none; border-radius: 10px; font: inherit; font-weight: 600; color: inherit; text-decoration: none; text-align: left; cursor: pointer; width: 100%; }
.site-menu a:hover, .site-menu button:hover, .site-menu a:focus-visible, .site-menu button:focus-visible { background: var(--surface-2); }
.site-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 8px; }
@media (max-width: 860px) {
  .menu-btn { width: 42px; height: 42px; background: var(--surface); color: var(--ink); border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.28); }
  .site-menu { top: calc(100% + 8px); }
}
@media (max-width: 400px) { #btnPost .hide-sm { display: none; } #btnPost { padding: 0 12px; } }
.site-menu { min-width: 270px; } .site-menu a, .site-menu button { white-space: nowrap; line-height: 1.2; }

/* ── One header everywhere ── */
.site-menu [aria-current="page"] { background: var(--surface-2); }
@media (max-width: 400px) { .hide-sm { display: none; } .site-header .btn-sm { padding: 0 12px; } }
.site-header .hdr-right { margin-left: auto; }
.hdr-btn.opt { display: none !important; }   /* My listings / Install live in the ☰ menu now */

/* ── Mobile map header: classic dark bar with the CurbKicks wordmark ── */
@media (max-width: 860px) {
  .app-header { position: relative; height: auto; min-height: calc(52px + var(--safe-t)); background: #1A1A18; padding: var(--safe-t) 10px 0; box-shadow: 0 2px 10px rgba(0,0,0,.25); pointer-events: auto; gap: 8px; }
  .app-header .logo { font-size: 24px; letter-spacing: 1px; width: auto; height: auto; background: none; box-shadow: none; flex: none; }
  .app-header .logo span { display: inline; }
  .hdr-right { flex: 1; min-width: 0; justify-content: flex-end; gap: 6px; }
  .loc-btn { flex: 0 1 auto; min-width: 0; max-width: 150px; height: 36px; background: #2a2a27; color: #ddd; border: 0; box-shadow: none; font-weight: 500; }
  #btnPost { height: 36px; box-shadow: none; }
  .menu-btn { width: 36px; height: 36px; background: #2a2a27; color: #fff; border: 1.5px solid #4a4a45; box-shadow: none; font-size: 18px; }
  .menu-btn:hover, .menu-btn[aria-expanded="true"] { background: #fff; color: var(--ink); }
  .sidebar[data-state="full"] { --sheet-h: 100%; border-radius: 0; }     /* list covers the whole map – only the header stays */
}


/* ───────── Compact photos: small thumbnail up top, tap for the full-size photo ───────── */
/* Map detail panel */
.detail-top { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 52px 10px 14px; }
.detail-thumb { position: relative; flex: none; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: #f3f0ea; border: 1px solid var(--line); padding: 0; display: grid; place-items: center; cursor: zoom-in; }
.detail-thumb.emoji { font-size: 40px; cursor: default; background: var(--surface-2); }
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; }
.zoom-badge { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; line-height: 22px; text-align: center; pointer-events: none; }
.detail-head { min-width: 0; flex: 1; }
.detail-head h2 { font-size: 20px; line-height: 1.2; margin-bottom: 4px; overflow-wrap: anywhere; }
.detail-head .detail-meta { margin-bottom: 0; gap: 2px 12px; font-size: 13px; }
.detail-body .detail-meta { margin-bottom: 6px; }
.detail-close { position: absolute; top: 10px; right: 10px; background: var(--surface-2); color: var(--ink); width: 36px; height: 36px; z-index: 2; }
.detail-desc { margin-bottom: 6px; font-size: 14.5px; }
@media (max-width: 860px) {
  .detail { max-height: 70%; }
  .detail-thumb { width: 80px; height: 80px; }
}

/* Item page: photo is a short banner (tap to enlarge) instead of a screen-filling hero */
.item-photo { aspect-ratio: auto; background: #f3f0ea; }
.item-photo img { width: 100%; height: auto; max-height: min(46vh, 420px); object-fit: contain; cursor: zoom-in; }
.item-photo:has(img)::after { content: '⤢ Enlarge'; position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; font: 600 12px/1 var(--font); padding: 6px 9px; border-radius: 999px; pointer-events: none; }
.item-photo:not(:has(img)) { min-height: 140px; }
.item-photo .emoji-ph.big { font-size: 72px; padding: 20px 0; }
@media (min-width: 761px) { .item-detail { grid-template-columns: .9fr 1fr; } }
@media (max-width: 760px) {
  .item-detail { gap: 0; }
  .item-photo img { max-height: 28vh; }
  .item-photo:not(:has(img)) { min-height: 0; }
  .item-photo .emoji-ph.big { font-size: 48px; padding: 10px 0; }
  .free-pill.lg { font-size: 20px; padding: 5px 10px 3px; }
}

/* ── City + category pages ── */
.tips { padding-left: 22px; display: grid; gap: 8px; max-width: 70ch; } .tips li::marker { color: var(--orange); }
.faq h2, .section h2 { margin-bottom: 12px; }
.chip small { color: var(--mid); } .chip[aria-pressed="true"] small, .chip.on small { color: inherit; opacity: .8; }

/* ───────── Photo viewer (assets/lightbox.js) ───────── */
.lightbox { background: rgb(0 0 0 / calc(.92 * var(--lb-a, 1))); cursor: default; touch-action: none; user-select: none; -webkit-user-select: none; overscroll-behavior: contain; overflow: hidden; }
.lightbox .lb-img { max-width: 100vw; max-height: 100dvh; object-fit: contain; transform-origin: 50% 50%; will-change: transform; touch-action: none; -webkit-user-drag: none; }
.lightbox .lb-close { z-index: 2; width: 44px; height: 44px; }
.lb-hint { position: absolute; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; text-align: center; pointer-events: none; transition: opacity .5s; }
.lb-hint.hide { opacity: 0; }

/* ───────── Mobile sheet: peek row (thumbnail + nearest item) ───────── */
:root { --peek-h: 60px; }
.peek-row { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; text-align: left; }
.peek-thumb { flex: none; width: 40px; height: 40px; border-radius: 9px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; }
.peek-thumb[hidden] { display: none; }
.peek-thumb img { width: 100%; height: 100%; object-fit: contain; }
.peek-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.peek-text b { font-size: 15px; line-height: 1.2; }
.peek-text small { font-size: 12.5px; line-height: 1.25; color: var(--mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek-text small:empty { display: none; }
.peek-chev { flex: none; font-size: 20px; line-height: 1; color: var(--mid); transition: transform .25s; }
@media (max-width: 860px) {
  .sidebar:not([data-state]), .sidebar[data-state="peek"] { --sheet-h: calc(var(--peek-h) + var(--safe-b)); }
  .sheet-handle { padding: 8px 14px 6px; gap: 6px; }
  .map-btns { bottom: calc(var(--peek-h) + 22px + var(--safe-b)); }
  .sidebar[data-state="full"] .peek-thumb, .sidebar[data-state="full"] .peek-text small { display: none; }
  .sidebar[data-state="full"] .peek-chev { transform: rotate(180deg); }
}

/* Phones: grabber on the detail card (drag the header down to dismiss) */
@media (max-width: 860px) {
  .detail-top { touch-action: none; padding-top: 20px; }
  .detail-top::before { content: ''; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
  .detail-close { top: 14px; }
}

/* ── Email alerts ── */
.alert-cta { list-style: none; text-align: center; padding: 14px 10px 6px; }
.dialog .err { color: var(--red); font-size: 14px; min-height: 1.2em; margin: 8px 0 0; }
.dialog select.input { appearance: auto; }

/* Item page: back link + breadcrumbs on one row (breadcrumbs are hidden on phones) */
.item-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.back-link:hover { color: var(--orange); }
.item-nav .crumbs ol { margin-bottom: 0; }

/* Temporary map exploration pin */
.explore-pin { width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #F4511E; color: #fff; font-size: 25px; font-weight: 800; line-height: 1; box-shadow: 0 2px 9px rgba(0,0,0,.38); }

/* Count-aware map hotspots: more available items create a larger, clearer cluster. */
.cluster { width:100%; height:100%; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; background:rgba(244,81,30,.94); color:#fff; border:3px solid rgba(255,255,255,.96); box-shadow:0 3px 12px rgba(0,0,0,.28); line-height:1.05; text-shadow:0 1px 2px rgba(0,0,0,.2); }
.cluster strong { font-size:16px; font-weight:800; } .cluster small { font-size:8px; font-weight:700; text-transform:uppercase; letter-spacing:.35px; }
.cluster.hotspot-mid { background:rgba(222,67,24,.97); box-shadow:0 0 0 5px rgba(244,81,30,.15),0 3px 12px rgba(0,0,0,.28); }
.cluster.hotspot-large { background:#B92E0B; box-shadow:0 0 0 7px rgba(244,81,30,.19),0 4px 15px rgba(0,0,0,.32); }

/* v3.17 header place search + browse mode */
.loc-form { display: inline-flex; align-items: center; gap: 7px; background: #2E2E2B; border-radius: 999px; padding: 0 12px; min-height: 36px; width: 190px; max-width: 46vw; min-width: 0; flex: 0 1 auto; }
.loc-form:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.loc-form input { background: transparent; border: 0; outline: 0; color: #eee; font-size: 16px; min-width: 0; width: 100%; padding: 0; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; }
.loc-form input::placeholder { color: #aaa; }
.browse .ctrl-row, .browse #filterBtn { display: none; }
.browse-hint { padding: 12px 14px; }
.browse-hint p { margin: 4px 0 10px; font-size: 13px; color: var(--mid); }
@media (max-width: 640px) { .loc-form { width: 140px; } }
/* .btn sets display, which overrides the hidden attribute; make hidden buttons actually hide (e.g. GPS button in the post dialog) */
.btn[hidden] { display: none; }

