/* ==================================================================
   Leaf Property Hub — design system
   Palette sampled from the company logo: royal blue + gold on cream.
   ================================================================== */

:root {
  --blue-900: #0A1C46;
  --blue-800: #0E2570;
  --blue-700: #1436A4;   /* primary — the logo blue */
  --blue-600: #2450C8;
  --blue-400: #6E8BE0;
  --blue-100: #D9E2FA;
  --blue-50:  #EFF3FE;

  --gold:      #D4A017;
  --gold-600:  #A8790C;
  --gold-100:  #F7E6BC;
  --gold-50:   #FDF7E7;

  --cream:  #FAF8F3;
  --white:  #FFFFFF;
  --ink:    #1B1F26;
  --body:   #3F4854;
  --muted:  #6B7482;
  --line:   #E4E1D8;
  --line-2: #EFEDE6;

  --verify: #1E7A3C;
  --verify-bg: #E7F4EC;
  --rent:   #B45309;
  --rent-bg:#FDF1E1;
  --danger: #B3261E;

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --sh-1: 0 1px 2px rgba(10,28,70,.06), 0 2px 8px rgba(10,28,70,.05);
  --sh-2: 0 2px 6px rgba(10,28,70,.07), 0 12px 28px rgba(10,28,70,.08);
  --sh-3: 0 8px 20px rgba(10,28,70,.10), 0 24px 60px rgba(10,28,70,.14);

  --wrap: 1200px;
  --gut: 20px;

  --font-head: 'Sora', 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.1em; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); text-decoration: underline; }

img, svg { max-width: 100%; height: auto; display: block; }
/* icons sit inside running text, so they must stay inline */
svg.ico { display: inline-block; vertical-align: -0.16em; flex-shrink: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-wide { max-width: 1400px; }
.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: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue-800); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------- buttons ---------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .78rem 1.4rem; border-radius: var(--r); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: .16s ease; white-space: nowrap;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--blue-800); color: #fff; box-shadow: var(--sh-2); }
.btn-gold { background: var(--gold); color: #2A1F04; box-shadow: var(--sh-1); }
.btn-gold:hover { background: #E0AE22; color: #2A1F04; box-shadow: var(--sh-2); }
.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--blue-100); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-800); border-color: var(--blue-400); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-wa { background: #25D366; color: #06301A; }
.btn-wa:hover { background: #1FBE5B; color: #06301A; }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }

/* ----------------------------- header ---------------------------- */

.topbar {
  background: var(--blue-900); color: #C6D2F2; font-size: .82rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #E3E9FA; }
.topbar-left { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-right { display: flex; gap: .85rem; align-items: center; }
.topbar .ic { display: inline-flex; align-items: center; gap: .38rem; }
.social-row { display: flex; gap: .55rem; }
.social-row a {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.1); transition: .16s;
}
.social-row a:hover { background: var(--gold); color: var(--blue-900); }

.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--sh-1); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; color: var(--blue-800); font-size: 1.08rem; letter-spacing: -.02em; }
.brand-tag { font-size: .68rem; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }

.main-nav { margin-left: auto; display: none; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: .3rem; padding: .6rem .78rem; border-radius: var(--r-sm);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink);
}
.main-nav > ul > li > a:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.main-nav > ul > li > a[aria-current="page"] { color: var(--blue-700); }
.main-nav > ul > li > a[aria-current="page"]::after {
  content: ''; position: absolute; left: .78rem; right: .78rem; bottom: -2px; height: 3px;
  background: var(--gold); border-radius: 3px;
}
.has-drop > a::after {
  content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .55;
}
.drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 232px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2);
  padding: .45rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s;
  flex-direction: column;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop li a { display: block; padding: .55rem .75rem; border-radius: var(--r-sm); font-size: .9rem; color: var(--body); }
.drop li a:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.main-nav + .header-actions { margin-left: .5rem; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--blue-400); color: var(--blue-700); }
.fav-count {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--gold); color: #2A1F04; border-radius: 10px; font-size: .68rem; font-weight: 800;
  display: grid; place-items: center; font-family: var(--font-head);
}
.fav-count[hidden] { display: none; }
.nav-toggle { display: grid; }
.header-cta { display: none; }

.lang-toggle {
  display: none; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff;
}
.lang-toggle button {
  border: 0; background: transparent; padding: .45rem .6rem; font-size: .78rem; font-weight: 700;
  font-family: var(--font-head); color: var(--muted); cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--blue-700); color: #fff; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,28,70,.45);
  opacity: 0; visibility: hidden; transition: .2s;
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute; top: 0; right: 0; width: min(340px, 88vw); height: 100%;
  background: #fff; padding: 1.2rem; overflow-y: auto; transform: translateX(100%); transition: .24s ease;
  display: flex; flex-direction: column; gap: .35rem;
}
.drawer[data-open="true"] .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.drawer a { display: block; padding: .7rem .3rem; border-bottom: 1px solid var(--line-2); font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.drawer a.sub { padding-left: 1.2rem; font-weight: 500; font-size: .9rem; color: var(--body); border-bottom-color: var(--line-2); }
.drawer .btn { margin-top: 1rem; }
.drawer .lang-toggle { display: inline-flex; margin-top: 1rem; align-self: flex-start; }

/* ------------------------------ hero ----------------------------- */

.hero { position: relative; color: #fff; overflow: hidden; background: var(--blue-800); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg svg:not(.ico), .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,28,70,.82) 0%, rgba(10,28,70,.62) 45%, rgba(10,28,70,.88) 100%);
}
.hero-inner { position: relative; padding-block: 3.4rem 2.6rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; background: rgba(212,160,23,.18);
  border: 1px solid rgba(212,160,23,.5); color: var(--gold-100);
  padding: .35rem .85rem; border-radius: 100px; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: .6rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 1.06rem; color: #D5DFF7; max-width: 58ch; margin-bottom: 1.8rem; }

/* search panel */
.search-panel { background: rgba(255,255,255,.97); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; }
.search-tabs { display: flex; background: var(--blue-50); border-bottom: 1px solid var(--line); overflow-x: auto; }
.search-tabs button {
  flex: 1 0 auto; padding: .85rem 1.1rem; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--muted);
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.search-tabs button[aria-selected="true"] { color: var(--blue-700); background: #fff; border-bottom-color: var(--gold); }
.search-body { padding: 1.1rem; display: grid; gap: .8rem; }
.search-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
.field label {
  display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin-bottom: .3rem; font-family: var(--font-head);
}
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .93rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-400); outline-offset: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.quick-links { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .84rem; color: var(--muted); align-items: center; }
.quick-links a {
  background: var(--blue-50); border: 1px solid var(--blue-100); padding: .25rem .65rem;
  border-radius: 100px; color: var(--blue-700); font-weight: 500;
}
.quick-links a:hover { background: var(--blue-100); text-decoration: none; }

/* --------------------------- trust strip -------------------------- */

.trust-strip { background: var(--blue-900); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.12); }
.trust-item { background: var(--blue-900); padding: 1.5rem 1rem; text-align: center; }
.trust-value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--gold); line-height: 1; }
.trust-label { font-weight: 600; color: #fff; margin-top: .35rem; font-size: .94rem; }
.trust-hint { font-size: .78rem; color: #A9B8DE; margin-top: .2rem; }

/* --------------------------- sections ----------------------------- */

.section { padding: 3.2rem 0; }
.section-sm { padding: 2.2rem 0; }
.section-alt { background: #fff; }
.section-dark { background: var(--blue-800); color: #D8E1F8; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { margin-bottom: 1.8rem; }
.section-head.center { text-align: center; max-width: 62ch; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .5rem;
}
.section-dark .eyebrow { color: var(--gold); }
.section-head p { color: var(--muted); max-width: 68ch; margin-bottom: 0; }
.section-head.center p { margin-inline: auto; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.head-row .section-head { margin-bottom: 0; }

/* --------------------------- property card ------------------------ */

.grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: .18s ease; position: relative;
}
.p-card:hover { box-shadow: var(--sh-2); transform: translateY(-3px); border-color: var(--blue-100); }
.p-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--blue-50); }
.p-media img, .p-media > a > img, .p-media svg:not(.ico) { width: 100%; height: 100%; object-fit: cover; transition: .3s ease; }
.p-card:hover .p-media img { transform: scale(1.04); }
.p-badges { position: absolute; top: .7rem; left: .7rem; right: 3.4rem; display: flex; gap: .35rem; flex-wrap: wrap; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .6rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700; font-family: var(--font-head); letter-spacing: .02em;
  background: rgba(255,255,255,.94); color: var(--ink); box-shadow: var(--sh-1); white-space: nowrap;
}
.badge-sale { background: var(--blue-700); color: #fff; }
.badge-rent { background: var(--rent); color: #fff; }
.badge-verify { background: var(--verify-bg); color: var(--verify); }
.badge-feature { background: var(--gold); color: #2A1F04; }
.badge-type { background: rgba(10,28,70,.82); color: #fff; }
.fav-btn {
  position: absolute; top: .7rem; right: .7rem; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.94); display: grid; place-items: center; cursor: pointer;
  color: var(--muted); box-shadow: var(--sh-1); z-index: 2; transition: .16s;
}
.fav-btn:hover { color: var(--danger); transform: scale(1.08); }
.fav-btn[aria-pressed="true"] { color: var(--danger); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.p-price-tag {
  position: absolute; left: 0; bottom: .8rem; background: var(--blue-800); color: #fff;
  padding: .4rem .8rem .4rem .7rem; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; z-index: 2;
}
.p-price-tag .per { font-weight: 500; font-size: .78rem; opacity: .85; }
.p-price-tag small { display: block; font-size: .7rem; font-weight: 500; color: var(--gold-100); }

.p-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.p-title { font-size: 1.02rem; margin-bottom: .35rem; line-height: 1.35; }
.p-title a { color: var(--ink); }
.p-title a:hover { color: var(--blue-700); text-decoration: none; }
.p-loc { display: flex; align-items: flex-start; gap: .35rem; color: var(--muted); font-size: .86rem; margin-bottom: .7rem; }
.p-loc svg { flex-shrink: 0; margin-top: 3px; }
.p-specs {
  display: flex; flex-wrap: wrap; gap: .45rem .9rem; padding-top: .7rem; margin-top: auto;
  border-top: 1px solid var(--line-2); font-size: .83rem; color: var(--body);
}
.p-specs span { display: inline-flex; align-items: center; gap: .32rem; }
.p-specs svg { color: var(--blue-400); flex-shrink: 0; }
.p-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line-2);
  font-size: .78rem; color: var(--muted);
}
.p-id { font-family: var(--font-head); letter-spacing: .04em; }
.p-foot .p-type { display: inline-flex; align-items: center; gap: .3rem; color: var(--blue-700); font-weight: 600; }

/* list view */
.p-list .p-card { flex-direction: row; }
.p-list .p-media { width: 300px; flex-shrink: 0; aspect-ratio: auto; }
@media (max-width: 700px) { .p-list .p-card { flex-direction: column; } .p-list .p-media { width: 100%; aspect-ratio: 3/2; } }

/* -------------------------- category tiles ------------------------ */

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.cat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1rem;
  text-align: center; transition: .16s; display: block; color: var(--ink);
}
.cat-tile:hover { border-color: var(--blue-400); box-shadow: var(--sh-2); transform: translateY(-2px); text-decoration: none; }
.cat-icon {
  width: 54px; height: 54px; margin: 0 auto .7rem; border-radius: var(--r); display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700);
}
.cat-tile:hover .cat-icon { background: var(--blue-700); color: #fff; }
.cat-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.3; }
.cat-count { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }

.loc-tile {
  position: relative; border-radius: var(--r); overflow: hidden; display: block; aspect-ratio: 4/3;
  color: #fff; box-shadow: var(--sh-1);
}
.loc-tile svg:not(.ico), .loc-tile img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.loc-tile:hover svg:not(.ico), .loc-tile:hover img { transform: scale(1.06); }
.loc-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,28,70,0) 22%, rgba(10,28,70,.55) 55%, rgba(10,28,70,.94) 100%);
}
.loc-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: .85rem .9rem; z-index: 2; }
.loc-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.loc-blurb { display: block; font-size: .78rem; color: #CFDAF5; line-height: 1.35; margin-top: .15rem; }
.loc-tile:hover { text-decoration: none; }

/* ---------------------------- value props ------------------------- */

.vp { display: flex; gap: .9rem; }
.vp-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--gold-50); color: var(--gold-600); border: 1px solid var(--gold-100);
}
.vp h3 { font-size: 1.03rem; margin-bottom: .25rem; }
.vp p { font-size: .9rem; color: var(--muted); margin: 0; }

.steps { counter-reset: step; display: grid; gap: 1.4rem; }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue-700); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: .95rem;
}
.section-dark .step::before { background: var(--gold); color: var(--blue-900); }
.step h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.step p { font-size: .9rem; margin: 0; }
.section-dark .step p { color: #B9C7EA; }

/* --------------------------- testimonials ------------------------- */

.rail { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; flex: 0 0 86%; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--blue-100); border-radius: 8px; }
.rail-nav { display: flex; gap: .5rem; }
.rail-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  cursor: pointer; display: grid; place-items: center; color: var(--blue-700);
}
.rail-nav button:hover { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }

.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem; height: 100%;
}
.quote-mark { font-family: var(--font-head); font-size: 3rem; line-height: .6; color: var(--gold); }
.quote-card blockquote { margin: 0; font-size: .96rem; color: var(--body); }
.quote-who { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line-2); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-head); font-weight: 800; color: #fff; font-size: .95rem;
}
.quote-name { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .94rem; }
.quote-meta { font-size: .8rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: .1em; font-size: .9rem; }

/* ------------------------------ blog ------------------------------ */

.b-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.b-card:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.b-media { aspect-ratio: 16/9; overflow: hidden; background: var(--blue-50); }
.b-media svg:not(.ico), .b-media img { width: 100%; height: 100%; object-fit: cover; }
.b-body { padding: 1.1rem; display: flex; flex-direction: column; flex: 1; }
.b-cat { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); font-family: var(--font-head); margin-bottom: .4rem; }
.b-card h3 { font-size: 1.06rem; margin-bottom: .4rem; line-height: 1.34; }
.b-card h3 a { color: var(--ink); }
.b-card h3 a:hover { color: var(--blue-700); text-decoration: none; }
.b-card p { font-size: .89rem; color: var(--muted); }
.b-meta { display: flex; gap: .8rem; font-size: .78rem; color: var(--muted); margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--line-2); flex-wrap: wrap; }

/* --------------------------- cta + news --------------------------- */

.cta-banner {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-700) 60%, var(--blue-600));
  color: #fff; border-radius: var(--r-xl); padding: 2.2rem 1.5rem; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(212,160,23,.22);
}
.cta-banner::after {
  content: ''; position: absolute; left: -80px; bottom: -110px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,255,255,.07);
}
.cta-inner { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #D3DDF7; max-width: 58ch; }
.cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }

.newsletter { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; }
.newsletter form { display: grid; gap: .7rem; margin-top: 1rem; }

/* ----------------------------- footer ----------------------------- */

.site-footer { background: var(--blue-900); color: #AFBEDF; padding-top: 3rem; margin-top: 0; }
.site-footer h4 {
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem;
  font-family: var(--font-head);
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 2px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--gold); }
.site-footer p { font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #C6D2F2; font-size: .9rem; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.footer-map { border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255,255,255,.14); margin-top: 1rem; }
.footer-map iframe { width: 100%; height: 190px; border: 0; display: block; filter: grayscale(.2); }
.footer-bottom {
  margin-top: 2.4rem; border-top: 1px solid rgba(255,255,255,.12); padding: 1.1rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem;
}
.footer-bottom nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.reg-note { font-size: .78rem; color: #8595BE; margin-top: 1rem; line-height: 1.6; }

/* floating whatsapp */
.float-wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 70; width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #06301A; display: grid; place-items: center; box-shadow: var(--sh-3);
  transition: .18s;
}
.float-wa:hover { transform: scale(1.08); color: #06301A; }

/* --------------------------- page header -------------------------- */

.page-head { background: var(--blue-800); color: #fff; padding: 2.4rem 0; position: relative; overflow: hidden; }
.page-head::after {
  content: ''; position: absolute; right: -80px; top: -100px; width: 340px; height: 340px;
  border-radius: 50%; background: rgba(212,160,23,.14);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin-bottom: .4rem; }
.page-head p { color: #C9D5F2; max-width: 70ch; margin: 0; }
.crumbs { font-size: .82rem; color: #A9B8DE; margin-bottom: .7rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.crumbs a { color: #D8E1F8; }
.crumbs span { opacity: .6; }

/* --------------------------- listings page ------------------------ */

.listing-layout { display: grid; gap: 1.6rem; grid-template-columns: 1fr; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem;
}
.filters h3 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.filter-group { border-top: 1px solid var(--line-2); padding: .9rem 0; }
.filter-group:first-of-type { border-top: 0; }
.filter-group > h4 {
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .6rem; font-family: var(--font-head); font-weight: 700;
}
.check-list { display: grid; gap: .45rem; }
.check {
  display: flex; align-items: center; gap: .55rem; font-size: .89rem; cursor: pointer; color: var(--body);
}
.check input { width: 17px; height: 17px; accent-color: var(--blue-700); cursor: pointer; flex-shrink: 0; }
.check .n { margin-left: auto; font-size: .78rem; color: var(--muted); }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 100px; padding: .33rem .75rem;
  font-size: .82rem; cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--body);
}
.chip[aria-pressed="true"] { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

.toolbar {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .9rem;
}
.toolbar .count { font-size: .9rem; color: var(--muted); margin-right: auto; }
.toolbar .count strong { color: var(--ink); font-family: var(--font-head); }
.toolbar select { padding: .5rem .6rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: .87rem; background: #fff; }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.view-toggle button { border: 0; background: #fff; padding: .5rem .6rem; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.view-toggle button[aria-pressed="true"] { background: var(--blue-700); color: #fff; }
.filter-open-btn { display: inline-flex; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.active-filters .tag {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--blue-50); border: 1px solid var(--blue-100);
  color: var(--blue-700); border-radius: 100px; padding: .25rem .5rem .25rem .7rem; font-size: .8rem; font-weight: 500;
}
.active-filters .tag button { border: 0; background: transparent; cursor: pointer; color: inherit; font-size: 1rem; line-height: 1; padding: 0 .2rem; }

.empty-state { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty-state svg { margin: 0 auto 1rem; color: var(--blue-400); }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination button, .pagination a {
  min-width: 40px; height: 40px; padding: 0 .7rem; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r-sm); display: grid; place-items: center; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--body);
}
.pagination button[aria-current="true"] { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

#map-panel { height: 460px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 1.4rem; background: var(--blue-50); }
#map-panel iframe { width: 100%; height: 100%; border: 0; }

/* ------------------------- property detail ------------------------ */

.detail-layout { display: grid; gap: 1.8rem; grid-template-columns: 1fr; align-items: start; }
.gallery { display: grid; gap: .5rem; }
.gallery-main {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/2; background: var(--blue-50);
  border: 1px solid var(--line);
}
.gallery-main > img, .gallery-main svg:not(.ico) { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.gallery-thumbs button {
  border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; padding: 0; cursor: pointer;
  aspect-ratio: 3/2; background: var(--blue-50);
}
.gallery-thumbs button[aria-current="true"] { border-color: var(--gold); }
.gallery-thumbs img, .gallery-thumbs svg:not(.ico) { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center;
  color: var(--blue-800); box-shadow: var(--sh-2); z-index: 3;
}
.gallery-nav.prev { left: .7rem; } .gallery-nav.next { right: .7rem; }
.gallery-counter {
  position: absolute; right: .7rem; bottom: .7rem; background: rgba(10,28,70,.8); color: #fff;
  padding: .25rem .6rem; border-radius: 100px; font-size: .78rem; z-index: 3;
}

.lightbox { position: fixed; inset: 0; background: rgba(8,16,38,.94); z-index: 200; display: none; place-items: center; padding: 1rem; }
.lightbox[data-open="true"] { display: grid; }
.lightbox-img { max-width: min(1100px, 94vw); max-height: 86vh; border-radius: var(--r); overflow: hidden; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; font-size: 1.4rem; }
.lightbox .gallery-nav { background: rgba(255,255,255,.16); color: #fff; }

.detail-title-row { display: flex; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1.2rem; }
.detail-price { font-family: var(--font-head); font-size: clamp(1.5rem,3.4vw,2rem); font-weight: 800; color: var(--blue-700); line-height: 1.1; }
.detail-price .per { font-size: .95rem; font-weight: 500; color: var(--muted); }
.detail-price small { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); margin-top: .2rem; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fact { background: #fff; padding: .85rem .9rem; }
.fact .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-family: var(--font-head); font-weight: 700; }
.fact .v { font-weight: 600; color: var(--ink); font-size: .95rem; margin-top: .15rem; }

.d-block { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; margin-bottom: 1.4rem; }
.d-block > h2 { font-size: 1.28rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line-2); }
.d-block > h2 .sub { font-size: .8rem; font-weight: 500; color: var(--muted); display: block; margin-top: .2rem; font-family: var(--font-body); letter-spacing: 0; }
.prose p:last-child { margin-bottom: 0; }

.def-list { display: grid; gap: .8rem; }
.def-list > div { display: grid; gap: .15rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line-2); }
.def-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.def-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; font-family: var(--font-head); }
.def-list dd { margin: 0; color: var(--ink); font-size: .94rem; }

.amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.amenity { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--body); }
.amenity svg { color: var(--verify); flex-shrink: 0; }

.nearby-grid { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.nearby { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; background: var(--blue-50); border-radius: var(--r-sm); }
.nearby .ni { width: 34px; height: 34px; border-radius: var(--r-sm); background: #fff; display: grid; place-items: center; color: var(--blue-700); flex-shrink: 0; }
.nearby .nl { font-size: .89rem; color: var(--ink); font-weight: 500; }
.nearby .nd { margin-left: auto; font-size: .82rem; color: var(--muted); font-weight: 600; font-family: var(--font-head); white-space: nowrap; }

.map-embed { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

.sticky-side { position: sticky; top: 92px; display: grid; gap: 1.2rem; }
.agent-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.agent-card-head { background: var(--blue-800); color: #fff; padding: 1.2rem; display: flex; gap: .9rem; align-items: center; }
.agent-card-head .avatar { width: 60px; height: 60px; font-size: 1.2rem; border: 2px solid rgba(255,255,255,.3); }
.agent-card-head .an { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.agent-card-head .ar { font-size: .8rem; color: #BCCBEE; }
.agent-card-body { padding: 1.1rem; display: grid; gap: .6rem; }
.agent-stat { display: flex; justify-content: space-between; font-size: .86rem; padding: .3rem 0; border-bottom: 1px solid var(--line-2); }
.agent-stat:last-of-type { border-bottom: 0; }
.agent-stat span:first-child { color: var(--muted); }
.agent-stat span:last-child { font-weight: 600; color: var(--ink); }

.share-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-row button, .share-row a {
  flex: 1; min-width: 90px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm);
  padding: .55rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-size: .84rem; color: var(--body); font-weight: 500;
}
.share-row button:hover, .share-row a:hover { border-color: var(--blue-400); color: var(--blue-700); text-decoration: none; }

/* ------------------------------ forms ----------------------------- */

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; }
.form-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.form-row-2 { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
.form-note { font-size: .8rem; color: var(--muted); }
.err { color: var(--danger); font-size: .8rem; margin-top: .25rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.form-status { padding: .8rem 1rem; border-radius: var(--r-sm); font-size: .9rem; margin-bottom: 1rem; display: none; }
.form-status.ok { display: block; background: var(--verify-bg); color: var(--verify); border: 1px solid #BFE0CB; }
.form-status.bad { display: block; background: #FDECEA; color: var(--danger); border: 1px solid #F3C6C2; }

/* multi-step */
.stepper { display: flex; gap: .5rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.stepper li { list-style: none; display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); }
.stepper .dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem;
  background: var(--blue-50); color: var(--blue-700); font-weight: 700; font-family: var(--font-head);
  border: 1.5px solid var(--blue-100);
}
.stepper li[data-active="true"] { color: var(--ink); font-weight: 600; }
.stepper li[data-active="true"] .dot { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.stepper li[data-done="true"] .dot { background: var(--verify); border-color: var(--verify); color: #fff; }
.form-step { display: none; }
.form-step[data-active="true"] { display: block; }
.step-actions { display: flex; justify-content: space-between; gap: .7rem; margin-top: 1.4rem; }

/* --------------------------- calculators -------------------------- */

.calc-layout { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.calc-out { background: var(--blue-800); color: #fff; border-radius: var(--r-lg); padding: 1.6rem; text-align: center; }
.calc-out .big { font-family: var(--font-head); font-size: clamp(1.8rem,5vw,2.6rem); font-weight: 800; color: var(--gold); line-height: 1.1; }
.calc-out .cap { font-size: .82rem; color: #BCCBEE; text-transform: uppercase; letter-spacing: .08em; }
.calc-rows { display: grid; gap: .5rem; margin-top: 1.2rem; text-align: left; }
.calc-rows > div { display: flex; justify-content: space-between; font-size: .9rem; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.calc-rows strong { color: #fff; }
.range-input { width: 100%; accent-color: var(--blue-700); }
.donut { width: 160px; height: 160px; margin: 0 auto; }

/* ------------------------------- faq ------------------------------ */

.acc { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; margin-bottom: .7rem; }
.acc summary {
  padding: 1rem 1.1rem; cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--ink);
  display: flex; gap: .8rem; align-items: flex-start; list-style: none; font-size: .98rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: '+'; margin-left: auto; font-size: 1.3rem; color: var(--blue-700); line-height: 1; flex-shrink: 0;
}
.acc[open] summary::after { content: '\2212'; }
.acc[open] summary { border-bottom: 1px solid var(--line-2); }
.acc .acc-body { padding: 1rem 1.1rem; font-size: .93rem; }
.acc .acc-body p:last-child { margin-bottom: 0; }

/* ------------------------- article / prose ------------------------ */

.article { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.article h2 { font-size: 1.35rem; margin-top: 2rem; }
.article h3 { font-size: 1.08rem; margin-top: 1.4rem; }
.article > *:first-child { margin-top: 0; }
.article ul, .article ol { padding-left: 1.2rem; margin-bottom: 1.1rem; }
.article li { margin-bottom: .5rem; }
.article table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.table-scroll { overflow-x: auto; margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: var(--r); }
.article th { background: var(--blue-50); text-align: left; padding: .7rem .8rem; font-family: var(--font-head); font-size: .82rem; color: var(--ink); white-space: nowrap; }
.article td { padding: .7rem .8rem; border-top: 1px solid var(--line-2); }
.callout {
  background: var(--gold-50); border-left: 4px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .95rem 1.1rem; margin-bottom: 1.2rem; font-size: .9rem; color: #5C4A16;
}
.callout p:last-child { margin-bottom: 0; }
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; }
.tag-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.tag-row a, .tag-pill {
  font-size: .78rem; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-700);
  padding: .2rem .6rem; border-radius: 100px;
}

/* ------------------------------ admin ----------------------------- */

.admin-shell { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.admin-side { background: var(--blue-900); border-radius: var(--r-lg); padding: 1rem; color: #B9C7EA; }
.admin-side nav { display: grid; gap: .2rem; }
.admin-side button {
  width: 100%; text-align: left; border: 0; background: transparent; color: #C6D2F2; padding: .65rem .8rem;
  border-radius: var(--r-sm); cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  display: flex; align-items: center; gap: .55rem;
}
.admin-side button:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side button[aria-current="true"] { background: var(--blue-700); color: #fff; }
.admin-panel { display: none; }
.admin-panel[data-active="true"] { display: block; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-bottom: 1.4rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }
.kpi .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; font-family: var(--font-head); }
.kpi .v { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--blue-700); line-height: 1.2; }
.kpi .d { font-size: .78rem; color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.data-table th { background: var(--blue-50); text-align: left; padding: .7rem .8rem; font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.data-table td { padding: .7rem .8rem; border-top: 1px solid var(--line-2); vertical-align: middle; }
.data-table tr:hover td { background: var(--blue-50); }
.status-pill { display: inline-block; padding: .18rem .55rem; border-radius: 100px; font-size: .74rem; font-weight: 700; font-family: var(--font-head); }
.status-new { background: var(--gold-50); color: var(--gold-600); border: 1px solid var(--gold-100); }
.status-contacted { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.status-closed { background: var(--verify-bg); color: var(--verify); border: 1px solid #BFE0CB; }
.status-active { background: var(--verify-bg); color: var(--verify); border: 1px solid #BFE0CB; }
.status-draft { background: #F1F0EC; color: var(--muted); border: 1px solid var(--line); }
.login-card { max-width: 420px; margin: 3rem auto; }
.bar { height: 8px; background: var(--blue-50); border-radius: 4px; overflow: hidden; min-width: 90px; }
.bar > i { display: block; height: 100%; background: var(--blue-700); }

/* ----------------------------- utility ---------------------------- */

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .6rem; }
.mb-2 { margin-bottom: 1.2rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.flex { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; }
.divider { height: 1px; background: var(--line); margin: 1.4rem 0; }
.pill-note {
  display: inline-flex; align-items: center; gap: .45rem; background: var(--verify-bg); color: var(--verify);
  border: 1px solid #BFE0CB; padding: .3rem .75rem; border-radius: 100px; font-size: .8rem; font-weight: 600;
}
[hidden] { display: none !important; }

/* --------------------------- breakpoints -------------------------- */

@media (min-width: 560px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .search-grid { grid-template-columns: repeat(2, 1fr); }
  .rail > * { flex-basis: 62%; }
  .nearby-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 800px) {
  :root { --gut: 28px; }
  .section { padding: 4.2rem 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.4rem; }
  .rail > * { flex-basis: 42%; }
  .hero-inner { padding-block: 5rem 3.4rem; }
  .search-grid { grid-template-columns: repeat(4, 1fr); }
  .search-body { padding: 1.4rem; }
  .amenity-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .admin-shell { grid-template-columns: 230px 1fr; }
  .calc-layout { grid-template-columns: 1.15fr .85fr; }
  .page-head { padding: 3.2rem 0; }
  .article { padding: 2.4rem; }
}

@media (min-width: 1000px) {
  .listing-layout { grid-template-columns: 268px 1fr; }
  .filter-open-btn { display: none; }
  .detail-layout { grid-template-columns: 1fr 340px; }
  .rail > * { flex-basis: 32%; }
  .grid-4 { gap: 1.4rem; }
}

@media (min-width: 1120px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .header-lang { display: inline-flex; }
}

@media (min-width: 1260px) {
  .header-cta { display: inline-flex; }
}

@media (max-width: 999px) {
  .filters {
    position: fixed; inset: 0; z-index: 95; border-radius: 0; overflow-y: auto;
    transform: translateX(-100%); transition: .24s ease; margin: 0;
  }
  .filters[data-open="true"] { transform: translateX(0); }
  .filters-close { display: inline-grid !important; }
}
.filters-close { display: none; }

/* The top bar is a desktop convenience — on phones it costs a screenful. */
@media (max-width: 700px) {
  .topbar .wrap { justify-content: space-between; min-height: 34px; }
  .topbar-left .ic:not(:first-child) { display: none; }
  .topbar-right .ic { display: none; }
  .hero-inner { padding-block: 2.4rem 2rem; }
}

/* ------------------------- photo credits -------------------------- */

.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.credit-row {
  display: flex; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .8rem;
}
.credit-row img { width: 160px; height: 107px; object-fit: cover; border-radius: calc(var(--r) - 4px); flex: 0 0 auto; }
.credit-row p { margin: .25rem 0 0; }
.credit-row code { font-size: .82em; background: var(--blue-50); padding: .1em .35em; border-radius: 4px; }

@media (max-width: 560px) {
  .credit-row { flex-direction: column; align-items: flex-start; }
  .credit-row img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}

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

@media print {
  .site-header, .topbar, .site-footer, .float-wa, .fav-btn, .share-row, .cta-banner { display: none !important; }
  body { background: #fff; }
  .d-block, .card { border: 1px solid #ccc; box-shadow: none; }
}
