/* ============================================================
   UrbanNest Real Estate — Public Frontend Stylesheet
   Premium, responsive, single-file. Design tokens:
   primary deep navy #0b3d2e · accent gold #d4af37 · light #f6faf7
   Font: Plus Jakarta Sans (+ system fallbacks)
   Breakpoints: 992 / 768 / 576
   ============================================================ */

:root {
  --primary: #0b3d2e;
  --primary-600: #0f4a38;
  --primary-700: #0a2f24;
  --primary-900: #07251b;
  --accent: #d4af37;
  --accent-600: #b3922c;
  --accent-soft: #f7efd8;
  --light: #f6faf7;
  --body-bg: #f2f7f3;
  --surface: #ffffff;
  --ink: #0f2b1f;
  --ink-2: #3b4d42;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e3ece5;
  --line-2: #d2e0d7;
  --success: #178a52;
  --success-bg: #e5f5ec;
  --danger: #d92d20;
  --danger-bg: #fdeceb;
  --warning: #b45309;
  --info: #2563eb;
  --info-bg: #e8effd;
  --whatsapp: #25d366;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-sm: 0 2px 10px rgba(16, 24, 40, .07);
  --shadow: 0 10px 30px -12px rgba(16, 24, 40, .16);
  --shadow-lg: 0 24px 55px -22px rgba(10, 20, 45, .32);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --header-h: 76px;
  --topbar-h: 40px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 800; line-height: 1.22; margin: 0 0 .45em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.container--wide { width: min(1360px, 100% - 40px); margin-inline: auto; }

/* ---------- Accessibility / helpers ---------- */
.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: -999px; top: 8px; z-index: 2000; background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.text-muted { color: var(--muted) !important; }
.text-center { text-align: center; }
.price { color: var(--primary); font-weight: 800; }
.bg-light { background: var(--light); }
.hide-desktop { display: none !important; }
@media (max-width: 991px) {
  .hide-mobile { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .95rem; line-height: 1; padding: 13px 22px;
  border-radius: 999px; border: 2px solid transparent; background: var(--primary);
  color: #fff; cursor: pointer; transition: all .22s ease; white-space: nowrap;
  text-decoration: none; letter-spacing: .01em;
}
.btn:hover { color: #fff; background: var(--primary-600); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--accent); color: #141414; box-shadow: 0 8px 20px -8px rgba(201, 162, 39, .65); }
.btn-gold:hover { background: #d9b238; color: #0f0f0f; box-shadow: 0 10px 24px -8px rgba(201, 162, 39, .75); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--primary); }
.btn-outline:hover { border-color: var(--primary); background: transparent; color: var(--primary); box-shadow: none; transform: none; }
.btn-outline-gold { background: transparent; border-color: var(--accent); color: var(--accent-600); }
.btn-outline-gold:hover { background: var(--accent); border-color: var(--accent); color: #141414; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--accent-soft); color: var(--primary); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-light { background: var(--light); color: var(--primary); }
.btn-light:hover { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-sm { padding: 9px 15px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* Icon buttons */
.btn-icon {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; color: var(--primary); font-size: 1.05rem; cursor: pointer; transition: all .2s ease;
}
.btn-icon:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-icon.active { background: var(--accent); border-color: var(--accent); color: #141414; }
.btn-icon.active:hover { background: var(--accent); color: #141414; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1; padding: 6px 10px; border-radius: 999px;
}
.badge-sale { background: #fef3e2; color: #a16207; }
.badge-rent { background: #e5efff; color: #1d4ed8; }
.badge-featured { background: linear-gradient(90deg, #d4af37, #e7c35c); color: #241a02; }
.badge-verified { background: var(--success-bg); color: var(--success); }
.badge-available { background: var(--success-bg); color: var(--success); }
.badge-sold, .badge-rented { background: #e7efe9; color: var(--muted); }
.badge-pending { background: var(--accent-soft); color: var(--warning); }
.badge-draft { background: #e7efe9; color: var(--muted); }
.badge-rejected { background: var(--danger-bg); color: var(--danger); }
.badge-new { background: var(--info-bg); color: var(--info); }
.badge-secondary { background: #e7efe9; color: var(--muted); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-warning { background: var(--accent-soft); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-success { background: var(--success-bg); color: var(--success); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .16em; color: var(--accent-600); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent); }

/* ---------- Section titles ---------- */
.sec { padding: 78px 0; }
.sec--alt { background: #fff; }
.sec--soft { background: var(--light); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 8px; }
.sec-head p { color: var(--muted); max-width: 560px; margin: 0; }
.sec-link { font-weight: 700; font-size: .93rem; color: var(--primary); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.sec-link:hover { color: var(--accent-600); }
.sec-link i { font-size: .8rem; transition: transform .2s ease; }
.sec-link:hover i { transform: translateX(3px); }
@media (max-width: 767px) {
  .sec { padding: 56px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
}

/* ============================================================
   HEADER  (topbar, sticky navbar, dropdowns, drawer)
   ============================================================ */
.site-header { position: sticky; top: calc(-1 * var(--topbar-h)); z-index: 900; }

/* Top utility bar */
.topbar { background: var(--primary-900); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--topbar-h); }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--accent); }
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a { font-size: .95rem; opacity: .9; }
.topbar-social a:hover { opacity: 1; transform: translateY(-1px); }
.quick-search { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 3px 4px 3px 12px; }
.quick-search input { background: transparent; border: 0; outline: 0; color: #fff; font-size: .8rem; width: 170px; padding: 4px 0; }
.quick-search input::placeholder { color: rgba(255,255,255,.55); }
.quick-search button { border: 0; background: var(--accent); color: #171204; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; }

/* Main navbar */
.navbar { position: relative; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(230,234,243,.7); transition: all .25s ease; z-index: 850; }
body.transparent-nav .site-header { position: fixed; top: 0; left: 0; right: 0; height: auto; z-index: 900; }
body.transparent-nav .topbar { display: none; }
body.transparent-nav .navbar { position: fixed; inset-inline: 0; top: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--primary-900) 74%, transparent), transparent); border-bottom: 0; }
body.transparent-nav .navbar { background: linear-gradient(180deg, rgba(7,37,27,.72), rgba(7,37,27,0)); }
body.transparent-nav .navbar.scrolled { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
body.transparent-nav .navbar.scrolled .brand-txt strong { color: var(--primary); }
body.transparent-nav .navbar.scrolled .brand-txt small { color: var(--muted); }

.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt strong { font-size: 1.24rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.brand-txt small { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .22em; font-weight: 700; }
body.transparent-nav .brand-txt strong { color: #fff; }
body.transparent-nav .brand-txt small { color: rgba(255,255,255,.7); }
body.transparent-nav .navbar:not(.scrolled) .brand img { filter: brightness(0) invert(1); }

/* Nav links */
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  font-weight: 700; font-size: .95rem; color: var(--ink-2);
}
.nav-link:hover { color: var(--primary); background: rgba(11, 61, 46, .06); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
body.transparent-nav .navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,.92); }
body.transparent-nav .navbar:not(.scrolled) .nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-link .caret { font-size: .65rem; opacity: .65; transition: transform .2s; }
.nav > li:hover .caret { transform: rotate(180deg); }

/* Dropdowns */
.dropdown { position: absolute; top: calc(100% + 12px); left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; }
.nav > li:hover .dropdown, .nav > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown.show-user { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu { display: block; }
.dropdown a { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.dropdown a:hover { background: var(--light); color: var(--primary); }
.dropdown a i { width: 20px; text-align: center; color: var(--accent-600); font-size: .95rem; }
.dropdown .dd-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); padding: 10px 13px 4px; }

/* Navbar actions */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-compare { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; padding: 9px 15px; border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--primary); background: #fff; }
.nav-compare:hover { border-color: var(--accent); color: var(--accent-600); }
.nav-compare .cmp-badge { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #141414; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
body.transparent-nav .navbar:not(.scrolled) .nav-compare { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; }
body.transparent-nav .navbar:not(.scrolled) .nav-compare:hover { color: #fff; }

/* Auth buttons in navbar */
.auth-btn { font-weight: 700; font-size: .93rem; padding: 10px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--primary); }
.auth-btn:hover { color: var(--accent-600); }
body.transparent-nav .navbar:not(.scrolled) .auth-btn { color: #fff; }
.auth-btn--solid { background: var(--accent); color: #141414 !important; }
.auth-btn--solid:hover { background: #d9b238; }

/* User chip + dropdown */
.user-chip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 6px 5px 5px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.user-chip:hover { border-color: var(--accent); color: var(--ink); }
.user-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-chip .uc-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.user-chip .caret { font-size: .7rem; color: var(--muted); }
body.transparent-nav .navbar:not(.scrolled) .user-chip { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff; }
.user-menu { right: 0; left: auto; min-width: 250px; }

/* Hamburger */
.hamburger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.hamburger span { width: 20px; height: 2px; border-radius: 2px; background: var(--primary); transition: all .25s ease; display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.transparent-nav .navbar:not(.scrolled) .hamburger { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
body.transparent-nav .navbar:not(.scrolled) .hamburger span { background: #fff; }

/* Mobile drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(10, 17, 33, .55); backdrop-filter: blur(3px); z-index: 1400; opacity: 0; visibility: hidden; transition: all .28s ease; }
.drawer-overlay.show { opacity: 1; visibility: visible; }
.mobile-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: #fff; z-index: 1500; transform: translateX(-102%); transition: transform .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.mobile-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px 24px; }
.drawer-body .nav-mobile { display: flex; flex-direction: column; gap: 2px; }
.drawer-body .nav-mobile a, .drawer-body .nav-mobile .dm-link { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 12px; font-weight: 700; color: var(--ink-2); font-size: 1rem; }
.drawer-body .nav-mobile a:hover, .drawer-body .nav-mobile .dm-link:hover { background: var(--light); color: var(--primary); }
.drawer-body .nav-mobile a i { width: 22px; text-align: center; color: var(--accent-600); }
.drawer-meta { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--light); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .83rem; color: var(--muted); }

/* Mobile sticky bottom nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: none; box-shadow: 0 -6px 24px -18px rgba(16,24,40,.35); }
.bottom-nav ul { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; font-size: .68rem; font-weight: 700; color: var(--muted); }
.bottom-nav a i { font-size: 1.14rem; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--primary); }
.bottom-nav a .cnt { position: absolute; }
.bottom-nav .bn-badge { position: relative; }
.bottom-nav .bn-badge .cmp-badge { position: absolute; top: -4px; right: -12px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #141414; font-size: .62rem; font-weight: 800; display: grid; place-items: center; }

/* Sticky header spacing on normal pages */
body:not(.transparent-nav) .site-header + main { min-height: 60vh; }
/* Hero sits under the absolutely positioned transparent header */
body.transparent-nav .hero, body.transparent-nav .page-hero { padding-top: calc(var(--topbar-h) + var(--header-h) + clamp(40px, 5vw, 64px)); }
body.transparent-nav .page-hero--short { padding-top: calc(var(--topbar-h) + var(--header-h) + 26px); }

/* ============================================================
   HERO + search
   ============================================================ */
.hero { position: relative; background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary) 45%, #155441 100%); color: #fff; padding: clamp(70px, 9vw, 130px) 0 0; overflow: hidden; }
.hero--img { background-image: linear-gradient(115deg, rgba(10, 18, 38, .88) 20%, rgba(19, 33, 62, .55) 60%, rgba(26, 43, 74, .4) 100%), var(--hero-bg-img, none); background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.22), transparent 65%); top: -200px; right: -140px; pointer-events: none; }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.12); bottom: -190px; left: -120px; pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 780px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #ffe9ad; margin-bottom: 20px; backdrop-filter: blur(6px); }
.hero-badge i { color: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); margin-bottom: 16px; letter-spacing: -.025em; }
.hero h1 .gold { color: var(--accent); }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 30px; }

/* Buy / Rent pill switch */
.pill-switch { display: inline-flex; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px; gap: 4px; backdrop-filter: blur(6px); }
.pill-switch button { border: 0; background: transparent; color: rgba(255,255,255,.85); font-weight: 800; font-size: .93rem; padding: 11px 26px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; transition: all .2s ease; }
.pill-switch button i { font-size: .95rem; }
.pill-switch button.active { background: var(--accent); color: #181102; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); }
.pill-switch--dark { background: var(--light); border-color: var(--line); }
.pill-switch--dark button { color: var(--muted); }
.pill-switch--dark button.active { background: var(--primary); color: #fff; }

/* Advanced search card */
.search-card { margin-top: 34px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; color: var(--ink-2); position: relative; }
.search-card .search-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.search-field label { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 7px; }
.search-field .field-wrap { position: relative; }
.search-field .field-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--primary-600); font-size: .92rem; z-index: 2; }
.search-field select, .search-field input { font-size: .95rem;
  width: 100%; border: 1.5px solid var(--line); background: var(--light); border-radius: 12px; padding: 12px 14px;
  font-weight: 600; color: var(--ink); outline: none; appearance: none; -webkit-appearance: none; transition: all .2s ease;
}
.search-field .field-wrap input { padding-left: 40px; }
.search-field select { padding-left: 40px; padding-right: 34px; 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' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.search-field select:focus, .search-field input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(201,162,39,.14); }
.search-go { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; font-weight: 800; }

/* Price sets (two option groups shown per mode) */
.price-set { display: contents; }
.price-set[hidden] { display: none; }

@media (max-width: 1200px) {
  .search-card .search-grid { grid-template-columns: repeat(4, 1fr); }
  .search-card .search-grid .search-go { grid-column: span 4; width: 100%; }
}
@media (max-width: 767px) {
  .search-card { margin-top: 24px; padding: 16px; border-radius: 18px; }
  .search-card .search-grid { grid-template-columns: 1fr 1fr; }
  .search-card .search-grid .f-location, .search-card .search-grid .search-go { grid-column: 1 / -1; }
}

/* Stats band inside hero bottom */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(36px, 5vw, 64px); padding: 26px 8px; border-top: 1px solid rgba(255,255,255,.14); position: relative; }
.stat { display: flex; align-items: center; gap: 14px; }
.stat i { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: rgba(201,162,39,.16); color: var(--accent); border: 1px solid rgba(201,162,39,.35); }
.stat .stat-num { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat .stat-label { font-size: .84rem; color: rgba(255,255,255,.7); }
@media (max-width: 767px) {
  .stats-band { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat i { width: 44px; height: 44px; font-size: 1.05rem; }
  .stat .stat-num { font-size: 1.3rem; }
}

/* ============================================================
   PROPERTY CARDS + grid
   ============================================================ */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); border: 1px solid var(--line); transition: transform .28s ease, box-shadow .28s ease; display: flex; flex-direction: column; }
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.p-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(140deg, #e6efe8, #dbe3f0); }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p-card:hover .p-card-media img { transform: scale(1.06); }
.p-card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 3; }
.p-card-badges .badge { box-shadow: var(--shadow-xs); }
.p-card-actions { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.p-card-actions .btn-icon { width: 38px; height: 38px; font-size: .92rem; background: rgba(255,255,255,.95); border-color: transparent; box-shadow: var(--shadow-xs); }
.p-card-actions .btn-icon.active { background: var(--accent); }
.p-card-price { position: absolute; left: 12px; bottom: 12px; z-index: 3; background: rgba(14, 24, 48, .82); backdrop-filter: blur(6px); color: #fff; padding: 8px 14px; border-radius: 12px; font-weight: 800; font-size: 1.08rem; line-height: 1.1; }
.p-card-price small { color: rgba(255,255,255,.75); font-size: .72rem; font-weight: 600; }
.p-card-price.sale::before, .p-card-price.rent::before { content: ""; }
.p-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-card-loc { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.p-card-loc i { color: var(--accent-600); }
.p-card-title { font-size: 1.06rem; font-weight: 800; color: var(--ink); line-height: 1.35; margin: 0; }
.p-card-title a { color: inherit; }
.p-card-title a:hover { color: var(--primary-600); }
.p-card-feats { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding-top: 4px; }
.p-feat { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--ink-2); padding: 6px 12px; background: var(--light); border-radius: 999px; }
.p-feat i { color: var(--muted); font-size: .88rem; }
.p-card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.p-card-agent { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.p-card-agent img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.p-card-agent span { font-size: .82rem; font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-card-agent small { display: block; font-weight: 600; color: var(--muted); font-size: .74rem; }
.p-card-date { font-size: .8rem; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
@media (max-width: 1199px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .property-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* Empty state + skeleton */
.empty-state { text-align: center; padding: 70px 24px; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--line-2); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, #eef4ef 25%, #f7f9fc 40%, #eef4ef 60%); background-size: 300% 100%; animation: sk 1.3s infinite; border-radius: var(--radius); }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skel-card { aspect-ratio: 4 / 3; border-radius: var(--radius); margin-bottom: 16px; }

/* ============================================================
   CATEGORY / LOCATION / AGENT CARDS
   ============================================================ */
.grid-cards { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1199px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; align-items: center; gap: 16px; transition: all .25s ease; position: relative; overflow: hidden; }
.cat-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--accent-soft); opacity: 0; transform: scale(.4); transition: all .3s ease; }
.cat-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card:hover::after { opacity: 1; transform: scale(1.15); }
.cat-icon { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(140deg, var(--primary), var(--primary-600)); color: var(--accent); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; box-shadow: 0 8px 18px -8px rgba(26,43,74,.5); transition: background .25s; }
.cat-card:hover .cat-icon { background: linear-gradient(140deg, var(--accent), #e2bc40); color: #1c1403; }
.cat-card h3 { font-size: 1.06rem; margin: 0 0 2px; }
.cat-card p { margin: 0; font-size: .84rem; color: var(--muted); font-weight: 600; }
.cat-card a { position: absolute; inset: 0; z-index: 3; }

.loc-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 190px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-xs); text-decoration: none; }
.loc-card .loc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s ease; }
.loc-card .loc-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,20,40,.05) 30%, rgba(10,17,33,.9) 100%); transition: background .3s; }
.loc-card:hover .loc-bg { transform: scale(1.07); }
.loc-card:hover { color: #fff; }
.loc-body { position: relative; z-index: 2; padding: 20px; width: 100%; }
.loc-body h3 { color: #fff; margin: 0 0 3px; font-size: 1.15rem; }
.loc-body p { color: rgba(255,255,255,.78); margin: 0; font-size: .84rem; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.loc-body p i { color: var(--accent); }

.agent-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: all .25s ease; position: relative; overflow: hidden; }
.agent-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: opacity .25s; }
.agent-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.agent-card:hover::before { opacity: 1; }
.agent-avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line-2), var(--shadow-sm); object-fit: cover; background: var(--light); }
.agent-card h3 { font-size: 1.12rem; margin-bottom: 3px; }
.agent-role { font-size: .84rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.agent-card .ac-company { font-size: .8rem; color: var(--accent-600); font-weight: 700; margin-bottom: 12px; }
.agent-meta { display: flex; justify-content: center; gap: 18px; font-size: .83rem; color: var(--muted); font-weight: 700; border-top: 1px dashed var(--line); padding-top: 13px; margin-bottom: 14px; }
.agent-meta span { display: inline-flex; align-items: center; gap: 6px; }
.agent-meta i { color: var(--accent-600); }
.agent-card .btn { width: 100%; }

/* ============================================================
   TESTIMONIAL SLIDER / STATS / CTA
   ============================================================ */
.ts-shell { position: relative; overflow: hidden; }
.ts-viewport { overflow: hidden; }
.ts-track { display: flex; transition: transform .55s cubic-bezier(.5,0,.2,1); }
.ts-slide { flex: 0 0 100%; padding: 6px; }
.ts-card { max-width: 780px; margin: 0 auto; text-align: center; background: #fff; border-radius: var(--radius-lg); padding: 46px 50px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative; }
.ts-quote { position: absolute; top: 24px; left: 34px; font-size: 3.2rem; color: var(--accent); opacity: .5; font-family: Georgia, serif; line-height: 1; }
.ts-stars { color: var(--accent); font-size: .95rem; letter-spacing: 3px; margin-bottom: 16px; }
.ts-card blockquote { margin: 0 0 22px; font-size: 1.1rem; color: var(--ink-2); line-height: 1.8; }
.ts-user { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ts-user img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--accent-soft); }
.ts-user strong { display: block; color: var(--ink); font-size: 1rem; }
.ts-user small { color: var(--muted); font-size: .83rem; font-weight: 600; }
.ts-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; }
.ts-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; color: var(--primary); font-size: 1rem; display: grid; place-items: center; transition: all .2s; }
.ts-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.ts-dots { display: flex; gap: 8px; }
.ts-dot { width: 9px; height: 9px; border-radius: 999px; border: 0; background: var(--line-2); padding: 0; transition: all .25s; }
.ts-dot.active { width: 26px; background: var(--accent); }
@media (max-width: 575px) { .ts-card { padding: 34px 24px; } .ts-card blockquote { font-size: 1rem; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--primary-900), var(--primary) 55%, #2c4a7c); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 70px); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.28), transparent 68%); right: -80px; bottom: -120px; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 560px; }
.cta-band .btn { position: relative; z-index: 2; flex-shrink: 0; }
@media (max-width: 767px) { .cta-band { flex-direction: column; text-align: center; align-items: flex-start; } }

/* ============================================================
   BREADCRUMBS / PAGINATION
   ============================================================ */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: .84rem; font-weight: 600; color: var(--muted); padding: 18px 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--line-2); font-size: .7rem; }
.breadcrumbs .current { color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }

.page-hero { background: linear-gradient(120deg, var(--primary-900), var(--primary) 60%, #28436f); color: #fff; padding: 52px 0 40px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.15); top: -140px; right: -90px; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 8px; position: relative; z-index: 2; }
.page-hero p { color: rgba(255,255,255,.8); margin: 0; max-width: 700px; position: relative; z-index: 2; }
.page-hero .breadcrumbs { color: rgba(255,255,255,.75); margin: 0; padding-bottom: 0; }
.page-hero .breadcrumbs a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .breadcrumbs .current { color: var(--accent); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination .pg-current {
  min-width: 44px; height: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .95rem; color: var(--ink-2); transition: all .2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-600); transform: translateY(-2px); }
.pagination .pg-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .pg-gap { min-width: 30px; border: 0; background: transparent; }
.pagination a.pg-arrow i { font-size: .8rem; }

/* ============================================================
   LISTING PAGE (sidebar filters + results)
   ============================================================ */
.listing-layout { display: grid; grid-template-columns: 292px 1fr; gap: 30px; align-items: start; padding-bottom: 70px; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(var(--header-h) + 18px); box-shadow: var(--shadow-xs); }
.filter-group { padding: 15px 0; border-bottom: 1px dashed var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-group h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.filter-group h4 i { font-size: .7rem; color: var(--line-2); transition: transform .2s; }
.filter-group.closed h4 i { transform: rotate(-90deg); }
.filter-group.closed .fg-body { display: none; }
.fg-body { display: grid; gap: 10px; }
.fg-body .fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-select, .filter-input { width: 100%; border: 1.5px solid var(--line); background: var(--light); border-radius: 10px; padding: 10px 11px; font-weight: 600; font-size: .9rem; color: var(--ink); outline: none; appearance: none; -webkit-appearance: none; transition: border .2s; }
.filter-select { padding-right: 30px; 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' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.filter-select:focus, .filter-input:focus { border-color: var(--accent); background-color: #fff; }
.fg-label { font-size: .76rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; display: block; }
.check-list { display: flex; flex-direction: column; gap: 8px; max-height: 190px; overflow-y: auto; padding-right: 4px; }
.check-line { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check-line input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.check-line .cnt { margin-left: auto; font-size: .76rem; color: var(--muted); background: var(--light); padding: 1px 8px; border-radius: 999px; font-weight: 700; }
.filter-actions { display: flex; gap: 8px; margin-top: 6px; }
.filter-actions .btn { flex: 1; padding: 11px 8px; font-size: .88rem; }

/* Results head */
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; box-shadow: var(--shadow-xs); }
.results-head .rh-count { font-weight: 700; color: var(--ink); }
.results-head .rh-count small { color: var(--muted); font-weight: 600; }
.results-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sort-wrap { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.sort-wrap select { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 30px 8px 14px; font-weight: 700; font-size: .86rem; color: var(--primary); background-color: var(--light); appearance: none; -webkit-appearance: none; 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' stroke='%230b3d2e' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; outline: none; }
.save-search-btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .85rem; color: var(--primary); padding: 9px 15px; border: 1.5px dashed var(--line-2); border-radius: 999px; background: #fff; }
.save-search-btn:hover { border-color: var(--accent); color: var(--accent-600); }
.mobile-filter-btn { display: none; }
@media (max-width: 1199px) { .listing-layout { grid-template-columns: 1fr; } .filter-panel { position: fixed; z-index: 1300; top: 0; bottom: 0; left: 0; width: min(330px, 90vw); border-radius: 0 var(--radius) var(--radius) 0; overflow-y: auto; transform: translateX(-105%); transition: transform .3s ease; box-shadow: var(--shadow-lg); }
  .filter-panel.open { transform: translateX(0); }
  .filter-panel .filter-close { display: flex !important; }
  .mobile-filter-btn { display: inline-flex; }
}
.filter-close { display: none; align-items: center; justify-content: space-between; font-weight: 800; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.filter-close button { border: 0; background: var(--light); width: 34px; height: 34px; border-radius: 10px; }

/* listing page results toolbar (mobile filter chip row) */
.chipbar { display: none; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.chip i { color: var(--accent-600); }
.chip--filter { border-style: dashed; border-color: var(--line-2); }
.chip--filter:hover { border-color: var(--accent); color: var(--primary); }
@media (max-width: 1199px) { .chipbar { display: flex; } }

/* ============================================================
   PROPERTY DETAILS
   ============================================================ */
.detail-wrap { padding: 34px 0 70px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
@media (max-width: 1199px) { .detail-layout { grid-template-columns: 1fr; } .detail-side { max-width: 560px; } }
.detail-side { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 22px; }
@media (max-width: 1199px) { .detail-side { position: static; } }

/* Gallery */
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-xs); border: 1px solid var(--line); background: #eaf2ec; aspect-ratio: 16 / 10.5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-main .gm-count { position: absolute; bottom: 14px; right: 14px; background: rgba(14,24,48,.78); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; backdrop-filter: blur(4px); z-index: 4; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 86px; height: 66px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); padding: 0; background: #eaf2ec; position: relative; cursor: pointer; transition: all .2s ease; flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--accent); transform: translateY(-2px); }
.thumb.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,162,39,.2); }
.thumb-more { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: .82rem; border-color: var(--primary); }

/* Title panel */
.detail-top { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px; box-shadow: var(--shadow-xs); }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.detail-head-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-top h1 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-bottom: 10px; }
.detail-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.detail-sub span { display: inline-flex; align-items: center; gap: 8px; }
.detail-sub i { color: var(--accent-600); }
.detail-price-box { text-align: right; flex-shrink: 0; }
.detail-price-box .dprice { font-size: 1.85rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.detail-price-box .dprice small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.detail-price-box .dsub { font-size: .8rem; color: var(--muted); font-weight: 600; }
.detail-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.detail-actions .btn-icon { width: 46px; height: 46px; }

/* Generic white panel */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px; box-shadow: var(--shadow-xs); }
.panel h2 { font-size: 1.28rem; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.panel h2 i { color: var(--accent-600); font-size: 1.1rem; }
.panel h2 .h2-sub { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--muted); }

/* Overview grid / info table */
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ov-item { background: #fff; padding: 15px 17px; display: flex; flex-direction: column; gap: 3px; }
.ov-item .ov-label { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); display: inline-flex; align-items: center; gap: 7px; }
.ov-item .ov-label i { color: var(--accent-600); font-size: .9rem; }
.ov-item .ov-value { font-weight: 800; color: var(--ink); font-size: .98rem; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 11px 4px; border-bottom: 1px dashed var(--line); font-size: .94rem; vertical-align: top; }
.info-table tr:last-child td { border-bottom: 0; }
.info-table td:first-child { color: var(--muted); font-weight: 600; width: 46%; }
.info-table td:last-child { color: var(--ink); font-weight: 700; text-align: right; }
@media (max-width: 767px) { .overview-grid { grid-template-columns: repeat(2, 1fr); } }

/* Amenity chips */
.amenity-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.amenity-chip { display: inline-flex; align-items: center; gap: 9px; background: var(--light); border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--ink-2); transition: all .2s; }
.amenity-chip i { color: var(--accent-600); }
.amenity-chip:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Rent terms panel */
.rent-terms { background: linear-gradient(160deg, #fbf8f0, #fff 55%); border: 1px solid #ecd9a8; border-radius: var(--radius); padding: 4px 26px 22px; }
.rent-terms .rt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px dashed #e3d2a4; padding: 16px 0 14px; }
.rent-terms .rt-head .rt-price { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.rent-terms .rt-head .rt-price small { font-size: .85rem; color: var(--muted); font-weight: 700; }
.rent-terms .rt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 18px; margin-top: 6px; }
.rt-item { padding: 13px 0; border-bottom: 1px dashed #eee0c0; }
.rt-item:last-child { border-bottom: 0; }
.rt-item .rt-label { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.rt-item .rt-value { font-weight: 800; color: var(--ink); font-size: .98rem; }
.rt-value .included { color: var(--success); font-size: .8rem; font-weight: 800; margin-left: 6px; }
@media (max-width: 767px) { .rent-terms .rt-grid { grid-template-columns: 1fr 1fr; } }

/* Map + video */
.map-frame { width: 100%; height: 380px; border: 0; display: block; border-radius: 14px; filter: saturate(.92); }
.video-embed { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #0b1120; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-link { display: inline-flex; align-items: center; gap: 9px; background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; }
.tour-link:hover { background: var(--primary-600); color: #fff; }

/* Agent side card */
.agent-side-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-xs); }
.agent-side-card .agent-avatar { width: 104px; height: 104px; }
.agent-side-card h3 { margin-bottom: 4px; }
.agent-side-card .as-role { color: var(--muted); font-size: .88rem; margin-bottom: 2px; }
.agent-side-card .as-co { color: var(--accent-600); font-weight: 800; font-size: .9rem; margin-bottom: 14px; }
.as-contacts { display: grid; gap: 9px; margin-bottom: 16px; }
.as-contacts a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 12px; font-weight: 800; font-size: .92rem; border: 1.5px solid var(--line); color: var(--primary); transition: all .2s; }
.as-contacts a i { width: 20px; text-align: center; }
.as-contacts a:hover { border-color: var(--primary); transform: translateY(-2px); }
.as-contacts .call-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.as-contacts .wa-btn:hover { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.agent-reply { font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.agent-reply i { color: var(--success); }
.as-bio { font-size: .86rem; color: var(--muted); text-align: left; margin-bottom: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }

/* Share row */
.share-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .95rem; transition: all .2s ease; }
.share-btn:hover { transform: translateY(-3px); color: #fff; box-shadow: var(--shadow-sm); }
.share-fb { background: #1877f2; } .share-x { background: #111; } .share-wa { background: #25d366; } .share-li { background: #0a66c2; } .share-tg { background: #229ed9; }

/* Enquiry form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-xs); }
.form-card h2 { font-size: 1.28rem; margin-bottom: 4px; }
.form-card .fc-sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }

/* ============================================================
   FORMS & AUTH
   ============================================================ */
.form-grid { display: grid; gap: 16px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 575px) { .form-grid-2 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 15px; font-weight: 500;
  color: var(--ink); background: var(--light); outline: none; transition: all .2s ease; font-size: .95rem;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 34px; 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' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(201,162,39,.13); }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.field-error { font-size: .8rem; color: var(--danger); font-weight: 600; margin-top: 5px; }
.field input.invalid { border-color: var(--danger); background: #fffbfb; }
.form-note { font-size: .86rem; color: var(--muted); text-align: center; margin-top: 18px; }
.form-note a { font-weight: 800; }

.auth-shell { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 56px 0; }
.auth-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 38px; box-shadow: var(--shadow); }
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo img { width: 58px; margin: 0 auto 8px; }
.auth-logo strong { font-size: 1.35rem; color: var(--primary); }
.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: .93rem; }
.auth-alt { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; color: var(--muted-2); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.auth-alt::before, .auth-alt::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.password-toggle { position: relative; }
.password-toggle .pt-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); padding: 8px; border-radius: 8px; }
.password-toggle .pt-btn:hover { color: var(--primary); }
.alert { border-radius: 12px; padding: 13px 16px; font-size: .9rem; font-weight: 600; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.alert i { margin-top: 2px; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f6c9c6; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #c2e8d3; }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid #c6d9fb; }

/* Checkbox / radio styled */
.opt-grid { display: grid; gap: 10px; }
.opt-line { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); padding: 12px 15px; border-radius: 12px; cursor: pointer; transition: all .2s; background: #fff; }
.opt-line:hover { border-color: var(--line-2); }
.opt-line input { width: 18px; height: 18px; accent-color: var(--primary); }
.opt-line .ol-txt { font-weight: 700; color: var(--ink); font-size: .92rem; }
.opt-line .ol-sub { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.opt-line.selected { border-color: var(--accent); background: var(--accent-soft); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s; }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.faq-q { width: 100%; border: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 24px; font-weight: 800; font-size: 1.02rem; color: var(--ink); }
.faq-q .faq-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--light); color: var(--primary); display: grid; place-items: center; font-size: .85rem; flex-shrink: 0; transition: all .25s ease; }
.faq-item.open .faq-ic { background: var(--accent); color: #141414; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 24px 20px; color: var(--muted); font-size: .95rem; line-height: 1.75; }
.faq-a-inner p:last-child { margin: 0; }

/* ============================================================
   BLOG CARDS & ARTICLE
   ============================================================ */
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .25s ease; box-shadow: var(--shadow-xs); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-media { aspect-ratio: 16/9.5; overflow: hidden; background: #e6efe8; position: relative; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-media img { transform: scale(1.06); }
.blog-cat { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #201803; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 6px 11px; border-radius: 999px; }
.blog-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 15px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.blog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-meta i { color: var(--accent-600); }
.blog-body h3 { font-size: 1.12rem; margin: 0; line-height: 1.4; }
.blog-body h3 a { color: var(--ink); }
.blog-body h3 a:hover { color: var(--primary-600); }
.blog-body p { color: var(--muted); font-size: .9rem; margin: 0; }
.blog-more { margin-top: auto; font-weight: 800; font-size: .88rem; color: var(--primary); display: inline-flex; align-items: center; gap: 7px; }
.blog-more i { font-size: .75rem; transition: transform .2s; }
.blog-more:hover i { transform: translateX(3px); }

/* Article */
.article { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-xs); overflow: hidden; }
.article-hero { aspect-ratio: 21/9; background: #e6efe8; overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: clamp(24px, 5vw, 54px); }
.article-body h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 10px 0 8px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .86rem; font-weight: 600; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta i { color: var(--accent-600); }
.article-content { color: var(--ink-2); font-size: 1.03rem; line-height: 1.85; }
.article-content p { margin-bottom: 1.2em; }
.article-content h2 { font-size: 1.4rem; margin: 1.6em 0 .6em; }
.article-content h3 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
.article-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1.2em; }
.article-content li { margin-bottom: .4em; }
.article-content blockquote { border-left: 4px solid var(--accent); background: var(--light); padding: 14px 20px; border-radius: 0 12px 12px 0; margin: 1.4em 0; color: var(--ink); font-weight: 600; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.tag { background: var(--light); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .8rem; font-weight: 700; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--primary-900); color: rgba(255,255,255,.78); margin-top: 20px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 44px; }
.footer-about .brand img { filter: brightness(0) invert(1); }
.footer-about .brand-txt strong { color: #fff; }
.footer-about .brand-txt small { color: rgba(255,255,255,.6); }
.footer-about p { margin: 18px 0 20px; font-size: .92rem; line-height: 1.8; color: rgba(255,255,255,.66); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); font-size: .95rem; transition: all .2s ease; border: 1px solid rgba(255,255,255,.1); }
.footer-social a:hover { background: var(--accent); color: #171204; transform: translateY(-3px); border-color: var(--accent); }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2.5px; border-radius: 2px; background: var(--accent); }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(255,255,255,.66); font-size: .92rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: all .18s; }
.footer-links a i { font-size: .62rem; color: var(--accent); transition: transform .18s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: 13px; margin-bottom: 15px; font-size: .92rem; line-height: 1.6; color: rgba(255,255,255,.66); }
.footer-contact i { color: var(--accent); margin-top: 4px; width: 16px; text-align: center; font-size: .95rem; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.66); }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem; color: rgba(255,255,255,.55); }
.footer-bottom-in a { color: rgba(255,255,255,.7); font-weight: 600; }
.footer-bottom-in a:hover { color: var(--accent); }
.dev-credit { display: inline-flex; align-items: center; gap: 7px; }
.dev-credit i { color: var(--accent); }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; padding: 48px 0 36px; } .site-footer { padding-bottom: 58px; } }

/* ============================================================
   COMPARE BAR / FLOAT BUTTONS / BACK TO TOP
   ============================================================ */
.compare-bar { position: fixed; bottom: 84px; right: 20px; left: 20px; z-index: 1100; display: none; }
.compare-bar.show { display: block; }
.compare-bar-in { max-width: 720px; margin: 0 auto; background: var(--primary); color: #fff; border-radius: 999px; padding: 12px 12px 12px 24px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 16px; animation: cmpUp .35s ease; }
@keyframes cmpUp { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.compare-bar-in .cb-txt { font-weight: 700; font-size: .93rem; display: flex; align-items: center; gap: 10px; }
.compare-bar-in .cb-txt .cb-count { background: var(--accent); color: #141414; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: .86rem; }
.compare-bar-in .cb-clear { margin-left: auto; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: .8rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.compare-bar-in .cb-clear:hover { background: rgba(255,255,255,.22); }
.compare-bar-in a.cb-go { background: var(--accent); color: #141414; font-weight: 800; padding: 11px 22px; border-radius: 999px; white-space: nowrap; }
.compare-bar-in a.cb-go:hover { background: #e2bc40; color: #141414; }

.wa-float, .call-float, .to-top {
  position: fixed; right: 20px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: 0 14px 28px -10px rgba(16,24,40,.4); z-index: 1150; transition: all .22s ease; font-size: 1.35rem; border: 0;
}
.wa-float { bottom: 150px; background: var(--whatsapp); }
.call-float { bottom: 214px; background: var(--primary); }
.wa-float:hover, .call-float:hover { transform: translateY(-4px) scale(1.05); color: #fff; }
.to-top { bottom: 20px; right: 20px; background: var(--primary); opacity: 0; visibility: hidden; transform: translateY(12px); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); color: #141414; }
@media (max-width: 575px) {
  .wa-float { bottom: calc(72px + 16px); }
  .call-float { bottom: calc(72px + 80px); }
  .to-top { bottom: calc(72px + 16px); }
  .compare-bar { bottom: calc(72px + 12px); }
  body.bottom-nav-present .site-footer { padding-bottom: 66px; }
}
@media (max-width: 575px) { .compare-bar-in { border-radius: 20px; flex-wrap: wrap; padding: 12px 16px; } }

/* ============================================================
   TOASTS
   ============================================================ */
#toastBox { position: fixed; top: 22px; right: 22px; z-index: 2000; display: flex; flex-direction: column; gap: 12px; max-width: min(370px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 15px 18px; border-left: 5px solid var(--primary); animation: toastIn .35s cubic-bezier(.34,1.4,.64,1); position: relative; overflow: hidden; }
.toast.out { animation: toastOut .3s ease forwards; }
.toast i { font-size: 1.2rem; margin-top: 1px; }
.toast-success { border-left-color: var(--success); } .toast-success i { color: var(--success); }
.toast-error { border-left-color: var(--danger); } .toast-error i { color: var(--danger); }
.toast-info { border-left-color: var(--info); } .toast-info i { color: var(--info); }
.toast-warning { border-left-color: var(--accent); } .toast-warning i { color: var(--accent-600); }
.toast .t-txt { font-size: .9rem; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.toast .t-close { margin-left: auto; border: 0; background: transparent; color: var(--muted-2); padding: 2px 0 0 8px; }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--accent); animation: tp 4.2s linear forwards; border-radius: 0 3px 3px 0; }
@keyframes tp { from { width: 100%; } to { width: 0; } }
.flash-stash { display: none; }
@media (max-width: 575px) { #toastBox { top: 12px; right: 12px; left: 12px; max-width: none; } }

/* ============================================================
   MODAL / LIGHTBOX
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(8, 14, 28, .88); z-index: 1800; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: all .25s ease; backdrop-filter: blur(4px); }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal { background: #fff; border-radius: var(--radius-lg); width: min(520px, 100%); max-height: 88vh; overflow-y: auto; padding: 30px; transform: translateY(16px) scale(.98); transition: transform .25s ease; }
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal-close { float: right; border: 0; background: var(--light); width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; color: var(--muted); }
.modal-close:hover { background: var(--danger); color: #fff; }
.lightbox { position: fixed; inset: 0; z-index: 1900; background: rgba(6, 11, 24, .95); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.lightbox.show { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; color: rgba(255,255,255,.8); font-weight: 700; font-size: .9rem; }
.lb-close { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; }
.lb-close:hover { background: var(--danger); }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 18px; min-height: 0; }
.lb-stage img { max-width: min(1080px, 86vw); max-height: 76vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.lb-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 1.05rem; flex-shrink: 0; transition: all .2s; }
.lb-arrow:hover { background: var(--accent); border-color: var(--accent); color: #141414; }
.lb-thumbs { display: flex; justify-content: center; gap: 10px; padding: 14px 20px 18px; overflow-x: auto; }
.lb-thumbs .thumb { width: 70px; height: 52px; }
.lb-thumbs .thumb.active { border-color: var(--accent); }
.lb-caption { text-align: center; color: rgba(255,255,255,.7); font-size: .82rem; padding: 0 20px 14px; }
@media (max-width: 575px) { .lb-arrow { width: 40px; height: 40px; } }

/* ============================================================
   GENERIC PAGE (CMS) / MISC
   ============================================================ */
.cms-body { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(24px, 4vw, 46px); box-shadow: var(--shadow-xs); }
.cms-body h2 { font-size: 1.45rem; margin: 1.4em 0 .5em; }
.cms-body h2:first-child { margin-top: 0; }
.cms-body h3 { font-size: 1.15rem; }
.cms-body p { margin-bottom: 1.1em; }
.cms-body ul { list-style: disc; padding-left: 22px; margin-bottom: 1.1em; }
.cms-body li { margin-bottom: .4em; }
.cms-body a { font-weight: 600; color: var(--accent-600); text-decoration: underline; text-underline-offset: 3px; }

/* lazy-load fade */
.lazy-img { opacity: 0; transition: opacity .45s ease; }
.lazy-img.loaded { opacity: 1; }

/* Hero over light pages (small strip pages) */
.page-top-strip { background: linear-gradient(115deg, var(--primary-900), var(--primary)); color: #fff; padding: 46px 0 40px; }

/* ============================================================
   RESPONSIVE / FINAL UTILITIES
   ============================================================ */
@media (max-width: 991px) {
  :root { --topbar-h: 0px; }
  .topbar { display: none !important; }
  body.transparent-nav .navbar { top: 0; }
  body.transparent-nav .navbar.scrolled { top: 0; }
  body.transparent-nav .hero, body.transparent-nav .page-hero { padding-top: calc(var(--header-h) + 46px); }
  .nav, .nav-actions .auth-btn--solid, .nav-actions .user-chip { display: none; }
  .nav-actions .hide-mobile { display: none !important; }
  .hamburger { display: inline-flex; }
  .bottom-nav { display: block; }
  .navbar-inner { min-height: 68px; }
  body { padding-bottom: 64px; }
  .sec { padding: 56px 0; }
  .listing-layout { padding-bottom: 40px; }
  .detail-wrap { padding-bottom: 30px; }
}
/* bottom-nav reserve space only when footer present (all public pages) */
@media (min-width: 992px) { .bottom-nav { display: none !important; } }

@media (max-width: 767px) {
  .container { width: min(100% - 30px, 1240px); }
  .p-card-price { font-size: 1rem; }
  .detail-top, .panel, .form-card { padding: 20px 18px; }
  .detail-actions .btn { flex: 1; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .rt-grid { grid-template-columns: 1fr !important; }
  .info-table td:first-child { width: 42%; }
}

@media (max-width: 575px) {
  .container { width: calc(100% - 24px); }
  .btn-lg { padding: 14px 22px; }
  .nav-compare .cmp-label { display: none; }
  .nav-compare { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand-txt strong { font-size: 1.1rem; }
  .brand-txt small { display: none; }
  .gallery-thumbs .thumb { width: 70px; height: 56px; }
  .ts-arrow { width: 40px; height: 40px; }
  .auth-card { padding: 30px 22px; }
  .detail-price-box { text-align: left; }
  .results-head { padding: 13px 14px; }
  .footer-bottom-in { justify-content: center; text-align: center; }
}

/* Image handling for objects & files that fail: alt handled by browser */

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

/* ============================================================
   DETAIL PAGE EXTRAS
   ============================================================ */
.alert-warning { background: var(--accent-soft); color: var(--warning); border: 1px solid #ecd9a8; }
.alert-warning i { color: var(--warning); }

/* Mobile sticky Call / WhatsApp bar (detail pages, phones) */
.mob-cta-bar { display: none; }
@media (max-width: 575px) {
  .mob-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 10px; right: 10px;
    bottom: calc(62px + 8px);          /* sits above the bottom app nav */
    z-index: 1150;
  }
  .mob-cta-bar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 10px; border-radius: 999px; font-weight: 800; font-size: .95rem;
    color: #fff; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(16,24,40,.45);
  }
  .mob-cta-call { background: var(--primary); }
  .mob-cta-wa { background: var(--whatsapp); }
  .mob-cta-bar a:active { transform: scale(.98); }
}

/* ============================================================
   PREMIUM DARK GREEN v2
   Split hero (text | image) + wide search + calm float buttons
   Header & footer stay separate files; this layer is purely
   additive so future design changes are easy.
   ============================================================ */

/* ---------- Hero v2 ---------- */
.hero-v2 { padding-top: clamp(96px, 12vw, 150px); }
.hero-v2 { background:
    radial-gradient(1100px 520px at 88% -12%, rgba(212,175,55,.16), transparent 62%),
    radial-gradient(900px 480px at -8% 108%, rgba(47,174,118,.18), transparent 60%),
    linear-gradient(135deg, var(--primary-900) 0%, var(--primary) 52%, var(--primary-600) 100%);
}
.hero-v2 .hero-inner { max-width: 100%; display: flex; flex-direction: column; gap: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero-copy h1 { font-size: clamp(2.15rem, 4.4vw, 3.45rem); line-height: 1.12; margin: 0 0 18px; }
.hero-copy .hero-badge { background: rgba(212,175,55,.14); border-color: rgba(212,175,55,.45); color: #ffe9ad; }
.hero-copy .hero-sub { margin-bottom: 24px; max-width: 560px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 6px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.88); }
.hero-trust i { color: #f0c75e; font-size: 1rem; }

/* right side visual */
.hero-media { position: relative; }
.hm-frame { position: relative; margin: 0; border-radius: 26px; overflow: hidden;
  box-shadow: 0 34px 70px -28px rgba(2, 18, 12, .55); border: 1px solid rgba(255,255,255,.14); background:#062a1f; }
.hm-frame img { width: 100%; height: auto; display: block; }
.hm-frame::after { content:""; position:absolute; inset:0; border-radius:26px;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.10); pointer-events:none; }
.hm-chip { position: absolute; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.94); color:#0b2f22; border-radius: 14px; padding: 9px 14px;
  box-shadow: 0 18px 34px -14px rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.hm-chip i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: .95rem; color:#fff; }
.hm-chip strong { display: block; font-size: .88rem; line-height: 1.15; }
.hm-chip small { display: block; font-size: .7rem; color:#5f7068; line-height: 1.2; }
.hm-chip-verify { top: 18px; left: 18px; }
.hm-chip-verify i { background: #1f9d63; }
.hm-chip-live { right: 18px; bottom: 18px; }
.hm-chip-live i { background: linear-gradient(135deg,#d4af37,#b3922c); }

/* wide search under the split */
.hero-v2 .hero-form { width: 100%; }
.hero-v2 .hero-form .pill-switch { margin-bottom: 16px; background: rgba(255,255,255,.14); }
.hero-v2 .search-card { margin-top: 0; border: 1px solid rgba(255,255,255,.55); }
.hero-v2 .search-card .search-grid { grid-template-columns: 1.45fr 1fr 1fr 1fr .9fr auto; }
.hero-v2 .search-go { min-height: 52px; padding-inline: 26px; border-radius: 13px; font-weight: 800; }

/* ---------- Calm float buttons (no racing / overlap) ---------- */
.wa-float, .call-float, .to-top { transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease, visibility .18s ease; will-change: transform; }
.wa-float { bottom: 158px; }
.call-float { bottom: 222px; }
.to-top { bottom: 22px; }
.wa-float:hover, .call-float:hover { transform: translateY(-3px); }
.wa-float:active, .call-float:active { transform: scale(.96); }
.wa-float::after, .call-float::after {
  content: attr(aria-label); position: absolute; right: 62px; top: 50%;
  transform: translateY(-50%); background: var(--primary-900); color:#fff; font-size: .74rem;
  font-weight: 700; letter-spacing: .02em; padding: 7px 13px; border-radius: 999px;
  white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .16s ease, visibility .16s ease; pointer-events: none;
}
.wa-float:hover::after, .call-float:hover::after { opacity: 1; visibility: visible; }

/* compare bar lives low & floats keep their calm spots above it */
.compare-bar.show ~ .wa-float { bottom: 236px; }
.compare-bar.show ~ .call-float { bottom: 300px; }
.compare-bar.show ~ .to-top { bottom: 96px; }

/* bottom nav / mobile */
@media (max-width: 575px) {
  .to-top { display: none; }
  .wa-float { bottom: calc(72px + 18px); }
  .call-float { bottom: calc(72px + 82px); }
  .compare-bar.show ~ .wa-float { bottom: calc(72px + 148px); }
  .compare-bar.show ~ .call-float { bottom: calc(72px + 212px); }
  .hm-chip { padding: 7px 10px; border-radius: 11px; }
  .hm-chip i { width: 28px; height: 28px; border-radius: 8px; font-size: .82rem; }
}

/* ---------- Responsive hero ---------- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { max-width: 720px; }
  .hero-media { max-width: 620px; }
  .hero-v2 .search-card .search-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 575px) {
  .hero-v2 .search-card .search-grid { grid-template-columns: 1fr 1fr; }
  .hero-v2 .search-go { grid-column: 1 / -1; }
  .hero-trust span { font-size: .85rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .wa-float, .call-float, .to-top, .hero * { transition: none !important; animation: none !important; }
}

/* ============================================================
   PREMIUM v3 — requested layout
   • Floating buttons: WhatsApp LEFT, Call RIGHT, scroll-top above
   • App-like mobile bottom navigation
   • Small search bar polish
   ============================================================ */

/* ---------- Float layout v3 ---------- */
.wa-float { left: 22px; right: auto; bottom: 26px; background: var(--whatsapp); }
.call-float { right: 22px; bottom: 26px; background: var(--primary); }
.to-top { right: 22px; bottom: calc(26px + 68px); }
.wa-float::after { left: 64px; right: auto; }
.call-float::after { right: 64px; left: auto; }
.to-top { display: grid; }
.compare-bar.show ~ .wa-float, .compare-bar.show ~ .call-float { bottom: 158px; }
.compare-bar.show ~ .to-top { bottom: 226px; }

@media (max-width: 575px) {
  .wa-float, .call-float { bottom: calc(72px + 14px); }
  .wa-float { left: 14px; }
  .call-float { right: 14px; }
  .to-top { display: none; }
  .compare-bar.show ~ .wa-float, .compare-bar.show ~ .call-float { bottom: calc(72px + 152px); }
}

/* ---------- App-like mobile bottom nav ---------- */
@media (max-width: 575px) {
  .bottom-nav { background: transparent; backdrop-filter: none; border: 0; box-shadow: none; }
  .bottom-nav ul {
    max-width: 520px; margin-inline: auto; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    grid-auto-columns: 1fr;
  }
  .bottom-nav a {
    background: rgba(255, 255, 255, .97); border: 1px solid var(--line);
    border-radius: 15px; padding: 9px 2px 8px; color: var(--muted);
    box-shadow: 0 8px 18px -10px rgba(16, 24, 40, .2); gap: 2px;
  }
  .bottom-nav a i { color: var(--primary-600); }
  .bottom-nav a.active,
  .bottom-nav a.active:hover {
    color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-600));
    border-color: transparent; box-shadow: 0 8px 18px -8px rgba(11, 61, 46, .55);
  }
  .bottom-nav a.active i { color: #fff; }
  .bottom-nav a.active .cmp-badge { background: var(--accent); color: #141414; }
  body.bottom-nav-present .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
