/* Hallmark · shape: sign over the lot (a maroon sign band over the trucks, a price board on each truck) · genre: editorial · theme: custom · job: buy · idea: "The website is the sign out front: the logo's maroon board, cream serif letters and fine gold edge, with the trucks lined up under it." · vibe: "small-town dealer sign, plain, solid, trustworthy"
 * paper: oklch(98.6% 0.004 27) · accent: oklch(43.6% 0.161 26.8) · display: Domine · body: Public Sans · hero: a slim maroon sign band, the page head in cream Domine between two gold inset rules, the search beside it · nav: masthead on paper, the logo, name and street address, two links, the phone number set large in maroon · footer: a tinted paper well with name, address, phone and links · imagery: the business's own photographs of each truck · signature: the maroon sign band with the gold inset rule taken from the logo's oval, repeated as the price board on each truck page
 * axes: light/roman-serif/chromatic-red · posture: committed (maroon field on the sign band, the price board and the phone call bar; gold only as 1px rules; ink and cream for text) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 · weakest: S, a maroon band could be any red-logo dealer; tied it to their own oval (the gold line inset from the edge) and made the call the only action on every page */
/* Hallmark · fast mode (prototype): Finish tier skipped */
/* Hallmark · waive 78 · truck and about pages are a listing and a contact sheet, their h2s label a details list and a few facts · a 40px "Details" head would shout over the truck's own title */
/* Hallmark · dismissed 58 · the not-found h1 is the spec's wording for that page, kept word for word */
/* Hallmark · dismissed F4 · one filled recipe per ground: maroon on paper, its cream inverse on the maroon sign, each page shows one at a time in view */
/* Hallmark · dismissed F15 · fast mode skips the Finish tier; the list, the truck grid and the truck page each keep one gap of their own */
/* Hallmark · dismissed 77 · truck, sold and not-found pages are one listing or one message, built to one call, not a landing page */
/* tokens.css and base.css are linked from each page ahead of this file, so the three load at once. */

/* ---------- fonts, self-hosted (latin) ---------- */
@font-face { font-family: "Domine"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/domine-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); }

/* ---------- page frame ---------- */
body { font-size: 1.0625rem; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
main { display: block; }
/* short pages (About, not found) still put the footer at the bottom of the screen */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ---------- masthead ---------- */
.masthead { background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.masthead__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--space-lg); padding-block: var(--space-sm); }
.masthead__logo { display: block; border-radius: var(--radius-card); }
.masthead__logo img { width: auto; height: 80px; }
.masthead__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.1; color: var(--color-ink); }
/* with no logo the name links home instead */
.masthead__row--nologo { grid-template-columns: minmax(0, 1fr) auto auto; }
.masthead__name a { color: inherit; text-decoration: none; }
.masthead__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.masthead__addr { font-size: var(--text-sm); color: var(--color-ink-2); margin-top: var(--space-2xs); }
.masthead__nav { display: flex; gap: var(--space-xs); }
.masthead__nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-sm); font-size: var(--text-md); color: var(--color-ink); text-decoration: none; border-radius: var(--radius-card); white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out); }
.masthead__nav a:hover { background: var(--color-paper-2); }
.masthead__nav a:active { background: var(--color-paper-3); }
.masthead__nav a[aria-current] { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.masthead__phone { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding-inline: var(--space-sm); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--color-accent); text-decoration: none; white-space: nowrap; border-radius: var(--radius-card); font-variant-numeric: lining-nums tabular-nums; transition: background-color var(--dur-short) var(--ease-out); }
.masthead__phone:hover { background: var(--color-paper-2); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.masthead__phone:active { background: var(--color-paper-3); }
.masthead__phone svg, .btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ---------- the sign band ---------- */
.sign { position: relative; background: var(--color-field); color: var(--color-field-ink); --color-focus: var(--color-field-focus); }
.sign::before, .sign::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--color-gold); }
.sign::before { top: 6px; }
.sign::after { bottom: 6px; }
.sign__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: center; gap: var(--space-xl); padding-block: var(--space-lg); }
.sign h1 { font-weight: 700; font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.01em; color: var(--color-field-ink); max-width: 24ch; }
.sign__row--search { grid-template-columns: minmax(0, 36rem); }
.sign a:not(.btn) { color: var(--color-field-ink); font-weight: 700; }
.sign a:not(.btn):hover { text-decoration-thickness: 2px; }

/* search */
.search label { display: block; font-size: var(--text-sm); color: var(--color-field-ink); margin-bottom: var(--space-2xs); }
.search__row { display: flex; gap: var(--space-xs); }
.search input { flex: 1; min-width: 0; }

/* ---------- controls ---------- */
.field { display: grid; gap: var(--space-2xs); }
.field > label, .field > legend, .fieldset legend { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink); }
.input, .select { min-height: 48px; width: 100%; padding: 0 var(--space-sm); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); transition: border-color var(--dur-short) var(--ease-out); }
.select { appearance: none; padding-right: var(--space-xl); background-image: var(--chevron); background-repeat: no-repeat; background-position: right var(--space-sm) center; background-size: 12px 8px; }
.input:hover, .select:hover { border-color: var(--color-ink-2); }
.input:focus-visible, .select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; }
.sign .input:focus-visible { outline-offset: 2px; }
.input:disabled, .select:disabled { opacity: 0.55; cursor: not-allowed; }
.input::placeholder { color: var(--color-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-input); background: var(--color-accent); color: var(--color-accent-ink); font: 700 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--quiet { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-rule-strong); }
.btn--quiet:hover { background: var(--color-paper-2); }
.btn--big { min-height: 52px; font-size: var(--text-lg); padding: 0 var(--space-xl); }
/* on the maroon field: cream fill, maroon letters, like the logo's lettering turned around */
.btn--sign { background: var(--color-field-ink); color: var(--color-accent); border-color: var(--color-field-ink); }
.btn--sign:hover { background: var(--color-paper); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } .btn:active { transform: none; } }

/* ---------- inventory ---------- */
.lot { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: var(--space-xl); padding-block: var(--space-lg) var(--space-3xl); align-items: start; }
/* nothing listed: no filters, just the message */
.lot--none { grid-template-columns: minmax(0, 1fr); }
.filters { display: grid; gap: var(--space-md); }
.filters__head { display: none; }
.filters h2 { font-size: var(--text-lg); line-height: 1.2; }
.filters__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xs); border: 0; margin: 0; padding: 0; min-width: 0; }
.filters__pair legend { grid-column: 1 / -1; padding: 0; margin-bottom: var(--space-2xs); font-size: var(--text-sm); font-weight: 700; }
.filters__pair label { font-size: var(--text-sm); color: var(--color-ink-2); }
.filters__pair .field { gap: var(--space-3xs); }
.filters__actions { display: grid; gap: var(--space-xs); padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
.filters__done { display: none; }
/* with scripting off the filters need a button to send them; with it on they apply as picked */
.js .filters__apply { display: none; }
.filter-toggle { display: none; }

.results__bar { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); min-height: 48px; padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); margin-bottom: var(--space-lg); }
.results__count { font-size: var(--text-md); color: var(--color-ink-2); }
.results__count strong { color: var(--color-ink); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; transition: border-color var(--dur-short) var(--ease-out); }
.card:hover, .card:has(a:focus-visible) { border-color: var(--color-accent); }
.card__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-paper-3); }
.card__body { display: grid; grid-template-rows: 1fr auto auto; gap: var(--space-xs); padding: var(--space-md); }
.card__title { font-size: var(--text-lg); font-weight: 700; line-height: 1.2; }
.card__title a { color: var(--color-ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.card__line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
.price { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.1; color: var(--color-accent); font-variant-numeric: lining-nums tabular-nums; }
.price--call { font-size: var(--text-lg); color: var(--color-ink); }
.miles { font-size: var(--text-md); color: var(--color-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stock { font-size: var(--text-sm); color: var(--color-ink-2); }

.empty { display: grid; gap: var(--space-md); justify-items: start; padding: var(--space-2xl) var(--space-xl); background: var(--color-paper-2); border-radius: var(--radius-card); }
.empty h2 { font-size: var(--text-2xl); line-height: 1.15; }
.empty p a { color: var(--color-accent); font-weight: 700; }

/* ---------- a truck ---------- */
.truck { padding-top: var(--space-xl); }
@media (max-width: 60rem) { .truck { padding-top: 0; } }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font-weight: 700; }
.crumb a:hover { color: var(--color-accent); }
.truck { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "gallery board" "gallery facts" "story facts"; gap: var(--space-xl) var(--space-2xl); padding-bottom: var(--space-3xl); align-items: start; }
.truck__gallery { grid-area: gallery; }
.truck__board { grid-area: board; }
.truck__facts { grid-area: facts; }
.truck__story { grid-area: story; }

.gallery { display: grid; gap: var(--space-sm); }
.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; border-radius: var(--radius-card); background: var(--color-paper-3); scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 3; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.gallery__thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-xs); }
.gallery__thumbs a { display: block; width: 96px; border: 2px solid transparent; border-radius: var(--radius-card); overflow: hidden; transition: border-color var(--dur-short) var(--ease-out); }
.gallery__thumbs a:hover { border-color: var(--color-rule-strong); }
.gallery__thumbs a[aria-current="true"] { border-color: var(--color-accent); }
.gallery__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__count { font-size: var(--text-sm); color: var(--color-ink-2); }

.board { position: relative; display: grid; gap: var(--space-md); padding: var(--space-xl) var(--space-xl) var(--space-lg); background: var(--color-field); color: var(--color-field-ink); border-radius: var(--radius-card); --color-focus: var(--color-field-focus); }
.board::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--color-gold); border-radius: 2px; pointer-events: none; }
.board h1 { font-weight: 700; font-size: var(--text-2xl); line-height: 1.12; letter-spacing: -0.01em; color: var(--color-field-ink); }
.board__price { font-family: var(--font-display); font-weight: 700; font-size: var(--text-3xl); line-height: 1; color: var(--color-field-ink); font-variant-numeric: lining-nums tabular-nums; }
.board__price--call { font-size: var(--text-2xl); }
.board__sold { font-family: var(--font-display); font-weight: 700; font-size: var(--text-3xl); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; color: var(--color-field-ink); }
.board__note { color: var(--color-field-ink); font-size: var(--text-md); }
.board__phone { font-size: var(--text-md); color: var(--color-field-ink-2); }
.board__phone a { color: var(--color-field-ink); font-weight: 700; }
.board .btn { width: 100%; }

.facts h2, .story h2 { font-size: var(--text-xl); line-height: 1.2; margin-bottom: var(--space-sm); }
.facts dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.facts dt, .facts dd { margin: 0; padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { padding-right: var(--space-lg); font-weight: 700; color: var(--color-ink); }
.facts dd { color: var(--color-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.story { display: grid; gap: var(--space-xl); }
.story p { max-width: 62ch; }
.where { padding: var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); display: grid; gap: var(--space-xs); }
.where h2 { margin-bottom: 0; }
.where a { color: var(--color-accent); font-weight: 700; }
.where .where__go { justify-self: start; margin-top: var(--space-xs); color: var(--color-ink); }

.callbar { display: none; }

/* full-screen photo viewer */
.viewer { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--color-scrim); color: var(--color-scrim-ink); --color-focus: var(--color-scrim-ink); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer::backdrop { background: var(--color-scrim); }
.viewer__top, .viewer__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--space-md); }
.viewer__frame { min-height: 0; }
.viewer__frame img { width: 100%; height: 100%; object-fit: contain; }
.viewer .btn--quiet { background: var(--color-scrim); color: var(--color-scrim-ink); border-color: var(--color-scrim-ink); }
.viewer .btn--quiet:hover { background: var(--color-ink); }

/* ---------- about ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); padding-block: var(--space-2xl) var(--space-3xl); align-items: start; }
.visit__map { display: grid; gap: var(--space-md); }
.map { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-3); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.visit__side { display: grid; gap: var(--space-xl); }
.visit__side h2 { font-size: var(--text-xl); line-height: 1.2; margin-bottom: var(--space-xs); }
.contact h2 { font-size: var(--text-xl); line-height: 1.2; margin-bottom: var(--space-xs); }
.contact p { font-size: var(--text-lg); }
.contact a { color: var(--color-accent); font-weight: 700; }
/* no map yet: the name, address and phone on their own */
.visit--plain { grid-template-columns: minmax(0, 1fr); }

/* ---------- not found ---------- */
.gone { padding-block: var(--space-2xl); display: grid; gap: var(--space-lg); justify-items: start; }
.gone h1 { font-size: var(--text-3xl); max-width: 20ch; }

/* ---------- footer ---------- */
.foot { background: var(--color-paper); border-top: 1px solid var(--color-gold); padding-block: var(--space-2xl) var(--space-xl); font-size: var(--text-sm); color: var(--color-ink); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 8fr); gap: var(--space-xl); }
.foot__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.foot__biz p { font-size: var(--text-md); }
.foot__biz a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-accent); font-weight: 700; font-size: var(--text-md); }
.foot nav { display: grid; align-content: start; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font-size: var(--text-md); }
.foot a:hover { color: var(--color-accent); text-decoration-thickness: 2px; }
.foot__biz a.addr, .contact a.addr { color: var(--color-ink); font-weight: 400; }
.contact a.addr:hover, .masthead__addr a:hover { color: var(--color-accent); text-decoration-thickness: 2px; }

/* ---------- phone and tablet ---------- */
@media (max-width: 60rem) {
  :root { --space-2xl: 48px; --space-3xl: 64px; }
  body { font-size: var(--text-md); }
  .masthead__row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo id" "logo phone" "nav nav"; row-gap: 0; column-gap: var(--space-sm); padding-block: var(--space-xs) 0; }
  .masthead__logo { grid-area: logo; align-self: center; }
  .masthead__logo img { height: 56px; }
  .masthead__id { grid-area: id; align-self: end; }
  .masthead__name { font-size: 1.125rem; }
  .masthead__addr { display: none; }
  .masthead__phone { grid-area: phone; justify-self: start; align-self: start; min-height: 36px; font-size: 1.125rem; padding-inline: 0; }
  .masthead__nav { grid-area: nav; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
  .masthead__nav a { justify-content: center; min-height: 48px; padding-inline: var(--space-xs); border-radius: 0; color: var(--color-ink-2); font-weight: 700; }
  .masthead__nav a[aria-current] { color: var(--color-accent); text-decoration: none; box-shadow: inset 0 -3px 0 var(--color-accent); }
  .masthead__row--nologo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "phone" "nav"; }
  .masthead__row--nologo:not(:has(.masthead__phone)) { grid-template-areas: "id" "nav"; }

  .sign__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-lg); }
  .sign h1 { font-size: var(--text-xl); }
  .search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  .lot { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding-top: var(--space-md); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); }

  /* the filter panel: only with scripting on; with it off the form sits above the trucks */
  .js .filter-toggle { display: inline-flex; width: 100%; }
  .js .filters { position: fixed; inset: 0; z-index: var(--z-modal); align-content: start; overflow-y: auto; padding: var(--space-md) var(--gutter) var(--space-xl); background: var(--color-paper); visibility: hidden; opacity: 0; transform: translateY(var(--space-md)); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short); }
  .js .filters.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s; }
  .js .filters__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .js .filters__done { display: inline-flex; }
  .js .filters > h2.filters__title { display: none; }
  .js body.has-panel { overflow: hidden; }
  .results__bar { margin-bottom: var(--space-md); }

  .truck { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "board" "facts" "story"; gap: var(--space-xl); }
  .board { padding: var(--space-lg); }
  .gallery__track { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .gallery__thumbs a { width: 72px; }

  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--gutter) calc(var(--space-sm) + env(safe-area-inset-bottom)); background: var(--color-field); color: var(--color-field-ink); border-top: 1px solid var(--color-gold); --color-focus: var(--color-field-focus); }
  .callbar__price { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
  .callbar .btn { flex: 1; max-width: 22rem; }
  /* room for the call bar, which is about 72px tall */
  .has-callbar .foot { padding-bottom: calc(var(--space-xs) + 72px + env(safe-area-inset-bottom)); }

  .visit { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-top: var(--space-lg); }
  .visit__side { order: -1; }
  .actions { display: grid; }
  .foot { padding-block: var(--space-md) var(--space-xs); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); }
}
@media (max-width: 40rem) {
  :root { --space-xl: 28px; --space-2xl: 36px; --space-3xl: 44px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .board h1 { font-size: var(--text-xl); }
  .board__price, .board__sold { font-size: var(--text-2xl); }
  .board__price--call { font-size: var(--text-xl); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot nav { display: flex; flex-wrap: wrap; column-gap: var(--space-lg); }
  .gone h1 { font-size: var(--text-2xl); }
}
@media (prefers-reduced-motion: reduce) {
  .js .filters, .js .filters.is-open { transform: none; transition: opacity var(--dur-micro) linear, visibility 0s; }
  .gallery__track { scroll-behavior: auto; }
}
