/* Fox Leisure: one stylesheet for the whole site.
   Tokens first. Colour roles are listed in design/design-direction.md. */

@font-face { font-family: "Zilla Slab"; src: url("/assets/fonts/zilla-slab-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("/assets/fonts/zilla-slab-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* surfaces */
  --bg: #e9eeeb;            /* page: soft field green-grey, not white */
  --surface: #dfe6e2;       /* raised band, pale map-paper green-grey */
  --card: #ffffff;
  --line: #c9d3ce;
  --ink-surface: #000000;   /* dark bands: true black (Alan, 17 Nov) */

  /* text */
  --ink: #1e2a30;           /* 14.7:1 on white */
  --muted: #56636b;         /* 6.2:1 on white, 5.6:1 on --surface */
  --on-dark: #ffffff;
  --on-dark-muted: #c9d2cf; /* 9.5:1 on --ink-surface */

  /* brand */
  --red: #e01a31;           /* fills: main action, the red line. White text on it 4.8:1 */
  --red-press: #c21129;
  --red-text: #c21129;      /* small red text on light, 6.2:1 */
  --red-bright: #ff6b78;    /* red text on dark, 5.3:1 */
  --red-tint: #fde9eb;

  /* status (listings and, if they ever add hours, open / closing soon / closed) */
  --green: #1e6b4a;  --green-tint: #e5f2eb;   /* new listing, re-available, open */
  --amber: #8a5300;  --amber-tint: #fdf1dc;   /* under offer, closing soon */
  --closed: #c21129; --closed-tint: #fde9eb;  /* price reduced, closed */

  /* type */
  --display: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);    /* 17 to 19px body */
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.3rem, 1.6rem + 2.8vw, 3.85rem);
  --small: 0.9375rem;

  /* layout */
  --content: 78rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 2rem + 6vw, 7rem);
  --radius: 6px;
  --bar-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--on-dark); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.005em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.02; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 600; }
p { margin: 0 0 1em; max-width: 65ch; }

.wrap { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons: every button looks and moves the same ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 3.1rem; padding: 0.7rem 1.35rem;
  font: 700 1.0625rem/1.2 var(--body);
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--main { background: var(--red); color: #fff; }
.btn--main:hover { background: var(--red-press); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--quiet:hover { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
.utility { background: var(--ink-surface); color: var(--on-dark-muted); font-size: var(--small); }
.utility .wrap { display: flex; justify-content: flex-end; gap: 1.75rem; padding-block: 0.4rem; }
.utility a { color: var(--on-dark); text-decoration: none; font-weight: 700; }
.utility a:hover { color: var(--red-bright); }

.site-header { background: #ffffff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }
.logo { flex: none; display: block; width: clamp(9.5rem, 7rem + 6vw, 12.5rem); }
.logo img { width: 100%; }
.site-nav { margin-left: auto; flex: 0 1 auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 0.25rem clamp(0.9rem, 0.2rem + 1vw, 1.4rem); }
.site-nav a { text-decoration: none; font-weight: 700; padding-block: 0.35rem; display: inline-block; border-bottom: 2px solid transparent; white-space: nowrap; }
.header-cta { flex: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero__lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* the signature: a surveyor's red boundary line drawn round the photo */
.plot { margin: 0; }
.plot__frame { position: relative; }
.plot__photo { border-radius: 4px; overflow: hidden; background: var(--surface); }
.plot__photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 60%; }
.plot__line { position: absolute; inset: -0.9rem; width: calc(100% + 1.8rem); height: calc(100% + 1.8rem); overflow: visible; pointer-events: none; }
.plot__line path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.plot figcaption { margin-top: 1.4rem; font-size: var(--small); color: var(--muted); }
.plot figcaption a { color: var(--ink); font-weight: 700; }

.js .plot__line path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 1.6s cubic-bezier(.6,.05,.25,1) 0.25s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

/* ---------- quick facts ---------- */
.facts { background: var(--ink-surface); color: var(--on-dark); border-block: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 1.5rem 1.25rem 1.6rem; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-family: var(--display); font-weight: 700; font-size: var(--step-1); line-height: 1.2; margin-bottom: 0.25rem; }
.facts span { color: var(--on-dark-muted); font-size: var(--small); line-height: 1.45; display: block; }

/* ---------- phone action bar ---------- */
.action-bar { display: none; }

@media (max-width: 960px) {
  .utility { display: none; }
  .js .menu-btn {
    display: inline-flex; margin-left: auto; align-items: center; gap: 0.5rem;
    min-height: 2.9rem; padding: 0.5rem 0.9rem; border: 2px solid var(--ink); border-radius: var(--radius);
    background: transparent; color: var(--ink); font: 700 1rem/1 var(--body); cursor: pointer;
    transition: transform 120ms ease;
  }
  .js .menu-btn:active { transform: translateY(1px); }
  .site-header .wrap { flex-wrap: wrap; min-height: 4.25rem; }
  .site-nav { margin-left: 0; width: 100%; padding-bottom: 0.75rem; }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .header-cta { display: none; }
  .hero__actions .btn--main { display: none; } /* the phone bar carries the main action */

  .hero { padding-top: 1.25rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero .plot { order: -1; margin: 0.9rem 0.9rem 0; }
  .plot__photo img { aspect-ratio: 16 / 10; }
  .plot figcaption { margin-top: 1.2rem; }
  .hero__actions .btn { flex: 1 1 100%; }

  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 1.25rem 1rem 1.3rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .facts li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }

  body { padding-bottom: var(--bar-h); }
  .action-bar {
    display: grid; grid-template-columns: 1fr auto; gap: 0.6rem;
    position: fixed; inset: auto 0 0 0; z-index: 50;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(30, 42, 48, 0.08);
  }
  .action-bar .btn { min-height: 2.9rem; padding-inline: 1rem; }
  .call-choice { position: relative; }
  .call-choice summary { list-style: none; }
  .call-choice summary::-webkit-details-marker { display: none; }
  .call-choice__list {
    position: absolute; right: 0; bottom: calc(100% + 0.6rem); min-width: 15rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(30, 42, 48, 0.18); padding: 0.4rem;
  }
  .call-choice__list a { display: block; padding: 0.75rem 0.8rem; text-decoration: none; border-radius: 4px; }
  .call-choice__list a:hover { background: var(--surface); color: var(--ink); }
  .call-choice__list small { display: block; color: var(--muted); font-size: 0.875rem; }
}

@media (max-width: 380px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li:nth-child(even) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts li:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .btn:hover, .btn:active { transform: none; }
}

/* ---------- Alan's look, 17 Nov: light hero, black strips, stronger tabs and buttons ---------- */
.hero { background: linear-gradient(180deg, #e9eeeb 0%, #dfe6e2 100%); }
.utility { background: #000000; }
.facts { background: #000000; border-block: 0; }
.facts li { border-color: #2e2e2e !important; }

/* buttons: bigger, bolder, with a lift and a soft glow */
.btn {
  min-height: 3.6rem; padding: 0.85rem 1.7rem;
  font: 700 1.15rem/1.15 var(--body); letter-spacing: 0.005em;
  border-radius: 8px; border-width: 2.5px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 10px 22px -8px rgba(0, 0, 0, 0.35);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22), 0 16px 28px -10px rgba(0, 0, 0, 0.4); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 4px 10px -6px rgba(0, 0, 0, 0.35); }
.btn--main { background: var(--red); color: #fff; box-shadow: 0 3px 0 #9e0d20, 0 12px 26px -8px rgba(224, 26, 49, 0.55); }
.btn--main:hover { background: #f0233b; color: #fff; box-shadow: 0 5px 0 #9e0d20, 0 18px 32px -10px rgba(224, 26, 49, 0.6); }
.btn--main:active { box-shadow: 0 1px 0 #9e0d20, 0 6px 12px -6px rgba(224, 26, 49, 0.5); }
.btn--quiet { background: #ffffff; color: #000000; border-color: #000000; }
.btn--quiet:hover { background: #000000; color: #ffffff; }
.header-cta { min-height: 3.2rem; padding: 0.7rem 1.4rem; font-size: 1.0625rem; }

/* tabs: proper tabs in the white header */
.site-header .wrap { min-height: 5.5rem; gap: 1.25rem; }
.logo { width: clamp(9.5rem, 7rem + 5vw, 11.5rem); }
.site-nav ul { gap: 0.35rem; }
.site-nav a {
  font-size: 1.0625rem; color: #000000;
  padding: 0.6rem 0.85rem; border-radius: 8px; border-bottom: 0;
  background: #eef1ef; box-shadow: inset 0 -3px 0 transparent;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.site-nav a:hover { background: #000000; color: #ffffff; border-bottom: 0; }
.site-nav a[aria-current="page"] { background: #ffffff; color: #000000; box-shadow: inset 0 -3px 0 var(--red), 0 0 0 1px #d0d6d3; }

@media (max-width: 1240px) {
  .site-nav a { padding: 0.55rem 0.6rem; font-size: 1rem; }
}
@media (max-width: 960px) {
  .site-nav ul { gap: 0; }
  .site-nav a { background: transparent; border-radius: 0; padding: 0.9rem 0.25rem; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .site-nav a:hover { background: #000000; color: #ffffff; padding-inline: 0.75rem; }
  .btn { min-height: 3.3rem; padding: 0.75rem 1.2rem; font-size: 1.0625rem; }
  .action-bar .btn { min-height: 3.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
}
@media (min-width: 961px) {
  .hero__actions { flex-wrap: nowrap; }
  .hero__actions .btn { padding-inline: 1.35rem; font-size: 1.1rem; }
}
/* bigger logo (Alan, 17 Nov) */
.logo { width: clamp(11.5rem, 8rem + 7vw, 15.5rem); }
.site-header .wrap { min-height: 6.25rem; }
@media (max-width: 960px) { .site-header .wrap { min-height: 4.75rem; } }
/* strips back to deep slate (Alan, 17 Nov) */
.utility, .facts { background: #1e2a30; }
.facts li { border-color: #3a4a52 !important; }
/* main button polish (Alan, 17 Nov): richer red, crisp edge, gentle shine */
.btn--main {
  background: linear-gradient(180deg, #f2384d 0%, #e01a31 55%, #c9142a 100%);
  border: 0; border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.18), 0 6px 16px -6px rgba(201,20,42,.7);
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.btn--main:hover { background: linear-gradient(180deg, #ff4a5e 0%, #ea2038 55%, #d0162d 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.18), 0 10px 22px -8px rgba(201,20,42,.75); }
.btn--main:active { background: #c21129; box-shadow: inset 0 2px 4px rgba(0,0,0,.25); }
.btn--quiet { border-radius: 10px; }

/* =================== full site (17 Nov) =================== */
.muted { color: var(--muted); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2rem, 1rem + 3vw, 4rem); }
.section--tint { background: var(--surface); }
.section--dark { background: #1e2a30; color: #fff; }
.section--dark p { color: var(--on-dark-muted); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.section--dark .section-head p { color: var(--on-dark-muted); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.btn--on-dark { background: transparent; color: #fff; border-color: #fff; }
.btn--on-dark:hover { background: #fff; color: #000; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.narrow { max-width: 46rem; }

/* red swoosh under key headings: draws in when seen */
h2 .swoosh { display: block; width: min(12rem, 60%); height: 0.6rem; margin-top: 0.35rem; overflow: visible; }
.swoosh path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.js .swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.6,.05,.25,1) .35s; }
.js .is-in .swoosh path { stroke-dashoffset: 0; }

/* page heads */
.page-head { background: linear-gradient(180deg, #e9eeeb 0%, #dfe6e2 100%); padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.5rem) clamp(2rem, 1rem + 3vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.page-head__lead { font-size: var(--step-1); color: var(--muted); max-width: 44ch; line-height: 1.5; }
.crumb { font-size: var(--small); color: var(--muted); margin-bottom: 1rem; }
.crumb a { color: var(--ink); }

/* steps (a real sequence) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.steps li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 3px solid var(--red); display: grid; place-items: center; font: 700 1.3rem/1 var(--display); color: var(--red-text); }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); }

/* park cards */
.park-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem); }
.park-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, opacity 700ms ease; }
.park-card:hover { box-shadow: 0 18px 36px -18px rgba(30,42,48,.45); border-color: #b9c4bf; }
.park-card__link { display: block; text-decoration: none; color: inherit; height: 100%; }
.park-card__link:hover { color: inherit; }
.park-card__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.park-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.park-card:hover .park-card__photo img { transform: scale(1.06); }
.park-card__photo .tag { position: absolute; left: 0.75rem; top: 0.75rem; }
.park-card__body { padding: 1.1rem 1.2rem 1.35rem; }
.park-card__ref { font-size: 0.875rem; color: var(--muted); margin: 0 0 0.2rem; }
.park-card__county { font-size: var(--step-1); margin: 0 0 0.25rem; font-weight: 700; }
.park-card__price { font: 700 1.15rem/1.3 var(--display); color: var(--red-text); margin: 0 0 0.6rem; }
.park-card__price span { color: var(--muted); font-family: var(--body); font-weight: 400; font-size: 0.9rem; }
.park-card__head { font-size: 0.975rem; color: var(--ink); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.park-card.is-hidden { display: none; }

/* status tags (colour role map) */
.tag { display: inline-block; font: 700 0.8125rem/1 var(--body); padding: 0.45rem 0.65rem; border-radius: 999px; letter-spacing: 0.01em; }
.tag--new { background: var(--green-tint); color: var(--green); }
.tag--offer { background: var(--amber-tint); color: var(--amber); }
.tag--reduced { background: var(--red-tint); color: var(--red-text); }
.tag--sold { background: #1e2a30; color: #fff; }
.tag--plain { background: #fff; color: var(--ink); }
.section--dark .tag--sold { background: #fff; color: #1e2a30; }

/* filters */
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr) auto; gap: 0.9rem; align-items: end; margin-bottom: 1.75rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.filters label { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.9375rem; }
.filters select, .filters input, .form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--body); color: var(--ink); background: #fff; border: 2px solid #b9c4bf; border-radius: 8px; padding: 0.7rem 0.8rem; width: 100%; min-height: 3rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.filters select:focus, .filters input:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(224,26,49,.18); }
.filters__count { margin: 0; font-weight: 700; white-space: nowrap; padding-bottom: 0.7rem; }
.empty { padding: 2rem; text-align: center; background: var(--surface); border-radius: 10px; }

/* sold strip */
.sold-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.sold-strip li { display: grid; gap: 0.25rem; padding: 1.2rem; border: 1px solid #3a4a52; border-radius: 10px; }
.sold-strip strong { font: 700 var(--step-1)/1.2 var(--display); margin-top: 0.5rem; }
.sold-strip span:not(.tag) { color: var(--on-dark-muted); font-size: 0.95rem; }
.sold-strip .tag { justify-self: start; }
.sold-strip--light li { border-color: var(--line); background: #fff; }
.sold-strip--light span:not(.tag) { color: var(--muted); }

/* people */
.people__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.person { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.4rem; align-items: start; }
.person img { border-radius: 10px; aspect-ratio: 400/432; object-fit: cover; width: 100%; }
.person h3 { margin-bottom: 0.2rem; }
.person__role { color: var(--red-text); font-weight: 700; margin-bottom: 0.6rem; }
.person p { color: var(--muted); }
.person--stack { background: var(--surface); padding: 1.25rem; border-radius: 10px; }

/* register band + closing */
.register-band { background: #1e2a30; color: #fff; }
.register-band__inner, .closing__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.register-band h2, .closing h2 { font-size: var(--step-2); margin-bottom: 0.3rem; }
.register-band p { color: var(--on-dark-muted); margin: 0; }
.register-band .btn--quiet { background: transparent; color: #fff; border-color: #fff; }
.register-band .btn--quiet:hover { background: #fff; color: #000; }
.closing { background: linear-gradient(180deg, #e9eeeb, #dfe6e2); border-top: 1px solid var(--line); }
.closing__inner { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.closing h2 { font-size: var(--step-3); }
.closing p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.closing__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* two-column content */
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { position: relative; padding: 0.35rem 0 0.35rem 2rem; }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.85rem; width: 0.95rem; height: 0.5rem; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.stack { display: grid; gap: 1.25rem; }
.panel { background: var(--surface); border-radius: 10px; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-left: 4px solid var(--red); }
.panel p { color: var(--muted); margin: 0; }
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2rem; }

/* office cards */
.office-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.office-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem 1.4rem; }
.office-card p:last-child { margin-bottom: 0; }
.office-card--big { padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.office-card--big h2 { font-size: var(--step-2); margin-bottom: 0.2rem; }

/* forms */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); box-shadow: 0 24px 48px -28px rgba(30,42,48,.35); position: relative; }
.form-wrap::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: 12px 12px 0 0; background: var(--red); }
.form { display: grid; gap: 1rem; }
.form label, .form legend { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.975rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem 1rem; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.form .check { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 400; padding: 0.55rem 0.8rem; border: 2px solid #b9c4bf; border-radius: 999px; cursor: pointer; transition: border-color 140ms, background-color 140ms; }
.form .check:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.form .check input { width: 1.1rem; height: 1.1rem; min-height: 0; padding: 0; accent-color: var(--red); }
.form .opt { font-weight: 400; color: var(--muted); }
.form__small { font-size: 0.875rem; color: var(--muted); margin: 0; }
.form button { justify-self: start; }
.form-status { margin: 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red-text); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.more summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 0.4rem 0; }
.more[open] { display: grid; gap: 1rem; }
.request { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.request .form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.25rem, 1rem + 2vw, 2rem); }
.request .office-card { margin-top: 1.25rem; }

/* park detail */
.park { padding-block: clamp(1.25rem, 1rem + 2vw, 2.5rem) var(--section); }
.park__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.gallery__main { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface); }
.js .gallery__main { aspect-ratio: 4 / 3; }
.gallery__img { width: 100%; margin-bottom: 0.75rem; }
.js .gallery__img { position: absolute; inset: 0; height: 100%; object-fit: cover; margin: 0; opacity: 0; transform: scale(1.03); transition: opacity 450ms ease, transform 900ms ease; }
.js .gallery__img.is-active { opacity: 1; transform: scale(1); }
.gallery__main .tag { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2; }
.gallery__thumbs { display: none; }
.js .gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.5rem; margin-top: 0.6rem; }
.gallery__thumbs button { padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; opacity: 0.75; transition: opacity 140ms, border-color 140ms, transform 140ms; }
.gallery__thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.gallery__thumbs button[aria-current="true"] { border-color: var(--red); opacity: 1; }
.park__ref { color: var(--muted); font-size: var(--small); margin-bottom: 0.3rem; }
.park__info h1 { font-size: var(--step-3); margin-bottom: 0.3rem; }
.park__price { font: 700 var(--step-2)/1.2 var(--display); color: var(--red-text); }
.park__price span { font: 400 1rem var(--body); color: var(--muted); }
.park__head { font-size: var(--step-1); line-height: 1.45; font-weight: 700; }
.park__bullets { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.park__bullets li { margin-bottom: 0.45rem; }
.park__bullets li::marker { color: var(--red); }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 2rem 3rem; font-weight: 700; }

/* footer */
.site-footer { background: #1e2a30; color: var(--on-dark-muted); padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) 1.5rem; font-size: 0.975rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--red-bright); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { width: 11rem; margin-bottom: 1rem; }
.footer-h { font-size: 1.15rem; color: #fff; margin-bottom: 0.6rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-legal { border-top: 1px solid #3a4a52; margin-top: 2rem; padding-top: 1.25rem; font-size: 0.85rem; max-width: none; }

/* ---------- animation ---------- */
.js .anim-in { opacity: 0; transform: translateY(16px); animation: rise 700ms cubic-bezier(.2,.7,.2,1) forwards; }
.js .anim-in:nth-child(2) { animation-delay: 120ms; }
.js .anim-in:nth-child(3) { animation-delay: 240ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease, border-color 220ms ease; transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .park-card.is-in:hover { transform: translateY(-4px); transition-delay: 0ms; }
.tag--new { position: relative; }
.tag--new::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(30,107,74,.45); animation: ping 2.4s ease-out 1.2s 2; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(30,107,74,0); } 100% { box-shadow: 0 0 0 0 rgba(30,107,74,0); } }

@media (max-width: 960px) {
  .steps, .people__grid, .two-col, .office-pair, .request, .park__grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters__search { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .person { grid-template-columns: 6.5rem 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .anim-in, .js [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .swoosh path, .js .plot__line path { stroke-dashoffset: 0 !important; animation: none !important; transition: none !important; }
  .park-card:hover .park-card__photo img { transform: none; }
  .tag--new::after { animation: none; }
}
.facts strong .count { display: inline; font: inherit; color: inherit; }

/* ===== bigger hero photo + moving parts (Alan, 17 Nov) ===== */
@media (min-width: 961px) {
  .hero { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); overflow: hidden; }
  .hero .wrap { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
  .hero .plot { margin-right: calc(-1 * max(var(--gutter), (100vw - var(--content)) / 2 + var(--gutter)) + 1.4rem); }
  .hero .plot__photo .slide { aspect-ratio: 16 / 11; }
  .hero h1 { font-size: clamp(2.3rem, 1.4rem + 2.4vw, 3.4rem); }
}
/* slideshow: crossfade with a slow drift */
[data-slides] { position: relative; }
.slide { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.js [data-slides] .slide { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.js [data-slides] .slide.is-active { position: relative; opacity: 1; animation: drift 9s ease-out forwards; }
html:not(.js) [data-slides] .slide:not(.is-active) { display: none; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.slide-dots { position: absolute; right: 1rem; bottom: 1rem; display: flex; gap: 0.45rem; z-index: 3; }
.slide-dots button { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); padding: 0; cursor: pointer; transition: transform 140ms, background-color 140ms; }
.slide-dots button[aria-current="true"] { background: #fff; transform: scale(1.2); }
.plot figcaption { transition: opacity 400ms ease; }
.plot figcaption.is-fading { opacity: 0; }

/* carousel of latest parks: swipe, drag or use the arrows */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 22rem); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0.5rem 0.25rem 1.25rem; scrollbar-width: thin; cursor: grab; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel__track.is-dragging a { pointer-events: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__nav { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 0.5rem; }
.carousel__btn { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 2.5px solid #000; background: #fff; font: 700 1.9rem/1 var(--body); cursor: pointer; transition: transform 140ms, background-color 140ms, color 140ms; }
.carousel__btn:hover { background: #000; color: #fff; transform: translateY(-2px); }
.carousel__btn:disabled { opacity: 0.35; transform: none; background: #fff; color: #000; cursor: default; }

/* header tightens as you scroll */
.site-header { position: sticky; top: 0; transition: box-shadow 200ms ease; }
.site-header .wrap { transition: min-height 200ms ease; }
.logo { transition: width 200ms ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(30,42,48,.45); }
.site-header.is-scrolled .wrap { min-height: 4.4rem; }
.site-header.is-scrolled .logo { width: clamp(9rem, 7rem + 4vw, 11rem); }

@media (prefers-reduced-motion: reduce) {
  .js [data-slides] .slide.is-active { animation: none; }
  .carousel__track { scroll-behavior: auto; }
}
@media (min-width: 961px) { .hero__actions { flex-wrap: wrap; } .hero__actions .btn { white-space: nowrap; } }

/* ===== more colour, white stays the main colour (Alan, 17 Nov) ===== */
:root { --bg: #ffffff; --field: #eaf3ee; --field-deep: #1e6b4a; --blush: #fdeef0; --sand: #fbf5ea; }
body { background: #ffffff; }

/* hero: white, with a soft field-green panel behind the photo */
.hero { background: linear-gradient(90deg, #ffffff 0 42%, var(--field) 42% 100%); }
@media (max-width: 960px) { .hero { background: linear-gradient(180deg, var(--field) 0 15rem, #ffffff 15rem 100%); } }

/* inner page heads: green field with a red base line */
.page-head { background: var(--field); border-bottom: 4px solid var(--red); }

/* tints */
.section--tint { background: var(--field); }
.closing { background: var(--blush); border-top: 0; }

/* how it works: filled red numbers on soft cards */
.steps li { background: var(--sand); border-radius: 12px; padding: 4.6rem 1.4rem 1.5rem; }
.steps li::before { top: 1.3rem; left: 1.4rem; background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 6px 14px -6px rgba(224,26,49,.6); }

/* cards: a coloured top edge by status */
.park-card { border-top: 4px solid var(--line); }
.park-card:has(.tag--new) { border-top-color: var(--field-deep); }
.park-card:has(.tag--offer) { border-top-color: #d99a2b; }
.park-card:has(.tag--reduced) { border-top-color: var(--red); }

/* people */
.person { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 12px; padding: 1.25rem; }
.person--stack { background: #fff; }

/* buyer band in field green */
.register-band { background: var(--field-deep); }
.register-band p { color: #d6ebe0; }

/* panels and office cards */
.panel { background: var(--sand); }
.office-card { border-top: 4px solid var(--field-deep); }
.office-card--big:nth-child(2) { border-top-color: var(--red); }

/* filters and forms pick up a little colour */
.filters { background: var(--field); border-color: #cfe2d7; }
.form-wrap { background: #fff; }
.request .form { border-top: 5px solid var(--red); }

/* tabs: soft green, black on hover */
.site-nav a { background: var(--field); }
@media (max-width: 960px) { .site-nav a { background: transparent; } }

/* footer gets a red top line */
.site-footer { border-top: 5px solid var(--red); }

/* darker features on the selling page (Alan, 17 Nov) */
.form-wrap { background: #1e2a30; border-color: #1e2a30; color: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.form-wrap h2 { color: #fff; }
.form-wrap > p, .form-wrap .form__small, .form-wrap .opt { color: var(--on-dark-muted); }
.form-wrap .form label { color: #fff; }
.form-wrap .form input, .form-wrap .form select, .form-wrap .form textarea { border-color: #fff; }
.form-wrap .form input:focus, .form-wrap .form select:focus, .form-wrap .form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,107,120,.35); }
.form-wrap a { color: #fff; }
.form-wrap .form-status.ok { color: #7fd3a8; }
.form-wrap .form-status.err { color: var(--red-bright); }
.talk-dark { background: #1e2a30; color: #fff; }
.talk-dark .section-head p { color: var(--on-dark-muted); }
.talk-dark .office-card { background: #26343b; border-color: #3a4a52; color: #fff; }
.talk-dark .office-card .muted { color: var(--on-dark-muted); }
.talk-dark .btn--quiet { background: transparent; color: #fff; border-color: #fff; }
.talk-dark .btn--quiet:hover { background: #fff; color: #000; }
.two-col h3 { padding-left: 0.75rem; border-left: 4px solid #1e2a30; }

/* darker features on Valuations and About (Alan, 17 Nov) */
.panel { background: #1e2a30; color: #fff; border-left-color: var(--red); box-shadow: 0 24px 48px -30px rgba(0,0,0,.55); }
.panel h3 { color: #fff; }
.panel p { color: var(--on-dark-muted); }
.person--stack { background: #1e2a30; border-color: #1e2a30; color: #fff; box-shadow: 0 24px 48px -30px rgba(0,0,0,.55); }
.person--stack h3 { color: #fff; }
.person--stack p { color: var(--on-dark-muted); }
.person--stack .person__role { color: var(--red-bright); }
.person--stack img { box-shadow: 0 0 0 3px rgba(255,255,255,.12); }

/* darker office cards on Contact (Alan, 17 Nov) */
.office-card--big { background: #1e2a30; border-color: #1e2a30; color: #fff; box-shadow: 0 24px 48px -30px rgba(0,0,0,.55); }
.office-card--big h2 { color: #fff; }
.office-card--big .muted { color: var(--on-dark-muted); }
.office-card--big .btn--quiet { background: transparent; color: #fff; border-color: #fff; }
.office-card--big .btn--quiet:hover { background: #fff; color: #000; }
.office-card--big :focus-visible { outline-color: #fff; }

/* nav tabs v3 (Alan, 17 Nov): one dark bar, sliding red underline, white current tab */
@media (min-width: 961px) {
  .site-nav ul { background: #1e2a30; padding: 0.35rem; border-radius: 12px; gap: 0.2rem; box-shadow: 0 10px 24px -14px rgba(0,0,0,.55); }
  .site-nav a { position: relative; background: transparent; color: #fff; padding: 0.65rem 0.95rem; border-radius: 9px; font-size: 1.0625rem; }
  .site-nav a::after { content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.35rem; height: 3px; border-radius: 2px; background: var(--red-bright); transform: scaleX(0); transform-origin: left; transition: transform 220ms cubic-bezier(.2,.7,.2,1); }
  .site-nav a:hover { background: #2c3c44; color: #fff; }
  .site-nav a:hover::after { transform: scaleX(1); }
  .site-nav a[aria-current="page"] { background: #fff; color: #000; box-shadow: none; }
  .site-nav a[aria-current="page"]::after { background: var(--red); transform: scaleX(1); }
  .site-nav a:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
}
@media (min-width: 961px) and (max-width: 1240px) { .site-nav a { padding: 0.6rem 0.65rem; font-size: 1rem; } .site-nav a::after { left: 0.65rem; right: 0.65rem; } }

/* darker step cards (Alan, 17 Nov) */
.steps li { background: #1e2a30; color: #fff; box-shadow: 0 24px 48px -30px rgba(0,0,0,.55); border-bottom: 4px solid var(--red); }
.steps h3 { color: #fff; }
.steps p { color: var(--on-dark-muted); }

/* darker parks list (Alan, 17 Nov): dark search bar and dark card bodies */
.filters { background: #1e2a30; border-color: #1e2a30; color: #fff; box-shadow: 0 18px 36px -24px rgba(0,0,0,.55); }
.filters label, .filters__count { color: #fff; }
.filters select, .filters input { border-color: #fff; }
.filters select:focus, .filters input:focus { border-color: var(--red-bright); box-shadow: 0 0 0 4px rgba(255,107,120,.35); }
.park-card { background: #1e2a30; border-color: #1e2a30; }
.park-card:hover { border-color: #1e2a30; box-shadow: 0 22px 40px -18px rgba(0,0,0,.6); }
.park-card__ref { color: var(--on-dark-muted); }
.park-card__county { color: #fff; }
.park-card__price { color: var(--red-bright); }
.park-card__price span { color: var(--on-dark-muted); }
.park-card__head { color: #e3e9e6; }

/* ================= 10 improvement rounds (17 Nov) ================= */

/* R1 hero trust row */
.trust { display: inline-flex; align-items: center; gap: 0.9rem; margin-top: 1.6rem; text-decoration: none; color: var(--ink); font-size: 0.95rem; line-height: 1.35; padding: 0.55rem 1rem 0.55rem 0.55rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(30,42,48,.45); transition: transform 160ms ease, box-shadow 160ms ease; }
.trust:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(30,42,48,.5); }
.trust strong { font-weight: 700; }
.trust__faces { display: flex; }
.trust__faces img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.trust__faces img + img { margin-left: -0.9rem; }

/* R5 region chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem 0.5rem 0.95rem; border-radius: 999px; background: #fff; border: 2px solid #1e2a30; color: #000; font-weight: 700; text-decoration: none; font-size: 0.95rem; transition: background-color 140ms, color 140ms, transform 140ms; }
.chip span { background: #1e2a30; color: #fff; border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.85rem; transition: background-color 140ms; }
.chip:hover { background: #1e2a30; color: #fff; transform: translateY(-2px); }
.chip:hover span { background: var(--red); }

/* R2 sort sits in the filter bar */
.filters { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr) minmax(0, 1fr) auto; }
@media (max-width: 1100px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .filters__search { grid-column: span 2; } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr; } .filters__search { grid-column: auto; } }
.park-grid .park-card { transition: transform 220ms ease, box-shadow 220ms ease, opacity 300ms ease; }

/* R3 sticky request card on park pages */
.park__card { margin-top: 1.25rem; padding: 1.25rem 1.35rem; border-radius: 12px; background: #1e2a30; color: #fff; box-shadow: 0 24px 48px -30px rgba(0,0,0,.6); border-top: 4px solid var(--red); }
.park__card-price { font: 700 var(--step-2)/1.15 var(--display); color: #fff; margin-bottom: 0.25rem; }
.park__card-price span { font: 400 1rem var(--body); color: var(--on-dark-muted); }
.park__card-who { color: var(--on-dark-muted); margin-bottom: 0.9rem; }
.park__card .btn--quiet { background: transparent; color: #fff; border-color: #fff; }
.park__card .btn--quiet:hover { background: #fff; color: #000; }
@media (min-width: 961px) { .gallery { position: sticky; top: 6rem; } }

/* R4 full-screen gallery */
.gallery__zoom { position: absolute; right: 0.9rem; bottom: 0.9rem; z-index: 3; padding: 0.55rem 0.85rem; border-radius: 999px; border: 0; background: rgba(0,0,0,.65); color: #fff; font: 700 0.875rem var(--body); cursor: zoom-in; backdrop-filter: blur(4px); transition: background-color 140ms; }
.gallery__zoom:hover { background: #000; }
.js .gallery__main { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,14,.94); display: grid; place-items: center; padding: 4rem 1rem; opacity: 0; transition: opacity 220ms ease; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: lb-in 260ms ease; }
@keyframes lb-in { from { transform: scale(.96); opacity: .4; } }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 3.2rem; height: 3.2rem; border-radius: 50%; font: 700 1.6rem/1 var(--body); cursor: pointer; transition: background-color 140ms; }
.lightbox button:hover { background: var(--red); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; }

/* R6 stats band */
.stats { background: #fff; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.stats li { border-top: 4px solid var(--red); padding-top: 1rem; }
.stats strong { display: block; font: 700 clamp(2.6rem, 1.8rem + 3vw, 4.2rem)/1 var(--display); color: #1e2a30; letter-spacing: -0.02em; }
.stats span { color: var(--muted); display: block; margin-top: 0.4rem; }
@media (max-width: 760px) { .stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* R7 sold marquee + stamp */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sold-strip--marquee { display: flex; width: max-content; gap: 1rem; animation: marquee 48s linear infinite; }
.sold-strip--marquee li { width: 15rem; flex: none; }
.marquee:hover .sold-strip--marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.sold-strip li { position: relative; overflow: hidden; }
.sold-strip--light li::after { content: "SOLD"; position: absolute; right: -0.4rem; top: 1rem; font: 700 1rem/1 var(--display); letter-spacing: 0.12em; color: var(--red); border: 3px solid var(--red); padding: 0.25rem 0.5rem; border-radius: 6px; transform: rotate(12deg); opacity: 0.85; }
.js .sold-strip--light li[data-reveal]::after { transform: rotate(12deg) scale(1.8); opacity: 0; transition: transform 420ms cubic-bezier(.3,1.6,.5,1) .25s, opacity 200ms ease .25s; }
.js .sold-strip--light li.is-in::after { transform: rotate(12deg) scale(1); opacity: 0.85; }

/* R8 valuation type as chips */
.form__row .pick { grid-column: 1 / -1; }
.form-wrap .pick { border-color: #3a4a52; }
.form-wrap .pick legend { color: #fff; }
.form-wrap .check { border-color: #5b6b73; color: #fff; }
.form-wrap .check:has(input:checked) { border-color: #fff; background: var(--red); color: #fff; }
.form-wrap .check input { accent-color: #fff; }

/* R9 smooth page-to-page transitions + back to top */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 180ms ease both; }
::view-transition-new(root) { animation: vt-in 260ms ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: #1e2a30; color: #fff; text-decoration: none; font: 700 1.4rem/1 var(--body); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); opacity: 0; transform: translateY(10px); transition: opacity 200ms, transform 200ms, background-color 140ms; }
.to-top.is-shown { opacity: 1; transform: none; }
.to-top:hover { background: var(--red); color: #fff; }
@media (max-width: 960px) { .to-top { bottom: calc(var(--bar-h) + 1rem); } }

/* R10 call strip above the footer */
.call-strip { background: var(--red); color: #fff; }
.call-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.4rem; }
.call-strip__lead { font: 700 var(--step-2)/1.1 var(--display); margin: 0; }
.call-strip__num { display: grid; color: #fff; text-decoration: none; font: 700 var(--step-2)/1.1 var(--display); padding: 0.5rem 1rem; border-radius: 10px; transition: background-color 140ms, transform 140ms; }
.call-strip__num span { font: 700 0.85rem var(--body); opacity: 0.85; }
.call-strip__num:hover { background: rgba(0,0,0,.18); color: #fff; transform: translateY(-2px); }
.site-footer { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .sold-strip--marquee { animation: none; flex-wrap: wrap; width: auto; }
  .marquee { mask-image: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .js .sold-strip--light li[data-reveal]::after { transform: rotate(12deg); opacity: .85; transition: none; }
  .trust:hover, .chip:hover { transform: none; }
}

/* dark top bar (Alan, 17 Nov) */
.utility { background: #131c20; }
.site-header { background: #1e2a30; border-bottom: 3px solid var(--red); }
.site-header.is-scrolled { box-shadow: 0 10px 28px -12px rgba(0,0,0,.6); }
@media (min-width: 961px) {
  .site-nav ul { background: transparent; box-shadow: none; padding: 0; }
  .site-nav a { color: #fff; }
  .site-nav a:hover { background: #2c3c44; }
  .site-nav a[aria-current="page"] { background: #fff; color: #000; }
}
.js .menu-btn { color: #fff !important; border-color: #fff !important; }
@media (max-width: 960px) {
  .site-nav a { color: #fff; border-bottom-color: #3a4a52; }
  .site-nav a:hover { background: #2c3c44; color: #fff; }
}
.site-header :focus-visible { outline-color: #fff; }

/* better boundary animation (Alan, 17 Nov): redraws per photo, then a glowing light traces it */
.plot__line .plot__glow { stroke: #ff8a95; stroke-width: 5; stroke-dasharray: 0.07 0.93; stroke-dashoffset: 0; opacity: 0; filter: drop-shadow(0 0 4px rgba(255,90,106,.95)) drop-shadow(0 0 10px rgba(224,26,49,.7)); }
.js .plot__line .plot__draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 1.8s cubic-bezier(.65,.05,.25,1) .2s forwards; }
.js .plot__line .plot__glow { animation: glow-in .6s ease 2s forwards, trace 7s linear 2s infinite; }
.js .plot__line.redraw .plot__draw { animation: draw-line 1.4s cubic-bezier(.65,.05,.25,1) forwards; }
.js .plot__line.redraw .plot__glow { animation: glow-in .5s ease 1.4s forwards, trace 7s linear 1.4s infinite; opacity: 0; }
@keyframes trace { to { stroke-dashoffset: -1; } }
@keyframes glow-in { to { opacity: 1; } }
.js .plot__line path:not(.plot__draw):not(.plot__glow) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .js .plot__line .plot__draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .plot__line .plot__glow { display: none; }
}

/* dark sticky phone bar, matching the header (Alan, 17 Nov) */
@media (max-width: 960px) {
  .action-bar { background: #1e2a30; border-top: 3px solid var(--red); box-shadow: 0 -8px 22px rgba(0,0,0,.3); }
  .action-bar .btn--quiet { background: transparent; color: #fff; border-color: #fff; }
  .action-bar .btn--quiet:hover, .call-choice[open] > .btn--quiet { background: #fff; color: #000; }
  .action-bar :focus-visible { outline-color: #fff; }
}

/* ===== new hero animation: drone viewfinder (Alan, 17 Nov) ===== */
.plot__line { display: none !important; }
.plot__frame { position: relative; }
.vf { position: absolute; inset: -0.75rem; pointer-events: none; z-index: 4; }
.vf i { position: absolute; width: 2.6rem; height: 2.6rem; border: 0 solid var(--red); filter: drop-shadow(0 2px 6px rgba(224,26,49,.35)); }
.vf i:nth-child(1) { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 6px; }
.vf i:nth-child(2) { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 6px; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 6px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 6px; }
.vf__scan { position: absolute; left: 0.75rem; right: 0.75rem; top: 0.75rem; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); box-shadow: 0 0 18px 4px rgba(255,255,255,.45); opacity: 0; }
.js .vf i { animation: vf-in 900ms cubic-bezier(.2,.9,.25,1.15) both; }
.js .vf i:nth-child(1) { --x: -26px; --y: -26px; animation-delay: .15s; }
.js .vf i:nth-child(2) { --x: 26px; --y: -26px; animation-delay: .25s; }
.js .vf i:nth-child(3) { --x: -26px; --y: 26px; animation-delay: .35s; }
.js .vf i:nth-child(4) { --x: 26px; --y: 26px; animation-delay: .45s; }
@keyframes vf-in { from { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.4); } 70% { opacity: 1; } to { opacity: 1; transform: none; } }
.js .vf .vf__scan { animation: vf-scan 1.6s ease-in-out .9s both; }
@keyframes vf-scan { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(var(--h, 400px))); } }
/* each new photo: corners tighten (focus lock) and the scan runs again */
.js .vf.lock i { animation: vf-lock 700ms cubic-bezier(.3,1.5,.5,1) both; }
@keyframes vf-lock { 0% { transform: scale(1); } 35% { transform: scale(.82); } 100% { transform: scale(1); } }
.js .vf.lock .vf__scan { animation: vf-scan 1.4s ease-in-out .5s both; }
/* photo change: the new photo sweeps across the old one */
.js [data-slides] .slide { position: absolute; inset: 0; height: 100%; opacity: 1; transition: none; z-index: 0; visibility: hidden; }
.js [data-slides] .slide.is-prev { visibility: visible; z-index: 1; }
.js [data-slides] .slide.is-active { position: relative; visibility: visible; z-index: 2; animation: sweep 1.1s cubic-bezier(.7,0,.2,1) both, drift 9s ease-out both; }
.js [data-slides] .slide.is-active:first-child:not(.swept) { animation: drift 9s ease-out both; }
@keyframes sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .js .vf i, .js .vf.lock i { animation: none; opacity: 1; transform: none; }
  .vf__scan { display: none; }
  .js [data-slides] .slide.is-active { animation: none; }
}

/* gold buttons for buyer conversions (Alan, 17 Nov): red = sellers, gold = buyers */
:root { --gold: #e8b04b; --gold-deep: #b9822a; }
.btn--gold {
  background: linear-gradient(180deg, #ffd27a 0%, #efb84f 50%, #d99a2f 100%); color: #1e1a10; border: 0; border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.15), 0 6px 18px -6px rgba(217,154,47,.75);
  position: relative; overflow: hidden;
}
.btn--gold:hover { color: #1e1a10; background: linear-gradient(180deg, #ffdc90 0%, #f5c35f 50%, #e3a63a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.15), 0 12px 26px -8px rgba(217,154,47,.85); }
.btn--gold:active { background: #d99a2f; box-shadow: inset 0 2px 4px rgba(0,0,0,.25); }
/* a soft shine sweeps across every few seconds to catch the eye */
.btn--gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: gold-shine 4.5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes gold-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.register-band .btn--gold, .talk-dark .btn--gold, .park__card .btn--gold { color: #1e1a10; }
@media (prefers-reduced-motion: reduce) { .btn--gold::after { animation: none; display: none; } }

/* gold Menu and Call buttons on phones (Alan, 17 Nov) */
@media (max-width: 960px) {
  .js .menu-btn, .action-bar .call-choice > summary.btn {
    background: linear-gradient(180deg, #ffd27a 0%, #efb84f 50%, #d99a2f 100%) !important; color: #1e1a10 !important; border: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.15), 0 6px 16px -6px rgba(217,154,47,.7);
  }
  .js .menu-btn { border-radius: 10px; }
  .action-bar .call-choice[open] > summary.btn { background: #d99a2f !important; }
}

/* area chips coloured by temperature, warm south to cool north (Alan, 17 Nov) */
.chip { --c: #1e2a30; --t: #fff; border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.chip span { background: var(--c); color: var(--t); }
.chip:hover { background: var(--c); color: var(--t); }
.chip:hover span { background: #fff; color: #000; }
.chip--south-west { --c: #d6301f; }
.chip--south { --c: #e8641b; }
.chip--wales { --c: #e8a317; --t: #1e1a10; }
.chip--midlands-east { --c: #8fb339; --t: #1e1a10; }
.chip--north { --c: #2f8fc9; }
.chip--scotland { --c: #23519e; }
.chip--other { --c: #56636b; }

/* About cards on phones: photo tucks in beside the name, text uses the full width (Alan, 17 Nov) */
.person h3 { padding-left: 0; border-left: 0; }
@media (max-width: 760px) {
  .person, .person--stack { display: block; }
  .person img { float: left; width: 6.5rem; margin: 0 1rem 0.6rem 0; }
  .person > div::after { content: ""; display: block; clear: both; }
  .person h3 { font-size: 1.45rem; margin-top: 0.2rem; }
  .person .person__role { margin-bottom: 0.9rem; }
  .person p:not(.person__role) { clear: left; }
}

/* ===== premium full-width hero (Alan, 17 Nov): photo sets the tone, no listing captions ===== */
.hero--full { position: relative; overflow: hidden; background: #0f1619; color: #fff; padding: 0; min-height: clamp(34rem, 88vh, 52rem); display: grid; align-items: end; }
.hero--full .hero__media { position: absolute; inset: 0; z-index: 0; }
.hero--full .hero__media .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; opacity: 0; transition: opacity 2s ease; visibility: visible; clip-path: none; animation: none; }
.hero--full .hero__media .slide.is-active { opacity: 1; animation: hero-drift 14s ease-out both; position: absolute; }
.hero--full .hero__media .slide.is-prev { opacity: 0; }
html:not(.js) .hero--full .hero__media .slide:not(.is-active) { display: none; }
@keyframes hero-drift { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero--full::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(10,15,18,.25) 0%, rgba(10,15,18,.05) 30%, rgba(10,15,18,.55) 62%, rgba(10,15,18,.88) 100%),
  linear-gradient(90deg, rgba(10,15,18,.55) 0%, rgba(10,15,18,0) 60%); }
.hero--full .hero__content { position: relative; z-index: 2; display: block; padding-block: clamp(6rem, 18vh, 10rem) clamp(2.5rem, 6vh, 4.5rem); max-width: var(--content); }
.hero--full h1 { color: #fff; max-width: 15ch; font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero--full .hero__lead { color: #e7ece9; max-width: 40ch; font-size: var(--step-1); }
.hero__kicker { display: inline-block; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; color: #ffd27a; margin-bottom: 1rem; padding-bottom: 0.4rem; border-bottom: 2px solid rgba(255,210,122,.6); }
.hero--full .hero__actions { flex-wrap: wrap; }
.hero--full .trust { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(8px); box-shadow: none; }
.hero--full .trust:hover { color: #fff; background: rgba(255,255,255,.2); }
.hero--full .trust__faces img { border-color: rgba(255,255,255,.9); }
@media (max-width: 960px) {
  .hero--full { min-height: calc(100svh - 4.75rem - var(--bar-h)); background: #0f1619; }
  .hero--full .hero__content { padding-block: 7rem 2rem; }
  .hero--full .hero__actions .btn--main { display: none; }
  .hero--full .hero__actions .btn { flex: 1 1 100%; }
  .hero--full::before { background: linear-gradient(180deg, rgba(10,15,18,.15) 0%, rgba(10,15,18,.2) 35%, rgba(10,15,18,.8) 70%, rgba(10,15,18,.95) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero--full .hero__media .slide.is-active { animation: none; } .hero--full .hero__media .slide { transition: none; } }
@media (min-width: 961px) {
  .hero--full { align-items: center; min-height: clamp(36rem, calc(100vh - 7.5rem), 50rem); }
  .hero--full .hero__content { padding-block: 3.5rem; }
  .hero--full h1 { font-size: clamp(2.6rem, 1.4rem + 3.2vw, 4.4rem); }
}
/* hero: fewer words, stronger shade behind text (Alan, 17 Nov) */
.hero--full::before { background: linear-gradient(180deg, rgba(10,15,18,.35) 0%, rgba(10,15,18,.55) 45%, rgba(10,15,18,.85) 100%), linear-gradient(90deg, rgba(10,15,18,.6) 0%, rgba(10,15,18,.1) 70%); }
.hero--full h1, .hero--full .hero__lead { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.hero__kicker { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 960px) {
  .hero--full::before { background: linear-gradient(180deg, rgba(10,15,18,.45) 0%, rgba(10,15,18,.7) 45%, rgba(10,15,18,.9) 100%); }
  .hero--full .hero__content { padding-block: 5rem 2rem; }
}

/* faint park pattern on the white areas only (Alan, 18 Nov) */
body { background: #fff url("/assets/img/park-pattern.svg") repeat; background-size: 320px 320px; }
.stats { background: transparent; }

/* Office opening hours (set by Fox in the editor; only shown once they add some) */
.office-hours { margin: 1rem 0 1.25rem; }
.office-hours h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.office-hours dl { margin: 0; display: grid; gap: 0.15rem; }
.office-hours dl div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); padding: 0.2rem 0; }
.office-hours dt { opacity: .85; }
.office-hours dd { margin: 0; font-weight: 700; text-align: right; }
.office-hours .muted { margin: 0.5rem 0 0; }
/* hero flyover film (Alan, 24 Nov): still first frame shows at once, the silent film fades in over it once playing */
.hero--full .hero__media--film picture, .hero--full .hero__still, .hero--full .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero--full .hero__still, .hero--full .hero__video { object-fit: cover; object-position: 50% 55%; }
.hero--full .hero__video { opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.hero--full .hero__video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero--full .hero__video { display: none; } }
@media (min-width: 961px) {
  /* computers: text sits on the left, so keep the shade there and let the sunset show on the right */
  .hero--full::before { background:
    linear-gradient(90deg, rgba(10,15,18,.84) 0%, rgba(10,15,18,.66) 34%, rgba(10,15,18,.22) 60%, rgba(10,15,18,.06) 85%),
    linear-gradient(180deg, rgba(10,15,18,.3) 0%, rgba(10,15,18,0) 28%, rgba(10,15,18,0) 68%, rgba(10,15,18,.6) 100%); }
}
/* phones (Alan, 24 Nov: "start further out"): a wider square of the flyover across the top, fading into the dark behind the words */
@media (max-width: 960px) and (orientation: portrait) {
  .hero--full .hero__media--film { inset: 0 0 auto 0; height: auto; aspect-ratio: 1 / 1; }
  .hero--full .hero__media--film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,22,25,0) 50%, #0f1619 100%); }
}
/* parks filters (Alan, 24 Nov: "takes up too much screen" on phones): computers unchanged, phones get one slim bar */
.filters__bar, .filters__fields { display: contents; }
.filters__bar .filters__count { order: 99; }
.filters__toggle, .filters__done { display: none; }
@media (max-width: 760px) {
  .filters { display: block; padding: 0.7rem 0.75rem 0.7rem 1rem; margin-bottom: 1.25rem; }
  .filters__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
  .filters__bar .filters__count { padding: 0; font-size: 1.05rem; }
  .js .filters__toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.55rem 1rem; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-weight: 700; color: #1e2a30; background: linear-gradient(180deg, #ffd27a, #e9b13f); box-shadow: 0 6px 16px -8px rgba(233,177,63,.8); }
  .filters__n { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; border-radius: 999px; background: #1e2a30; color: #ffd27a; font-size: 0.8rem; }
  .filters__n[hidden] { display: none; }
  .filters__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 0.75rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,.14); }
  .filters__fields .filters__search { grid-column: 1 / -1; }
  .filters label { font-size: 0.85rem; gap: 0.25rem; }
  .filters select, .filters input { padding-block: 0.55rem; }
  .js .filters__done { display: flex; grid-column: 1 / -1; justify-content: center; margin-top: 0.2rem; }
  .js .filters:not(.is-open) .filters__fields { display: none; }
}
@media (max-width: 760px) {
  .filters__fields .filters__search { order: 1; }
  .js .filters__done { order: 2; display: block; width: 100%; text-align: center; }
}
/* phone menu (Alan, 24 Nov: "stays open and I can't scroll"): drops over the page instead of pushing it down;
   long menus scroll inside themselves; the script closes it on a link, a tap outside, Escape or scrolling */
@media (max-width: 960px) {
  .js .site-header.nav-open .site-nav { position: absolute; left: 0; right: 0; top: calc(100% + 3px); z-index: 30; width: auto; margin: 0;
    padding: 0.5rem clamp(1rem, 4vw, 1.5rem) 1rem; background: #1e2a30; border-bottom: 3px solid var(--red); box-shadow: 0 28px 40px -20px rgba(0,0,0,.65);
    max-height: calc(100svh - 100% - 3px - var(--bar-h)); overflow-y: auto; overscroll-behavior: contain;
    animation: menu-drop 220ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes menu-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .js .site-header.nav-open .site-nav { animation: none; } }
