/* ============================================================
   BLACK STONE ESTATE AGENTS — Design System
   Premium London/Manchester estate aesthetic:
   ivory & charcoal surfaces, champagne-bronze accent,
   editorial serif display, restrained glassmorphism.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --font-display: "Fraunces", "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-body: "Manrope", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* neutrals — warm ivory family (light) */
  --bg: #f6f3ec;
  --bg-2: #eee9df;
  --surface: #fffdf8;
  --surface-2: #f8f5ee;
  --ink: #191712;
  --ink-2: #454035;
  --muted: #7c7466;
  --line: rgba(25, 23, 18, 0.12);
  --line-strong: rgba(25, 23, 18, 0.22);

  /* accent — muted champagne bronze */
  --accent: #8f6f33;
  --accent-strong: #795d28;
  --accent-soft: rgba(143, 111, 51, 0.10);
  --accent-line: rgba(143, 111, 51, 0.38);
  --on-accent: #fbf9f3;

  --ok: #3f6b46;
  --warn: #a3672e;
  --err: #9c3d2e;

  --shadow-1: 0 1px 2px rgba(25, 23, 18, 0.05), 0 4px 16px rgba(25, 23, 18, 0.06);
  --shadow-2: 0 2px 6px rgba(25, 23, 18, 0.07), 0 18px 44px rgba(25, 23, 18, 0.12);
  --shadow-pop: 0 24px 64px rgba(15, 13, 9, 0.28);

  /* glass */
  --glass: rgba(252, 250, 244, 0.72);
  --glass-strong: rgba(252, 250, 244, 0.88);
  --glass-line: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 10px 32px rgba(25, 23, 18, 0.10);

  /* layout scale */
  --container: 1220px;
  --container-wide: 1380px;
  --gut: clamp(20px, 4vw, 44px);
  --sec-pad: clamp(76px, 9.5vw, 148px);
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #131210;
  --bg-2: #191713;
  --surface: #1d1b17;
  --surface-2: #242119;
  --ink: #f0ece2;
  --ink-2: #cfc9bb;
  --muted: #948b7a;
  --line: rgba(240, 236, 226, 0.13);
  --line-strong: rgba(240, 236, 226, 0.26);

  --accent: #c7a158;
  --accent-strong: #dcba76;
  --accent-soft: rgba(199, 161, 88, 0.12);
  --accent-line: rgba(199, 161, 88, 0.42);
  --on-accent: #171410;

  --ok: #7fae86;
  --warn: #d9a468;
  --err: #d97a63;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.4), 0 22px 50px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 24px 64px rgba(0, 0, 0, 0.6);

  --glass: rgba(24, 22, 18, 0.62);
  --glass-strong: rgba(22, 20, 16, 0.86);
  --glass-line: rgba(240, 236, 226, 0.10);
  --glass-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.36vw + 13.6px, 16.5px);
  line-height: 1.62;
  letter-spacing: 0.002em;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}
body, header, footer, section, .glass, .card {
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 460; line-height: 1.08; letter-spacing: -0.012em; }
h1 { font-size: clamp(38px, 5.2vw, 68px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: clamp(20px, 1.6vw, 25px); }
h4 { font-size: clamp(17px, 1.2vw, 19px); }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gut); }
.container.wide { max-width: var(--container-wide); }
.section { padding-block: var(--sec-pad); }
.section.tight { padding-block: clamp(52px, 6vw, 84px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent-line); }
.lede { font-size: clamp(16.5px, 1.35vw, 19.5px); color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--muted); }
.serif-ital { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.gold { color: var(--accent); }

.grid { display: grid; gap: clamp(18px, 2vw, 26px); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1023px) { .g-4 { grid-template-columns: repeat(2, 1fr); } .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-4, .g-3, .g-2 { grid-template-columns: 1fr; } }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 18px; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 3. BUTTONS & CHIPS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
[data-theme="dark"] .btn-primary { background: var(--accent); color: #17140f; }
[data-theme="dark"] .btn-primary:hover { background: var(--accent-strong); }
.btn-gold { background: var(--accent); color: var(--on-accent); }
.btn-gold:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-glass { background: var(--glass); border-color: var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-lg { padding: 17px 32px; font-size: 14px; }
.btn .arr { font-size: 15px; line-height: 1; transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--accent-line); padding-bottom: 3px; transition: color 0.2s, gap 0.2s; }
.link-arrow:hover { color: var(--accent); gap: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2);
  background: var(--surface); cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
[data-theme="dark"] .chip[aria-pressed="true"], [data-theme="dark"] .chip.active { background: var(--accent); border-color: var(--accent); color: #17140f; }

.tag { display: inline-block; padding: 5px 12px; border-radius: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.tag-sale { background: var(--ink); color: var(--bg); }
.tag-let { background: var(--accent); color: var(--on-accent); }
.tag-agreed { background: #5d6b53; color: #f2f4ec; }
[data-theme="dark"] .tag-agreed { background: #47523f; color: #dde4d4; }
.tag-sold { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.tag-featured { background: rgba(143, 111, 51, 0.14); color: var(--accent-strong); border: 1px solid var(--accent-line); backdrop-filter: none; }
[data-theme="dark"] .tag-featured { background: rgba(199, 161, 88, 0.16); color: var(--accent-strong); }

/* ---------- 4. FORMS ---------- */
.field { margin-bottom: 16px; text-align: left; }
.field label, .field .lbl {
  display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: 15px; line-height: 1.3;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.35s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237c7466' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .err-msg { display: none; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--err); }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.field.invalid .err-msg { display: block; }
.phone-wrap { position: relative; }
.phone-wrap .pxd { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 7px; align-items: center; font-size: 14px; font-weight: 700; color: var(--ink-2); pointer-events: none; }
.phone-wrap .pxd img { width: 20px; border-radius: 2px; }
.phone-wrap input { padding-left: 62px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.form-note a { color: var(--accent); text-decoration: underline; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: 40px 18px; }
.form-success .tick { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.form-success h4 { margin-bottom: 8px; font-size: 21px; }

/* ---------- 5. HEADER / NAV ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-head::before { content: ""; position: absolute; inset: 0; opacity: 0; background: var(--glass-strong); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); transition: opacity 0.35s var(--ease); border-bottom: inherit; }
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(10, 9, 6, 0.06); }
.site-head.scrolled::before, .site-head.solid::before { opacity: 1; }
.site-head > .container { position: relative; z-index: 1; }
.head-row { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.brand { display: inline-flex; align-items: center; gap: 14px; margin-right: auto; }
.brand img { height: 44px; width: auto; }
[data-theme="dark"] .brand img { filter: invert(1) brightness(1.55) sepia(0.18) saturate(1.6) hue-rotate(-8deg); }
.brand .brand-name { display: none; }

.main-nav { display: flex; align-items: center; gap: clamp(2px, 0.9vw, 8px); }
.nav-link { position: relative; padding: 10px 13px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.03em; color: rgba(255,255,255,.92); border-radius: 8px; transition: color .2s, background .2s; white-space: nowrap; }
.head-onlight .nav-link { color: var(--ink-2); }
.nav-link:hover { color: var(--accent-strong); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--accent); border-radius: 2px; }

/* dropdown */
.nav-drop { position: relative; }
.nav-drop > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.92); }
.head-onlight .nav-drop > button { color: var(--ink-2); }
.nav-drop > button .caret { width: 9px; height: 9px; transition: transform 0.25s var(--ease); }
.nav-drop[open] > button .caret, .nav-drop:hover > button .caret { transform: rotate(180deg); }
.drop-panel {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 250px; padding: 10px; border-radius: 12px;
  background: var(--glass-strong); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel, .nav-drop[open] .drop-panel { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.drop-panel a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.drop-panel a small { font-weight: 500; color: var(--muted); font-size: 12px; }
.drop-panel a:hover { background: var(--accent-soft); color: var(--accent-strong); }

.head-actions { display: flex; align-items: center; gap: 10px; }
/* transparent-over-hero handling */
.head-transparent:not(.scrolled) { background: transparent; border-bottom-color: transparent; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: rgba(255,255,255,.92); background: transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.head-onlight .theme-toggle { color: var(--ink-2); }
.head-transparent:not(.scrolled) .theme-toggle { border-color: rgba(255,255,255,.35); }
[data-theme="dark"] .head-transparent:not(.scrolled) .theme-toggle { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.28); }
.theme-toggle:hover { transform: rotate(18deg); border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.head-cta { display: inline-flex; }
@media (max-width: 1139px) { .main-nav, .head-actions .head-cta { display: none; } }

/* mobile menu */
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; place-items: center; border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.92); }
.head-onlight .burger { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
@media (max-width: 1139px) { .burger { display: grid; } }
.m-menu { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.m-menu[data-open="true"] { visibility: visible; }
.m-menu .scrim { position: absolute; inset: 0; background: rgba(10, 9, 6, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s var(--ease); }
.m-menu[data-open="true"] .scrim { opacity: 1; }
.m-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--bg); display: flex; flex-direction: column; padding: 22px 26px calc(28px + env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform 0.42s var(--ease); overflow-y: auto; border-left: 1px solid var(--line); }
.m-menu[data-open="true"] .m-sheet { transform: none; }
.m-sheet .m-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.m-sheet .m-head img { height: 40px; }
.m-x { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.m-nav a { display: flex; align-items: baseline; justify-content: space-between; padding: 15px 2px; font-family: var(--font-display); font-size: 22px; border-bottom: 1px solid var(--line); transition: color 0.2s, padding-left 0.25s; }
.m-nav a:hover { color: var(--accent); padding-left: 8px; }
.m-nav .m-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.m-nav .m-sub a { font-family: var(--font-body); font-size: 14.5px; padding: 7px 2px; border-bottom: 0; color: var(--ink-2); }
.m-foot { margin-top: auto; padding-top: 26px; display: grid; gap: 12px; }
.m-theme { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.m-theme .btn-sw { position: relative; width: 52px; height: 28px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-strong); }
.m-theme .btn-sw::after { content: ""; position: absolute; top: 2px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); transition: transform 0.28s var(--ease); }
[data-theme="dark"] .m-theme .btn-sw::after { transform: translateX(23px); }
body.no-scroll { overflow: hidden; }


/* ---------- 6. HERO ---------- */
.hero { position: relative; min-height: min(100svh, 880px); display: flex; align-items: flex-end; overflow: hidden; background: #14120e; }
.hero-media, .media { position: absolute; inset: 0; }
.hero-media img, .media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,7,5,.82) 0%, rgba(8,7,5,.52) 45%, rgba(8,7,5,.18) 100%), linear-gradient(180deg, rgba(8,7,5,.55) 0%, rgba(8,7,5,.05) 30%, rgba(8,7,5,.55) 78%, rgba(8,7,5,.85) 100%); }
.hero-b .container { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(34px, 6vh, 64px); padding-top: calc(var(--header-h) + clamp(30px, 8vh, 80px)); }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: clamp(14px, 2.4vh, 26px); }
.hero-eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--accent-line); }
.hero h1 { color: #f7f4ec; font-size: clamp(42px, 6.4vw, 84px); max-width: 16ch; }
.hero h1 em { font-family: var(--font-display); font-style: italic; font-weight: 380; color: #dfc084; }
.hero-sub { color: rgba(246,242,232,.86); max-width: 56ch; font-size: clamp(16px, 1.6vw, 19px); margin: clamp(14px, 2.2vh, 22px) 0 clamp(22px, 3.4vh, 30px); }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

/* hero search panel — glass */
.search-panel { width: 100%; max-width: 1020px; margin-top: clamp(20px, 3.6vh, 34px); border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-pop); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); padding: 16px; color: #fff; }
[data-theme="light"] .search-panel { color: var(--ink); }
.search-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.search-tabs button { padding: 9px 22px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.75); border: 1px solid transparent; transition: all 0.2s; }
[data-theme="light"] .search-tabs button { color: var(--muted); }
.search-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-theme="dark"] .search-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #17140f; }
.search-fields { display: grid; grid-template-columns: 1.6fr 1fr 0.85fr 0.85fr auto; gap: 10px; }
@media (max-width: 960px) { .search-fields { grid-template-columns: 1fr 1fr; } .search-fields .btn { grid-column: 1 / -1; } }
@media (max-width: 560px) { .search-fields { grid-template-columns: 1fr; } }
.search-fields .field { margin: 0; }
.search-fields input, .search-fields select, .search-fields .loc-wrap input { background: rgba(10,9,6,.22); border-color: rgba(255,255,255,.22); color: #fff; }
[data-theme="light"] .search-fields input, [data-theme="light"] .search-fields select { background: rgba(255,255,255,.55); border-color: rgba(25,23,18,.16); color: var(--ink); }
[data-theme="light"] .search-fields ::placeholder { color: var(--muted); }
.search-fields ::placeholder { color: rgba(255,255,255,.62); }
.search-fields select option { color: #1d1b17; background: #fbf9f3; }
.loc-wrap { position: relative; }
.loc-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; opacity: 0.7; pointer-events: none; }
.loc-wrap input { padding-left: 38px; }

/* page heroes (inner pages) */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 9vh, 110px)) 0 clamp(46px, 7vh, 86px); background: linear-gradient(180deg, var(--bg-2), var(--bg)); overflow: hidden; }
.page-hero.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,7,5,.78), rgba(8,7,5,.55)); }
.page-hero.has-bg { background: #14120e; }
.page-hero.has-bg h1, .page-hero.has-bg .lede, .page-hero.has-bg .eyebrow { color: #f4f1e8; }
.page-hero.has-bg .media { inset: 0; }
.page-hero > .container, .page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; margin-bottom: 18px; }
.page-hero .lede { color: var(--ink-2); }

/* ---------- 7. SECTIONS & CARDS ---------- */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(34px, 4.6vw, 56px); flex-wrap: wrap; }
.sec-head h2 { max-width: 22ch; }
.sec-head .sub { color: var(--muted); max-width: 52ch; margin-top: 12px; font-size: 15.5px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-1); }

/* property card */
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-1); transition: transform 0.3s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--accent-line); }
.pcard-media { position: relative; aspect-ratio: 4 / 2.9; overflow: hidden; background: var(--bg-2); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.4s; }
.pcard:hover .pcard-media img { transform: scale(1.055); }
.pcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,5,3,.36) 0%, rgba(6,5,3,0) 34%, rgba(6,5,3,0) 55%, rgba(6,5,3,.34) 100%); }
.pcard-tags { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; gap: 7px; flex-wrap: wrap; }
.pcard-price { position: absolute; z-index: 2; bottom: 12px; left: 14px; color: #fbf8f1; font-family: var(--font-display); font-weight: 520; font-size: clamp(21px, 1.8vw, 25px); letter-spacing: 0.01em; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.pcard-price small { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.85; }
.fav-btn { position: absolute; z-index: 3; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink-2); transition: transform 0.2s, color 0.2s, background 0.2s; }
.fav-btn:hover { transform: scale(1.08); color: var(--accent); }
.fav-btn[aria-pressed="true"] { color: var(--accent); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.fav-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard-body h3 { font-size: 18.5px; line-height: 1.25; font-weight: 500; }
.pcard-body h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard-loc { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.pcard-loc svg { width: 13px; height: 13px; flex: none; opacity: 0.8; }
.pcard-specs { display: flex; gap: 16px; margin-top: auto; padding-top: 14px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pcard-specs span { display: inline-flex; align-items: center; gap: 6px; }
.pcard-specs svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.pcard-more { margin-top: 14px; }
.pcard.dim img { opacity: 0.82; }
.pcard.dim .pcard-price { opacity: 0.78; }
/* list view */
.plist .pcard { flex-direction: row; }
.plist .pcard-media { width: min(44%, 430px); aspect-ratio: auto; flex: none; }
.plist .pcard-body { padding: 22px 26px; }
.plist .pcard-ex { display: block; color: var(--muted); font-size: 14px; margin: 4px 0 2px; max-width: 62ch; }
@media (max-width: 820px) { .plist .pcard { flex-direction: column; } .plist .pcard-media { width: 100%; aspect-ratio: 4/2.9; } }

/* service tiles */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; overflow: hidden; transition: transform 0.28s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.svc::before { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-line), transparent); opacity: 0; transition: opacity 0.3s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent-line); }
.svc:hover::before { opacity: 1; }
.svc .s-ico { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.svc .s-ico svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.svc h3 { font-size: 20.5px; font-weight: 500; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; }
.svc p { color: var(--muted); font-size: 14.5px; margin: 0; min-height: 3.6em; }
.svc .go { margin-top: auto; padding-top: 10px; }
.svc .go svg { width: 15px; height: 15px; }

/* band (edge-to-edge dark) */
.band { background: #17150f; color: #efeadd; position: relative; overflow: hidden; }
[data-theme="light"] .band { background: #17140f; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(720px 340px at 82% -10%, rgba(199,161,88,.16), transparent 62%); }
.band .container { position: relative; }
.band h2, .band h3 { color: #f3efe3; }
.band .eyebrow { color: var(--accent-strong); }

/* about / why choose */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(34px, 5vw, 84px); align-items: center; }
.split.rev { grid-template-columns: 0.95fr 1.05fr; }
@media (max-width: 940px) { .split, .split.rev { grid-template-columns: 1fr; } }
.img-frame { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-2); }
.img-frame img { width: 100%; aspect-ratio: 4/3.1; object-fit: cover; }
.img-frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(251,248,240,.34); border-radius: 12px; pointer-events: none; }
.img-frame.gold-tag { position: relative; }
.gold-corner { position: absolute; z-index: 2; right: -14px; bottom: -14px; width: 120px; height: 120px; background: var(--accent); color: var(--on-accent); clip-path: polygon(100% 0, 100% 100%, 0 100%); display: flex; align-items: flex-end; justify-content: flex-end; padding: 8px 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 26px); }
@media (max-width: 760px) { .mission-grid { grid-template-columns: 1fr; } }
.mv { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--surface); padding: 26px 28px; }
.mv h3 { font-size: 19px; margin-bottom: 8px; }
.mv p { color: var(--ink-2); font-size: 15px; margin: 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px); }
@media (max-width: 1023px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why { padding: 28px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: transform 0.26s var(--ease), box-shadow 0.3s; }
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.why .w-n { font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 19px; margin-bottom: 12px; }
.why h3 { font-size: 18.5px; margin-bottom: 8px; font-weight: 500; }
.why p { color: var(--muted); font-size: 14px; margin: 0; }
.rating-hero { display: flex; gap: 30px; align-items: center; }
.rating-hero .stars { display: flex; }
.rating-hero .stars svg { width: 21px; height: 21px; fill: var(--accent); stroke: none; }
.rating-hero .stars svg.half path { opacity: 0; }
.rating-hero .bign { font-family: var(--font-display); font-size: clamp(58px, 7.6vw, 104px); line-height: 0.95; font-weight: 420; }
.rating-hero .of { font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }
@media (max-width: 1000px) {
  .band-stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .g-steps { grid-template-columns: 1fr !important; }
}
@media (max-width: 880px) {
  .nav-svc, .nav-areas { display: none !important; }
}

/* testimonials */
.rotator { position: relative; }
.rot-viewport { overflow: clip; border-radius: 18px; }
.rot-track { display: flex; transition: transform 0.55s var(--ease); }
.rot-slide { flex: 0 0 100%; padding: clamp(30px, 4.6vw, 58px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.rot-slide blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.38; font-weight: 400; letter-spacing: -0.005em; max-width: 34ch+; }
.rot-slide .stars { display: flex; gap: 3px; margin-bottom: 20px; }
.rot-slide .stars svg { width: 16px; height: 16px; fill: var(--accent); }
.rot-who { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.rot-ava { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
.rot-name { font-weight: 800; font-size: 15px; }
.rot-meta { color: var(--muted); font-size: 13px; }
.see-more { font-size: 13px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; display: none; margin-top: 26px; }
.rot-ctrls { display: flex; gap: 8px; }
.rot-btn { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: all 0.2s; }
.rot-btn:hover { border-color: var(--ink); }
.rot-btn svg { width: 16px; height: 16px; }
.rot-dots { display: flex; gap: 7px; margin-top: 20px; }
.rot-dots .d { width: 26px; height: 3px; border-radius: 2px; background: var(--line-strong); transition: background 0.3s; }
.rot-dots .d[aria-current="true"] { background: var(--accent); }

/* valuation CTA */
.val { border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1.02fr 0.98fr; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
@media (max-width: 960px) { .val { grid-template-columns: 1fr; } }
.val-media { position: relative; min-height: 420px; }
.val-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.val-body { padding: clamp(30px, 3.6vw, 58px); }
.val-body form { margin-top: 26px; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 1.7; }

/* ---------- 8. FOOTER ---------- */
.site-foot { background: #17150f; color: #cfc8b8; margin-top: auto; }
[data-theme="light"] .site-foot { background: #17150f; }
.site-foot .ft-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: clamp(26px, 3.4vw, 60px); padding-block: clamp(46px, 6vw, 84px) 40px; }
@media (max-width: 1060px) { .site-foot .ft-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .site-foot .ft-top { grid-template-columns: 1fr; } }
.site-foot h4 { color: #f0ecdf; font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 18px; }
.site-foot a { color: #cfc8b8; font-size: 14.5px; transition: color 0.2s; }
.site-foot a:hover { color: var(--accent-strong); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ft-brand img { height: 46px; filter: invert(1) brightness(1.5) sepia(0.2) saturate(1.7) hue-rotate(-10deg); margin-bottom: 16px; }
.ft-desc { font-size: 14.5px; line-height: 1.6; color: #b8b09e; max-width: 34ch; }
.ft-social { display: flex; gap: 10px; margin-top: 20px; }
.ft-social a { width: 40px; height: 40px; border: 1px solid rgba(207,200,184,.22); border-radius: 50%; display: grid; place-items: center; transition: all 0.22s; }
.ft-social a:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.ft-social svg { width: 16px; height: 16px; fill: currentColor; }
.ft-hours li { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.ft-hours b { color: #e9e3d2; font-weight: 700; }
.ft-news { display: flex; gap: 8px; margin-top: 14px; }
.ft-news input { flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(207,200,184,.25); border-radius: 8px; padding: 11px 14px; color: #efeadd; font-size: 14px; }
.ft-bottom { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(207,200,184,.16); padding-block: 22px 26px; font-size: 13px; color: #948c7a; }
.ft-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.compliance-note { font-size: 12.5px; color: #948c7a; padding-bottom: 18px; max-width: 86ch; }

/* ---------- 9. LISTINGS ---------- */
.bubble-search { position: sticky; top: calc(var(--header-h) - 12px); z-index: 60; margin-top: -34px; }
.bubble-inner { background: var(--glass-strong); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--glass-line); box-shadow: var(--shadow-2); border-radius: 18px; padding: 14px; }
.bubble-row { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr) auto; gap: 9px; }
.bubble-row select, .bubble-row input { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; padding: 12px 13px; font-size: 14.5px; }
@media (max-width: 1080px) { .bubble-row { grid-template-columns: 1fr 1fr; } .bubble-row .btn { grid-column: 1 / -1; } }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 34px 0 22px; }
.results-count { font-weight: 800; font-size: 14.5px; }
.results-count b { color: var(--accent); font-weight: 800; }
.res-tools { display: flex; gap: 10px; align-items: center; }
.view-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.view-toggle button { width: 42px; height: 38px; display: grid; place-items: center; transition: background 0.2s; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .view-toggle button[aria-pressed="true"] { background: var(--accent); color: #17140f; }
.view-toggle svg { width: 16px; height: 16px; }
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 12.5px; font-weight: 700; color: var(--accent-strong); }
[data-theme="dark"] .fchip { color: var(--accent-strong); }
.fchip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 12px; line-height: 1; transition: transform 0.2s; }
.fchip button:hover { transform: scale(1.15); }
.empty-state { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-strong); border-radius: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state svg { width: 44px; height: 44px; stroke: var(--muted); fill: none; stroke-width: 1.2; margin: 0 auto 18px; }
.skel { position: relative; overflow: hidden; background: var(--bg-2); border-radius: 14px; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.4) 50%, transparent 80%); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
[data-theme="dark"] .skel::after { background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.06) 50%, transparent 80%); }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-card { height: 380px; }
.offmarket { border-radius: 20px; padding: clamp(30px, 4vw, 46px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border: 1px solid var(--accent-line); background: linear-gradient(105deg, var(--accent-soft), transparent 55%), var(--surface); }

/* ---------- 10. DETAIL PAGES ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; margin-bottom: 14px; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: 0.5; }
.crumb [aria-current] { color: var(--ink-2); }
.det-top { display: flex; justify-content: space-between; gap: 20px; align-items: end; flex-wrap: wrap; margin: 6px 0 18px; }
.det-price { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 480; }
.det-price small { font-family: var(--font-body); font-size: 14px; color: var(--muted); font-weight: 800; letter-spacing: 0.06em; }
.det-loc { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 15px; }
.det-loc svg { width: 15px; height: 15px; }
.det-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gal { display: grid; grid-template-columns: 2.6fr 1fr; grid-template-rows: repeat(2, clamp(110px, 17.6vw, 210px)); gap: 10px; margin-bottom: 44px; }
.gal .g-main { grid-row: 1 / 3; border-radius: 16px; overflow: hidden; position: relative; cursor: zoom-in; background: var(--bg-2); }
.gal .g-cell { border-radius: 14px; overflow: hidden; position: relative; cursor: zoom-in; background: var(--bg-2); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gal .g-main:hover img, .gal .g-cell:hover img { transform: scale(1.03); }
.gal .g-cell::before { content: ""; position: absolute; inset: 0; background: rgba(8,7,5,.12); transition: background .2s; }
.gal .g-cell:hover::before { background: transparent; }
.g-all { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 8px 15px; border-radius: 9px; background: var(--glass-strong); backdrop-filter: blur(8px); border: 1px solid var(--glass-line); color: var(--ink); font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; display: flex; align-items: center; gap: 7px; }
[data-theme="dark"] .g-all { color: var(--ink); }
.gal-1 { grid-template-columns: 1fr; grid-template-rows: clamp(220px, 42vw, 460px); }
.det-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(26px, 3.4vw, 48px); align-items: start; }
@media (max-width: 1060px) { .det-grid { grid-template-columns: 1fr; } }
.spec-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.spec-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.spec-table tr:first-child td { border-top: 0; }
.spec-table td:first-child { font-weight: 800; letter-spacing: 0.02em; color: var(--ink); width: 52%; }
.prose { max-width: 74ch; }
.prose h2 { font-size: 26px; margin: 42px 0 16px; }
.prose h3 { font-size: 20px; margin: 34px 0 12px; }
.prose p { margin-bottom: 14px; color: var(--ink-2); }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); }
.prose li { margin-bottom: 7px; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 640px) { .feat-list { grid-template-columns: 1fr; } }
.feat-list li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--ink-2); }
.feat-list svg { flex: none; width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 2; transform: translateY(2px); }
.enq-card { position: sticky; top: calc(var(--header-h) + 16px); border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-2); padding: 24px; }
@media (max-width: 1060px) { .enq-card { position: static; } }
.agent-line { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.agent-line .rot-ava { width: 52px; height: 52px; font-size: 17px; }
.enq-phone { display: flex; gap: 8px; margin-top: 14px; }
.enq-phone .btn { flex: 1; }
/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,9,7,.94); display: none; flex-direction: column; }
.lb[data-open="true"] { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: #efe9da; }
.lb-count { font-size: 13px; letter-spacing: 0.14em; font-weight: 700; }
.lb-stage { flex: 1; position: relative; display: grid; place-items: center; min-height: 0; }
.lb-stage img { max-width: min(94vw, 1400px); max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(240,236,226,.1); border: 1px solid rgba(240,236,226,.25); color: #efe9da; display: grid; place-items: center; transition: background 0.2s; backdrop-filter: blur(6px); }
.lb-nav:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.lb-nav.prev { left: clamp(10px, 3vw, 34px); }
.lb-nav.next { right: clamp(10px, 3vw, 34px); }
.lb-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(240,236,226,.25); color: #efe9da; display: grid; place-items: center; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px 18px; }
.lb-thumbs img { width: 74px; height: 52px; object-fit: cover; border-radius: 6px; opacity: 0.5; cursor: pointer; transition: opacity 0.2s, outline 0.2s; }
.lb-thumbs img.on { opacity: 1; outline: 2px solid var(--accent); }

/* calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-out { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.calc-big { font-family: var(--font-display); font-size: clamp(36px, 5vw, 54px); }
.calc-big small { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--muted); }
.calc-rows { display: grid; gap: 10px; margin-top: 18px; font-size: 14px; }
.calc-rows div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.calc-rows b { font-weight: 800; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 3px; padding: 0; }
/* EPC */
.epc-wrap { max-width: 560px; }
.epc-row { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; margin-bottom: 7px; color: #fff; }
.epc-bar { grid-column: 2; height: 26px; border-radius: 5px; display: flex; align-items: center; padding: 0 10px; font-size: 11px; font-weight: 800; }
.epc-lab { font-weight: 800; text-align: center; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); padding: 3px 0; font-size: 13px; color: var(--ink); }
.epc-row.cur .epc-bar { box-shadow: 0 0 0 2px var(--ink); font-weight: 900; }
.epc-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* areas & blog */
.area-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; transition: transform 0.25s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--accent-line); }
.area-card h3 { font-size: 21px; }
.area-card .n { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.area-card .arr { color: var(--accent); font-size: 19px; }
.post-card h3 { font-size: 22px; margin-bottom: 8px; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.legal-body h2 { font-size: 21px; margin: 30px 0 10px; }
.svc-incl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
@media (max-width: 800px) { .svc-incl { grid-template-columns: 1fr; } }
.svc-incl .i { display: flex; gap: 10px; align-items: baseline; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2); }
.svc-incl svg { flex: none; width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 2; transform: translateY(2px); }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 800; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .fa-x { flex: none; width: 22px; height: 22px; position: relative; }
.faq .fa-x::before, .faq .fa-x::after { content: ""; position: absolute; background: var(--accent); width: 12px; height: 2px; top: 10px; left: 5px; transition: transform 0.25s var(--ease); }
.faq .fa-x::after { transform: rotate(90deg); }
.faq details[open] .fa-x::after { transform: rotate(0); }
.faq .fa-b { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; max-width: 68ch; }
.steps { counter-reset: st; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; align-items: start; }
.step .sn { counter-increment: st; font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.step .sn::before { content: counter(st, decimal-leading-zero); }
.pill-nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* toast */
.toast { position: fixed; z-index: 300; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); max-width: 92vw; text-align: center; }
[data-theme="dark"] .toast { background: var(--accent); color: #17140f; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; padding-block: 120px; position: relative; overflow: hidden; text-align: center; }
.nf .big { font-family: var(--font-display); font-size: clamp(110px, 20vw, 220px); line-height: 0.9; color: var(--accent-soft); -webkit-text-stroke: 1px var(--accent-line); }

/* reveal animations */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; } .rv-d2 { transition-delay: 0.16s; } .rv-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .rv { opacity: 1; transform: none; }
  .pcard:hover { transform: none; }
}

/* utility */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.center{text-align:center}
.flow > * + * { margin-top: 1em; }
.hidden { display: none !important; }
.foot-fixed { min-height: 100svh; display: flex; flex-direction: column; }
.foot-fixed main { flex: 1; }
.no-head .site-head { display: none; }
@media print {
  .site-head, .site-foot, .enq-card, .lb, .det-actions, .bubble-search, .rot-ctrls { display: none !important; }
  body { background: #fff; color: #000; }
  .det-grid { grid-template-columns: 1fr; }
}

/* floating action bar (mobile) + to-top */
.fab { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-pop); font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.fab-wa { background: #1fa855; color: #fff; }
.fab-wa svg { width: 26px; height: 26px; }
.fab-v { background: var(--accent); color: var(--on-accent); }
.fab-wrap { display: none; }
@media (max-width: 940px) { .fab-wrap { display: flex !important; } }
.to-top { position: fixed; right: 22px; bottom: 26px; z-index: 70; width: 46px; height: 46px; border-radius: 50%; background: var(--glass-strong); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); display: grid; place-items: center; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; transform: translateY(8px); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 16px; height: 16px; }
@media (max-width: 940px) { .to-top { display: none; } }

/* ---- QA refinements ---- */
.pcard-price { background: rgba(10,9,7,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 7px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 4px 14px rgba(0,0,0,.25); text-shadow: none; }
.pcard-price small { opacity: .9; }
.tag-featured { background: #dcbc7c; color: #241d0c; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
[data-theme="dark"] .tag-featured { background: #d9bc7e; color: #1d1808; }
.band .svc h3 a, .band .svc h3 { color: #f3efe3 !important; }
.search-tabs button[aria-selected="true"] { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
[data-theme="dark"] .search-tabs button[aria-selected="true"] { color: #17140f !important; }
.gal { grid-template-columns: 2.3fr 1fr; }
@media (max-width: 700px) { .gal .g-cell:nth-child(4) { display: none; } .gal { grid-template-columns: 2fr 1fr; } }
@media (max-width: 460px) { .gal .g-cell:nth-child(3) { display: none; } }
body:has(.search-panel) .fab-wrap { display: none !important; }
.fab { width: 48px; height: 48px; }
.enq-card .btn + .btn { }
.enq-phone { padding-top: 2px; }
/* service aside: keep buttons to content width */
.enq-card form .btn { width: 100%; }

/* mobile overflow guards */
.bubble-row { min-width: 0; }
.bubble-row input, .bubble-row select { min-width: 0; max-width: 100%; }
@media (max-width: 1080px) { .bubble-row .btn { grid-column: 1 / -1; width: 100%; } }

.contact-cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.contact-cards .card { padding: 16px 18px; border-radius: 12px; }
.contact-cards .cv { display: block; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 460px) { .contact-cards { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   HEADER FIXES — full-width responsive row, visible logo,
   valuation button never clipped
   ============================================================ */
.head-wrap {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: clamp(16px, 2.2vw, 30px);
  display: flex; align-items: center; gap: clamp(10px, 1.4vw, 26px);
  min-width: 0;
}
.site-head > .head-wrap { position: relative; z-index: 1; }

/* nav: let it shrink instead of pushing actions off-screen */
.site-head .main-nav { flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.site-head .head-actions { flex: 0 0 auto; margin-left: clamp(6px, 1vw, 16px); }

/* valuation button: fixed comfortable padding, never compressed or nowrap-clipped */
.head-actions .head-cta {
  display: inline-flex;
  padding: 11px 20px;
  font-size: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* logo legibility over the dark hero in BOTH themes:
   warm light-champagne treatment when the header sits on the photo */
.head-transparent:not(.head-onlight):not(.scrolled) .brand img,
[data-theme="dark"] .brand img {
  filter: invert(1) brightness(1.62) sepia(0.32) saturate(1.55) hue-rotate(-14deg);
}
/* scrolled/solid light-state: original black mark on ivory glass */
.site-head.head-onlight .brand img { filter: none; }

/* tablet tier: drop the Buy/Sell/To Let trio before anything clips */
@media (max-width: 1279px) { .main-nav .nav-svc { display: none !important; } }
@media (max-width: 1139px) { .main-nav { display: none; } }

/* keep the compact nav breathing right down to the tablet cutoff */
@media (max-width: 1400px) {
  .nav-link, .nav-drop > button { padding-block: 10px; padding-inline: 8px; font-size: 12.8px; }
  .brand img { height: 40px; }
}
@media (min-width: 1401px) and (max-width: 1560px) {
  .nav-link, .nav-drop > button { padding-block: 10px; padding-inline: 10px; font-size: 13px; }
}

/* hero single gold CTA */
.hero-contact-cta { min-width: 210px; }

/* hero paired CTAs */
.hero-links .hero-ourreach-cta { border-color: rgba(255,255,255,.4); color: #f6f2e7; }
.hero-links .hero-ourreach-cta:hover { border-color: var(--accent-strong); color: #fff; background: rgba(20,18,12,.55); }
.hero-contact-cta { min-width: 190px; }
.hero-ourreach-cta { min-width: 190px; }

/* restore mobile tier: header CTA lives in the drawer below 1140 (hero carries CTAs) */
@media (max-width: 1139px) { .head-actions .head-cta { display: none; } }
