/* Lisière (refonte V3): tokens, reset, type, buttons, header, footer. Fonts self-hosted (OFL).
   Contrast pairs are checked in tests/design.test.mjs. */
@font-face {
  font-family: "Young Serif";
  src: url("/assets/youngserif-latin-400.6ba68b9927.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/figtree-latin-var.4ba7d3d096.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --pin: #0f2a1f;
  --pin-2: #163829;
  --pin-3: #2c5a45;
  --bg: #f4f1ea;
  --paper: #fbfaf7;
  --stone: #ebe8df;
  --line: #d9d3c6;
  --ink: #1a2620;
  --ink-2: #4b5650;
  --on-pin: #f4f1ea;
  --on-pin-2: #c9d6cf;
  --action: #c2501a;
  --action-hover: #a8430f;
  --on-action: #ffffff;
  --drop-bg: #fbe5d9;
  --drop-ink: #8a3410;
  --new-bg: #dcebe2;
  --new-ink: #163829;
  --tbc-bg: #fff1c9;
  --tbc-ink: #5c3c00;
  --focus: #1a2620;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: 0.875rem;
  --fs-s: 0.9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.125rem;
  --fs-h3: clamp(1.0625rem, 0.5vw + 0.95rem, 1.3125rem);
  --fs-h2: clamp(1.5rem, 1.8vw + 1rem, 2.5rem);
  --fs-h1: clamp(2rem, 3vw + 1.2rem, 3.5rem);
  --fs-hero: clamp(2.75rem, 4.2vw + 1.4rem, 4.5rem);
  --fs-price: clamp(1.5rem, 1vw + 1.2rem, 2.25rem);

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;
  --s7: 7rem;

  --r-card: 0.875rem;
  --r-field: 0.625rem;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgb(15 42 31 / 0.06), 0 8px 24px rgb(15 42 31 / 0.08);
  --ease: 200ms cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 75rem;
  --bar-h: 4.5rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s3); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-m)/1.6 var(--font-text);
  font-variant-numeric: tabular-nums;
  caret-color: var(--action);
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
::selection { background: var(--pin-3); color: var(--on-pin); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; color: var(--pin); margin: 0 0 var(--s2); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
* + h2 { margin-top: var(--s5); }
* + h3 { margin-top: var(--s4); }
p, ul, ol, dl { margin: 0 0 var(--s2); }
p, li, dd { text-wrap: pretty; } /* no lone last word in pieces lists and descriptions (impeccable straggler) */
a { color: var(--pin-2); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color var(--ease); }
a:hover { color: var(--action-hover); }
strong { font-weight: 650; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.band--pin :focus-visible, .site-footer :focus-visible, .band--photo :focus-visible { outline-color: var(--on-pin); }

.container { width: min(100% - 2 * var(--s3), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--s6); }
.section--flush { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }
.section-head h2 { margin: 0; }
.lead { font-size: var(--fs-l); color: var(--ink-2); max-width: 60ch; }
.muted, .detail-note, .list-note { color: var(--ink-2); font-size: var(--fs-s); }
.prose { max-width: 60ch; }
.prose h2 { font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--s2); top: -4rem; z-index: 100; padding: 0.75rem 1rem; border-radius: var(--r-field); background: var(--action); color: var(--on-action); font-weight: 650; }
.skip-link:focus { top: var(--s2); color: var(--on-action); }
.tbc { display: inline-block; padding: 0.15em 0.6em; border-radius: 4px; background: var(--tbc-bg); color: var(--tbc-ink); font-size: 0.85em; font-weight: 600; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons: one filled (action) per screen, the others outline or quiet. A button is 46 px tall; links outside
   running text get min-height 2.75rem (44 px) where they are set, checked at 390 px in tests/v3-build-fixes.test.mjs. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0.625rem 1.25rem;
  border: 1.5px solid transparent; border-radius: var(--r-field);
  font: 600 var(--fs-m)/1.2 var(--font-text); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.btn--action { background: var(--action); color: var(--on-action); }
.btn--action:hover { background: var(--action-hover); color: var(--on-action); }
.btn--outline { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--pin); border-color: var(--pin); color: var(--on-pin); }
.btn--light { background: var(--paper); color: var(--pin); }
.btn--light:hover { background: var(--on-pin); color: var(--pin); }
.btn--quiet { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; padding-inline: 0.5rem; }
.btn--quiet:hover { color: var(--action-hover); }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 2.875rem; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; font-weight: 600; color: var(--pin); text-decoration: underline; text-underline-offset: 0.25em; }
/* A phone number inside a sentence is still a 44 px tap target (N1, /services/). */
.link-tel { display: inline-flex; align-items: center; min-height: 2.75rem; }
.link-arrow .icon { width: 1rem; height: 1rem; transition: translate var(--ease); }
.link-arrow:hover .icon { translate: 3px 0; }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s3); min-height: 4.5rem; }
.brand { display: block; flex: none; margin-right: auto; padding-block: 0.5rem; }
.brand-logo { width: 8.5rem; height: auto; } /* ≥130×47 px on phones (home-impact) */
.site-nav { display: none; }
.site-nav ul { display: flex; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.site-nav ul a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); font-weight: 550; text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--pin); border-bottom-color: var(--line); }
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--action); color: var(--pin); }
.nav-selection { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 0.75rem; border-radius: var(--r-pill); color: var(--pin); font-weight: 600; text-decoration: none; }
.nav-selection[hidden] { display: none; }
.nav-selection .icon { color: var(--action); fill: currentColor; }
.nav-count { min-width: 1.5rem; padding: 0 0.375rem; border-radius: var(--r-pill); background: var(--pin); color: var(--on-pin); font-size: var(--fs-xs); text-align: center; }
.nav-tel { display: none; }
.menu { position: relative; }
.menu summary { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid var(--ink); border-radius: var(--r-field); font-weight: 600; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--pin); border-color: var(--pin); color: var(--on-pin); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(19rem, calc(100vw - 2 * var(--s3))); padding: var(--s1); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow); }
.menu-panel ul { margin: 0; padding: 0; list-style: none; }
.menu-panel a { display: flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 var(--s2); border-radius: var(--r-field); color: var(--ink); font-weight: 600; text-decoration: none; }
.menu-panel a:hover { background: var(--stone); }
.menu-panel a[aria-current="page"] { color: var(--action-hover); }
.menu-panel .nav-tel { display: flex; margin-top: var(--s1); border: 1.5px solid var(--ink); justify-content: center; }
@media (min-width: 48rem) {
  .brand-logo { width: 9.5rem; }
  .site-nav { display: flex; align-items: center; gap: var(--s3); }
  .nav-tel { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid var(--ink); border-radius: var(--r-field); color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color var(--ease), color var(--ease); }
  .nav-tel:hover { background: var(--pin); color: var(--on-pin); border-color: var(--pin); }
  .menu { display: none; }
}

/* Home header: the logo on its light plate over the hero photo. */
.site-header--home { position: absolute; inset: 0 0 auto; background: transparent; border: 0; }
.site-header--home .brand--plate { padding: 0.75rem 1rem; border-radius: 0 0 var(--r-card) var(--r-card); background: var(--paper); box-shadow: var(--shadow); align-self: flex-start; padding-top: 0.75rem; }
.site-header--home .brand { flex: 0 1 auto; min-width: 0; }
.site-header--home .brand-logo { width: 13.125rem; max-width: 100%; } /* brief V3 l.141: 210 px on a 390 px phone; narrower phones shrink it so the Menu button still fits */
@media (max-width: 24.37rem) { .site-header--home .header-inner { gap: var(--s1); } .site-header--home .brand--plate { padding: 0.5rem 0.75rem; } } /* 320 px: logo ≥130 px and the Menu button on one line */
.site-header--home .site-nav ul a, .site-header--home .site-nav .nav-selection { color: var(--on-pin); text-shadow: 0 1px 8px rgb(0 0 0 / 0.45); }
.site-header--home .site-nav ul a:hover { border-bottom-color: var(--on-pin); }
.site-header--home .nav-tel { border-color: var(--on-pin); color: var(--on-pin); background: rgb(15 42 31 / 0.35); }
.site-header--home .menu summary { background: var(--paper); border-color: var(--paper); }
@media (min-width: 48rem) { .site-header--home .brand-logo { width: 18.75rem; } }

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; margin: 0; padding: var(--s1) 0; list-style: none; font-size: var(--fs-xs); color: var(--ink-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-2); }
.breadcrumb [aria-current] { color: var(--ink); }

/* Page head */
.page-head { padding: var(--s4) 0 var(--s3); }
.page-head h1 { margin-bottom: var(--s1); }
.page-head p { max-width: 62ch; color: var(--ink-2); }

/* Definitions */
.defs { display: grid; gap: 0; margin: 0 0 var(--s3); }
.defs > div { display: flex; justify-content: space-between; gap: var(--s2); padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.defs dt { color: var(--ink-2); }
.defs dd { margin: 0; text-align: right; font-weight: 550; }
.defs dd a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Footer */
.site-footer { margin-top: auto; background: var(--pin); color: var(--on-pin-2); font-size: var(--fs-s); }
.site-footer a { color: var(--on-pin); text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s4); padding-block: var(--s5) var(--s4); }
.footer-plate { display: inline-block; padding: 0.75rem 1rem; border-radius: var(--r-card); background: var(--paper); }
.footer-logo { width: 9rem; }
.footer-brand p { margin-top: var(--s2); max-width: 32ch; }
.site-footer h2 { margin: 0 0 var(--s1); font: 650 var(--fs-xs)/1.4 var(--font-text); color: var(--on-pin); letter-spacing: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { display: block; padding-block: 0.3rem; }
/* Footer, legal and breadcrumb links are 44 px tall at least (checklist #4): the box grows, the text does not. */
.site-footer li a, .footer-legal a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; margin-block: -0.3rem; }
.footer-legal a { margin-block: 0; }
.footer-foot { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); justify-content: space-between; padding-block: var(--s3); border-top: 1px solid rgb(244 243 238 / 0.18); }
.footer-note, .footer-legal { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s2); }
.site-footer .tbc { background: var(--tbc-bg); color: var(--tbc-ink); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

/* Notices */
.notice { padding: var(--s2) var(--s3); border-radius: var(--r-card); border: 1px solid var(--line); background: var(--paper); }
.notice--error { border-color: var(--drop-ink); background: var(--drop-bg); color: var(--drop-ink); }
.notice--error .empty-title { color: var(--drop-ink); }
.empty { padding: var(--s4); border: 1px dashed var(--line); border-radius: var(--r-card); background: var(--paper); }
.empty-title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--pin); margin-bottom: var(--s1); }
.banner { padding: var(--s2) 0; }
.banner--sold { background: var(--stone); }

.js-only[hidden], [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Home: photo hero with the search, pin band with the convoy, three listings, park band. */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(46rem, 100svh); padding: 12rem 0 var(--s4); background: var(--pin); color: var(--on-pin); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media picture, .hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms ease-out; }
.hero.is-playing .hero-media video { opacity: 1; }
/* Desktop: the sky stays open at the top, the veil closes from 26 % where the title starts (short windows included),
   so the title is 4.5:1 or more on the poster and on every video frame (measured at 960, 1280, 1440 and 1920 px). */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(15 42 31 / 0.35) 0%, rgb(15 42 31 / 0.12) 13%, rgb(15 42 31 / 0.64) 26%, rgb(15 42 31 / 0.68) 60%, rgb(15 42 31 / 0.90) 100%); }
/* Phones: h1 and lead sit over the light middle of the photo, so the veil is darker there (AA, P0.6). */
@media (max-width: 59.99rem) {
  .hero::after { background: linear-gradient(180deg, rgb(15 42 31 / 0.40) 0%, rgb(15 42 31 / 0.60) 25%, rgb(15 42 31 / 0.80) 50%, rgb(15 42 31 / 0.90) 100%); }
}
.hero-inner { display: grid; gap: var(--s3); align-items: end; }
.hero h1 { color: #ffffff; font-size: var(--fs-hero); line-height: 1.04; max-width: 11ch; margin: 0 0 var(--s2); text-shadow: 0 2px 24px rgb(0 0 0 / 0.25); }
.hero .lead { color: var(--on-pin); font-size: var(--fs-l); margin: 0; max-width: 36ch; }
.search { display: grid; gap: var(--s2); padding: var(--s3); border-radius: var(--r-card); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.search-fields { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.search .btn { width: 100%; }
.search .btn .icon { width: 1.125rem; height: 1.125rem; }
.hero-all { margin: 0; }
.hero-toggle { position: absolute; right: var(--s3); top: 7.5rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: var(--r-pill); background: rgb(15 42 31 / 0.72); color: #ffffff; font: 600 var(--fs-xs)/1 var(--font-text); cursor: pointer; transition: background-color var(--ease); }
.hero-toggle:hover { background: var(--pin); }
.hero-toggle:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--pin); }
.hero-toggle .icon { width: 1rem; height: 1rem; }
.hero-toggle .icon-play, .hero-toggle.is-paused .icon-pause { display: none; }
.hero-toggle.is-paused .icon-play { display: block; }
/* From 48rem the logo plate makes the transparent home header up to 130 px tall (z-index 20): the pause button sits
   below it (144 px), or the header takes its clicks and taps (C6). */
@media (min-width: 48rem) { .hero-toggle { top: 9rem; } }
@media (min-width: 60rem) {
  .hero { padding: 10rem 0 var(--s5); }
  .hero-inner { grid-template-columns: 1fr minmax(24rem, 28rem); gap: var(--s5); }
}

/* Bands */
.band { padding-block: var(--s6); }
.band--pin { background: var(--pin); color: var(--on-pin-2); }
.band--pin h2 { color: var(--on-pin); margin-top: 0; }
.band-grid { display: grid; gap: var(--s4); align-items: center; }
.band-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-card); }
.promises { display: grid; gap: var(--s3); margin: var(--s3) 0 0; padding: 0; list-style: none; }
.promises li { display: grid; grid-template-columns: auto 1fr; gap: var(--s2); align-items: start; }
.promises .icon { width: 2.5rem; height: 2.5rem; padding: 0.55rem; border-radius: var(--r-field); background: var(--pin-2); color: #f2a77c; }
.promises h3 { margin: 0 0 0.25rem; font: 650 var(--fs-m)/1.35 var(--font-text); color: var(--on-pin); letter-spacing: 0; }
.promises p { margin: 0; }
@media (min-width: 60rem) { .band-grid { grid-template-columns: 1.1fr 1fr; gap: var(--s6); } }

.band--photo { position: relative; isolation: isolate; padding-block: var(--s7); background: var(--pin-2); color: var(--on-pin); }
.band-bg { position: absolute; inset: 0; z-index: -2; }
.band-bg picture, .band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(15 42 31 / 0.88) 0%, rgb(15 42 31 / 0.55) 55%, rgb(15 42 31 / 0.15) 100%); }
.band-panel { max-width: 34rem; }
.band--photo h2 { color: #ffffff; margin-top: 0; }
.band--photo p { max-width: 44ch; color: var(--on-pin); }
.band--photo .btn .icon { width: 1.125rem; height: 1.125rem; }
@media (prefers-reduced-motion: reduce) { .hero-video, .hero-toggle { display: none; } } /* the script never creates the video then; belt and braces if the setting changes mid-visit */

/* Cards, stock with filters, listing page, gallery, visit and contact pages. */

/* Form fields */
.field { display: grid; gap: 0.375rem; }
.field label, .facet legend { font-size: var(--fs-xs); font-weight: 650; color: var(--ink); }
select, input[type="number"] {
  width: 100%; min-height: 2.875rem; padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  border: 1.5px solid var(--line); border-radius: var(--r-field); background-color: var(--paper); color: var(--ink);
  font: 500 var(--fs-m)/1.3 var(--font-text); transition: border-color var(--ease);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.1rem) 52%, calc(100% - 0.75rem) 52%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; }
select:hover, input:hover { border-color: var(--ink-2); }
input[type="radio"], input[type="checkbox"] { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--pin); flex: none; }

/* Tags and badges */
.card-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0 0 var(--s1); padding: 0; list-style: none; }
.tag, .badge { display: inline-flex; align-items: center; min-height: 1.625rem; padding: 0 0.625rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 650; }
.tag--drop { background: var(--drop-bg); color: var(--drop-ink); }
.tag--new { background: var(--new-bg); color: var(--new-ink); }
.badge--sold { background: var(--ink); color: var(--paper); }
.badge--reserved { background: var(--tbc-bg); color: var(--tbc-ink); }

/* Cards */
.cards { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.cards--three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); transition: border-color var(--ease), box-shadow var(--ease); }
.card:hover { border-color: var(--ink-2); box-shadow: var(--shadow); }
.card:focus-within { border-color: var(--ink); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.card-media picture, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media--empty { display: grid; place-items: center; height: 100%; color: var(--ink-2); font-weight: 600; }
.card-count { position: absolute; right: 0.625rem; bottom: 0.625rem; padding: 0.2rem 0.625rem; border-radius: var(--r-pill); background: var(--pin); color: var(--on-pin); font-size: var(--fs-xs); font-weight: 600; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s2) var(--s2) var(--s3); }
.card-price { order: 0; margin: 0 0 0.25rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--pin); white-space: nowrap; }
.card-title { margin: 0 0 0.375rem; font: 650 var(--fs-m)/1.35 var(--font-text); letter-spacing: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-meta { margin: 0; color: var(--ink-2); font-size: var(--fs-s); }
.card--sold .card-media img { filter: grayscale(0.6); }
.card .badge { position: absolute; left: 0.625rem; top: 0.625rem; z-index: 2; }

/* Heart: on the photo of each card, labelled on the listing page. Above the card link. */
.fav { position: absolute; right: 0.5rem; top: 0.5rem; z-index: 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: var(--r-pill); background: rgb(251 250 247 / 0.94); color: var(--pin); cursor: pointer; transition: background-color var(--ease), color var(--ease); }
.fav .icon { width: 1.375rem; height: 1.375rem; }
.fav:hover { background: var(--paper); color: var(--action-hover); }
.fav[aria-pressed="true"] { color: var(--action); }
.fav[aria-pressed="true"] .icon { fill: currentColor; }
.fav:focus-visible { outline: 3px solid var(--paper); outline-offset: 1px; box-shadow: 0 0 0 6px var(--ink); }
.fav--label { position: static; display: inline-flex; gap: 0.5rem; width: auto; height: auto; min-height: 2.75rem; padding: 0 0.25rem; background: transparent; font: 600 var(--fs-s)/1.2 var(--font-text); }
.fav--label:hover { background: transparent; }
.fav--label:focus-visible { outline-color: var(--focus); box-shadow: none; }

/* Stock */
.quick-row { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }
.pill { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font: 600 var(--fs-s)/1 var(--font-text); cursor: pointer; transition: background-color var(--ease), border-color var(--ease), color var(--ease); }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--pin); border-color: var(--pin); color: var(--on-pin); }
.pill [data-qn] { font-weight: 500; opacity: 0.85; }
.listing { display: grid; gap: var(--s3); align-items: start; }
.filters { display: none; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s1); }
.filters-title { margin: 0; font: 650 var(--fs-m)/1.3 var(--font-text); color: var(--ink); letter-spacing: 0; }
.facet { margin: 0; padding: var(--s2) 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.facet legend { float: left; width: 100%; margin-bottom: var(--s1); padding: 0; }
.facet legend + * { clear: left; }
.opt { display: flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; font-size: var(--fs-s); cursor: pointer; }
.opt .n, .facet .n { margin-left: auto; color: var(--ink-2); }
.opt:has(input:disabled) { color: var(--ink-2); }
.facet--years { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); }
.facet--years legend { grid-column: 1 / -1; }
.filters > .opt { border-top: 1px solid var(--line); padding-top: var(--s1); }
.filters-foot { display: grid; gap: var(--s1); padding-top: var(--s2); border-top: 1px solid var(--line); }
.filters-close { display: none; }
.filters-apply { display: none; }
.results { min-width: 0; }
.list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); margin-bottom: var(--s2); }
.result-count { margin: 0 auto 0 0; font-weight: 650; }
.sort select { min-width: 13rem; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s2); }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 0.875rem; border: 1.5px solid var(--pin); border-radius: var(--r-pill); background: var(--paper); color: var(--pin); font: 600 var(--fs-xs)/1 var(--font-text); cursor: pointer; }
.chip:hover { background: var(--pin); color: var(--on-pin); }
.results .empty { margin-block: var(--s2); }
.tel-card { display: grid; gap: var(--s1) var(--s3); align-items: center; margin-top: var(--s4); padding: var(--s3); border-radius: var(--r-card); background: var(--stone); }
.tel-card h2 { margin: 0; font-size: var(--fs-h3); }
.tel-card p { margin: 0; color: var(--ink-2); }
.list-note { margin-top: var(--s3); max-width: 75ch; }
@media (min-width: 48rem) { .tel-card { grid-template-columns: 1fr auto; } .tel-card .btn { grid-row: 1 / 3; grid-column: 2; } }

/* Without JS (nojs.css hides .filters); with JS, desktop: the column; phones: a modal panel. */
@media (min-width: 60rem) {
  .listing { grid-template-columns: 16.5rem 1fr; gap: var(--s4); }
  .filters { display: block; position: sticky; top: var(--s2); padding: var(--s2) var(--s3) var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
  .filters-toggle { display: none; }
}
@media (max-width: 59.99rem) {
  .filters { display: none; }
  .filters.is-open { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; overflow-y: auto; padding: var(--s2) var(--s3) calc(var(--foot-h, 9rem) + var(--s2)); scroll-padding-bottom: calc(var(--foot-h, 9rem) + var(--s2)); background: var(--paper); }
  .filters.is-open .filters-close { display: inline-flex; }
  .filters.is-open .filters-apply { display: inline-flex; }
  .filters.is-open .filters-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  .filters-locked { overflow: hidden; }
  .sort { flex: 1 1 12rem; }
  .sort select { min-width: 0; }
}

/* Listing page */
.detail { padding-bottom: var(--s5); }
.detail-grid { display: grid; gap: var(--s4); align-items: start; }
.detail-media { min-width: 0; }
.buy { display: grid; gap: 0; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.buy h1 { margin: var(--s1) 0 var(--s2); font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.25rem); }
.buy-price { margin: 0; font-family: var(--font-display); font-size: var(--fs-price); line-height: 1.1; color: var(--pin); white-space: nowrap; }
.buy-tax { margin: 0.25rem 0 var(--s2); color: var(--ink-2); font-size: var(--fs-xs); }
.buy-facts { margin: 0 0 var(--s3); }
.buy-facts > div { display: flex; justify-content: space-between; gap: var(--s2); padding: 0.625rem 0; border-top: 1px solid var(--line); font-size: var(--fs-s); }
.buy-facts dt { color: var(--ink-2); }
.buy-facts dd { margin: 0; text-align: right; font-weight: 550; }
.buy p { margin: 0 0 var(--s1); }
.buy .card-tags, .buy .badge { margin-bottom: 0; }
.buy-lbc { text-align: center; font-size: var(--fs-s); }
.buy-lbc a { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; color: var(--ink); }
.buy-lbc .icon { width: 1rem; height: 1rem; }
.buy .fav--label { width: 100%; justify-content: center; }
.detail-main { min-width: 0; max-width: 46rem; }
.detail-main > section { margin-top: var(--s5); }
.detail-main h2 { margin-top: 0; font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem); }
.pieces { display: grid; margin: 0; padding: 0; list-style: none; }
.pieces li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .pieces { grid-template-columns: 1fr 1fr; column-gap: var(--s4); } }
.services { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin: var(--s5) 0 0; padding: 0; list-style: none; }
.services li { padding: var(--s2) var(--s3) var(--s3); border-radius: var(--r-card); background: var(--stone); }
.services .icon { color: var(--action); margin-bottom: var(--s1); }
.service-title { margin: 0 0 0.25rem; font-weight: 650; }
.services p:last-child { margin: 0; color: var(--ink-2); font-size: var(--fs-s); }
.detail-source { padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-s); }
.detail-source h2 { font: 650 var(--fs-m)/1.3 var(--font-text); color: var(--ink); letter-spacing: 0; }
.detail-source p { max-width: 60ch; }
.chips-list { display: flex; flex-wrap: wrap; gap: var(--s1); padding: 0; list-style: none; }
.chips-list li { padding: 0.25rem 0.75rem; border-radius: var(--r-pill); background: var(--stone); font-size: var(--fs-s); }
.detail .defs { max-width: 36rem; }
@media (min-width: 64rem) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 22rem; gap: var(--s4) var(--s5); }
  .detail-media { grid-column: 1; grid-row: 1; }
  .buy { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: var(--s3); }
  .detail-main { grid-column: 1; grid-row: 2; }
}

/* Gallery: a scroll-snap strip (phones, no JS); a mosaic of five from 64rem when there are five photos or more. */
.gallery-wrap { position: relative; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-card); background: var(--stone); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.slide { position: relative; overflow: hidden; flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.slide picture, .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide + .slide { content-visibility: auto; contain-intrinsic-size: auto 300px; }
.gallery[data-ready] .slide { cursor: zoom-in; }
.gallery--empty { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--ink-2); font-weight: 600; }
.gallery-open { position: absolute; right: var(--s2); bottom: var(--s2); display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: var(--r-pill); background: var(--pin); color: var(--on-pin); font: 600 var(--fs-s)/1 var(--font-text); cursor: pointer; transition: background-color var(--ease); }
.gallery-open:hover { background: var(--pin-2); }
.gallery-open:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); }
.gallery-open-wide { display: none; }
.lightbox-locked { overflow: hidden; }
@media (min-width: 64rem) {
  .gallery-open-wide { display: inline; }
  .gallery-open-narrow { display: none; }
  .gallery-wrap--mosaic .gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.5rem; aspect-ratio: 16 / 10; overflow: hidden; background: transparent; }
  .gallery-wrap--mosaic .slide { aspect-ratio: auto; min-height: 0; border-radius: 0.5rem; overflow: hidden; }
  .gallery-wrap--mosaic .slide:first-child { grid-row: 1 / 3; }
  .gallery-wrap--mosaic .slide:nth-child(n + 6) { display: none; }
  .gallery-wrap--mosaic .slide + .slide { content-visibility: visible; }
}

/* Full-screen photos (gallery.js) */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 22 16 / 0.96); color: #ffffff; }
.lightbox::backdrop { background: rgb(10 22 16 / 0.96); }
.lightbox-stage { display: flex; align-items: center; justify-content: center; height: 100%; padding: 4rem var(--s2); touch-action: pan-y; }
.lightbox-stage picture { display: contents; }
.lightbox-stage img { max-width: 100%; max-height: calc(100dvh - 8rem); width: auto; height: auto; object-fit: contain; }
.lightbox-count { position: absolute; left: 50%; bottom: var(--s2); translate: -50% 0; margin: 0; font-size: var(--fs-s); }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 1.5px solid rgb(255 255 255 / 0.6); border-radius: var(--r-pill); background: rgb(0 0 0 / 0.45); color: #ffffff; cursor: pointer; transition: background-color var(--ease), color var(--ease); }
.lightbox-btn:hover { background: #ffffff; color: var(--ink); }
.lightbox-btn:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.lightbox-close { right: var(--s2); top: var(--s2); }
.lightbox-prev, .lightbox-next { top: 50%; translate: 0 -50%; }
.lightbox-prev { left: var(--s2); }
.lightbox-next { right: var(--s2); }
@media (max-width: 47.99rem) { .lightbox-prev, .lightbox-next { top: auto; bottom: var(--s1); translate: none; } .lightbox-count { bottom: 1.5rem; } }

/* Sticky bar on phones: phone and "Demander une visite". */
.cta-bar { display: none; }
@media (max-width: 63.99rem) {
  .has-cta-bar { padding-bottom: var(--bar-h); }
  .cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: block; padding: 0.625rem 0 calc(0.625rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
  .cta-bar-inner { display: flex; gap: var(--s1); width: min(100% - 2 * var(--s3), var(--wrap)); margin-inline: auto; }
  .cta-bar .btn--action { flex: 1; }
  .lightbox-locked .cta-bar, .filters-locked .cta-bar { display: none; }
}

/* Contact and visit */
.contact-layout, .visit-layout { display: grid; gap: var(--s4); align-items: start; }
.contact-card, .visit-aside { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.contact-card h2, .visit-aside h2, .visit-title { margin-top: 0; font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem); }
.contact-card p { max-width: 58ch; }
.contact-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-card); }
.contact-phone { margin: var(--s3) 0 var(--s2); font-family: var(--font-display); font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); line-height: 1.1; }
.contact-phone a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--pin); text-decoration: none; white-space: nowrap; }
.contact-phone a:hover { color: var(--action-hover); }
.contact-aside .defs dd { text-align: right; }
.visit-list { display: grid; gap: var(--s2); margin: 0 0 var(--s3); padding: 0; list-style: none; }
.visit-list:empty { display: none; }
.visit-item { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: var(--s2); align-items: center; padding: var(--s1); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.visit-item--gone { grid-template-columns: 1fr auto; padding: var(--s2); background: var(--stone); }
.visit-img { width: 7.5rem; height: 5.625rem; object-fit: cover; border-radius: 0.5rem; }
.visit-body { min-width: 0; }
.visit-name { display: block; margin: 0 0 0.25rem; font-weight: 650; color: var(--ink); }
.visit-price { margin: 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--pin); }
.visit-place { margin: 0; color: var(--ink-2); font-size: var(--fs-s); }
.visit-aside p:last-child { margin-bottom: 0; }
@media (max-width: 29.99rem) {
  .visit-item { grid-template-columns: 5.5rem 1fr; align-items: start; }
  .visit-img { width: 5.5rem; height: 4.125rem; }
  .visit-item .visit-remove { grid-column: 2; justify-self: start; min-height: 2.75rem; margin-top: -0.5rem; }
  .visit-item--gone { grid-template-columns: 1fr; }
  .visit-item--gone .visit-remove { grid-column: 1; }
}
@media (min-width: 60rem) {
  .contact-layout { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .visit-layout { grid-template-columns: 1fr 22rem; gap: var(--s5); }
  .visit-aside { position: sticky; top: var(--s3); }
}

/* Services, legal, boutique pages */
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.375rem; }
