/* =====================================================================
   EstateLoft-inspired Real Estate Theme
   Author: Infinite Option
   Fully responsive: 320px  ->  2560px+
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* palette */
  --ink: #12140f;
  --ink-2: #1b1e17;
  --ink-3: #262a20;
  --cream: #f6f3ec;
  --cream-2: #ece7dc;
  --sand: #d9d2c3;
  --accent: #b7c78a;          /* soft olive */
  --accent-2: #8ba05a;
  --gold: #c9a96a;
  --white: #ffffff;
  --muted: #7c8071;
  --line: rgba(18, 20, 15, .12);
  --line-dark: rgba(246, 243, 236, .14);

  --body-bg: var(--cream);
  --body-fg: #2b2f26;
  --heading: var(--ink);
  --card-bg: #ffffff;
  --soft-bg: #efece3;

  /* type */
  --font-head: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* fluid type scale */
  --fs-xs: clamp(.72rem, .68rem + .18vw, .8rem);
  --fs-sm: clamp(.82rem, .78rem + .2vw, .92rem);
  --fs-base: clamp(.95rem, .9rem + .25vw, 1.05rem);
  --fs-lg: clamp(1.1rem, 1rem + .5vw, 1.3rem);
  --fs-xl: clamp(1.35rem, 1.15rem + 1vw, 1.85rem);
  --fs-2xl: clamp(1.7rem, 1.3rem + 2vw, 2.75rem);
  --fs-3xl: clamp(2.1rem, 1.4rem + 3.4vw, 4rem);
  --fs-hero: clamp(2.4rem, 1.2rem + 5.4vw, 5.6rem);

  /* space */
  --gap: clamp(1rem, .6rem + 1.6vw, 2rem);
  --section-y: clamp(3.5rem, 2rem + 6vw, 8rem);
  --shell: min(100% - 2.4rem, 1280px);
  --shell-wide: min(100% - 1.6rem, 1600px);

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --shadow-s: 0 2px 10px rgba(18, 20, 15, .06);
  --shadow: 0 18px 40px -24px rgba(18, 20, 15, .35);
  --shadow-l: 0 40px 80px -40px rgba(18, 20, 15, .45);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: .45s var(--ease);

  --header-h: 76px;
}

@media (min-width: 992px) {
  :root { --header-h: 92px; }
}

/* dark mode support */
:root[data-theme="dark"] {
  --body-bg: #0e100c;
  --body-fg: #cdd2c2;
  --heading: #f6f3ec;
  --card-bg: #171a13;
  --soft-bg: #14170f;
  --line: rgba(246, 243, 236, .13);
  --cream: #0e100c;
  --cream-2: #14170f;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--body-fg);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

/* Cards set their own display (flex/grid), which out-specifies the browser's
   [hidden] rule — without this, hiding a card via el.hidden does nothing. */
[hidden] { display: none !important; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { text-wrap: pretty; }

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

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

/* ---------- 3. Layout helpers ---------- */
.shell { width: var(--shell); margin-inline: auto; }
.shell-wide { width: var(--shell-wide); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section--pb-lg { padding-bottom: clamp(4.5rem, 2.5rem + 7vw, 10rem); }
.section--soft { background: var(--soft-bg); }
.section--dark { background: var(--ink); color: #b9bfad; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--cream); padding: .8rem 1.2rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.grid { display: grid; gap: var(--gap); }
.flow > * + * { margin-top: 1rem; }

/* ---------- 4. Typography bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--accent-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7;
}
.section--dark .eyebrow { color: var(--accent); }

.lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--muted); }
.section--dark .lead { color: #9aa28c; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: var(--gap);
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.section-head__text { max-width: 58ch; }
.section-head h2 { margin-top: .8rem; }
.section-head p { margin-top: 1rem; color: var(--muted); }

.text-center { text-align: center; }
.text-center .section-head__text { margin-inline: auto; }
.text-center .section-head { justify-content: center; text-align: center; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95em 1.9em;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: transform var(--t), background-color var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--heading);
  border-color: var(--line);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--cream); }
.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: var(--cream);
  border-color: var(--line-dark);
}
.btn--ghost-light:hover { --btn-bg: var(--cream); --btn-fg: var(--ink); }
.btn--sm { padding: .7em 1.3em; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: var(--fs-sm);
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
  transition: gap var(--t), opacity var(--t);
}
.link-arrow:hover { gap: .9rem; }

/* ---------- 6. Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.header--solid {
  background: var(--body-bg); /* fallback if color-mix is unsupported */
  background: color-mix(in srgb, var(--body-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
/* solid state: always resolve link colours against the bar, never inherit */
.header--solid .brand,
.header--solid .nav__link,
.header--solid .icon-btn { color: var(--heading); }
.header--solid .nav__link:hover,
.header--solid .nav__link[aria-current="page"] { color: var(--heading); }
/* hovering or tabbing into the bar always keeps it on screen */
.header--pinned { transform: none !important; }
.header--hidden { transform: translateY(-105%); }

/* Transparent state (over the hero image): everything flips to light.
   Inner pages ship with .header--solid, so they keep the dark treatment. */
.header:not(.header--solid) .brand,
.header:not(.header--solid) .nav__link,
.header:not(.header--solid) .icon-btn { color: var(--cream); }
.header:not(.header--solid) .brand em { color: var(--accent); }
.header:not(.header--solid) .nav__link:hover,
.header:not(.header--solid) .nav__link[aria-current="page"] { color: var(--white); }
.header:not(.header--solid) .nav__link::after { background: var(--accent); }
.header:not(.header--solid) .icon-btn,
.header:not(.header--solid) .burger { border-color: var(--line-dark); }
.header:not(.header--solid) .icon-btn:hover {
  background: var(--cream); color: var(--ink); border-color: var(--cream);
}
.header:not(.header--solid) .burger span { background: var(--cream); }

.header__inner {
  width: var(--shell-wide); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -.02em; color: var(--heading);
  flex: none;
}
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.brand__mark svg { width: 18px; height: 18px; }
.brand em { font-style: normal; color: var(--accent-2); }

/* desktop nav */
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(.4rem, .2rem + 1vw, 1.4rem); }
.nav__link {
  position: relative; display: block; padding: .5rem .2rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--body-fg);
  transition: color var(--t);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: .15rem;
  width: 100%; height: 1.5px; background: var(--accent-2);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--heading); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}

.header__actions { display: flex; align-items: center; gap: .6rem; }
.header__cta { display: none; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--heading);
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.icon-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.burger {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center; gap: 5px;
  padding: 13px 12px;
  align-content: center;
}
.burger span {
  display: block; width: 20px; height: 1.8px; background: var(--heading);
  border-radius: 2px; transition: transform .35s var(--ease), opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink);
  padding: calc(var(--header-h) + 1.5rem) 1.4rem 2rem;
  display: flex; flex-direction: column;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .6s var(--ease);
  visibility: hidden;
}
.drawer[data-open="true"] {
  clip-path: circle(150% at calc(100% - 44px) 44px);
  visibility: visible;
}
.drawer__list { display: flex; flex-direction: column; }
.drawer__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; font-family: var(--font-head); font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.4rem);
  color: var(--cream); border-bottom: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(18px);
}
.drawer[data-open="true"] .drawer__list a {
  animation: drawerIn .5s var(--ease) forwards;
}
.drawer__list li:nth-child(1) a { animation-delay: .12s; }
.drawer__list li:nth-child(2) a { animation-delay: .17s; }
.drawer__list li:nth-child(3) a { animation-delay: .22s; }
.drawer__list li:nth-child(4) a { animation-delay: .27s; }
.drawer__list li:nth-child(5) a { animation-delay: .32s; }
.drawer__list li:nth-child(6) a { animation-delay: .37s; }
.drawer__list li:nth-child(7) a { animation-delay: .42s; }
.drawer__list a span { font-family: var(--font-body); font-size: .7rem; color: var(--muted); }
@keyframes drawerIn { to { opacity: 1; transform: none; } }

.drawer__foot {
  margin-top: auto; padding-top: 2rem;
  display: grid; gap: 1rem; color: #9aa28c; font-size: var(--fs-sm);
}
.drawer__foot a:hover { color: var(--accent); }
.drawer__social { display: flex; gap: .6rem; }
.drawer__social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: grid; place-items: center; color: var(--cream);
}
.drawer__social svg { width: 16px; height: 16px; }

@media (min-width: 1100px) {
  .nav { display: block; }
  .burger { display: none; }
  .header__cta { display: inline-flex; }
  .drawer { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2rem, 1rem + 4vw, 4rem);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,14,10,.62) 0%, rgba(12,14,10,.15) 35%, rgba(12,14,10,.88) 100%);
}
.hero__inner { width: var(--shell-wide); margin-inline: auto; }
.hero h1 { color: var(--cream); font-size: var(--fs-hero); max-width: 16ch; }
.hero__eyebrow { color: var(--accent); }
.hero__text { max-width: 46ch; margin-top: 1.2rem; color: #d7dbcc; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.2rem; margin-top: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  border-top: 1px solid var(--line-dark); padding-top: 1.6rem;
}
.hero__stats b { display: block; font-family: var(--font-head); font-size: var(--fs-2xl); color: var(--cream); }
.hero__stats span { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: #9aa28c; }

/* ---------- 8. Search bar ---------- */
.search-card {
  background: var(--card-bg);
  border-radius: var(--radius-l);
  padding: clamp(1rem, .6rem + 1.4vw, 1.4rem);
  box-shadow: var(--shadow-l);
  display: grid; gap: .8rem;
}
.hero .search-card { margin-top: 2rem; }
.search-card__tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tab {
  padding: .5rem 1.1rem; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line);
  transition: all var(--t);
}
.tab[aria-selected="true"], .tab:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.search-card__fields {
  display: grid; gap: .7rem;
  grid-template-columns: 1fr;
}
.field { display: grid; gap: .3rem; }
.field > label {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem;
  background: var(--soft-bg); border: 1px solid transparent;
  border-radius: var(--radius-s); font-size: var(--fs-sm);
  transition: border-color var(--t), background-color var(--t);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8071' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
  padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-2); background: var(--card-bg);
}
.field textarea { min-height: 140px; resize: vertical; }

@media (min-width: 640px) {
  .search-card__fields { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .search-card__fields { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
  .search-card__fields .btn { height: 48px; }
}

/* ---------- 9. Cards / property grid ---------- */
.cards {
  display: grid; gap: clamp(1.2rem, .8rem + 1.4vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.cards--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.property {
  background: var(--card-bg); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s);
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
  border: 1px solid var(--line);
}
.property:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }

.property__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.property__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.property:hover .property__media img { transform: scale(1.07); }

.property__badges {
  position: absolute; top: .9rem; left: .9rem; right: .9rem;
  display: flex; flex-wrap: wrap; gap: .4rem; pointer-events: none;
}
.badge {
  padding: .35rem .8rem; border-radius: var(--radius-pill);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(18,20,15,.72); color: var(--cream);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge--accent { background: var(--accent); color: var(--ink); }
.badge--gold { background: var(--gold); color: var(--ink); }

.property__fav {
  position: absolute; right: .9rem; bottom: .9rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink);
  display: grid; place-items: center;
  transition: background-color var(--t), color var(--t), transform var(--t);
}
.property__fav svg { width: 18px; height: 18px; }
.property__fav:hover { transform: scale(1.1); }
.property__fav[aria-pressed="true"] { background: #d9534f; color: #fff; }
.property__fav[aria-pressed="true"] svg { fill: currentColor; }

.property__body { padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.property__price {
  font-family: var(--font-head); font-size: var(--fs-xl); color: var(--heading);
  display: flex; align-items: baseline; gap: .35rem;
}
.property__price small { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.property__title { font-size: var(--fs-lg); }
.property__title a:hover { color: var(--accent-2); }
.property__loc {
  display: flex; align-items: center; gap: .4rem;
  font-size: var(--fs-sm); color: var(--muted);
}
.property__loc svg { width: 15px; height: 15px; flex: none; color: var(--accent-2); }

.property__specs {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem;
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--muted);
}
.property__specs li { display: flex; align-items: center; gap: .4rem; }
.property__specs svg { width: 16px; height: 16px; color: var(--accent-2); flex: none; }

.property--wide { flex-direction: column; }
@media (min-width: 720px) {
  .property--wide { flex-direction: row; }
  .property--wide .property__media { flex: 0 0 42%; aspect-ratio: auto; }
  .property--wide .property__body { padding: 1.5rem; }
}

/* ---------- 10. Categories ---------- */
.cat-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.cat {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: clamp(200px, 26vw, 320px);
  display: flex; align-items: flex-end; padding: 1.2rem;
  color: var(--cream); isolation: isolate;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cat::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,14,10,0) 25%, rgba(12,14,10,.85) 100%);
}
.cat:hover img { transform: scale(1.08); }
.cat h3 { color: var(--cream); font-size: var(--fs-lg); }
.cat span { font-size: var(--fs-xs); color: #b6bda9; letter-spacing: .1em; text-transform: uppercase; }
.cat--tall { grid-row: span 2; }

/* ---------- 11. Feature / about split ---------- */
.split {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-l); object-fit: cover; }
.split__media--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split__media--stack img:first-child { grid-row: span 2; height: 100%; }

.badge-float {
  position: absolute; right: -.5rem; bottom: -1rem;
  background: var(--card-bg); border-radius: var(--radius);
  padding: 1rem 1.3rem; box-shadow: var(--shadow-l);
  display: grid; gap: .1rem; min-width: 150px;
}
.badge-float b { font-family: var(--font-head); font-size: var(--fs-xl); color: var(--heading); }
.badge-float span { font-size: var(--fs-xs); color: var(--muted); }

.tick-list { display: grid; gap: .8rem; margin-top: 1.6rem; }
.tick-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); }
.tick-list svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); margin-top: .15rem; }

/* ---------- 12. Stats strip ---------- */
.stats {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  text-align: center;
}
.stat b {
  display: block; font-family: var(--font-head);
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); color: var(--heading);
}
.section--dark .stat b { color: var(--cream); }
.stat span { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 13. Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step {
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  display: grid; gap: .7rem; position: relative;
  transition: transform var(--t), box-shadow var(--t);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-size: var(--fs-2xl);
  color: var(--accent); line-height: 1;
}
.section--dark .step { background: var(--ink-2); border-color: var(--line-dark); }

/* ---------- 14. Agents ---------- */
.agent {
  text-align: center; display: grid; gap: .6rem;
}
.agent__media {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4;
}
.agent__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.agent:hover .agent__media img { transform: scale(1.06); }
.agent__social {
  position: absolute; inset: auto 0 0 0; padding: 1rem;
  display: flex; justify-content: center; gap: .5rem;
  background: linear-gradient(180deg, transparent, rgba(12,14,10,.8));
  transform: translateY(100%); opacity: 0; transition: all var(--t);
}
.agent:hover .agent__social, .agent:focus-within .agent__social { transform: none; opacity: 1; }
.agent__social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15);
  display: grid; place-items: center; color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.agent__social svg { width: 15px; height: 15px; }
.agent__social a:hover { background: var(--accent); color: var(--ink); }
.agent h4 { margin-top: .4rem; }
.agent p { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 15. Testimonials ---------- */
.slider { position: relative; }
.slider__track {
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory;
  /* top/bottom room so card hover-lift and shadows aren't clipped by overflow */
  padding-block: .6rem 1rem;
  margin-inline: calc(var(--gap) * -.5); padding-inline: calc(var(--gap) * .5);
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * {
  scroll-snap-align: start;
  flex: 0 0 min(100%, 380px);
}
@media (min-width: 900px) { .slider__track > * { flex-basis: min(48%, 480px); } }
@media (min-width: 1280px) { .slider__track > * { flex-basis: min(32%, 440px); } }

/* header cluster: arrows + a button sitting beside a section title */
.section-head__aside {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
}

.slider__nav { display: flex; gap: .6rem; }
.slider__nav button:disabled { opacity: .35; cursor: default; }
.slider__nav button:disabled:hover {
  background: none; color: inherit; border-color: var(--line);
}
.slider__nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--heading);
  transition: all var(--t);
}
.section--dark .slider__nav button { border-color: var(--line-dark); color: var(--cream); }
.slider__nav button:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.slider__nav svg { width: 18px; height: 18px; }

.quote {
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem;
  display: grid; gap: 1rem;
}
.section--dark .quote { background: var(--ink-2); border-color: var(--line-dark); }
.quote__stars { display: flex; gap: .15rem; color: var(--gold); }
.quote__stars svg { width: 16px; height: 16px; fill: currentColor; }
.quote blockquote { font-size: var(--fs-lg); font-family: var(--font-head); line-height: 1.45; color: var(--heading); }
.quote__author { display: flex; align-items: center; gap: .8rem; }
.quote__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote__author b { display: block; font-size: var(--fs-sm); color: var(--heading); }
.quote__author span { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 16. Blog ---------- */
.post {
  display: grid; gap: .9rem;
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post__media { aspect-ratio: 16 / 10; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__media img { transform: scale(1.06); }
.post__body { padding: 0 1.3rem 1.5rem; display: grid; gap: .6rem; }
.post__meta { display: flex; flex-wrap: wrap; gap: .8rem; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.post h3 { font-size: var(--fs-lg); }
.post h3 a:hover { color: var(--accent-2); }

/* ---------- 17. CTA banner ---------- */
.cta {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(1.4rem, .8rem + 3vw, 4rem);
  color: var(--cream); isolation: isolate; text-align: center;
}
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(12,14,10,.68); z-index: -1; }
.cta h2 { color: var(--cream); max-width: 20ch; margin-inline: auto; }
.cta p { max-width: 55ch; margin: 1rem auto 0; color: #cfd4c4; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

/* ---------- 18. Footer ---------- */
.footer { background: var(--ink); color: #9aa28c; padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.footer a { transition: color var(--t); }
.footer a:hover { color: var(--accent); }
.footer__grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.footer__brand { grid-column: 1 / -1; max-width: 34ch; }
@media (min-width: 900px) { .footer__brand { grid-column: auto; max-width: 30ch; } }
.footer .brand { color: var(--cream); }
.footer .brand__mark { background: var(--cream); color: var(--ink); }
.footer h5 {
  color: var(--cream); font-family: var(--font-body); font-size: var(--fs-xs);
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer__links { display: grid; gap: .6rem; font-size: var(--fs-sm); }
.footer__social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: grid; place-items: center; color: var(--cream);
}
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.footer__social svg { width: 16px; height: 16px; }

.newsletter { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 180px; padding: .8rem 1rem; border-radius: var(--radius-pill);
  background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--cream);
}
.newsletter input:focus { outline: none; border-color: var(--accent); }

.footer__bottom {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: var(--fs-xs);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- 19. Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; color: var(--cream);
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem));
  padding-bottom: clamp(3rem, 2rem + 5vw, 7rem);
  text-align: center;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,14,10,.8), rgba(12,14,10,.6)); z-index: -1; }
.page-hero h1 { color: var(--cream); }
.crumbs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
  color: #b6bda9; margin-top: 1rem;
}
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a:hover { color: var(--accent); }

/* ---------- 20. Listing layout / filters ---------- */
.listing { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 1024px) {
  .listing { grid-template-columns: 300px 1fr; }
  .listing--right { grid-template-columns: 1fr 320px; }
}
.sidebar { display: grid; gap: 1.2rem; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 1023px) { .sidebar { position: static; } }

.widget {
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem;
}
.widget h4 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 700; margin-bottom: 1rem; }
.widget + .widget { margin-top: 0; }
.check-list { display: grid; gap: .6rem; font-size: var(--fs-sm); }
.check-list label { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.check-list input { width: 18px; height: 18px; accent-color: var(--accent-2); }

.range-row { display: flex; align-items: center; gap: .6rem; }
.range-row input { flex: 1; }
input[type="range"] { accent-color: var(--accent-2); width: 100%; }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .8rem; margin-bottom: 1.4rem;
}
.toolbar__count { font-size: var(--fs-sm); color: var(--muted); }
.toolbar__actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.toolbar select { padding: .6rem 2.2rem .6rem .9rem; border-radius: var(--radius-pill); background-color: var(--card-bg); border: 1px solid var(--line); font-size: var(--fs-sm); }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.view-toggle button { padding: .55rem .8rem; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.view-toggle svg { width: 16px; height: 16px; display: block; }

.filter-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filter-toggle { display: none; } }
/* only the filter sidebar collapses on small screens — detail-page sidebars stay visible */
@media (max-width: 1023px) {
  [data-listing] .sidebar { display: none; }
  [data-listing] .sidebar.is-open { display: grid; }
}

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span, .pagination button {
  min-width: 44px; height: 44px; padding-inline: .8rem; border-radius: var(--radius-pill);
  display: grid; place-items: center; border: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: 600; color: var(--heading);
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.pagination .is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pagination a:hover,
.pagination button:not(:disabled):hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination__gap { border-color: transparent !important; min-width: 24px; color: var(--muted); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---------- 21. Property detail ---------- */
.gallery { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 1fr); }
  .gallery__main { grid-row: span 2; }
}
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/11; transition: transform .8s var(--ease); }
.gallery__main img { aspect-ratio: 4/3; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery__more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(12,14,10,.55); color: var(--cream); font-weight: 700; font-size: var(--fs-sm);
  pointer-events: none;
}

.spec-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.spec {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; display: grid; gap: .3rem;
}
.spec svg { width: 22px; height: 22px; color: var(--accent-2); }
.spec b { font-size: var(--fs-lg); font-family: var(--font-head); color: var(--heading); }
.spec span { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.detail-list { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); font-size: var(--fs-sm); }
.detail-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.detail-list b { color: var(--heading); font-weight: 600; }

.amenities { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); font-size: var(--fs-sm); }
.amenities li { display: flex; gap: .5rem; align-items: center; }
.amenities svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: clamp(260px, 40vw, 420px); border: 0; display: block; }

.agent-card { display: grid; gap: 1rem; text-align: center; }
.agent-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-inline: auto; }

/* ---------- 22. Contact ---------- */
.contact-grid { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item__icon {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: var(--soft-bg); color: var(--accent-2);
}
.info-item__icon svg { width: 20px; height: 20px; }
.info-item b { display: block; color: var(--heading); }
.info-item p, .info-item a { font-size: var(--fs-sm); color: var(--muted); }

.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid--2 .full { grid-column: 1 / -1; } }
.form-note { font-size: var(--fs-xs); color: var(--muted); }
.form-status {
  padding: .8rem 1rem; border-radius: var(--radius-s); font-size: var(--fs-sm);
  background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--heading);
}
.field .error { font-size: var(--fs-xs); color: #c0392b; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }

/* ---------- 23. FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; padding: 1.1rem 1.3rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 600; color: var(--heading); font-size: var(--fs-base);
}
.faq__q svg { width: 20px; height: 20px; flex: none; transition: transform var(--t); color: var(--accent-2); }
.faq__item[data-open="true"] .faq__q svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 1.3rem 1.2rem; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 24. Marquee ---------- */
.marquee { overflow: hidden; padding-block: 1.2rem; border-block: 1px solid var(--line-dark); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee span {
  font-family: var(--font-head); font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  color: rgba(246,243,236,.35); display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap;
}
.marquee span::after { content: "✦"; color: var(--accent); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 25. Utility ---------- */
.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: all var(--t);
  box-shadow: var(--shadow);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top svg { width: 20px; height: 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* reveal on scroll */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 101;
  background: var(--accent-2); width: 0;
}

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

/* ---------- 25b. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 9, 7, .94);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  animation: fade .3s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox img {
  max-width: 100%; max-height: 86svh; border-radius: var(--radius);
  object-fit: contain; box-shadow: var(--shadow-l);
}
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: .6rem; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1;
}
.lightbox__nav--next { left: auto; right: .6rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: var(--ink); }

/* ---------- 26. Extra-small phones (320–360px) ---------- */
@media (max-width: 380px) {
  :root { --shell: min(100% - 1.6rem, 1280px); --shell-wide: min(100% - 1.2rem, 1600px); }
  .btn { padding: .85em 1.4em; }
  .hero__actions .btn { flex: 1 1 100%; }
  .brand { font-size: 1.1rem; }
  .property__body { padding: 1rem; }
}

/* ---------- 27. Large / ultrawide ---------- */
@media (min-width: 1800px) {
  :root { --shell: min(100% - 4rem, 1440px); --shell-wide: min(100% - 4rem, 1760px); }
}

/* ---------- 28. Print ---------- */
@media print {
  .header, .drawer, .footer, .back-to-top, .cta, .slider__nav { display: none !important; }
  body { background: #fff; color: #000; }
}
