/* Vicina — brand kit v1.0 ("After Hours") tokens + type.
   Cream dominates browsing pages; oxblood is reserved for the hero
   and editorial features; lilac is the button / selected / feature
   fill; coral stays sparse. Status never relies on color alone —
   every badge carries explicit text. */
:root {
  --vicina-cream: #fff4df;
  --vicina-oxblood: #642b38;
  --vicina-lilac: #d5c5e8;
  --vicina-coral: #e7856f;
  --vicina-ink: #30272b;
  --vicina-rule: rgb(100 43 56 / 18%);
  --vicina-display: 'DM Serif Display', Georgia, serif;
  --vicina-body: 'DM Sans', system-ui, sans-serif;
  --surface: #fff9ec;
  --muted: #5d5257;
  --rule-strong: rgb(100 43 56 / 45%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--vicina-cream); color: var(--vicina-ink); font-family: var(--vicina-body); font-size: 16px; line-height: 1.6; }
::selection { background: var(--vicina-lilac); color: var(--vicina-oxblood); }
:focus-visible { outline: 2px solid var(--vicina-oxblood); outline-offset: 2px; }
main { max-width: 1200px; margin: 0 auto; padding: 16px 24px 64px; }
@media (min-width: 960px) { main { padding: 24px 40px 80px; } }
h1, h2, h3 { font-family: var(--vicina-display); font-weight: 400; color: var(--vicina-oxblood); }
h1 { font-size: clamp(32px, 4.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 18px 0 10px; }
h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.15; margin: 48px 0 14px; }
h3 { font-size: 24px; line-height: 1.2; margin: 0 0 6px; }
p { margin: 0 0 10px; }
a { color: var(--vicina-oxblood); text-underline-offset: 3px; }
.lede { font-size: 17px; line-height: 1.6; max-width: 65ch; }
.fine, .freshness { font-size: 13px; color: var(--muted); }
.check { width: 15px; height: 15px; flex: none; color: var(--vicina-oxblood); }

/* header: mobile = logo + hamburger only */
.site-header { display: flex; align-items: center; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 16px 24px; border-bottom: 1px solid var(--vicina-rule); }
@media (min-width: 960px) { .site-header { padding: 18px 40px; } }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { width: 168px; height: auto; display: block; }
@media (max-width: 480px) { .logo-img { width: 134px; } }
.site-nav { display: flex; gap: 20px; align-items: center; }
.site-nav a { color: var(--vicina-oxblood); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 2px; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.current-metro { font-size: 15px; font-weight: 500; color: var(--vicina-oxblood); border-left: 1px solid var(--rule-strong); padding-left: 20px; white-space: nowrap; }
.nav-details { display: none; margin-left: auto; }
.nav-details summary { list-style: none; cursor: pointer; font-size: 22px; line-height: 1; padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--surface); color: var(--vicina-oxblood); }
.nav-details summary::-webkit-details-marker { display: none; }
.nav-details .site-nav { flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 4px 4px; }
.nav-details .site-nav a { padding: 10px 4px; }
.desktop-nav { margin-left: auto; }
@media (max-width: 720px) {
  .desktop-nav { display: none; }
  .nav-details { display: block; }
  .site-header { flex-wrap: wrap; }
  .nav-details[open] { flex-basis: 100%; order: 3; }
}

/* hero (network home): oxblood panel, cream serif headline, lilac CTA.
   No photography — production pages never use fabricated venue photos. */
.hero { background: var(--vicina-oxblood); color: var(--vicina-cream); }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 52px; }
@media (min-width: 960px) { .hero-inner { padding: 80px 40px 72px; } }
.hero h1 { color: var(--vicina-cream); font-size: clamp(44px, 6.8vw, 76px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 20px; text-wrap: balance; }
.hero-sub { font-size: 18px; line-height: 1.6; max-width: 56ch; color: rgb(255 244 223 / 88%); margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 0; }
.btn-lilac, .btn-ghost, .btn-oxblood { display: inline-flex; align-items: center; min-height: 44px; border-radius: 999px; padding: 12px 24px; font-size: 16px; font-weight: 500; text-decoration: none; }
.btn-lilac { background: var(--vicina-lilac); color: var(--vicina-oxblood); }
.btn-lilac:hover { background: #c4aede; }
.btn-ghost { border: 1px solid rgb(255 244 223 / 55%); color: var(--vicina-cream); }
.btn-ghost:hover { border-color: var(--vicina-cream); }
.btn-oxblood { background: var(--vicina-oxblood); color: var(--vicina-cream); }
.btn-oxblood:hover { background: #74333f; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--vicina-cream); }

/* trust strip */
.trust-strip { border-bottom: 1px solid var(--vicina-rule); }
.trust-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; gap: 12px 36px; flex-wrap: wrap; align-items: center; }
@media (min-width: 960px) { .trust-inner { padding: 18px 40px; } }
.trust-item { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; color: var(--vicina-oxblood); }
.trust-note { margin-left: auto; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .trust-note { margin-left: 0; } }

/* lilac city-guide feature panel */
.feature-panel { background: var(--vicina-lilac); border-radius: 8px; padding: 32px 24px; margin: 48px 0 8px; }
@media (min-width: 960px) { .feature-panel { padding: 44px 40px; } }
.feature-label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vicina-oxblood); margin: 0 0 10px; }
.feature-panel h2 { margin: 0 0 12px; }
.feature-panel p { max-width: 62ch; color: var(--vicina-ink); }
.feature-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin: 20px 0 0; }
.feature-link { font-weight: 500; }

/* city switcher: lilac = selected (kit filter rule) */
.city-switcher { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.city-switcher a { border: 1px solid var(--rule-strong); background: transparent; color: var(--vicina-oxblood); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 500; text-decoration: none; }
.city-switcher a:hover { border-color: var(--vicina-oxblood); }
.city-switcher a[aria-current="page"] { background: var(--vicina-lilac); color: var(--vicina-oxblood); border-color: var(--vicina-oxblood); }

/* cards: open editorial boxes on a lighter cream tint, thin
   oxblood-tinted rule, 6px corners, no shadows. Sequence per kit:
   status label, serif title, editorial sentence, neighborhood ·
   cuisine, address, last-checked + source. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 14px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--surface); border: 1px solid var(--vicina-rule); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 7px; }
.card:hover { border-color: var(--rule-strong); }
.card-main { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 7px; }
.card-main::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.card-main:focus-visible::after { outline: 2px solid var(--vicina-oxblood); outline-offset: 2px; }
.card .addr { position: relative; z-index: 2; margin-top: auto; font-size: 14px; }
.card-foot { position: relative; z-index: 2; display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--vicina-rule); padding-top: 9px; margin: 2px 0 0; }
.card-foot .source-link { font-weight: 500; }
.card-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.desc { font-size: 16px; line-height: 1.6; max-width: 68ch; }
.meta { font-size: 13px; color: var(--muted); margin: 0; }
.rationale { font-size: 15px; color: var(--vicina-ink); }
.rank { font-family: var(--vicina-display); font-size: 20px; color: var(--vicina-oxblood); }

/* venue photography: sourced from the matched Places record only.
   The credit is part of the component, not an optional caption. */
.place-photo { margin: 0; }
.place-photo img { display: block; width: 100%; object-fit: cover; background: var(--vicina-cream); }
.photo-credit { position: relative; z-index: 2; font-size: 11px; line-height: 1.4; color: var(--muted); padding-top: 5px; }
.photo-credit a { color: var(--muted); font-weight: 500; }
.card-photo { margin: -20px -20px 8px; }
.card-photo img { aspect-ratio: 16 / 10; border-radius: 6px 6px 0 0; }
.card-photo .photo-credit { padding: 5px 10px 0; }
.place-hero { margin-bottom: 14px; }
.place-hero img { aspect-ratio: 16 / 9; border-radius: 6px; }
.photo-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.photo-gallery .place-photo img { aspect-ratio: 4 / 3; border-radius: 6px; }
@media (max-width: 640px) { .photo-gallery { grid-template-columns: 1fr 1fr; } }

/* badges: palette fills, explicit text always (never color alone) */
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; border-radius: 999px; padding: 4px 10px; border: 1px solid transparent; }
.badge-open { background: var(--vicina-oxblood); color: var(--vicina-cream); }
.badge-soft { background: var(--vicina-lilac); color: var(--vicina-oxblood); }
.badge-soon { background: transparent; color: var(--vicina-oxblood); border-color: var(--rule-strong); }
.badge-stale { background: var(--vicina-coral); color: var(--vicina-ink); }
.badge-closed { background: var(--vicina-ink); color: var(--vicina-cream); }
.rating { font-size: 13px; font-weight: 600; color: var(--vicina-ink); }

/* evidence line — the brand component */
.evidence { font-size: 13px; color: var(--muted); border-top: 1px solid var(--vicina-rule); padding-top: 9px; margin-top: 10px; }
.evidence-note { font-size: 13px; color: var(--muted); font-style: italic; }

/* rails + modules */
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 320px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.rail-track .card { scroll-snap-align: start; }
/* Desktop: fit exactly three cards across so the next card is fully
   off-canvas instead of being hard-clipped mid-word/mid-address at
   the container edge; the mobile peek (one card + a sliver of the
   next) stays below this breakpoint as the scroll cue. */
@media (min-width: 961px) { .rail-track { grid-auto-columns: calc((100% - 32px) / 3); } }
.module { background: var(--surface); border: 1px solid var(--vicina-rule); border-radius: 6px; padding: 8px 20px 16px; margin-top: 30px; }
.module h2 { font-size: 26px; margin-top: 22px; }
ul.plain { list-style: none; padding: 0; margin: 8px 0; }
ul.plain li { padding: 9px 0; border-top: 1px solid var(--vicina-rule); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
ul.plain li:first-child { border-top: none; }

/* two-column place layout: rail top-aligns with the map's top edge */
.place-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; margin-top: 16px; }
@media (max-width: 960px) { .place-layout { grid-template-columns: 1fr; } }
.details-rail { border: 1px solid var(--vicina-rule); border-radius: 6px; background: var(--surface); padding: 20px; }
.details-rail h2 { margin: 22px 0 8px; font-size: 21px; }
.details-rail h2:first-child { margin-top: 0; }
/* map block: the "Map loading…" placeholder sits behind the iframe so
   the lazy-loaded embed never reads as a blank/broken card; once the
   iframe paints it covers the placeholder. The placeholder is a faint
   street-grid skeleton with a pill label, so the seconds before the
   OSM tiles arrive read as a map loading, not an empty white box. */
.map-block { position: relative; height: 320px; border: 1px solid var(--vicina-rule); border-radius: 6px; background: var(--vicina-cream); overflow: hidden; }
.map-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background-image: linear-gradient(var(--vicina-rule) 1px, transparent 1px), linear-gradient(90deg, var(--vicina-rule) 1px, transparent 1px); background-size: 56px 56px; background-position: center; }
.map-loading-label { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 6px 14px; color: var(--vicina-oxblood); font-size: 14px; font-weight: 500; animation: map-pulse 1.8s ease-in-out infinite; }
@keyframes map-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .map-loading-label { animation: none; }
  html { scroll-behavior: auto; }
}
.map-block iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }

/* slots — ad containers render only when site.adsEnabled is on (the
   generator emits a comment placeholder while ads are off, so nothing
   visible ships). No border/outline: an unfilled slot must never read
   as a broken empty box. In-grid slots span a full row. */
.ad-slot { height: 90px; margin: 26px 0; }
.ad-slot-in-grid { grid-column: 1 / -1; margin: 0; }
.alert-slot { background: var(--vicina-lilac); border-radius: 8px; padding: 24px; margin-top: 34px; }
.alert-slot h2 { margin-top: 0; font-size: 28px; }
.alert-slot .fine { color: var(--vicina-ink); }
.alert-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.alert-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--vicina-oxblood); }
.alert-form input { padding: 11px 12px; border: 1px solid var(--rule-strong); border-radius: 6px; font-size: 15px; min-width: 240px; background: var(--vicina-cream); color: var(--vicina-ink); font-family: inherit; }
.alert-form button { background: var(--vicina-oxblood); color: var(--vicina-cream); border: none; border-radius: 999px; padding: 12px 22px; min-height: 44px; font-size: 15px; font-weight: 500; cursor: pointer; }
.alert-form button:hover { background: #74333f; }

/* buttons + CTA rows */
.cta { background: var(--vicina-lilac); color: var(--vicina-oxblood); border: 1px solid var(--vicina-lilac); border-radius: 999px; padding: 11px 22px; min-height: 44px; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.cta:hover { background: #c4aede; border-color: #c4aede; }
.cta-outline { background: transparent; border-color: var(--rule-strong); }
.cta-outline:hover { background: transparent; border-color: var(--vicina-oxblood); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }

/* footer: oxblood with the reversed logo */
.site-footer { background: var(--vicina-oxblood); color: var(--vicina-cream); margin-top: 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 36px 24px 44px; font-size: 14px; }
@media (min-width: 960px) { .footer-inner { padding: 40px 40px 48px; } }
.footer-logo { width: 150px; height: auto; display: block; margin-bottom: 18px; }
.site-footer p { color: rgb(255 244 223 / 88%); max-width: 68ch; }
.site-footer strong { color: var(--vicina-cream); }
.site-footer a { color: var(--vicina-cream); }
