/* ==========================================================================
   AURELIA ESTATES — style.css
   A premium, editorial luxury real-estate design system.
   Pure CSS3 · no frameworks · no libraries.
   Palette: warm ivory, soft beige, charcoal, deep green, subtle gold.
   ========================================================================== */

/* ---------------------------------- Tokens ---------------------------------- */
:root {
  /* Color */
  --ivory:      #f7f2e9;
  --ivory-2:    #f2ecdf;
  --cream:      #ece3d1;
  --sand:       #ddcfb2;
  --ink:        #211d18;
  --ink-2:      #3c372e;
  --muted:      #756e60;
  --coal:       #171512;
  --coal-2:     #211d19;
  --forest:     #1f3a2c;
  --forest-2:   #16291f;
  --brown:      #3a2c21;
  --gold:       #b08d4f;
  --gold-2:     #c9ad77;
  --gold-3:     #8f713c;

  /* Lines & surfaces */
  --line:       rgba(33, 29, 24, .12);
  --line-2:     rgba(33, 29, 24, .24);
  --line-light: rgba(247, 242, 233, .14);
  --card:       #fffdf8;

  /* Type */
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .25s;
  --t-med: .5s;
  --t-slow: .85s;

  /* Shadow */
  --shadow-sm: 0 2px 12px rgba(23, 21, 18, .07);
  --shadow-md: 0 14px 38px rgba(23, 21, 18, .12);
  --shadow-lg: 0 30px 80px rgba(23, 21, 18, .22);

  /* Layout */
  --nav-h: 92px;
  --nav-h-scrolled: 66px;
  --radius: 6px;
  --container: 1300px;
}

/* ---------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
ul { list-style: none; }

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

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

/* ---------------------------------- Utilities ---------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 52px); }
.container-narrow { max-width: 880px; margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 52px); }

.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--cream { background: var(--cream); }
.section--ivory2 { background: var(--ivory-2); }
.section--dark { background: var(--coal); color: var(--ivory); }
.section--forest { background: var(--forest); color: var(--ivory); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 20px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .72rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-3);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold-3); }
.section-head.center .eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--gold-3); }
.section--dark .eyebrow { color: var(--gold-2); }
.section--dark .eyebrow::before, .section--dark .eyebrow::after { background: var(--gold-2); }

.h1, .h2, .h3, .h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: .002em;
  text-wrap: balance;
}
.h1 { font-size: clamp(3rem, 8vw, 6.6rem); font-weight: 500; }
.h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.h4 { font-size: 1.35rem; }

.accent-italic { font-style: italic; font-weight: 400; color: var(--gold-3); }
.section--dark .accent-italic { color: var(--gold-2); }

.lead { color: var(--muted); font-size: 1.06rem; font-weight: 300; max-width: 60ch; }
.section--dark .lead { color: rgba(247,242,233,.66); }

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 28px;
  font-size: .74rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 2px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn .arr { display: inline-flex; transition: transform var(--t-fast) var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.btn-primary { background: var(--gold); color: #14100a; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-3); border-color: var(--gold-3); color: #fff; }

.btn-dark { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-dark:hover { background: var(--forest); border-color: var(--forest); }

.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--ivory); }

.btn-light { border-color: var(--line-light); color: var(--ivory); background: transparent; }
.btn-light:hover { background: var(--ivory); color: var(--ink); }

.btn-gold-ghost { border-color: rgba(176,141,79,.55); color: var(--gold-3); }
.btn-gold-ghost:hover { background: var(--gold); color: #14100a; border-color: var(--gold); }

.btn-sm { padding: 11px 20px; font-size: .68rem; }
.btn-block { width: 100%; }

/* ---------------------------------- Header ---------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: height var(--t-med) var(--ease), background var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
  --nav-fg: var(--ivory);
}
.site-header .nav-wrap {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 52px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header.scrolled {
  height: var(--nav-h-scrolled);
  background: rgba(247, 242, 233, .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(23,21,18,.06);
  --nav-fg: var(--ink);
}
/* dark pages: keep header legible when not scrolled */
.site-header.on-dark { --nav-fg: var(--ivory); }

.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--nav-fg); transition: color var(--t-med) var(--ease); }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: #14100a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-radius: 2px; letter-spacing: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.06rem; letter-spacing: .42em; font-weight: 500; }
.brand-sub { font-size: .6rem; letter-spacing: .56em; opacity: .72; margin-top: 5px; }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav-link {
  position: relative; padding: 6px 0;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  color: var(--nav-fg); opacity: .92;
  transition: opacity var(--t-fast) var(--ease), color var(--t-med) var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { opacity: 1; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--nav-fg);
  transition: background var(--t-fast) var(--ease), color var(--t-med) var(--ease);
}
.icon-btn:hover { background: rgba(176,141,79,.16); }
.icon-btn svg { width: 19px; height: 19px; }

.fav-count {
  position: absolute; top: 1px; right: 0;
  min-width: 17px; height: 17px; padding-inline: 4px;
  display: grid; place-items: center;
  background: var(--gold); color: #14100a;
  font-size: .62rem; font-weight: 600; border-radius: 999px;
  transition: transform var(--t-fast) var(--ease);
}
.fav-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

.nav-cta { display: inline-flex; }
.nav-contact { display: inline-flex; }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px; position: relative; z-index: 1001;
  align-items: center; justify-content: center;
}
.hamburger span {
  position: absolute; left: 11px; right: 11px; height: 1.6px;
  background: var(--nav-fg);
  transition: transform .35s var(--ease), opacity .25s var(--ease), top .35s var(--ease), background var(--t-med) var(--ease);
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
.hamburger.open span { background: #f7f2e9; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform-origin: left; transform: scaleX(0);
  z-index: 1001;
}

/* ---------------------------------- Mobile drawer (left) ---------------------------------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(23, 21, 18, .5);
  opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease), visibility var(--t-med) var(--ease);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000;
  width: min(86vw, 400px);
  background: var(--ivory);
  display: flex; flex-direction: column;
  padding: 108px 40px 40px;
  transform: translateX(-102%);
  transition: transform .55s var(--ease);
  box-shadow: 24px 0 80px rgba(23,21,18,.28);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-link {
  font-family: var(--serif); font-size: 1.9rem; line-height: 1.25; padding: 8px 0;
  display: flex; align-items: baseline; gap: 18px;
  opacity: 0; transform: translateX(-26px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color var(--t-fast) var(--ease);
}
.drawer-link .idx { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; color: var(--gold-3); }
.drawer-link:hover { color: var(--gold-3); }
.drawer.open .drawer-link { opacity: 1; transform: none; }
.drawer.open .drawer-link:nth-child(1) { transition-delay: .08s; }
.drawer.open .drawer-link:nth-child(2) { transition-delay: .14s; }
.drawer.open .drawer-link:nth-child(3) { transition-delay: .20s; }
.drawer.open .drawer-link:nth-child(4) { transition-delay: .26s; }
.drawer.open .drawer-link:nth-child(5) { transition-delay: .32s; }
.drawer.open .drawer-link:nth-child(6) { transition-delay: .38s; }
.drawer.open .drawer-link:nth-child(7) { transition-delay: .44s; }
.drawer-foot { margin-top: auto; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.drawer-foot .drawer-meta { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

body.no-scroll { overflow: hidden; }

/* ---------------------------------- Search overlay ---------------------------------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(23, 21, 18, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16vh 20px 40px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med) var(--ease);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-panel {
  width: 100%; max-width: 680px; background: var(--ivory); border-radius: var(--radius);
  padding: 28px; transform: translateY(-18px); transition: transform var(--t-med) var(--ease);
  box-shadow: var(--shadow-lg); max-height: 74vh; overflow: auto;
}
.search-overlay.open .search-panel { transform: none; }
.search-panel .h4 { margin-bottom: 4px; }
.search-panel .hint { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.search-input {
  width: 100%; padding: 15px 18px; border: 1px solid var(--line-2); border-radius: 2px;
  background: #fff; font-size: 1rem;
}
.search-input:focus { outline: none; border-color: var(--gold-3); box-shadow: 0 0 0 3px rgba(176,141,79,.16); }
.search-results { margin-top: 18px; display: flex; flex-direction: column; }
.search-result {
  display: flex; align-items: center; gap: 16px; padding: 13px 10px;
  border-bottom: 1px solid var(--line); transition: background var(--t-fast) var(--ease);
}
.search-result:hover { background: var(--ivory-2); }
.search-result img { width: 66px; height: 50px; object-fit: cover; border-radius: 3px; }
.search-result .sr-name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
.search-result .sr-meta { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
.search-result .sr-price { margin-left: auto; color: var(--gold-3); font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; }
.search-empty { padding: 22px 10px; color: var(--muted); font-size: .95rem; }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer { background: var(--coal); color: rgba(247,242,233,.78); padding-top: clamp(64px, 9vw, 110px); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 64px; border-bottom: 1px solid var(--line-light);
}
.footer-brand p { margin-top: 20px; font-size: .95rem; max-width: 34ch; color: rgba(247,242,233,.6); }
.footer-col h5 {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2);
  margin-bottom: 22px; font-weight: 500;
}
.footer-col a { display: block; padding: 5px 0; font-size: .95rem; color: rgba(247,242,233,.72); transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--gold-2); transform: translateX(3px); }
.footer-news p { font-size: .92rem; color: rgba(247,242,233,.6); margin-bottom: 18px; }
.news-form { display: flex; border: 1px solid var(--line-light); border-radius: 2px; overflow: hidden; }
.news-form input { flex: 1; background: transparent; border: none; padding: 14px 16px; color: var(--ivory); font-size: .92rem; min-width: 0; }
.news-form input:focus { outline: none; }
.news-form button { background: var(--gold); color: #14100a; padding: 0 20px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; transition: background var(--t-fast) var(--ease); }
.news-form button:hover { background: var(--gold-3); color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-block: 26px; font-size: .8rem; color: rgba(247,242,233,.5);
}
.footer-bottom .legal { display: flex; gap: 22px; }
.footer-bottom .legal a:hover { color: var(--gold-2); }
.footer-credit { font-family: var(--serif); font-size: 1.05rem; color: rgba(247,242,233,.55); letter-spacing: .02em; }

/* ---------------------------------- Forms ---------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.field label .req { color: var(--gold-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 2px;
  background: #fff; color: var(--ink); font-size: .98rem; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-3); box-shadow: 0 0 0 3px rgba(176,141,79,.14); }
.field.error input, .field.error select, .field.error textarea { border-color: #b4452f; }
.field .err-msg { font-size: .78rem; color: #b4452f; min-height: 0; display: none; }
.field.error .err-msg { display: block; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 12px; }
.form-success {
  display: none; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 34px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.form-success.show { display: flex; animation: riseIn .6s var(--ease); }
.form-success .tick {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest); color: var(--gold-2);
}
.form-success .tick svg { width: 26px; height: 26px; }
.form-success h4 { font-family: var(--serif); font-size: 1.5rem; }
.form-success p { color: var(--muted); font-size: .92rem; max-width: 40ch; }

/* ---------------------------------- Reveal animations ---------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   HOME — HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--ivory);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,14,11,.5) 0%, rgba(16,14,11,.18) 42%, rgba(16,14,11,.62) 100%);
}
.hero-inner { width: 100%; padding-top: var(--nav-h); padding-bottom: 40px; }
.hero-copy { max-width: 820px; }
.hero-copy .eyebrow { color: var(--gold-2); }
.hero-copy .eyebrow::before { background: var(--gold-2); }
.hero h1 { margin: 22px 0 26px; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.hero-copy .lead { color: rgba(247,242,233,.86); font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

.hero-card {
  position: absolute; right: clamp(20px, 5vw, 64px); bottom: clamp(88px, 12vh, 140px);
  width: 320px; max-width: calc(100vw - 40px);
  background: rgba(23,21,18,.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(247,242,233,.16); border-radius: var(--radius);
  padding: 24px 26px; color: var(--ivory);
  box-shadow: var(--shadow-lg);
}
.hero-card .hc-status { font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); }
.hero-card h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin: 6px 0 2px; }
.hero-card .hc-loc { font-size: .82rem; color: rgba(247,242,233,.7); letter-spacing: .06em; }
.hero-card .hc-price { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-2); margin: 12px 0 8px; }
.hero-card .hc-meta { display: flex; gap: 16px; font-size: .8rem; color: rgba(247,242,233,.85); letter-spacing: .04em; }
.hero-card .hc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.hero-card .hc-link .arr { transition: transform var(--t-fast) var(--ease); }
.hero-card:hover .hc-link .arr { transform: translateX(5px); }

.hero-scroll { position: absolute; left: clamp(20px, 5vw, 64px); bottom: 34px; display: inline-flex; align-items: center; gap: 12px; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(247,242,233,.66); }
.hero-scroll::before { content: ''; width: 1px; height: 46px; background: linear-gradient(180deg, var(--gold-2), transparent); }
.hero-scroll span { display: block; }

/* ---------------------------------- Search dock ---------------------------------- */
.search-dock-wrap { position: relative; z-index: 5; margin-top: -58px; }
.search-dock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 26px 28px;
  display: grid; grid-template-columns: 1.15fr 1.2fr 1.1fr 1fr 1fr auto; gap: 14px; align-items: end;
}
.search-dock .field label { color: var(--muted); }
.search-dock .field select, .search-dock .field input {
  background: var(--ivory-2); border-color: transparent; font-size: .92rem;
}
.search-dock .btn { padding: 15px 24px; }

/* ---------------------------------- Property cards ---------------------------------- */
.grid-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card-p {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card-p:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-p .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.card-p .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card-p:hover .media img { transform: scale(1.07); }
.card-p .badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 6px 12px; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(23,21,18,.72); color: #fff; border-radius: 2px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card-p .badge.rent { background: rgba(31,58,44,.82); }
.card-p .fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: grid; place-items: center;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.card-p .fav:hover { transform: scale(1.1); }
.card-p .fav svg { width: 18px; height: 18px; stroke: var(--ink); fill: transparent; transition: fill var(--t-fast) var(--ease), stroke var(--t-fast) var(--ease); }
.card-p .fav.active svg { fill: var(--gold-3); stroke: var(--gold-3); }
.card-p .fav.pop svg { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.5); } }

.card-p .body { padding: 20px 22px 22px; }
.card-p .p-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-p .p-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.1; }
.card-p .p-loc { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); letter-spacing: .04em; margin-top: 5px; }
.card-p .p-loc svg { width: 13px; height: 13px; stroke: var(--gold-3); }
.card-p .p-price { font-family: var(--serif); font-size: 1.28rem; color: var(--gold-3); white-space: nowrap; }
.card-p .p-price .per { font-family: var(--sans); font-size: .7rem; color: var(--muted); letter-spacing: .06em; }
.card-p .p-meta { display: flex; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); }
.card-p .p-meta span { display: inline-flex; align-items: center; gap: 7px; }
.card-p .p-meta svg { width: 15px; height: 15px; stroke: var(--gold-3); }
.card-p .p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.card-p .p-view { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.card-p .p-view .arr { transition: transform var(--t-fast) var(--ease); color: var(--gold-3); }
.card-p:hover .p-view .arr { transform: translateX(5px); }
.card-p .p-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.card-p:hover .p-arrow { background: var(--ink); color: var(--ivory); transform: translateX(3px); }
.card-p .p-arrow svg { width: 16px; height: 16px; }

.section-cta { text-align: center; margin-top: clamp(40px, 6vw, 64px); }

/* ---------------------------------- Categories ---------------------------------- */
.grid-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card { position: relative; aspect-ratio: 3 / 4.2; border-radius: var(--radius); overflow: hidden; display: block; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,14,11,0) 30%, rgba(16,14,11,.78) 100%);
  transition: background var(--t-med) var(--ease);
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card:hover::after { background: linear-gradient(180deg, rgba(16,14,11,.1) 20%, rgba(16,14,11,.88) 100%); }
.cat-card .cat-body { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; color: #fff; transform: translateY(6px); transition: transform var(--t-med) var(--ease); }
.cat-card:hover .cat-body { transform: translateY(0); }
.cat-card .cat-count { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); }
.cat-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin-top: 4px; }
.cat-card .cat-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.cat-card:hover .cat-go { opacity: 1; transform: none; }
.cat-card .cat-go .arr { transition: transform var(--t-fast) var(--ease); }
.cat-card:hover .cat-go .arr { transform: translateX(5px); }

/* ---------------------------------- About / stats ---------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-media { position: relative; }
.about-media .am-main { width: 82%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media .am-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-media .am-float {
  position: absolute; right: 0; bottom: -8%; width: 46%;
  border-radius: var(--radius); overflow: hidden; border: 8px solid var(--ivory);
  box-shadow: var(--shadow-md);
}
.about-media .am-float img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-media .am-badge {
  position: absolute; top: -22px; left: -22px;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--forest); color: var(--gold-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-family: var(--serif); box-shadow: var(--shadow-md);
}
.about-media .am-badge b { font-size: 1.9rem; font-weight: 600; line-height: 1; }
.about-media .am-badge small { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }

.about-copy .lead { margin: 20px 0 26px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 20px; margin-top: 40px; }
.stat { border-left: 1px solid var(--line-2); padding-left: 18px; }
.stat .stat-num { font-family: var(--serif); font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 500; line-height: 1; color: var(--ink); }
.stat .stat-num .plus { color: var(--gold-3); }
.stat .stat-label { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------------------------------- Lifestyle ---------------------------------- */
.lifestyle { position: relative; overflow: hidden; }
.lifestyle-media { position: absolute; inset: 0; }
.lifestyle-media img { width: 100%; height: 100%; object-fit: cover; }
.lifestyle-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,14,11,.82) 0%, rgba(16,14,11,.45) 55%, rgba(16,14,11,.25) 100%); }
.lifestyle-inner { position: relative; color: var(--ivory); padding-block: clamp(120px, 16vw, 220px); }
.lifestyle-inner .h2 { max-width: 16ch; }
.lifestyle-inner .lead { color: rgba(247,242,233,.78); margin-top: 20px; }
.lifestyle-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.feat-card {
  background: rgba(247,242,233,.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(247,242,233,.16); border-radius: var(--radius);
  padding: 26px 24px; transition: background var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.feat-card:hover { background: rgba(247,242,233,.14); transform: translateY(-6px); }
.feat-card svg { width: 30px; height: 30px; stroke: var(--gold-2); margin-bottom: 16px; }
.feat-card h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.feat-card p { font-size: .86rem; color: rgba(247,242,233,.66); margin-top: 6px; }

/* ---------------------------------- Destinations ---------------------------------- */
.grid-dest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dest-card { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; display: block; }
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.dest-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,14,11,0) 42%, rgba(16,14,11,.82) 100%); transition: background var(--t-med) var(--ease); }
.dest-card:hover img { transform: scale(1.08); }
.dest-body { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dest-body h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.dest-body .dest-sub { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin-top: 6px; }
.dest-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(247,242,233,.4); display: grid; place-items: center; flex: 0 0 auto; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.dest-arrow svg { width: 17px; height: 17px; }
.dest-card:hover .dest-arrow { background: var(--gold); border-color: var(--gold); color: #14100a; transform: translateX(4px); }

/* ---------------------------------- Services ---------------------------------- */
.grid-services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.service-card {
  grid-column: span 2; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; min-height: 250px; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.service-card:nth-child(3), .service-card:nth-child(4) { grid-column: span 3; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card .s-num { position: absolute; top: 26px; right: 28px; font-family: var(--serif); font-size: 2.4rem; color: var(--cream); line-height: 1; }
.service-card svg { width: 30px; height: 30px; stroke: var(--gold-3); margin-bottom: 22px; }
.service-card h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.service-card p { font-size: .92rem; color: var(--muted); margin-top: 10px; }
.service-card .s-link { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-3); }
.service-card .s-link .arr { transition: transform var(--t-fast) var(--ease); }
.service-card:hover .s-link .arr { transform: translateX(5px); }

/* ---------------------------------- How it works ---------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.steps::before { content: ''; position: absolute; top: 26px; left: 6%; right: 6%; height: 1px; background: var(--line-2); }
.step { position: relative; padding-top: 78px; }
.step .step-dot {
  position: absolute; top: 0; left: 0;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.05rem; color: var(--gold-3);
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.step.active .step-dot { background: var(--gold); color: #14100a; border-color: var(--gold); }
.step h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.step .step-idx { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-3); display: block; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--muted); margin-top: 8px; }
.steps-progress { position: absolute; top: 26px; left: 6%; height: 1px; background: var(--gold); width: 0; transition: width .4s linear; }

/* ---------------------------------- Case study ---------------------------------- */
.case-study { position: relative; color: var(--ivory); overflow: hidden; }
.case-media { position: absolute; inset: 0; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,14,11,.78) 0%, rgba(16,14,11,.28) 70%); }
.case-inner { position: relative; padding-block: clamp(120px, 18vw, 240px); max-width: 620px; }
.case-inner .eyebrow { color: var(--gold-2); }
.case-inner .eyebrow::before { background: var(--gold-2); }
.case-inner h2 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); margin: 20px 0 8px; }
.case-inner .case-loc { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(247,242,233,.78); }
.case-inner .case-price { font-family: var(--serif); font-size: 2rem; color: var(--gold-2); margin: 18px 0; }
.case-inner .case-meta { display: flex; gap: 22px; font-size: .9rem; color: rgba(247,242,233,.9); margin-bottom: 30px; }
.case-inner .case-meta span { display: inline-flex; align-items: center; gap: 8px; }
.case-inner .case-meta svg { width: 16px; height: 16px; stroke: var(--gold-2); }

/* ---------------------------------- Testimonials ---------------------------------- */
.testi-wrap { position: relative; max-width: 860px; margin-inline: auto; text-align: center; }
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; transition: transform .65s var(--ease); }
.testi-slide { flex: 0 0 100%; padding: 8px 20px; }
.testi-quote { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 500; line-height: 1.35; font-style: italic; }
.testi-mark { font-family: var(--serif); font-size: 5rem; line-height: .4; color: var(--gold-2); display: block; margin-bottom: 30px; }
.testi-person { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 34px; }
.testi-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-2); }
.testi-person .t-name { font-weight: 500; text-align: left; }
.testi-person .t-role { font-size: .8rem; color: var(--muted); }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 38px; }
.testi-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.testi-arrow:hover { background: var(--ink); color: var(--ivory); }
.testi-arrow svg { width: 18px; height: 18px; }
.testi-dots { display: flex; gap: 8px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); transition: background var(--t-fast) var(--ease), width var(--t-fast) var(--ease); }
.testi-dots button.active { background: var(--gold); width: 26px; border-radius: 99px; }

/* ==========================================================================
   INNER PAGE HERO
   ========================================================================== */
.page-hero { position: relative; color: var(--ivory); padding-top: calc(var(--nav-h) + clamp(60px, 10vw, 120px)); padding-bottom: clamp(60px, 9vw, 110px); overflow: hidden; }
.page-hero .ph-media { position: absolute; inset: 0; z-index: -2; }
.page-hero .ph-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .ph-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,14,11,.62), rgba(16,14,11,.5)); }
.page-hero h1 { max-width: 18ch; margin: 18px 0 18px; }
.page-hero .lead { color: rgba(247,242,233,.82); }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(247,242,233,.66); }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .sep { color: var(--gold-2); }

/* ==========================================================================
   PROPERTIES PAGE
   ========================================================================== */
.listing-layout { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.filter-panel { position: sticky; top: calc(var(--nav-h-scrolled) + 20px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.filter-panel h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 4px; }
.filter-panel .fp-sub { font-size: .8rem; color: var(--muted); margin-bottom: 20px; }
.filter-group { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.filter-group:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.filter-group > label { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; display: block; margin-bottom: 10px; }
.filter-group select, .filter-group input { width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; font-size: .9rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 99px; font-size: .78rem; letter-spacing: .04em; color: var(--ink-2); transition: all var(--t-fast) var(--ease); }
.chip:hover { border-color: var(--gold-3); }
.chip.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.filter-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.listing-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.listing-bar .count { font-size: .86rem; color: var(--muted); }
.listing-bar .count b { color: var(--ink); font-family: var(--serif); font-size: 1.1rem; }
.listing-bar .sort-row { display: flex; align-items: center; gap: 10px; }
.listing-bar .sort-row label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.listing-bar select { padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; font-size: .88rem; }
.grid-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-list .card-p .media { aspect-ratio: 4 / 2.9; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-state svg { width: 54px; height: 54px; stroke: var(--sand); margin: 0 auto 18px; }
.empty-state h3 { font-family: var(--serif); font-size: 1.7rem; }
.empty-state p { color: var(--muted); margin: 8px 0 22px; }

/* mobile filter drawer */
.filter-drawer-btn { display: none; }
.filter-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000;
  width: min(88vw, 360px); background: var(--ivory);
  transform: translateX(-102%); transition: transform .5s var(--ease);
  padding: 92px 28px 32px; overflow-y: auto; box-shadow: 24px 0 80px rgba(23,21,18,.3);
}
.filter-drawer.open { transform: none; }
.filter-drawer .fd-close { position: absolute; top: 26px; right: 22px; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; }

/* ==========================================================================
   PROPERTY DETAIL
   ========================================================================== */
.pd-top { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 4vw, 54px); align-items: start; }
.gallery { position: relative; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.gallery-main img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; transition: opacity .4s var(--ease); }
.gallery-main .gm-badge { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 7px 14px; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; background: rgba(23,21,18,.72); color: #fff; border-radius: 2px; }
.gallery-main .gm-count { position: absolute; bottom: 18px; right: 18px; z-index: 2; padding: 7px 13px; font-size: .74rem; background: rgba(23,21,18,.62); color: #fff; border-radius: 2px; }
.gallery-main .gm-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(23,21,18,.45); color: #fff;
  display: grid; place-items: center; transition: background var(--t-fast) var(--ease);
}
.gallery-main .gm-btn:hover { background: rgba(23,21,18,.75); }
.gallery-main .gm-btn.prev { left: 16px; }
.gallery-main .gm-btn.next { right: 16px; }
.gallery-main .gm-btn svg { width: 20px; height: 20px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.gallery-thumbs button { position: relative; border-radius: 4px; overflow: hidden; border: 2px solid transparent; padding: 0; transition: border-color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.gallery-thumbs button img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-thumbs button.active { border-color: var(--gold-3); }
.gallery-thumbs button:not(.active) { opacity: .62; }
.gallery-thumbs button:hover { opacity: 1; }

.pd-info { display: flex; flex-direction: column; gap: 22px; }
.pd-title { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.pd-title .badge { display: inline-block; padding: 6px 13px; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; background: var(--forest); color: var(--gold-2); border-radius: 2px; margin-bottom: 14px; }
.pd-title h1 { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 500; line-height: 1.05; }
.pd-title .pd-loc { display: flex; align-items: center; gap: 7px; color: var(--muted); margin-top: 8px; font-size: .94rem; }
.pd-title .pd-loc svg { width: 15px; height: 15px; stroke: var(--gold-3); }
.pd-price { font-family: var(--serif); font-size: 2.1rem; color: var(--gold-3); }
.pd-price .per { font-family: var(--sans); font-size: .8rem; color: var(--muted); letter-spacing: .06em; }
.pd-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pd-fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-align: center; }
.pd-fact svg { width: 22px; height: 22px; stroke: var(--gold-3); margin: 0 auto 8px; display: block; }
.pd-fact b { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1; }
.pd-fact span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pd-desc h3, .pd-amenities h3, .enquiry-card h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 12px; }
.pd-desc p { color: var(--ink-2); }
.amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.amenity { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: .88rem; }
.amenity svg { width: 20px; height: 20px; stroke: var(--gold-3); flex: 0 0 auto; }

/* enquiry card */
.enquiry-card { position: sticky; top: calc(var(--nav-h-scrolled) + 20px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.enquiry-card .ec-agent { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--ivory-2); border-radius: var(--radius); margin-bottom: 20px; }
.enquiry-card .ec-agent img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.enquiry-card .ec-agent b { display: block; font-size: .95rem; }
.enquiry-card .ec-agent small { color: var(--muted); font-size: .78rem; }
.enquiry-card form { display: flex; flex-direction: column; gap: 14px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(12,11,9,.94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease), visibility var(--t-med) var(--ease); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; border-radius: 4px; box-shadow: var(--shadow-lg); }
.lightbox .lb-btn { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(247,242,233,.3); color: #fff; display: grid; place-items: center; transition: background var(--t-fast) var(--ease); }
.lightbox .lb-btn:hover { background: rgba(247,242,233,.14); }
.lightbox .lb-btn svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 26px; right: 26px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(247,242,233,.8); font-size: .85rem; letter-spacing: .06em; }
.lightbox .lb-count { position: absolute; top: 34px; left: 30px; color: rgba(247,242,233,.7); font-size: .8rem; letter-spacing: .2em; }

/* related */
.related { margin-top: clamp(60px, 8vw, 100px); }

/* ==========================================================================
   AGENTS
   ========================================================================== */
.grid-agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.agent-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.agent-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.agent-card .ac-media { aspect-ratio: 4 / 4.6; overflow: hidden; position: relative; }
.agent-card .ac-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.agent-card:hover .ac-media img { transform: scale(1.06); }
.agent-card .ac-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(16,14,11,.9));
  opacity: 0; transition: opacity var(--t-med) var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff;
}
.agent-card:hover .ac-overlay { opacity: 1; }
.ac-overlay .ao-row { font-size: .84rem; color: rgba(247,242,233,.86); padding: 5px 0; border-bottom: 1px solid rgba(247,242,233,.14); display: flex; justify-content: space-between; }
.ac-overlay .ao-row span:first-child { color: var(--gold-2); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.agent-card .ac-body { padding: 20px 22px; }
.agent-card .ac-body h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.agent-card .ac-body .role { color: var(--gold-3); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 3px; }
.agent-card .ac-body .spec { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.agent-card .ac-body .ac-meta { display: flex; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-2); }
.agent-card .ac-body .ac-meta b { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }

/* ==========================================================================
   SERVICES PAGE (detailed)
   ========================================================================== */
.service-det { display: grid; grid-template-columns: 300px 1fr; gap: 54px; align-items: start; padding-block: clamp(48px, 6vw, 80px); }
.service-det + .service-det { border-top: 1px solid var(--line); }
.service-det .sd-num { font-family: var(--serif); font-size: clamp(4rem, 8vw, 6.4rem); line-height: .9; color: var(--cream); font-weight: 500; }
.service-det .sd-body h2 { margin-bottom: 16px; }
.service-det .sd-body p { color: var(--ink-2); max-width: 60ch; }
.service-det .sd-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.service-det .sd-benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.service-det .sd-benefits li::before { content: '—'; color: var(--gold-3); }
.service-det .sd-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
.contact-info h2 { margin-bottom: 18px; }
.contact-info .lead { margin-bottom: 34px; }
.ci-list { display: flex; flex-direction: column; }
.ci-item { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.ci-item:last-child { border-bottom: 1px solid var(--line); }
.ci-item .ci-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--ivory-2); display: grid; place-items: center; flex: 0 0 auto; }
.ci-item .ci-ico svg { width: 20px; height: 20px; stroke: var(--gold-3); }
.ci-item b { display: block; font-size: .95rem; }
.ci-item span { color: var(--muted); font-size: .9rem; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.contact-card form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ==========================================================================
   MORTGAGE
   ========================================================================== */
.mortgage-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 70px); align-items: start; }
.calc-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.calc-field { margin-bottom: 22px; }
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.calc-field label output { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-3); letter-spacing: 0; text-transform: none; }
.calc-field input[type="range"] { width: 100%; margin-top: 12px; -webkit-appearance: none; appearance: none; height: 3px; background: var(--line-2); border-radius: 99px; }
.calc-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(23,21,18,.25); cursor: pointer; }
.calc-field input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(23,21,18,.25); cursor: pointer; }
.calc-result { background: var(--forest); color: var(--ivory); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); position: sticky; top: calc(var(--nav-h-scrolled) + 20px); }
.calc-result h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-2); }
.calc-result .cr-main { margin: 22px 0; }
.calc-result .cr-main .lbl { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(247,242,233,.6); }
.calc-result .cr-main .amount { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--gold-2); margin-top: 6px; }
.cr-rows { display: flex; flex-direction: column; }
.cr-row { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line-light); font-size: .92rem; }
.cr-row span { color: rgba(247,242,233,.66); }
.cr-row b { font-weight: 500; }
.calc-disclaimer { font-size: .76rem; color: rgba(247,242,233,.5); margin-top: 22px; line-height: 1.6; }

/* ==========================================================================
   FAVORITES
   ========================================================================== */
.fav-empty { text-align: center; padding: clamp(60px, 9vw, 110px) 20px; max-width: 560px; margin-inline: auto; }
.fav-empty .fe-ico { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; background: var(--ivory-2); display: grid; place-items: center; }
.fav-empty .fe-ico svg { width: 40px; height: 40px; stroke: var(--gold-3); }
.fav-empty h2 { margin-bottom: 12px; }
.fav-empty p { color: var(--muted); margin-bottom: 26px; }

/* ==========================================================================
   BUY / SELL / RENT PAGES
   ========================================================================== */
.pitch { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pitch-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.pitch-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.pitch h2 { margin: 16px 0; }
.pitch .lead { margin-bottom: 24px; }
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.checklist li svg { width: 20px; height: 20px; stroke: var(--gold-3); flex: 0 0 auto; margin-top: 3px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .grid-cats { grid-template-columns: repeat(3, 1fr); }
  .cat-card { aspect-ratio: 4 / 5; }
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(3), .service-card:nth-child(4) { grid-column: span 2; }
  .search-dock { grid-template-columns: repeat(3, 1fr); }
  .search-dock .btn { grid-column: span 1; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .nav-contact { display: none; }
  .hero-card { bottom: 110px; }
  .listing-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; display: none; }
  .filter-drawer-btn { display: inline-flex; }
  .grid-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-featured { grid-template-columns: repeat(2, 1fr); }
  .grid-dest { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .pitch, .mortgage-layout, .contact-grid { grid-template-columns: 1fr; }
  .lifestyle-feats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 26px; }
  .steps::before, .steps-progress { display: none; }
  .step { padding-top: 70px; }
  .pd-top { grid-template-columns: 1fr; }
  .enquiry-card { position: static; }
  .service-det { grid-template-columns: 1fr; gap: 24px; }
  .service-det .sd-num { font-size: 3.4rem; }
  .grid-agents { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 34px; }
  .hero-scroll { display: none; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 60px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-featured, .grid-dest, .grid-list, .grid-agents, .grid-cats { grid-template-columns: 1fr; }
  .grid-services, .lifestyle-feats, .steps, .service-det .sd-benefits { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(3), .service-card:nth-child(4) { grid-column: span 1; }
  .search-dock { grid-template-columns: 1fr; margin-top: -40px; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-cta { display: none; }
  .cat-card { aspect-ratio: 4 / 3.4; }
  .dest-card { aspect-ratio: 4 / 3.6; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }
  .about-media .am-badge { width: 92px; height: 92px; top: -16px; left: -12px; }
  .about-media .am-badge b { font-size: 1.5rem; }
  .testi-slide { padding: 4px 4px; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .lightbox .lb-prev { left: 10px; } .lightbox .lb-next { right: 10px; }
  .hero-copy h1 { letter-spacing: .01em; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
    transition-delay: 0s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .drawer-link { opacity: 1; transform: none; }
}

/* ---------------------------------- Header theming overrides ---------------------------------- */
.site-header .nav-contact {
  color: var(--nav-fg);
  border-color: color-mix(in srgb, var(--nav-fg) 45%, transparent);
}
.site-header .nav-contact:hover {
  background: var(--nav-fg);
  color: #14100a;
  border-color: var(--nav-fg);
}
/* keep the primary CTA and icons legible in both header states */
.site-header .icon-btn { color: var(--nav-fg); }
.brand { color: var(--nav-fg); }

/* anchor offset under fixed header */
[id] { scroll-margin-top: calc(var(--nav-h-scrolled) + 16px); }

/* form success inside dark / bordered contexts keeps light text */
.news-form + .form-success { border: 1px solid var(--line-light); background: transparent; }
.news-form + .form-success p { color: rgba(247,242,233,.6); }
