/* D&D Auto Sales & RV — category-standard dealer layout, colors from the logo.
   Extends the approved preview (site/styles.css) with the live inventory pieces:
   price sticker, unit cards with links, inventory controls, the unit page and its gallery. */
/* One glyph: the classic "&" from Roboto Flex (public/fonts/README.txt). Archivo's "&" makes "D&D" read "DƐD". */
@font-face {
  font-family: "D&D Amp";
  src: url("/fonts/dnd-amp.woff2") format("woff2");
  font-weight: 400 1000; font-stretch: 100% 151%; font-display: swap;
  unicode-range: U+0026;
}
:root {
  --bg: #f3f4f6;
  --bg-2: #e8eaee;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #474c53;
  --line: #dcdfe4;
  --line-strong: #c3c8cf;
  --black: #111214;
  --black-2: #1d1f23;
  --on-black: #f2f2f0;
  --on-black-2: #b9bcc2;
  --red: #d4141c;
  --red-dark: #ad0f15;
  --sun: #f47a20;
  --fb: #1877f2;
  --fb-dark: #0f63d6;

  --font: "D&D Amp", "Archivo", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 8px 22px rgba(20, 20, 20, .08);
  --shadow-lift: 0 2px 4px rgba(20, 20, 20, .08), 0 14px 32px rgba(20, 20, 20, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; margin: 0; }
p { margin: 0; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--black); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 8px; border: 2px solid transparent;
  font: 700 16px/1 var(--font); font-stretch: 105%; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ececec; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-fb { background: var(--fb); color: #fff; }
.btn-fb:hover { background: var(--fb-dark); }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn-lg { min-height: 54px; font-size: 17px; padding: 0 18px; }
.btn-icon { width: 44px; padding: 0; flex: none !important; }

/* Preview strip + utility bar */
.preview-strip { background: var(--sun); color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; padding: 6px var(--gutter); }
.utility { background: var(--black); color: var(--on-black-2); font-size: 14px; }
.utility-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; min-height: 40px; }
.utility-row span, .utility-row a { display: inline-flex; align-items: center; gap: 7px; }
.utility-row a { color: var(--on-black); text-decoration: none; font-weight: 600; }
.utility-row a:hover { color: #fff; text-decoration: underline; }
.utility-end { margin-left: auto; gap: 22px !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(20, 20, 20, .05); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 56px; height: 56px; }
.brand-name { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 21px; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.brand-name span { display: block; font-size: 12.5px; letter-spacing: .1em; margin-top: 4px; color: var(--ink-2); }
.brand-name em { font-style: normal; color: var(--red); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; font-size: 16px; padding: 10px 14px; border-radius: 8px; }
.nav a:hover { background: var(--bg); color: var(--red); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ink); border-radius: 8px 8px 0 0; }
.show-sm { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--black); min-height: clamp(440px, 60vh, 600px); display: flex; align-items: center; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17, 18, 20, .88) 0%, rgba(17, 18, 20, .72) 40%, rgba(17, 18, 20, .1) 74%), linear-gradient(0deg, rgba(17, 18, 20, .35), transparent 40%); }
/* impeccable-disable-next-line side-tab -- the approved full-width red/sunset band under the banner (DESIGN.md Sunset Sliver Rule), not a card accent */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 55%, var(--sun) 55%); }
.hero-inner { width: 100%; padding-block: 56px 64px; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 900; font-stretch: 112%; letter-spacing: -.01em; max-width: 12ch; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; letter-spacing: .005em; max-width: 34ch; margin-top: 16px; color: var(--on-black); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Promises strip */
.promises { background: var(--surface); border-bottom: 1px solid var(--line); }
.promise-row { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; padding-block: 22px; }
.promise-row li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.promise-row .ic { width: 30px; height: 30px; color: var(--red); stroke-width: 1.8; }
.promise-row strong { color: var(--ink); display: block; font-size: 17px; }

/* Inventory */
.inventory { padding-block: clamp(48px, 7vw, 84px); }
.inventory-page { padding-block: clamp(24px, 4vw, 44px) clamp(48px, 7vw, 84px); }
.section-head { display: grid; gap: 10px; max-width: 60ch; }
.section-head h2, .about h2, .visit h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 900; font-stretch: 112%; }
.inventory-page h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 900; font-stretch: 112%; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.section-head p strong { color: var(--ink); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 700 15px var(--font); text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { font-weight: 600; opacity: .72; font-variant-numeric: tabular-nums; }

.sort { display: flex; align-items: center; gap: 10px; }
.sort label { font-weight: 800; font-size: 15px; }
.sort select {
  min-height: 46px; min-width: 210px; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 0 40px 0 14px;
  font: 600 16px var(--font); color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; appearance: none; cursor: pointer;
}
.sort select:hover { border-color: var(--ink); }

.unit-grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.unit-card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.unit-photo { position: relative; display: block; aspect-ratio: 3 / 2; background: #d9dde2; }
.unit-photo img { width: 100%; height: 100%; object-fit: cover; }
.unit-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.unit-card .unit-title { font-size: 19px; font-weight: 800; }
.unit-card .unit-title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.unit-card .unit-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.unit-meta { color: var(--ink-2); font-size: 15px; }
.unit-meta span { white-space: nowrap; }
.unit-actions { position: relative; z-index: 2; display: flex; gap: 10px; margin-top: auto; padding-top: 4px; }
.unit-actions .btn-red { flex: 1; }
/* Cards in a row share row lines, so a title that wraps to two lines moves the whole row's price
   tags down together instead of knocking one tag out of line. Photo, title, price, details,
   buttons: five tracks. Actions sit on their own line even when a card has no details. */
@supports (grid-template-rows: subgrid) {
  .unit-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .unit-body { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; align-items: start; }
  .unit-actions { grid-row: 4; margin-top: 0; }
}
@media (hover: hover) {
  .unit-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
  .unit-card:hover .unit-title a { text-decoration: underline; text-decoration-thickness: 2px; }
}
.unit-card:focus-within { box-shadow: var(--shadow-lift); }

/* The price sticker: a lot hang-tag with a punched hole. */
.sticker {
  --notch: 12px; --hole: 7px;
  position: relative; align-self: flex-start; justify-self: start; display: inline-flex; align-items: center;
  min-height: 38px; padding: 0 14px 0 calc(var(--notch) + var(--hole) + 9px); margin: 0;
  border-radius: 0 8px 8px 0; clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, var(--notch) 100%, 0 50%);
  font-weight: 900; font-stretch: 112%; font-size: 22px; line-height: 1; letter-spacing: 0;
}
.sticker::before {
  content: ""; position: absolute; left: calc(var(--notch) - 2px); top: 50%; width: var(--hole); height: var(--hole); margin-top: calc(var(--hole) / -2);
  border-radius: 50%; background: var(--surface); box-shadow: inset 0 1px 1.5px rgba(20, 20, 20, .35);
}
.sticker.is-priced { background: var(--red); color: #fff; }
.sticker.is-call { background: var(--bg-2); color: var(--ink); font-size: 16px; font-weight: 800; font-stretch: 105%; }
.sticker.is-sold { background: var(--ink); color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 18px; }
.sticker-page { --notch: 20px; --hole: 11px; min-height: 64px; padding-right: 24px; font-size: clamp(34px, 3.6vw, 44px); border-radius: 0 10px 10px 0; }
.sticker-page.is-call { font-size: 24px; }
.sticker-page.is-sold { font-size: 26px; }

.badge-pending {
  position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
  background: var(--black); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .03em; padding: 6px 11px; border-radius: 999px;
}
.badge-pending::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }

.see-all { margin-top: 28px; display: flex; justify-content: center; }

.empty { margin-top: 22px; background: var(--surface); border: 1.5px dashed #b9bec6; border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; max-width: 720px; }
.empty p { font-size: 17px; color: var(--ink-2); }
.empty strong { color: var(--ink); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.lot-note, .fb-band { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.lot-note p, .fb-band p { color: var(--ink-2); max-width: 60ch; }
.lot-note strong, .fb-band strong { color: var(--ink); }

/* Unit page */
.unit-page { padding-block: 14px clamp(48px, 7vw, 84px); }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.back-link:hover { color: var(--ink); text-decoration: underline; }
.status-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 17px; }
.status-banner.is-pending { margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); border-radius: 0; color: var(--ink-2); justify-content: flex-start; font-size: 16px; }
.badge-pending.is-inline { position: static; flex: none; }
.status-banner.is-sold { background: var(--black); color: var(--on-black); }
.sold-word { font-weight: 900; font-stretch: 125%; letter-spacing: .08em; margin-right: 8px; color: #fff; }

.unit-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; gap: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 36px); align-items: start; }
/* The panel spans both rows, so the description and details rise up under the gallery instead of
   waiting below the panel's full height. */
.unit-panel { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 96px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 16px; }
.unit-panel h1 { font-size: clamp(1.75rem, 2.7vw, 2.35rem); font-weight: 900; font-stretch: 112%; overflow-wrap: anywhere; }
.unit-ref { color: var(--ink-2); font-size: 15px; font-weight: 600; margin-top: -6px; }
.tow-facts { list-style: none; margin: 0; padding: 14px 0 2px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; }
.tow-facts li { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink-2); }
.tow-facts .ic { width: 22px; height: 22px; color: var(--ink-2); stroke-width: 1.8; }
.tow-facts strong { color: var(--ink); font-size: 18px; }
.tow-facts a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; }
.tow-facts a:hover { color: var(--red); }
.unit-cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
.unit-callout { font-size: 16px; color: var(--ink-2); }
.unit-callout a, .footer-brand a, .utility a { white-space: nowrap; }
.unit-callout a { color: var(--ink); font-weight: 700; }
/* Where the lot is, right under the price: the drive is the decision. */
.unit-visit { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.unit-visit > .ic { width: 22px; height: 22px; margin-top: 1px; color: var(--red); stroke-width: 1.8; }
.unit-visit strong { color: var(--ink); font-size: 16px; }
.unit-visit .btn { grid-column: 2; justify-self: start; margin-top: 6px; }

.gallery { min-width: 0; }
.gallery-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--black); box-shadow: var(--shadow); }
.gallery-track { display: flex; aspect-ratio: 3 / 2; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -3px; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-frame .badge-pending { left: 12px; top: 12px; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(17, 18, 20, .8); color: #fff; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; pointer-events: none; font-variant-numeric: tabular-nums; }
.gallery-nav, .gallery-open {
  position: absolute; display: grid; place-items: center; border: 0; cursor: pointer; border-radius: 50%;
  transition: background-color .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
}
.gallery-nav { top: 50%; width: 48px; height: 48px; margin-top: -24px; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 2px 10px rgba(20, 20, 20, .25); }
.gallery-nav .ic { width: 24px; height: 24px; stroke-width: 2.4; }
.gallery-nav:hover { background: #fff; transform: scale(1.06); }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
.is-prev { left: 12px; }
.is-next { right: 12px; }
.gallery-open { right: 12px; top: 12px; width: 44px; height: 44px; background: rgba(17, 18, 20, .72); color: #fff; }
.gallery-open:hover { background: rgba(17, 18, 20, .92); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.gallery-thumbs button { flex: none; width: 96px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #d9dde2; cursor: pointer; opacity: .7; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .gallery-nav { display: none; } }

.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--black); color: #fff; overflow: hidden; }
.viewer::backdrop { background: var(--black); }
.viewer-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-track figure { flex: 0 0 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: start; scroll-snap-stop: always; }
.viewer-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.viewer-close .ic { width: 26px; height: 26px; }
.viewer-count { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(255, 255, 255, .14); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }

.gallery { grid-column: 1; grid-row: 1; }
.unit-more { grid-column: 1; grid-row: 2; display: grid; gap: clamp(32px, 4vw, 48px); min-width: 0; }
.unit-info { display: grid; gap: 36px; min-width: 0; }
.unit-info h2 { font-size: clamp(1.45rem, 2.1vw, 1.75rem); font-weight: 900; font-stretch: 112%; margin-bottom: 14px; }
.unit-description { white-space: pre-line; font-size: 18px; max-width: 65ch; overflow-wrap: anywhere; }
/* Year, make and model side by side; the 1px gaps are the dividers. */
.spec-list { margin: 0; display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.spec-list div { flex: 1 1 6.5rem; padding: 12px 18px; display: grid; align-content: start; gap: 2px; min-width: 0; background: var(--surface); }
.spec-list dt { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.spec-list dd { margin: 0; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.unit-trust { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.trust-list li { display: flex; gap: 12px; color: var(--ink-2); font-size: 16px; }
.trust-list strong { color: var(--ink); }
.trust-list .ic { width: 26px; height: 26px; color: var(--red); stroke-width: 1.8; }
/* The promises run across under the story, in as many columns as fit. */
.trust-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 16px 24px; }

/* Not found */
.notfound { padding-block: clamp(56px, 9vw, 110px); }
.notfound .wrap { display: grid; gap: 18px; justify-items: start; max-width: 760px; margin-inline: auto; }
.notfound h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 900; font-stretch: 112%; }
.notfound p { color: var(--ink-2); font-size: 18px; max-width: 56ch; }

/* About */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 84px); }
.about-row { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-logo { width: 100%; max-width: 320px; height: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .18)); }
.about-copy { display: grid; gap: 16px; max-width: 62ch; }
.about-copy p { font-size: 18px; color: var(--ink-2); }
.about-copy p:first-of-type { color: var(--ink); }

/* Visit */
.visit { padding-block: clamp(48px, 7vw, 84px); }
.visit-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.visit-copy { display: flex; flex-direction: column; gap: 22px; }
.facts { margin: 0; display: grid; gap: 18px; }
.facts div { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.facts dt .ic { color: var(--red); width: 18px; height: 18px; }
.facts dd { margin: 0; font-size: 20px; font-weight: 700; }
.facts dd a { text-decoration: none; }
.facts dd a:hover { color: var(--red); text-decoration: underline; }
/* The map is a picture of where the lot is (scripts/make-map.py) and the whole card opens Google
   Maps: no frame for a blocker to break. The picture shows at its own size, centered, so its labels
   stay readable and the pin stays on the lot at any width. */
.map { position: relative; display: flex; flex-direction: column; min-height: 360px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.map-link { flex: 1; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.map-link:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.map-pic { position: relative; flex: 1; min-height: 300px; overflow: hidden; background: #e8eaed; }
.map-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: none; object-position: 50% 50%; }
.map-pin { position: absolute; left: calc(50% - var(--pin-shift, 0px)); top: 50%; display: grid; justify-items: center; gap: 5px; transform: translate(-50%, -100%); pointer-events: none; }
.map-pin svg { display: block; width: 32px; height: 42px; fill: var(--red); filter: drop-shadow(0 3px 3px rgba(20, 20, 20, .35)); transition: transform .3s var(--ease); transform-origin: 50% 100%; }
.map-pin svg circle { fill: #fff; }
.map-tag { background: var(--black); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(20, 20, 20, .25); }
.map-link:hover .map-pin svg { transform: translateY(-3px); }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.map-bar > .ic { width: 22px; height: 22px; color: var(--red); }
.map-address { flex: 1; min-width: 12ch; color: var(--ink); font-weight: 600; }
.map-open { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
.map-link:hover .map-open { color: var(--red); }
.map-credit { position: absolute; top: 0; right: 0; padding: 5px 9px; font-size: 12px; line-height: 1.3; color: var(--ink-2); background: rgba(255, 255, 255, .85); border-bottom-left-radius: 6px; text-decoration: none; }
.map-credit:hover { color: var(--ink); text-decoration: underline; }

/* Footer */
.site-footer { background: var(--black); color: var(--on-black-2); padding-top: 44px; border-top: 6px solid var(--red); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 32px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 64px; height: 64px; }
.footer-name { color: var(--on-black); font-weight: 900; font-stretch: 112%; font-size: 19px; }
.site-footer a { color: var(--on-black); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-weight: 700; }
.footer-nav a { padding: 10px 8px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 22px; font-size: 14px;
  background: linear-gradient(#2c2f35 0 0) 50% 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }

/* Phone action bar */
.action-bar { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .utility-row > span:nth-child(2) { display: none; }
  .promise-row { grid-template-columns: 1fr; padding-block: 18px; }
  .about-row, .visit-row { grid-template-columns: 1fr; }
  .about-logo { max-width: 200px; }
  .unit-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .gallery, .unit-panel, .unit-more { grid-column: 1; grid-row: auto; }
  .unit-panel { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-top: 72px; }
  .utility { display: none; }
  .header-row { min-height: 64px; gap: 12px; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 17px; }
  .brand-name span { font-size: 11.5px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .header-call { min-height: 44px; padding: 0 16px; }
  .hero { min-height: 0; align-items: flex-end; }
  .hero-photo { object-position: 62% 50%; }
  .hero::before { background: linear-gradient(0deg, rgba(17, 18, 20, .92) 0%, rgba(17, 18, 20, .74) 52%, rgba(17, 18, 20, .2) 82%); }
  .hero-inner { padding-block: 150px 34px; }
  .hero-actions .btn { width: 100%; }
  .contact-buttons .btn { flex: 1 1 auto; }
  .page-head { align-items: stretch; }
  .sort { width: 100%; }
  .sort select { flex: 1; min-width: 0; }
  .map { min-height: 0; }
  .map-pic { min-height: 240px; }
  .unit-page { padding-top: 4px; }
  .gallery-frame { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; box-shadow: none; }
  .gallery-thumbs { display: none; }
  .unit-panel { padding: 18px; }
  .unit-cta, .unit-callout { display: none; }
  .action-bar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--black); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
  }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
  .action-bar a.is-primary { background: var(--red); }
  .action-bar a + a { border-left: 1px solid #2c2f35; }
  .action-bar .ic { width: 22px; height: 22px; }
}

/* Motion. One authored moment: the price tag on a unit page settles on its hook as the page opens,
   the way a tag on a camper window does when the door shuts. The full-screen photos fade up from
   black. (Cross-page view transitions were tried 2026-10-21 and dropped: Chrome aborted them on
   back-and-forth navigation.) */
.sticker-page { transform-origin: calc(var(--notch) + var(--hole) / 2 - 2px) 50%; animation: tag-settle .95s var(--ease) .15s backwards; }
@keyframes tag-settle {
  0% { transform: rotate(-7deg); }
  38% { transform: rotate(2.6deg); }
  64% { transform: rotate(-1.1deg); }
  84% { transform: rotate(.4deg); }
  100% { transform: none; }
}
.viewer[open] { animation: viewer-in .22s var(--ease); }
@keyframes viewer-in { from { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* The lot arrives as a list: cards come up one after another, the way you'd walk the row. Capped at
   eight, so a long list never makes anyone wait; content is visible if the animation never runs. */
.unit-grid > .unit-card { animation: card-in .42s var(--ease) backwards; }
.unit-grid > .unit-card:nth-child(2) { animation-delay: 45ms; }
.unit-grid > .unit-card:nth-child(3) { animation-delay: 90ms; }
.unit-grid > .unit-card:nth-child(4) { animation-delay: 135ms; }
.unit-grid > .unit-card:nth-child(5) { animation-delay: 180ms; }
.unit-grid > .unit-card:nth-child(6) { animation-delay: 225ms; }
.unit-grid > .unit-card:nth-child(7) { animation-delay: 270ms; }
.unit-grid > .unit-card:nth-child(n+8) { animation-delay: 315ms; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
/* Pointing at a card leans into the photo a little: this one opens. */
.unit-photo { overflow: hidden; }
.unit-photo img { transition: transform .6s var(--ease); }
@media (hover: hover) { .unit-card:hover .unit-photo img { transform: scale(1.04); } }
/* ...and its price tag swings once on the hook, a small echo of the unit page's tag. */
.unit-card .sticker { transform-origin: calc(var(--notch) + var(--hole) / 2 - 2px) 50%; }
@media (hover: hover) { .unit-card:hover .sticker { animation: tag-nudge .7s var(--ease); } }
@keyframes tag-nudge {
  0% { transform: none; }
  22% { transform: rotate(-4deg); }
  52% { transform: rotate(1.6deg); }
  78% { transform: rotate(-.6deg); }
  100% { transform: none; }
}


/* Reduced motion: no movement, but color and fade changes that confirm a tap stay. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticker-page, .unit-card:hover .sticker { animation: none; }
  .unit-grid > .unit-card { animation-name: fade-in; }
  .unit-card:hover .unit-photo img { transform: none; }
  .btn:active, .gallery-nav:hover, .unit-card:hover, .map-link:hover .map-pin svg { transform: none; }
  .unit-card, .btn, .gallery-nav, .map-pin svg { transition-property: background-color, border-color, color, box-shadow, opacity; }
}
