/* CELLES Group — the public site.
 *
 * The design arrived as a mockup with every style inline, which is how design
 * tools export. Pulling them into tokens is not tidying: it is what lets the
 * site, the client portal and the back office look like one company instead of
 * three, and what makes "change the terracotta" a one-line edit rather than a
 * hunt through four hundred style attributes.
 *
 * Terracotta on cream, Marcellus over Work Sans. Navy, olive and oxblood were
 * tried and rejected; they are kept in design/ rather than as options here,
 * because a theme switch nobody asked for is a maintenance cost forever.
 */

:root {
  /* ink */
  --ink:        #26241f;
  --ink-soft:   #4d483c;
  --muted:      #75705f;
  --muted-soft: #8a8272;

  /* the one accent */
  --terra:      #a34a24;
  --terra-dark: #7d3719;
  --terra-lift: #b0522a;
  --terra-drop: #963f1d;

  /* paper */
  --cream:      #faf7f2;
  --cream-top:  #fbf8f3;
  --cream-bot:  #f6f0e4;
  --card:       #fffdf8;
  --sand:       #f1e9d8;
  --sand-deep:  #f6f0e3;
  --glow:       #f2e5cd;

  /* rules */
  --line:       #e8e0cf;
  --line-soft:  #d8cfba;
  --line-card:  #e6ddcb;

  /* dark end */
  --dark:       #211d17;
  --dark-ink:   #f2ecdd;
  --dark-soft:  #d6cdb9;
  --dark-mute:  #8a8272;
  --paper:      #f6f1e6;

  /* WhatsApp green is a brand colour, not ours. It stays exact. */
  --wa-top:     #2bd16b;
  --wa-bot:     #1da855;
  --wa-hover:   #17a74e;

  --shell:      1240px;
  --serif:      'Marcellus', 'Iowan Old Style', Georgia, serif;
  --sans:       'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:       ui-monospace, SFMono-Regular, Menlo, monospace;

  --lift:       0 1px 2px rgba(38, 36, 31, .04), 0 16px 40px -24px rgba(94, 58, 28, .3);
  --lift-hover: 0 2px 4px rgba(38, 36, 31, .05), 0 28px 60px -24px rgba(94, 58, 28, .45);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream) linear-gradient(180deg, var(--cream-top) 0%, var(--cream-bot) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* The grain. It is what stops a flat cream page from reading as a template,
 * and it is one element rather than a background image on every section. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@media (prefers-reduced-transparency: reduce) {
  body::before { display: none; }
}

a { color: var(--terra); }
a:hover { color: var(--terra-dark); }

::selection { background: var(--terra); color: var(--paper); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--card);
  color: var(--ink);
  padding: 12px 20px;
  border: 1px solid var(--terra);
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- type */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: .005em;
}

h1 { font-size: clamp(37px, 5.2vw, 62px); line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(29px, 3.6vw, 42px); line-height: 1.15; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; }

p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
}

.lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
}

.note { font-size: 14px; color: var(--muted); }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: 32px; }
.shell-narrow { max-width: 860px; margin: 0 auto; padding-inline: 32px; }

section { padding-block: clamp(64px, 8vw, 110px); }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.btn-wa {
  background: linear-gradient(180deg, var(--wa-top), var(--wa-bot));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(23, 167, 78, .55);
}
.btn-wa:hover { background: var(--wa-hover); color: #fff; }

.btn-wa-sm { padding: 11px 20px; font-size: 12px; box-shadow: 0 10px 22px -10px rgba(23, 167, 78, .5); }

.btn-line {
  background: transparent;
  color: var(--terra);
  border-color: var(--terra);
}
.btn-line:hover { background: rgba(163, 74, 36, .07); color: var(--terra-dark); }

.btn-line-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246, 241, 230, .55);
}
.btn-line-light:hover { background: rgba(246, 241, 230, .1); color: var(--paper); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.link-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--terra);
  text-decoration: none;
}
.link-more:hover { text-decoration: underline; }

/* -------------------------------------------------------------- header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  box-shadow: 0 8px 24px -18px rgba(38, 36, 31, .35);
}

.masthead nav {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .03em;
}

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a:not(.btn) {
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:not(.btn):hover { color: var(--terra); }

.nav-links a[aria-current='page'] {
  color: var(--terra);
  font-weight: 600;
  border-bottom: 1px solid var(--terra);
  padding-bottom: 2px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: clamp(56px, 7vw, 92px) 0 clamp(56px, 7vw, 88px);
  background: radial-gradient(1100px 620px at 82% -10%, var(--glow) 0%, rgba(242, 229, 205, 0) 62%);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}

/* Placeholder for a photograph that does not exist yet. It says what belongs
 * there rather than pretending with stock, which is the honest version of an
 * empty slot and reads as deliberate on a site whose whole argument is that
 * nothing is being hidden. */
.photo-slot {
  background: repeating-linear-gradient(45deg, #f1e9da 0 16px, #f7f1e5 16px 32px);
  border: 1px solid #e0d4bd;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.photo-slot span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-soft);
  letter-spacing: .08em;
  padding: 0 20px;
}

.hero .photo-slot {
  height: 560px;
  box-shadow: 0 30px 70px -20px rgba(94, 58, 28, .32), 0 6px 18px -8px rgba(94, 58, 28, .12);
}

/* --------------------------------------------------------- trust strip */

.trust {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, #f6efe1, #f2e9d6);
  padding-block: 0;
}

.trust-grid {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.trust-grid dt { font-family: var(--serif); font-size: 19px; }
.trust-grid dd { font-size: 13.5px; color: var(--muted); margin: 5px 0 0; line-height: 1.5; }

/* --------------------------------------------------------------- cards */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--lift);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--lift-hover); }

@media (prefers-reduced-motion: reduce) {
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}

.card .photo-slot {
  height: 250px;
  border: 0;
  border-bottom: 1px solid var(--line-card);
  position: relative;
}

.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.card-kicker {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
}

.card-name { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.card-spec { font-size: 14px; color: var(--muted); }
.card-note { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.price { font-size: 15.5px; font-weight: 600; color: var(--terra); }

.flag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 2px;
}
.flag-offer { background: var(--ink); color: var(--paper); }
.flag-sold  { background: var(--terra); color: var(--paper); }

.veil { position: absolute; inset: 0; background: rgba(250, 247, 242, .55); }

/* ------------------------------------------------------------- filters */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding: 16px 0;
}

.filter-tabs { display: flex; gap: 8px; }

.filter-tabs a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: var(--card);
  color: var(--ink-soft);
  text-decoration: none;
}
.filter-tabs a:hover { border-color: var(--terra); color: var(--terra); }
.filter-tabs a.on { background: var(--terra); border-color: var(--terra); color: var(--paper); }

.filter-selects { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.filter-selects select {
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid var(--line-soft);
  background: var(--card);
  color: var(--ink);
  border-radius: 2px;
  cursor: pointer;
}

.count-line { font-size: 13.5px; color: var(--muted-soft); margin: 20px 0 28px; }
.count-line a { margin-left: 8px; }

.empty { padding: 80px 0; text-align: center; font-size: 16px; color: var(--muted); }

/* ----------------------------------------------------------------- map */

.map {
  height: 520px;
  margin-top: 40px;
  border: 1px solid var(--line);
  background: var(--sand-deep);
}

.pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--terra);
  border: 2.5px solid var(--card);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

.leaflet-popup-content-wrapper {
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(38, 36, 31, .18);
}
.leaflet-popup-content { margin: 14px 16px; font-family: var(--sans); }
.leaflet-tooltip {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid #e0d7c3;
  border-radius: 3px;
}
.pn { font-size: 15px; font-weight: 600; }
.pc { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); font-weight: 600; margin-top: 3px; }
.pb { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin-top: 7px; max-width: 210px; }
.pl { display: inline-block; margin-top: 9px; font-size: 13px; font-weight: 500; }

.hood-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.hood-list li { border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ------------------------------------------------------------- listing */

.crumbs {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs span[aria-hidden] { margin: 0 8px; color: var(--line-soft); }

.listing-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }

.listing-photo {
  min-height: 480px;
  position: relative;
  box-shadow: 0 30px 70px -20px rgba(94, 58, 28, .28);
}

.hood-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.deed-note {
  background: var(--sand-deep);
  border: 1px solid var(--line);
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 20px;
}

.status-note {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-top: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--terra);
}

/* ------------------------------------------------------------ measures */

.band {
  background: linear-gradient(180deg, #f7f1e4 0%, #f0e5cf 100%);
  border-block: 1px solid var(--line);
}

.measures div {
  border-top: 1px solid var(--line-soft);
  padding: 18px 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.measures div:last-child { border-bottom: 1px solid var(--line-soft); }
.measures dt { font-family: var(--serif); font-size: 34px; color: var(--terra); min-width: 96px; }
.measures dd { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ------------------------------------------------------------- process */

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 64px; margin-top: 56px; }

.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step-no { font-family: var(--serif); font-size: 14px; color: var(--terra); letter-spacing: .14em; }
.step h3 { margin-top: 10px; }
.step p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin-top: 10px; }

.tag {
  background: var(--terra);
  color: var(--paper);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 2px;
}

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 52px; }
.col-item { border-top: 1px solid var(--line-soft); padding-top: 20px; }
.col-item h3 { font-size: 20px; }
.col-item p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); margin-top: 9px; }

/* ----------------------------------------------------------------- faq */

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 24px;
  color: var(--terra);
  flex-shrink: 0;
}
details[open] summary::after { content: '\2212'; }

details p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 24px; max-width: 720px; }

/* ------------------------------------------------------- about, legal */

.story {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 68ch;
}
.story + .story { margin-top: 22px; }

.clause { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 34px; }
.clause h2 { font-size: 22px; }
.clause p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin-top: 12px; max-width: 70ch; }

.closing {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 16px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- forms */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.channel { border-top: 1px solid var(--line-soft); padding-top: 22px; }
.channel-value { font-family: var(--serif); font-size: 26px; margin-top: 10px; }
.channel-value a { text-decoration: none; }
.channel-value a:hover { text-decoration: underline; }
.channel .note { margin-top: 10px; }

.form-card {
  background: var(--card);
  border: 1px solid var(--line-card);
  box-shadow: 0 24px 50px -30px rgba(94, 58, 28, .35);
  padding: 34px 36px 38px;
  margin-top: 48px;
}

.form-error {
  border-left: 2px solid #8d3038;
  background: rgba(141, 48, 56, .06);
  padding: 14px 18px;
  margin-top: 22px;
}
.form-error p { font-size: 14.5px; color: #7a2b32; font-weight: 500; }

.contact-form { margin-top: 26px; }

.field { display: block; margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: var(--terra); }

/* Off-screen rather than display:none, because some bots skip anything with
 * display:none and fill in everything else. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.human { border: 0; padding: 0; margin: 26px 0 0; }
.human legend {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: 12px;
}

.chip { display: inline-block; margin: 0 8px 8px 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
}
.chip input:checked + span {
  background: rgba(163, 74, 36, .12);
  border-color: #c9a488;
  color: var(--terra-dark);
}
.chip input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }

/* ----------------------------------------------------------------- cta */

.cta {
  background: linear-gradient(180deg, #a84e27 0%, #883b1b 100%);
  text-align: center;
}
.cta h2 { color: var(--paper); font-size: clamp(32px, 4vw, 46px); }
.cta p { color: rgba(246, 241, 230, .82); font-size: 17px; line-height: 1.7; margin: 22px auto 0; max-width: 560px; }
.cta .btn-row { justify-content: center; }

/* -------------------------------------------------------------- footer */

.foot { background: var(--dark); }

.foot-grid {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 32px 22px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.foot-brand { font-family: var(--serif); font-size: 18px; color: var(--dark-ink); }
.foot p { font-size: 13.5px; line-height: 1.6; color: #a89f8c; margin-top: 8px; max-width: 380px; }

.foot h2 {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dark-mute);
  font-weight: 600;
}

.foot ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.foot a { font-size: 13.5px; color: var(--dark-soft); text-decoration: none; }
.foot a:hover { color: #e0885f; }
.foot .hours { font-size: 12.5px; color: #7c7464; }

.foot-legal {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px 20px;
  font-size: 12px;
  color: var(--dark-mute);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-legal a { color: var(--dark-mute); font-size: 12px; }

/* ------------------------------------------------------------ wa float */

.wa-float {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--wa-top), var(--wa-bot));
  box-shadow: 0 16px 34px -10px rgba(23, 167, 78, .6);
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 860px) {
  .masthead nav { flex-wrap: wrap; row-gap: 12px; padding: 16px 20px; }
  .nav-links { flex-wrap: wrap; gap: 16px; row-gap: 12px; }
  .split, .cards, .cols3, .steps, .foot-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero .photo-slot { height: 300px; }
  .shell, .shell-narrow, .foot-grid, .foot-legal, .trust-grid { padding-inline: 20px; }
  .wa-float { display: flex; }
  .map { height: 400px; }
  .hood-list, .listing-split, .contact-grid { grid-template-columns: 1fr; }
  .listing-photo { min-height: 280px; }
  .form-card { padding: 26px 22px 30px; }
  .filters { gap: 14px; }
  .filter-selects select { flex: 1; min-width: 0; }
}

@media (min-width: 861px) and (max-width: 1140px) {
  .cards, .cols3 { grid-template-columns: 1fr 1fr; }
  .split { gap: 48px; }
}

/* -------------------------------------------------------------- photos */

/* The hatched .photo-slot stays in the stylesheet on purpose. It is what a
 * listing with no photograph yet still shows, and on a site whose argument is
 * that nothing is hidden, an honest empty frame beats borrowed stock. */

.card-photo, .hero-photo, .listing-photo { position: relative; overflow: hidden; background: var(--sand); }

.card-photo { height: 250px; border-bottom: 1px solid var(--line-card); }
.hero-photo { height: 560px; box-shadow: 0 30px 70px -20px rgba(94, 58, 28, .32), 0 6px 18px -8px rgba(94, 58, 28, .12); border: 1px solid #e0d4bd; }
.listing-photo { min-height: 480px; box-shadow: 0 30px 70px -20px rgba(94, 58, 28, .28); }

.shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Slightly warmed to sit with the cream. Photographs from a dozen different
   * cameras otherwise read as a dozen different sites. */
  filter: saturate(.94) contrast(1.02);
}

.card:hover .shot { transform: scale(1.02); }
.card-photo .shot { transition: transform .5s ease; }

@media (prefers-reduced-motion: reduce) {
  .card-photo .shot { transition: none; }
  .card:hover .shot { transform: none; }
}

/* Attribution is a licence condition on CC BY and CC BY-SA work, not a
 * courtesy, so it renders under the photograph rather than living in a file. */
.photo-credit {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted-soft);
  margin-top: 10px;
}
.photo-credit a { color: var(--muted-soft); text-decoration: underline; }
.photo-credit a:hover { color: var(--terra); }

/* ------------------------------------------------------------- sourcing */

.sourcing {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 2px solid var(--terra);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 64ch;
}
.sourcing strong { color: var(--ink); }

@media (max-width: 860px) {
  .hero-photo { height: 300px; }
  .listing-photo { min-height: 280px; }
}

.credit-list { list-style: none; margin: 0; padding: 0; }
.credit-list li {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: 8px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.credit-where { font-weight: 600; font-size: 14.5px; }
.credit-where a { text-decoration: none; }
.credit-what { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

@media (max-width: 620px) { .credit-list li { grid-template-columns: 1fr; gap: 4px; } }

/* ------------------------------------------------------------- gallery */

.gallery { margin: 0; position: relative; }

.gallery-main {
  display: block;
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 30px 70px -20px rgba(94, 58, 28, .28);
  cursor: zoom-in;
}
.gallery-main .shot { width: 100%; height: 100%; object-fit: cover; }

.zoom-hint {
  position: absolute;
  right: 14px; bottom: 14px;
  background: rgba(33, 29, 23, .78);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery-main:hover .zoom-hint,
.gallery-main:focus-visible .zoom-hint { opacity: 1; }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }

.thumb {
  display: block;
  height: 84px;
  overflow: hidden;
  border: 1px solid var(--line-card);
  background: var(--sand);
  opacity: .68;
  transition: opacity .2s ease, border-color .2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.on { opacity: 1; border-color: var(--terra); border-width: 2px; }

/* ------------------------------------------------------------ lightbox */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 16, 12, .94);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(246, 241, 230, .1);
  border: 1px solid rgba(246, 241, 230, .3);
  color: var(--paper);
  font-size: 26px;
  line-height: 1;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(246, 241, 230, .22); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lb-caption {
  position: absolute;
  left: 0; right: 0; bottom: 20px;
  text-align: center;
  color: rgba(246, 241, 230, .8);
  font-size: 13px;
  padding: 0 80px;
}

/* --------------------------------------------------------- listing map */

.listing-map { height: 440px; margin-top: 28px; }

/* The reference points are deliberately quieter than the property itself:
 * they are context, and a map where everything shouts says nothing. */
.pin-ref {
  width: 10px; height: 10px;
  background: var(--ink);
  border-width: 2px;
  opacity: .55;
}

.map-note {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 16px;
  max-width: 74ch;
}
.map-note strong { color: var(--ink); }

@media (max-width: 860px) {
  .gallery-main { height: 300px; }
  .thumb { height: 62px; }
  .listing-map { height: 320px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-caption { padding: 0 20px; }
}

/* A property-specific caveat. Styled to be read, not skimmed past: on a site
 * that tells people to verify everything, the things worth verifying should
 * not be quieter than the sales copy. */
.legal-note {
  margin-top: 16px;
  padding: 16px 18px;
  background: rgba(163, 74, 36, .05);
  border: 1px solid var(--line);
  border-left: 2px solid var(--terra);
}
.legal-note strong {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra-dark);
}
.legal-note p { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); margin-top: 8px; }

/* ------------------------------------------------- folding on a phone */

/* The eight process steps and the six services are the bulk of the home
 * page: on a laptop they read as a confident, complete explanation, and on
 * a phone they are roughly 1700px of scrolling before the reader reaches
 * anything they can act on.
 *
 * So they fold. The markup carries `open`, which means nothing changes for
 * anyone without JavaScript, and instant.js closes them only below the
 * breakpoint. The content is identical either way; a phone reader sees the
 * eight titles and opens the ones they care about.
 */

.fold > summary { list-style: none; cursor: default; }
.fold > summary::-webkit-details-marker { display: none; }

/* The FAQ accordions set a global summary::after marker. Folds are summaries
 * too, so on a laptop that rule was painting a stray minus beside all fourteen
 * headings on a page where nothing is collapsible. Cancel it, and let the
 * phone breakpoint below put a real marker back. */
details.fold > summary::after,
details.fold[open] > summary::after { content: none; }

/* On a laptop the fold is invisible: no marker, no pointer, no hint that
 * anything is collapsible, because up there nothing is. */
@media (min-width: 861px) {
  .fold > summary { pointer-events: none; }
}

@media (max-width: 860px) {
  /* Grid, not flex with space-between: the number, the title and the marker
   * each get a column, so the title stays hard left instead of drifting to
   * the middle and the plus never wraps onto a line of its own. */
  .fold > summary {
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    column-gap: 12px;
    padding: 2px 0;
  }
  details.fold > summary::after {
    content: '+';
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1;
    color: var(--terra);
  }
  details.fold[open] > summary::after { content: '\2212'; }

  /* Services have no number, so their title takes the first two columns. */
  .col-item .fold > summary { grid-template-columns: 1fr auto; }
  .col-item .fold > summary h3 { font-size: 17px; }

  .step .fold > summary h3 { font-size: 17px; text-align: left; }
  .step .fold > summary .step-no { font-size: 13px; }

  /* Step six wraps its number and a badge in an extra div. display:contents
   * dissolves that wrapper so the number lands in column one like every other
   * step, and the badge is dropped: on a phone it cost the row its rhythm and
   * pushed the title out of line, and the point it makes is repeated in the
   * step's own text anyway. */
  .step .fold > summary > div:not(.step-no) { display: contents; }
  .step .fold > summary .tag { display: none; }

  /* Sections are generously spaced for a wide screen. On a phone that
   * padding alone is around 1000px of nothing across the page. */
  section { padding-block: 44px; }
  .steps { gap: 0; }
  .step { border-top: 1px solid var(--line); padding: 14px 0 12px; }
  .step p { margin-top: 8px; }
  .cols3 { gap: 0; margin-top: 28px; }
  .col-item { border-top: 1px solid var(--line-soft); padding: 14px 0 12px; }
  .col-item p { margin-top: 8px; }
}

/* --------------------------------------------------- phone masthead */

/* On a laptop the header is one comfortable row. On a phone the same markup
 * wrapped to two rows and stood about 200px tall before the visitor reached
 * a single word of the page.
 *
 * The WhatsApp button comes out of it entirely: the floating green button is
 * already fixed to the corner of every phone screen, so the header copy was
 * a second instance of the same action taking up a whole row.
 */
@media (max-width: 860px) {
  .masthead nav {
    flex-wrap: nowrap;
    padding: 10px 20px;
    gap: 14px;
  }
  /* Two words, one line. Wrapped, it alone made the header 30px taller. */
  .wordmark { font-size: 18px; white-space: nowrap; }
  .nav-links { gap: 16px; flex-wrap: nowrap; }
  .nav-links a:not(.btn) { font-size: 11px; letter-spacing: .1em; }
  .nav-links .btn-wa { display: none; }
}
