/* ==========================================================================
   Wapda Town Lahore — Design System v2
   Palette derived from official logo (assets/logo.png):
   charcoal #232122 · cyan #00AFEF · magenta #EC268F
   Type: Sora (headings + body/UI)
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  /* Color system — from logo */
  --color-primary: #0678a8;        /* deepened logo cyan — AA on white */
  --color-primary-dark: #055e86;
  --color-primary-soft: #e4f4fb;

  --color-accent: #00afef;         /* vivid logo cyan — graphics & highlights */
  --color-accent-dark: #055e86;
  --color-accent-soft: #e4f4fb;

  --color-bg: #f7f7f8;             /* cool light gray */
  --color-surface: #ffffff;
  --color-heading: #211f20;        /* logo charcoal */
  --color-text: #4a4748;
  --color-muted: #6e6a6c;
  --color-border: #e8e6e7;

  --color-cta: var(--color-primary);
  --color-cta-hover: var(--color-primary-dark);

  /* Typography */
  --font-body: "Sora", -apple-system, "Segoe UI", sans-serif;
  --font-heading: var(--font-body);

  --fs-h1: clamp(2.25rem, 1.35rem + 3.2vw, 3.75rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-h3: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.8125rem;

  /* Layout */
  --container: 1180px;
  --section-y: clamp(4rem, 9vw, 7rem);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(24, 26, 32, 0.05), 0 2px 10px rgba(24, 26, 32, 0.04);
  --shadow-md: 0 6px 24px rgba(24, 26, 32, 0.08);
  --shadow-lg: 0 18px 50px rgba(24, 26, 32, 0.13);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Reset / base -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; max-width: 65ch; }

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--color-primary-dark); }

ul { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(0, 175, 239, 0.22); }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1.2rem;
  background: var(--color-heading);
  color: #fff;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

/* 3. Layout utilities ---------------------------------------------------- */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--surface { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.section--tint { background: #f1f2f4; border-block: 1px solid var(--color-border); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head h2 { margin-bottom: 0.4em; }
.section-head p { color: var(--color-muted); }

/* Eyebrow label — clean text, no decorative shapes */
.eyebrow {
  display: block;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}

.grid { display: grid; gap: 1.5rem; }
.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)); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  text-decoration: none;
}
.text-link svg { transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* 4. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, #0678a8 0%, #0894cd 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6, 120, 168, 0.25);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #055e86 0%, #0678a8 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(6, 120, 168, 0.38);
  transform: translateY(-1px);
}

.btn--outline {
  border-color: #c9cdd2;
  color: var(--color-heading);
  background: rgba(255, 255, 255, 0.65);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* 5. Header — translucent glossy glass -------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 1px 24px rgba(24, 26, 32, 0.06);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.78) 100%);
  border-bottom-color: rgba(24, 26, 32, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 32px rgba(24, 26, 32, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; flex: none; }
.brand img { height: 48px; width: auto; }
.brand-icon { width: 26px; height: 26px; color: var(--color-primary); flex: none; }
.brand-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--color-heading); white-space: nowrap; }
@media (max-width: 420px) {
  .brand { gap: 0.5rem; }
  .brand-icon { width: 22px; height: 22px; }
  .brand-text { font-size: 1rem; }
  .brand-city { display: none; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 0.6rem 0.7rem;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-heading);
  text-decoration: none;
  border-radius: 9px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-list a:hover { color: var(--color-primary); background: rgba(0, 175, 239, 0.09); }
.nav-list a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
}
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.header-actions .btn { padding: 0.65rem 1.1rem; font-size: 0.9375rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(24, 26, 32, 0.12);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 6. Hero — premium with layered gradients + glass ---------------------------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(4rem, 8.5vw, 7rem) clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(48% 62% at 86% 4%, rgba(0, 175, 239, 0.16) 0%, transparent 62%),
    radial-gradient(42% 56% at 2% 98%, rgba(6, 120, 168, 0.10) 0%, transparent 60%),
    radial-gradient(28% 36% at 58% 112%, rgba(236, 38, 143, 0.05) 0%, transparent 65%),
    linear-gradient(180deg, #e9f4fa 0%, #f3f8fb 45%, var(--color-bg) 78%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(6, 120, 168, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(60% 55% at 78% 18%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 55% at 78% 18%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-copy { max-width: 35rem; }
.hero-copy .eyebrow { margin-bottom: 1.4rem; }
.hero-copy h1 {
  margin-bottom: 0.65em;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(94deg, #055e86 5%, #0678a8 45%, #00afef 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-lede {
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.24rem);
  line-height: 1.65;
  color: var(--color-text);
  max-width: 46ch;
  margin-bottom: 2.3rem;
}
/* Hero buttons — larger, weightier, scoped to hero only */
.hero .btn-row { gap: 1rem; }
.hero .btn {
  padding: 1.05rem 2.1rem;
  border-radius: 12px;
  font-size: 1.02rem;
}
.hero .btn--primary {
  box-shadow: 0 12px 30px rgba(6, 120, 168, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.hero .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(6, 120, 168, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.hero .btn--outline {
  background: #fff;
  border-color: #dde3e8;
  box-shadow: var(--shadow-sm);
}
.hero .btn--outline:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-media { position: relative; isolation: isolate; }
/* Soft cyan glow behind the framed photo ties image to background */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% -4% -4% 8%;
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 10px);
  background: linear-gradient(135deg, rgba(0, 175, 239, 0.22), rgba(6, 120, 168, 0.10) 60%, transparent);
  filter: blur(28px);
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid #fff;
  outline: 1px solid rgba(6, 120, 168, 0.14);
  outline-offset: -1px;
  box-shadow: 0 30px 70px rgba(24, 38, 48, 0.22), 0 4px 14px rgba(6, 120, 168, 0.12);
  filter: saturate(1.05) contrast(1.02);
}

.hero-badge {
  position: absolute;
  left: clamp(-14px, -1vw, -20px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 270px;
  padding: 0.95rem 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 36px rgba(24, 38, 48, 0.16);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.4;
  margin: 0;
}
.hero-badge svg { flex: none; color: var(--color-accent-dark); }
.hero-badge small { display: block; margin-top: 0.15rem; font-size: 0.78rem; font-weight: 400; color: var(--color-muted); }

/* Glassy live-price chip floating on hero image */
.hero-chip {
  position: absolute;
  right: clamp(-10px, -0.6vw, -16px);
  top: 34px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 250px;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 36px rgba(24, 38, 48, 0.16);
  font-size: var(--fs-small);
  line-height: 1.4;
  margin: 0;
}
.hero-chip b { display: block; font-size: 0.92rem; color: var(--color-heading); font-weight: 600; }
.hero-chip small { display: block; margin-top: 0.15rem; font-size: 0.78rem; color: var(--color-muted); font-weight: 500; }
.hero-chip .chip-pulse {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.18);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-chip .chip-pulse { animation: pulse-dot 2.4s ease-out infinite; }
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(18, 183, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

/* Glassy eyebrow pill (hero only) */
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: var(--fs-tiny);
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow-sm);
  width: fit-content;
}
.hero-copy .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 175, 239, 0.18);
  margin: 0;
}

/* Stats strip */
.stats {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.75rem 1.5rem 0.25rem;
  border-left: 1px solid var(--color-border);
  margin: 0;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt {
  order: 2;
  font-size: var(--fs-tiny);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-muted);
}
.stat dd {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-heading);
  line-height: 1.05;
}

/* 7. Split feature (About) --------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split-media { margin: 0; }
.split-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split-media figcaption,
.gallery figcaption {
  margin-top: 0.75rem;
  font-size: var(--fs-tiny);
  color: var(--color-muted);
}

.fact-list {
  list-style: none;
  margin: 1.75rem 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.fact-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.9875rem;
}
.fact-list svg {
  flex: none;
  margin-top: 0.2em;
  color: var(--color-primary);
}
.fact-list b { color: var(--color-heading); font-weight: 600; }

/* 7b. About section polish (scoped — .split is shared elsewhere) ------------- */
#about .split { align-items: stretch; }
#about .eyebrow { margin-bottom: 1rem; }
#about h2 {
  letter-spacing: -0.025em;
  line-height: 1.14;
  max-width: 20ch;
  margin-bottom: 0.7em;
}
#about .split > div > p { max-width: 58ch; }
#about .split > div > p + p { margin-top: 1.05em; }
/* Equal-height columns: figure stretches with the text column, photo fills it */
#about .split-media {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
#about .split-media img {
  flex: 1 1 auto;
  width: 100%;
  min-height: clamp(320px, 42vw, 520px);
  object-fit: cover;
  border: 5px solid #fff;
  outline: 1px solid rgba(6, 120, 168, 0.12);
  outline-offset: -1px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 55px rgba(24, 38, 48, 0.18), 0 4px 12px rgba(6, 120, 168, 0.10);
  filter: saturate(1.04);
}
#about .fact-list { gap: 0.75rem; margin: 1.6rem 0 1.9rem; }
#about .fact-list li {
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 1.05rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 0.9625rem;
  line-height: 1.6;
}
#about .fact-list svg {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 7px;
  margin-top: 0.1em;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 9px;
}
#about .text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 0.3rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  text-decoration: none;
}
#about .text-link svg { transition: transform 0.25s var(--ease); }
#about .text-link:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
#about .text-link:hover svg { transform: translateX(4px); }

/* 8. Cards ---------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.9rem 1.7rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d6d4d6;
}
.card svg.icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 10px;
  margin-bottom: 0.4rem;
}
.card h3 { margin-bottom: 0.15em; }
.card p { margin: 0; font-size: 0.9375rem; color: var(--color-muted); }
.card .text-link { margin-top: auto; padding-top: 0.9rem; font-size: 0.9375rem; }

/* Phase cards */
.phase-card { padding: 0; overflow: hidden; }

/* Highlighted Explore More Phases CTA */
.phases-cta {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.btn--lg { padding: 1.1rem 2.5rem; font-size: 1.0625rem; }
.phases-cta .btn--lg {
  box-shadow:
    0 12px 34px rgba(6, 120, 168, 0.35),
    0 0 0 6px rgba(0, 175, 239, 0.12);
}
.phases-cta .btn--lg:hover {
  box-shadow:
    0 16px 40px rgba(6, 120, 168, 0.45),
    0 0 0 8px rgba(0, 175, 239, 0.16);
}
.phases-cta-hint { font-size: var(--fs-tiny); color: var(--color-muted); letter-spacing: 0.02em; }
.phase-card .phase-head {
  padding: 1.6rem 1.7rem 1.2rem;
  border-bottom: 1px dashed var(--color-border);
}
.phase-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.phase-card p { padding-inline: 1.7rem; }
.block-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1.7rem 1.7rem;
  margin: 0;
}
.block-chips li {
  font-size: var(--fs-tiny);
  font-weight: 600;
  color: var(--color-heading);
  background: #f1f2f4;
  border: 1px solid var(--color-border);
  padding: 0.28rem 0.68rem;
  border-radius: 7px;
}

/* Due-diligence checklist */
.check-card {
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 1.4rem;
}
.check-num {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  border-radius: 50%;
}
.check-card h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.check-card p { font-size: 0.9rem; }

/* 9. Price tabs + tables ---------------------------------------------------- */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem;
  background: #ececee;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 2rem;
}
.tab-btn {
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.tab-btn:hover { color: var(--color-heading); }
.tab-btn[aria-selected="true"] {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.tab-panel[hidden] { display: none; }
.tab-panel p { color: var(--color-muted); margin-bottom: 1.5rem; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
table.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 480px;
}
.price-table caption {
  text-align: left;
  padding: 1rem 1.25rem 0;
  font-size: var(--fs-tiny);
  color: var(--color-muted);
}
.price-table th,
.price-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.price-table thead th {
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: #f6f6f7;
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td:last-child,
.price-table th:last-child { text-align: right; font-weight: 600; color: var(--color-heading); white-space: nowrap; }

/* Single-value reference table (label + value rows) */
.price-table--rows td,
.price-table--rows td:last-child { text-align: left; font-weight: 400; color: var(--color-text); white-space: normal; }
.price-table--rows tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--color-heading);
  width: 220px;
  white-space: normal;
}

.disclaimer {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  color: var(--color-muted);
}
.disclaimer svg { flex: none; margin-top: 0.15em; color: var(--color-primary); }
.disclaimer p { margin: 0; max-width: none; }
.disclaimer strong { color: var(--color-heading); }

/* 10. Gallery ----------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 240px;
  gap: 1.25rem;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(18, 19, 22, 0.74));
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 500;
}

/* 11. Location ------------------------------------------------------------------ */
.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
/* Homepage map: equal height with content column, min 600px */
.location-grid .map-frame,
.location-grid .map-embed { height: 100%; }
.location-grid .map-embed { display: flex; flex-direction: column; }
.location-grid .map-embed #map { flex: 1 1 auto; height: 600px; min-height: 600px; }
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  background: var(--color-primary-soft);
}
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Leaflet embed */
.map-embed { position: relative; }
#map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 440px;
  margin: 0;
  padding: 0;
  background: #e8ecef;
  font: inherit;
}
#map input[type="checkbox"],
#map input[type="radio"] {
  height: unset;
  line-height: unset;
  padding: unset;
  width: unset;
  margin: unset;
  display: unset;
}
.map-embed--tall #map { height: 560px; }
.map-opacity {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-tiny);
  font-weight: 600;
  color: var(--color-heading);
}
.map-opacity input[type="range"] { width: 110px; accent-color: var(--color-primary); cursor: pointer; }
.leaflet-container { font: inherit; }

.route-list { display: grid; gap: 1rem; margin-top: 1.75rem; }
.route {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.route:hover { border-color: #d6d4d6; box-shadow: var(--shadow-sm); }
.route svg { flex: none; margin-top: 0.15em; color: var(--color-primary); }
.route b { display: block; color: var(--color-heading); }
.route span { font-size: 0.9rem; color: var(--color-muted); }
.route em {
  float: right;
  font-style: normal;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-primary);
  white-space: nowrap;
}
.whatsapp-route { border-left: 3px solid #25d366; display: flex; }
.whatsapp-route:hover { border-color: #25d366; box-shadow: var(--shadow-md); }
.whatsapp-route b em { color: #128c7e; }

/* 12. FAQ -------------------------------------------------------------------------- */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease);
}
.faq[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M6 1v10M1 6h10" stroke="%23055e86" stroke-width="2" stroke-linecap="round"/></svg>') center / 12px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.4rem 1.3rem; font-size: 0.9688rem; color: var(--color-muted); }
.faq .faq-body p { margin: 0; }

.snapshot-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.5rem;
  font-size: var(--fs-tiny);
  color: var(--color-muted);
}
.snapshot-note .dot-sep { opacity: 0.5; }

/* WhatsApp button — chat CTA */
.btn--whatsapp {
  background: linear-gradient(135deg, #128c7e 0%, #25d366 130%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(18, 140, 126, 0.28);
}
.btn--whatsapp:hover {
  background: linear-gradient(135deg, #0e7568 0%, #1fb857 130%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(18, 140, 126, 0.4);
  transform: translateY(-1px);
}
.btn--whatsapp svg { flex: none; }

/* Floating WhatsApp chat button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #128c7e 0%, #25d366 130%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(18, 140, 126, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  color: #fff;
  box-shadow: 0 12px 34px rgba(18, 140, 126, 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.6);
    animation: wa-pulse 2.6s ease-out infinite;
  }
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.9; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* 12d. Featured properties --------------------------------------------------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
}
.property-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.property-card h3 { text-decoration: none; }
.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9ecee;
}
.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.property-card:hover .property-media img { transform: scale(1.06); }
.property-price {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 0.45rem 0.8rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  backdrop-filter: blur(8px) saturate(150%);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-heading);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm);
}
.property-body {
  padding: 1.2rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.property-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  font-size: var(--fs-tiny);
  font-weight: 500;
  color: var(--color-muted);
  margin: 0;
}
.property-meta span { display: inline-flex; align-items: center; gap: 0.4em; }
.property-meta svg { color: var(--color-primary); flex: none; }
.property-body h3 {
  font-size: 1.02rem;
  line-height: 1.4;
  margin: 0;
}
.property-card .btn {
  margin-top: auto;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  width: 100%;
}

/* Property detail modal */
.pm-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0 0 0.25rem;
}
.pm-h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 1.6rem 0 0.7rem;
}
.pm-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.pm-spec {
  background: #f4f5f7;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}
.pm-spec b { display: block; font-size: 1.02rem; color: var(--color-heading); }
.pm-spec span { font-size: var(--fs-tiny); color: var(--color-muted); }
.pm-desc { font-size: 0.9688rem; color: var(--color-text); margin: 0; }
.pm-amenities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pm-amenities li {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45rem 0.85rem;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
}
.pm-amenities svg { flex: none; }
.pm-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* 13. CTA band — charcoal with subtle cyan glow ------------------------------------- */
.cta-band {
  background:
    radial-gradient(60% 130% at 92% 0%, rgba(0, 175, 239, 0.16) 0%, transparent 55%),
    linear-gradient(135deg, #1d1c1f 0%, #2a292d 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.75rem, 5vw, 4.5rem);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.35em; }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin: 0; max-width: 52ch; }
.cta-band .btn-row { justify-content: flex-end; }

/* 14. Footer --------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section-y);
  background: #141317;
  color: #a7a5aa;
  font-size: var(--fs-small);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.footer-logo svg { width: 26px; height: 26px; color: var(--color-accent); flex: none; }
.footer-logo:hover { color: var(--color-accent); }
.footer-bottom a {
  color: #b9b7bb;
  text-decoration: none;
  font-weight: 500;
}
.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-about { max-width: 42ch; margin-top: 1.1rem; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a { color: #a7a5aa; text-decoration: none; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--color-accent); }
.footer-note { color: #8b898e; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: #8b898e;
  font-size: var(--fs-tiny);
}

/* 15. Forms ------------------------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; max-width: 640px; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--color-heading); }
.form-field input,
.form-field textarea {
  font: inherit;
  color: var(--color-heading);
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 175, 239, 0.18);
}
.form-hint { font-size: var(--fs-tiny); color: var(--color-muted); }

/* 16. Reveal animations + motion safety -------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal-delay-1 { transition-delay: 0.08s; }
html.js .reveal-delay-2 { transition-delay: 0.16s; }
html.js .reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* 17. Inner-page hero — brand gradient --------------------------------------- */
.page-hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(50% 90% at 88% 0%, rgba(0, 175, 239, 0.28) 0%, transparent 58%),
    radial-gradient(36% 70% at 0% 100%, rgba(236, 38, 143, 0.10) 0%, transparent 62%),
    linear-gradient(118deg, #131b21 0%, #0a3a52 52%, #0b6390 100%);
  color: #fff;
  padding-block: clamp(3.75rem, 7vw, 6rem);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(52% 70% at 82% 12%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(52% 70% at 82% 12%, #000 0%, transparent 72%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--color-accent); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .page-lede {
  color: rgba(255, 255, 255, 0.72);
  max-width: 62ch;
  margin-bottom: 0;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
}

/* 17b. Listings hero — two-column premium variant (house-for-sale.html) ------ */
.page-hero--listings {
  background:
    radial-gradient(46% 70% at 90% 8%, rgba(0, 175, 239, 0.32) 0%, transparent 60%),
    radial-gradient(40% 65% at 4% 100%, rgba(236, 38, 143, 0.12) 0%, transparent 60%),
    radial-gradient(30% 45% at 55% 110%, rgba(0, 175, 239, 0.14) 0%, transparent 65%),
    linear-gradient(118deg, #10161c 0%, #0a3a52 55%, #0b6390 100%);
}
/* Faint photo wash on the right — depth without competing with the card */
.page-hero--listings::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/houses-for-sale/spanish-english-style-house-for-sale.webp") right center / min(58%, 720px) auto no-repeat;
  opacity: 0.16;
  mask-image: linear-gradient(90deg, transparent 20%, #000 65%),
    linear-gradient(0deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 65%),
    linear-gradient(0deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  pointer-events: none;
}
.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.page-hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  width: fit-content;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: var(--fs-tiny);
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin-bottom: 1.4rem;
}
.page-hero-copy .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 175, 239, 0.25);
}
.page-hero-copy h1 {
  margin-bottom: 0.6em;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
  text-wrap: balance;
}
.page-hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(94deg, #9fe3fa 0%, #38c3f3 55%, #00afef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.page-hero-copy .page-lede {
  max-width: 44ch;
  line-height: 1.65;
  margin-bottom: 2.2rem;
}
.page-hero-copy .btn-row { gap: 1rem; }
.page-hero-copy .btn {
  padding: 1.02rem 2rem;
  border-radius: 12px;
  font-size: 1.02rem;
}
.page-hero-copy .btn--primary {
  box-shadow: 0 12px 30px rgba(0, 175, 239, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.page-hero-copy .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 175, 239, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.page-hero-copy .btn--ghost {
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.page-hero-copy .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  transform: translateY(-2px);
}
.page-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(2rem, 5vw, 2.75rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 34rem;
}
.page-hero-stats div { margin: 0; padding-left: 1.25rem; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.page-hero-stats div:first-child { padding-left: 0; border-left: 0; }
.page-hero-stats dt {
  order: 2;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.6);
}
.page-hero-stats dd {
  margin: 0 0 0.3rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
}
.page-hero-inner .hero-media { width: 100%; max-width: 400px; justify-self: end; }
.page-hero-inner .hero-media img { aspect-ratio: 4 / 4.6; }
/* Rent hero — same system, own photo wash */
.page-hero--rent::before {
  background-image: url("../assets/images/houses-for-rent/rent-hero.webp");
}
/* Rent hero flip — media left, copy right (distinct from sale hero) */
.page-hero--flip::before { transform: scaleX(-1); }
.page-hero--flip .page-hero-copy { order: 2; }
.page-hero--flip .page-hero-inner .hero-media { order: 1; justify-self: start; }
@media (max-width: 1024px) {
  .page-hero--flip .page-hero-copy { order: 1; }
  .page-hero--flip .page-hero-inner .hero-media { order: 2; justify-self: start; }
}

/* 20c. Plot hero + guide (plot-for-sale.html only) --------------------------- */
.page-hero--plot::before {
  background-image: url("../assets/images/plots-for-sale/pl-q1-kanal-a.webp");
  background-position: center center;
  background-size: cover;
  opacity: 0.12;
}
.page-hero--center .page-hero-center { max-width: 780px; margin-inline: auto; text-align: center; }
.page-hero--center .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  width: fit-content;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: var(--fs-tiny);
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin-bottom: 1.4rem;
}
.page-hero--center .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 175, 239, 0.25);
}
.page-hero--center h1 {
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 0.6em;
}
.page-hero--center h1 em {
  font-style: normal;
  background: linear-gradient(94deg, #9fe3fa 0%, #38c3f3 55%, #00afef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.page-hero--center .page-lede { max-width: 56ch; margin: 0 auto 2.2rem; line-height: 1.65; }
.page-hero--center .btn-row { justify-content: center; gap: 1rem; }
.page-hero--center .btn { padding: 1.02rem 2rem; border-radius: 12px; font-size: 1.02rem; }
.page-hero--center .btn--primary {
  box-shadow: 0 12px 30px rgba(0, 175, 239, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.page-hero--center .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 175, 239, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.page-hero--center .btn--ghost {
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.page-hero--center .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  transform: translateY(-2px);
}
.plot-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(2rem, 5vw, 2.75rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 44rem;
}
.plot-hero-stats div { margin: 0; padding-left: 1.25rem; border-left: 1px solid rgba(255, 255, 255, 0.16); text-align: left; }
.plot-hero-stats div:first-child { padding-left: 0; border-left: 0; }
.plot-hero-stats dt {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.6);
}
.plot-hero-stats dd {
  margin: 0 0 0.3rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
}
.plot-bands {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}
.plot-bands li {
  padding: 1.1rem 1.1rem 1rem;
  background: linear-gradient(180deg, #f2f7fb 0%, #ffffff 100%);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.plot-bands strong { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--color-heading); margin-bottom: 0.2rem; }
.plot-bands span { font-size: 0.85rem; color: var(--color-muted); }
.plot-leadline { font-weight: 600; color: var(--color-heading); }
.plot-amenities { margin-top: 1rem; }
.plot-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}
.plot-steps::before {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 22px;
  border-top: 2px dashed rgba(6, 120, 168, 0.35);
}
.plot-steps li {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.15rem 1.2rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.plot-steps h3 { margin: 0; font-size: 1rem; color: var(--color-heading); }
.plot-steps p { margin: 0; font-size: 0.88rem; line-height: 1.7; color: var(--color-text); }
@media (max-width: 1024px) {
  .plot-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plot-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plot-steps::before { display: none; }
  .plot-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.1rem; }
  .plot-hero-stats div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* 20b. Rent guide — distinct treatments (house-for-rent.html only) ----------- */
.rent-commute {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}
.rent-commute li {
  padding: 1rem 1.1rem;
  background: var(--color-primary-soft);
  border: 1px solid rgba(6, 120, 168, 0.18);
  border-radius: var(--radius-md);
}
.rent-commute strong { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--color-primary-dark); }
.rent-commute span { font-size: 0.85rem; color: var(--color-muted); }
.rent-highlight {
  margin: 0;
  padding: 1.15rem 1.35rem;
  background: #fff8e6;
  border: 1px solid #f0dfae;
  border-left: 3px solid #d9a400;
  border-radius: var(--radius-md);
}
.rent-highlight p { margin: 0 0 0.25rem; font-size: 1.05rem; font-weight: 600; color: var(--color-heading); max-width: none; }
.rent-highlight small { color: var(--color-muted); font-size: 0.88rem; line-height: 1.6; }
.rent-why-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 1.25rem; align-items: stretch; }
.rent-why-grid .guide-why { margin-top: 0; }
.rent-dark-card {
  margin: 0;
  padding: 1.5rem 1.5rem 1.3rem;
  background: linear-gradient(135deg, #131b21 0%, #0a3a52 60%, #0b6390 100%);
  border-radius: var(--radius-md);
  color: #fff;
}
.rent-dark-card dl { display: grid; gap: 0.7rem; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.rent-dark-card dl div { margin: 0; }
.rent-dark-card dt { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.09em; color: rgba(255, 255, 255, 0.6); }
.rent-dark-card dd { margin: 0.15rem 0 0; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; color: #fff; }
.rent-dark-card p { margin: 0; font-size: 0.9rem; line-height: 1.65; color: rgba(255, 255, 255, 0.78); max-width: none; }
.rent-bands {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}
.rent-bands li {
  padding: 1.1rem 1.1rem 1rem;
  background: linear-gradient(180deg, #f2f7fb 0%, #ffffff 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.rent-bands strong { display: block; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; color: var(--color-heading); margin-bottom: 0.2rem; }
.rent-bands span { font-size: 0.85rem; color: var(--color-muted); }
.rent-leadline { font-weight: 600; color: var(--color-heading); }
.rent-note {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--color-primary-soft);
  border: 1px dashed rgba(6, 120, 168, 0.4);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  max-width: none;
}
.rent-note strong { color: var(--color-primary-dark); }
.rent-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.rent-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1.1rem;
  padding-bottom: 1.4rem;
}
.rent-timeline li:last-child { padding-bottom: 0; }
.rent-timeline li::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-border));
  border-radius: 2px;
}
.rent-timeline li:last-child::before { display: none; }
.rent-node {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, #0678a8 0%, #0894cd 100%);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(6, 120, 168, 0.35);
}
.rent-timeline h3 { margin: 0.35rem 0 0.3rem; font-size: 1.05rem; color: var(--color-heading); }
.rent-timeline p { margin: 0; font-size: 0.94rem; line-height: 1.8; color: var(--color-text); max-width: 72ch; }
.rent-types { align-items: stretch; }
.rent-type {
  background: linear-gradient(180deg, #f2f7fb 0%, #ffffff 85%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.rent-type svg.icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 10px;
  margin-bottom: 0.4rem;
}
.rent-type-range { margin: 0; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; color: var(--color-primary-dark); }
.rent-type h4 { margin: 0; font-size: 1.02rem; color: var(--color-heading); }
.rent-type p { margin: 0; font-size: 0.9rem; color: var(--color-muted); }
.rent-type a { margin-top: auto; padding-top: 0.8rem; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.rent-checklist { gap: 0.6rem; }
.rent-checklist h4 { margin: 0; color: var(--color-heading); font-size: 1.05rem; }
.rent-checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.9rem; color: var(--color-text); }
.rent-checklist li { position: relative; padding-left: 1.7rem; }
.rent-checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.3rem;
  width: 0.55rem;
  height: 0.32rem;
  border-left: 2.5px solid var(--color-primary);
  border-bottom: 2.5px solid var(--color-primary);
  transform: rotate(-45deg);
  border-radius: 1px;
}
@media (max-width: 1024px) {
  .rent-commute, .rent-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rent-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .rent-timeline li { grid-template-columns: 36px minmax(0, 1fr); gap: 0.85rem; }
  .rent-node { width: 36px; height: 36px; font-size: 0.95rem; }
  .rent-timeline li::before { left: 17px; top: 38px; }
}
@media (max-width: 1024px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-inner .hero-media { justify-self: start; max-width: 560px; }
  .page-hero-inner .hero-media img { aspect-ratio: 16 / 10; }
  .page-hero--listings::before { opacity: 0.1; background-size: cover; background-position: center; }
}

/* 18. Entrance animations (load-time, staggered) ----------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .anim,
  html.js .anim-img { opacity: 0; }
  html.js .anim {
    animation: fade-up 0.85s var(--ease) forwards;
  }
  html.js .anim-img {
    animation: img-in 1.05s var(--ease) 0.15s forwards;
  }
  html.js .anim-d1 { animation-delay: 0.08s; }
  html.js .anim-d2 { animation-delay: 0.16s; }
  html.js .anim-d3 { animation-delay: 0.26s; }
  html.js .anim-d4 { animation-delay: 0.36s; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes img-in {
  from { opacity: 0; transform: scale(1.04) translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.float-soft { animation: float-soft 6s ease-in-out infinite; }
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* 19. Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; max-width: 560px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav-list a { padding: 0.85rem 0.9rem; font-size: 1rem; }
  .nav-list a[aria-current="page"]::after { display: none; }
  .header-actions .btn--outline { display: none; }
}

@media (max-width: 700px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--wide { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-badge { left: 12px; right: 12px; bottom: 12px; }
  .hero-chip { right: 12px; top: 12px; }
  .tabs { width: 100%; }
  .tab-btn { flex: 1 1 auto; padding-inline: 1rem; }
  .brand img { height: 40px; }
  .header-inner { gap: 0.75rem; }
  .header-actions { gap: 0.5rem; }
  .header-actions .btn { padding: 0.55rem 0.85rem; font-size: 0.85rem; }
  #map { height: 360px; }
  .location-grid .map-frame,
  .location-grid .map-embed { height: auto; }
  .location-grid .map-embed #map { height: 360px; min-height: 360px; }
  .map-embed--tall #map { height: 420px; }
  .map-opacity input[type="range"] { width: 80px; }
  .property-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand img { height: 30px; }
  .header-actions .btn { font-size: 0.8rem; padding: 0.5rem 0.7rem; }
  .header-actions .btn svg { display: none; }
  .nav-toggle { width: 44px; height: 44px; }
}

/* 12e. Property detail pages -------------------------------------------------- */
.section--pd-top { padding-block: 0.85rem 1.25rem; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-tiny);
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--color-heading); font-weight: 600; }
.pd-head h1 { margin-bottom: 0.3em; }
.pd-price {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0.5rem 0 0;
}
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 1.25rem;
}
.pd-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pd-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: #e9ecee; }
.pd-thumb { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: #e9ecee; }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pd-note { font-size: var(--fs-tiny); color: var(--color-muted); margin-top: 0.7rem; }
.pd-aside { position: sticky; top: 96px; }
.pd-aside .card { gap: 0.35rem; }
.pd-aside .pm-price { font-size: 1.9rem; }
.pd-aside ul {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.3rem;
  display: grid;
  gap: 0.55rem;
  font-size: var(--fs-small);
  color: var(--color-muted);
}
.pd-aside ul li { display: flex; gap: 0.5em; align-items: center; }
.pd-aside ul svg { color: var(--color-primary); flex: none; }
.pd-aside .btn { width: 100%; }
.pd-section { margin-top: 2.4rem; }
@media (max-width: 1024px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-aside { position: static; }
}

/* Related listings on detail pages — 3 cols desktop, stacks on small screens */
.property-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .property-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .property-grid--related { grid-template-columns: 1fr; }
}

/* 12f. Property gallery slider ------------------------------------------------ */
.pd-slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #e9ecee;
}
.pd-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  margin: 0;
}
.pd-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-heading);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.pd-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.pd-nav--prev { left: 12px; }
.pd-nav--next { right: 12px; }
.pd-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.pd-dots button {
  width: 24px;
  height: 24px;
  padding: 8px;
  background-clip: content-box;
  border-radius: 50%;
  border: 0;
  background-color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pd-dots button.is-active { background-color: #fff; transform: scale(1.15); }

/* Section flow helpers — tight boundary between Area Overview and Featured Properties */
.section--tight-b { padding-bottom: 0.5rem; }
.section--tight-t { padding-top: 1.25rem; }

/* 20. Buyer guide — Area Overview (house-for-sale.html #guide) ---------------- */
.guide-wrap { display: grid; gap: clamp(1.5rem, 3.5vw, 2.25rem); }
.guide-lead { font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.14rem); line-height: 1.75; color: var(--color-text); max-width: 62ch; margin: 0; }
.guide-intro { align-items: stretch; }
.guide-quote {
  margin: 0;
  padding: 1.6rem 1.6rem 1.4rem;
  background: linear-gradient(135deg, #131b21 0%, #0a3a52 55%, #0b6390 100%);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.guide-quote p { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; color: #fff; margin: 0 0 0.4rem; max-width: none; }
.guide-quote small { display: block; color: rgba(255,255,255,0.72); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.1rem; }
.guide-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.75rem; margin: 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.14); }
.guide-facts div { margin: 0; }
.guide-facts dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.guide-facts dd { margin: 0.2rem 0 0; font-weight: 600; font-size: 0.9rem; color: #fff; line-height: 1.45; }
.guide-phases .phase-card p { font-size: 0.9688rem; line-height: 1.75; color: var(--color-text); }
.phase-best { background: var(--color-primary-soft); border-radius: 0 0 var(--radius-md) var(--radius-md); margin: 0; }
.phase-best strong { color: var(--color-primary-dark); }
/* Designed content blocks — one consistent card system for the lower half */
.guide-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.4rem;
  overflow: clip;
}
.guide-block--tint { background: linear-gradient(180deg, #f2f7fb 0%, #ffffff 90%); }
.guide-block .eyebrow { margin-bottom: 0; }
.guide-block > h3 { margin: 0; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem); letter-spacing: -0.02em; max-width: 28ch; text-wrap: balance; }
.guide-standfirst { margin: 0; max-width: 68ch; color: var(--color-muted); font-size: 1rem; line-height: 1.7; }
.guide-prose p { margin: 0; max-width: 65ch; font-size: 0.99rem; line-height: 1.85; color: var(--color-text); }
.guide-prose p + p { margin-top: 1em; }
.guide-prose--single p { max-width: 75ch; }
.guide-split { align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.guide-split--bands, .guide-split--steps { align-items: start; }
.guide-media { margin: 0; display: flex; flex-direction: column; min-height: 100%; }
.guide-media img {
  flex: 1 1 auto;
  width: 100%;
  min-height: clamp(280px, 32vw, 420px);
  object-fit: cover;
  border: 5px solid #fff;
  outline: 1px solid rgba(6, 120, 168, 0.12);
  outline-offset: -1px;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 55px rgba(24, 38, 48, 0.16), 0 4px 12px rgba(6, 120, 168, 0.10);
  filter: saturate(1.04);
}
.guide-media figcaption { margin-top: 0.7rem; font-size: var(--fs-tiny); color: var(--color-muted); }
/* Native-resolution sources (400px) — never upscale, no forced tall crop */
.guide-media--native { max-width: 440px; width: 100%; justify-self: center; }
.guide-media--native img { min-height: 0; aspect-ratio: 4 / 3; max-height: 330px; }
.guide-media--round img { min-height: 0; aspect-ratio: 16 / 10; }
.guide-media--sticky { position: sticky; top: 96px; align-self: start; }
.guide-block .route-list { grid-template-columns: 1fr; margin-top: 1.25rem; }
.guide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.guide-cols p { font-size: 0.96rem; line-height: 1.85; margin: 0; max-width: none; color: var(--color-text); }
.guide-stat { padding: 1.3rem 1.25rem; gap: 0.35rem; }
.guide-stat h4 { margin: 0; font-size: 1rem; color: var(--color-heading); }
.guide-stat p { font-size: 0.85rem; }
.guide-why { margin-top: 1.25rem; }
.guide-chips { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.9rem; margin: 0; padding: 0; }
.guide-chips li { background: var(--color-primary-soft); border: 1px solid rgba(6,120,168,0.16); border-radius: var(--radius-md); padding: 0.9rem 1.1rem; }
.guide-chips strong { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary-dark); }
.guide-chips span { font-weight: 600; color: var(--color-heading); font-size: 1.02rem; }
.guide-smart-cards { grid-template-columns: 1fr; gap: 0.9rem; margin-bottom: 0; }
.guide-steps { display: grid; gap: 0.9rem; }
.guide-steps .check-card h3 { font-size: 1.02rem; }
.guide-steps .check-card p { font-size: 0.94rem; line-height: 1.8; }
.guide-cond .property-card { padding: 0; overflow: hidden; }
.guide-cond .property-body { gap: 0.4rem; }
.guide-faq-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.guide-faq-side { display: grid; gap: 1rem; position: sticky; top: 96px; }
.guide-cta-mini { gap: 0.5rem; }
.guide-cta-mini h4 { margin: 0; color: var(--color-heading); font-size: 1.05rem; }
.guide-cta-mini p { font-size: 0.9rem; }
.guide-cta-mini .btn { width: 100%; margin-top: 0.4rem; }
#guide .faq-list { max-width: none; margin: 0; }
#guide .disclaimer { margin: 0; }
@media (max-width: 1024px) {
  .guide-cols { grid-template-columns: 1fr; }
  .guide-chips { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .guide-faq-grid { grid-template-columns: 1fr; }
  .guide-faq-side { position: static; }
  .guide-media--sticky { position: static; }
  .guide-split { grid-template-columns: 1fr; }
  .guide-split .split-media { order: -1; max-width: 620px; }
}
@media (max-width: 700px) {
  .guide-intro { grid-template-columns: 1fr; }
  .guide-facts { grid-template-columns: 1fr 1fr; }
  .guide-chips { grid-template-columns: 1fr 1fr; }
  .guide-block { padding: 1.25rem; border-radius: var(--radius-md); }
}

/* 21. Site-wide responsive hardening (mobile / tablet / desktop QA) -------- */
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
.price-table th, .price-table td { overflow-wrap: break-word; }
.property-grid > *, .grid > * { min-width: 0; }
.property-body h3, .card h3, .pm-spec b { overflow-wrap: break-word; }
.property-price { max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 700px) {
  .grid--4 { grid-template-columns: 1fr; }
  .rent-commute, .rent-bands { grid-template-columns: 1fr; }
  .pm-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero-stats { grid-template-columns: 1fr; gap: 1rem; max-width: none; }
  .page-hero-stats div { padding-left: 0; border-left: 0; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .page-hero-stats div:first-child { padding-top: 0; border-top: 0; }
  .hero .btn, .page-hero-copy .btn { width: 100%; text-align: center; padding: 0.95rem 1.25rem; }
  /* Hero eyebrow pills: smaller text, room to wrap, dot never overlaps */
  .hero-copy .eyebrow, .page-hero-copy .eyebrow, .page-hero--center .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.85rem;
    line-height: 1.5;
    max-width: 100%;
  }
  .hero-copy .eyebrow::before, .page-hero-copy .eyebrow::before, .page-hero--center .eyebrow::before {
    flex: none;
    align-self: center;
  }
  /* Floating hero cards become stacked rows under the image: no overlap possible */
  .hero-media { display: flex; flex-direction: column; gap: 0.75rem; }
  .hero-chip, .hero-badge {
    position: static;
    max-width: none;
    width: 100%;
    margin: 0;
    font-size: 0.85rem;
    overflow-wrap: break-word;
  }
  .hero-badge.float-soft { animation: none; }
  .route em { float: none; display: block; margin-top: 0.15rem; }
}

@media (max-width: 420px) {
  .guide-chips { grid-template-columns: 1fr; }
  .guide-facts { grid-template-columns: 1fr; }
}

/* 22. Map + contact hero backdrops (distinct per page) ---------------------- */
.page-hero--rent {
  background:
    radial-gradient(46% 70% at 10% 10%, rgba(45, 212, 191, 0.22) 0%, transparent 60%),
    radial-gradient(40% 65% at 96% 100%, rgba(0, 175, 239, 0.24) 0%, transparent 60%),
    linear-gradient(125deg, #0e1a24 0%, #0b3d5c 55%, #0c6d99 100%);
}
.page-hero--plot {
  background:
    radial-gradient(50% 75% at 50% 0%, rgba(0, 175, 239, 0.30) 0%, transparent 60%),
    radial-gradient(40% 60% at 50% 110%, rgba(236, 38, 143, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0d141b 0%, #0c354e 60%, #0d5d85 100%);
}
.page-hero--map {
  background:
    radial-gradient(46% 70% at 12% 8%, rgba(45, 212, 191, 0.20) 0%, transparent 60%),
    radial-gradient(40% 65% at 96% 100%, rgba(0, 175, 239, 0.22) 0%, transparent 60%),
    linear-gradient(135deg, #0b222c 0%, #0a3a52 55%, #0d6d94 100%);
}
.page-hero--map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/street.webp") right center / min(58%, 720px) auto no-repeat;
  opacity: 0.14;
  mask-image: linear-gradient(90deg, transparent 20%, #000 65%),
    linear-gradient(0deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 65%),
    linear-gradient(0deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  pointer-events: none;
}
.page-hero--contact {
  background:
    radial-gradient(46% 70% at 88% 12%, rgba(236, 38, 143, 0.14) 0%, transparent 60%),
    radial-gradient(40% 65% at 4% 100%, rgba(0, 175, 239, 0.20) 0%, transparent 60%),
    linear-gradient(100deg, #15131a 0%, #233246 55%, #0a3a52 120%);
}
.page-hero--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/about-aerial.jpeg") right center / min(58%, 720px) auto no-repeat;
  opacity: 0.14;
  mask-image: linear-gradient(90deg, transparent 20%, #000 65%),
    linear-gradient(0deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 65%),
    linear-gradient(0deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  pointer-events: none;
}

/* 23. Hero safe-area + header rhythm (all heroes) --------------------------- */
.hero, .page-hero {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.site-header {
  padding-top: env(safe-area-inset-top);
}
