:root {
  --sea: #0b5560;
  --sea-2: #0e6f7c;
  --coral: #ff6b4a;
  --sand: #fff8ee;
  --ink: #17282b;
  --muted: #5f7275;
  --line: #e4ddd2;
  --card: #ffffff;
  --ok: #1f8a5b;
  --warn: #b26a00;
  --bad: #b3261e;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(10, 40, 45, .18);
  --top-h: 0px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--sand); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ok { color: var(--ok); font-weight: 600; }
.closed { color: var(--bad); font-weight: 600; }
.warn-t { color: var(--warn); font-weight: 600; }
.link { background: none; border: 0; padding: 0; color: var(--sea-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pad { padding: 12px; }

#app { height: 100dvh; display: flex; flex-direction: column; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar { background: var(--sea); color: #fff; padding: 10px 12px 8px; padding-top: max(10px, env(safe-area-inset-top)); z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand small { font-weight: 500; opacity: .75; font-size: 13px; margin-left: 4px; }
.logo { color: var(--coral); }
.demo-pill { background: #ffd66b; color: #4a3500; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }

.search-row { display: flex; gap: 8px; margin-top: 8px; }
.search { flex: 1; display: flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); border-radius: 12px; padding: 0 10px; min-width: 0; }
.search span { color: var(--muted); font-size: 18px; }
.search input { flex: 1; border: 0; outline: none; padding: 10px 0; background: none; min-width: 0; font-size: 16px; }
.btn-locate { background: var(--coral); color: #fff; border: 0; border-radius: 12px; padding: 0 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn-locate .locate-icon { display: inline-block; transform: rotate(-45deg); }
.btn-locate.is-on { background: #fff; color: var(--sea); }
.btn-locate.is-busy .locate-icon { animation: spin 1s linear infinite; }
@media (max-width: 420px) { .btn-locate .locate-label { display: none; } .btn-locate { padding: 0 14px; } }
@media (max-width: 360px) { .brand small { display: none; } }

.chips { display: flex; gap: 6px; overflow-x: auto; margin: 8px -12px 0; padding: 0 12px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 99px; padding: 5px 11px; font-size: 13px; font-weight: 600; }
.chip small { opacity: .7; margin-left: 2px; }
.chip.is-on { background: #fff; color: var(--sea); border-color: #fff; }

.origin-bar { display: flex; justify-content: space-between; gap: 8px; width: 100%; margin-top: 8px; background: rgba(255,255,255,.12); border: 0; border-radius: 10px; padding: 6px 10px; color: #fff; font-size: 13px; text-align: left; }
.origin-bar .muted { color: rgba(255,255,255,.75); }
.origin-bar .link { color: #ffd66b; }

/* ── Body: list + map ────────────────────────────────────── */
.body { flex: 1; display: flex; min-height: 0; position: relative; }
.map-wrap { flex: 1; position: relative; min-width: 0; }
#map { position: absolute; inset: 0; background: #cfe7ea; }

.list-panel { width: 380px; flex: none; overflow-y: auto; background: var(--sand); border-right: 1px solid var(--line); }
.list-head { padding: 12px 14px 6px; font-size: 13px; color: var(--muted); position: sticky; top: 0; background: var(--sand); z-index: 1; }
.list { list-style: none; margin: 0; padding: 0 8px 8px; }
.list-foot { font-size: 12px; color: var(--muted); padding: 0 16px 90px; margin: 0; }
.row { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 6px; }
.row:hover { border-color: #c9bfae; }
.row.is-selected { border-color: var(--sea-2); box-shadow: 0 0 0 2px rgba(14,111,124,.2); }
.row-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, white); font-size: 18px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 700; }
.row-sub, .row-meta { font-size: 12.5px; color: var(--muted); }
.row-dist { flex: none; font-size: 12.5px; font-weight: 700; text-align: right; display: flex; flex-direction: column; }
.row-dist .muted { font-size: 10.5px; font-weight: 500; }
.empty { text-align: center; padding: 32px 16px; }
.empty-icon { font-size: 34px; }
.empty p { margin: 6px 0 12px; }

.tag { display: inline-block; border-radius: 6px; padding: 0 6px; font-size: 11.5px; font-weight: 700; }
.tag-event { background: #fde3ef; color: #a01d5c; }

.vbadge { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 1px 8px; margin-right: 4px; }
.row-title .vbadge { padding: 0 5px; font-size: 11px; }
.v-ok { background: #ddf3e8; color: var(--ok); }
.v-claimed { background: #fff1d6; color: var(--warn); }
.v-none { background: #eceae6; color: var(--muted); }

/* ── Map pins ────────────────────────────────────────────── */
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); display: grid; place-items: center; transition: transform .15s; }
.pin span { transform: rotate(45deg); font-size: 15px; line-height: 1; }
.pin.is-selected { transform: rotate(-45deg) scale(1.25); box-shadow: 0 0 0 4px rgba(255,255,255,.7), 0 6px 14px rgba(0,0,0,.35); }
.pin-badge { position: absolute; left: 26px; top: -8px; background: #d63384; color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 1px 6px; white-space: nowrap; box-shadow: 0 2px 5px rgba(0,0,0,.25); pointer-events: none; }

.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(26,115,232,.5); animation: pulse 2s infinite; }
.me-label { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; box-shadow: 0 1px 4px rgba(0,0,0,.25); pointer-events: none; }
.me-accuracy { fill: #1a73e8; fill-opacity: .1; stroke: #1a73e8; stroke-opacity: .35; stroke-width: 1; }
.start-pin { width: 26px; height: 26px; border-radius: 50%; background: var(--sea); color: #ffd66b; border: 3px solid #fff; display: grid; place-items: center; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.route-line { stroke: var(--sea-2); stroke-width: 5; stroke-opacity: .8; fill: none; stroke-linecap: round; }
.route-straight { stroke-dasharray: 2 9; stroke-width: 4; stroke: var(--muted); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(26,115,232,.5); } 70% { box-shadow: 0 0 0 14px rgba(26,115,232,0); } 100% { box-shadow: 0 0 0 0 rgba(26,115,232,0); } }
@keyframes spin { to { transform: rotate(315deg); } }

/* ── Status banner ───────────────────────────────────────── */
.status { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 900; display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 14px; max-width: 560px; margin: 0 auto; border-left: 4px solid var(--sea-2); }
.status-warn { border-left-color: var(--warn); }
.status-empty { border-left-color: var(--muted); }
.status-text { flex: 1; }
.status-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.close { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); padding: 0 4px; }
.spinner { flex: none; display: inline-block; width: 16px; height: 16px; border: 2.5px solid #cfe1e3; border-top-color: var(--sea-2); border-radius: 50%; animation: spin2 .8s linear infinite; vertical-align: -3px; margin-right: 4px; }
@keyframes spin2 { to { transform: rotate(360deg); } }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 11px; padding: 10px 14px; font-weight: 700; text-decoration: none; font-size: 14px; min-height: 44px; }
.btn:hover { border-color: #c9bfae; }
.btn-primary { background: var(--sea); border-color: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-2); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 6px 10px; min-height: 34px; font-size: 13px; }

/* ── Preview card ────────────────────────────────────────── */
.preview { position: fixed; z-index: 1100; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 12px; transform: translateY(120%); transition: transform .22s ease; max-width: 520px; margin: 0 auto; }
.preview.is-open { transform: none; }
.preview > .close { position: absolute; right: 8px; top: 6px; }
.preview-inner { display: flex; gap: 12px; }
.photo { flex: none; width: 96px; height: 96px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, white), color-mix(in srgb, var(--c) 70%, white)); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.photo-icon { font-size: 34px; }
.photo-note { position: absolute; bottom: 4px; font-size: 9px; font-weight: 700; color: rgba(0,0,0,.55); text-transform: uppercase; letter-spacing: .04em; }
.photo-lg { width: 100%; height: 190px; border-radius: 0; }
.photo-lg .photo-icon { font-size: 64px; }
.photo-lg .photo-note { font-size: 11px; bottom: 8px; }
.preview-body { flex: 1; min-width: 0; padding-right: 20px; }
.eyebrow { font-size: 12px; color: var(--muted); font-weight: 600; }
.preview h3 { margin: 2px 0 4px; font-size: 17px; line-height: 1.25; }
.meta { font-size: 13px; }
.dist { font-size: 13px; margin-top: 6px; }
.practical { margin-top: 8px; font-size: 13px; background: #fff4d8; border-radius: 8px; padding: 6px 9px; }
.preview-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }

/* ── Details screen ──────────────────────────────────────── */
.details { position: fixed; inset: 0; z-index: 1200; background: var(--sand); display: flex; flex-direction: column; }
.details-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid var(--line); }
.details-scroll { flex: 1; overflow-y: auto; }
.details-body { max-width: 680px; margin: 0 auto; padding: 16px 16px 48px; }
.details h1 { margin: 4px 0 8px; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.details h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.details section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 12px; }
.details section p { margin: 0 0 6px; }
.lead { font-size: 16px; line-height: 1.45; }
.special { background: #e7f4f2; border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.special p { margin: 4px 0 0; }
.badges { margin-bottom: 8px; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 14px; }
.hours { border-collapse: collapse; width: 100%; font-size: 14px; }
.hours th { text-align: left; font-weight: 600; padding: 4px 0; width: 40%; }
.hours td { padding: 4px 0; }
.svc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.svc span { background: #f1ede6; border-radius: 99px; padding: 3px 10px; font-size: 13px; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tips li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.checked { font-size: 13px; }

/* ── Modal ───────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 1300; background: rgba(10, 30, 33, .45); display: flex; align-items: flex-end; justify-content: center; padding: 10px; }
.modal-card { background: #fff; border-radius: 18px; padding: 18px; width: 100%; max-width: 440px; max-height: 86dvh; overflow-y: auto; box-shadow: var(--shadow); }
.modal-card h2 { margin: 0 0 6px; font-size: 20px; }
.modal-card p { margin: 0 0 10px; }
.bullets { padding-left: 18px; margin: 0 0 12px; display: grid; gap: 4px; }
.modal-actions { display: grid; gap: 8px; margin-top: 12px; }
.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 16px; }
.pick-list { list-style: none; margin: 8px 0; padding: 0; max-height: 40dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.pick-opt { width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; }
.pick-opt:hover { background: #f7f3ec; }
.pick-opt small { color: var(--muted); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
@media (min-width: 600px) { .modal { align-items: center; } }

/* ── Mobile map/list toggle ─────────────────────────────── */
.view-toggle { display: none; }
@media (max-width: 899px) {
  .list-panel { position: absolute; inset: 0; width: auto; border: 0; z-index: 800; }
  body[data-view="map"] .list-panel { display: none; }
  body[data-view="list"] .map-wrap { visibility: hidden; }
  .view-toggle { display: block; position: fixed; z-index: 1050; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); background: var(--ink); color: #fff; border: 0; border-radius: 99px; padding: 10px 18px; font-weight: 700; box-shadow: var(--shadow); }
  body:has(.preview.is-open) .view-toggle { display: none; }
  .leaflet-bottom.leaflet-right { margin-bottom: 60px; }
}

/* ── Trip planner ────────────────────────────────────────── */
.brand-actions { display: flex; align-items: center; gap: 6px; }
.plan-btn { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
@media (max-width: 360px) { .demo-pill { display: none; } }

.plan-card { position: absolute; z-index: 850; left: 10px; right: 60px; bottom: 74px; max-width: 380px; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 10px 10px 14px; box-shadow: var(--shadow); border-left: 4px solid var(--coral); }
.plan-card-text { flex: 1; display: flex; flex-direction: column; font-size: 13px; gap: 2px; }
.plan-card-text b { font-size: 14px; }
.plan-card-actions { display: flex; align-items: center; gap: 2px; }
body:has(.preview.is-open) .plan-card { display: none; }
@media (min-width: 900px) { .plan-card { bottom: 20px; right: auto; } }

.planner { position: fixed; inset: 0; z-index: 1150; background: var(--sand); display: flex; flex-direction: column; }
.planner-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid var(--line); }
.steps { display: flex; gap: 5px; }
.steps i { width: 28px; height: 5px; border-radius: 9px; background: var(--line); }
.steps i.on { background: var(--coral); }
.planner-scroll { flex: 1; overflow-y: auto; }
.planner-body { max-width: 520px; margin: 0 auto; padding: 18px 16px 32px; }
.planner-body.wide { max-width: 720px; }
.planner-body h1 { margin: 4px 0 8px; font-size: 26px; letter-spacing: -.01em; }
.planner-body h2 { font-size: 21px; margin: 0 0 12px; line-height: 1.25; }
.planner-body h2.sec { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 8px; }
.planner-foot { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.planner-foot .btn-primary { flex: 1; max-width: 320px; margin-left: auto; }

.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; font-weight: 700; min-height: 84px; }
.opt.is-on { border-color: var(--sea-2); background: #e7f4f2; box-shadow: 0 0 0 2px rgba(14,111,124,.15); }
.opt-icon { font-size: 24px; }
.my-plans { display: block; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.field .input { font-weight: 400; }
textarea.input { resize: vertical; font: inherit; }
.row-2 { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg-btn { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 6px; font-size: 13px; font-weight: 700; }
.seg-btn.is-on { border-color: var(--sea-2); background: #e7f4f2; }
.radio-list { display: grid; gap: 6px; font-weight: 400; }
.radio-list label { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }

.notice { background: #fff4d8; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; }
.notice-ok { background: #ddf3e8; color: #135c3c; }
.plan-map { height: 220px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 12px 0 4px; }
.num-pin { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; border: 2.5px solid #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }

.timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.tl-day { font-weight: 800; font-size: 14px; margin: 16px 0 6px; color: var(--sea); }
.tl-stop { display: grid; grid-template-columns: 62px 1fr; gap: 8px; margin-bottom: 8px; }
.tl-time { font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tl-num { width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 11.5px; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 4px; }
.tl-empty .tl-card { border-style: dashed; }
.tl-hop { font-size: 11.5px; color: var(--muted); }
.tl-slot { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--coral); }
.tl-name { font-weight: 700; font-size: 15.5px; }
.tl-name a { color: inherit; }
.tl-why { font-size: 13px; color: var(--sea); }
.tl-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.similar { margin-top: 4px; }
.swap-list { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.swap-opt { width: 100%; text-align: left; background: #fbf8f3; border: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; display: flex; flex-direction: column; }
.swap-opt small { color: var(--muted); }
.plan-cta { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
@media (min-width: 600px) { .plan-cta { grid-template-columns: 2fr 1fr; } }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.sugg { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sugg-row { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.sugg-row .row-title { color: inherit; text-decoration: none; }
.quote-items { padding-left: 18px; margin: 8px 0 14px; display: grid; gap: 6px; font-size: 14px; }

/* ── Shortcuts, right now, weekend, tips ─────────────────── */
.quick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.quick { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; padding: 7px 4px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.quick:hover { background: rgba(255,255,255,.24); }
@media (max-width: 360px) { .quick { font-size: 12px; } }

.seg-4 { grid-template-columns: repeat(4, 1fr); }
.chip-pick { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 400; margin-bottom: 8px; }
.pick-chip { background: #fff; border: 1.5px solid var(--line); border-radius: 99px; padding: 6px 11px; font-size: 13px; font-weight: 600; }
.pick-chip.is-on { border-color: var(--sea-2); background: #e7f4f2; }
.pick-chip small { color: var(--muted); }
.rn-line { font-size: 12.5px; color: var(--ink); }

.tip-count { font-size: 11.5px; background: #fff4d8; border-radius: 99px; padding: 0 6px; margin-left: 2px; }
.pin-tip { position: absolute; left: 24px; top: 20px; width: 11px; height: 11px; border-radius: 50%; background: #ffd66b; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); pointer-events: none; }
.tips li { padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.tips li:last-child { border-bottom: 0; }
.tips small { font-size: 11.5px; }
.tip-form { margin-top: 12px; }
.tip-form summary { cursor: pointer; font-weight: 700; color: var(--sea-2); margin-bottom: 10px; }

.wk-list { margin-top: 12px; }
.wk-card { display: grid; grid-template-columns: 70px 1fr; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.wk-time { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.wk-time b { font-size: 16px; color: var(--ink); }
.wk-live { color: #d63384; font-weight: 800; }
.wk-body { display: grid; gap: 4px; min-width: 0; }
.wk-body h3 { margin: 0; font-size: 16.5px; line-height: 1.25; }
.wk-body h3 a { color: inherit; }

/* ── My day, ride, share, ask a local ────────────────────── */
.quick-row { grid-template-columns: repeat(4, 1fr); }
.quick { font-size: 12.5px; padding: 7px 2px; }
@media (max-width: 380px) { .quick { font-size: 11.5px; } }
.preview-actions { grid-template-columns: 1fr auto auto; }
.btn.is-in { background: #e7f4f2; border-color: var(--sea-2); color: var(--sea); }

.day-pill { position: fixed; z-index: 1060; left: 12px; bottom: max(16px, env(safe-area-inset-bottom)); background: var(--coral); color: #fff; border: 0; border-radius: 99px; padding: 10px 14px; font-weight: 700; box-shadow: var(--shadow); }
.day-pill b { background: rgba(255,255,255,.25); border-radius: 99px; padding: 0 7px; margin-left: 2px; }
body:has(.preview.is-open) .day-pill { display: none; }
@media (min-width: 900px) { .day-pill { left: 392px; } }

.title-in { width: 100%; font: inherit; font-size: 24px; font-weight: 800; letter-spacing: -.01em; border: 0; border-bottom: 2px dashed var(--line); background: transparent; padding: 4px 0; margin-bottom: 12px; color: var(--ink); }
.title-in:focus { outline: none; border-bottom-color: var(--sea-2); }
.row-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.time-in { width: 62px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 2px; font: inherit; font-size: 12px; background: #fff; }
.input-sm { padding: 6px 8px; font-size: 14px; margin-top: 2px; }
.meet { display: flex; flex-direction: column; gap: 2px; font-weight: 600; margin-top: 4px; }
.share-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-top: 10px; display: grid; gap: 6px; }
.ride-sec { margin-top: 10px; }
.ride-body { display: grid; gap: 10px; margin-top: 10px; }
.radio-list label span { line-height: 1.3; }

.ask-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 12px; }
.qa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qa-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.qa-item h3 { margin: 4px 0 8px; font-size: 16.5px; line-height: 1.3; }
.qa-answer { border-left: 3px solid var(--sea-2); padding: 2px 0 2px 10px; display: grid; gap: 6px; justify-items: start; }
.qa-answer p { margin: 0; }
#dayplan .tl-stop { grid-template-columns: 86px 1fr; }
#dayplan .time-in { width: 82px; }

/* ── Admin ───────────────────────────────────────────────── */
.list-foot { padding-bottom: 8px; }
.admin-link { font-size: 12px; padding: 0 16px 90px; margin: 0; }
.admin-link a { color: var(--muted); }
.notice-err { background: #fde8e6; color: var(--bad); }
.ad-tabs { margin: 8px 0 12px; }
.ad-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.ad-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 6px; }
.ad-card p { margin: 0; }
.ad-edit { display: grid; gap: 2px; margin-top: 6px; }
.ad-edit .field { margin-bottom: 8px; }
pre.msg { white-space: pre-wrap; font: inherit; font-size: 13px; background: #f7f3ec; border-radius: 8px; padding: 8px; margin: 6px 0 0; }

/* ── Admin listing form ──────────────────────────────────── */
.lf { display: grid; gap: 2px; }
.lf .sec { margin-top: 18px; }
.lf .field { margin-bottom: 10px; }
.lf .check { margin: 4px 0; }
.lf-title { font-size: 22px; margin: 4px 0 0; }
.lf-map { height: 260px; margin: 4px 0; cursor: crosshair; }
.lf-hours th { width: 90px; font-weight: 600; }
.lf-hours td { padding: 3px 0; }
.lf-hours .time-in { width: 96px; }
.lf-tip { display: grid; grid-template-columns: 150px 1fr auto; gap: 6px; margin-bottom: 6px; }
@media (max-width: 480px) { .lf-tip { grid-template-columns: 1fr auto; } .lf-tip select { grid-column: 1 / -1; } }
.lf-actions { position: sticky; bottom: 0; display: flex; gap: 8px; background: var(--sand); padding: 12px 0; margin-top: 12px; border-top: 1px solid var(--line); }

/* ── Booking, photos, socials ────────────────────────────── */
.booking { font-size: 12.5px; font-weight: 600; }
.booking-walk_in { color: var(--ok); }
.booking-reserve, .booking-pay_ahead { color: var(--sea); }
.booking-quote { color: var(--warn); }
.photo.has-img { background-size: cover; background-position: center; }
.socials { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-bottom: 8px; }
.thumb { aspect-ratio: 1; border-radius: 10px; background: #eee center / cover no-repeat; border: 1px solid var(--line); }

/* ── Directions panel ────────────────────────────────────── */
.nav-panel { max-height: 55dvh; overflow-y: auto; }
.nav-panel h3 { margin: 2px 24px 6px 0; font-size: 17px; }
.nav-panel p { margin: 4px 0; }
.nav-sum { font-size: 15px; }
.nav-tips { list-style: none; padding: 0; margin: 8px 0; font-size: 13px; display: grid; gap: 4px; }
.nav-steps { margin: 6px 0; font-size: 13.5px; }
.nav-steps summary { cursor: pointer; font-weight: 700; color: var(--sea-2); }
.nav-steps ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.route-nav { stroke: #1a73e8; stroke-width: 6; stroke-opacity: .85; }
body.nav-on .view-toggle, body.nav-on .day-pill, body.nav-on .plan-card { display: none !important; }
.biz-link { color: var(--sea-2) !important; font-weight: 700; }

/* ── Listing form photos ─────────────────────────────────── */
.lf-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 6px 0; }
.lf-photo { display: grid; gap: 2px; justify-items: start; font-size: 12px; }
.lf-photo .thumb { width: 100%; }
.file-btn { cursor: pointer; }

/* ── Owner page / admin owner tools ──────────────────────── */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stats li { display: flex; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.link-box { background: #fff; border: 2px solid var(--sea-2); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; margin: 8px 0 12px; }
.diff { font-size: 13px; margin: 0; padding-left: 16px; }
.diff del { color: var(--bad); }
.diff ins { color: var(--ok); text-decoration: none; }

/* ── Coming soon (config.launchMode = 'preview') ─────────── */
.soon { position: fixed; inset: 0; z-index: 1400; overflow-y: auto; background: linear-gradient(170deg, var(--sea) 0%, var(--sea-2) 55%, #13808d 100%); color: #fff;
  display: flex; align-items: center; justify-content: center; padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); }
body.is-soon { overflow: hidden; }
.soon-card { width: 100%; max-width: 440px; text-align: center; }
.soon-logo { font-size: 54px; line-height: 1; color: var(--coral); }
.soon h1 { margin: 10px 0 0; font-size: 32px; letter-spacing: -.02em; }
.soon-sub { margin: 2px 0 0; opacity: .8; font-weight: 600; }
.soon-lead { margin: 18px auto 0; font-size: 17px; line-height: 1.45; max-width: 360px; }
.soon-badge { display: inline-block; margin: 16px 0 0; background: #ffd66b; color: #4a3500; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 5px 12px; border-radius: 99px; }
.soon-biz { margin-top: 26px; background: #fff; color: var(--ink); border-radius: 18px; padding: 20px 18px; box-shadow: var(--shadow); }
.soon-biz h2 { margin: 0 0 6px; font-size: 19px; }
.soon-biz p { margin: 0 0 14px; }
.soon-biz .small { margin: 12px 0 0; }
.soon-cta { display: block; text-decoration: none; text-align: center; font-size: 16px; padding: 13px 16px; }
.soon-foot { margin: 20px 0 0; font-size: 12px; }
.soon-foot a { color: rgba(255,255,255,.75); }

/* ── Add to Home Screen ──────────────────────────────────── */
.install-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.install-head h2 { margin: 0; }
.install-icon { border-radius: 13px; flex: none; }
.install-steps { margin: 0 0 4px; padding-left: 20px; line-height: 1.6; }
.ios-share { display: inline-block; transform: rotate(-90deg); font-weight: 700; }
