/* ==========================================================================
   RS Estates — Premium Real Estate
   Design system + components
   ========================================================================== */

:root {
  --forest: #456F32;
  --forest-deep: #2E4B25;
  --sage: #A9B99A;
  --ivory: #F8F7EF;
  --cream: #F0F0E5;
  --charcoal: #20271D;
  --grey: #74776B;
  --white: #ffffff;

  --line: rgba(32, 39, 29, 0.10);
  --line-soft: rgba(32, 39, 29, 0.06);

  --shadow-sm: 0 4px 16px rgba(32, 39, 29, 0.06);
  --shadow: 0 14px 40px rgba(32, 39, 29, 0.09);
  --shadow-lg: 0 30px 70px rgba(32, 39, 29, 0.16);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --shell: 1240px;
  --shell-wide: 1400px;

  --serif: "DM Serif Display", "Playfair Display", Georgia, serif;
  --sans: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--cream { background: var(--cream); }
.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }

/* Outer rounded "website container" feel */
.page-shell { max-width: var(--shell-wide); margin-inline: auto; }

/* ---------- Typography ---------- */
.h-xl { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.h-lg { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.h-md { font-size: clamp(1.5rem, 2.4vw, 2.15rem); }
.h-sm { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.lead { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--grey); line-height: 1.7; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--forest);
  -webkit-mask: var(--leaf) center/60% no-repeat;
  mask: var(--leaf) center/60% no-repeat;
}
.eyebrow--plain::before { display: none; }
.text-green { color: var(--forest); }
.text-sage { color: #C7D6B4; }
.muted { color: var(--grey); }

/* leaf mask asset */
:root {
  --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20 3c-7 0-12 3-14.5 8.2C3.3 15.9 6 20 11 20c1.7 0 3.2-.4 4.4-1.2l4.9 2.4-.9-4.2C21.4 14.6 22 11.5 22 8c0-2-.6-3.7-2-5Zm-3.2 8.6c-2 2-4.4 3-7.1 3.9.1-.9.5-1.7 1.2-2.4 1.6-1.6 3.3-2.7 5.2-3.4-.1.7-.2 1.4-.6 1.9Z'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform .35s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--forest-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: rgba(255,255,255,0.06);
  --btn-fg: var(--ivory);
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { --btn-bg: rgba(255,255,255,0.16); }

.btn--sage { --btn-bg: var(--sage); --btn-fg: var(--forest-deep); }
.btn--sage:hover { --btn-bg: #bacbaa; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--forest-deep);
  border-color: var(--line);
}
.btn--outline:hover { --btn-bg: var(--white); border-color: var(--forest); color: var(--forest); }

.btn--sm { padding: 10px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--forest);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { gap: 12px; color: var(--forest-deep); }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 26px; height: 26px; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.32rem; color: var(--charcoal); letter-spacing: .01em; }
.brand__sub { font-size: 0.6rem; letter-spacing: 0.34em; color: var(--grey); font-weight: 600; margin-top: 4px; }
.brand--light .brand__name { color: var(--ivory); }
.brand--light .brand__sub { color: rgba(248,247,239,0.65); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 16px 24px 4px;
  background: linear-gradient(var(--cream) 60%, rgba(240,240,229,0));
}
.site-header {
  max-width: var(--shell-wide);
  margin-inline: auto;
  background: rgba(248, 247, 239, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
}
.site-header .brand { margin-right: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--charcoal);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__link:hover { color: var(--forest); background: rgba(69,111,50,0.07); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .3s var(--ease);
}
.nav__link[aria-current="page"] { color: var(--forest); font-weight: 600; }
.nav__link[aria-current="page"]::after { width: 22px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: var(--white);
  color: var(--charcoal);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover { color: var(--forest); border-color: var(--forest); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(46, 75, 37, 0.35);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(360px, 86vw);
  background: var(--ivory);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(102%);
  transition: transform .4s var(--ease);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-nav__link {
  padding: 15px 14px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav__link[aria-current="page"] { color: var(--forest); font-weight: 600; background: rgba(69,111,50,0.07); }
.mobile-nav__cta { margin-top: auto; display: grid; gap: 10px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 8px 24px 0;
}
.hero__inner {
  position: relative;
  max-width: var(--shell-wide);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: clamp(520px, 76vh, 720px);
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(29,42,24,0.86) 0%, rgba(29,42,24,0.62) 34%, rgba(29,42,24,0.12) 66%, rgba(29,42,24,0) 88%),
    linear-gradient(to top, rgba(29,42,24,0.42), rgba(29,42,24,0) 42%);
}
.hero__content {
  position: relative;
  padding: clamp(28px, 5vw, 72px);
  max-width: 660px;
  color: var(--ivory);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-pill);
  background: rgba(248,247,239,0.14);
  border: 1px solid rgba(248,247,239,0.28);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.badge__dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--sage);
  display: grid; place-items: center;
  color: var(--forest-deep);
}
.hero__title { color: var(--ivory); margin-bottom: 20px; text-wrap: balance; }
.hero__title .text-sage { color: #CDDDBB; }
.hero__text { color: rgba(248,247,239,0.86); font-size: clamp(1rem, 1.5vw, 1.14rem); max-width: 46ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(248,247,239,0.2);
  flex-wrap: wrap;
}
.hero__stat-num { font-family: var(--serif); font-size: 1.5rem; color: var(--ivory); }
.hero__stat-label { font-size: 0.8rem; color: rgba(248,247,239,0.72); }

/* ==========================================================================
   Search panel
   ========================================================================== */
.search-wrap { padding-inline: 24px; position: relative; z-index: 30; }
.search-panel {
  max-width: min(1140px, var(--shell-wide));
  margin-inline: auto;
  margin-top: -46px;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.search-field {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background .25s var(--ease);
}
.search-field:hover { background: var(--cream); }
.search-field:focus-within { background: var(--cream); box-shadow: inset 0 0 0 2px rgba(69,111,50,0.35); }
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-field__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(69,111,50,0.1);
  color: var(--forest);
  display: grid; place-items: center;
  flex: none;
}
.search-field__body { min-width: 0; flex: 1; }
.search-field__label { font-size: 0.72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); }
.search-field select {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 2px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2374776B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 20px;
}
.search-field select:focus { outline: none; }
.search-panel__submit { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding-left: 8px; }
.search-round {
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--forest); color: var(--ivory);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.search-round:hover { background: var(--forest-deep); transform: translateY(-2px); }
.search-panel .btn { min-height: 48px; }

/* ==========================================================================
   Welcome / two-column
   ========================================================================== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.media-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.media-figure__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4.4;
}
.media-figure__img img { width: 100%; height: 100%; object-fit: cover; }
.media-badge {
  position: absolute;
  top: 20px; left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ivory);
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 8px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 0.85rem;
}
.media-badge__dot { width: 26px; height: 26px; border-radius: 50%; background: var(--forest); color: var(--ivory); display: grid; place-items: center; }
.media-leaf {
  position: absolute;
  right: -14px; bottom: -14px;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest-deep);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.welcome-copy .eyebrow { margin-bottom: 16px; }
.welcome-copy .h-lg { margin-bottom: 18px; }
.welcome-copy .lead { margin-bottom: 26px; }
.welcome-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* feature list */
.tick-list { display: grid; gap: 12px; margin: 24px 0 28px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--charcoal); }
.tick-list .icon { color: var(--forest); margin-top: 3px; }

/* ==========================================================================
   Section headings
   ========================================================================== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(34px, 5vw, 56px); }
.section-head .h-lg { margin-bottom: 14px; }
.leaf-rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; color: var(--sage); }
.leaf-rule::before, .leaf-rule::after { content: ""; height: 1px; width: 56px; background: var(--line); }
.leaf-rule .icon { color: var(--forest); }

/* ==========================================================================
   Property cards
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid > * { min-width: 0; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(248,247,239,0.94);
  color: var(--forest-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
}
.tag--rent { background: var(--forest-deep); color: var(--ivory); }
.tag--land { background: var(--sage); color: var(--forest-deep); }
.fav-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.9);
  color: var(--charcoal);
  display: grid; place-items: center;
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.fav-btn:hover { color: var(--forest); transform: scale(1.06); }
.fav-btn.is-active { color: #c0392b; }
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__price { font-family: var(--serif); font-size: 1.5rem; color: var(--forest-deep); margin-bottom: 4px; }
.card__title { font-size: 1.12rem; margin-bottom: 8px; }
.card__loc { display: flex; align-items: center; gap: 7px; color: var(--grey); font-size: 0.88rem; margin-bottom: 16px; }
.card__loc .icon { color: var(--sage); }
.card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  color: var(--grey);
  font-size: 0.85rem;
}
.card__spec { display: flex; align-items: center; gap: 7px; }
.card__spec .icon { color: var(--forest); width: 17px; height: 17px; }
.card__foot { padding: 0 20px 20px; }
.card__foot .btn { width: 100%; }
.card__foot .btn:hover { background: var(--forest-deep); }

/* ==========================================================================
   Categories
   ========================================================================== */
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(29,42,24,0.88), rgba(29,42,24,0.15) 65%, rgba(29,42,24,0)); }
.cat-card:hover img { transform: scale(1.07); }
.cat-card__body { padding: 22px; width: 100%; }
.cat-card__icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: rgba(248,247,239,0.16);
  border: 1px solid rgba(248,247,239,0.3);
  display: grid; place-items: center;
  color: var(--sage);
  margin-bottom: 14px;
}
.cat-card h3 { font-size: 1.24rem; color: var(--ivory); margin-bottom: 6px; }
.cat-card p { font-size: 0.88rem; color: rgba(248,247,239,0.82); margin-bottom: 12px; }
.cat-card .link-arrow { color: var(--sage); }
.cat-card:hover .link-arrow { gap: 12px; }

/* ==========================================================================
   Benefits
   ========================================================================== */
.benefit {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(169,185,154,0.7); }
.benefit__icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: rgba(69,111,50,0.1);
  color: var(--forest);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.benefit h3 { font-size: 1.16rem; margin-bottom: 10px; }
.benefit p { color: var(--grey); font-size: 0.94rem; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner-wrap { padding-inline: 24px; }
.cta-banner {
  position: relative;
  max-width: var(--shell-wide);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(44px, 7vw, 92px) clamp(26px, 5vw, 80px);
  text-align: center;
  color: var(--ivory);
}
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(46,75,37,0.9), rgba(46,75,37,0.66)); }
.cta-banner .h-lg { margin-bottom: 16px; }
.cta-banner p { max-width: 56ch; margin: 0 auto 28px; color: rgba(248,247,239,0.88); }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero { padding: 10px 24px 0; }
.page-hero__inner {
  position: relative;
  max-width: var(--shell-wide);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: clamp(300px, 42vh, 420px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.page-hero__inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero__inner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(29,42,24,0.86), rgba(29,42,24,0.35) 80%); }
.page-hero__content { position: relative; padding: clamp(28px, 4vw, 60px); color: var(--ivory); max-width: 720px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(248,247,239,0.74); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--ivory); }
.page-hero__content .h-xl { color: var(--ivory); margin-bottom: 12px; }
.page-hero__content p { color: rgba(248,247,239,0.86); max-width: 52ch; }

/* ==========================================================================
   Listing toolbar / filters
   ========================================================================== */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.select-mini {
  border: 1px solid var(--line);
  background: var(--ivory);
  border-radius: var(--radius-pill);
  padding: 10px 34px 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2374776B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color .25s var(--ease);
}
.select-mini:hover, .select-mini:focus { border-color: var(--forest); outline: none; }
.results-count { color: var(--grey); font-size: 0.92rem; }
.results-count strong { color: var(--charcoal); }
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 24px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state .icon { color: var(--sage); margin: 0 auto 16px; width: 40px; height: 40px; }
.empty-state h3 { margin-bottom: 8px; }

/* ==========================================================================
   Property detail
   ========================================================================== */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.detail-grid > * { min-width: 0; }
.gallery { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery__main { aspect-ratio: 16 / 10; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumb { border: 0; padding: 0; border-radius: var(--radius-xs); overflow: hidden; aspect-ratio: 4/3; opacity: .7; transition: opacity .25s var(--ease), outline-color .25s; outline: 3px solid transparent; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover, .gallery__thumb.is-active { opacity: 1; outline-color: var(--forest); }
.detail-panel { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.detail-price { font-family: var(--serif); font-size: 2rem; color: var(--forest-deep); margin-bottom: 6px; }
.detail-specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 22px 0; padding: 22px 0; border-block: 1px solid var(--line-soft); }
.detail-spec { display: flex; gap: 12px; align-items: center; }
.detail-spec__icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(69,111,50,0.1); color: var(--forest); display: grid; place-items: center; flex: none; }
.detail-spec__label { font-size: 0.76rem; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; }
.detail-spec__value { font-weight: 600; }
.amenities { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.amenity { display: inline-flex; align-items: center; gap: 7px; background: var(--cream); border-radius: var(--radius-pill); padding: 8px 15px; font-size: 0.85rem; color: var(--charcoal); }
.amenity .icon { color: var(--forest); width: 16px; height: 16px; }
.detail-section-title { font-size: 1.3rem; margin: 34px 0 14px; }
.agent-card { display: flex; gap: 14px; align-items: center; background: var(--cream); border-radius: var(--radius-sm); padding: 16px; margin: 22px 0; }
.agent-card__av { width: 52px; height: 52px; border-radius: 50%; background: var(--forest); color: var(--ivory); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; flex: none; }

/* ==========================================================================
   Contact / forms
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-grid > * { min-width: 0; }
.form-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form-row > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--charcoal); }
.field label .req { color: #b0432f; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.95rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2374776B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(69,111,50,0.12);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b0432f; background: #fdf4f2; }
.field__error { font-size: 0.8rem; color: #b0432f; min-height: 0; display: none; }
.field.invalid .field__error { display: block; }
.form-consent { display: flex; gap: 11px; align-items: flex-start; font-size: 0.84rem; color: var(--grey); margin-bottom: 8px; }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest); flex: none; }
.form-note { font-size: 0.82rem; color: var(--grey); margin-top: 14px; }
.form-alert { border-radius: var(--radius-sm); padding: 13px 16px; font-size: 0.9rem; margin-bottom: 20px; display: none; }
.form-alert.is-visible { display: block; }
.form-alert--info { background: rgba(69,111,50,0.1); border: 1px solid rgba(69,111,50,0.25); color: var(--forest-deep); }
.form-alert--error { background: #fdf4f2; border: 1px solid #e3b3aa; color: #8f3423; }

.contact-info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.info-card__icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(69,111,50,0.1); color: var(--forest); display: grid; place-items: center; flex: none; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--grey); font-size: 0.92rem; }
.info-card a:hover { color: var(--forest); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); aspect-ratio: 16/10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   About page
   ========================================================================== */
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-card__num { font-family: var(--serif); font-size: 2.1rem; color: var(--forest); }
.stat-card__label { color: var(--grey); font-size: 0.9rem; }

.value-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px 26px; }
.value-card__num { font-family: var(--serif); color: var(--sage); font-size: 1.4rem; margin-bottom: 10px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.value-card p { color: var(--grey); font-size: 0.94rem; }

.team-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; text-align: center; box-shadow: var(--shadow-sm); }
.team-card__av { aspect-ratio: 1; background: linear-gradient(135deg, var(--sage), var(--forest)); display: grid; place-items: center; color: var(--ivory); font-family: var(--serif); font-size: 3rem; }
.team-card__body { padding: 20px; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 3px; }
.team-card p { color: var(--grey); font-size: 0.88rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 0 24px 24px; }
.footer-inner {
  max-width: var(--shell-wide);
  margin-inline: auto;
  background: var(--forest-deep);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px) clamp(26px, 4vw, 60px) 28px;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; }
.footer-grid > * { min-width: 0; }
.footer-about p { color: rgba(248,247,239,0.72); font-size: 0.92rem; margin-top: 18px; max-width: 34ch; }
.footer-tagline { color: var(--sage); font-family: var(--serif); font-size: 1.15rem; margin-top: 6px; }
.footer-col h4 { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: rgba(248,247,239,0.82); font-size: 0.92rem; transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer-col a:hover { color: var(--white); padding-left: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(248,247,239,0.1); display: grid; place-items: center; color: var(--ivory); transition: background .25s var(--ease), transform .25s var(--ease); }
.footer-social a:hover { background: var(--forest); transform: translateY(-2px); }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; min-width: 0; background: rgba(248,247,239,0.08); border: 1px solid rgba(248,247,239,0.22); border-radius: var(--radius-pill); padding: 11px 16px; color: var(--ivory); font-size: 0.88rem; }
.newsletter input::placeholder { color: rgba(248,247,239,0.5); }
.newsletter input:focus { outline: none; border-color: var(--sage); }
.newsletter button { border: 0; background: var(--sage); color: var(--forest-deep); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; flex: none; transition: background .25s var(--ease); }
.newsletter button:hover { background: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(248,247,239,0.16); font-size: 0.85rem; color: rgba(248,247,239,0.66); }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(29,42,24,0.55);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  transform: translateY(18px) scale(.98);
  transition: transform .35s var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }
.modal__head { position: relative; }
.modal__head img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.92); color: var(--charcoal);
  display: grid; place-items: center;
}
.modal__close:hover { color: var(--forest); }
.modal__body { padding: 26px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translate(-50%, 120%);
  background: var(--forest-deep);
  color: var(--ivory);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  font-size: 0.92rem;
  display: flex; align-items: center; gap: 10px;
  transition: transform .4s var(--ease);
  max-width: calc(100vw - 40px);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast .icon { color: var(--sage); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Consent banner */
.consent {
  position: fixed;
  left: 50%; bottom: 20px;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 32px));
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  z-index: 190;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.consent p { font-size: 0.88rem; color: var(--grey); margin: 0; max-width: 46ch; }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--forest); color: var(--ivory);
  padding: 12px 18px; border-radius: var(--radius-sm);
  z-index: 300; transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .media-figure { order: -1; }
  .search-panel { flex-direction: column; gap: 4px; padding: 14px; }
  .search-field + .search-field { border-left: 0; border-top: 1px solid var(--line); }
  .search-field { flex-basis: auto; width: 100%; }
  .search-panel__submit { padding: 10px 6px 4px; }
  .search-panel__submit .btn { flex: 1; }
  .stat-strip { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-inline: 14px; }
  .hero__inner { min-height: 560px; }
}

@media (max-width: 720px) {
  .shell { padding-inline: 18px; }
  .site-header-wrap { padding: 10px 14px 2px; }
  .search-wrap, .cta-banner-wrap, .site-footer { padding-inline: 14px; }
  .page-hero { padding-inline: 14px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-specs { grid-template-columns: minmax(0, 1fr); }
  .gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
  .header-actions .btn span:not([data-icon]) { display: none; }
  .header-actions .btn { padding: 0; }
  .site-header { padding: 10px 12px; gap: 10px; border-radius: var(--radius); }
  .header-actions { gap: 6px; }
  .icon-btn, .header-actions .btn { width: 40px; height: 40px; }
  .brand { gap: 10px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.15rem; }
}

@media (max-width: 400px) {
  .header-actions .icon-btn[href^="buy"] { display: none; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .hero__cta .btn, .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 20px; }
  .section-head { margin-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
