/* ============================================================
   K&L Covenant Marketing — My Home My Covenant
   Design system: "The Plat" — survey-line motif drawn from the
   K&L logo (lot lines in a square). Ivory paper, warm ink,
   brand gold as highlighter, deep slate-teal for dark sections.
   ============================================================ */

:root {
  --ink: #17150f;
  --ink-soft: #3d3a30;
  --ink-mute: #6d6858;
  --paper: #fdfbf5;
  --paper-warm: #f6efe0;
  --gold: #ffd900;
  --gold-deep: #a8861d;
  --gold-dim: #d9bc4d;
  --teal: #1d4652;
  --teal-ink: #122f38;
  --slate: #455a64;
  --line: rgba(23, 21, 15, 0.14);
  --line-gold: rgba(168, 134, 29, 0.35);
  --white: #ffffff;
  --shadow-1: 0 1px 2px rgba(23, 21, 15, 0.06), 0 4px 14px rgba(23, 21, 15, 0.07);
  --shadow-2: 0 2px 6px rgba(23, 21, 15, 0.08), 0 18px 44px rgba(23, 21, 15, 0.14);
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Open Sans", "Segoe UI", -apple-system, sans-serif;
  --wrap: 1200px;
  --wrap-wide: 1360px;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

::selection { background: var(--gold); color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3,
.display-xl, .display-lg, .display-md, .display-sm {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
.display-lg { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.display-md { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
.display-sm { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 58ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold);
  box-shadow: 0 3px 0 rgba(168, 134, 29, 0.4);
}
.serif-i { font-family: var(--font-display); font-style: italic; font-weight: 500; }

/* Gold marker highlight — the brand's #FFD900 used as a highlighter stroke */
.hl {
  background-image: linear-gradient(to top, transparent 8%, var(--gold) 8%, var(--gold) 44%, transparent 44%);
  padding-inline: 0.06em;
}
.on-dark .hl, .hl-dark {
  background-image: linear-gradient(to top, transparent 8%, rgba(255, 217, 0, 0.32) 8%, rgba(255, 217, 0, 0.32) 46%, transparent 46%);
}

.num { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap-wide { width: min(var(--wrap-wide), 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 118px); }
.section-tight { padding-block: clamp(44px, 6vw, 76px); }
.section-head { max-width: 720px; margin-bottom: clamp(30px, 5vw, 56px); }
.section-head .display-lg { margin: 14px 0 16px; }

/* Plat divider — survey line with lot-corner ticks */
.plat-divider { border: none; height: 26px; margin: 0 auto; width: min(var(--wrap), 100% - 48px); position: relative; }
.plat-divider::before {
  content: ""; position: absolute; inset-inline: 0; top: 13px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-gold) 0 14px, transparent 14px 22px);
}
.plat-divider::after {
  content: "✛"; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  color: var(--gold-deep); font-size: 13px; line-height: 26px; background: var(--paper); padding-inline: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover { background: var(--teal-ink); border-color: var(--teal-ink); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffe23d; border-color: #ffe23d; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn-ghost { color: var(--paper); border-color: rgba(253, 251, 245, 0.55); }
.on-dark .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.link-more {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.link-more:hover { color: var(--gold-deep); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--gold); color: var(--ink);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
}
.topbar .wrap-wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar a { text-decoration: none; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }
.topbar .promo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 251, 245, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(23, 21, 15, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-text .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: 0.01em; }
.brand-text .brand-sub { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-mute); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--ink-soft); border-radius: 8px; position: relative;
}
.main-nav a:hover { color: var(--ink); background: rgba(255, 217, 0, 0.18); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; background: var(--gold);
}
.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 10px; background: none; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.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); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; background: var(--paper); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 104px);
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 18px 0 20px; font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
.hero-copy .lede { margin-bottom: 34px; }
.hero-media { position: relative; }
.hero-media .frame {
  aspect-ratio: 10 / 11; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-2); position: relative;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-media::before {
  content: ""; position: absolute; inset: -22px 44px auto -22px; height: 78%;
  border: 1.5px solid var(--line-gold); border-radius: 16px; z-index: 0;
}
.hero-media .badge-float {
  position: absolute; left: -18px; bottom: 34px; z-index: 3;
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 16px 20px;
  box-shadow: var(--shadow-2); max-width: 260px;
}
.hero-media .badge-float .amt { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.hero-media .badge-float .lbl { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }

/* Plat-line backdrop (logo-derived motif) */
.plat-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; color: var(--gold-deep); opacity: 0.35; }

/* Quick search */
.quick-search {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; box-shadow: var(--shadow-1); max-width: 660px;
}
.quick-search label { display: block; }
.quick-search .f-lbl { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); padding-left: 12px; }
.quick-search select {
  width: 100%; border: none; background: transparent; padding: 4px 8px 2px 12px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2317150f' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.quick-search .qs-field { border-right: 1px dashed var(--line); }
.quick-search .qs-field:nth-child(3) { border-right: none; }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--ink); color: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(26px, 3.5vw, 44px) 22px; border-left: 1px solid rgba(253, 251, 245, 0.12); }
.stat:first-child { border-left: none; }
.stat .v { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.9rem); color: var(--gold); line-height: 1; }
.stat .v sup { font-size: 0.5em; }
.stat .k { margin-top: 8px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.72; }

/* ---------- Development cards (editorial) ---------- */
.dev-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.6vw, 30px); }
.dev-card {
  grid-column: span 4; position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  text-decoration: none; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.dev-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.dev-card.featured { grid-column: span 8; }
.dev-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.dev-card.featured .media { aspect-ratio: 16 / 8.4; }
.dev-card .media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%;
  transition: transform 0.6s var(--ease);
}
.dev-card:hover .media img { transform: scale(1.045); }
.dev-card .status {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--gold); color: var(--ink); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.dev-card .status.rfo { background: var(--paper); }
.dev-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dev-card .loc { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.dev-card h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
.dev-card .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.88rem; color: var(--ink-mute); }
.dev-card .price-row { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; gap: 8px; border-top: 1px dashed var(--line); }
.dev-card .price-row .m { font-family: var(--font-display); font-size: 1.35rem; }
.dev-card .price-row .cap { font-size: 0.78rem; color: var(--ink-mute); }

.dev-card.related { grid-column: span 3; }
.dev-card.related h3 { font-size: 1.15rem; }
@media (max-width: 1060px) { .dev-card.related { grid-column: span 6; } }
@media (max-width: 560px) { .dev-card.related { grid-column: span 12; } }

/* ---------- Listing cards (properties grid) ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.listing-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.listing-card .media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.listing-card .media a { display: block; height: 100%; }
.listing-card .media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transition: transform 0.5s var(--ease); }
.listing-card:hover .media img { transform: scale(1.04); }
.listing-card .status {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--ink);
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; z-index: 2;
}
.listing-card .status.rfo { background: var(--white); }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(253, 251, 245, 0.92); display: grid; place-items: center;
  transition: transform 0.2s var(--ease);
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; transition: fill 0.2s, stroke 0.2s; }
.fav-btn.active svg { fill: #c8342a; stroke: #c8342a; }
.listing-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.listing-card .loc { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.listing-card h3 { font-size: 1.22rem; }
.listing-card h3 a { text-decoration: none; }
.listing-card h3 a:hover { color: var(--teal); }
.listing-card .specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.84rem; color: var(--ink-mute); }
.listing-card .specs .s { display: inline-flex; align-items: center; gap: 6px; }
.listing-card .specs svg { width: 15px; height: 15px; stroke: var(--gold-deep); fill: none; stroke-width: 1.8; }
.listing-card .price-row {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.listing-card .monthly { font-family: var(--font-display); font-size: 1.28rem; }
.listing-card .monthly small { font-family: var(--font-body); font-size: 0.72rem; color: var(--ink-mute); font-weight: 600; }
.listing-card .tcp { font-size: 0.8rem; color: var(--ink-mute); }

/* ---------- Filters ---------- */
.browse-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(22px, 3vw, 42px); align-items: start; }
.filter-rail {
  position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  max-height: calc(100vh - 120px); overflow: auto;
}
.filter-rail h2 { font-size: 1.15rem; display: flex; justify-content: space-between; align-items: baseline; }
.filter-rail .clear-all { font-size: 0.78rem; font-weight: 700; color: var(--gold-deep); background: none; border: none; cursor: pointer; text-decoration: underline; }
.f-group { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.f-group:last-child { border-bottom: none; padding-bottom: 4px; }
.f-group > .g-lbl { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.search-box { position: relative; }
.search-box input {
  width: 100%; padding: 11px 14px 11px 38px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper); font-size: 0.92rem;
}
.search-box input:focus { border-color: var(--gold-deep); outline: none; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--ink-mute); fill: none; stroke-width: 2; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.chip:hover { border-color: var(--gold-deep); }
.chip.active { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.check-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 0.92rem; }
.check-row input { width: 17px; height: 17px; accent-color: var(--gold-deep); cursor: pointer; }
.range-vals { display: flex; justify-content: space-between; font-size: 0.84rem; font-weight: 700; margin-bottom: 8px; }
.range-pair { position: relative; height: 28px; }
.range-pair input[type="range"] {
  position: absolute; inset: 0; width: 100%; appearance: none; -webkit-appearance: none;
  background: none; pointer-events: none; margin: 0; height: 28px;
}
.range-pair::before {
  content: ""; position: absolute; top: 13px; left: 0; right: 0; height: 3px;
  background: var(--line); border-radius: 2px;
}
.range-pair .range-fill { position: absolute; top: 13px; height: 3px; background: var(--gold-deep); border-radius: 2px; }
.range-pair input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 20px; height: 20px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--gold-deep); cursor: grab; margin-top: 0; position: relative; z-index: 2;
}
.range-pair input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--gold-deep); cursor: grab;
}
.browse-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.browse-toolbar .count { font-size: 0.95rem; color: var(--ink-soft); }
.browse-toolbar .count strong { font-family: var(--font-display); font-size: 1.2rem; }
.toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sort-select {
  padding: 9px 34px 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: 0.86rem; font-weight: 600; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2317150f' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.toggle-favs { display: inline-flex; align-items: center; gap: 8px; }
.toggle-favs svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.toggle-favs.active svg { fill: #c8342a; stroke: #c8342a; }
.filters-open-btn { display: none; }
.empty-state {
  text-align: center; padding: 70px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: var(--white);
}
.empty-state .display-sm { margin-bottom: 8px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filters .tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  background: rgba(255, 217, 0, 0.22); border: 1px solid var(--line-gold); border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
}
.active-filters .tag button { border: none; background: none; cursor: pointer; font-weight: 800; padding: 0 2px; }

/* ---------- Dark sections ---------- */
.on-dark { background: var(--teal-ink); color: var(--paper); position: relative; overflow: clip; }
.on-dark .eyebrow { color: var(--gold-dim); }
.on-dark .lede { color: rgba(253, 251, 245, 0.78); }
.on-dark .plat-bg { color: var(--gold); opacity: 0.14; }

/* Covenant pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 34px); }
.pillar {
  border: 1px solid rgba(253, 251, 245, 0.16); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px); background: rgba(253, 251, 245, 0.04);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.pillar:hover { border-color: var(--gold-dim); background: rgba(255, 217, 0, 0.06); transform: translateY(-4px); }
.pillar .p-mark { width: 46px; height: 46px; margin-bottom: 18px; color: var(--gold); }
.pillar h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pillar p { font-size: 0.95rem; color: rgba(253, 251, 245, 0.75); }

/* ---------- Gallery ---------- */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.masonry .g-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; border: none; padding: 0; background: var(--ink); }
.masonry .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), opacity 0.4s; }
.masonry .g-item:hover img { transform: scale(1.05); opacity: 0.88; }
.masonry .g-item .g-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(23, 21, 15, 0.72));
  color: var(--paper); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.3s;
}
.masonry .g-item:hover .g-cap { opacity: 1; }
.masonry .tall { grid-row: span 2; }
.masonry .wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(18, 16, 11, 0.94);
  display: none; align-items: center; justify-content: center; padding: 4vmin;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox .lb-cap { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--paper); font-size: 0.9rem; letter-spacing: 0.06em; }
.lightbox button {
  position: absolute; background: rgba(253, 251, 245, 0.1); color: var(--paper);
  border: 1px solid rgba(253, 251, 245, 0.3); border-radius: 50%; width: 52px; height: 52px;
  font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; transition: background 0.2s;
}
.lightbox button:hover { background: rgba(255, 217, 0, 0.25); }
.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Development page ---------- */
.dev-hero { position: relative; min-height: min(72vh, 640px); display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; }
.dev-hero .bg { position: absolute; inset: 0; }
.dev-hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.dev-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18, 24, 22, 0.9) 0%, rgba(18, 24, 22, 0.35) 45%, rgba(18, 24, 22, 0.18) 100%);
}
.dev-hero .wrap { position: relative; z-index: 2; padding-block: 44px; }
.crumbs { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 14px; opacity: 0.85; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.dev-hero .display-xl { margin-bottom: 10px; }
.dev-hero .lede { color: rgba(253, 251, 245, 0.88); }
.dev-hero .hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dev-hero .hero-tags .t {
  padding: 7px 14px; border: 1px solid rgba(253, 251, 245, 0.4); border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(18, 24, 22, 0.35); backdrop-filter: blur(4px);
}
.dev-hero .hero-tags .t.gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.specbar { background: var(--ink); color: var(--paper); }
.specbar-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.specbar .cell { padding: 22px 24px; border-left: 1px solid rgba(253, 251, 245, 0.12); }
.specbar .cell:first-child { border-left: none; }
@media (min-width: 1061px) {
  /* Align the first cell's text flush with the content column */
  .specbar .cell:first-child, .stat:first-child { padding-left: 0; }
}
.specbar .cell .v { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); }
.specbar .cell .k { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }

.dev-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(30px, 4vw, 60px); align-items: start; }
.dev-body .prose h2 { margin: 34px 0 14px; }
.dev-body .prose h2:first-child { margin-top: 0; }
.dev-body .prose p { margin-bottom: 14px; color: var(--ink-soft); }
.amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; margin: 18px 0; }
.amenity-grid li { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.amenity-grid li::before { content: "✛"; color: var(--gold-deep); font-size: 0.8rem; }

.sidebar-card {
  position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-1);
}
.sidebar-card + .sidebar-card { margin-top: 20px; }
.sidebar-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.sidebar-card .from { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 18px; }
.sidebar-card .from .amt { font-family: var(--font-display); font-size: 1.9rem; }
.sidebar-card .from .cap { font-size: 0.78rem; color: var(--ink-mute); }
.sidebar-card .btn { width: 100%; margin-top: 10px; }
.agent-row { display: flex; gap: 14px; align-items: center; padding-top: 16px; margin-top: 16px; border-top: 1px dashed var(--line); font-size: 0.86rem; }
.agent-row .avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gold);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; flex: none;
}

/* Floor plan */
.floorplan-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: clamp(16px, 3vw, 34px); overflow-x: auto; }
.floorplan-wrap svg { width: 100%; height: auto; }
.fp-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 0.82rem; color: var(--ink-mute); }
.fp-legend .l { display: inline-flex; align-items: center; gap: 7px; }
.fp-legend .swatch { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }

/* Unit table */
.unit-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.unit-table th, .unit-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.unit-table th { background: var(--ink); color: var(--paper); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.unit-table tr:last-child td { border-bottom: none; }
.unit-table tbody tr:hover { background: rgba(255, 217, 0, 0.07); }
.unit-table .num { font-weight: 700; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---------- Calculator ---------- */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.calc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(22px, 3vw, 40px); align-items: start; }
.calc .c-row { margin-bottom: 22px; }
.calc .c-row:last-child { margin-bottom: 0; }
.calc .c-lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 8px; }
.calc .c-lbl output { font-family: var(--font-display); font-size: 1.05rem; color: var(--teal); }
.calc input[type="range"] { width: 100%; accent-color: var(--gold-deep); cursor: grab; }
.calc select { width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 600; }
.calc-result { background: var(--teal-ink); color: var(--paper); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.calc-result .r-line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 0.9rem; border-bottom: 1px dashed rgba(253, 251, 245, 0.2); }
.calc-result .r-line:last-of-type { border-bottom: none; }
.calc-result .r-line .k { opacity: 0.75; }
.calc-result .big { margin: 6px 0 14px; }
.calc-result .big .amt { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.7rem); color: var(--gold); line-height: 1.1; }
.calc-result .big .cap { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.72; }
.calc-note { font-size: 0.76rem; color: var(--ink-mute); margin-top: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.contact-list { display: grid; gap: 6px; margin-top: 22px; }
.contact-list a, .contact-list .row {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 10px;
  text-decoration: none; border: 1px solid transparent; transition: background 0.2s, border-color 0.2s;
}
.contact-list a:hover { background: var(--white); border-color: var(--line); }
.contact-list .ic {
  width: 42px; height: 42px; flex: none; border-radius: 10px; background: rgba(255, 217, 0, 0.25);
  display: grid; place-items: center; color: var(--ink);
}
.contact-list .ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.contact-list .t { font-weight: 700; }
.contact-list .d { font-size: 0.88rem; color: var(--ink-mute); }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-1); }
.contact-form .f-row { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--gold-deep); outline: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: clip; }
.cta-band .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  padding: clamp(34px, 5vw, 60px); border-radius: 16px; background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
}
.cta-band .inner::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 240px; height: 240px;
  border: 1.5px solid rgba(255, 217, 0, 0.35); border-radius: 20px; transform: rotate(12deg);
}
.cta-band h2 { max-width: 22ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-ink); color: rgba(253, 251, 245, 0.82); position: relative; overflow: clip; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(26px, 4vw, 54px); padding-block: clamp(44px, 6vw, 72px); position: relative; z-index: 1; }
.site-footer h4 { color: var(--paper); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 800; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links li { padding: 5px 0; font-size: 0.92rem; }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--paper); }
.footer-brand p { font-size: 0.9rem; margin-top: 12px; max-width: 34ch; }
.footer-brand img { height: 52px; margin-bottom: 14px; filter: invert(1) brightness(1.6); opacity: 0.95; }
.footer-bottom { border-top: 1px solid rgba(253, 251, 245, 0.14); padding-block: 20px; font-size: 0.78rem; position: relative; z-index: 1; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-disclaimer { font-size: 0.74rem; opacity: 0.62; max-width: 72ch; margin-top: 8px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .dev-card, .dev-card.featured { grid-column: span 6; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid rgba(253, 251, 245, 0.12); }
  .stat:nth-child(-n+2) { border-top: none; }
  .specbar-grid { grid-template-columns: repeat(3, 1fr); }
  .specbar .cell:nth-child(4) { border-left: none; }
  .specbar .cell { border-top: 1px solid rgba(253, 251, 245, 0.12); }
  .specbar .cell:nth-child(-n+3) { border-top: none; }
  .dev-body { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .browse-layout { grid-template-columns: 1fr; }
  .filter-rail {
    position: fixed; inset: 0; z-index: 90; border-radius: 0; max-height: none;
    transform: translateX(-102%); transition: transform 0.35s var(--ease); overflow-y: auto; padding-bottom: 90px;
  }
  .filter-rail.open { transform: none; }
  .filters-open-btn { display: inline-flex; }
  .filter-close { display: inline-flex !important; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .frame { aspect-ratio: 16 / 10; }
  .hero-media .badge-float { left: 12px; bottom: 14px; padding: 12px 16px; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; flex-direction: column; align-items: stretch;
    background: var(--paper); width: min(340px, 86vw); padding: 90px 26px 26px;
    transform: translateX(102%); transition: transform 0.35s var(--ease);
    box-shadow: -20px 0 60px rgba(23, 21, 15, 0.18); gap: 2px;
  }
  .main-nav.open { transform: none; }
  .main-nav a { font-size: 1.05rem; padding: 14px 12px; }
  .nav-toggle { display: flex; z-index: 90; }
  .header-cta .btn { display: none; }
  .quick-search { grid-template-columns: 1fr; }
  .quick-search .qs-field { border-right: none; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
  .pillars { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .contact-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .amenity-grid { grid-template-columns: 1fr; }
  .dev-hero { min-height: 480px; }
  .topbar .phone-lbl { display: none; }
}
@media (max-width: 560px) {
  .dev-card, .dev-card.featured { grid-column: span 12; }
  .listing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .specbar-grid { grid-template-columns: 1fr 1fr; }
  .specbar .cell { border-left: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .masonry { grid-auto-rows: 130px; }
  .brand-text .brand-sub { display: none; }
}
