/* =============================================================
   Fijian Real Estate — Homepage Stylesheet
   Design tokens per design.md (single accent, ink type, white
   canvas, one shadow tier, soft shape language).
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand & accent */
  --c-primary: #ff385c;
  --c-primary-active: #e00b41;
  --c-primary-disabled: #ffd1da;
  --c-luxe: #460479;

  /* Surfaces */
  --c-canvas: #ffffff;
  --c-surface-soft: #f7f7f7;
  --c-surface-strong: #f2f2f2;

  /* Hairlines & borders */
  --c-hairline: #dddddd;
  --c-hairline-soft: #ebebeb;
  --c-border-strong: #c1c1c1;

  /* Text */
  --c-ink: #222222;
  --c-body: #3f3f3f;
  --c-muted: #6a6a6a;
  --c-muted-soft: #929292;
  --c-on-primary: #ffffff;

  /* Elevation — the single shadow tier */
  --shadow-card: rgba(0, 0, 0, 0.02) 0 0 0 1px,
                 rgba(0, 0, 0, 0.04) 0 2px 6px 0,
                 rgba(0, 0, 0, 0.10) 0 4px 8px 0;
  --shadow-card-hover: rgba(0, 0, 0, 0.03) 0 0 0 1px,
                       rgba(0, 0, 0, 0.06) 0 6px 16px 0,
                       rgba(0, 0, 0, 0.12) 0 10px 24px 0;

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Spacing */
  --sp-xxs: 2px;  --sp-xs: 4px;  --sp-sm: 8px;   --sp-md: 12px;
  --sp-base: 16px; --sp-lg: 24px; --sp-xl: 32px;  --sp-xxl: 48px;
  --sp-section: 64px;

  /* Layout */
  --container: 1280px;

  /* Type */
  --font-sans: "Inter", "Circular", -apple-system, system-ui, Roboto,
               "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-canvas);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

/* ---------- Typography utilities ---------- */
.display-xl { font-size: 28px; font-weight: 700; line-height: 1.43; }
.section-title { font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: -0.3px; }
.section-kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--c-primary);
  margin-bottom: var(--sp-sm);
}
.section-sub { font-size: 16px; color: var(--c-muted); max-width: 560px; margin-top: var(--sp-sm); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-lg); margin-bottom: var(--sp-xl);
}
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head__actions { display: flex; align-items: center; gap: var(--sp-lg); }
.section-head--center .section-sub { margin-inline: auto; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--c-ink);
  white-space: nowrap; padding-bottom: 2px;
  border-bottom: 1px solid var(--c-ink);
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover { color: var(--c-primary); border-color: var(--c-primary); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-sm);
  font-size: 16px; font-weight: 500; line-height: 1.25;
  min-height: 48px; padding: 14px 24px;
  border-radius: var(--r-sm);
  transition: background .2s ease, color .2s ease, border-color .2s ease,
              transform .2s ease, box-shadow .2s ease;
}

.btn--primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn--primary:hover { background: var(--c-primary-active); box-shadow: var(--shadow-card); }
.btn--primary:active { background: var(--c-primary-active); transform: translateY(1px); }

.btn--secondary { background: var(--c-canvas); color: var(--c-ink); border: 1px solid var(--c-ink); }
.btn--secondary:hover { background: var(--c-surface-soft); }

.btn--ghost-light { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.65); backdrop-filter: blur(8px); }
.btn--ghost-light:hover { background: rgba(255,255,255,.26); }

.btn--white { background: #fff; color: var(--c-ink); }
.btn--white:hover { background: var(--c-surface-soft); }

.btn--pill { border-radius: var(--r-full); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

.btn--text { color: var(--c-ink); font-weight: 500; padding: 8px 4px; min-height: 0; }
.btn--text:hover { text-decoration: underline; }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-lg); height: 80px;
}

/* Transparent-over-hero state (default) */
.site-header { color: #fff; }
.site-header .logo__name { color: #fff; }
.site-header .nav a { color: rgba(255,255,255,.92); }
.site-header .nav a:hover,
.site-header .nav a[aria-current="page"] { color: #fff; }
.site-header .header-auth-link { color: rgba(255,255,255,.92); }
.site-header .header-auth-link:hover { color: #fff; }

/* Scrolled state */
.site-header.is-scrolled {
  background: var(--c-canvas);
  border-bottom-color: var(--c-hairline-soft);
  box-shadow: rgba(0,0,0,.04) 0 2px 12px;
  color: var(--c-ink);
}
.site-header.is-scrolled .logo__name { color: var(--c-ink); }
.site-header.is-scrolled .nav a { color: var(--c-muted); }
.site-header.is-scrolled .nav a:hover,
.site-header.is-scrolled .nav a[aria-current="page"] { color: var(--c-ink); }
.site-header.is-scrolled .header-auth-link { color: var(--c-body); }
.site-header.is-scrolled .header-auth-link:hover { color: var(--c-ink); }
.site-header.is-scrolled .burger span { background: var(--c-ink); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--c-primary); color: #fff;
  border-radius: var(--r-full);
}
.logo__name { font-size: 19px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.1; }
.logo__name small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; opacity: .78; }

/* Nav */
.nav ul { display: flex; align-items: center; gap: var(--sp-xl); }
.nav a {
  font-size: 15px; font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a[aria-current="page"] { border-bottom-color: currentColor; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-lg); }
.header-auth-link { font-size: 15px; font-weight: 500; transition: color .2s ease; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease, background .3s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu sheet */
.mobile-menu {
  display: none;
  position: fixed; inset: 80px 0 auto 0; z-index: 99;
  background: var(--c-canvas);
  border-bottom: 1px solid var(--c-hairline-soft);
  box-shadow: var(--shadow-card);
  padding: var(--sp-lg);
}
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: 14px 8px; font-size: 16px; font-weight: 500; color: var(--c-ink); border-bottom: 1px solid var(--c-hairline-soft); }
.mobile-menu .btn { width: 100%; margin-top: var(--sp-base); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  /* Above following sections so the overhanging search panel and its
     open dropdowns always paint over the property cards */
  z-index: 10;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  isolation: isolate;
  padding: 160px 0 200px;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background: #10303f url("https://images.unsplash.com/photo-1559128010-7c1ad6e1b6a5?auto=format&fit=crop&w=2400&q=80") center / cover no-repeat;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
              rgba(8, 24, 33, .55) 0%,
              rgba(8, 24, 33, .25) 38%,
              rgba(8, 24, 33, .30) 68%,
              rgba(8, 24, 33, .62) 100%);
}
.hero__content {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  padding: 8px 16px; border-radius: var(--r-full);
  margin-bottom: var(--sp-lg);
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); }
.hero__title {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700; line-height: 1.12; letter-spacing: -1px;
  text-wrap: balance;
  margin-bottom: var(--sp-lg);
}
.hero__title em { font-style: normal; color: #ffd1da; }
.hero__text {
  font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.88);
  max-width: 560px; margin-inline: auto; margin-bottom: var(--sp-xl);
}
.hero__cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-base); }

/* =============================================================
   GLASS SEARCH BAR
   ============================================================= */
.search-wrap {
  position: absolute; left: 0; right: 0; bottom: 0;
  transform: translateY(50%);
  z-index: 5;
}
.search-panel {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: var(--r-xl);
  box-shadow: rgba(10, 30, 40, .06) 0 0 0 1px,
              rgba(10, 30, 40, .10) 0 12px 32px,
              rgba(10, 30, 40, .18) 0 24px 64px;
  padding: var(--sp-base) var(--sp-lg) var(--sp-lg);
  color: var(--c-ink);
}

/* Buy / Rent toggle */
.search-mode { display: inline-flex; background: rgba(34,34,34,.06); border-radius: var(--r-full); padding: 4px; margin-bottom: var(--sp-base); }
.search-mode__btn {
  font-size: 14px; font-weight: 600; color: var(--c-muted);
  padding: 8px 22px; border-radius: var(--r-full);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.search-mode__btn.is-active { background: var(--c-ink); color: #fff; box-shadow: var(--shadow-card); }

/* Segments row */
.search-fields {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.9fr auto;
  align-items: stretch;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(34,34,34,.10);
  border-radius: var(--r-full);
}
.search-field {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 12px 24px;
  min-height: 72px;
  border-radius: var(--r-full);
  transition: background .2s ease;
}
.search-field:not(:first-child)::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 1px; background: var(--c-hairline);
}
.search-field:hover { background: rgba(34,34,34,.045); }
.search-field:hover::before, .search-field:hover + .search-field::before { opacity: 0; }
.search-field label {
  font-size: 12px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: var(--c-ink);
}
.search-field select {
  appearance: none; -webkit-appearance: none;
  border: none; background: transparent; outline: none;
  font-size: 14px; color: var(--c-muted);
  padding-right: 18px; cursor: pointer; width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236a6a6a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
}
/* Custom dropdown (replaces native select popups — see main.js) */
.search-field.has-dropdown select { display: none; }

.dropdown { position: relative; }
.dropdown__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm);
  width: 100%; padding: 0; text-align: left;
  font-size: 14px; color: var(--c-muted);
  cursor: pointer;
}
.dropdown.has-value .dropdown__toggle { color: var(--c-ink); font-weight: 500; }
.dropdown__chev { display: inline-flex; color: var(--c-muted); transition: transform .2s ease; }
.dropdown__chev svg { transform: rotate(180deg); }
.dropdown.is-open .dropdown__chev { transform: rotate(180deg); }

.dropdown__menu {
  position: absolute; top: calc(100% + 18px); left: -12px; z-index: 40;
  min-width: calc(100% + 24px); width: max-content; max-width: 300px;
  max-height: 340px; overflow-y: auto;
  margin: 0; padding: var(--sp-sm); list-style: none;
  background: var(--c-canvas);
  border: 1px solid var(--c-hairline-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card-hover);
  display: none;
}
.dropdown.is-open .dropdown__menu { display: block; animation: dropdown-in .18s ease; }
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.dropdown__menu::-webkit-scrollbar { width: 6px; }
.dropdown__menu::-webkit-scrollbar-thumb { background: var(--c-hairline); border-radius: var(--r-full); }

.dropdown__option {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md);
  width: 100%; padding: 10px 12px; text-align: left;
  font-size: 14px; line-height: 1.4; color: var(--c-ink);
  border-radius: var(--r-sm);
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease;
}
.dropdown__option:hover,
.dropdown__option:focus-visible { background: var(--c-surface-soft); outline: none; }
.dropdown__option .dropdown__tick { color: var(--c-ink); opacity: 0; flex-shrink: 0; }
.dropdown__option.is-selected { font-weight: 600; }
.dropdown__option.is-selected .dropdown__tick { opacity: 1; }

/* Keep the last dropdown (Bedrooms) from overflowing the pill's right edge */
.search-fields .search-field:nth-last-child(2) .dropdown__menu { left: auto; right: -12px; }

.search-field--submit {
  flex-direction: row; align-items: center; justify-content: center;
  padding: 10px 12px 10px 8px; min-width: 84px;
}
.search-field--submit:hover { background: transparent; }
.search-orb {
  width: 52px; height: 52px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--c-primary); color: #fff;
  box-shadow: rgba(255, 56, 92, .4) 0 8px 20px;
  transition: background .2s ease, transform .2s ease;
}
.search-orb:hover { background: var(--c-primary-active); transform: scale(1.05); }
.search-orb:active { transform: scale(.97); }

/* =============================================================
   SECTIONS (generic)
   ============================================================= */
.section { padding: var(--sp-section) 0; }
.section--soft { background: var(--c-surface-soft); }
.section--after-hero { padding-top: calc(var(--sp-section) + 96px); }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   PROPERTY CARDS
   ============================================================= */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.property-grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--sp-base); }

.property-card {
  display: flex; flex-direction: column;
  background: var(--c-canvas);
  border: 1px solid var(--c-hairline-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.property-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

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

.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
  padding: 6px 12px; border-radius: var(--r-full);
  box-shadow: var(--shadow-card);
}
.badge--sale { background: #fff; color: var(--c-ink); }
.badge--rent { background: var(--c-ink); color: #fff; }
.badge--luxe { background: var(--c-luxe); color: #fff; letter-spacing: 1px; text-transform: uppercase; }
.badge--new  { background: var(--c-primary); color: #fff; letter-spacing: 1px; text-transform: uppercase; font-size: 10px; }

.property-card__media .badge { position: absolute; top: 14px; left: 14px; }

.fav-btn {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-card);
  color: var(--c-ink);
  transition: transform .2s ease, color .2s ease;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: fill .2s ease, stroke .2s ease; }
.fav-btn.is-active { color: var(--c-primary); }
.fav-btn.is-active svg { fill: var(--c-primary); stroke: var(--c-primary); }

.property-card__body { display: flex; flex-direction: column; gap: var(--sp-sm); padding: var(--sp-base); flex: 1; }
.property-card__price { font-size: 20px; font-weight: 700; letter-spacing: -0.2px; }
.property-card__price small { font-size: 13px; font-weight: 400; color: var(--c-muted); }
.property-card__title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.property-card__title a:hover { color: var(--c-primary); }
.property-card__location {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--c-muted);
}
.property-card__location svg { flex-shrink: 0; }

.property-card__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-base);
  font-size: 13px; color: var(--c-body);
  padding-top: var(--sp-sm); margin-top: var(--sp-xs);
  border-top: 1px solid var(--c-hairline-soft);
}
.property-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.property-card__meta svg { color: var(--c-muted); }

.property-card__type {
  margin-left: auto;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  color: var(--c-muted); background: var(--c-surface-soft);
  padding: 4px 10px; border-radius: var(--r-full);
}

.property-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm);
  margin-top: auto; padding-top: var(--sp-md);
}
.agent-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.agent-chip img { width: 32px; height: 32px; border-radius: var(--r-full); object-fit: cover; }
.agent-chip span { font-size: 13px; font-weight: 500; color: var(--c-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =============================================================
   BROWSE BY TYPE
   ============================================================= */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-base); }
.type-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-md);
  padding: var(--sp-lg);
  background: var(--c-canvas);
  border: 1px solid var(--c-hairline-soft);
  border-radius: var(--r-md);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.type-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); border-color: transparent; }
.type-card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: #fff1f4; color: var(--c-primary);
  transition: background .25s ease, color .25s ease;
}
.type-card:hover .type-card__icon { background: var(--c-primary); color: #fff; }
.type-card h3 { font-size: 16px; font-weight: 600; }
.type-card p { font-size: 13px; color: var(--c-muted); }

/* =============================================================
   LOCATIONS
   ============================================================= */
.location-carousel { position: relative; }
.location-track {
  display: flex;
  gap: var(--sp-base);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--sp-xs);
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--sp-xs);
  margin: calc(-1 * var(--sp-xs));
}
.location-track::-webkit-scrollbar { display: none; }

.location-card {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  display: flex; align-items: flex-end;
  isolation: isolate;
  /* Portrait card: taller than wide */
  flex: 0 0 264px;
  aspect-ratio: 2 / 3;
  scroll-snap-align: start;
  transition: box-shadow .25s ease, transform .25s ease;
}
.location-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

/* Carousel arrow controls */
.carousel-nav { display: flex; gap: var(--sp-sm); }
.carousel-btn {
  width: 44px; height: 44px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--c-canvas); color: var(--c-ink);
  border: 1px solid var(--c-hairline);
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.carousel-btn:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.carousel-btn:disabled { opacity: .35; pointer-events: none; }
.carousel-btn--prev svg { transform: rotate(180deg); }

.location-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.location-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,25,35,0) 40%, rgba(10,25,35,.72) 100%);
  transition: background .3s ease;
}
.location-card:hover img { transform: scale(1.07); }
.location-card__body { padding: var(--sp-lg); color: #fff; }
.location-card__body h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.2px; }
.location-card__body p { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 2px; }

/* =============================================================
   WHY CHOOSE US
   ============================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); }
.feature {
  padding: var(--sp-lg);
  border: 1px solid var(--c-hairline-soft);
  border-radius: var(--r-md);
  background: var(--c-canvas);
  transition: box-shadow .25s ease, transform .25s ease;
}
.feature:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.feature__icon {
  width: 48px; height: 48px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: #fff1f4; color: var(--c-primary);
  margin-bottom: var(--sp-base);
}
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: var(--sp-sm); }
.feature p { font-size: 14px; line-height: 1.6; color: var(--c-muted); }

/* =============================================================
   AGENTS
   ============================================================= */
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); }
.agent-card {
  text-align: center;
  padding: var(--sp-xl) var(--sp-lg) var(--sp-lg);
  background: var(--c-canvas);
  border: 1px solid var(--c-hairline-soft);
  border-radius: var(--r-md);
  transition: box-shadow .25s ease, transform .25s ease;
}
.agent-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.agent-card__photo {
  width: 96px; height: 96px; border-radius: var(--r-full);
  object-fit: cover; margin: 0 auto var(--sp-base);
  outline: 3px solid #fff; box-shadow: var(--shadow-card);
}
.agent-card h3 { font-size: 17px; font-weight: 600; }
.agent-card__role { font-size: 13px; color: var(--c-muted); margin-top: 2px; }
.agent-card__stats {
  display: flex; justify-content: center; gap: var(--sp-base);
  font-size: 13px; color: var(--c-body);
  margin: var(--sp-base) 0 var(--sp-base);
  padding: var(--sp-sm) 0;
  border-block: 1px solid var(--c-hairline-soft);
}
.agent-card__stats strong { font-weight: 700; }
.agent-card .btn { width: 100%; }

.rating-stars { display: inline-flex; gap: 2px; color: var(--c-ink); vertical-align: -2px; }

/* =============================================================
   HOW IT WORKS
   ============================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); counter-reset: step; }
.step { position: relative; padding: var(--sp-lg); text-align: center; }
.step__icon {
  position: relative;
  width: 72px; height: 72px; margin: 0 auto var(--sp-base);
  border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--c-canvas); color: var(--c-primary);
  border: 1px solid var(--c-hairline);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.step:hover .step__icon { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.step__num {
  position: absolute; top: -6px; right: -6px;
  width: 26px; height: 26px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--c-ink); color: #fff;
  font-size: 12px; font-weight: 700;
}
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: var(--sp-sm); }
.step p { font-size: 14px; color: var(--c-muted); line-height: 1.6; }

/* =============================================================
   LUXURY LISTINGS
   ============================================================= */
.section--luxe { background: #17081f; color: #fff; }
.section--luxe .section-kicker { color: #d3a8f5; }
.section--luxe .section-sub { color: rgba(255,255,255,.72); }
.section--luxe .link-arrow { color: #fff; border-color: rgba(255,255,255,.6); }
.section--luxe .link-arrow:hover { color: #d3a8f5; border-color: #d3a8f5; }

.luxe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
.luxe-card {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  aspect-ratio: 16 / 10;
  display: flex; align-items: flex-end;
  isolation: isolate;
}
.luxe-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.luxe-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,4,18,.05) 35%, rgba(12,4,18,.82) 100%);
}
.luxe-card:hover img { transform: scale(1.05); }
.luxe-card .badge--luxe { position: absolute; top: 18px; left: 18px; }
.luxe-card .fav-btn { top: 16px; right: 16px; background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(8px); }
.luxe-card__body { padding: var(--sp-lg); width: 100%; }
.luxe-card__body h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.luxe-card__loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,.82); margin-top: 4px; }
.luxe-card__row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-base);
  margin-top: var(--sp-base); padding-top: var(--sp-base);
  border-top: 1px solid rgba(255,255,255,.22);
}
.luxe-card__price { font-size: 20px; font-weight: 700; }
.luxe-card__meta { display: flex; gap: var(--sp-base); font-size: 13px; color: rgba(255,255,255,.85); }
.luxe-card__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* =============================================================
   STATS
   ============================================================= */
.stats-band { background: var(--c-surface-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); text-align: center; }
.stat__value {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 700; letter-spacing: -1px; line-height: 1.1;
  color: var(--c-ink);
}
.stat__value .suffix { color: var(--c-primary); }
.stat__label { font-size: 14px; font-weight: 500; color: var(--c-muted); margin-top: var(--sp-sm); }

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.testimonial {
  display: flex; flex-direction: column; gap: var(--sp-base);
  padding: var(--sp-lg);
  background: var(--c-canvas);
  border: 1px solid var(--c-hairline-soft);
  border-radius: var(--r-md);
  transition: box-shadow .25s ease, transform .25s ease;
}
.testimonial:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.testimonial blockquote { font-size: 15px; line-height: 1.65; color: var(--c-body); flex: 1; }
.testimonial__author { display: flex; align-items: center; gap: var(--sp-md); padding-top: var(--sp-base); border-top: 1px solid var(--c-hairline-soft); }
.testimonial__author img { width: 44px; height: 44px; border-radius: var(--r-full); object-fit: cover; }
.testimonial__author strong { display: block; font-size: 14px; font-weight: 600; }
.testimonial__author span { font-size: 13px; color: var(--c-muted); }

/* =============================================================
   NEWS
   ============================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.news-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--c-hairline-soft);
  border-radius: var(--r-md); overflow: hidden;
  background: var(--c-canvas);
  transition: box-shadow .25s ease, transform .25s ease;
}
.news-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.news-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { display: flex; flex-direction: column; gap: var(--sp-sm); padding: var(--sp-lg); flex: 1; }
.news-card__tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--c-primary); }
.news-card h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.news-card h3 a:hover { color: var(--c-primary); }
.news-card p { font-size: 14px; color: var(--c-muted); line-height: 1.6; }
.news-card__meta { display: flex; gap: var(--sp-sm); font-size: 13px; color: var(--c-muted-soft); margin-top: auto; padding-top: var(--sp-sm); }

/* =============================================================
   CTA BAND
   ============================================================= */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #e00b41 0%, var(--c-primary) 55%, #ff6b8b 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-section) var(--sp-xxl);
  text-align: center;
  isolation: isolate;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.cta-band::before { width: 340px; height: 340px; top: -160px; left: -100px; }
.cta-band::after  { width: 460px; height: 460px; bottom: -260px; right: -140px; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.5px; text-wrap: balance; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,.9); max-width: 560px; margin: var(--sp-base) auto var(--sp-xl); }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-base); }

/* =============================================================
   PARTNERS
   ============================================================= */
.partners { border-top: 1px solid var(--c-hairline-soft); }
.partners__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--sp-xxl);
}
.partner {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.2px;
  color: var(--c-muted-soft);
  filter: grayscale(1); opacity: .8;
  transition: color .25s ease, opacity .25s ease;
}
.partner:hover { color: var(--c-ink); opacity: 1; }
.partner svg { width: 26px; height: 26px; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--c-canvas); border-top: 1px solid var(--c-hairline-soft); padding-top: var(--sp-section); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-section);
}
.footer-brand p { font-size: 14px; color: var(--c-muted); line-height: 1.65; margin-top: var(--sp-base); max-width: 300px; }
.footer-brand .logo__mark { background: var(--c-primary); }
.footer-brand .logo__name { color: var(--c-ink); }
.footer-contact { margin-top: var(--sp-lg); display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--c-body); }
.footer-contact a:hover { color: var(--c-primary); }
.footer-contact svg { color: var(--c-muted); flex-shrink: 0; }

.footer-col h3 { font-size: 16px; font-weight: 600; margin-bottom: var(--sp-base); }
.footer-col li { margin-bottom: var(--sp-md); }
.footer-col a { font-size: 14px; color: var(--c-muted); transition: color .2s ease; }
.footer-col a:hover { color: var(--c-ink); text-decoration: underline; }

.legal-band { border-top: 1px solid var(--c-hairline-soft); padding: var(--sp-lg) 0; }
.legal-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-base);
}
.legal-band p, .legal-band a { font-size: 13px; color: var(--c-muted); }
.legal-links { display: flex; flex-wrap: wrap; gap: var(--sp-lg); }
.legal-band a:hover { color: var(--c-ink); }
.social-row { display: flex; gap: var(--sp-sm); }
.social-row a {
  width: 36px; height: 36px; border-radius: var(--r-full);
  display: grid; place-items: center;
  color: var(--c-muted); border: 1px solid var(--c-hairline);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.social-row a:hover { color: #fff; background: var(--c-ink); border-color: var(--c-ink); }

/* Back-to-top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--c-ink); color: #fff;
  box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--c-primary); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1128px) {
  .property-grid, .property-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid, .agent-grid, .steps, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }

  .search-fields { grid-template-columns: repeat(2, 1fr); border-radius: var(--r-md); }
  .search-field { border-radius: var(--r-sm); min-height: 64px; }
  .search-field:not(:first-child)::before { display: none; }
  .search-field { border-bottom: 1px solid var(--c-hairline-soft); }
  .search-field--submit { grid-column: 1 / -1; border-bottom: none; padding: var(--sp-md); }
  .search-orb { width: 100%; height: 52px; border-radius: var(--r-full); }
  /* Panel drops into the flow below the hero content with clear breathing room */
  .search-wrap { position: static; transform: none; margin-top: var(--sp-xl); }
  .hero { padding-bottom: var(--sp-section); }
  .section--after-hero { padding-top: var(--sp-section); }

  /* Stacked fields: dropdown spans the full field width */
  .dropdown__menu,
  .search-fields .search-field:nth-last-child(2) .dropdown__menu {
    left: 0; right: 0;
    min-width: 0; width: auto; max-width: none;
    top: calc(100% + 10px);
  }
}

@media (max-width: 744px) {
  :root { --sp-section: 48px; }

  .container { padding-inline: var(--sp-base); }

  .nav, .header-actions .header-auth-link, .header-actions .btn { display: none; }
  .burger { display: flex; }
  .site-header__inner { height: 68px; }
  .mobile-menu { inset: 68px 0 auto 0; }

  .hero { padding-top: 112px; min-height: 0; }
  .hero__eyebrow { font-size: 11px; letter-spacing: 1.2px; padding: 7px 14px; margin-bottom: var(--sp-base); }
  .hero__title { margin-bottom: var(--sp-base); }
  .hero__text { font-size: 16px; margin-bottom: var(--sp-lg); }
  .hero__cta-row { gap: var(--sp-md); }
  .hero__cta-row .btn { min-height: 46px; padding: 12px 20px; font-size: 15px; }

  .search-wrap { margin-top: var(--sp-lg); }
  .search-panel { padding: var(--sp-md) var(--sp-md) var(--sp-base); border-radius: var(--sp-lg); }
  .search-mode { margin-bottom: var(--sp-md); }
  .search-field { min-height: 58px; padding: 10px var(--sp-base); }

  .section-head { margin-bottom: var(--sp-lg); }
  .property-grid, .property-grid--4, .type-grid, .feature-grid,
  .agent-grid, .testimonial-grid, .news-grid, .luxe-grid { gap: var(--sp-base); }
  .steps { gap: var(--sp-sm); }
  .step { padding: var(--sp-base); }
  .luxe-card { aspect-ratio: 4 / 3; }
  .footer-grid { gap: var(--sp-lg); padding-bottom: var(--sp-xl); }

  .property-grid, .property-grid--4, .type-grid,
  .feature-grid, .agent-grid, .steps, .testimonial-grid, .news-grid,
  .luxe-grid, .search-fields { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-xl); }
  .location-card { flex-basis: 230px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: var(--sp-xxl) var(--sp-lg); border-radius: var(--r-md); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head--center { align-items: center; }
  .legal-band__inner { justify-content: center; text-align: center; }
}

/* =============================================================
   WORDPRESS COMPAT
   ============================================================= */
/* Menu items rendered by wp_nav_menu() */
.site-header .nav .current-menu-item > a,
.site-header .nav .current_page_item > a { border-bottom-color: currentColor; }
.site-header .nav .current-menu-item > a { color: #fff; }
.site-header.is-scrolled .nav .current-menu-item > a { color: var(--c-ink); }

/* Offset fixed elements below the admin bar when logged in */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-menu { top: calc(80px + 32px); }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-menu { top: calc(68px + 46px); }
}

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