/* ============================================================
   listing.css — the single-home page (listing.html)
   ============================================================ */
.listing { padding-top: var(--nav-height); --tone: var(--color-sage); }
.listing--coast { --tone: var(--color-ocean); }
.listing__crumbs { padding-block: 1.25rem; font-size: 0.9rem; color: var(--color-ink-40); }
.listing__crumbs a { color: var(--color-ink-70); border-bottom: 1px solid var(--color-ink-20); }

.gallery { position: relative; background: var(--color-ink); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: min(72vh, 720px); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 3px solid var(--color-ocean); outline-offset: -3px; }
.gallery__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(251,251,249,0.92); color: var(--color-ink); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.gallery__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gallery__btn--prev { left: clamp(0.75rem, 3vw, 2rem); } .gallery__btn--next { right: clamp(0.75rem, 3vw, 2rem); }
.gallery__count { position: absolute; right: 1.25rem; bottom: 1.25rem; margin: 0; padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(20,24,22,0.7); color: #fff; font-size: 0.9rem; }
.gallery__sample { position: absolute; left: 1.25rem; bottom: 1.25rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--color-earth); color: #fff; font-size: 0.85rem; font-weight: 600; }
.gallery__thumbs { display: flex; gap: 0.6rem; padding-block: 0.9rem; overflow-x: auto; }
.gallery__thumbs button { flex: 0 0 auto; border-radius: var(--radius); overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; opacity: 0.6; transition: opacity var(--transition-fast); }
.gallery__thumbs button[aria-current="true"] { opacity: 1; outline-color: var(--tone); transform: translateY(-3px); }
/* the frame glides to the chosen thumbnail and the thumbnail lifts; the others dim and settle */
.gallery__thumbs button { transition: opacity 0.3s var(--ease), outline-color 0.3s var(--ease), transform 0.3s var(--ease); }
@media (prefers-reduced-motion: reduce) { .gallery__thumbs button { transition: none; transform: none; } }
.gallery__thumbs img { width: 120px; height: 76px; object-fit: cover; }

.listing__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-block: 2rem clamp(3rem, 6vw, 5rem); }
.listing__status { color: var(--tone); font-weight: 600; margin-bottom: 0.25rem; }
.listing__price { font-size: clamp(2.8rem, 6vw, 4.5rem); margin-bottom: 0.2rem; }
.listing__addr { font-size: 1.2rem; color: var(--color-ink-70); }
.listing__facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 1rem; }
.listing__facts li { padding: 0.6rem 1rem; border: 1px solid var(--color-rule); border-radius: 999px; background: var(--color-warm-white); color: var(--color-ink-70); }
.listing__facts b { color: var(--color-ink); font-weight: 600; }
.listing__office { font-size: 0.85rem; color: var(--color-ink-40); }

.calc { margin-top: 2.5rem; padding: 1.75rem; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); background: var(--color-warm-white); }
.calc__title { font-size: 1.8rem; margin-bottom: 0.4rem; }
.calc__note { font-size: 0.9rem; color: var(--color-ink-40); }
.calc__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1.25rem 0; }
.calc__fields span, .tour__fields span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--color-ink-70); margin-bottom: 0.3rem; }
.calc__fields select, .calc__fields input, .tour__fields input { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--color-rule); border-radius: var(--radius); background: var(--color-warm-white); font: inherit; color: var(--color-ink); }
.calc__result { font-size: 1.05rem; margin: 0; }
.calc__result strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; color: var(--tone); margin-right: 0.3rem; }

.tour { position: sticky; top: calc(var(--nav-now) + 1.25rem); background: var(--color-warm-white); border: 1px solid var(--color-rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1.75rem; }
.tour__title { font-size: 2rem; margin-bottom: 1rem; }
.tour__label { font-size: 0.9rem; font-weight: 600; color: var(--color-ink-70); margin: 0.6rem 0 0.5rem; }
.tour__days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; }
.tour__times { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.tour__fields { display: grid; gap: 0.75rem; margin: 1.2rem 0; }
.tour__error { color: #a4402c; font-size: 0.9rem; }
.tour__fine { font-size: 0.82rem; color: var(--color-ink-40); margin-top: 0.75rem; }
.tour__done:focus { outline: none; }

.listing__gone { padding-top: calc(var(--nav-height) + 3rem); }

@media (max-width: 900px) {
  .listing__grid { grid-template-columns: 1fr; }
  .tour { position: static; }
  .gallery__track { height: 52vh; }
  .calc__fields { grid-template-columns: 1fr 1fr; }
}

/* ---------- View all photos, share ---------- */
.gallery__all { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 999px; background: rgba(251,251,249,0.94); color: var(--color-ink); font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow-md); }
.gallery__all svg, .listing__act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.listing__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.listing__act { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.1rem; border-radius: 999px; border: 1px solid var(--color-rule); background: var(--color-warm-white); color: var(--color-ink); font-size: 0.95rem; font-weight: 500; }
.listing__act:hover { border-color: var(--color-ink-20); }
.listing__toast:not(:empty) { margin-top: 0.75rem; display: inline-block; padding: 0.5rem 0.9rem; border-radius: var(--radius); background: var(--color-sage-pale); color: var(--color-sage); font-size: 0.9rem; }

.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0e0f0e; color: #fff; }
.viewer::backdrop { background: #0e0f0e; }
.viewer[open] { display: grid; grid-template-rows: auto 1fr; animation: viewerIn 0.3s var(--ease); }
@keyframes viewerIn { from { opacity: 0; } }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; }
.viewer__count { margin: 0; font-size: 0.95rem; color: rgba(255,255,255,0.8); }
.viewer__close { width: 48px; height: 48px; font-size: 2.2rem; line-height: 1; color: #fff; }
.viewer__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0; }
.viewer__track::-webkit-scrollbar { display: none; }
.viewer__track:focus-visible { outline: none; }
.viewer__track figure { flex: 0 0 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; padding: 0 clamp(0.5rem, 5vw, 5rem) 1.5rem; }
.viewer__track img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.viewer__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.12); color: #fff; }
.viewer__btn:hover { background: rgba(255,255,255,0.22); }
.viewer__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.viewer__btn--prev { left: 1rem; } .viewer__btn--next { right: 1rem; }
@media (hover: none) { .viewer__btn { display: none; } }

/* ---------- Previous / next, the town, phone action bar ---------- */
.listing__crumbs { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.listing__step { display: flex; gap: 1.25rem; font-size: 0.9rem; }
.listing__step a { color: var(--color-ink-70); border-bottom: 1px solid var(--color-ink-20); }
.listing__step a:hover { color: var(--color-ink); }
.listing__step a[hidden] { display: none; }
.listing__town { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 0.75rem; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); background: var(--color-warm-white); color: var(--color-ink-70); transition: border-color var(--transition-fast), transform var(--transition-fast); }
.listing__town[hidden] { display: none; }
.listing__town:hover { border-color: var(--tone); transform: translateY(-2px); }
.listing__town img { width: 112px; height: 84px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.listing__town small { display: block; font-size: 0.8rem; color: var(--color-ink-40); }
.listing__town b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--color-ink); line-height: 1.1; }
.listing__town-more { font-size: 0.9rem; color: var(--tone); }

.listing-bar { display: none; }
@media (max-width: 760px) {
  /* replaces the site-wide Call/Text/Home value dock on this page */
  body.has-listing-bar .dock { display: none; }
  .listing-bar {
    display: grid; grid-template-columns: auto auto 1fr; gap: 0.5rem; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(251,251,249,0.97); border-top: 1px solid var(--color-rule); box-shadow: 0 -10px 30px -12px rgba(30,28,24,0.25);
  }
  .listing-bar__save, .listing-bar__call { display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem; min-width: 56px; padding: 0.3rem 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--color-ink); }
  .listing-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
  .listing-bar__save[aria-pressed="true"] { color: #b4463a; }
  .listing-bar__save[aria-pressed="true"] svg { fill: currentColor; }
  .listing-bar__tour { display: grid; place-items: center; min-height: 50px; border-radius: var(--radius); background: var(--tone); color: #fff; font-weight: 600; font-size: 1rem; }
  body.has-listing-bar { padding-bottom: 74px; }
  .shortlist-fab { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Print flyer: hidden on screen, the only thing printed ---------- */
.flyer { display: none; }
@media print {
  @page { size: letter; margin: 0.45in; }
  body { background: #fff !important; padding: 0 !important; }
  body::before, body > *:not(main), main > *:not(.flyer), .dock, .shortlist-fab, .listing-bar { display: none !important; }
  main.listing { padding: 0 !important; }
  .flyer { display: grid; gap: 0.18in; color: #1e1c18; font-size: 11pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .flyer__head { display: flex; align-items: center; gap: 0.15in; padding-bottom: 0.12in; border-bottom: 2px solid #4a5e4a; }
  .flyer__mark { width: 1.1in; color: #1e1c18; }
  .flyer__brand { font-family: var(--font-display); font-size: 20pt; line-height: 1; margin: 0; }
  .flyer__sub { font-size: 8pt; letter-spacing: 0.3em; text-transform: uppercase; color: #7a5c3a; margin: 0; }
  .flyer__status { margin: 0 0 0 auto; padding: 0.05in 0.14in; border-radius: 999px; background: #4a5e4a; color: #fff; font-weight: 600; font-size: 10pt; }
  .flyer__hero { width: 100%; height: 4.6in; object-fit: cover; border-radius: 6px; }
  .flyer__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.12in; }
  .flyer__thumbs img { width: 100%; height: 1.85in; object-fit: cover; border-radius: 6px; }
  .flyer__main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0.25in; align-items: start; }
  .flyer__price { font-family: var(--font-display); font-size: 34pt; line-height: 1; margin: 0; }
  .flyer__addr { font-size: 13pt; margin: 0.05in 0 0.1in; }
  .flyer__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.08in; padding: 0; margin: 0 0 0.08in; }
  .flyer__facts li { border: 1px solid #ccc; border-radius: 999px; padding: 0.03in 0.12in; font-size: 10pt; }
  .flyer__office { font-size: 8.5pt; color: #555; margin: 0; }
  .flyer__agent { display: grid; grid-template-columns: 0.95in 1fr; gap: 0.12in; align-items: center; padding: 0.12in; border: 1px solid #ddd; border-radius: 8px; }
  .flyer__agent img { width: 0.95in; height: 0.95in; object-fit: cover; object-position: 50% 25%; border-radius: 50%; }
  .flyer__agent p { margin: 0; font-size: 9.5pt; line-height: 1.45; }
  .flyer__agent-name { font-family: var(--font-display); font-size: 15pt !important; }
  .flyer__foot { display: flex; justify-content: space-between; gap: 0.2in; padding-top: 0.08in; border-top: 1px solid #ddd; font-size: 8pt; color: #555; }
}

/* Payment estimate: down-payment slider and principal/interest ring */
.calc__fields { grid-template-columns: repeat(2, 1fr); }
.calc__out { display: flex; align-items: center; gap: 1.25rem; margin: 0.5rem 0 1.25rem; }
.calc__ring { width: 96px; height: 96px; flex: 0 0 auto; transform: rotate(-90deg); }
.calc__ring circle { fill: none; stroke-width: 14; transition: stroke-dasharray 0.6s var(--ease), stroke-dashoffset 0.6s var(--ease); }
.calc__ring-bg { stroke: var(--color-rule); }
.calc__ring-int { stroke: var(--color-earth-light); stroke-dasharray: 0 100; }
.calc__ring-pri { stroke: var(--tone); stroke-dasharray: 0 100; }
.calc__split { font-size: 0.92rem; color: var(--color-ink-70); margin: 0.3rem 0 0; }
.calc__k { font-weight: 600; } .calc__k--int { color: var(--color-earth); } .calc__k--pri { color: var(--tone); }
.calc__slide span { display: block; font-size: 0.9rem; color: var(--color-ink-70); margin-bottom: 0.4rem; }
.calc__slide b { color: var(--color-ink); font-weight: 600; }
.calc__slide input { width: 100%; accent-color: var(--tone); height: 28px; }
@media (prefers-reduced-motion: reduce) { .calc__ring circle { transition: none; } }

.calc__lens { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--color-rule); }
.calc__lens-btn[aria-pressed="true"] { background: var(--color-brand-ground); border-color: var(--color-brand); color: #fff; }
.calc__lens-note { font-size: 0.82rem; color: var(--color-ink-40); margin: 0.5rem 0 0; }

/* No layout shift: the previous/next links are filled in after the page
   loads, so their row keeps its space from the start (it wraps under the
   breadcrumb on narrow screens). */
.listing__step { min-height: 1.6rem; display: flex; gap: 1.25rem; }
.listing__step a[hidden] { display: inline-block; visibility: hidden; }
.gallery__thumbs { min-height: calc(76px + 1.8rem); box-sizing: border-box; }

/* ---------- Sticky home bar (desktop) ---------- */
.sticky-home { display: none; }
@media (min-width: 900px) {
  .sticky-home {
    display: block; position: fixed; left: 0; right: 0; top: var(--nav-now); z-index: 90;
    background: rgba(251,251,249,0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-rule);
    box-shadow: 0 12px 30px -20px rgba(16,39,42,0.35);
    transform: translateY(-110%); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
  }
  .sticky-home.is-shown { transform: none; opacity: 1; }
  .sticky-home__in { display: flex; align-items: center; gap: 1rem; padding-block: 0.6rem; }
  .sticky-home__img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
  .sticky-home__what { margin: 0; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .sticky-home__price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--color-ink); }
  .sticky-home__place { font-size: 0.85rem; color: var(--color-ink-70); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22rem; }
  .sticky-home__tabs { margin-left: auto; display: flex; gap: 0.25rem; }
  .sticky-home__tabs a { position: relative; padding: 0.55rem 0.9rem; font-size: 0.92rem; color: var(--color-ink-70); border-radius: 999px; }
  .sticky-home__tabs a:hover { color: var(--color-ink); background: var(--color-cream); }
  .sticky-home__tabs a.is-on { color: var(--color-brand); font-weight: 600; }
  .sticky-home__tabs a.is-on::after { content: ''; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.2rem; height: 2px; border-radius: 2px; background: var(--color-brand); }
  .sticky-home__save { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-rule); display: grid; place-items: center; color: var(--color-ink); background: var(--color-warm-white); }
  .sticky-home__save svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
  .sticky-home__save[aria-pressed="true"] { color: #b4463a; } .sticky-home__save[aria-pressed="true"] svg { fill: currentColor; }
  .sticky-home__tour { padding-inline: 1.4rem; }
  html:has(.sticky-home.is-shown) { scroll-padding-top: calc(var(--nav-height) + 72px); }
}
@media (prefers-reduced-motion: reduce) { .sticky-home { transition: none; } }

/* ---------- Ask about this home ---------- */
.listing__ask[aria-expanded="true"] { background: var(--color-brand-ground); border-color: var(--color-brand); color: #fff; }
.ask { margin-top: 1rem; padding: 1.4rem; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); background: var(--color-warm-white); animation: fadeUp 0.4s var(--ease); }
.ask__lead { font-size: 0.95rem; color: var(--color-ink-70); margin: 0 0 0.8rem; }
.ask__chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.ask__chips button { padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--color-rule); background: var(--color-warm-white); font-size: 0.9rem; color: var(--color-ink); transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast); }
.ask__chips button:hover { border-color: var(--color-brand); }
.ask__chips button[aria-pressed="true"] { background: var(--color-brand-ground); border-color: var(--color-brand); color: #fff; }
.ask__chips button[aria-pressed="true"]::before { content: '\2713  '; }
.ask__form { display: grid; gap: 0.8rem; }
.ask__form span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--color-ink-70); margin-bottom: 0.3rem; }
.ask__form textarea, .ask__form input { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--color-rule); border-radius: var(--radius); background: var(--color-warm-white); font: inherit; font-size: 0.95rem; color: var(--color-ink); }
.ask__form textarea { resize: vertical; min-height: 6.5rem; }
.ask__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.ask__error { color: #a4402c; font-size: 0.9rem; margin: 0; }
.ask__send { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ask__sms { font-size: 0.92rem; color: var(--color-brand); border-bottom: 1px solid currentColor; }
.ask__done { font-size: 1.05rem; color: var(--color-ink); margin: 0; }
.ask__done:focus { outline: none; }
@media (max-width: 560px) { .ask__row { grid-template-columns: 1fr; } }
/* the hidden attribute must win over the grid and gallery layouts (not-found state) */
.listing__crumbs[hidden], .listing__grid[hidden], .listing__gallery[hidden], .listing [data-homes][hidden] { display: none !important; }
/* the previous/next links keep their space while hidden (no layout shift) */
.listing .listing__step a[hidden] { display: inline-block !important; visibility: hidden; }

/* ------------------------------------------------------------
   MOSAIC — wide screens show the lead photo large with the next
   ones beside it; every photo opens the viewer, growing out of its
   tile (listing.js). Phones keep the swipe strip and thumbnails.
   ------------------------------------------------------------ */
@media (min-width: 901px) {
  .gallery--mosaic .gallery__track { display: grid; gap: 6px; overflow: hidden; scroll-snap-type: none; }
  .listing__gallery .gallery__thumbs { display: none; }
  .gallery--m2 .gallery__track { grid-template-columns: 1.6fr 1fr; }
  .gallery--m3 .gallery__track { grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery--m5 .gallery__track { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery--m3 .gallery__track img:first-child, .gallery--m5 .gallery__track img:first-child { grid-row: 1 / 3; }
  .gallery--m3 .gallery__track img:nth-child(n+4), .gallery--m5 .gallery__track img:nth-child(n+6), .gallery--m2 .gallery__track img:nth-child(n+3) { display: none; }
  .gallery--mosaic .gallery__track img { width: 100%; height: 100%; min-height: 0; cursor: zoom-in; transition: transform 0.9s var(--ease), filter 0.5s var(--ease); }
  .gallery--mosaic .gallery__track:hover img { filter: brightness(0.82) saturate(0.9); }
  .gallery--mosaic .gallery__track img:hover { filter: none; transform: scale(1.025); z-index: 1; }
  .gallery--mosaic .gallery__btn, .gallery--mosaic .gallery__count { display: none; }
  .gallery--mosaic .gallery__all { left: auto; right: 1.25rem; transform: none; }
  .gallery--mosaic .gallery__all, .gallery--mosaic .gallery__sample { z-index: 2; }
}
::view-transition-group(zoom-photo) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
::view-transition-old(zoom-photo), ::view-transition-new(zoom-photo) { height: 100%; object-fit: cover; }
@media (max-width: 900px) { .gallery__sample { top: 1rem; bottom: auto; left: 1rem; } }

/* In person or on video ("be my eyes"): two ways to see the home */
.tour__how { display: grid; gap: 0.5rem; margin-bottom: 0.4rem; }
.tour__way { position: relative; cursor: pointer; }
.tour__way input { position: absolute; opacity: 0; inset: 0; }
.tour__way span { display: block; padding: 0.7rem 0.9rem 0.7rem 2.4rem; border: 1px solid var(--color-rule); border-radius: var(--radius); background: var(--color-warm-white); transition: border-color var(--transition-fast), background var(--transition-fast); }
.tour__way span::before { content: ''; position: absolute; left: 0.85rem; top: 0.95rem; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--color-ink-20); background: var(--color-warm-white); }
.tour__way input:checked + span { border-color: var(--color-brand); background: var(--color-sage-pale); }
.tour__way input:checked + span::before { border: 5px solid var(--color-brand); }
.tour__way input:focus-visible + span { outline: 3px solid var(--color-ocean); outline-offset: 2px; }
.tour__way b { display: block; font-weight: 600; color: var(--color-ink); font-size: 0.95rem; }
.tour__way small { display: block; font-size: 0.8rem; color: var(--color-ink-70); line-height: 1.4; }
.listing__eyes { margin: 0.9rem 0 0; font-size: 0.95rem; }
.listing__eyes a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-brand); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.listing__eyes svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; flex: 0 0 auto; }

/* Same money, the other place (listing.js PAIR) */
.pair-one { margin-top: 2rem; padding: 1.6rem 1.75rem; border-radius: var(--radius-lg); background: var(--color-sage-pale); border: 1px solid var(--color-rule); }
.pair-one--coast { background: var(--color-ocean-pale); }
.pair-one__title { font-size: 1.6rem; margin: 0.3rem 0 1.1rem; }
.pair-one__card { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: 1.2rem; align-items: center; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-warm-white); border: 1px solid var(--color-rule); color: var(--color-ink); transition: transform var(--transition), box-shadow var(--transition); }
.pair-one__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pair-one__media { display: block; aspect-ratio: 4 / 3; background: var(--color-sand); }
.pair-one__media img { width: 100%; height: 100%; object-fit: cover; }
.pair-one__body { display: grid; gap: 0.2rem; padding: 1rem 1.2rem 1rem 0; }
.pair-one__price { font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; line-height: 1.05; }
.pair-one__what { font-size: 0.92rem; color: var(--color-ink-70); }
.pair-one__town { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; }
.pair-one__from { font-size: 0.82rem; color: var(--color-earth); }
.pair-one__go { margin-top: 0.5rem; font-size: 0.88rem; font-weight: 600; color: var(--color-brand); border-bottom: 1px solid currentColor; justify-self: start; }
.pair-one__fine { font-size: 0.85rem; color: var(--color-ink-70); margin: 0.9rem 0 0; }
@media (max-width: 600px) { .pair-one__card { grid-template-columns: 1fr; } .pair-one__body { padding: 0 1rem 1rem; } }
/* the sticky bar: the drive under the place, and a text to Amanda about this home */
.sticky-home__from { font-size: 0.78rem; color: var(--color-earth); }
.sticky-home__from[hidden] { display: none; }
.sticky-home__text { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; padding: 0.55rem 0.9rem; border-radius: 999px; border: 1px solid var(--color-brand); color: var(--color-brand); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.sticky-home__text svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sticky-home__text + .sticky-home__tour { margin-left: 0.5rem; }
@media (max-width: 760px) { .sticky-home__text span { display: none; } .sticky-home__text { padding: 0.55rem; } }

.listing__pos { font-size: 0.85rem; color: var(--color-ink-40); margin-right: 0.6rem; }

/* The photos as a story: a 9:16 frame, bars across the top, hold to pause */
.story { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0e0f0e; color: #fff; }
.story::backdrop { background: #0e0f0e; }
.story[open] { display: block; }
.story__frame { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: 100dvh; margin: 0 auto; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; }
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s var(--ease); }
.story__img.is-on { opacity: 1; }
.story__bars { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: 10px; right: 10px; z-index: 3; display: flex; gap: 4px; }
.story__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.35); overflow: hidden; position: relative; }
.story__bars i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.story__bars i.is-done::after { transform: scaleX(1); }
.story__bars i.is-on::after { animation: storyFill 4s linear forwards; }
.story.is-held .story__bars i.is-on::after { animation-play-state: paused; }
@keyframes storyFill { to { transform: scaleX(1); } }
.story__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 4rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom, 0px)); background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent); pointer-events: none; }
.story__cap b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2rem; line-height: 1; margin-bottom: 0.3rem; }
.story__cap span { font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.story__zone { position: absolute; top: 0; bottom: 0; width: 38%; z-index: 2; background: transparent; cursor: pointer; }
.story__zone--prev { left: 0; } .story__zone--next { right: 0; width: 62%; }
.story__zone:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.story__close { position: absolute; top: calc(22px + env(safe-area-inset-top, 0px)); right: 8px; z-index: 4; width: 44px; height: 44px; font-size: 2rem; line-height: 1; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.story__end { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; justify-content: center; gap: 0.8rem; padding: 2rem 1.5rem; background: var(--color-brand); text-align: center; }
.story__end.is-on { display: flex; }
.story__end-price { font-family: var(--font-display); font-weight: 500; font-size: 3rem; line-height: 1; margin: 0; color: var(--color-mark); }
.story__end-what { margin: 0 0 1.2rem; color: var(--color-on-brand); }
.story__end .btn { justify-content: center; }
.story__end-text { background: var(--color-warm-white); color: var(--color-brand); display: inline-flex; align-items: center; gap: 0.5rem; }
.story__end-text svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.story__end-see { background: var(--color-earth); border-color: var(--color-earth); }
.story__again { margin-top: 1rem; color: var(--color-on-brand); font-size: 0.9rem; border-bottom: 1px solid currentColor; align-self: center; }
.listing__story svg path { fill: currentColor; stroke: none; }

/* See it in the best light: the golden-hour slot on the tour form (listing.js) */
.tour__chip--golden span { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.tour__chip--golden small { font-size: 0.72rem; font-weight: 400; opacity: 0.8; }
.tour__chip--golden input:checked + span { background: linear-gradient(135deg, #f0c389, #e8a35c); border-color: #e8a35c; color: #2b2419; }

/* About this home: the description and a facts table under the chips (listing.js) */
.about-home { margin: 1.8rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--color-rule); }
.about-home__title { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin: 0 0 0.7rem; }
.about-home__text p { margin: 0 0 0.85rem; max-width: 62ch; color: var(--color-ink-70); }
.about-home__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.6rem; margin: 1.1rem 0 0; }
.about-home__facts > div { padding: 0.6rem 0; border-bottom: 1px solid var(--color-rule); }
.about-home__facts dt { font-size: 0.78rem; color: var(--color-ink-40); }
.about-home__facts dd { margin: 0.15rem 0 0; color: var(--color-ink); font-weight: 500; }
@media (max-width: 560px) { .about-home__facts { grid-template-columns: 1fr; } }
