/* =====================================================================
   Khatu shyam Homes — Free Property Marketplace Template · uiCookies
   Design layer (Bootstrap 5 loaded separately for reset + grid utils)
   Palette : ink navy #0C1E33 · slate #15304A · azure #2E6BF0
             amber #F5A524 · porcelain #F5F2EC · slate-mute #5B6B7A
   Type    : Bricolage Grotesque (display) + Hanken Grotesk (body)
   ===================================================================== */

:root {
  --ink:        #0C1E33;
  --ink-2:      #12293F;
  --slate:      #15304A;
  --azure:      #2E6BF0;
  --azure-600:  #1f57d6;
  --amber:      #F5A524;
  --amber-700:  #d98607;
  --porcelain:  #F5F2EC;
  --paper:      #FBFAF6;
  --line:       #E6E0D4;
  --line-ink:   rgba(255,255,255,.12);
  --text:       #16283b;
  --muted:      #5B6B7A;
  --muted-ink:  #9db0c6;
  --white:      #ffffff;

  --rent:       #2E6BF0;
  --sale:       #14243a;
  --new:        #F5A524;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-sm: 0 2px 8px rgba(12,30,51,.06);
  --shadow-md: 0 14px 34px -18px rgba(12,30,51,.38);
  --shadow-lg: 0 30px 70px -30px rgba(12,30,51,.55);

  --wrap: 1200px;
  --pad: clamp(1rem, 4vw, 2.25rem);
  --sect: clamp(3.5rem, 8vw, 6.5rem);

  --f-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--azure-600); }

h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.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; }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 1200;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-body); font-weight: 600; font-size: .98rem;
  padding: .78rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; line-height: 1; text-align: center;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--amber { background: var(--amber); color: #241800; box-shadow: 0 10px 22px -12px rgba(245,165,36,.9); }
.btn--amber:hover { background: #ffb733; color: #241800; }
.btn--azure { background: var(--azure); color: #fff; }
.btn--azure:hover { background: var(--azure-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600;
  color: var(--azure); white-space: nowrap;
}
.link-arrow .ic { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(251,250,246,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(251,250,246,.95);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(12,30,51,.5);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); border-radius: 9px; }
.brand-mark svg { width: 22px; height: 22px; fill: var(--amber); }
.brand-word { line-height: 1; }

.main-nav { margin-inline-start: 1rem; }
.nav-cta-mobile { display: none; }
.mobile-nav-heading { display: none; }
.nav-list { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: .5rem .85rem; border-radius: 999px;
  color: #33465a; font-weight: 500; font-size: .98rem;
}
.nav-list a:hover { color: var(--ink); background: rgba(12,30,51,.05); }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .75rem; }

.saved-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem; border-radius: 999px; color: #33465a; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--line); background: #fff;
}
.saved-btn:hover { color: var(--ink); border-color: #d7cfbd; }
.saved-btn .ic { width: 18px; height: 18px; }
.saved-count {
  min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center;
  background: var(--amber); color: #241800; border-radius: 999px; font-size: .72rem; font-weight: 700;
}
.saved-btn.has-saved .ic { fill: var(--amber); stroke: var(--amber-700); }

.nav-close, .nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .ic, .nav-close .ic { width: 24px; height: 24px; }

.nav-backdrop { position: fixed; inset: 0; z-index: 998; background: rgba(9,18,30,.5); backdrop-filter: blur(2px); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  background: radial-gradient(120% 90% at 88% -10%, rgba(46,107,240,.28), transparent 55%),
              radial-gradient(90% 80% at 0% 120%, rgba(245,165,36,.16), transparent 60%),
              linear-gradient(180deg, #0b1c30 0%, #0c1e33 55%, #0d2138 100%);
  color: #eaf1fb;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: 0;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .13em;
  color: #bcd0ea; margin: 0 0 1.1rem;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(245,165,36,.22); }

.hero-title {
  color: #fff; font-weight: 800;
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  letter-spacing: -.035em; line-height: .98; margin: 0 0 1.25rem;
}
.hero-title em { font-style: normal; color: var(--amber); }

.hero-lead {
  color: #c6d5e8; font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 34ch;
  margin: 0 0 2rem;
}

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 2.6rem); }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.15rem); color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat-label { font-size: .82rem; color: #93a8c2; margin-top: .35rem; }

/* hero media */
.hero-media { position: relative; }
.media-frame {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-xl);
  overflow: hidden; background: #1a3350; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1);
}
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.price-flag {
  position: absolute; left: -14px; bottom: 34px; z-index: 3;
  background: #fff; color: var(--ink); border-radius: var(--r-md);
  padding: .8rem 1rem; box-shadow: var(--shadow-md); min-width: 190px;
  border: 1px solid rgba(12,30,51,.06);
}
.price-flag-tag { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--amber-700); background: #fff5e4; padding: .18rem .5rem; border-radius: 999px; margin-bottom: .4rem; }
.price-flag-price { display: block; font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.price-flag-meta { display: block; font-size: .8rem; color: var(--muted); margin-top: .1rem; }

.verify-flag {
  position: absolute; right: -10px; top: 26px; z-index: 3;
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(12,30,51,.72); backdrop-filter: blur(6px);
  color: #eaf1fb; border: 1px solid rgba(255,255,255,.16);
  padding: .5rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.verify-flag .ic { width: 17px; height: 17px; color: var(--amber); }

/* search command bar */
.searchbar {
  position: relative; z-index: 5;
  margin-top: clamp(2rem, 5vw, 3.25rem);
  transform: translateY(50%);
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: .85rem;
}
.search-tabs { display: inline-flex; gap: .25rem; background: var(--porcelain); padding: .28rem; border-radius: 999px; margin: .2rem .3rem .8rem; }
.search-tab {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--f-body); font-weight: 600; font-size: .92rem; color: var(--muted);
  padding: .45rem 1.05rem; border-radius: 999px; transition: all .18s ease;
}
.search-tab.is-active { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }

.search-fields { display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr auto; gap: .4rem; align-items: end; }
.field { padding: .35rem .6rem; }
.field + .field { border-inline-start: 1px solid var(--line); }
.field-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .25rem; }
.field-control { display: flex; align-items: center; gap: .5rem; position: relative; }
.field-ic { width: 18px; height: 18px; color: var(--azure); flex: none; }
.field-input {
  width: 100%; border: 0; background: transparent; font-family: var(--f-body);
  font-size: .98rem; color: var(--ink); font-weight: 500; padding: .2rem 0;
}
.field-input::placeholder { color: #94a3b3; font-weight: 400; }
.field-input:focus { outline: none; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 1.4rem; }
.field-chevron { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search-submit {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  background: var(--azure); color: #fff; border: 0; cursor: pointer;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem;
  padding: .95rem 1.5rem; border-radius: var(--r-md); height: 100%;
  transition: background-color .15s ease, transform .12s ease;
}
.search-submit:hover { background: var(--azure-600); }
.search-submit:active { transform: translateY(1px); }
.search-submit .ic { width: 19px; height: 19px; }

/* =====================================================================
   SECTIONS shared
   ===================================================================== */
.section { padding-block: var(--sect); }
.section--porcelain { background: var(--porcelain); }
.section--ink { background: var(--ink); color: #dbe6f4; }

/* space so the overlapping searchbar doesn't collide with first section */
.hero + .section { padding-top: calc(var(--sect) + clamp(2.5rem, 5vw, 4rem)); }

.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 2.75rem); }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--azure); margin: 0 0 .7rem; }
.kicker--onink { color: var(--amber); }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
.section-title--onink { color: #fff; }
.section-intro { color: var(--muted); font-size: 1.06rem; margin: .9rem 0 0; max-width: 52ch; }
.section-intro--onink { color: #b6c6da; }

/* =====================================================================
   FILTER + LISTINGS
   ===================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip {
  border: 1px solid var(--line); background: #fff; color: #43566a;
  font-family: var(--f-body); font-weight: 600; font-size: .9rem; cursor: pointer;
  padding: .5rem 1.05rem; border-radius: 999px; transition: all .15s ease;
}
.chip:hover { border-color: #cfc6b3; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.1rem, 2vw, 1.6rem); }

.listing-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.listing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #ded5c2; }

.listing-media { position: relative; aspect-ratio: 3 / 2; background: #e7ecf2; }
.listing-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: .32rem .66rem; border-radius: 999px; color: #fff;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.4);
}
.badge--sale { background: var(--sale); }
.badge--rent { background: var(--rent); }
.badge--new  { background: var(--amber); color: #241800; }

.fav-btn {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255,255,255,.92); border: 0; border-radius: 50%; cursor: pointer;
  color: #33465a; box-shadow: 0 4px 12px -4px rgba(12,30,51,.4);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.fav-btn .ic { width: 21px; height: 21px; transition: fill .15s ease; }
.fav-btn:hover { transform: scale(1.08); color: var(--amber-700); }
.fav-btn[aria-pressed="true"] { background: #fff; color: var(--amber-700); }
.fav-btn[aria-pressed="true"] .ic { fill: var(--amber); stroke: var(--amber-700); }
.fav-btn.pop { animation: favpop .32s ease; }
@keyframes favpop { 0%{transform:scale(1)} 40%{transform:scale(1.28)} 100%{transform:scale(1)} }

.listing-body { padding: 1.1rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.listing-price { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; margin: 0 0 .3rem; }
.listing-price .per { font-family: var(--f-body); font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.listing-title { font-size: 1.12rem; font-weight: 700; margin: 0 0 .4rem; }
.listing-title a { color: var(--ink); }
.listing-title a:hover { color: var(--azure); }
.listing-addr { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .9rem; margin: 0 0 .9rem; }
.listing-addr .ic { width: 16px; height: 16px; color: var(--azure); flex: none; }

.stat-strip {
  display: flex; flex-wrap: wrap; gap: .35rem 1rem; list-style: none; margin: 0 0 1rem; padding: .75rem 0 0;
  border-top: 1px solid var(--line);
}
.stat-strip li { display: inline-flex; align-items: center; gap: .38rem; font-size: .86rem; color: #3d4f61; font-weight: 500; }
.stat-strip .ic { width: 18px; height: 18px; color: var(--muted); }

.listing-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.agent-mini { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: #3d4f61; }
.agent-mini img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.listing-more { font-weight: 600; font-size: .9rem; }

.listings-empty { text-align: center; color: var(--muted); padding: 2.5rem 0; font-size: 1.05rem; }

/* =====================================================================
   CATEGORIES
   ===================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.7rem, 1.5vw, 1.1rem); }
.cat-tile {
  display: flex; flex-direction: column; gap: .35rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.3rem 1.15rem; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--amber); color: var(--ink); }
.cat-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--amber); margin-bottom: .55rem; }
.cat-icon .ic { width: 24px; height: 24px; }
.cat-name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.cat-count { font-size: .82rem; color: var(--muted); }

/* =====================================================================
   CITIES (bento mosaic)
   ===================================================================== */
.cities-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px;
  gap: clamp(.7rem, 1.5vw, 1.1rem);
}
.city-tile {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: #1a3350; display: block; color: #fff;
}
.city-tile--lead { grid-row: span 2; }
.city-tile--wide { grid-column: span 2; }
.city-media { position: absolute; inset: 0; }
.city-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.city-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,18,30,0) 30%, rgba(9,18,30,.82) 100%); }
.city-tile:hover .city-media img { transform: scale(1.06); }
.city-overlay { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 1.15rem 1.25rem; }
.city-name { color: #fff; font-size: 1.35rem; font-weight: 700; }
.city-count { color: #d6e2f1; font-size: .88rem; margin: .15rem 0 0; }

/* =====================================================================
   WHY Khatu shyam Homes
   ===================================================================== */
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.why-media { position: relative; }
.why-media .media-frame { aspect-ratio: 4 / 3.4; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,.08); }
.why-badge {
  position: absolute; right: -12px; bottom: -18px; z-index: 3;
  background: var(--amber); color: #241800; border-radius: var(--r-md);
  padding: .9rem 1.1rem; max-width: 190px; box-shadow: var(--shadow-md);
}
.why-badge strong { display: block; font-family: var(--f-display); font-size: 2rem; line-height: 1; }
.why-badge span { display: block; font-size: .82rem; font-weight: 600; margin-top: .25rem; line-height: 1.3; }

.why-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.35rem; }
.why-item { display: flex; gap: 1rem; }
.why-ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 13px; background: rgba(46,107,240,.16); color: #7fb0ff; }
.why-ico .ic { width: 24px; height: 24px; }
.why-item h3 { color: #fff; font-size: 1.12rem; margin: .1rem 0 .3rem; }
.why-item p { color: #a7bad2; font-size: .95rem; margin: 0; }

/* =====================================================================
   HOW IT WORKS
   ===================================================================== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.8rem 1.6rem 1.7rem; overflow: hidden;
}
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.step:hover::before { transform: scaleX(1); }
.step-num { position: absolute; right: 1.2rem; top: 1rem; font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; color: var(--porcelain); letter-spacing: -.04em; }
.step-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: var(--amber); margin-bottom: 1.1rem; }
.step-ico .ic { width: 26px; height: 26px; }
.step h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* =====================================================================
   AGENTS
   ===================================================================== */
.agents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.agent-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem; text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.agent-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.agent-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #e7ecf2; margin-bottom: 1rem; box-shadow: 0 0 0 5px var(--porcelain); }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-name { font-size: 1.2rem; margin: 0; }
.agent-role { color: var(--muted); font-size: .88rem; margin: .2rem 0 .7rem; }
.agent-rating { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; color: #3d4f61; margin: 0 0 .35rem; }
.agent-rating .star { width: 17px; height: 17px; fill: var(--amber); stroke: var(--amber-700); }
.agent-rating strong { color: var(--ink); }
.agent-rating span { color: var(--muted); }
.agent-meta { font-size: .86rem; color: var(--muted); margin: 0 0 .8rem; }
.agent-chips { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-bottom: 1.1rem; }
.agent-chips span { font-size: .74rem; font-weight: 600; color: #3d4f61; background: var(--porcelain); padding: .28rem .6rem; border-radius: 999px; }
.agent-contact { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--ink); border: 1px solid var(--line); padding: .5rem 1rem; border-radius: 999px; }
.agent-contact:hover { color: var(--ink); border-color: var(--ink); background: var(--porcelain); }
.agent-contact .ic { width: 17px; height: 17px; color: var(--azure); }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
.quote-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem 1.9rem 1.7rem; }
.quote-mark { font-family: var(--f-display); font-size: 4rem; line-height: .5; color: var(--amber); margin-bottom: .6rem; height: 1.4rem; }
.quote-card blockquote { margin: 0 0 1.3rem; font-size: 1.14rem; line-height: 1.5; color: #23364a; font-weight: 500; }
.quote-author { display: flex; align-items: center; gap: .75rem; }
.quote-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote-author span { display: flex; flex-direction: column; font-size: .86rem; color: var(--muted); }
.quote-author strong { color: var(--ink); font-size: .98rem; }

/* =====================================================================
   CTA
   ===================================================================== */
.cta { background:
  radial-gradient(90% 120% at 100% 0%, rgba(46,107,240,.3), transparent 55%),
  radial-gradient(80% 120% at 0% 100%, rgba(245,165,36,.2), transparent 55%),
  var(--ink);
  color: #dbe6f4;
}
.cta-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.cta-points { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.cta-points li { display: flex; align-items: center; gap: .6rem; color: #c9d7e8; font-weight: 500; }
.cta-points .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(245,165,36,.2); color: var(--amber); stroke-width: 2.4; flex: none; }

.cta-form { background: #fff; border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-lg); color: var(--text); }
.cta-form-title { font-size: 1.3rem; margin: 0 0 1.1rem; }
.cta-field { display: block; margin-bottom: .9rem; }
.cta-field span { display: block; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .35rem; }
.cta-field input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .8rem .9rem; font-family: var(--f-body); font-size: 1rem; color: var(--ink); background: var(--paper);
}
.cta-field input:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(46,107,240,.16); background: #fff; }
.cta-alt { text-align: center; font-size: .9rem; color: var(--muted); margin: .9rem 0 0; }
.cta-note { margin: .9rem 0 0; padding: .7rem .9rem; border-radius: var(--r-sm); background: #eefaf1; color: #1c6b3f; font-weight: 600; font-size: .9rem; text-align: center; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: #0c1e33;
  color: #edf7f6;
  padding: 2rem 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1.2fr 1.1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.brand-mark-square {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

.brand-name {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .05em;
}

.footer-intro {
  max-width: 31ch;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255,255,255,.9);
}

.footer-subtitle {
  margin-top: 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
}

.footer-links {
  padding-top: .5rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .9rem;
}

.footer-menu a {
  color: #edf7f6;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s ease;
}

.footer-menu a:hover { opacity: .8; }

.footer-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: .75rem;
  padding-top: .5rem;
}

.footer-gallery img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
}

.footer-newsletter p {
  margin: 0 0 1rem;
  color: rgba(255,255,255,.9);
  font-size: 1.06rem;
  line-height: 1.5;
}

.newsletter-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
}

.newsletter-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 1rem 0.9rem;
  font-size: .96rem;
}

.newsletter-box input::placeholder { color: rgba(255,255,255,.7); }

.newsletter-box input:focus { outline: none; }

.newsletter-box button {
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--amber);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.25rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.footer-contact-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.contact-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.1rem;
  border-right: 1px solid rgba(255,255,255,.18);
  min-height: 120px;
}

.contact-stat:last-child { border-right: 0; }

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--amber);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.contact-stat h4 {
  margin: 0 0 .35rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.contact-stat p {
  margin: .15rem 0;
  color: rgba(255,255,255,.9);
  font-size: .98rem;
}

.footer-property-block {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0 2rem;
  font-family: var(--f-body);
}

.property-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}

.property-col a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-family: inherit;
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.property-col a:hover { color: #fff; }

.footer-location-title {
  margin: 0;
  padding-top: 1.5rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-mobile-actions {
  display: none;
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-property-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding-bottom: 5.5rem;
  }

  .footer-main,
  .footer-contact-bar,
  .footer-property-block {
    grid-template-columns: 1fr;
  }

  .contact-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .contact-stat:last-child { border-bottom: 0; }

  .brand-lockup { justify-content: flex-start; }
  .footer-subtitle { font-size: 1.6rem; }

  .footer-mobile-actions {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: clamp(.4rem, 3vw, .75rem);
    padding: 0;
    pointer-events: none;
  }

  .footer-mobile-action {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(.65rem, 3vw, .9rem) clamp(.35rem, 3vw, 1rem);
    border-radius: 12px;
    font-weight: 700;
    font-size: clamp(.8rem, 3.5vw, .95rem);
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    background: var(--amber);
    color: var(--ink);
    box-shadow: 0 12px 28px rgba(12, 30, 51, 0.22);
    pointer-events: auto;
  }

  .footer-mobile-action.whatsapp {
    background: #25d366;
    color: #fff;
  }
}

/* =====================================================================
   BACK TO TOP
   ===================================================================== */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background-color .15s ease;
}
.to-top.show { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--azure); }
.to-top .ic { width: 22px; height: 22px; }

/* =====================================================================
   REVEAL animation
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .city-media img, .fav-btn, .to-top, .link-arrow .ic, .step::before { transition: none !important; }
  .fav-btn.pop { animation: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
.d-none-mobile { display: inline-flex; }

@media (max-width: 1040px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 520px; }
  .why-grid, .cta-inner { grid-template-columns: 1fr; }
  .why-media { max-width: 520px; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .field { border-inline-start: 0 !important; }
  .field--location { grid-column: 1 / -1; }
  .search-submit { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .cities-grid { grid-auto-rows: 190px; }
}

@media (max-width: 1200px) {
  /* mobile nav */
  .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .main-nav {
    position: fixed; top: 74px; right: 0; left: 0; z-index: 999; width: 100%;
    height: calc(100vh - 74px); height: calc(100dvh - 74px);
    margin: 0; padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; gap: 1rem; overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .mobile-nav-heading { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-list a { display: flex; align-items: center; min-height: 52px; padding: .75rem .9rem; font-size: 1.02rem; font-weight: 600; border-radius: var(--r-sm); }
  .nav-cta-mobile { display: block; margin-top: .5rem; }
  .nav-cta-mobile .btn { width: 100%; }
  .nav-close { display: inline-flex; border: 0; border-radius: var(--r-sm); background: transparent; }
  .nav-toggle { display: inline-flex; }
  .d-none-mobile { display: none; }
  .saved-label { display: none; }
}

@media (max-width: 720px) {
  .quote-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr 1fr; }
  .city-tile--lead { grid-row: span 1; }
  .city-tile--wide { grid-column: span 2; }
  .section-head--row { align-items: flex-start; }
}

@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.1rem 1.8rem; }
  .searchbar { transform: translateY(28px); }
  .hero + .section { padding-top: calc(var(--sect) + 1rem); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-col--news { grid-column: 1 / -1; }
  .price-flag { left: 8px; min-width: 0; }
  .verify-flag { right: 8px; }
}


