/* ==========================================================================
   EVERLINE REALTY — Template stylesheet
   --------------------------------------------------------------------------
   HOW TO RE-BRAND IN 60 SECONDS
   Everything visual is driven by the tokens in :root below.
   Change --brand / --accent / --font-display and the whole site follows.
   Copy, brand name, phone and nav live in assets/js/config.js.
   Listings, agents, testimonials, articles live in assets/js/data.js.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink & text */
  --ink: #0b1220;
  --ink-2: #16202f;
  --body: #414b5a;
  --muted: #6e7787;

  /* Brand */
  --brand: #0e5b4e;
  --brand-dark: #093f36;
  --brand-soft: #e8f1ee;
  --accent: #c79a4b;
  --accent-dark: #a97f36;
  --accent-soft: #f7eeda;

  /* Surfaces */
  --bg: #faf8f4;
  --bg-2: #f3efe7;
  --surface: #ffffff;
  --surface-2: #f7f5f1;
  --line: #e6e0d6;
  --line-2: #d5cdbf;

  /* Feedback */
  --ok: #1f7a52;
  --ok-soft: #e6f4ec;
  --warn: #b4690e;
  --danger: #b3352c;
  --danger-soft: #fbeae8;

  /* Type */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.35rem, 1.35rem + 3.6vw, 4.15rem);
  --fs-h2: clamp(1.85rem, 1.25rem + 2.1vw, 3rem);
  --fs-h3: clamp(1.3rem, 1.05rem + 0.85vw, 1.75rem);
  --fs-h4: clamp(1.08rem, 1rem + 0.3vw, 1.28rem);
  --fs-lead: clamp(1.03rem, 0.95rem + 0.35vw, 1.2rem);
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  /* Metrics */
  --container: 1240px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow-sm: 0 2px 6px rgba(11, 18, 32, 0.06), 0 1px 2px rgba(11, 18, 32, 0.04);
  --shadow: 0 14px 34px -18px rgba(11, 18, 32, 0.28);
  --shadow-lg: 0 34px 70px -30px rgba(11, 18, 32, 0.4);
  --ring: 0 0 0 3px rgba(199, 154, 75, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }
small { font-size: var(--fs-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.25rem);
}
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1420px; }

.section { padding-block: clamp(3.25rem, 6vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 3.6vw, 3.25rem); }
.section--flush-top { padding-top: 0; }
.section--dark { background: var(--ink); color: #c9d2dd; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark strong { color: #fff; }
.section--alt { background: var(--surface); }
.section--tint { background: var(--bg-2); }
.section--brand {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(199, 154, 75, 0.16), transparent 60%),
    linear-gradient(160deg, var(--brand-dark), var(--ink) 65%);
  color: #d5e3df;
}
.section--brand h2, .section--brand h3 { color: #fff; }

.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.cluster { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.cluster--between { justify-content: space-between; }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }

/* Responsive collapse for the grid system */
@media (max-width: 1000px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .section__head--row > .link-arrow { margin-top: 0.25rem; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .hero__copy h1 em { white-space: normal; }
}

.section__head { max-width: 720px; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { font-size: var(--fs-lead); color: var(--muted); margin-bottom: 0; }
.section--dark .section__head p, .section--brand .section__head p { color: #a9bccb; }
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}
.section--dark .eyebrow, .section--brand .eyebrow { color: var(--accent); }
.eyebrow--plain::before { display: none; }

.lead { font-size: var(--fs-lead); color: var(--body); }
.muted { color: var(--muted); }
.tiny { font-size: var(--fs-xs); }
.italic { font-style: italic; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); color: #fff; }

/* --------------------------------------------------------------------------
   4. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
    border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), color 0.22s var(--ease);
  box-shadow: var(--shadow-xs);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { color: var(--btn-fg); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--accent { --btn-bg: var(--accent); --btn-bd: var(--accent); --btn-fg: var(--ink); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); box-shadow: none; }
.btn--ghost:hover { --btn-fg: var(--ink); background: var(--surface); border-color: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn--outline-light {
  --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.42); box-shadow: none;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--sm { padding: 0.62rem 1.1rem; font-size: 0.85rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
}
.link-arrow svg { transition: transform 0.24s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow, .section--brand .link-arrow { color: var(--accent); }

.textlink { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* --------------------------------------------------------------------------
   5. Top bar, header, navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #b9c4d1;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: #dfe6ee; }
.topbar a:hover { color: var(--accent); }
.topbar__list { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar svg { width: 14px; height: 14px; flex: none; opacity: 0.85; }
.topbar__socials { display: flex; gap: 0.75rem; }
.topbar__socials a { display: inline-flex; }
.topbar__socials svg { width: 16px; height: 16px; opacity: 0.8; }
.topbar__socials a:hover svg { opacity: 1; }
@media (max-width: 780px) {
  .topbar__list--hide-sm { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 28px -22px rgba(11, 18, 32, 0.5);
  background: rgba(250, 248, 244, 0.97);
}
.site-header {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  min-height: var(--header-h);
  max-width: 100%;
  box-sizing: border-box;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  flex: none;
  min-width: 0;
  max-width: 280px;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-xs); flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; overflow: hidden; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__tag {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.nav { display: flex; align-items: center; gap: 0.15rem; flex-shrink: 1; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.65rem;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.28rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s var(--ease);
}
.nav__link:hover { color: var(--brand); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link .caret { width: 12px; height: 12px; opacity: 0.55; }

.header__actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.header__phone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.header__phone svg { width: 16px; height: 16px; color: var(--brand); }
.header__phone span small { display: block; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.header__saved {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.header__saved:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.header__saved svg { width: 18px; height: 18px; }
.header__saved-count {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: var(--radius-xs);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1280px) {
  .header__phone { display: none; }
  .nav__link { padding: 0.5rem 0.5rem; font-size: 0.88rem; }
}
@media (max-width: 1140px) {
  .nav, .header__phone { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 1040px) {
  .hero__grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  #valuation {
    width: 100%;
    max-width: 580px;
    margin-inline: auto;
  }
}
@media (max-width: 560px) {
  .header__saved { display: none; }
  .brand__tag { display: none; }
}
@media (max-width: 620px) {
  .header__inner { gap: 0.75rem; }
  .header__actions .btn { display: none; }   /* drawer + floating CTA take over */
  .hero__badge .s { display: none; }
  .hero__badge { padding: 0.75rem 0.9rem; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr;
  visibility: hidden;
  pointer-events: none;
}
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  border: 0;
  padding: 0;
}
.drawer__panel {
  position: relative;
  justify-self: end;
  width: min(400px, 90vw);
  height: 100%;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.35rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__close {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  display: grid; place-items: center;
}
.drawer__close svg { width: 18px; height: 18px; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer__nav a[aria-current="page"] { color: var(--brand); }
.drawer__nav a svg { width: 16px; height: 16px; opacity: 0.4; }
.drawer__foot { margin-top: auto; display: grid; gap: 0.6rem; }
.drawer__contact { font-size: 0.9rem; color: var(--muted); }
.drawer__contact a { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(14, 91, 78, 0.1), transparent 65%),
    radial-gradient(700px 380px at 100% 0%, rgba(199, 154, 75, 0.14), transparent 60%),
    var(--bg);
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}
.hero__copy h1 { margin-bottom: 1rem; }
.hero__copy h1 em {
  font-style: italic;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
.hero__copy h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.28em;
  background: var(--accent);
  opacity: 0.28;
  z-index: -1;
  border-radius: 2px;
}
.hero__sub { font-size: var(--fs-lead); color: var(--body); max-width: 52ch; margin-bottom: 1.75rem; }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero__proof .rating { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--body); }
.hero__proof .rating strong { font-size: 0.95rem; }

.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 15px; height: 15px; }

.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
  background: var(--bg-2);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(11, 18, 32, 0) 45%, rgba(11, 18, 32, 0.55));
}
.hero__badge {
  position: absolute;
  left: 1rem; bottom: 1rem; right: 1rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}
.hero__badge .t { font-family: var(--font-display); color: var(--ink); font-size: 1.02rem; line-height: 1.2; }
.hero__badge .s { font-size: 0.78rem; color: var(--muted); }
.hero__badge .price { font-family: var(--font-display); color: var(--brand); font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
.hero__float {
  position: absolute;
  top: 1.35rem;
  left: -1.75rem;
  z-index: 3;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.9rem 1.15rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 0.1rem;
}
.hero__float b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: #fff; }
.hero__float span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9fb0c1; }
@media (max-width: 980px) {
  .hero {
    padding-block: clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.25rem) !important;
  }
  .hero__grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .hero__copy {
    order: 1 !important;
  }
  .hero__copy h1 {
    font-size: clamp(1.6rem, 5.5vw, 2.25rem) !important;
    line-height: 1.16 !important;
    margin-bottom: 0.65rem !important;
  }
  .hero__sub {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1.15rem !important;
  }
  .hero__proof {
    margin-top: 1.15rem !important;
    padding-top: 1rem !important;
    gap: 0.65rem 1rem !important;
  }
  .hero__media {
    order: 2 !important;
    margin-top: 0.35rem !important;
  }
  .hero__frame {
    aspect-ratio: 16 / 10 !important;
    max-height: 250px !important;
    border-radius: var(--radius-md) !important;
  }
  .hero__badge {
    position: absolute !important;
    left: 0.6rem !important;
    right: 0.6rem !important;
    bottom: 0.6rem !important;
    padding: 0.55rem 0.8rem !important;
    gap: 0.5rem !important;
    border-radius: var(--radius-sm) !important;
  }
  .hero__badge .t {
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 210px !important;
  }
  .hero__badge .s {
    display: none !important;
  }
  .hero__badge .price {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
  }
  .hero__float {
    left: auto !important;
    right: 0.75rem !important;
    top: -0.65rem !important;
    padding: 0.45rem 0.75rem !important;
  }
  .hero__float b {
    font-size: 1.1rem !important;
  }
}

/* Search bar */
.searchbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0.85rem;
  margin-top: 0.35rem;
}
.searchbar__tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0 0.25rem 0.7rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.searchbar__tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.searchbar__tab:hover { color: var(--ink); background: var(--surface-2); }
.searchbar__tab[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-dark); }
.searchbar__fields {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr auto;
  gap: 0.5rem;
  align-items: end;
}
.searchbar .field { margin: 0; }
.searchbar .field__label { font-size: 0.7rem; letter-spacing: 0.1em; }
.searchbar__submit { height: 48px; padding-inline: 1.5rem; white-space: nowrap; }
.searchbar__hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--muted);
  padding: 0.75rem 0.35rem 0.1rem;
}
@media (max-width: 860px) {
  .searchbar__fields { grid-template-columns: 1fr 1fr; }
  .searchbar__submit { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 520px) {
  .searchbar__fields { grid-template-columns: 1fr; }
}

/* quick links under hero */
.quicklinks {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
}
.quicklinks__label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__body { padding: 1.25rem; }

/* Listing card */
.listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  height: 100%;
}
.listing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.listing-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}
.listing-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.listing-card:hover .listing-card__media img { transform: scale(1.045); }
.listing-card__badges {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  z-index: 2;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-xs);
}
.badge--new { background: var(--brand); color: #fff; }
.badge--sold { background: var(--ink); color: #fff; }
.badge--pending { background: var(--accent); color: var(--ink); }
.badge--open { background: var(--surface); color: var(--ink); }

.save-btn {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: var(--radius-pill);
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-xs);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}
.save-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.save-btn:hover { transform: scale(1.07); background: #fff; }
.save-btn.is-saved { background: var(--brand); color: #fff; }
.save-btn.is-saved svg { fill: currentColor; }

.listing-card__body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.listing-card__price {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.listing-card__price small { font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.listing-card__title {
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.listing-card__title a { color: inherit; }
.listing-card__title a:hover { color: var(--brand); }
.listing-card__addr { font-size: 0.85rem; color: var(--muted); display: flex; gap: 0.35rem; align-items: flex-start; }
.listing-card__addr svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.listing-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  padding-top: 0.7rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--body);
}
.listing-card__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.listing-card__meta svg { width: 15px; height: 15px; color: var(--brand); opacity: 0.9; }
.listing-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.listing-card__agent { display: inline-flex; align-items: center; gap: 0.45rem; }
.listing-card__agent img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* list view */
.listing-card--row { flex-direction: row; align-items: stretch; }
.listing-card--row .listing-card__media { aspect-ratio: auto; width: 38%; min-width: 240px; }
.listing-card--row .listing-card__body { padding: 1.15rem 1.3rem; }
@media (max-width: 720px) {
  .listing-card--row { flex-direction: column; }
  .listing-card--row .listing-card__media { width: 100%; aspect-ratio: 16 / 10; min-width: 0; }
}

/* Feature / value card */
.feature {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  height: 100%;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1.05rem;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.14rem; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.005em; margin-bottom: 0.45rem; }
.feature p { font-size: 0.93rem; color: var(--muted); margin: 0; }
.feature--plain { background: transparent; border: 0; padding: 0; }
.feature--plain .feature__icon { background: var(--ink); color: var(--accent); }
.section--dark .feature, .section--brand .feature {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}
.section--dark .feature p, .section--brand .feature p { color: #a9bccb; }
.section--dark .feature__icon, .section--brand .feature__icon { background: rgba(199, 154, 75, 0.16); color: var(--accent); }

/* Neighbourhood card */
.hood-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.hood-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.hood-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(11, 18, 32, 0.05) 30%, rgba(11, 18, 32, 0.82));
  transition: opacity 0.3s var(--ease);
}
.hood-card:hover img { transform: scale(1.05); }
.hood-card:hover { color: #fff; }
.hood-card__content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.2rem;
}
.hood-card__content h3 { color: #fff; font-size: 1.22rem; margin-bottom: 0.2rem; }
.hood-card__content p { font-size: 0.84rem; color: rgba(255, 255, 255, 0.82); margin: 0 0 0.6rem; }
.hood-card__count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Agent card */
.agent-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.agent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.agent-card__media { aspect-ratio: 5 / 5.4; overflow: hidden; background: var(--bg-2); }
.agent-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.agent-card:hover .agent-card__media img { transform: scale(1.04); }
.agent-card__body { padding: 1.15rem 1.2rem 1.35rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.agent-card__name { font-family: var(--font-display); font-size: 1.16rem; color: var(--ink); margin: 0; }
.agent-card__role { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; }
.agent-card__stats {
  display: flex;
  gap: 1rem;
  padding-top: 0.75rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.agent-card__stats b { display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
.agent-card__contact { display: flex; gap: 0.4rem; margin-top: 0.85rem; }
.agent-card__contact .btn { flex: 1; }

/* Post card */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-card__meta {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-dark); font-weight: 700;
}
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.post-card__meta .date { color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.post-card__title { font-family: var(--font-display); font-size: 1.16rem; line-height: 1.25; margin: 0; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--brand); }
.post-card__excerpt { font-size: 0.9rem; color: var(--muted); margin: 0; }
.post-card__body .link-arrow { margin-top: auto; padding-top: 0.5rem; }

/* Post card featured (horizontal) */
.post-card--featured { flex-direction: row; align-items: stretch; }
.post-card--featured .post-card__media { width: 52%; aspect-ratio: auto; min-height: 320px; }
.post-card--featured .post-card__body { padding: 1.75rem; justify-content: center; }
.post-card--featured .post-card__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
@media (max-width: 800px) {
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__media { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.stat { text-align: center; padding: 0.5rem; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem);
  line-height: 1;
  color: var(--ink);
  display: block;
  letter-spacing: -0.02em;
}
.stat__label { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.5rem; display: block; }
.section--dark .stat__num, .section--brand .stat__num { color: #fff; }
.section--dark .stat__label, .section--brand .stat__label { color: #9fb0c1; }
.stat--bordered { border-left: 1px solid var(--line); }
.stat--bordered:first-child { border-left: 0; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0.5rem; }
  .stat--bordered:nth-child(odd) { border-left: 0; }
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__num {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.step h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.3rem; }
.step p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.steps--horizontal { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps--horizontal { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   8. Testimonials
   -------------------------------------------------------------------------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.slider__track > * { flex: 0 0 calc((100% - clamp(1rem, 2vw, 1.5rem) * 2) / 3); }
@media (max-width: 1000px) { .slider__track > * { flex-basis: calc((100% - clamp(1rem, 2vw, 1.5rem)) / 2); } }
@media (max-width: 700px) { .slider__track > * { flex-basis: 100%; } }

.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.65rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
}
.quote-card__mark { font-family: var(--font-display); font-size: 2.6rem; line-height: 0.6; color: var(--accent); opacity: 0.6; }
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote-card__person { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; padding-top: 0.5rem; }
.quote-card__person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-card__person b { display: block; color: var(--ink); font-size: 0.94rem; }
.quote-card__person span { font-size: 0.8rem; color: var(--muted); }
.section--dark .quote-card, .section--brand .quote-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.section--dark .quote-card blockquote, .section--brand .quote-card blockquote { color: #eef3f6; }
.section--dark .quote-card__person b, .section--brand .quote-card__person b { color: #fff; }

.slider__controls { display: flex; align-items: center; gap: 0.5rem; }
.slider__btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  display: grid; place-items: center;
  transition: all 0.2s var(--ease);
}
.slider__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.slider__btn svg { width: 17px; height: 17px; }
.section--dark .slider__btn, .section--brand .slider__btn {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3);
}
.section--dark .slider__btn:hover, .section--brand .slider__btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.slider__dots { display: flex; gap: 0.4rem; margin-left: 0.5rem; }
.slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--line-2);
  transition: all 0.25s var(--ease);
}
.slider__dot[aria-selected="true"] { background: var(--accent); width: 22px; border-radius: var(--radius-pill); }
.section--dark .slider__dot, .section--brand .slider__dot { background: rgba(255, 255, 255, 0.3); }

/* --------------------------------------------------------------------------
   9. CTA bands
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background:
    radial-gradient(900px 400px at 88% 0%, rgba(199, 154, 75, 0.22), transparent 62%),
    linear-gradient(150deg, var(--brand-dark) 0%, var(--ink) 70%);
  color: #d7e4e0;
}
.cta-band__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: #b6c8c4; max-width: 46ch; }
.cta-band__points { display: grid; gap: 0.55rem; margin-top: 1.25rem; }
.cta-band__points li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.92rem; color: #cadbd6; }
.cta-band__points svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
@media (max-width: 900px) { .cta-band__grid { grid-template-columns: 1fr; } }

.cta-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  box-shadow: var(--shadow-lg);
  color: var(--body);
}
.cta-panel h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.cta-panel > p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.1rem; }

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 0.9rem; }
.form--inline { grid-template-columns: repeat(2, 1fr); }
.form--inline .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form--inline { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.35rem; min-width: 0; }
.field__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field__label .req { color: var(--danger); }
.field__hint { font-size: 0.76rem; color: var(--muted); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #9aa2af; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9b0a0; }
.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 91, 78, 0.14);
}
.textarea { min-height: 120px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e7787' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.4rem;
}
.input[type="range"] { padding: 0; border: 0; background: transparent; }

.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.checkbox a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.form__foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.25rem; }
.form__assurance { display: flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; color: var(--muted); }
.form__assurance svg { width: 14px; height: 14px; color: var(--ok); }
.form-status {
  display: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  font-size: 0.87rem;
  border: 1px solid transparent;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--ok-soft); border-color: rgba(31, 122, 82, 0.25); color: #14603f; }
.form-status--error { background: var(--danger-soft); border-color: rgba(179, 53, 44, 0.25); color: #8f2b23; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field__error { font-size: 0.76rem; color: var(--danger); display: none; }
.field.has-error .field__error { display: block; }

.form--card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   11. Accordion / FAQ
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 0.65rem; }
.accordion details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 1.15rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.accordion details[open] { border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  width: 11px; height: 11px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex: none;
  margin-right: 4px;
}
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion .accordion__body { padding: 0 0 1.15rem; font-size: 0.93rem; color: var(--body); max-width: 70ch; }

/* --------------------------------------------------------------------------
   12. Listings page — filters
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(800px 360px at 8% -20%, rgba(14, 91, 78, 0.1), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); max-width: 62ch; margin-bottom: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.9rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb svg { width: 12px; height: 12px; opacity: 0.6; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

.listings-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}
@media (max-width: 980px) { .listings-layout { grid-template-columns: 1fr; } }

.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.filters__head h2 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; margin: 0; letter-spacing: 0; }
.filters__reset { border: 0; background: transparent; color: var(--brand); font-size: 0.8rem; font-weight: 600; padding: 0.2rem; }
.filters__group { padding-block: 0.95rem; border-top: 1px solid var(--line); }
.filters__group:first-of-type { border-top: 0; padding-top: 0; }
.filters__legend {
  font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-2); margin-bottom: 0.5rem;
}
.filters__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.seg { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.seg__btn {
  flex: 1 1 auto;
  min-width: 2.6rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xs);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.18s var(--ease);
}
.seg__btn:hover { border-color: var(--brand); color: var(--brand); }
.seg__btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters__foot { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 980px) {
  .filters { position: static; }
  .filters.is-collapsed .filters__body { display: none; }
  .filters__head { margin-bottom: 0.25rem; }
  .filters.is-collapsed .filters__head { margin-bottom: 0; }
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.results-bar__count { font-size: 0.9rem; color: var(--muted); }
.results-bar__count strong { color: var(--ink); }
.results-bar__tools { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.results-bar .select { padding-block: 0.5rem; font-size: 0.85rem; width: auto; min-width: 170px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-xs); overflow: hidden; }
.view-toggle button {
  border: 0; background: var(--surface); color: var(--muted);
  width: 38px; height: 38px; display: grid; place-items: center;
  transition: all 0.18s var(--ease);
}
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.view-toggle svg { width: 16px; height: 16px; }

/* filter panel toggle is mobile/tablet only */
[data-filters-toggle] { display: none; }
@media (max-width: 980px) {
  [data-filters-toggle] { display: inline-flex; }
}

.active-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.active-filter {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.4rem 0.35rem 0.75rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
}
.active-filter button {
  border: 0; background: transparent; color: inherit; padding: 0.1rem;
  display: inline-flex; opacity: 0.7;
}
.active-filter button:hover { opacity: 1; }
.active-filter svg { width: 13px; height: 13px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 2rem; flex-wrap: wrap; }
.loadmore-wrap { display: grid; justify-items: center; gap: 0.6rem; margin-top: 2rem; }

.empty-state {
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}
.empty-state h3 { margin-bottom: 0.4rem; }
.empty-state p { color: var(--muted); max-width: 44ch; margin-inline: auto; }

.map-panel {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  min-height: 260px;
}
.map-panel img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.map-panel__overlay {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 78%;
}
.map-panel__overlay b { color: var(--ink); display: block; font-size: 0.88rem; }
.map-panel__overlay span { color: var(--muted); font-size: 0.76rem; }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 320px; display: block; }

/* --------------------------------------------------------------------------
   13. Property detail page
   -------------------------------------------------------------------------- */
.property-head { padding-block: clamp(1.5rem, 3vw, 2.25rem) 0; }
.property-head__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.property-head h1 { margin-bottom: 0.35rem; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.property-head__addr { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.95rem; }
.property-head__addr svg { width: 16px; height: 16px; color: var(--brand); }
.property-head__price { text-align: right; }
.property-head__price b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 1.3rem + 1.3vw, 2.3rem);
  color: var(--ink);
  line-height: 1.1;
}
.property-head__price span { font-size: 0.8rem; color: var(--muted); }
.property-head__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.1rem; }
@media (max-width: 640px) {
  .property-head__price { text-align: left; }
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 1.35rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__item {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--bg-2);
  overflow: hidden;
  cursor: zoom-in;
  display: block;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.3s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); filter: brightness(1.04); }
.gallery__item--main { grid-row: 1 / 3; aspect-ratio: 4 / 3; }
.gallery__item--main img { height: 100%; }
.gallery__item:not(.gallery__item--main) { aspect-ratio: 16 / 9; }
.gallery__all {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}
.gallery__all svg { width: 15px; height: 15px; }
.gallery__item--main:hover .gallery__all { background: #fff; transform: translateY(-1px); }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .gallery__item--main { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .gallery__item:not(.gallery__item--main) { aspect-ratio: 16 / 11; }
  .gallery__item:nth-child(n + 4) { display: none; }
}

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 3rem);
}
@media (max-width: 1040px) { .property-layout { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
}
.panel + .panel { margin-top: 1.25rem; }
.panel h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.panel h3 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.6rem; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  padding: 1.15rem 0;
  border-block: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.fact { display: flex; align-items: center; gap: 0.65rem; }
.fact svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.fact b { display: block; font-size: 1.02rem; color: var(--ink); line-height: 1.2; font-family: var(--font-display); }
.fact span { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.55rem 1.25rem; }
.feature-list li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; color: var(--body); }
.feature-list svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 3px; }

.spec-table { display: grid; gap: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.89rem; }
.spec-row:last-child { border-bottom: 0; }
.spec-row span { color: var(--muted); }
.spec-row b { color: var(--ink); font-weight: 600; text-align: right; }

/* Sticky sidebar */
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 1.25rem; }
@media (max-width: 1040px) { .sidebar-sticky { position: static; } }

.agent-box { overflow: hidden; padding: 0; }
.agent-box__head { display: flex; gap: 0.85rem; align-items: center; padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--line); }
.agent-box__head img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none; }
.agent-box__head b { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); }
.agent-box__head span { font-size: 0.78rem; color: var(--muted); }
.agent-box__body { padding: 1.15rem 1.25rem 1.35rem; }
.agent-box__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.agent-box__quick a {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem; border: 1px solid var(--line-2); border-radius: var(--radius-xs);
  font-size: 0.83rem; font-weight: 600; color: var(--ink);
}
.agent-box__quick a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.agent-box__quick svg { width: 15px; height: 15px; }

/* Mortgage calculator */
.calc { display: grid; gap: 1rem; }
.calc__output {
  text-align: center;
  padding: 1.1rem;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
}
.calc__output b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brand-dark);
  line-height: 1.1;
}
.calc__output span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.calc__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem; }
.calc__row label { font-size: 0.84rem; color: var(--body); }
.calc__row output { font-size: 0.87rem; font-weight: 600; color: var(--ink); }
.calc input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--line-2);
  accent-color: var(--brand);
  margin-top: 0.35rem;
}
.calc__note { font-size: 0.72rem; color: var(--muted); }
.calc__breakdown { display: grid; gap: 0.35rem; font-size: 0.8rem; border-top: 1px solid var(--line); padding-top: 0.75rem; }
.calc__breakdown div { display: flex; justify-content: space-between; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 10, 18, 0.94);
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: grid; }
.lightbox__img { max-width: min(1180px, 100%); max-height: 82vh; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav svg, .lightbox__close svg { width: 20px; height: 20px; }
.lightbox__caption { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; }

/* Sticky mobile property bar */
.property-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 0.65rem clamp(0.9rem, 3vw, 1.5rem);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 -8px 30px -20px rgba(11, 18, 32, 0.6);
  transform: translateY(110%);
  transition: transform 0.32s var(--ease);
}
.property-bar.is-visible { transform: translateY(0); }
.property-bar__price { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); line-height: 1.15; }
.property-bar__price small { display: block; font-family: var(--font-body); font-size: 0.72rem; color: var(--muted); font-weight: 500; }
@media (max-width: 860px) {
  .property-bar { display: flex; }
  body.has-property-bar { padding-bottom: 72px; }
}

/* --------------------------------------------------------------------------
   14. Agent profile, about, services
   -------------------------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 940px) { .profile { grid-template-columns: 1fr; } }
.profile__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 5.6; background: var(--bg-2); }
.profile__media img { width: 100%; height: 100%; object-fit: cover; }
.profile__contact { display: grid; gap: 0.55rem; margin-top: 1.15rem; }
.profile__contact a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.profile__contact a:hover { border-color: var(--brand); color: var(--brand); }
.profile__contact svg { width: 16px; height: 16px; color: var(--brand); }
.profile__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.5rem 0; }
.profile__stats div { text-align: center; padding: 0.85rem 0.5rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.profile__stats b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.profile__stats span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 500;
}

.timeline { display: grid; gap: 0; border-left: 2px solid var(--line-2); padding-left: 1.5rem; }
.timeline__item { position: relative; padding-bottom: 1.6rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 0.45rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline__year { font-family: var(--font-display); color: var(--brand); font-size: 1.05rem; }
.timeline__item h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin: 0.1rem 0 0.25rem; }
.timeline__item p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.price-card--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.price-card--featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px; left: 1.5rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}
.price-card__name { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); font-weight: 700; }
.price-card__rate { font-family: var(--font-display); font-size: 2.1rem; color: var(--ink); line-height: 1; }
.price-card__rate small { font-family: var(--font-body); font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.price-card__desc { font-size: 0.88rem; color: var(--muted); }
.price-card__list { display: grid; gap: 0.5rem; font-size: 0.88rem; margin-bottom: 0.75rem; }
.price-card__list li { display: flex; gap: 0.5rem; align-items: flex-start; }
.price-card__list svg { width: 15px; height: 15px; color: var(--brand); flex: none; margin-top: 3px; }
.price-card__list li.is-muted { color: var(--muted); opacity: 0.75; }
.price-card .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   15. Article / prose
    -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem); margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; margin-top: 1.8rem; }
.prose p { font-size: 1.02rem; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.15rem; display: grid; gap: 0.5rem; }
.prose ul li { list-style: none; position: relative; padding-left: 1.1rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.prose ol { counter-reset: n; }
.prose ol li { list-style: none; position: relative; padding-left: 1.9rem; counter-increment: n; }
.prose ol li::before {
  content: counter(n);
  position: absolute;
  left: 0; top: 0;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.prose blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
}
.prose blockquote p { font-size: inherit; margin: 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.75rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose hr { margin: 2.5rem 0; }

.post-header { padding-block: clamp(1.75rem, 3vw, 2.75rem) 0; }
.post-header h1 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem); max-width: 22ch; }
.post-meta { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); }
.post-meta__author { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-weight: 600; }
.post-meta__author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.post-cover { margin-top: 1.75rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: var(--bg-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .post-cover { aspect-ratio: 16 / 10; } }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; } }

.share-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.share-row span { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  display: grid; place-items: center;
}
.share-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share-btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #9fb0c1;
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tag { color: #7f909f; }
.footer__brand p { font-size: 0.88rem; line-height: 1.65; max-width: 34ch; color: #93a4b4; }
.footer h3 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer__links { display: grid; gap: 0.6rem; }
.footer__links a { color: #9fb0c1; font-size: 0.89rem; }
.footer__links a:hover { color: var(--accent); }
.site-footer .footer__contact { display: grid; gap: 0.65rem; font-size: 0.89rem; }
.site-footer .footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.site-footer .footer__contact svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }
.site-footer .footer__contact a { color: #cbd6e0; }
.site-footer .footer__contact a:hover { color: var(--accent); }

/* same list used on light panels (offices, contact page) */
.footer__contact { display: grid; gap: 0.65rem; font-size: 0.89rem; }
.footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 3px; }
.footer__contact a { color: var(--ink); }
.footer__contact a:hover { color: var(--brand); }
.footer__socials { display: flex; gap: 0.55rem; }
.footer__socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid; place-items: center;
  color: #cbd6e0;
  transition: all 0.2s var(--ease);
}
.footer__socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.footer__socials svg { width: 16px; height: 16px; }

.newsletter { display: grid; gap: 0.6rem; }
.newsletter p { font-size: 0.85rem; color: #93a4b4; margin: 0; }
.newsletter__form { display: flex; gap: 0.4rem; }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.88rem;
}
.newsletter input::placeholder { color: #8296a6; }
.newsletter input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.newsletter .btn { border-radius: var(--radius-xs); padding-inline: 1.1rem; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #7f909f;
}
.footer__legal { display: flex; gap: 1.15rem; flex-wrap: wrap; }
.footer__legal a { color: #7f909f; }
.footer__legal a:hover { color: var(--accent); }
.footer__disclaimer { font-size: 0.74rem; color: #6c7d8c; margin-top: 1.25rem; line-height: 1.6; max-width: 92ch; }
.footer__equal {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  color: #93a4b4;
}

/* --------------------------------------------------------------------------
   17. Floating helpers
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.75rem);
  bottom: clamp(0.9rem, 3vw, 1.75rem);
  z-index: 80;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--ink); color: #fff; }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .to-top { bottom: 88px; } }

.contact-fab {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.75rem);
  bottom: calc(clamp(0.9rem, 3vw, 1.75rem) + 58px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.contact-fab:hover { transform: translateY(-2px); background: var(--brand-dark); color: #fff; }
.contact-fab svg { width: 17px; height: 17px; }
@media (max-width: 860px) {
  .contact-fab { bottom: calc(clamp(0.9rem, 3vw, 1.75rem) + 58px); }
  .to-top { bottom: calc(clamp(0.9rem, 3vw, 1.75rem) + 116px); }
}
@media (max-width: 560px) {
  .contact-fab span { display: none; }
  .contact-fab { padding: 0.8rem; }
}

/* --------------------------------------------------------------------------
   18. Reveal animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   19. Misc / utility section blocks
   -------------------------------------------------------------------------- */

/* Default sizing for icons injected by app.js — component rules override. */
.badge svg { width: 13px; height: 13px; flex: none; }
.chip svg { width: 14px; height: 14px; flex: none; }
.link-arrow svg { width: 17px; height: 17px; flex: none; }
.hood-card__count svg { width: 14px; height: 14px; flex: none; }
.map-panel__overlay svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
.drawer__contact svg { width: 14px; height: 14px; vertical-align: -2px; }
.pill-stat svg { flex: none; }
.media-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-2);
  aspect-ratio: 4 / 3.2;
}
.media-block img { width: 100%; height: 100%; object-fit: cover; }

.checklist { display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.94rem; color: var(--body); }
.checklist svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 3px; }
.section--dark .checklist svg, .section--brand .checklist svg { color: var(--accent); }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-stat {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-2);
  font-weight: 500;
}
.pill-stat svg { width: 15px; height: 15px; color: var(--brand); }
.section--dark .pill-stat, .section--brand .pill-stat {
  background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); color: #d7e4e0;
}
.section--dark .pill-stat svg, .section--brand .pill-stat svg { color: var(--accent); }

.note {
  display: flex; gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(199, 154, 75, 0.3);
  font-size: 0.86rem;
  color: #6f5620;
}
.note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }

.trust-row {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  opacity: 0.85;
}
.trust-row img, .trust-row span {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-lite {
  padding-block: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% -30%, rgba(199, 154, 75, 0.15), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-lite h1 { max-width: 24ch; margin-inline: auto; }
.hero-lite p { max-width: 60ch; margin-inline: auto; color: var(--muted); font-size: var(--fs-lead); }

.center-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* thank you / 404 */
.state-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.state-page__icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.state-page__icon svg { width: 34px; height: 34px; }
.state-page h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem); max-width: 22ch; margin-inline: auto; }
.state-page p { max-width: 52ch; margin-inline: auto; color: var(--muted); }
.state-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  color: var(--line-2);
  margin-bottom: 0.5rem;
}

/* print */
@media print {
  .site-header, .topbar, .site-footer, .contact-fab, .to-top, .property-bar, .drawer { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 1rem; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   PAGE CHANGE TRANSITIONS & DYNAMIC BRANDING ANIMATIONS
   ========================================================================== */
#pageProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent, #c79a4b), var(--brand, #0e5b4e), var(--accent, #c79a4b));
  box-shadow: 0 0 12px rgba(199, 154, 75, 0.85);
  z-index: 9999999;
  pointer-events: none;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-transitioning {
  animation: pageFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.page-leaving {
  opacity: 0 !important;
  transform: translateY(-8px) scale(0.995) !important;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 1, 1), transform 0.2s cubic-bezier(0.4, 0, 1, 1) !important;
}

