@font-face { font-family: "Big Shoulders Display"; src: url(/fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url(/fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url(/fonts/big-shoulders-display-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cream: #FBF1DC;
  --teal: #0E5F58;
  --ink: #17332F;
  --mustard: #EFB43C;
  --coral: #C4432B;
  --muted: #4E6660;
  --muted-2: #5C7168;
  --faint: rgba(23, 51, 47, 0.45);
  --line: rgba(23, 51, 47, 0.15);
  --card: #FFFFFF;
  --teal-tint: rgba(14, 95, 88, 0.1);
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --tabbar: 62px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--mustard); color: var(--ink); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; }
svg { flex-shrink: 0; }

/* ---------- header ---------- */
.site-header {
  background: var(--teal);
  color: var(--cream);
  padding: calc(22px + env(safe-area-inset-top)) var(--gutter) 38px;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}
.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 36px;
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
  display: inline-block;
}
.tagline {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mustard);
}
.site-header .top-nav, .site-header .submit-top { display: none; }
body[data-view="spot"] .site-header { padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 24px; clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
body[data-view="spot"] .wordmark { font-size: 26px; }
body[data-view="spot"] .tagline { display: none; }

.live-wrap { padding: 0 var(--gutter); margin-top: -19px; position: relative; z-index: 2; min-height: 0; }
.live-pill {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--coral); color: var(--cream);
  border-radius: 22px; padding: 9px 16px;
  font-family: var(--display); font-weight: 800; font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(23, 51, 47, 0.15);
  text-align: center;
}
.live-pill.quiet { background: var(--ink); }
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cream); animation: pulse 2s ease-in-out infinite; }
.live-pill.quiet .dot { animation: none; opacity: 0.6; }
.live-pill[hidden] { display: none; }
@keyframes pulse { 50% { opacity: 0.35; } }

main { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 18px var(--gutter) 28px; }
main:focus { outline: none; }

/* ---------- tab bar (mobile) ---------- */
.tab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; background: var(--cream);
  border-top: 1.5px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 10px; text-decoration: none;
  color: var(--faint); font-size: 10.5px; font-weight: 600;
}
.tab-bar a[aria-current="page"] { color: var(--coral); font-weight: 700; }
body[data-view="spot"] .tab-bar { display: none; }

/* ---------- filters ---------- */
.day-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 4px; margin: 0 -2px; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tabs a {
  flex-shrink: 0; padding: 7px 14px; border-radius: 18px;
  border: 1.5px solid rgba(23, 51, 47, 0.3); background: transparent;
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.day-tabs a[aria-current="page"] { background: var(--mustard); border-color: var(--ink); font-weight: 700; }
.day-tabs a .today-mark { font-size: 10px; font-weight: 700; color: var(--coral); margin-left: 4px; text-transform: uppercase; letter-spacing: 0.04em; }

.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 6px;
  border: 1.5px solid rgba(23, 51, 47, 0.3); background: var(--card);
  font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  position: relative;
}
.chip-select { padding: 0; border-color: var(--ink); }
.chip-select select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent;
  padding: 7px 27px 7px 11px; font-weight: 600; font-size: 13px; cursor: pointer; max-width: 200px;
}
.chip-select svg { position: absolute; right: 9px; pointer-events: none; }
.price-toggle { display: inline-flex; gap: 8px; border: 0; padding: 0; margin: 0; }
.price-toggle label { cursor: pointer; }
.price-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.price-toggle label:has(input:checked) { background: var(--mustard); border-color: var(--ink); font-weight: 700; }
.price-toggle label:has(input:focus-visible) { outline: 3px solid var(--mustard); outline-offset: 2px; }
.chip.near[aria-pressed="true"] { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.filter-note { margin: 12px 0 0; font-size: 12px; color: var(--muted-2); font-weight: 500; }
.filter-note .err { color: var(--coral); }

/* ---------- sections + cards ---------- */
.sec {
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--teal); margin: 26px 0 18px;
}
.cards { display: grid; gap: 22px; list-style: none; margin: 0; padding: 0; }
.cards + .sec { margin-top: 32px; }
.card {
  display: block; position: relative; text-decoration: none;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 8px;
  padding: 16px 16px 14px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(23, 51, 47, 0.18); }
.card.is-done { border-color: rgba(23, 51, 47, 0.35); }
.card.is-done .card-name, .card.is-done .card-time { color: var(--muted-2); }
.tag {
  position: absolute; top: -11px; left: 14px;
  background: var(--teal); color: var(--cream);
  font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: 0.05em;
  padding: 2px 10px; border-radius: 10px; text-transform: uppercase; white-space: nowrap;
}
.tag-coral { background: var(--coral); }
.tag-muted { background: rgba(23, 51, 47, 0.45); }
.price {
  position: absolute; top: -13px; right: 14px;
  min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1;
}
.price.p1 { background: var(--mustard); color: var(--ink); }
.price.p2 { background: var(--teal); color: var(--cream); }
.card-name {
  font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.05;
  text-transform: uppercase; margin: 6px 44px 0 0; color: var(--ink);
}
.card-meta { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.card-time { margin: 9px 0 0; font-size: 14px; font-weight: 500; }
.verified {
  margin: 10px 0 0; display: inline-flex; align-items: center; gap: 5px;
  background: var(--teal-tint); padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: 0.03em; text-transform: uppercase;
}
details.wrapped { margin-top: 30px; }
details.wrapped summary {
  cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted-2); list-style: none; margin-bottom: 18px;
}
details.wrapped summary::-webkit-details-marker { display: none; }
details.wrapped summary::before { content: "+ "; }
details.wrapped[open] summary::before { content: "\2212  "; }

/* ---------- empty + notices ---------- */
.empty {
  border: 2.5px dashed rgba(23, 51, 47, 0.3); border-radius: 8px; padding: 22px 20px; margin-top: 18px;
  background: rgba(255, 255, 255, 0.5);
}
.empty h2 { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; margin: 0 0 8px; }
.empty p { margin: 6px 0 0; color: var(--muted); }
.empty .btn { margin-top: 16px; }
.loading { color: var(--muted-2); padding: 30px 0; font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 18px; border-radius: 6px; border: 2.5px solid var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 14.5px; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; background: transparent; color: var(--ink); line-height: 1.1;
}
.btn-mustard { background: var(--mustard); }
.btn-coral { background: var(--coral); color: var(--cream); }
.btn:disabled { opacity: 0.55; cursor: default; }
.link-coral { background: none; border: 0; padding: 4px; color: var(--coral); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- detail ---------- */
.back {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.spot { max-width: 980px; }
.spot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 16px; }
.spot-name { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 0.98; text-transform: uppercase; margin: 0; }
.spot-meta { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.spot-head .price { position: static; min-width: 50px; height: 50px; font-size: 19px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 16px; padding: 6px 14px;
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--teal); color: var(--cream); margin: 0 0 6px;
}
.status-pill.now { background: var(--coral); }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cream); }
.spot-grid { display: grid; gap: 0; }
.spot-sec { padding: 18px 0 16px; border-top: 1.5px solid var(--line); }
.spot-sec h2 { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.week { list-style: none; margin: 0; padding: 0; }
.week li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.week li .d { font-weight: 600; }
.week li .t { font-weight: 500; text-align: right; }
.week li .t span { display: block; white-space: nowrap; }
.week li .d { white-space: nowrap; }
.week li.today { background: var(--mustard); margin: 2px -10px; padding: 8px 10px; border-radius: 5px; }
.week li.today .d, .week li.today .t { font-weight: 700; }
.week li.none { color: var(--faint); }
.fine { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fine li { display: flex; gap: 10px; font-size: 14px; font-weight: 500; }
.fine li::before { content: "\00B7"; color: var(--coral); font-weight: 800; }
.know-main { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--teal); font-size: 14px; margin: 0; }
.know-sub { margin: 6px 0 0; font-size: 13px; color: var(--muted-2); font-weight: 500; }
.addr { font-style: normal; font-weight: 600; font-size: 14px; }
.actions { display: flex; gap: 10px; margin-top: 12px; }
.actions .btn { flex: 1; }
.confirm-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--card); border-top: 2.5px solid var(--ink);
  padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom));
}
.confirm-bar p { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.confirm-row { display: flex; gap: 12px; align-items: center; }
.confirm-row .btn { flex: 1; }
body[data-view="spot"] .site-footer { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

/* ---------- dialog + forms ---------- */
.dlg { border: 2.5px solid var(--ink); border-radius: 10px; padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--cream); color: var(--ink); }
.dlg::backdrop { background: rgba(23, 51, 47, 0.55); }
.dlg form { padding: 22px 20px 18px; }
.dlg h2, .form-title { font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; text-transform: uppercase; margin: 0 0 6px; }
.dlg p.lead, .form-lead { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.radio-list { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.radio-list label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid rgba(23, 51, 47, 0.25); border-radius: 6px; background: var(--card); font-weight: 500; cursor: pointer; }
.radio-list label:has(input:checked) { border-color: var(--ink); background: #FFF6DA; font-weight: 600; }
.radio-list input { accent-color: var(--teal); width: 17px; height: 17px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 700; }
.field > span small { font-weight: 500; color: var(--muted-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 12px; border: 1.5px solid rgba(23, 51, 47, 0.35); border-radius: 6px; background: var(--card); font-size: 15px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--mustard); outline-offset: 0; }
.form-err { color: var(--coral); font-weight: 600; font-size: 13.5px; min-height: 1em; margin: 0 0 10px; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.submit-wrap { max-width: 560px; }
.thanks { border: 2.5px solid var(--ink); border-radius: 8px; background: var(--card); padding: 22px 20px; }
.thanks h2 { font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; text-transform: uppercase; margin: 0 0 8px; }

/* ---------- map ---------- */
.map-wrap { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.map { height: calc(100vh - 250px); min-height: 380px; border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); background: #E8E1CF; }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px var(--gutter) 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--teal); box-shadow: 0 2px 0 rgba(23, 51, 47, 0.25); }
.pin-now { background: var(--coral); }
.pin-today { background: var(--mustard); }
.leaflet-container { font-family: var(--body); }
.leaflet-popup-content-wrapper { border-radius: 8px; border: 2px solid var(--ink); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; }
.pop-name { font-family: var(--display); font-weight: 800; font-size: 17px; text-transform: uppercase; display: block; line-height: 1.1; }
.pop-line { display: block; margin-top: 3px; color: var(--muted); }
.pop-link { display: inline-block; margin-top: 7px; font-weight: 700; color: var(--teal); }
.map-note { font-size: 12px; color: var(--muted-2); padding: 8px var(--gutter) 0; }

/* ---------- footer ---------- */
.site-footer {
  padding: 22px var(--gutter) calc(var(--tabbar) + 26px + env(safe-area-inset-bottom));
  border-top: 1.5px solid var(--line); margin-top: 10px;
  font-size: 12.5px; color: var(--muted-2); line-height: 1.5;
}
.site-footer .inner { max-width: 1360px; margin: 0 auto; }
.site-footer p { margin: 0 0 6px; max-width: 640px; }
.site-footer a { font-weight: 600; }

/* ---------- tablet / desktop ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .site-header {
    clip-path: none; display: flex; align-items: center; gap: 44px;
    height: 108px; padding: 0 var(--gutter) 10px;
  }
  .wordmark { font-size: 32px; line-height: 0.95; }
  .tagline { font-size: 12px; margin-top: 4px; }
  .site-header .top-nav { display: flex; gap: 30px; }
  .top-nav a {
    font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
    color: rgba(251, 241, 220, 0.68); text-decoration: none; padding-bottom: 4px; border-bottom: 2.5px solid transparent;
  }
  .top-nav a:hover { color: var(--cream); }
  .top-nav a[aria-current="page"] { color: var(--mustard); border-bottom-color: var(--mustard); }
  .site-header .submit-top { display: inline-flex; margin-left: auto; }
  .live-wrap { display: flex; margin-top: -17px; }
  .live-pill { display: inline-flex; padding: 8px 20px; }
  .live-pill[hidden] { display: none; }
  .tab-bar { display: none; }
  main { padding-top: 26px; padding-bottom: 50px; }
  .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1.5px solid var(--line); }
  .filters .filter-row { margin-top: 0; }
  .filters .filter-note { margin: 0 0 0 auto; }
  .sec { margin-top: 30px; }
  .site-footer { padding-bottom: 30px; }
  body[data-view="spot"] .site-footer { padding-bottom: 30px; }
  body[data-view="spot"] .site-header { height: 108px; padding: 0 var(--gutter) 10px; clip-path: none; }
  body[data-view="spot"] .wordmark { font-size: 32px; }
  body[data-view="spot"] .tagline { display: block; }
  .spot-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .spot-name { font-size: 48px; }
  .confirm-bar { position: static; border: 2.5px solid var(--ink); border-radius: 8px; margin-top: 18px; max-width: 980px; padding: 16px 18px; }
  .confirm-row .btn { flex: 0 0 auto; }
  .map { height: calc(100vh - 230px); }
  .map-wrap { margin: 0; }
  .map { border: 2.5px solid var(--ink); border-radius: 8px; }
  .map-legend, .map-note { padding-left: 0; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
  .live-pill .dot { animation: none; }
}
