/* ============================================================
   The Private Realtor — warm classic design system
   ============================================================ */

:root {
  --cream: #faf7f1;
  --cream-deep: #f3eee4;
  --card: #ffffff;
  --card-soft: #f6f1e8;
  --ink: #1c1a17;
  --ink-soft: #4a463f;
  --ink-faint: #7a746a;
  --bronze: #9a7b4f;
  --bronze-deep: #7d6340;
  --line: #e4ddd0;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow: 0 2px 24px rgba(58, 50, 38, 0.10);
  --radius: 4px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--bronze-deep); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.45rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--bronze);
  margin-bottom: 14px;
}

.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 46em; }

section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .lede { margin: 14px auto 0; }

/* ---------- Header (centered: logo above, menu beneath) ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 1000;
}
.site-header .bar {
  display: flex; flex-direction: column; align-items: center;
  gap: 30px; padding: 30px 24px 20px; max-width: var(--maxw); margin: 0 auto;
  position: relative;
}
.brand { display: flex; align-items: center; text-decoration: none; }
/* Size by width with height:auto so the wordmark always keeps its proportions */
.brand img.logotype { width: min(400px, 82vw); height: auto; }
.main-nav { display: flex; gap: 34px; align-items: center; justify-content: center; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem;
  padding: 6px 0; position: relative;
}
/* Hover underline: thin, grows outward from the centre to the word's full width */
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px; background: var(--bronze);
  transform: translateX(-50%); transition: width 0.28s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
/* Request-a-valuation: underline rather than a box */
.main-nav a.nav-cta { color: var(--ink); padding: 6px 0; }
.main-nav a.nav-cta::after { background: var(--ink); }
.nav-toggle {
  display: none; background: none; border: none; font-size: 1.7rem;
  color: var(--ink); cursor: pointer;
  position: absolute; top: 26px; right: 24px;
}

/* Transparent header over the video hero */
.site-header.overlay {
  background: transparent; border-bottom: none;
  position: absolute; top: 0; left: 0; right: 0;
}
.site-header.overlay .main-nav a { color: rgba(250, 248, 244, 0.85); }
.site-header.overlay .main-nav a:hover,
.site-header.overlay .main-nav a[aria-current="page"] { color: #fff; }
.site-header.overlay .main-nav a::after { background: #fff; }
.site-header.overlay .main-nav a.nav-cta { color: #fff; }
.site-header.overlay .nav-toggle { color: #fff; }
.site-header.overlay .main-nav.open { background: rgba(20, 18, 15, 0.92); }

/* ---------- Video hero ---------- */
.video-hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.video-hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.video-hero .shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,18,15,0.55) 0%, rgba(20,18,15,0.25) 40%, rgba(20,18,15,0.45) 100%);
}
.video-hero .site-header { z-index: 5; }
.video-hero .hero-center {
  position: relative; z-index: 4; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 140px 24px 80px; text-align: center;
}
.search-tabs { display: flex; gap: 34px; margin-bottom: 22px; }
.search-tabs button {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.88rem; color: rgba(250,248,244,0.75); padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.search-tabs button.active { color: #fff; border-bottom-color: #fff; }
.search-tabs button:hover { color: #fff; }
.hero-search {
  display: flex; width: min(680px, 92vw);
  background: #fff; box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.hero-search input {
  flex: 1; border: none; font-family: var(--sans); font-size: 1.05rem;
  padding: 20px 24px; color: var(--ink); background: transparent; min-width: 0;
}
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: var(--ink-faint); letter-spacing: 0.08em; }
.hero-search button {
  border: none; background: transparent; cursor: pointer;
  padding: 0 26px; font-size: 1.3rem; color: var(--ink);
  border-left: 1px solid var(--line);
}
.hero-search button:hover { background: var(--cream-deep); }
.hero-tagline {
  font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: #fff; margin-top: 44px; font-weight: 500;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

/* ---------- Key areas ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.area-card {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5; text-decoration: none;
}
.area-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.area-card:hover img { transform: scale(1.05); }
.area-card .veil {
  position: absolute; inset: 0;
  background: rgba(20, 18, 15, 0.32);
  transition: background 0.3s;
}
.area-card:hover .veil { background: rgba(20, 18, 15, 0.18); }
.area-card .label {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
@media (max-width: 820px) {
  .areas-grid { grid-template-columns: 1fr; }
  .area-card { aspect-ratio: 16 / 9; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans);
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem;
  padding: 15px 34px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--cream);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn.small { padding: 10px 22px; font-size: 0.76rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center; padding: 96px 24px 88px;
}
.hero .icon { height: 88px; margin: 0 auto 26px; opacity: 0.9; }
.hero h1 { max-width: 15em; margin: 0 auto; }
.hero .lede { margin: 22px auto 34px; }
.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Property cards ---------- */
.property-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.property-card {
  text-decoration: none; color: var(--ink); display: block;
  transition: transform 0.25s;
}
.property-card:hover { transform: translateY(-3px); }
.property-card .photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-deep); }
.property-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.property-card .status-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(28, 26, 23, 0.85); color: var(--cream);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 12px;
}
.property-card .body { padding: 22px 24px 26px; background: var(--card-soft); }
.property-card .price { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
.property-card .qualifier { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); }
.property-card .address { margin-top: 6px; color: var(--ink-soft); font-size: 1.02rem; }
.property-card .meta { margin-top: 12px; display: flex; gap: 18px; color: var(--ink-faint); font-size: 0.9rem; }
.property-card .meta span strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- Filters ---------- */
.filter-bar {
  background: var(--card); border: 1px solid var(--line);
  padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: end;
  margin-bottom: 34px;
}
.filter-bar .field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; }
.filter-bar label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); }
.filter-bar select, .filter-bar input {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); background: var(--cream);
  border-radius: var(--radius);
}
.view-toggle { display: flex; border: 1px solid var(--ink); }
.view-toggle button {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.76rem; padding: 12px 20px; border: none; cursor: pointer;
  background: transparent; color: var(--ink);
}
.view-toggle button.active { background: var(--ink); color: var(--cream); }

.results-count { color: var(--ink-faint); font-size: 0.92rem; margin-bottom: 20px; }

/* ---------- Map ---------- */
#map, #detail-map { height: 620px; border: 1px solid var(--line); background: var(--cream-deep); }
#detail-map { height: 420px; }
.map-popup { font-family: var(--sans); }
.map-popup a { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.map-popup .p-price { color: var(--bronze-deep); font-weight: 600; }
.leaflet-container { font: inherit; }

/* ---------- Property detail ---------- */
.detail-head { padding: 48px 24px 28px; } /* side padding must match .container so text aligns with images */
.detail-head .price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px; margin-top: 10px; }
.detail-head .price { font-family: var(--serif); font-size: 2.2rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 26px; color: var(--ink-soft); margin-top: 14px; font-size: 1rem; }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.gallery .main { aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-deep); cursor: pointer; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery .thumbs .thumb { overflow: hidden; background: var(--cream-deep); cursor: pointer; position: relative; }
.gallery .thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs .thumb .more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(28,26,23,0.55); color: var(--cream); font-family: var(--serif); font-size: 1.4rem;
}

/* Gallery v2: portrait lead (video or photo) + 2x2 image grid */
.gallery2 {
  display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 12px;
  align-items: stretch;
}
.gallery2 .lead {
  position: relative; overflow: hidden; background: var(--cream-deep);
  aspect-ratio: 3 / 4; cursor: pointer;
}
.gallery2 .lead video, .gallery2 .lead img, .gallery2 .lead iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border: none; display: block;
}
/* When the lead is a video: show it at its natural size (no crop, no letterbox bars);
   the image grid to the right is sized in JS to match the video's exact height. */
.gallery2.has-video { grid-template-columns: 1.55fr 1fr; align-items: start; }
.gallery2.has-video .lead { position: relative; aspect-ratio: auto; overflow: visible; background: none; }
.gallery2.has-video .lead video {
  position: static; width: 100%; height: auto; display: block; object-fit: fill;
}
.gallery2.has-video .grid4 { grid-template-rows: 1fr 1fr; }
.gallery2.has-video .grid4 .tile { min-height: 0; }
@media (max-width: 820px) {
  .gallery2.has-video { grid-template-columns: 1fr; }
  .gallery2.has-video .grid4 { height: auto !important; grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
}

/* Share menu */
.share-wrap { position: relative; display: inline-block; }
.share-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 500;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  min-width: 210px; padding: 8px 0;
}
.share-menu.open { display: block; }
.share-menu a, .share-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft);
  padding: 11px 20px; cursor: pointer; text-decoration: none;
}
.share-menu a:hover, .share-menu button:hover { background: var(--cream-deep); color: var(--ink); }
.gallery2 .grid4 {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 12px; min-height: 0;
}
.gallery2 .tile { position: relative; overflow: hidden; background: var(--cream-deep); cursor: pointer; }
.gallery2 .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery2 .album-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(28, 26, 23, 0.55); color: var(--cream);
  font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: 0.04em;
  transition: background 0.25s;
}
.gallery2 .tile:hover .album-overlay { background: rgba(28, 26, 23, 0.7); }

/* No video + landscape first photo: hero image spans the portrait slot and the
   adjacent column; two stacked photos remain on the right */
.gallery2.wide-lead { grid-template-columns: 1.76fr 0.82fr; }
.gallery2.wide-lead .lead { aspect-ratio: auto; height: 100%; }
.gallery2.wide-lead .grid4 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.gallery2.wide-lead .tile { aspect-ratio: 3 / 2; }

@media (max-width: 820px) {
  .gallery2.wide-lead { grid-template-columns: 1fr; }
  .gallery2.wide-lead .lead { aspect-ratio: 4 / 3; height: auto; }
  .gallery2.wide-lead .grid4 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery2 { grid-template-columns: 1fr; }
  .gallery2 .lead { aspect-ratio: 4 / 3; }
  .gallery2 .grid4 { grid-auto-rows: 140px; }
}

.gallery-actions { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }

/* Enquiry box (full viewing-request form below the description) */
.enquiry-box {
  background: var(--card); border: 1px solid var(--line);
  padding: 44px 46px 40px; max-width: 860px;
}
@media (max-width: 640px) { .enquiry-box { padding: 30px 24px; } }

.detail-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: start; }
.prose p { margin-bottom: 1.1em; color: var(--ink-soft); }
.features-list { list-style: none; margin-top: 10px; }
.features-list li {
  padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line);
  position: relative; color: var(--ink-soft);
}
.features-list li::before {
  content: ""; position: absolute; left: 2px; top: 21px;
  width: 14px; height: 1px; background: var(--bronze);
}

.side-card {
  background: var(--card); border: 1px solid var(--line); padding: 30px 30px 34px;
  position: sticky; top: 96px;
}
/* Key-features box: static, top edge aligned with the divider line under the tab menu */
#features-card { position: static; margin-top: 45px; }
@media (max-width: 900px) { #features-card { margin-top: 0; } }
.side-card h3 { margin-bottom: 6px; }
.side-card .note { font-size: 0.92rem; color: var(--ink-faint); margin-bottom: 18px; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tabs button {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem;
  background: none; border: none; padding: 14px 22px; cursor: pointer; color: var(--ink-faint);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--ink); border-bottom-color: var(--bronze); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel iframe, .tab-panel .floorplan img { width: 100%; border: 1px solid var(--line); }
.tab-panel iframe { aspect-ratio: 16 / 9; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1.02rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); background: var(--cream);
  border-radius: var(--radius);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--bronze); outline-offset: 0; }
.form-note { font-size: 0.88rem; color: var(--ink-faint); margin-top: 14px; }
.form-success {
  display: none; background: #f0f5ee; border: 1px solid #cfe0c8; color: #3c5a33;
  padding: 22px 26px; margin-top: 18px; font-size: 1.02rem;
}
.form-success.show { display: block; }
.hidden-field { display: none; }

/* ---------- Reviews ---------- */
.reviews-band { background: var(--cream-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rating-summary { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 38px; flex-wrap: wrap; }
.rating-summary .big { font-family: var(--serif); font-size: 2.6rem; }
.stars { color: var(--bronze); letter-spacing: 3px; font-size: 1.15rem; }
.rating-summary .count { color: var(--ink-faint); font-size: 0.95rem; }
.google-mark { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.review-card {
  background: var(--card); border: 1px solid var(--line); padding: 32px 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.review-card .quote-mark { font-family: var(--serif); font-size: 3rem; line-height: 0.5; color: var(--bronze); }
.review-card .text { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.review-card .who { font-family: var(--serif); font-size: 1.15rem; }
.review-card .when { color: var(--ink-faint); font-size: 0.85rem; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .visual {
  background: var(--cream-deep); border: 1px solid var(--line);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
}
.split .visual img { max-height: 60%; opacity: 0.85; }

/* ---------- Value props ---------- */
.props-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.prop {
  background: var(--card); border: 1px solid var(--line); padding: 38px 32px;
}
.prop .num { font-family: var(--serif); font-size: 1.1rem; color: var(--bronze); letter-spacing: 0.1em; margin-bottom: 12px; }
.prop h3 { margin-bottom: 10px; }
.prop p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- People ---------- */
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.person { background: var(--card); border: 1px solid var(--line); }
.person .photo { aspect-ratio: 4 / 5; background: var(--cream-deep); display: flex; align-items: center; justify-content: center; }
.person .photo img.placeholder-icon { height: 90px; opacity: 0.35; }
.person .bio { padding: 30px 32px 36px; }
.person .role { color: var(--bronze); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.76rem; margin: 4px 0 14px; }
.person p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--cream); text-align: center; }
.cta-band h2 { color: var(--cream); }
.cta-band .lede { color: #c9c2b6; margin: 16px auto 30px; }
.cta-band .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.cta-band .btn:hover { background: var(--bronze); border-color: var(--bronze); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-deep); border-top: 1px solid var(--line); padding: 56px 0 36px; }
.site-footer .cols { display: grid; grid-template-columns: 1.9fr 0.9fr 1fr 1.2fr; gap: 60px; }
.site-footer img.logotype { width: min(300px, 100%); height: auto; margin-bottom: 18px; }
.site-footer .brand-col { padding-right: 20px; }
.portal-icons { display: flex; flex-wrap: nowrap; gap: 11px; margin-top: 16px; align-items: center; }
.portal-icons a, .portal-icons span { display: block; line-height: 0; }
.portal-icons img {
  width: 20px; height: 20px; object-fit: contain;
  transition: opacity 0.2s;
}
/* Taupe tint only for icons we don't have brand artwork for (PRS) */
.portal-icons img.tint {
  filter: brightness(0) invert(28%) sepia(10%) saturate(420%) hue-rotate(4deg) brightness(98%) contrast(90%);
}
.portal-icons a:hover img { opacity: 0.55; }
.site-footer p, .site-footer a { color: var(--ink-soft); font-size: 0.95rem; }
.site-footer h4 { font-size: 1.05rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Similar properties ---------- */
.similar-band { background: var(--cream-deep); border-top: 1px solid var(--line); }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(20, 18, 15, 0.94); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: none; color: #fff; cursor: pointer;
  font-size: 2.2rem; padding: 18px; opacity: 0.8;
}
.lightbox button:hover { opacity: 1; }
.lightbox .close { top: 12px; right: 18px; }
.lightbox .prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #cfc8bc; font-size: 0.9rem; letter-spacing: 0.1em; }

/* ---------- Loading ---------- */
.loading { text-align: center; padding: 70px 0; color: var(--ink-faint); font-family: var(--serif); font-size: 1.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .detail-cols, .split, .people-grid, .gallery { grid-template-columns: 1fr; }
  .gallery .thumbs { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 30px; }
  .side-card { position: static; }
  #map { height: 480px; }
}
@media (max-width: 760px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 24px 26px; gap: 18px; align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { padding: 64px 20px 60px; }
}


/* ---- Footer legal row ---- */
.site-footer .legal-links { display: flex; gap: 22px; }
.site-footer .legal-links a, .site-footer .legal-small a { font-size: 0.85rem; }
.site-footer .legal-small { margin-top: 12px; color: var(--ink-faint); font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---- About: founder portraits ---- */
.person .photo { overflow: hidden; }
.person .photo img.founder-photo { width: 100%; height: 100%; object-fit: cover; }

/* ---- Legal pages (privacy, cookies, complaints) ---- */
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-doc h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 2.2em 0 0.6em; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 1.25rem; margin: 1.6em 0 0.4em; }
.legal-doc ul, .legal-doc ol { margin: 0 0 1.1em 1.3em; color: var(--ink-soft); }
.legal-doc li { margin-bottom: 0.45em; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.legal-doc th { color: var(--ink); font-weight: 500; }
.legal-doc .updated { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 2em; }
@media (max-width: 640px) {
  .legal-doc table, .legal-doc tbody, .legal-doc tr, .legal-doc td, .legal-doc th { display: block; width: 100%; }
  .legal-doc thead { display: none; }
  .legal-doc td { border-bottom: none; padding: 4px 0; }
  .legal-doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}

/* ---- Form privacy line ---- */
.form-privacy { font-size: 0.85rem; color: var(--ink-faint); margin-top: 10px; }

/* Footer plain-text items match link styling */
.site-footer li { color: var(--ink-soft); font-size: 0.95rem; }


/* ================= Property page refinements ================= */
/* iPhone Safari: never underline/restyle detected addresses or numbers */
a[x-apple-data-detectors], a[href^="x-apple-data-detectors:"] {
  color: inherit !important; text-decoration: none !important;
  font: inherit !important; pointer-events: none;
}

/* Status stamp (Sold / Sold STC / Under Offer) on the main image */
.gallery2 .lead .status-stamp {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: rgba(28, 26, 23, 0.86); color: var(--cream);
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 9px 18px; pointer-events: none;
}

.gallery2.has-video .lead .status-stamp { position: absolute; }

/* Album overlays: desktop vs phone */
.gallery2 .album-overlay.mob-only { display: none; }

/* Gallery buttons: one line, compact */
.gallery-actions { flex-wrap: nowrap; gap: 10px; }
.gallery-actions .btn { padding: 11px 22px; font-size: 0.74rem; letter-spacing: 0.14em; white-space: nowrap; }

/* Description collapse */
.desc-body { position: relative; overflow: hidden; }
.desc-body.collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: linear-gradient(rgba(250, 247, 241, 0), var(--cream, #faf7f1));
}
.read-more {
  margin-top: 8px; background: none; border: none; padding: 6px 0; cursor: pointer;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem;
  color: var(--ink); border-bottom: 1px solid var(--bronze);
}
.read-more:hover { color: var(--bronze-deep); }

/* Floorplan: click to enlarge */
.floorplan .fp-open { display: block; position: relative; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; margin-bottom: 14px; }
.floorplan .fp-open img { display: block; }
.floorplan .fp-hint {
  position: absolute; right: 12px; bottom: 12px; background: rgba(28, 26, 23, 0.8); color: var(--cream);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 12px;
}
.lightbox.is-floorplan { background: rgba(250, 247, 241, 0.98); }
.lightbox.is-floorplan img { max-width: 96vw; max-height: 92vh; background: #fff; }
.lightbox.is-floorplan button { color: var(--ink); }
.lightbox.is-floorplan .counter { color: var(--ink-faint); }

@media (max-width: 820px) {
  /* Phone gallery: main image, then two photos side by side beneath */
  .gallery2 .grid4, .gallery2.wide-lead .grid4, .gallery2.has-video .grid4 {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-auto-rows: auto; height: auto !important;
  }
  .gallery2 .grid4 .tile { aspect-ratio: 3 / 2; }
  .gallery2 .grid4 .tile:nth-child(n+3) { display: none; }
  .gallery2 .album-overlay.mob-only { display: flex; }
  .gallery2 .album-overlay.desk-only { display: none; }
  .gallery2 .lead .status-stamp { top: 12px; left: 12px; font-size: 0.68rem; padding: 7px 13px; }
}
@media (max-width: 560px) {
  .gallery-actions { gap: 8px; }
  .gallery-actions > .btn, .gallery-actions > .share-wrap { flex: 1 1 0; min-width: 0; }
  .gallery-actions .btn { width: 100%; padding: 10px 6px; font-size: 0.64rem; letter-spacing: 0.1em; text-align: center; }
  .gallery-actions .btn .lg { display: none; }
  .gallery-actions .btn span.sm { display: inline; }
  .share-menu { left: auto; right: 0; }
}

.gallery-actions .btn .sm { display: none; }
#detail-map { height: 460px; }
@media (max-width: 640px) { #detail-map { height: 360px; } }

/* ---- Gallery buttons: identical height, aligned ---- */
.gallery-actions { align-items: stretch; }
.gallery-actions > .btn, .gallery-actions .share-wrap > .btn {
  height: 46px; box-sizing: border-box; display: inline-block; text-align: center;
  line-height: 44px; padding-top: 0; padding-bottom: 0; margin: 0; font-family: var(--sans); white-space: nowrap;
}
.gallery-actions .share-wrap { display: flex; }

/* ---- Read more: clearer ---- */
.read-more { color: var(--bronze-deep); font-size: 0.82rem; padding: 8px 0 6px; }

/* ---- "Not quite right?" alerts ---- */
.alerts-box { max-width: 860px; margin-top: 22px; padding: 22px 46px; border: 1px solid var(--line); background: var(--card-soft, var(--card)); }
.alerts-lead { margin: 0; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.alerts-toggle {
  background: none; border: none; padding: 0; margin-left: 6px; cursor: pointer;
  font: inherit; color: var(--bronze-deep); border-bottom: 1px solid var(--bronze);
}
.alerts-toggle:hover { color: var(--ink); }
#alerts-form { margin-top: 20px; }
@media (max-width: 640px) {
  .alerts-box { padding: 20px 24px; }
  .alerts-toggle { margin-left: 0; display: inline; }
}

/* ---- About page ---- */
.story-photo { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line); background: var(--cream-deep); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person .photo img.founder-photo { object-position: center 20%; }
.person .bio p { margin-bottom: 0.9em; }
.person-contact { list-style: none; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.person-contact li { margin-bottom: 6px; }
.person-contact a { color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.person-contact a:hover { color: var(--bronze-deep); }
.approach-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reasons li { background: var(--card); border: 1px solid var(--line); padding: 28px 28px 30px; }
.reasons .n { display: block; font-family: var(--serif); color: var(--bronze); letter-spacing: 0.1em; margin-bottom: 12px; }
.reasons p { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--ink); }
.reasons li.closing { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); text-align: center; padding: 36px 28px; }
.reasons li.closing .n { color: var(--bronze); }
.reasons li.closing p { color: var(--cream); font-size: 1.6rem; }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reasons { grid-template-columns: 1fr; } .reasons li.closing p { font-size: 1.35rem; } }

/* ---- Map pop-up card (Properties map view) ---- */
.map-card { display: block; width: 280px; text-decoration: none; color: var(--ink); background: var(--card); font-family: var(--sans); }
.map-card .mc-photo { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-deep); }
.map-card .mc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-card .status-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(28, 26, 23, 0.85); color: var(--cream);
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 10px;
}
.map-card .mc-body { padding: 16px 18px 18px; background: var(--card-soft, var(--card)); }
.map-card .qualifier { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); }
.map-card .price { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); line-height: 1.2; }
.map-card .address { margin-top: 4px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card .meta { margin-top: 10px; display: flex; gap: 16px; color: var(--ink-faint); font-size: 0.85rem; }
.map-card .meta strong { color: var(--ink-soft); font-weight: 600; }
.map-card:hover .price { color: var(--bronze-deep); }

/* Google Maps info window: remove padding so the photo runs edge to edge,
   and float the standard close (×) button over the photo */
#map .gm-style .gm-style-iw-c { padding: 0 !important; border-radius: 0; box-shadow: 0 12px 32px rgba(28, 26, 23, 0.22); }
#map .gm-style .gm-style-iw-d { padding: 0 !important; overflow: hidden !important; max-height: none !important; }
#map .gm-style .gm-style-iw-chr { position: absolute; top: 8px; right: 8px; z-index: 3; }
#map .gm-style .gm-style-iw-ch { display: none; }
#map .gm-style .gm-style-iw-chr .gm-ui-hover-effect {
  width: 32px !important; height: 32px !important; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) !important; opacity: 1;
}
#map .gm-style .gm-style-iw-chr .gm-ui-hover-effect span { margin: 6px !important; width: 20px !important; height: 20px !important; }
#map .gm-style .gm-style-iw-tc::after { background: var(--card-soft, var(--card)); }

/* Leaflet fallback pop-up: same card, no padding */
.tpr-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 0; overflow: hidden; }
.tpr-popup .leaflet-popup-content { margin: 0; width: 280px !important; }
.tpr-popup .leaflet-popup-close-button { top: 8px !important; right: 8px !important; width: 28px !important; height: 28px !important;
  background: rgba(255, 255, 255, 0.92); border-radius: 50%; line-height: 26px !important; z-index: 3; }

/* ---- How We Work: compact hero + key reviews ---- */
.hero.hero-compact { padding: 48px 24px 44px; }
@media (max-width: 760px) { .hero.hero-compact { padding: 32px 20px 30px; } }
.key-reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.key-review { margin: 0; background: var(--card); border: 1px solid var(--line); padding: 34px 36px 30px; }
.key-review .quote-mark { font-family: var(--serif); font-size: 3rem; line-height: 0.5; color: var(--bronze); }
.key-review .stars { color: var(--bronze); letter-spacing: 0.1em; margin: 12px 0 14px; }
.key-review blockquote { margin: 0; }
.key-review blockquote p { font-family: var(--serif); font-size: 1.18rem; line-height: 1.55; color: var(--ink); margin: 0 0 0.9em; }
.key-review figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.key-review .who { font-family: var(--serif); font-size: 1.15rem; }
.key-review .when { color: var(--ink-faint); font-size: 0.85rem; }
@media (max-width: 900px) { .key-reviews { grid-template-columns: 1fr; } }
.review-card .text { white-space: pre-line; }
.steps-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---- Viewing request pop-up ---- */
.modal { position: fixed; inset: 0; z-index: 3000; background: rgba(20, 18, 15, 0.6);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 5vh 16px; }
.modal[hidden] { display: none; }
.modal-panel { position: relative; width: 100%; max-width: 860px; }
.modal-panel .enquiry-box { max-width: none; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.modal-close { position: absolute; top: 10px; right: 14px; z-index: 2; background: none; border: none;
  font-size: 2.2rem; line-height: 1; color: var(--ink-faint); cursor: pointer; padding: 6px 10px; }
.modal-close:hover { color: var(--ink); }
body.modal-open { overflow: hidden; }
@media (max-width: 640px) { .modal { padding: 0; } .modal-panel .enquiry-box { min-height: 100vh; } }

/* ---- Compact page headers (Request a valuation, About) ---- */
.hero.hero-compact { padding: 48px 24px 44px; }

/* ---- Contact: form and "Prefer to talk?" scroll together ---- */
.side-card { position: static; }

/* ---- Properties filter: List/Map toggle same height as the drop-downs ---- */
.filter-bar .view-toggle { align-self: flex-end; height: 48px; box-sizing: border-box; }
.filter-bar .view-toggle button { height: 100%; display: flex; align-items: center; }

/* ---- Album: sliding track ---- */
.lightbox .lb-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.lightbox .lb-track { display: flex; height: 100%; will-change: transform; }
.lightbox .lb-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-slide img { max-width: 90vw; max-height: 86vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox.is-floorplan .lb-slide img { max-width: 96vw; max-height: 92vh; background: #fff; }
.lightbox .close, .lightbox .prev, .lightbox .next, .lightbox .counter { z-index: 2; }
@media (max-width: 820px) {
  .lightbox .lb-slide img { max-width: 100vw; max-height: 80vh; }
  /* Phone: swipe only, no arrows, no album label over the second photo */
  .lightbox .prev, .lightbox .next { display: none !important; }
  .gallery2 .album-overlay.mob-only { display: none !important; }
}

/* ---- Home hero: tagline + mark ---- */
.video-hero .hero-tagline { margin-top: 0; }
.video-hero .hero-mark { display: block; width: clamp(52px, 6vw, 78px); height: auto; margin: 28px auto 0;
  opacity: 0.92; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35)); }

/* Tagline: the dash sits exactly on the page centre line (under the logo and menu),
   and the sword of the mark below is centred under the dash */
.video-hero .hero-center { width: 100%; }
.video-hero .hero-tagline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; column-gap: 0.32em; width: 100%; }
.video-hero .hero-tagline .tl-left { text-align: right; }
.video-hero .hero-tagline .tl-right { text-align: left; }
.video-hero .hero-mark { transform: translateX(5.9%); } /* the sword sits slightly left of the image centre */
@media (max-width: 600px) { .video-hero .hero-tagline { font-size: 1.55rem; column-gap: 0.25em; } }

/* ---- Home: Why it pays to go private ---- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 auto 56px; max-width: 1040px; }
.stats-row .stat { text-align: center; padding: 30px 12px 28px; }
.stats-row .stat + .stat { border-left: 1px solid var(--line); }
.stats-row .stat-num { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--ink); }
.stats-row .stat-label { display: block; margin-top: 10px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.reasons-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.reasons-list li { display: flex; gap: 22px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.reasons-list .rn { flex: 0 0 34px; font-family: var(--serif); color: var(--bronze); letter-spacing: 0.08em; font-size: 1rem; }
.reasons-list p { margin: 0; font-family: var(--serif); font-size: 1.28rem; line-height: 1.4; color: var(--ink); }
.reasons-list li.wide { grid-column: 1 / -1; justify-content: center; text-align: center; border-bottom: none; padding-top: 34px; }
.reasons-list li.wide p { font-size: 1.6rem; font-style: italic; }
@media (max-width: 820px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stats-row .stat:nth-child(3) { border-left: none; }
  .stats-row .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .reasons-list { grid-template-columns: 1fr; }
  .reasons-list p { font-size: 1.15rem; }
  .reasons-list li.wide p { font-size: 1.3rem; }
}
.section-head h2 + .lede { margin-top: 14px; }


/* ---- Header: menu split either side of the wordmark, fine dots between ---- */
.site-header .bar.split {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  column-gap: 40px; padding: 26px 40px; max-width: 1440px;
}
.side-nav { display: flex; align-items: center; gap: 20px; }
.side-nav.left { justify-content: flex-start; }
.side-nav.right { justify-content: flex-end; }
.side-nav a {
  text-decoration: none; color: var(--ink-soft); white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.68rem;
  padding: 6px 0; position: relative;
}
.side-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 1px;
  background: var(--bronze); transform: translateX(-50%); transition: width 0.28s ease;
}
.side-nav a:hover::after, .side-nav a[aria-current="page"]::after { width: 100%; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: var(--ink); }
.side-nav .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; color: var(--ink-faint); opacity: 0.7; flex: none; }
.site-header .bar.split .brand img.logotype { width: min(340px, 28vw); }
.site-header.overlay .side-nav a { color: rgba(250, 248, 244, 0.85); }
.site-header.overlay .side-nav a:hover, .site-header.overlay .side-nav a[aria-current="page"] { color: #fff; }
.site-header.overlay .side-nav a::after { background: #fff; }
.site-header.overlay .side-nav .dot { color: rgba(250, 248, 244, 0.7); }
/* The full list only appears as the drop-down menu on smaller screens */
.site-header .bar.split .main-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid var(--line);
  flex-direction: column; padding: 18px 24px 26px; gap: 18px; align-items: flex-start;
}
.site-header .bar.split .main-nav.open { display: flex; }
.site-header .bar.split .nav-toggle { display: none; top: 50%; transform: translateY(-50%); }
@media (max-width: 1240px) {
  .site-header .bar.split { column-gap: 24px; padding-left: 24px; padding-right: 24px; }
  .side-nav { gap: 13px; }
  .side-nav a { letter-spacing: 0.16em; font-size: 0.64rem; }
  .site-header .bar.split .brand img.logotype { width: min(300px, 25vw); }
}
@media (max-width: 900px) {
  .side-nav { display: none; }
  .site-header .bar.split { grid-template-columns: 1fr; justify-items: center; padding: 22px 60px; }
  .site-header .bar.split .brand img.logotype { width: min(300px, 60vw); }
  .site-header .bar.split .nav-toggle { display: block; }
}
.site-header.overlay .bar.split .main-nav { background: rgba(20, 18, 15, 0.94); border-bottom: none; }
.site-header .bar.split .nav-toggle {
  font-size: 0; width: 30px; height: 30px; right: 22px; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) center 11px / 24px 1px no-repeat,
              linear-gradient(currentColor, currentColor) center 19px / 24px 1px no-repeat;
}
.site-header.overlay .bar.split .nav-toggle { color: #fff; }

/* ---- Header on tablets/phones: logo and menu icon each in their own space, never touching ---- */
@media (max-width: 900px) {
  .site-header .bar.split {
    grid-template-columns: 44px minmax(0, 1fr) 44px; column-gap: 14px;
    justify-items: center; padding: 18px 16px;
  }
  .site-header .bar.split .brand { grid-column: 2; max-width: 100%; }
  .site-header .bar.split .brand img.logotype { width: min(300px, 100%); max-width: 100%; }
  .site-header .bar.split .nav-toggle {
    grid-column: 3; position: static; transform: none; justify-self: end;
  }
  .home-atelier .site-header .bar.split { padding: 20px 16px; }
  .home-atelier .site-header .bar.split .brand img.logotype { width: min(220px, 100%); }
}

/* ---- Property gallery: video in the main slot ---- */
.gallery2.video-lead .lead { cursor: pointer; background: #1c1a17; }
.gallery2.video-lead .lead video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery2 .video-play, .gallery2 .video-fs {
  position: absolute; z-index: 3; border: none; cursor: pointer; color: #fff;
  background: rgba(20, 18, 15, 0.55); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.gallery2 .video-play { left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; padding-left: 4px; }
.gallery2 .video-fs { right: 14px; bottom: 14px; width: 40px; height: 40px; }
.gallery2 .video-play:hover, .gallery2 .video-fs:hover { background: rgba(20, 18, 15, 0.8); }
.gallery2 .lead.playing .video-play { display: none; }
@media (max-width: 820px) {
  /* Phone: main photo with a play button (film opens full screen), two photos beneath */
  .gallery2.video-lead .lead { aspect-ratio: 4 / 3; height: auto; }
  .gallery2.video-lead .lead video { display: none; }
  .gallery2.video-lead .grid4 .tile:nth-child(1) { display: none; }
  .gallery2.video-lead .grid4 .tile:nth-child(3) { display: block; }
  .gallery2.video-lead .video-fs { display: none; }
  .gallery2 .video-fs { right: 10px; bottom: 10px; width: 36px; height: 36px; }
}

/* ---- Property tabs: always on one line on phones ---- */
@media (max-width: 560px) {
  .tabs { flex-wrap: nowrap; }
  .tabs button { flex: 1 1 0; min-width: 0; padding: 12px 4px; font-size: 0.66rem; letter-spacing: 0.1em; white-space: nowrap; text-align: center; }
}
@media (max-width: 350px) {
  .tabs button { font-size: 0.6rem; letter-spacing: 0.06em; }
}

/* Video lead: the main photo sits underneath (shown on phones) */
.gallery2.video-lead .lead img.video-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 821px) {
  .gallery2.video-lead .grid4 .tile:nth-child(3) { display: none; }
}

/* Album: swipes stay horizontal, the page behind never moves, photos can be zoomed */
html.lb-lock, html.lb-lock body { overflow: hidden; overscroll-behavior: none; }
.lightbox .lb-viewport { touch-action: none; }
.lightbox .lb-slide img { cursor: zoom-in; transform-origin: center center; will-change: transform; }
.lightbox.zoomed .lb-slide img { cursor: grab; }
.lightbox.zoomed .prev, .lightbox.zoomed .next { opacity: 0; pointer-events: none; }

/* ---- Property page: the Realtor for this home, beneath the description ---- */
.agent-banner {
  display: grid; grid-template-columns: 210px 1fr; gap: 40px; align-items: center;
  margin-top: 44px; padding: 28px; background: var(--card-soft);
}
.agent-banner[hidden] { display: none; }
.agent-banner .ab-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-deep); }
.agent-banner .ab-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.agent-banner .ab-eyebrow { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze); margin: 0 0 10px; }
.agent-banner h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 400; margin: 0 0 4px; }
.agent-banner .ab-role { color: var(--ink-faint); font-size: 0.95rem; margin: 0 0 18px; }
.agent-banner .ab-contact { list-style: none; padding: 0; margin: 0 0 22px; }
.agent-banner .ab-contact li { margin: 4px 0; }
.agent-banner .ab-contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.agent-banner .ab-contact a:hover { border-color: var(--bronze); }
@media (max-width: 640px) {
  .agent-banner { grid-template-columns: 112px 1fr; gap: 18px; padding: 18px; margin-top: 32px; align-items: start; }
  .agent-banner h3 { font-size: 1.35rem; }
  .agent-banner .ab-role { font-size: 0.85rem; margin-bottom: 12px; }
  .agent-banner .ab-contact { font-size: 0.82rem; margin-bottom: 14px; }
  .agent-banner .ab-contact a { overflow-wrap: anywhere; }
  .agent-banner .btn { padding: 11px 16px; font-size: 0.68rem; }
}

/* Banner with "Not quite right for you?" on its right-hand side */
.agent-banner.has-alerts { grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1fr); }
.agent-banner .ab-alerts { align-self: stretch; display: flex; align-items: center; padding-left: 40px; position: relative; }
.agent-banner .ab-alerts::before {
  content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.agent-banner .alerts-box { max-width: none; margin: 0; padding: 0; border: none; background: none; width: 100%; }
.agent-banner .alerts-lead { font-size: 1.35rem; line-height: 1.4; }
.agent-banner .alerts-toggle { display: table; margin: 8px 0 0; text-align: left; }
.agent-banner #alerts-form .form-grid { grid-template-columns: 1fr; }
@media (max-width: 1000px) {
  .agent-banner.has-alerts { grid-template-columns: 180px minmax(0, 1fr); }
  .agent-banner .ab-alerts { grid-column: 1 / -1; padding: 22px 0 0; }
  .agent-banner .ab-alerts::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }
}
@media (max-width: 640px) {
  .agent-banner.has-alerts { grid-template-columns: 112px minmax(0, 1fr); }
  .agent-banner .alerts-lead { font-size: 1.15rem; }
}
@media (max-width: 640px) {
  .agent-banner.has-alerts, .agent-banner { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .agent-banner .ab-contact { font-size: 0.78rem; }
  .agent-banner .ab-contact a { overflow-wrap: normal; white-space: nowrap; }
}

/* ---- Valuation form: address search with suggestions, or manual entry ---- */
.addr-search { position: relative; }
.addr-search[hidden], .addr-manual[hidden] { display: none !important; }
.addr-suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50;
  list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(28, 26, 23, 0.08); max-height: 290px; overflow-y: auto;
}
.addr-suggestions li { padding: 10px 16px; cursor: pointer; font-size: 0.98rem; color: var(--ink-soft); }
.addr-suggestions li:hover, .addr-suggestions li.on { background: var(--cream-deep); color: var(--ink); }
.addr-manual-toggle {
  background: none; border: none; padding: 0; margin-top: 10px; cursor: pointer;
  font-family: var(--sans); font-size: 0.85rem; color: var(--bronze-deep); border-bottom: 1px solid var(--bronze);
}
.addr-manual { margin-top: 16px; }

/* ---- Footer small print on one line ---- */
.site-footer .legal-line { justify-content: flex-start; align-items: baseline; gap: 6px 18px; font-size: 0.7rem; letter-spacing: 0.01em; }
.site-footer .legal-line > * { white-space: nowrap; }
.site-footer .legal-line a, .site-footer .legal-line .legal-links a { font-size: 0.7rem; color: var(--ink-faint); text-decoration: none; }
.site-footer .legal-line a:hover { color: var(--ink); }
.site-footer .legal-line .legal-links { margin-left: auto; gap: 16px; }
@media (max-width: 900px) {
  .site-footer .legal-line > * { white-space: normal; }
  .site-footer .legal-line .legal-links { margin-left: 0; }
}

/* ---- Valuation page: branded date picker, spacing ---- */
.date-pick { position: relative; }
.date-pick input { cursor: pointer; }
.cal {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: 300px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(28, 26, 23, 0.1); padding: 16px;
}
.cal[hidden] { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.cal-nav { background: none; border: none; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--bronze-deep); padding: 2px 10px; }
.cal-nav:disabled { color: var(--line); cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dow span { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); padding: 4px 0 6px; }
.cal-grid button { background: none; border: none; cursor: pointer; height: 36px; font-family: var(--sans); font-size: 0.9rem; color: var(--ink); }
.cal-grid button:hover:not(:disabled) { background: var(--cream-deep); }
.cal-grid button:disabled { color: #cfc8bb; cursor: default; }
.cal-grid button.on { background: var(--ink); color: var(--cream); }
#valuation-form .form-privacy { margin-top: 20px; }

/* ---- Stories (Google reviews) ---- */
.stories-section { padding: 56px 0 80px; }
.story .st-stars { color: var(--bronze); letter-spacing: 0.3em; font-size: 0.85rem; margin: 0 0 16px; }
.story .st-text p { font-family: var(--serif); color: var(--ink); margin: 0 0 0.8em; }
.story .st-text p:last-child { margin-bottom: 0; }
.story .st-more { background: none; border: none; padding: 0; margin-top: 14px; cursor: pointer;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.story .st-more:hover { color: var(--bronze-deep); }
.story .st-who { margin: 22px 0 0; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); }
.story .st-who a { color: inherit; text-decoration: none; }
.story .st-who span { display: block; margin-top: 6px; font-size: 0.64rem; letter-spacing: 0.18em; color: var(--ink-faint); }
.st-google { text-align: center; margin-top: 48px; }
.stories { scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }

/* Option A: editorial, two columns of quotes divided by fine fading lines */
.stories.editorial { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; }
.stories.editorial .story { padding: 40px 0; border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent) 1; }
.stories.editorial .st-text { font-size: 1.4rem; line-height: 1.5; }
.stories.editorial .st-text p { font-style: italic; font-weight: 500; font-size: 1em; line-height: 1.5; }
/* Every review shows 8 lines, so "Read more" and the names line up */
.stories.editorial .st-text { height: 12em; overflow: hidden; }
.stories.editorial .st-text.clamped { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.5em), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 1.5em), transparent); }
.stories.editorial .st-text.open { height: auto; -webkit-mask-image: none; mask-image: none; }
.story .st-more.none { visibility: hidden; }

/* Option B: carousel of three cards, arrows and count */
.st-controls { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: -10px 0 20px; }
.st-controls .ha-arrow { color: var(--bronze); }
.st-controls .ha-arrow:disabled { color: var(--line); cursor: default; }
.stories.carousel { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; align-items: flex-start; }
.stories.carousel .story { flex: 0 0 calc((100% - 56px) / 3); scroll-snap-align: start; background: var(--card-soft); padding: 38px 34px 34px; }
.stories.carousel .st-text p { font-size: 1.18rem; line-height: 1.6; }

@media (max-width: 760px) {
  .stories-section { padding: 36px 0 56px; }
  .st-controls { display: none; }
  .stories.editorial, .stories.carousel {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; align-items: flex-start;
    margin: 0 -24px; padding: 0 24px; scroll-padding: 0 24px;
  }
  .stories.editorial .story, .stories.carousel .story { flex: 0 0 86%; scroll-snap-align: start; }
  .stories.editorial .story { padding: 28px 0 8px; }
  .stories.editorial .st-text { font-size: 1.22rem; }
  .stories.carousel .story { padding: 28px 24px; }
  .stories.carousel .st-text p { font-size: 1.08rem; }
}

/* ---------- SEO helpers ---------- */
/* Homepage tagline is the page's H1: keep it looking exactly as before */
.video-hero h1.hero-tagline { margin-bottom: 0; line-height: inherit; }
/* Heading for search engines and screen readers, not shown on screen */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
