/* Design tokens, reset, typography, shell. Fonts are self-hosted (OFL). */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fraunces-latin.85ae6d0314.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin.0f51a6adb8.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette: sand, deep forest, clay. Contrast pairs are tested in tests/design.test.mjs. */
  --sand-50: #fbf8f3;
  --sand-100: #f4eee4;
  --sand-200: #e8dfd0;
  --line: #d6cab6;
  --ink: #1e2420;
  --ink-soft: #4a524c;
  --forest-700: #1f4a3f;
  --forest-800: #173a31;
  --forest-900: #10291f;
  --clay-600: #a2461f;
  --clay-700: #8a3a16;
  --amber-100: #fff1c9;
  --amber-900: #5c3c00;
  --white: #ffffff;
  --focus: #1e2420;

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

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --step-2: clamp(1.5rem, 1.4vw + 1.15rem, 2.125rem);
  --step-3: clamp(1.875rem, 2.6vw + 1.2rem, 3rem);
  --step-4: clamp(2.375rem, 4.6vw + 1rem, 4.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3.5rem, 7vw, 6rem);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(30 36 32 / 0.06), 0 8px 24px rgb(30 36 32 / 0.08);
  --shadow-lg: 0 2px 6px rgb(16 41 31 / 0.12), 0 24px 48px rgb(16 41 31 / 0.22);
  /* Forest veil behind text laid on a photo (the home hero panel): AA over a white photo, tests/redesign-base.test.mjs. */
  --veil: rgb(16 41 31 / 0.82);
  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-4); max-width: 68ch; }
a { color: var(--forest-700); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-900); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--forest-700); color: var(--white); }
[hidden] { display: none !important; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-8); }
.section--tint { background: var(--sand-100); }
.section--dark { background: var(--forest-800); color: var(--sand-50); }
.section--dark a { color: var(--sand-50); }
.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-3);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay-700);
}
.section--dark .eyebrow { color: #f0c9b2; }
.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 52ch; }
.section--dark .lead { color: #dfe7e2; }
.muted { color: var(--ink-soft); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); color: var(--white); }

/* Placeholder for any unknown value */
.tbc {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px dashed var(--amber-900);
  border-radius: 4px;
  background: var(--amber-100);
  color: var(--amber-900);
  font-size: 0.9em;
  font-weight: 600;
  white-space: normal;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border: 2px solid var(--forest-700); border-radius: 999px;
  background: var(--forest-700); color: var(--white);
  font: 600 var(--step-0)/1.2 var(--font-text);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--forest-900); border-color: var(--forest-900); color: var(--white); }
.btn--ghost { background: transparent; color: var(--forest-700); }
.btn--ghost:hover { background: var(--forest-700); color: var(--white); }
.section--dark .btn { background: var(--sand-50); border-color: var(--sand-50); color: var(--forest-800); }
.section--dark .btn:hover { background: var(--white); color: var(--forest-900); }
.btn--clay { background: var(--clay-600); border-color: var(--clay-600); }
.btn--clay:hover { background: var(--clay-700); border-color: var(--clay-700); }

/* Header: one bar, sticky from tablet width up (on phones it would eat the viewport) */
.site-header { background: var(--sand-50); border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgb(30 36 32 / 0.04); } }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-2) var(--space-5); padding-block: var(--space-3);
}
/* The official logo, as is (scripts/brand-logo.py). 3rem high on phones, 4rem from 48rem: the sizes in layout.mjs follow. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: auto; height: 3rem; }
@media (min-width: 48rem) { .brand-logo { height: 4rem; } }
.site-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-block; padding: var(--space-2) 0; min-height: 2.75rem;
  font-weight: 500; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent;
}
@media (max-width: 30rem) {
  .site-nav ul { gap: 0 var(--space-4); }
  .site-nav a { font-size: 0.95rem; }
}
.site-nav a:hover { border-bottom-color: var(--clay-600); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--forest-700); font-weight: 600; }

/* Breadcrumb */
.breadcrumb { padding-block: var(--space-4) 0; font-size: var(--step--1); color: var(--ink-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--line); }
.breadcrumb a { color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--forest-900); color: #dfe7e2; padding-block: var(--space-8) var(--space-6); font-size: var(--step--1); }
.site-footer a { color: var(--white); }
.site-footer h2 { font: 600 1rem/1.3 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: #f0c9b2; margin-bottom: var(--space-3); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.footer-grid p { margin-bottom: var(--space-2); }
.footer-note { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgb(255 255 255 / 0.18); }
.site-footer .tbc { background: var(--amber-100); color: var(--amber-900); }

/* Generic prose pages */
.page-head { padding-block: var(--space-7) var(--space-5); }
.page-head p { color: var(--ink-soft); font-size: var(--step-1); }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-5); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--space-2); }
.defs { display: grid; gap: 0; margin: 0 0 var(--space-5); border-top: 1px solid var(--line); max-width: 44rem; }
.defs > div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.defs dt { color: var(--ink-soft); }
.defs dd { margin: 0; font-weight: 500; }
@media (max-width: 34rem) { .defs > div { grid-template-columns: 1fr; gap: var(--space-1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.section--flush { padding-top: 0; }
main:focus { outline: none; }

/* Home. The hero: a still of the current site's home video (or the forest gradient when there is no photo), the
   text on a veil of its own, so it reads on any photo. Phones: the photo as a 4:3 band, the text below on forest.
   From 60rem: the photo fills the first screen, the text sits on a --veil panel, the video fades in over the photo. */
.hero { position: relative; isolation: isolate; background: linear-gradient(135deg, var(--forest-800), var(--forest-900)); color: var(--white); }
.hero-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--forest-800); }
.hero-media picture, .hero-media img, .hero-video { width: 100%; height: 100%; }
.hero-media img, .hero-video { object-fit: cover; object-position: 38% 50%; }
.hero-video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.hero.is-playing .hero-video { opacity: 1; }
.hero-inner { padding-block: var(--space-6) var(--space-7); }
.hero-panel { max-width: 38rem; }
.hero h1 { max-width: 15ch; color: var(--white); }
.hero .eyebrow { color: #f0c9b2; }
.hero .lead { color: #dfe7e2; }
.hero-all { margin: var(--space-4) 0 0; }
.hero-all a { color: var(--white); font-weight: 600; }
.quick {
  display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-3);
  margin-top: var(--space-5); padding: var(--space-4); max-width: 34rem;
  background: var(--sand-50); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.quick .field { flex: 1 1 10rem; }
.quick .btn { flex: 1 1 10rem; }
.hero-toggle { position: absolute; left: var(--gutter); bottom: var(--space-5); }
.hero-toggle, .proof-toggle {
  min-height: 2.75rem; padding: var(--space-2) var(--space-4);
  border: 0; border-radius: 999px; background: var(--sand-50); color: var(--ink);
  font: 600 var(--step--1)/1.2 var(--font-text); cursor: pointer; box-shadow: var(--shadow);
}
.hero-toggle:hover, .proof-toggle:hover { background: var(--white); }
/* On a photo of any colour: a white ring inside a dark one, one of the two always contrasts 3:1 or more. */
.hero-toggle:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 7px var(--ink); }
@media (max-width: 59.99rem) { .hero-video, .hero-toggle, .proof-video, .proof-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-video, .hero-toggle, .proof-video, .proof-toggle { display: none; } }
@media (min-width: 60rem) {
  .hero--photo { display: flex; align-items: flex-end; min-height: max(36rem, calc(100svh - 5.6rem)); }
  .hero--photo .hero-media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; }
  .hero--photo .hero-media img, .hero-video { object-position: 50% 50%; }
  .hero--photo .hero-inner { display: flex; justify-content: flex-end; padding-block: var(--space-8); }
  .hero--photo .hero-panel { padding: var(--space-7); border-radius: var(--radius-lg); background: var(--veil); }
  .hero:not(.hero--photo) .hero-inner { padding-block: var(--space-8); }
}

/* Proof band: two clips of the current site, each on an exact frame of itself. Phones and "reduce motion": the
   photo only (lazy). From 60rem the video fades in over the photo once the clip is near the screen. The toggle shares
   its look with the hero's (above), and is hidden with it on phones and with "reduce motion". */
.proof-list { display: grid; gap: var(--space-6); padding: 0; margin: var(--space-5) 0 0; list-style: none; }
.proof-clip { position: relative; }
.proof-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); background: var(--forest-800); }
.proof-media picture, .proof-media img, .proof-video { width: 100%; height: 100%; }
.proof-media img { display: block; }
.proof-media img, .proof-video { object-fit: cover; }
.proof-video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.proof-clip.is-playing .proof-video { opacity: 1; }
.proof-clip h3 { margin: var(--space-4) 0 var(--space-2); }
.proof-clip p { margin: 0 0 var(--space-2); }
.proof-toggle { position: absolute; left: var(--space-4); top: var(--space-4); }
.proof-toggle:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 7px var(--ink); }
@media (min-width: 48rem) { .proof-list { grid-template-columns: repeat(2, 1fr); } }

.steps { counter-reset: step; display: grid; gap: var(--space-5); padding: 0; margin: var(--space-6) 0 0; list-style: none; }
.steps li { counter-increment: step; padding-top: var(--space-4); border-top: 1px solid rgb(255 255 255 / 0.28); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: var(--space-3);
  font: 600 var(--step-3)/1 var(--font-display); color: #f0c9b2;
}
.steps h3 { margin-bottom: var(--space-2); }
.steps p { margin: 0; color: #dfe7e2; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

.contact-band .container { display: grid; gap: var(--space-5); align-items: center; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--sand-100); }
.contact-band h2 { font-size: var(--step-2); }
.contact-band p { margin: 0; color: var(--ink-soft); }
@media (min-width: 52rem) { .contact-band .container { grid-template-columns: 1.4fr 1fr; padding: var(--space-7); } .contact-band .actions { justify-content: end; margin-top: 0; } }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* Forms, cards, listing, detail */
.field { display: grid; gap: var(--space-1); }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }
input[type="number"], select {
  width: 100%; min-height: 3rem; padding: 0.55rem 0.8rem;
  border: 1.5px solid #8a8171; border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font: inherit;
}
input[type="number"]:hover, select:hover { border-color: var(--ink-soft); }
.check { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; cursor: pointer; }
.check input { width: 1.5rem; height: 1.5rem; accent-color: var(--forest-700); }
.btn--small { min-height: 2.75rem; padding: 0.4rem 1rem; font-size: var(--step--1); }
.btn--block { display: flex; width: 100%; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-5); }
.section-head h2 { margin: 0; }
.budgets { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.budget { display: grid; gap: var(--space-1); min-height: 5rem; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.budget:hover { border-color: var(--forest-700); color: var(--ink); transform: translateY(-2px); }
.budget-n { font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }

/* Cards */
.cards { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--sand-200); overflow: hidden; }
.card-media picture, .card-media img { width: 100%; height: 100%; }
.card-media img { object-fit: cover; transition: transform 0.5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media--empty { display: grid; place-items: center; height: 100%; color: var(--ink-soft); font-weight: 500; background: repeating-linear-gradient(135deg, var(--sand-100) 0 14px, var(--sand-200) 14px 28px); }
.card--sold .card-media img { filter: grayscale(0.7); opacity: 0.85; }
.card-body { display: grid; gap: var(--space-1); padding: var(--space-4); }
.card-where { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.card-title { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:focus-visible { outline-offset: -3px; }
.card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-title a:focus-visible { outline: none; }
.card-price { margin: var(--space-2) 0 0; font: 600 1.5rem/1.1 var(--font-display); color: var(--forest-800); }
.card-facts { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: var(--space-1) 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: var(--step--1); }
.card-facts li + li::before { content: "·"; margin-right: var(--space-3); }
.badge { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: var(--step--1); font-weight: 600; line-height: 1.4; }
.card-media .badge { position: absolute; left: var(--space-3); top: var(--space-3); }
.badge--sold { background: var(--ink); color: var(--white); }
.badge--reserved { background: var(--clay-600); color: var(--white); }
.badge--sale { background: var(--forest-700); color: var(--white); }

/* Listing page: filters in a sticky column from 64rem, behind a "Filtrer" button below */
.listing { display: flex; gap: var(--space-6); align-items: flex-start; }
.results { flex: 1; min-width: 0; }
.filters { display: grid; gap: var(--space-3); padding: var(--space-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.filters-foot { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.result-count { margin: 0 auto 0 0; font: 600 var(--step-1)/1.2 var(--font-display); }
.sort { display: flex; align-items: center; gap: var(--space-2); }
.sort label { white-space: nowrap; }
.sort { min-width: 0; max-width: 100%; }
.sort select { width: auto; min-width: 0; max-width: 100%; min-height: 2.75rem; }
@media (max-width: 63.99rem) {
  .filters:not(.is-open) { display: none; }
  /* Modal panel (filters.js): the page behind is inert and dimmed, the buttons stay in view at the bottom. */
  .filters.is-open { position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 85vh; overflow-y: auto; overscroll-behavior: contain; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 0 0 100vmax rgb(16 20 18 / 0.55); }
  /* --foot-h: height of the pinned buttons, measured by filters.js; a focused field scrolls above them. */
  .filters.is-open { scroll-padding: var(--space-3) 0 calc(var(--foot-h, 8rem) + var(--space-2)); }
  .filters.is-open .filters-foot { position: sticky; bottom: calc(-1 * var(--space-4)); margin: 0 calc(-1 * var(--space-4)) calc(-1 * var(--space-4)); padding: var(--space-3) var(--space-4) var(--space-4); background: var(--white); border-top: 1px solid var(--line); }
  .filters-locked { overflow: hidden; }
  .filters.is-open > :nth-last-child(-n + 2), .filters.is-open .filters-foot { grid-column: 1 / -1; }
  .filters-foot .btn { flex: 1; }
  /* "Voir les annonces (100)" on a row of its own: one line at 320 px, not three. */
  .filters-foot .filters-apply { flex-basis: 100%; }
  .sort { width: 100%; }
  .sort select { flex: 1 1 0; }
}
@media (min-width: 64rem) {
  .filters { flex: 0 0 16rem; position: sticky; top: 5.5rem; }
  .filters-toggle, .filters-apply, .filters-close { display: none; }
}
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.chips:empty { display: none; }
.chip { min-height: 2.75rem; padding: 0.3rem 0.9rem; border: 1px solid var(--forest-700); border-radius: 999px; background: var(--sand-100); color: var(--forest-800); font: 500 var(--step--1)/1.2 var(--font-text); cursor: pointer; }
.chip::after { content: " ×"; font-weight: 700; }
.chip:hover { background: var(--forest-700); color: var(--white); }
.card-count { position: absolute; right: var(--space-2); bottom: var(--space-2); padding: 0.1rem 0.55rem; border-radius: 999px; background: rgb(30 36 32 / 0.78); color: var(--white); font-size: 0.8125rem; font-weight: 500; }
@media (max-width: 39.99rem) {
  .cards:has(.card--row) { gap: var(--space-3); }
  .card--row { flex-direction: row; }
  .card--row .card-media { flex: 0 0 9.5rem; aspect-ratio: auto; min-height: 7.5rem; }
  .card--row .card-body { align-content: start; padding: var(--space-3); }
  .card--row .card-title { font-size: 1rem; }
  .card--row .card-price { margin-top: var(--space-1); font-size: 1.25rem; }
  .card--row .badge { left: var(--space-2); top: var(--space-2); }
}
@media (min-width: 64rem) { .listing .cards { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); } }
.empty { padding: var(--space-6); text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-title { font: 600 var(--step-1)/1.3 var(--font-display); }
.list-note { margin-top: var(--space-6); font-size: var(--step--1); color: var(--ink-soft); }

/* Detail */
.banner { padding: var(--space-3) 0; background: var(--ink); color: var(--white); }
.detail-grid { display: grid; gap: var(--space-5); padding-top: var(--space-5); padding-bottom: var(--space-7); grid-template-columns: minmax(0, 1fr); }
.detail-aside h1 { font-size: var(--step-3); }
.detail-status { display: flex; gap: var(--space-2); margin: 0 0 var(--space-3); min-height: 1.75rem; }
.detail-price { font: 600 var(--step-3)/1.1 var(--font-display); color: var(--forest-800); margin-bottom: var(--space-2); }
.detail-where { color: var(--ink-soft); }
.detail-note { font-size: var(--step--1); color: var(--ink-soft); }
.detail-aside .btn { margin-top: var(--space-2); }
.detail-facts { margin: var(--space-2) 0 0; font-size: var(--step-0); color: var(--ink); }
@media (min-width: 64rem) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 24rem; grid-template-areas: "media aside" "main aside"; gap: var(--space-6) var(--space-7); align-items: start; }
  .detail-media { grid-area: media; }
  .detail-main { grid-area: main; }
  .detail-aside { grid-area: aside; position: sticky; top: 5.5rem; padding: var(--space-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .detail-aside h1 { font-size: var(--step-2); }
}
.gallery { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--sand-200); scrollbar-width: thin; }
.slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: contain; }
.slide figcaption { position: absolute; left: var(--space-3); bottom: var(--space-3); padding: 0.15rem 0.6rem; border-radius: 999px; background: rgb(30 36 32 / 0.82); color: var(--white); font-size: var(--step--1); }
.gallery--empty { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--ink-soft); font-weight: 500; background: repeating-linear-gradient(135deg, var(--sand-100) 0 14px, var(--sand-200) 14px 28px); }
.gallery-wrap { position: relative; }
/* Only gallery.js opens the full-screen view: no zoom cursor without it. */
.gallery[data-ready] .slide { cursor: zoom-in; }
.lightbox-locked { overflow: hidden; }
/* Photos 2 and next, and the cards at the bottom, are not rendered (so not loaded) until they come near the screen:
   on a phone they would otherwise share the bandwidth with the first photo (Lighthouse mobile LCP). */
.slide + .slide { content-visibility: auto; }
.detail > .section--tint { content-visibility: auto; contain-intrinsic-size: auto 40rem; }
.gallery-open { position: absolute; right: var(--space-3); top: var(--space-3); border-color: var(--white); background: rgb(255 255 255 / 0.94); color: var(--forest-800); }
.gallery-open:hover { background: var(--white); color: var(--forest-900); }
/* On top of a photo: white ring plus a dark one around it (as .hero-toggle on the home), visible on light and dark pixels. */
.gallery-open:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 7px var(--ink); }
.thumbs { display: none; }
@media (min-width: 48rem) { .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: var(--space-2); margin: var(--space-3) 0 0; padding: 0; list-style: none; } }
.thumbs a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; background: var(--sand-200); }
.thumbs a:hover { border-color: var(--forest-700); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-main section + section { margin-top: var(--space-6); }
.detail-main h2 { font-size: var(--step-2); }
.defs--wide { max-width: none; }
@media (min-width: 48rem) { .defs--wide { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); } .defs--wide > div { grid-template-columns: minmax(7rem, 10rem) 1fr; } }

/* Full-screen photos (gallery.js) */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(16 20 18 / 0.96); color: var(--white); }
.lightbox::backdrop { background: rgb(16 20 18 / 0.96); }
.lightbox-stage { display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 100%; padding: 3.5rem var(--space-3); touch-action: pan-y; }
.lightbox-stage picture { display: contents; }
.lightbox-stage img { max-width: 100%; max-height: calc(100dvh - 7rem); width: auto; height: auto; object-fit: contain; }
.lightbox-count { position: absolute; left: 50%; bottom: var(--space-3); transform: translateX(-50%); margin: 0; font-size: var(--step--1); }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border: 2px solid rgb(255 255 255 / 0.6); border-radius: 999px; background: rgb(0 0 0 / 0.5); color: var(--white); font: 400 1.75rem/1 var(--font-text); cursor: pointer; }
.lightbox-btn:hover { background: var(--white); color: var(--ink); }
.lightbox-btn:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.lightbox-close { right: var(--space-3); top: var(--space-3); }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: var(--space-3); }
.lightbox-next { right: var(--space-3); }
@media (max-width: 47.99rem) { .lightbox-prev, .lightbox-next { top: auto; bottom: var(--space-2); transform: none; } .lightbox-count { bottom: var(--space-5); } }
.chips-list { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0; list-style: none; }
.chips-list li { padding: 0.25rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }

/* Mobile contact bar */
.cta-bar { display: none; }
@media (max-width: 63.99rem) {
  .has-cta-bar main { padding-bottom: 5rem; }
  .cta-bar { display: block; position: fixed; inset: auto 0 0 0; z-index: 20; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(30 36 32 / 0.1); }
  .cta-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--gutter); }
  .cta-bar-price { font: 600 1.35rem/1.1 var(--font-display); color: var(--forest-800); }
  .cta-bar .btn { flex: 0 1 12rem; min-height: 2.75rem; padding: 0.45rem 1rem; font-size: var(--step--1); line-height: 1.2; text-align: center; }
}
.card-price .tbc, .detail-price .tbc, .cta-bar-price .tbc { font: 600 0.9rem/1.2 var(--font-text); }

.h-note { display: block; margin-top: var(--space-1); font: 400 var(--step--1)/1.4 var(--font-text); color: var(--ink-soft); }
.photo-note { margin-top: var(--space-3); font-size: var(--step--1); color: var(--ink-soft); }
.cta-bar-price .tbc { display: block; }
