/* Gable: an estate agency website template with searchable listings.
   Rebrand by editing the tokens in :root. Nothing else needs to change. */

:root {
  --bg: #f6f6f3;
  --surface: #eaeae5;
  --ink: #151515;
  --muted: #5c5c57;
  --line: rgb(21 21 21 / 0.14);
  --accent: #ffd23f;
  --accent-ink: #151515;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  /* Shape rule: every corner on the site uses this one value. */
  --radius: 6px;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --header: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layers: header 10, mobile menu 20. */
  color-scheme: light dark;
  accent-color: var(--accent);
}

/* Dark theme follows the visitor's system setting.
   To lock one theme, delete this block (light) or move its values into :root (dark). */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --surface: #1c1c1a;
    --ink: #f3f3ef;
    --muted: #a5a59f;
    --line: rgb(243 243 239 / 0.16);
    --accent: #ffd23f;
    --accent-ink: #111110;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-transform: none;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section > h2 { margin-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 0.75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.site-header__inner { height: var(--header); display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; text-transform: none; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn), .link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.nav a:not(.btn):hover, .link:hover { background-size: 100% 1px; }
.menu-toggle {
  display: none; background: none; cursor: pointer;
  border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius); padding: 0.5rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.4rem; border-radius: var(--radius);
  font-weight: 500; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--small { padding: 0.55rem 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Media */
.media { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Rows: a title on the left, a line of text on the right. */
.rows li {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: baseline;
  padding-block: clamp(1.25rem, 2.6vw, 2rem); border-top: 1px solid var(--line);
}
.rows h3 { grid-column: 1 / span 5; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.rows p { grid-column: 7 / span 6; color: var(--muted); }

/* Split: an image beside text. */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.split__media { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.split__copy { grid-column: 7 / span 6; }
.split__copy h2 { margin-bottom: 1.75rem; }
.split__copy p { max-width: 52ch; color: var(--muted); }
.split__copy p + p { margin-top: 1rem; }

/* Quote */
.quote blockquote { max-width: 24ch; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; text-transform: none; }
.quote footer { margin-top: 2rem; font-family: var(--font-body); font-size: 1rem; font-weight: 400; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.quote footer strong { display: block; font-weight: 600; }
.quote footer span { color: var(--muted); }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact p { max-width: 44ch; color: var(--muted); }
.contact__mail {
  display: inline-block; margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 5vw, 4rem);
  letter-spacing: -0.02em; line-height: 1.1; text-transform: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 3px no-repeat;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 0.95rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer small { flex-basis: 100%; color: var(--muted); font-size: 0.875rem; }

/* Reveal on scroll. Content stays visible when JavaScript is off. */
.js [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .media img { transition: none; }
}

/* Small screens: every grid becomes one column. */
@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; z-index: 20; top: var(--header); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    padding: 1rem var(--gutter) 2rem; background: var(--bg); border-bottom: 1px solid var(--line);
    font-size: 1.25rem;
  }
  .nav.is-open { display: flex; }
  .rows li, .split { display: block; }
  .rows p { margin-top: 0.5rem; }
  .split__copy { margin-top: 2.5rem; }
}

/* ---------------------------------------------------------------- Gable

   One deep colour is used for the footer and the "sell with us" block. */
:root { --deep: #151515; --on-deep: #f3f3ef; --deep-muted: #a9a9a3; --error: #b3261e; }
@media (prefers-color-scheme: dark) { :root { --deep: #1c1c1a; --error: #ffb4ab; } }

[hidden] { display: none !important; }
:focus-visible { outline-color: var(--ink); }
.small { font-size: 0.9rem; }
button.btn { border: 0; cursor: pointer; }

.site-header { border-bottom: 1px solid var(--line); }
.nav { gap: 1.75rem; }
.nav a[aria-current="page"] { background-size: 100% 1px; }
.count { display: inline-block; min-width: 1.5rem; margin-left: 0.2rem; padding: 0 0.4rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-size: 0.85rem; font-weight: 600; text-align: center; }

/* Hero: one photograph across the screen, with the search form sitting on its lower edge. */
.hero { position: relative; display: grid; align-items: end; min-height: min(74dvh, 46rem); background: var(--deep); color: #fff; }
.hero__media, .hero__media::after { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; background: linear-gradient(to top, rgb(0 0 0 / 0.8), rgb(0 0 0 / 0.28) 58%, rgb(0 0 0 / 0.08)); }
.hero__inner { position: relative; width: 100%; padding-block: clamp(6rem, 14vw, 10rem) clamp(5.5rem, 9vw, 7.5rem); }
.hero h1 { font-size: clamp(2.1rem, 6.5vw + 0.9rem, 6rem); max-width: 14ch; }
.hero p { max-width: 40ch; margin-top: 1.25rem; font-size: 1.2rem; color: rgb(255 255 255 / 0.88); }

/* Form controls, shared by the search, the filters, the estimate and the enquiry forms. */
.field { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.field select, .field input, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field select:hover, .field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.seg { display: inline-grid; grid-auto-flow: column; min-height: 3rem; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius); }
.seg label { position: relative; display: grid; place-items: center; padding: 0 1.1rem; border-radius: var(--radius); font-weight: 500; white-space: nowrap; cursor: pointer; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--ink); color: var(--bg); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }

.search {
  position: relative; display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto; gap: 0.75rem; align-items: end;
  margin-top: -3.25rem; padding: 1rem; border-radius: var(--radius); background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -24px rgb(21 21 21 / 0.45);
}
.search .btn { min-height: 3rem; }

/* Listing cards */
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 2rem; margin-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 2.75rem) clamp(1.25rem, 2.4vw, 2rem); }
.card { position: relative; }
.card__media { position: relative; aspect-ratio: 4 / 3; }
.card__media img { transition: transform 0.9s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding-top: 1rem; }
.card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; letter-spacing: -0.03em; line-height: 1.1; }
.card__price span, .property__price span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.card h3 { margin-top: 0.4rem; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: 0; }
.card:has(h3 a:focus-visible) { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: var(--radius); }
.facts { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin-top: 0.7rem; font-size: 0.92rem; color: var(--muted); }
.facts li + li { padding-left: 0.9rem; border-left: 1px solid var(--line); }
.badge { position: absolute; left: 0.75rem; top: 0.75rem; padding: 0.3rem 0.65rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-size: 0.8rem; font-weight: 600; line-height: 1.4; }
.badge--muted { background: var(--deep); color: var(--on-deep); }
.save {
  position: absolute; z-index: 1; right: 0.75rem; top: 0.75rem; padding: 0.3rem 0.75rem; border: 0; border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font-size: 0.8rem; font-weight: 600; line-height: 1.4; cursor: pointer;
}
.save[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Area tiles */
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.area { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--deep); color: #fff; }
.area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.area:hover img { transform: scale(1.05); }
.area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.75), rgb(0 0 0 / 0) 55%); }
.area__text { position: absolute; z-index: 1; left: 1.1rem; right: 1.1rem; bottom: 1rem; display: grid; }
.area__text strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.area__text span { font-size: 0.92rem; opacity: 0.88; }

/* The deep block */
.deep { background: var(--deep); color: var(--on-deep); }
.deep .btn--primary:hover { background: var(--on-deep); color: var(--deep); }
.sell-band .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-block: var(--section); }
.sell-band__copy { grid-column: 1 / span 5; }
.sell-band__copy p { max-width: 40ch; margin-block: 1.5rem 2rem; color: var(--deep-muted); }
.steps { grid-column: 7 / span 6; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; padding-block: 1.4rem; border-top: 1px solid rgb(243 243 239 / 0.18); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--accent); }
.steps h3 { font-size: 1.35rem; }
.steps p { margin-top: 0.35rem; color: var(--deep-muted); }
.steps--light li { border-top-color: var(--line); }
.steps--light li::before { color: var(--ink); }
.steps--light p { color: var(--muted); }

/* Closing band */
.band { background: var(--surface); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(3rem, 6vw, 5rem); }
.band h2 { max-width: 18ch; }
.band p { margin-top: 0.75rem; color: var(--muted); }

/* Inner pages */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 16ch; }
.page-head p { max-width: 52ch; margin-top: 1rem; font-size: 1.15rem; color: var(--muted); }

/* Search page */
.filters { display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)); gap: 0.75rem; align-items: end; padding-block: 1.25rem; border-block: 1px solid var(--line); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.25rem 2rem; }
.results-bar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }
.results-bar button { padding: 0; border: 0; cursor: pointer; }
.results { padding-bottom: var(--section); }
.empty { padding-block: clamp(2rem, 6vw, 5rem) var(--section); }
.empty p { max-width: 44ch; margin-block: 1rem 2rem; color: var(--muted); }

/* Property page */
.crumbs { padding-block: 1.25rem; font-size: 0.92rem; color: var(--muted); }
.property__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 2rem; padding-bottom: 1.75rem; }
.property__head .badge, .property__head .save { position: static; display: inline-block; }
.property__head h1 { margin-block: 0.9rem 0.5rem; font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 20ch; }
.property__price { display: grid; justify-items: end; gap: 0.75rem; }
.property__price strong { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.property__head .save { padding: 0.55rem 1.1rem; font-size: 0.95rem; box-shadow: inset 0 0 0 1px var(--line); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.75rem; aspect-ratio: 2 / 1; }
.gallery button { position: relative; min-height: 0; padding: 0; border: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); cursor: zoom-in; }
.gallery button:first-child { grid-row: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery--2 { grid-template-rows: 1fr; }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.more { position: absolute; right: 0.75rem; bottom: 0.75rem; padding: 0.3rem 0.75rem; border-radius: var(--radius); background: var(--bg); color: var(--ink); font-size: 0.85rem; font-weight: 600; }

.property__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-block: clamp(2rem, 4vw, 3rem) var(--section); }
.property__body h2 { margin-block: clamp(2.5rem, 5vw, 3.5rem) 1.25rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 var(--gap); border-block: 1px solid var(--line); }
.keyfacts div { padding-block: 1.1rem; }
.keyfacts dt, .details dt { font-size: 0.85rem; color: var(--muted); }
.keyfacts dd { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.prose p { max-width: 62ch; color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.ticks { columns: 2; column-gap: 2rem; }
.ticks li { position: relative; break-inside: avoid; padding: 0.45rem 0 0.45rem 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.7rem; height: 2px; background: var(--ink); }
.calc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--radius); background: var(--surface); }
.calc__result { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.calc__result strong { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.calc + p { margin-top: 0.75rem; }

.aside { position: sticky; top: calc(var(--header) + 1.5rem); }
.panel { display: grid; gap: 1.5rem; padding: clamp(1.25rem, 2.4vw, 1.75rem); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.agent { display: grid; grid-template-columns: 3.75rem 1fr; gap: 1rem; align-items: center; }
.agent div:last-child { display: grid; justify-items: start; line-height: 1.45; }
.agent__mark { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.agent__mark img, .person__mark img { width: 100%; height: 100%; object-fit: cover; }
.form { display: grid; gap: 0.9rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form__status:empty { display: none; }
.form__status { font-size: 0.95rem; }
.form__status[data-state="error"] { color: var(--error); }
.hp { position: absolute; left: -9999px; }
.similar { padding-bottom: var(--section); }
.similar h2 { margin-bottom: clamp(2rem, 4.5vw, 3.5rem); }

.lightbox { max-width: min(94vw, 1400px); max-height: 94dvh; margin: auto; padding: 0; border: 0; background: none; color: #fff; }
.lightbox::backdrop { background: rgb(0 0 0 / 0.9); }
.lightbox img { width: auto; max-height: 80dvh; margin-inline: auto; border-radius: var(--radius); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; }
.lightbox__bar div { display: flex; gap: 0.5rem; }
.lightbox button { padding: 0.5rem 1rem; border: 0; border-radius: var(--radius); background: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45); color: #fff; cursor: pointer; }
.lightbox button:hover { box-shadow: inset 0 0 0 1px #fff; }
.lightbox :focus-visible { outline-color: #fff; }

/* Sell, about and contact pages */
.two { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.two > :first-child { grid-column: 1 / span 5; }
.two > :last-child { grid-column: 7 / span 6; }
.two h2 { margin-bottom: 1.25rem; }
.two > div > p { max-width: 46ch; color: var(--muted); }
.two > div > p + p { margin-top: 1rem; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 2.75rem) var(--gap); }
.person__mark { display: grid; place-items: center; aspect-ratio: 4 / 5; margin-bottom: 1.1rem; font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.03em; color: var(--muted); }
.person h3 { font-size: 1.35rem; }
.person p + p { margin-top: 0.6rem; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.details div { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.details dd { font-size: 1.2rem; }

/* Footer */
.site-footer { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 0; background: var(--deep); color: var(--on-deep); }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem var(--gap); }
.site-footer ul { display: grid; align-content: start; gap: 0.5rem; }
.site-footer address { margin-top: 0.75rem; font-style: normal; color: var(--deep-muted); }
.site-footer .legal, .site-footer small { grid-column: 1 / -1; max-width: 72ch; font-size: 0.875rem; color: var(--deep-muted); }
.site-footer :focus-visible { outline-color: var(--on-deep); }

@media (prefers-reduced-motion: reduce) {
  .card__media img, .area img { transition: none; }
}

/* The menu folds away earlier than the base rule, because this header has more links. */
@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; z-index: 20; top: var(--header); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    padding: 1rem var(--gutter) 2rem; background: var(--bg); border-bottom: 1px solid var(--line);
    font-size: 1.25rem;
  }
  .nav.is-open { display: flex; }
  .cards, .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search, .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search .seg, .filters .seg { grid-column: 1 / -1; justify-self: start; }
  .property__body { grid-template-columns: 1fr; }
  .aside { position: static; }
}

@media (max-width: 767px) {
  .hero__inner { padding-bottom: 5rem; }
  .search { margin-top: -2.5rem; }
  .search, .filters, .cards, .team, .details, .form__row { grid-template-columns: 1fr; }
  .search .seg, .filters .seg { justify-self: stretch; grid-auto-columns: 1fr; }
  .areas, .calc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sell-band .wrap, .two { display: block; }
  .steps, .two > :last-child { margin-top: 2.5rem; }
  .property__price { justify-items: start; }
  .gallery, .gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; }
  .gallery button { aspect-ratio: 4 / 3; }
  .gallery button:first-child { grid-row: auto; grid-column: 1 / -1; }
  .gallery--1 { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: repeat(2, 1fr); }
  .keyfacts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ticks { columns: 1; }
  .site-footer__inner { grid-template-columns: 1fr; }
}
