@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@500;700;800;900&display=swap');

/* Theme tokens — identical to the Muse artifact's theme.css (unchanged per Joseph). */
:root {
  color-scheme: light dark;
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --surface-alt: #ece7db;
  --text: #12233f;
  --dim: #6b7280;
  --border: #ddd6c4;
  --accent: #12233f;
  --go: #1a7f4b;
  --warn: #b45309;
  --down: #9b2226;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1626;
    --surface: #16233c;
    --surface-alt: #1c2c4a;
    --text: #f4f1ea;
    --dim: #9aa3b2;
    --border: #2a3a56;
    --accent: #f4f1ea;
    --go: #34c47c;
    --warn: #f0a04b;
    --down: #f08a8a;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.font-display { font-family: "Libre Franklin", system-ui, sans-serif; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
img { display: block; }

.page { min-height: 100vh; background: var(--bg); color: var(--text); padding-bottom: 2.5rem; }

/* ---------- header band ---------- */
.band { background: #12233f; color: #f4f1ea; padding: 0 1rem 1.25rem; padding-top: env(safe-area-inset-top, 0px); }
.band-top { padding-top: 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.band-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; margin: 0; }
.band-sub { font-size: 12px; opacity: 0.6; margin: 0.25rem 0 0; }
.band-title { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 900; font-size: 24px; line-height: 1.15; margin: 0.25rem 0 0; }
.band-col { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.btn-band {
  border: 0; border-radius: 999px; background: rgba(255,255,255,0.10); color: #f4f1ea;
  padding: 0.5rem 1rem; font-size: 14px; font-weight: 600; min-height: 40px;
}
.btn-band:hover { background: rgba(255,255,255,0.20); }
.btn-band:disabled { opacity: 0.5; }
.btn-band-sm { padding: 0.375rem 0.75rem; font-size: 12px; font-weight: 700; min-height: 32px; }

.hero { margin-top: 1.25rem; }
.hero-label { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.7; margin: 0; }
.hero-wait { margin-top: 0.25rem; display: flex; align-items: flex-end; gap: 0.75rem; flex-wrap: wrap; }
.hero-num { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 900; line-height: 1; font-size: 64px; letter-spacing: -0.02em; }
.hero-min { font-size: 24px; font-weight: 700; margin-left: 0.25rem; }
.hero-name { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 800; font-size: 20px; line-height: 1.2; margin: 0.25rem 0 0; }
.hero-where { font-size: 14px; opacity: 0.7; margin: 0.25rem 0 0; }
.hero-note { font-size: 14px; opacity: 0.8; margin: 0.75rem 0 0; }
.hero-note strong { font-weight: 700; }

.fresh { margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 12px; opacity: 0.7; flex-wrap: wrap; }
.fresh .dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; }
.dot-live { background: #34d399; }
.dot-stale { background: #fbbf24; }
.stale-note { margin: 0.5rem 0 0; font-size: 12px; color: #fde68a; }

.parkctl { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.10); }
.parkctl-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.parkctl-label { font-size: 11px; font-weight: 600; opacity: 0.6; }
.seg { display: flex; gap: 0.25rem; }
.seg-btn {
  border: 0; border-radius: 999px; padding: 0.25rem 0.625rem; font-size: 11px; font-weight: 700;
  line-height: 1.25; min-height: 32px; background: rgba(255,255,255,0.12); color: #f4f1ea;
}
.seg-btn[aria-pressed="true"] { background: #f4f1ea; color: #12233f; }
.parkctl-status { font-size: 11px; opacity: 0.6; }

/* ---------- layout ---------- */
.main { padding: 0 1rem; margin: 1.25rem auto 0; max-width: 42rem; width: 100%; }
.main > * + * { margin-top: 1.75rem; }
.footnote { text-align: center; font-size: 12px; color: var(--dim); line-height: 1.6; padding: 0 0.5rem; margin: 0; }

/* ---------- alert banner ---------- */
.banner {
  margin: 1rem 1rem 0; border-radius: var(--radius); border: 2px solid var(--go);
  background: var(--surface); padding: 0.75rem 1rem;
}
.banner.down { border-color: var(--down); }
.banner-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.banner-kicker { font-size: 11px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; margin: 0; color: var(--go); }
.banner.down .banner-kicker { color: var(--down); }
.banner ul { margin: 0.25rem 0 0; padding: 0; list-style: none; }
.banner li { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.35; margin-top: 0.25rem; }
.banner-x {
  flex-shrink: 0; border: 0; border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 14px;
  font-weight: 600; background: var(--surface-alt); color: var(--text); min-height: 36px; min-width: 36px;
}

/* ---------- park sections & ride cards ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 0.25rem; margin-bottom: 0.5rem; gap: 0.5rem; }
.section-title-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; min-width: 0; }
.section-title { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 900; font-size: 18px; letter-spacing: -0.01em; margin: 0; }
.section-sub { font-size: 12px; font-weight: 600; color: var(--dim); flex-shrink: 0; }
.pill {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.pill-park { color: var(--go); background: color-mix(in srgb, var(--go) 12%, transparent); }
.pill-seasonal { color: #b45309; background: color-mix(in srgb, #b45309 14%, transparent); }
@media (prefers-color-scheme: dark) { .pill-seasonal { color: var(--warn); } }

.cards { display: flex; flex-direction: column; gap: 0.625rem; }
.ride-card {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  padding: 0.75rem 1rem; display: flex; align-items: center; gap: 1rem;
}
.ride-main { flex: 1; min-width: 0; }
.ride-name { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 800; font-size: 17px; line-height: 1.2; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ride-land { font-size: 13px; color: var(--dim); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ride-tags { margin-top: 6px; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ride-note { font-size: 12px; font-weight: 700; }
.ride-wait { text-align: right; flex-shrink: 0; width: 76px; }
.wait-num { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 900; line-height: 1; font-size: 44px; }
.wait-down { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 900; line-height: 1; font-size: 26px; }
.wait-cap { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-top: 4px; }

/* ---------- generic cards / states ---------- */
.card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); padding: 1rem; }
.card-center { text-align: center; padding: 1.25rem; }
.card h2, .card h3 { margin: 0; }
.state-title { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 700; font-size: 18px; margin: 0; }
.state-sub { font-size: 14px; color: var(--dim); margin: 0.25rem 0 0; }
.btn-primary {
  border: 0; border-radius: 999px; background: #12233f; color: #fff; padding: 0.5rem 1.25rem;
  font-weight: 600; min-height: 44px; margin-top: 1rem;
}
@media (prefers-color-scheme: dark) { .btn-primary { background: #f4f1ea; color: #12233f; } }
.skeleton { height: 84px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); animation: pulse 1.4s ease-in-out infinite; }
.skeleton.tall { height: 92px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.625rem; }

/* ---------- filters ---------- */
.filters { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  border-radius: 999px; padding: 0.375rem 0.75rem; font-size: 12px; font-weight: 700; min-height: 36px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.chip-seasonal[aria-pressed="true"] { background: #b45309; color: #fff; border-color: #b45309; }
.btn-showall {
  width: 100%; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); padding: 0.625rem 1.25rem; font-weight: 600; min-height: 44px;
}

/* ---------- food cards ---------- */
.spot-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); padding: 0.75rem 1rem; }
.spot-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.spot-thumb { flex-shrink: 0; width: 72px; height: 72px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.spot-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: var(--text); }
.spot-name { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 800; font-size: 17px; line-height: 1.2; margin: 0; }
.spot-meta { font-size: 13px; color: var(--dim); margin: 2px 0 0; }
.spot-known { font-size: 13px; margin: 4px 0 0; }
.spot-seasonal { margin-top: 0.5rem; }
.spot-seasonal ul { margin: 4px 0 0; padding: 0; list-style: none; }
.spot-seasonal li { font-size: 13px; font-weight: 600; margin-top: 2px; }
.spot-tap { font-size: 12px; font-weight: 700; margin: 0.5rem 0 0; color: var(--go); }
.spot-actions { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.btn-order {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  padding: 0.5rem 1rem; font-size: 14px; font-weight: 700; min-height: 40px; white-space: nowrap;
  background: var(--accent); color: var(--bg); text-decoration: none; border: 0;
}
.btn-directions {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  padding: 0.625rem 1.25rem; font-size: 14px; font-weight: 700; min-height: 44px;
  background: var(--go); color: #fff; text-decoration: none;
}
.mobile-note { font-size: 11px; font-weight: 700; color: var(--dim); }
.empty-note { text-align: center; font-size: 14px; color: var(--dim); padding: 1.5rem 0; margin: 0; }

/* ---------- spot detail ---------- */
.detail-title { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 900; font-size: 26px; line-height: 1.15; margin: 1rem 0 0; }
.detail-walk { margin: 0.75rem 0 0; font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 800; font-size: 20px; }
.detail-walk span { font-size: 14px; font-weight: 600; opacity: 0.7; font-family: system-ui, sans-serif; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); width: 100%; height: 260px; background: var(--surface-alt); }
.map-box img { width: 100%; height: 100%; object-fit: cover; }
.map-fallback { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); padding: 1.25rem 1rem; text-align: center; }
.map-fallback p { margin: 0; }
.map-caption { font-size: 12px; color: var(--dim); margin: -0.75rem 0 0; }
.where-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); padding: 0.75rem 1rem; }
.where-card p { font-size: 15px; margin: 0 0 6px; }
.where-card p:last-child { margin-bottom: 0; }
.hl-title { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 900; font-size: 18px; letter-spacing: -0.01em; margin: 0; padding: 0 0.25rem; }
.hl-sub { font-size: 12px; color: var(--dim); padding: 0 0.25rem; margin: -0.5rem 0 0; }
.hl-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.hl-photo { width: 100%; height: 190px; object-fit: cover; }
.hl-body { padding: 0.75rem 1rem; }
.hl-name-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.hl-name { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 800; font-size: 16px; line-height: 1.2; margin: 0; }
.hl-detail { font-size: 13px; color: var(--dim); margin: 4px 0 0; }
.hl-credit { font-size: 11px; color: var(--dim); padding: 0 0.25rem; margin: 0; }
.detail-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.detail-note { font-size: 12px; color: var(--dim); line-height: 1.6; margin: 0; }
.booth-note { font-size: 13px; margin: 4px 0 0; font-weight: 600; }
