/* Peach Hour: dusk navy + peach, Bricolage Grotesque / Figtree */
:root {
  --dusk: #1b1f3b;
  --dusk-2: #2a2f55;
  --peach: #ff6a3d;
  --peach-2: #ffb347;
  --peach-ink: #c2410c;
  --bg: #f4f3f0;
  --card: #ffffff;
  --ink: #141414;
  --muted: #6b6862;
  --line: #e3e0da;
  --live: #16804f;
  --live-bg: #e3f4ea;
  --soon-bg: #fff1d6;
  --later-bg: #ffe6dc;
  --topbar-h: 60px;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag-food, :root[data-theme="dark"] .tag-food { background: #3d2017; color: #ffb59a; }
  :root:not([data-theme="light"]) .tag-vibe { background: #24274a; color: #c3c8ff; }
  :root:not([data-theme="light"]) .tag-out { background: #12301f; color: #8be3ad; }
  :root:not([data-theme="light"]) {
    --bg: #111216; --card: #1b1c22; --ink: #f2f0ec; --muted: #a3a09a; --line: #2e2f37;
    --live: #4ade80; --live-bg: #12301f; --soon-bg: #3a2c10; --later-bg: #3d2017; --peach-ink: #ff8a63;
  }
}
:root[data-theme="dark"] {
  --bg: #111216; --card: #1b1c22; --ink: #f2f0ec; --muted: #a3a09a; --line: #2e2f37;
  --live: #4ade80; --live-bg: #12301f; --soon-bg: #3a2c10; --later-bg: #3d2017; --peach-ink: #ff8a63;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--topbar-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Figtree, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--peach-ink); }
h1, h2, h4 { font-family: var(--display); letter-spacing: -.02em; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Top bar ─────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 1500; background: var(--dusk); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--topbar-h); flex-wrap: wrap; }
.topbar-brand, .foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: inherit; text-decoration: none; letter-spacing: -.02em; }
.mark { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(var(--peach-2), var(--peach)); position: relative; overflow: hidden; }
.mark::after { content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 3px; background: var(--dusk); box-shadow: 0 5px 0 var(--dusk); }
.topbar-links { display: flex; gap: 2px; flex-wrap: wrap; }
.toplink { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; opacity: .9; }
.toplink:hover, .toplink[aria-pressed="true"] { background: rgba(255, 255, 255, .1); opacity: 1; }
.toplink[aria-pressed="true"] .i { fill: var(--peach); stroke: var(--peach); }
.n { background: var(--peach); color: #fff; border-radius: 6px; padding: 0 6px; font-size: .78rem; font-weight: 700; }

/* ── Hero: full screen, centered ─────────── */
.hero {
  min-height: calc(100svh - var(--topbar-h)); display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 80% at 50% 100%, #3b2a4f 0%, var(--dusk) 60%); color: #fff; padding: 48px 16px;
}
.hero-inner { max-width: 760px; }
.sunset { width: min(260px, 60vw); aspect-ratio: 2 / 1; margin: 0 auto 28px; overflow: hidden; position: relative; }
.sun {
  position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: linear-gradient(var(--peach-2) 10%, var(--peach) 75%);
}
.sun::after { /* the retro stripes across the lower half */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 20px, #2f2648 20px 26px);
  -webkit-mask: linear-gradient(transparent 22%, #000 22%); mask: linear-gradient(transparent 22%, #000 22%);
}
.hero h1 { font-size: clamp(3.4rem, 12vw, 7.5rem); font-weight: 800; line-height: .9; margin: 0; letter-spacing: -.045em; }
.tagline { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: rgba(255, 255, 255, .78); margin: 20px auto 32px; max-width: 34ch; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; background: var(--peach); color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; padding: 16px 28px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(255, 106, 61, .35); transition: transform .15s ease, box-shadow .15s ease;
}
.cta::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid; border-bottom: 2.5px solid; transform: rotate(45deg) translateY(-3px); }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 106, 61, .45); }
.clock { margin: 22px 0 0; font-size: .92rem; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }

/* ── Finder ──────────────────────────────── */
.finder { padding-top: 56px; padding-bottom: 8px; scroll-margin-top: calc(var(--topbar-h) + 8px); }
.finder h2 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; margin: 0; line-height: 1; }
.finder-sub { color: var(--muted); margin: 8px 0 8px; }
.finder h3 { font-family: Figtree, sans-serif; font-size: .95rem; font-weight: 700; margin: 22px 0 10px; letter-spacing: 0; }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.finder-grid.more { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line); }
.finder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }

.chips, .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .seg button {
  border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px;
  padding: 7px 12px; font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; transition: border-color .12s, background .12s;
}
.chip:hover, .seg button:hover { border-color: var(--ink); }
.chip.on, .seg button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pick { display: flex; gap: 8px; margin-top: 12px; }
select, .search input {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit;
}
select:focus, .search input:focus, .chip:focus-visible, .seg button:focus-visible { outline: 2px solid var(--peach); outline-offset: 1px; }

.campus-range-wrap { margin-top: 14px; max-width: 380px; }
.campus-range { width: 100%; accent-color: var(--peach); }
.range-ticks { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.campus-label { margin: 6px 0 0; font-weight: 700; font-size: .92rem; }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.solid { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn.solid:hover { background: var(--peach); border-color: var(--peach); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.apply { font-size: 1rem; padding: 12px 22px; }
.more-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg) translateY(-2px); margin-left: 2px; transition: transform .15s; }
.more-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: .92rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }

/* ── Results ─────────────────────────────── */
.layout { padding-top: 32px; padding-bottom: 48px; }
.results { scroll-margin-top: calc(var(--topbar-h) + 8px); }
.search { display: block; margin-bottom: 10px; position: relative; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: 14px 14px 14px 42px; font-size: 1.02rem; }
.try-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.try { background: none; border: 1px dashed var(--line); border-radius: 8px; padding: 4px 10px; font: inherit; color: var(--ink); cursor: pointer; }
.try:hover { border-color: var(--peach); color: var(--peach-ink); }
.q-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 14px; font-size: .88rem; color: var(--muted); }
.q-chips b { background: var(--dusk); color: #fff; border-radius: 6px; padding: 3px 9px; font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toolbar-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .btn { padding: 8px 14px; }
.toolbar select { padding: 8px 10px; }
.count { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.filters-btn .n { margin-left: 2px; }

.viewbar { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; }
.viewbar button { border: 0; background: none; font: inherit; font-weight: 700; padding: 10px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.viewbar button.on { background: var(--dusk); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--muted); }

/* ── Card ────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; container-type: inline-size; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.kicker { margin: 0 0 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.kicker span { opacity: .5; margin: 0 2px; }
.price { color: var(--ink); letter-spacing: .02em; } .price span { color: var(--line); }
.card h4 { margin: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.card h4 a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--peach), var(--peach)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .2s; }
.card h4 a:hover { background-size: 100% 2px; }
.card h4 a::after { content: "↗"; font-size: .6em; margin-left: 4px; color: var(--muted); vertical-align: super; }
.heart { background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.heart:hover { border-color: var(--ink); }
.heart[aria-pressed="true"] { color: var(--peach); border-color: var(--peach); }
.heart[aria-pressed="true"] .i { fill: var(--peach); }

.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px; font-weight: 700; font-size: .9rem; }
.status.live { background: var(--live-bg); color: var(--live); }
.status.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.status.soon { background: var(--soon-bg); }
.status.later { background: var(--later-bg); }
.status.none { padding-left: 0; color: var(--muted); font-weight: 600; }
@keyframes pulse { 50% { opacity: .25; } }
.hours-block { display: grid; gap: 4px; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.hb-label { margin: 0; font-size: .75rem; font-weight: 700; color: var(--muted); }
.hb-label + * { margin-bottom: 6px; }
.sched div.today dt { color: var(--ink); font-weight: 700; }
.hours-today { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: .9rem; }
.open-pill { font-weight: 700; color: var(--muted); }
.open-pill.is-open { color: var(--live); }
.open-pill span { font-weight: 500; color: var(--ink); }
.today-range { color: var(--muted); font-variant-numeric: tabular-nums; }

.deal { margin: 0; font-size: 1.02rem; font-weight: 500; line-height: 1.45; }
.sched { margin: 0; display: grid; gap: 2px; font-size: .9rem; }
.sched div { display: flex; gap: 10px; }
.sched dt { color: var(--muted); min-width: 92px; }
.sched dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sched .note { font-weight: 400; color: var(--muted); }
.addr { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.dist { margin: 2px 0 0; font-size: .85rem; font-weight: 600; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 6px; padding: 4px 9px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: filter .12s; }
.tag .i { width: 13px; height: 13px; }
.tag:hover { filter: brightness(.95); }
.tag-food { background: #ffe9df; color: #9a3412; }
.tag-vibe { background: #e6e8f7; color: #2a2f6b; }
.tag-out { background: #e2f3e8; color: #1d6b42; }

/* All three actions stay on one row; spacing tightens as cards narrow. */
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font: inherit; font-size: .86rem; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer;
  white-space: nowrap; flex: 1 1 auto; min-width: 0; transition: border-color .12s, background .12s, color .12s;
}
.act span { overflow: hidden; text-overflow: ellipsis; }
.act:hover { border-color: var(--ink); }
.act .i { width: 16px; height: 16px; }
.act-party { background: #000; border-color: #000; color: #fff; padding-left: 8px; flex-grow: 1.4; }
.act-party:hover { background: #fff; border-color: #000; color: #000; }
.pf-logo { width: 20px; height: 20px; border-radius: 5px; display: block; }
.confirm { font-size: .78rem; font-weight: 700; color: #8a5a00; background: var(--soon-bg); padding: 3px 8px; border-radius: 6px; }

/* ── Map ─────────────────────────────────── */
.map { height: 70vh; min-height: 420px; border-radius: 12px; border: 1px solid var(--line); }
.leaflet-popup-content { font-family: Figtree, sans-serif; }
.leaflet-popup-content b { font-family: var(--display); font-size: 1.05rem; }

/* ── Contact ─────────────────────────────── */
.contact {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; margin: auto;
  padding: 28px 24px; border: 0; border-radius: 16px; background: var(--card); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); position: relative;
}
.contact::backdrop { background: rgba(27, 31, 59, .55); }
.contact-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.contact-close:hover { color: var(--ink); }
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin: 0; line-height: 1; }
.contact-sub { color: var(--muted); margin: 10px 0 22px; max-width: 52ch; }
.contact form { display: grid; gap: 14px; }
.contact label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.contact input, .contact textarea, .contact select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--peach); border-color: transparent; }
.contact .btn { justify-self: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { color: var(--muted); font-weight: 400; }
.form-status { margin: 0; font-weight: 700; }

/* ── Footer ──────────────────────────────── */
.foot { background: var(--dusk); color: rgba(255, 255, 255, .7); font-size: .88rem; }
.foot-inner { padding-top: 28px; padding-bottom: 32px; display: grid; gap: 8px; }
.foot-brand { color: #fff; margin: 0; }
.foot p { margin: 0; max-width: 70ch; }

@media (max-width: 860px) {
  .finder-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --topbar-h: 96px; }
  .topbar-inner { padding-top: 8px; padding-bottom: 6px; }
  .toplink { padding: 6px 8px; font-size: .88rem; }
  .form-row { grid-template-columns: 1fr; }
  .finder { padding-top: 40px; }
}

/* Card action buttons: tighten as the card narrows (kept last so these win). */
@container (max-width: 400px) {
  .act { padding: 8px 9px; font-size: .84rem; }
}
/* Phones (any phone width) and narrow cards: Share shows just its icon */
@media (max-width: 600px) {
  .share-lbl { display: none; }
  .act-share { flex: 0 0 auto; width: 40px; padding: 8px 0; }
}
@container (max-width: 320px) {
  .share-lbl { display: none; }
  .act-share { flex: 0 0 auto; width: 40px; padding: 8px 0; }
}
@container (max-width: 300px) { /* narrow phones (~360px screens) */
  .card-foot { gap: 5px; }
  .act { padding: 8px 7px; gap: 5px; font-size: .82rem; }
  .act .i { width: 15px; height: 15px; }
  .pf-logo { width: 18px; height: 18px; }
}
@container (max-width: 270px) { /* smallest phones (~320px screens): drop the Directions icon */
  .card-foot { gap: 4px; }
  .act:not(.act-party):not(.act-share) .i { display: none; }
  .act { padding: 8px 5px; font-size: .78rem; }
  .act-party { gap: 4px; }
  .pf-logo { width: 16px; height: 16px; }
}
