/* ==========================================================================
   Wineries in Temecula. One stylesheet, no build step.

   Design read: a travel guide that behaves like a data tool. Forest palette (vine green on a cool
   off-white), sans display type, quiet motion. Rules that hold it together:
     - One accent (--accent). Paid placement is shown by fill weight and a "Featured" label, never a
       second hue.
     - Radius scale: shells 24px, cards/inner 18px, inputs 12px, every button and chip is a pill.
     - Unknown is not No. "Not listed" facts are set in --ink-3 italic, never red, never crossed out.
     - Motion is hover, focus and a single reveal on scroll, all transform/opacity, all switched off
       under prefers-reduced-motion. Core Web Vitals matter more than flourish here.
   ========================================================================== */

@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/assets/fonts/instrument-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F2F5F0;
  --surface: #FBFCFA;
  --surface-2: #E8EEE6;
  --shell: rgba(20, 38, 27, 0.045);
  --ink: #13211A;
  --ink-2: #405046;
  --ink-3: #5B6A61;
  --line: rgba(19, 33, 26, 0.11);
  --line-strong: rgba(19, 33, 26, 0.2);
  --accent: #2B5A3C;
  --accent-hover: #234B32;
  --accent-ink: #FFFFFF;
  --accent-soft: #DBE8DE;
  --accent-text: #24502F;
  --focus: #2B5A3C;
  --shadow: 0 1px 2px rgba(25, 52, 35, 0.06), 0 12px 32px -12px rgba(25, 52, 35, 0.18);
  --shadow-lift: 0 2px 4px rgba(25, 52, 35, 0.07), 0 24px 48px -18px rgba(25, 52, 35, 0.28);
  --inner-hi: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --r-shell: 24px;
  --r-card: 18px;
  --r-input: 12px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1410;
    --surface: #131C16;
    --surface-2: #1A251E;
    --shell: rgba(214, 235, 220, 0.04);
    --ink: #E6EDE8;
    --ink-2: #AEBBB2;
    --ink-3: #8F9D94;
    --line: rgba(214, 235, 220, 0.1);
    --line-strong: rgba(214, 235, 220, 0.2);
    --accent: #86C09A;
    --accent-hover: #9BCDAB;
    --accent-ink: #0D1410;
    --accent-soft: rgba(134, 192, 154, 0.14);
    --accent-text: #9BCDAB;
    --focus: #9BCDAB;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px -18px rgba(0, 0, 0, 0.7);
    --inner-hi: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1410; --surface: #131C16; --surface-2: #1A251E; --shell: rgba(214, 235, 220, 0.04);
  --ink: #E6EDE8; --ink-2: #AEBBB2; --ink-3: #8F9D94; --line: rgba(214, 235, 220, 0.1); --line-strong: rgba(214, 235, 220, 0.2);
  --accent: #86C09A; --accent-hover: #9BCDAB; --accent-ink: #0D1410; --accent-soft: rgba(134, 192, 154, 0.14); --accent-text: #9BCDAB;
  --focus: #9BCDAB; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6); --shadow-lift: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px -18px rgba(0,0,0,.7);
  --inner-hi: inset 0 1px 0 rgba(255, 255, 255, 0.05); color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; 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: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--ink-3); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose h2 { margin: 2em 0 0.5em; font-size: 1.6rem; }
.prose h3 { margin: 1.6em 0 0.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- header: floating island */
.site-header { position: sticky; top: 0; z-index: 40; padding: 14px var(--gutter) 0; pointer-events: none; }
.island {
  pointer-events: auto; max-width: var(--wrap); margin: 0 auto; height: 60px;
  display: flex; align-items: center; gap: 20px; padding: 0 10px 0 20px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow), var(--inner-hi);
}
@supports not (backdrop-filter: blur(1px)) { .island { background: var(--surface); } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand__mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.brand__mark .ico { width: 18px; height: 18px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 14px; border-radius: 999px; transition: background 0.3s var(--ease), color 0.3s var(--ease); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.menu summary::-webkit-details-marker { display: none; }
.burger { position: relative; width: 18px; height: 12px; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.burger::before { top: 1px; }
.burger::after { top: 9px; }
.menu[open] .burger::before { top: 5px; transform: rotate(45deg); }
.menu[open] .burger::after { top: 5px; transform: rotate(-45deg); }
.menu__panel { position: absolute; right: 0; top: 56px; width: min(320px, calc(100vw - 32px)); padding: 10px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lift); display: grid; }
.menu__panel a { padding: 12px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu__panel a:hover { background: var(--surface-2); }
@media (max-width: 900px) { .nav { display: none; } .menu { display: block; } }

/* ---------------------------------------------------------------- buttons and chips */
.btn {
  --b-bg: var(--accent); --b-ink: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 6px 6px 22px;
  border-radius: 999px; border: 0; background: var(--b-bg); color: var(--b-ink);
  font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.btn:hover { background: var(--accent-hover); color: var(--b-ink); box-shadow: var(--shadow); }
.btn:active { transform: scale(0.98); }
.btn__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); transition: transform 0.45s var(--ease); }
.btn:hover .btn__icon { transform: translate(2px, -1px) scale(1.05); }
.btn--plain { padding: 6px 22px; }
.btn--ghost { --b-bg: transparent; --b-ink: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost .btn__icon { background: var(--surface-2); }
.btn--sm { min-height: 40px; font-size: 0.92rem; padding: 4px 4px 4px 16px; }
.btn--sm .btn__icon { width: 32px; height: 32px; }
.btn--sm.btn--plain { padding: 4px 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 500 0.94rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip:active { transform: scale(0.98); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip .ico { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
.tag .ico { width: 14px; height: 14px; }
.tag--featured { background: var(--accent-soft); color: var(--accent-text); }

/* ---------------------------------------------------------------- double-bezel shell */
.shell { padding: 6px; border-radius: var(--r-shell); background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); }
.core { border-radius: calc(var(--r-shell) - 6px); background: var(--surface); box-shadow: var(--inner-hi), 0 1px 2px rgba(0, 0, 0, 0.03); }

/* ---------------------------------------------------------------- hero (editorial split) */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 20px; max-width: 40ch; }
.hero__chips { margin-top: 28px; }
.hero__cta { margin-top: 26px; }
.hero__media { position: relative; }
.hero__media .core { overflow: hidden; aspect-ratio: 4 / 4.4; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 60%; }
.hero__stat { position: absolute; left: -22px; bottom: 28px; padding: 16px 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-lift); border: 1px solid var(--line); max-width: 250px; }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1; }
.hero__stat span { color: var(--ink-2); font-size: 0.92rem; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media .core { aspect-ratio: 16 / 11; }
  .hero__stat { left: 12px; bottom: 12px; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section__head { margin-bottom: clamp(24px, 3vw, 40px); max-width: 64ch; }
.section__head p { color: var(--ink-2); margin-top: 12px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* Bento of filter pages: varied tile sizes, exact cell count from data. */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 168px; padding: 22px; border-radius: var(--r-card); text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s; }
.tile--lead { grid-column: span 3; grid-row: span 2; }
.tile--s2 { grid-column: span 2; }
.tile--s3 { grid-column: span 3; }
.tile--s6 { grid-column: span 6; min-height: 120px; }
.tile__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.tile__icon .ico { width: 22px; height: 22px; }
.tile h3 { font-size: 1.2rem; }
.tile p { margin: 6px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.tile--hero { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.tile--hero h3, .tile--hero p { color: var(--accent-ink); }
.tile--hero p { opacity: 0.85; }
.tile--hero h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.tile--hero .tile__icon { background: rgba(255, 255, 255, 0.16); color: var(--accent-ink); }
.tile--hero:hover { color: var(--accent-ink); }
.tile--tint { background: var(--surface-2); }
.tile__count { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile--s2, .tile--s3, .tile--s6 { grid-column: span 1; } .tile--lead, .tile--odd-last { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile--lead, .tile--odd-last, .tile--s2, .tile--s3, .tile--s6 { grid-column: span 1; } }

/* Fee strip: three big figures, no cards. */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); }
.figure strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; }
.figure span { display: block; margin-top: 10px; color: var(--ink-2); max-width: 26ch; }
@media (max-width: 700px) { .figures { grid-template-columns: 1fr; } }

/* Split callout (tours) */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .ico { color: var(--accent-text); margin-top: 3px; }

/* ---------------------------------------------------------------- finder */
.page-head { padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-top: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: 0.6; }

.filters { position: sticky; top: 84px; z-index: 20; margin-bottom: 24px; }
.filters .core { padding: 14px; display: grid; gap: 12px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters__row--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.filters__row--scroll::-webkit-scrollbar { display: none; }
.search { flex: 1 1 260px; position: relative; }
.search input { width: 100%; height: 44px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 0.98rem; }
.search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.select { height: 44px; padding: 0 38px 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%235B6A61' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; color: var(--ink); font: inherit; font-size: 0.95rem; -webkit-appearance: none; appearance: none; }
.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--ink-2); }
.result-bar strong { color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.filters-note { font-size: 0.9rem; color: var(--ink-3); margin: 0; }
@media (max-width: 700px) { .filters { position: static; } }

/* ---------------------------------------------------------------- winery cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card--featured { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.card__media { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card h3 { font-size: 1.22rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--accent-text); }
.card__area { font-size: 0.88rem; color: var(--ink-3); margin-top: 4px; }
.card__fee { text-align: right; flex: none; }
.card__fee strong { display: block; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.1; }
.card__fee span { font-size: 0.8rem; color: var(--ink-3); }
.card__fee--unknown strong { font-family: var(--font-body); font-size: 0.92rem; font-weight: 400; font-style: italic; color: var(--ink-3); }
.card__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.card__today { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-2); }
.card__today .ico { width: 16px; height: 16px; color: var(--ink-3); }
.card__today--open .ico { color: var(--accent-text); }
.card__offer { font-size: 0.92rem; font-weight: 500; color: var(--accent-text); }
.card[hidden] { display: none; }
.empty { padding: 48px 24px; text-align: center; border-radius: var(--r-card); border: 1px dashed var(--line-strong); color: var(--ink-2); }
.empty h3 { margin-bottom: 8px; }

/* ---------------------------------------------------------------- winery page */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.detail__head h1 { max-width: 18ch; }
.detail__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--ink-2); }
.detail__meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail__summary { font-size: 1.15rem; color: var(--ink-2); margin-top: 22px; max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr; } }
.fact { padding: 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.fact__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.fact__icon .ico { width: 20px; height: 20px; }
.fact--yes .fact__icon { background: var(--accent-soft); color: var(--accent-text); }
.fact__label { font-size: 0.85rem; color: var(--ink-3); font-weight: 500; }
.fact__value { font-weight: 600; margin-top: 2px; }
.fact--unknown .fact__value { font-weight: 400; font-style: italic; color: var(--ink-3); }
.fact__note { font-size: 0.9rem; color: var(--ink-2); margin-top: 6px; }
.fact--wide { grid-column: 1 / -1; }
.side { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 960px) { .side { position: static; } }
.side .core { padding: 22px; }
.side h2 { font-size: 1.15rem; margin-bottom: 14px; letter-spacing: -0.01em; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours td { padding: 7px 0; }
.hours td:last-child { text-align: right; color: var(--ink-2); }
.hours tr.is-today td { font-weight: 600; color: var(--ink); }
.hours tr + tr td { border-top: 1px solid var(--line); }
.side__actions { display: grid; gap: 10px; margin-top: 18px; }
.side__actions .btn { justify-content: space-between; }
.address { color: var(--ink-2); font-style: normal; }
.provenance { font-size: 0.9rem; color: var(--ink-3); }
.provenance a { color: var(--ink-3); }
.owner-box { padding: 22px; border-radius: var(--r-card); background: var(--accent-soft); }
.owner-box h2 { color: var(--accent-text); }
.owner-box p { color: var(--ink-2); font-size: 0.95rem; }
.meter { display: flex; gap: 4px; margin: 10px 0 14px; }
.meter i { flex: 1; height: 6px; border-radius: 6px; background: var(--line-strong); }
.meter i.on { background: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.gallery img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.nearby { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.nearby a { display: block; padding: 16px 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color 0.3s, transform 0.4s var(--ease); }
.nearby a:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.nearby strong { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; }
.nearby span { font-size: 0.88rem; color: var(--ink-3); }

/* ---------------------------------------------------------------- tables (fees, operators) */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 640px; }
.table th { text-align: left; font-weight: 600; font-size: 0.85rem; color: var(--ink-3); padding: 14px 18px; background: var(--surface-2); }
.table td { padding: 14px 18px; vertical-align: top; }
.table tbody tr + tr td { border-top: 1px solid var(--line); }
.table td a { font-weight: 600; text-decoration: none; color: var(--ink); }
.table td a:hover { color: var(--accent-text); text-decoration: underline; }
.table .fee { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.table small { display: block; color: var(--ink-3); font-size: 0.85rem; margin-top: 2px; }
.ops { display: grid; gap: 14px; }
.op { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; padding: 22px 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); align-items: center; }
.op--featured { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.op h3 a { color: var(--ink); text-decoration: none; }
.op h3 a:hover { color: var(--accent-text); }
.op__price { text-align: right; }
.op__price strong { display: block; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.03em; }
.op__price span { font-size: 0.85rem; color: var(--ink-3); }
.op__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 640px) { .op { grid-template-columns: 1fr; } .op__price { text-align: left; } }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.form--wide { max-width: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.field .hint { font-size: 0.88rem; color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"],
.field input[type="password"], .field input[type="search"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-input); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.field .error, .form-error { color: #A12A1E; font-size: 0.9rem; font-weight: 500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .error, :root:not([data-theme="light"]) .form-error { color: #F19A8E; } }
.form-error { padding: 12px 16px; border-radius: var(--r-input); background: color-mix(in srgb, #A12A1E 10%, transparent); }
.notice { padding: 14px 18px; border-radius: var(--r-input); background: var(--accent-soft); color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }
.panel { padding: clamp(20px, 3vw, 32px); }

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan { padding: 26px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.plan--lead { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.plan--lead h3, .plan--lead .plan__price, .plan--lead li { color: var(--accent-ink); }
.plan--lead .checklist .ico { color: var(--accent-ink); }
.plan--lead .btn { --b-bg: var(--accent-ink); --b-ink: var(--accent); }
.plan--lead .btn:hover { background: var(--surface); }
.plan--lead .btn__icon { background: var(--accent-soft); }
.plan__price { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1; }
.plan__price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; letter-spacing: 0; opacity: 0.8; }
.plan .checklist { font-size: 0.97rem; }
.plan .btn { margin-top: auto; justify-content: space-between; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: clamp(56px, 8vw, 112px); padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid p { color: var(--ink-2); font-size: 0.95rem; max-width: 36ch; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; color: var(--ink-3); }
.footer-legal a { color: var(--ink-3); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- portal / admin */
.app { padding: 32px 0 64px; }
.app__nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.app__nav a, .app__nav button { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font: 500 0.95rem var(--font-body); background: none; border: 0; cursor: pointer; }
.app__nav a[aria-current="page"], .app__nav a:hover, .app__nav button:hover { background: var(--surface-2); color: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { padding: 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -0.03em; }
.stat span { color: var(--ink-3); font-size: 0.9rem; }
.diff { width: 100%; border-collapse: collapse; }
.diff th, .diff td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------------------------------------------------------------- reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- admin and portal compatibility
   The admin and owner portal templates came from the Temecula Medical Center engine. These map its
   class names onto this design system so the internal screens match without a rewrite. */
.small { font-size: 0.9rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88rem; }
.card.panel, .panel.card, section.card { padding: clamp(20px, 3vw, 28px); margin-bottom: 16px; }
.card h2, .panel h2 { font-size: 1.2rem; margin-bottom: 14px; }
.shell__inner { border-radius: calc(var(--r-shell) - 6px); background: var(--surface); padding: 24px; box-shadow: var(--inner-hi); }
.hub-head { padding: 28px 0 20px; }
.hub-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hub-head__meta, .hub-head__intro { color: var(--ink-2); margin-top: 8px; }
.field__help { font-size: 0.88rem; color: var(--ink-3); margin: 0; }
.field__error { color: #A12A1E; font-size: 0.9rem; font-weight: 500; margin: 0; }
.btn--primary { --b-bg: var(--accent); --b-ink: var(--accent-ink); padding: 6px 22px; }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { min-height: 52px; }
.notice--ok { background: var(--accent-soft); }
.notice--error { background: color-mix(in srgb, #A12A1E 12%, transparent); }
.notice p { margin: 0; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.badge--preferred, .badge--premium { background: var(--accent-soft); color: var(--accent-text); }
.badge--warn { background: color-mix(in srgb, #A12A1E 12%, transparent); color: #A12A1E; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.aside { display: grid; gap: 16px; position: sticky; top: 96px; }
.stack { display: grid; gap: var(--gap, 1rem); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.results { display: grid; gap: 12px; }
.entry { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.entry__body { display: flex; gap: 14px; min-width: 0; }
.entry__side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.entry__tags, .entry__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; color: var(--ink-3); font-size: 0.9rem; }
.breadcrumb { display: flex; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; font-size: 0.9rem; color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.stat__value { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; }
.stat__label { color: var(--ink-3); font-size: 0.9rem; }
.admin-auth { max-width: 440px; margin: 48px auto; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.admin-bar__tag { font-weight: 700; font-family: var(--font-display); }
.admin-bar__who { color: var(--ink-3); font-size: 0.9rem; }
.admin-table__sub { display: block; color: var(--ink-3); font-size: 0.85rem; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-text); text-decoration: underline; cursor: pointer; font: inherit; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.filter { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.filter--on { background: var(--accent); color: var(--accent-ink); }
.panel--locked { opacity: 0.6; }
.photo-current img { border-radius: 12px; max-width: 220px; }
.claim-strip, .billing-section { margin: 16px 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
table.admin, .admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Finder selects share each row evenly instead of stacking at their natural widths. */
.filters__row > label:not(.search) { flex: 1 1 150px; }
.filters__row .select { width: 100%; }
