/* ===========================================================
   VHP Property — Global Styles
   =========================================================== */
:root {
  --navy: #0f2a47;
  --navy-2: #163b63;
  --gold: #f0a500;
  --gold-dark: #d18e00;
  --ink: #1d2733;
  --muted: #6b7787;
  --line: #e4e8ee;
  --bg: #f6f8fb;
  --white: #ffffff;
  --green: #1aa260;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(16, 36, 64, .06);
  --shadow-md: 0 10px 30px rgba(16, 36, 64, .10);
  --shadow-lg: 0 20px 50px rgba(16, 36, 64, .16);
  --maxw: 1200px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Dark theme overrides ---------- */
:root[data-theme="dark"] {
  --navy: #0b1422;
  --navy-2: #16263d;
  --ink: #e8edf4;
  --muted: #93a2b6;
  --line: #25344a;
  --bg: #0d1726;
  --white: #142235;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.30);
  --shadow-md: 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.55);
}
:root[data-theme="dark"] body { background: var(--bg); }
:root[data-theme="dark"] .header,
:root[data-theme="dark"] .prop-card,
:root[data-theme="dark"] .cat-card,
:root[data-theme="dark"] .testi-card,
:root[data-theme="dark"] .filters,
:root[data-theme="dark"] .agent-card,
:root[data-theme="dark"] .detail-block,
:root[data-theme="dark"] .ov-item,
:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .info-card,
:root[data-theme="dark"] .value-card,
:root[data-theme="dark"] .emi-card,
:root[data-theme="dark"] section[style*="background:#fff"],
:root[data-theme="dark"] .no-results { background: #142235 !important; }
:root[data-theme="dark"] .sec-head h2,
:root[data-theme="dark"] .prop-title,
:root[data-theme="dark"] .about-split h2 { color: #e8edf4; }
:root[data-theme="dark"] .nav a:hover,
:root[data-theme="dark"] .nav a.active { background: #1c2c44; }
:root[data-theme="dark"] .search-card,
:root[data-theme="dark"] .search-field { background: #142235; }
:root[data-theme="dark"] .search-row,
:root[data-theme="dark"] .search-tabs button.active { background: #1c2c44; }
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .filter-group select,
:root[data-theme="dark"] .filter-group input,
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select,
:root[data-theme="dark"] .form-field textarea,
:root[data-theme="dark"] .contact-form input,
:root[data-theme="dark"] .contact-form textarea,
:root[data-theme="dark"] #f-sort { background: #0d1726; color: var(--ink); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 600;
  font-size: 15px; cursor: pointer; border: none; transition: .2s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #1a1300; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-white { background: rgba(255,255,255,.15); color:#fff; border:1.5px solid rgba(255,255,255,.4); }
.btn-ghost-white:hover { background: rgba(255,255,255,.25); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Section headers ---------- */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head .eyebrow {
  color: var(--gold-dark); font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: 13px;
}
.sec-head h2 { font-size: 34px; color: var(--navy); margin: 8px 0 10px; line-height: 1.2; }
.sec-head p { color: var(--muted); font-size: 16px; }
.sec-head.left { text-align: left; margin-left: 0; }

/* ===========================================================
   Topbar + Header
   =========================================================== */
.topbar {
  background: var(--navy); color: #cdd9e8; font-size: 13.5px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar a { color: #cdd9e8; transition: .2s; }
.topbar a:hover { color: var(--gold); }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 22px; align-items: center; }
.topbar .tb-right .sep { opacity: .3; }

.header {
  background: #fff; position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo .mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: grid; place-items: center; color: var(--gold);
  font-weight: 800; font-size: 20px; box-shadow: var(--shadow-sm);
}
.logo .name { font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: .3px; }
.logo .name span { color: var(--gold); }
.logo .tag { display:block; font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-top: -4px;}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 15px; border-radius: 8px; font-weight: 600; font-size: 15px;
  color: var(--ink); transition: .2s;
}
.nav a:hover, .nav a.active { color: var(--navy); background: #eef3f9; }
.header-cta { display: flex; align-items: center; gap: 12px; }

.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 3px; transition: .25s; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative; color: #fff; padding: 92px 0 130px;
  background:
    linear-gradient(rgba(11,26,46,.78), rgba(11,26,46,.86)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80") center/cover;
}
.hero h1 { font-size: 50px; line-height: 1.1; max-width: 760px; margin-bottom: 16px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 18px; color: #d7e1ec; max-width: 600px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 40px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 30px; color: var(--gold); }
.hero-stats .stat span { font-size: 14px; color: #c4d2e2; }

/* Search box */
.search-card {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 10px; margin-top: -64px; position: relative; z-index: 5;
}
.search-tabs { display: flex; gap: 6px; padding: 6px 6px 0; }
.search-tabs button {
  padding: 11px 26px; border: none; background: transparent; cursor: pointer;
  font-weight: 700; font-size: 15px; color: var(--muted); border-radius: 10px 10px 0 0;
  transition: .2s;
}
.search-tabs button.active { color: var(--navy); background: #eef3f9; }
.search-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px;
  background: #eef3f9; padding: 14px; border-radius: 12px;
}
.search-field { display: flex; flex-direction: column; gap: 5px; background:#fff; border-radius:10px; padding:9px 14px; }
.search-field label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.search-field select, .search-field input {
  border: none; outline: none; font-size: 15px; font-family: var(--font);
  color: var(--ink); background: transparent; font-weight: 600;
}
.search-row .btn { height: 100%; }

/* ===========================================================
   Category cards
   =========================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  background: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: .25s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-card .ic {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg, #fff4d6, #ffe6a8);
}
.cat-card h3 { color: var(--navy); font-size: 19px; margin-bottom: 6px; }
.cat-card p { color: var(--muted); font-size: 14px; }

/* ===========================================================
   Property cards
   =========================================================== */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prop-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: .25s; display: flex; flex-direction: column;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.prop-media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.prop-card:hover .prop-media img { transform: scale(1.07); }
.prop-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 7px; }
.badge {
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 7px;
  background: var(--navy); color: #fff; backdrop-filter: blur(2px);
}
.badge.rent { background: var(--green); }
.badge.sale { background: var(--gold); color:#1a1300; }
.badge.featured { background: #fff; color: var(--navy); }
.prop-fav {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center;
  cursor: pointer; font-size: 16px; border: none; transition: .2s;
}
.prop-fav:hover { background: #fff; color: #e23; transform: scale(1.1); }
.prop-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.prop-price { font-size: 22px; font-weight: 800; color: var(--navy); }
.prop-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.prop-title { font-size: 17px; font-weight: 700; margin: 6px 0 4px; color: var(--ink); }
.prop-loc { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.prop-features {
  display: flex; gap: 16px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); font-weight: 600;
}
.prop-features span { display: flex; align-items: center; gap: 6px; }
.prop-foot { margin-top: 16px; display: flex; gap: 10px; }

/* ===========================================================
   Popular places
   =========================================================== */
.places-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.place-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; cursor: pointer; }
.place-card img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.place-card:hover img { transform: scale(1.08); }
.place-card::after { content:""; position:absolute; inset:0; background: linear-gradient(transparent 40%, rgba(11,26,46,.85)); }
.place-card .place-info { position: absolute; bottom: 16px; left: 16px; right: 16px; z-index: 2; color: #fff; }
.place-card .place-info h4 { font-size: 19px; }
.place-card .place-info span { font-size: 13px; color: #d7e1ec; }

/* ===========================================================
   Why us / features strip
   =========================================================== */
.why { background: var(--navy); color: #fff; }
.why .sec-head h2 { color: #fff; }
.why .sec-head p { color: #aebfd2; }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.why-item { text-align: center; padding: 10px; }
.why-item .ic {
  width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 18px;
  background: rgba(240,165,0,.16); display: grid; place-items: center; font-size: 30px;
}
.why-item h3 { font-size: 18px; margin-bottom: 8px; }
.why-item p { color: #aebfd2; font-size: 14px; }

/* ===========================================================
   Testimonials
   =========================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testi-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.testi-card .stars { color: var(--gold); margin-bottom: 12px; }
.testi-card p { color: #44505f; font-style: italic; margin-bottom: 18px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-who strong { display: block; color: var(--navy); }
.testi-who span { font-size: 13px; color: var(--muted); }

/* ===========================================================
   CTA band
   =========================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: 20px; padding: 50px; text-align: center;
  background-image: linear-gradient(135deg, rgba(15,42,71,.93), rgba(22,59,99,.93)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80");
  background-size: cover; background-position: center;
}
.cta-band h2 { font-size: 32px; margin-bottom: 10px; }
.cta-band p { color: #cdd9e8; max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===========================================================
   Footer
   =========================================================== */
.footer { background: #0b1a2e; color: #9fb0c4; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 44px; }
.footer .logo .name { color: #fff; }
.footer p { font-size: 14px; margin-top: 14px; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { font-size: 14px; transition: .2s; }
.footer ul a:hover { color: var(--gold); padding-left: 4px; }
.footer .contact-li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 14px; }
.footer .socials { display: flex; gap: 10px; margin-top: 16px; }
.footer .socials a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .2s; }
.footer .socials a:hover { background: var(--gold); color: #1a1300; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 13.5px; }

/* ===========================================================
   Page banner (inner pages)
   =========================================================== */
.page-banner {
  background: linear-gradient(rgba(11,26,46,.82), rgba(11,26,46,.88)),
    url("https://images.unsplash.com/photo-1480074568708-e7b720bb3f09?auto=format&fit=crop&w=1920&q=80") center/cover;
  color: #fff; padding: 70px 0; text-align: center;
}
.page-banner h1 { font-size: 40px; }
.page-banner .crumbs { margin-top: 10px; color: #cdd9e8; font-size: 14px; }
.page-banner .crumbs a:hover { color: var(--gold); }

/* ===========================================================
   Listings page (filters + grid)
   =========================================================== */
.listing-wrap { display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: sticky; top: 90px; box-shadow: var(--shadow-sm);
}
.filters h3 { font-size: 18px; color: var(--navy); margin-bottom: 18px; }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.filter-group select, .filter-group input {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px;
  font-family: var(--font); font-size: 14px; color: var(--ink); outline: none;
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 20px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; background:#fff;
}
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.listing-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.listing-head .count { color: var(--muted); font-size: 15px; }
.listing-head .count strong { color: var(--navy); }
.listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.no-results { background:#fff; border:1px dashed var(--line); border-radius: var(--radius); padding: 50px; text-align:center; color: var(--muted); grid-column: 1 / -1; }

/* ===========================================================
   Property detail
   =========================================================== */
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 30px; border-radius: var(--radius); overflow: hidden; }
.detail-gallery .main-img { aspect-ratio: 16/10; }
.detail-gallery .main-img img { width:100%; height:100%; object-fit: cover; }
.detail-gallery .side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.detail-gallery .side img { width:100%; height:100%; object-fit: cover; }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; }
.detail-main h1 { font-size: 30px; color: var(--navy); }
.detail-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 8px 0 18px; }
.detail-price { font-size: 32px; font-weight: 800; color: var(--gold-dark); margin-bottom: 22px; }
.overview-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 24px 0; }
.ov-item { background:#fff; border:1px solid var(--line); border-radius: 12px; padding: 18px; text-align:center; }
.ov-item .ic { font-size: 22px; margin-bottom: 6px; }
.ov-item strong { display:block; color: var(--navy); font-size: 17px; }
.ov-item span { font-size: 12.5px; color: var(--muted); }
.detail-block { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.detail-block h3 { color: var(--navy); margin-bottom: 14px; font-size: 20px; }
.detail-block p { color: #44505f; }
.amenities-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 4px; }
.amenities-list li { display:flex; align-items:center; gap: 9px; color:#44505f; font-size: 15px; }
.amenities-list li::before { content:"✓"; color: var(--green); font-weight: 800; }
.agent-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 90px; box-shadow: var(--shadow-sm); }
.agent-top { display:flex; align-items:center; gap: 14px; margin-bottom: 18px; }
.agent-top img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.agent-top strong { color: var(--navy); font-size: 17px; }
.agent-top span { font-size: 13px; color: var(--muted); }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: 14.5px; outline: none; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--navy); }

/* ===========================================================
   Forms (contact / submit)
   =========================================================== */
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display:flex; flex-direction: column; gap: 7px; }
.form-field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: 15px; outline: none; resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--navy); }
.form-note { background:#eef3f9; border-radius: 10px; padding: 14px 16px; color: var(--muted); font-size: 14px; margin-top: 6px; }
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--green); color:#fff; padding: 14px 26px; border-radius: 12px;
  font-weight: 600; box-shadow: var(--shadow-lg); z-index: 999; transition: .35s;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* contact info cards */
.info-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-bottom: 34px; }
.info-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align:center; box-shadow: var(--shadow-sm); }
.info-card .ic { width:58px; height:58px; margin:0 auto 14px; border-radius:14px; background:linear-gradient(135deg,#fff4d6,#ffe6a8); display:grid; place-items:center; font-size:24px; }
.info-card h4 { color: var(--navy); margin-bottom: 6px; }
.info-card p { color: var(--muted); font-size: 14.5px; }

/* about */
.about-split { display:grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items:center; }
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.about-split h2 { font-size: 32px; color: var(--navy); margin-bottom: 16px; }
.about-split p { color: #44505f; margin-bottom: 14px; }
.value-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.value-card .ic { font-size: 30px; margin-bottom: 12px; }
.value-card h3 { color: var(--navy); margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 14.5px; }
.stats-band { background: var(--navy); color:#fff; }
.stats-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align:center; }
.stats-grid .num { font-size: 42px; font-weight: 800; color: var(--gold); }
.stats-grid .lbl { color:#aebfd2; font-size: 15px; }

/* ===========================================================
   Header controls (theme toggle + favorites) — injected by JS
   =========================================================== */
.icon-btn {
  width: 42px; height: 42px; border-radius: 11px; border: 1.5px solid var(--line);
  background: var(--white); cursor: pointer; font-size: 18px; display: grid;
  place-items: center; position: relative; transition: .2s; color: var(--ink);
}
.icon-btn:hover { border-color: var(--navy); transform: translateY(-1px); }
.fav-count {
  position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px;
  background: var(--gold); color: #1a1300; border-radius: 10px; font-size: 11px;
  font-weight: 800; display: grid; place-items: center; padding: 0 5px;
}
.fav-count:empty, .fav-count[data-c="0"] { display: none; }

/* ===========================================================
   EMI Calculator
   =========================================================== */
.emi-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.emi-card h3 { color: var(--navy); margin-bottom: 6px; font-size: 20px; }
.emi-card .emi-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.emi-result {
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color:#fff;
  border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 22px;
}
.emi-result .big { font-size: 34px; font-weight: 800; color: var(--gold); }
.emi-result .lbl { font-size: 13px; color: #c4d2e2; }
.emi-breakdown { display:flex; justify-content: space-around; margin-top: 14px; padding-top:14px; border-top:1px solid rgba(255,255,255,.15); }
.emi-breakdown div span { display:block; font-size:12px; color:#aebfd2; }
.emi-breakdown div strong { font-size: 15px; }
.emi-control { margin-bottom: 18px; }
.emi-control .row { display:flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.emi-control label { font-weight: 700; font-size: 14px; color: var(--ink); }
.emi-control .val { font-weight: 800; color: var(--gold-dark); font-size: 15px; }
.emi-control input[type=range] { width: 100%; accent-color: var(--gold); height: 5px; cursor: pointer; }

/* ===========================================================
   Map view (listings)
   =========================================================== */
.view-toggle { display:flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 10px; border:1px solid var(--line); }
.view-toggle button {
  border:none; background: transparent; padding: 8px 16px; border-radius: 8px;
  font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); transition:.2s;
}
.view-toggle button.active { background: var(--navy); color:#fff; }
#listing-map { height: 560px; border-radius: var(--radius); border:1px solid var(--line); display:none; }
.map-mode #listing-map { display: block; }
.map-mode #listing-grid { display: none; }
.leaflet-popup-content { margin: 0; }
.map-pop { width: 210px; font-family: var(--font); }
.map-pop img { width:100%; height: 110px; object-fit: cover; }
.map-pop .mp-body { padding: 10px 12px; }
.map-pop .mp-price { font-weight: 800; color: var(--navy); font-size: 16px; }
.map-pop .mp-title { font-size: 13px; color: var(--ink); margin: 3px 0 6px; font-weight: 600; }
.map-pop a.mp-link { color: var(--gold-dark); font-weight: 700; font-size: 13px; }

/* favorites empty state */
.empty-state { text-align:center; padding: 70px 20px; }
.empty-state .ic { font-size: 54px; margin-bottom: 14px; }
.empty-state h3 { color: var(--navy); font-size: 24px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ===========================================================
   Sold / Rented ribbon on cards
   =========================================================== */
.status-ribbon {
  position: absolute; top: 16px; left: -42px; width: 168px; transform: rotate(-45deg);
  text-align: center; background: #c0392b; color: #fff; font-weight: 800;
  font-size: 12.5px; letter-spacing: 1.2px; padding: 6px 0; z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.status-ribbon.rented { background: #0e7a45; }
.prop-card.is-closed .prop-media img { filter: grayscale(.35) brightness(.92); }

/* ===========================================================
   Enquiry inbox (admin)
   =========================================================== */
.enq-empty { text-align:center; padding:40px; color:var(--muted); }
.enq-item { border:1px solid var(--line); border-radius:12px; padding:15px 17px; margin-bottom:12px; background:var(--bg); }
.enq-item .top { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.enq-item h4 { color:var(--navy); font-size:16px; }
.enq-item .when { color:var(--muted); font-size:12.5px; white-space:nowrap; }
.enq-item .tag-prop { display:inline-block; margin-top:4px; font-size:12px; font-weight:700; color:var(--gold-dark); }
.enq-item .contacts { display:flex; gap:16px; flex-wrap:wrap; margin-top:9px; font-size:14px; }
.enq-item .contacts a { color:var(--navy); font-weight:700; }
.enq-item .msg { margin-top:9px; color:#44505f; font-size:14px; line-height:1.5; }
.enq-item .enq-del { margin-top:10px; }
.enq-count-badge {
  display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px;
  background:var(--gold); color:#1a1300; border-radius:10px; font-size:12px; font-weight:800; margin-left:4px;
}

/* ===========================================================
   Admin panel
   =========================================================== */
.admin-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.admin-bar .container { display:flex; align-items:center; justify-content:space-between; height: 64px; }
.admin-toolbar {
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin: 26px 0; padding: 18px; background: var(--white);
  border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.admin-toolbar .search { flex:1; min-width: 200px; }
.admin-toolbar input[type=search] {
  width:100%; padding:11px 14px; border:1.5px solid var(--line); border-radius:10px;
  font-family:var(--font); font-size:14px; background:var(--bg); color:var(--ink); outline:none;
}
.admin-stat { color: var(--muted); font-size:14px; }
.admin-stat strong { color: var(--navy); font-size: 18px; }

.admin-table { width:100%; border-collapse: collapse; background: var(--white);
  border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); }
.admin-table th { text-align:left; padding:14px 16px; background: var(--bg); color: var(--navy);
  font-size:12.5px; text-transform:uppercase; letter-spacing:.5px; border-bottom:1px solid var(--line); }
.admin-table td { padding:12px 16px; border-bottom:1px solid var(--line); font-size:14px; vertical-align:middle; color:var(--ink); }
.admin-table tr:last-child td { border-bottom:none; }
.admin-table tr:hover td { background: var(--bg); }
.admin-table .thumb { width:64px; height:46px; border-radius:8px; object-fit:cover; }
.admin-table .ttl { font-weight:700; color:var(--ink); }
.admin-table .sub { color:var(--muted); font-size:12.5px; }
.pill { display:inline-block; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:700; }
.pill.buy { background:#fff4d6; color:#8a6400; }
.pill.rent { background:#d8f3e5; color:#0e7a45; }
.pill.feat { background:var(--navy); color:#fff; }
.row-actions { display:flex; gap:8px; }
.row-actions button { border:none; cursor:pointer; padding:7px 11px; border-radius:8px; font-size:13px; font-weight:700; transition:.2s; }
.btn-edit { background:#eef3f9; color:var(--navy); }
.btn-edit:hover { background:#dde7f2; }
.btn-del { background:#fdecec; color:#c0392b; }
.btn-del:hover { background:#f9d6d6; }
.btn-star { background:transparent; color:var(--gold-dark); font-size:16px !important; }

/* modal */
.modal-overlay { position:fixed; inset:0; background:rgba(8,18,32,.6); backdrop-filter:blur(3px);
  display:none; align-items:flex-start; justify-content:center; z-index:200; overflow:auto; padding:40px 16px; }
.modal-overlay.show { display:flex; }
.modal { background:var(--white); border-radius:16px; width:100%; max-width:780px; box-shadow:var(--shadow-lg); }
.modal-head { display:flex; justify-content:space-between; align-items:center; padding:22px 26px; border-bottom:1px solid var(--line); }
.modal-head h2 { color:var(--navy); font-size:22px; }
.modal-head .x { background:none; border:none; font-size:26px; cursor:pointer; color:var(--muted); line-height:1; }
.modal-body { padding:26px; }
.modal-foot { padding:18px 26px; border-top:1px solid var(--line); display:flex; justify-content:flex-end; gap:12px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
.fld { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.fld label { font-size:13px; font-weight:700; color:var(--ink); }
.fld input, .fld select, .fld textarea {
  padding:10px 12px; border:1.5px solid var(--line); border-radius:9px;
  font-family:var(--font); font-size:14px; background:var(--bg); color:var(--ink); outline:none; resize:vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color:var(--navy); }
.fld .hint { font-size:12px; color:var(--muted); font-weight:500; }
.check-row { display:flex; align-items:center; gap:9px; }
.check-row input { width:18px; height:18px; accent-color:var(--gold); }

/* gate */
.gate { position:fixed; inset:0; background:linear-gradient(135deg,var(--navy),var(--navy-2));
  display:flex; align-items:center; justify-content:center; z-index:300; padding:20px; }
.gate-card { background:var(--white); border-radius:16px; padding:36px; width:100%; max-width:380px; text-align:center; box-shadow:var(--shadow-lg); }
.gate-card .mark { width:54px; height:54px; border-radius:14px; background:linear-gradient(135deg,var(--navy),var(--navy-2));
  display:grid; place-items:center; color:var(--gold); font-weight:800; font-size:26px; margin:0 auto 16px; }
.gate-card h2 { color:var(--navy); margin-bottom:6px; }
.gate-card p { color:var(--muted); font-size:14px; margin-bottom:20px; }
.gate-card input { width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:10px;
  font-size:15px; text-align:center; margin-bottom:14px; background:var(--bg); color:var(--ink); outline:none; }
.gate-err { color:#c0392b; font-size:13px; min-height:18px; margin-bottom:8px; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; padding: 14px; box-shadow: var(--shadow-md); gap: 4px; align-items: stretch;
  }
  .hero h1 { font-size: 36px; }
  .cat-grid, .why-grid, .places-grid, .stats-grid, .overview-grid { grid-template-columns: repeat(2,1fr); }
  .prop-grid, .testi-grid, .value-grid, .info-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .listing-wrap, .detail-layout, .about-split { grid-template-columns: 1fr; }
  .filters, .agent-card { position: static; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-gallery .side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 50px 0; }
  .hero h1 { font-size: 29px; }
  .sec-head h2 { font-size: 26px; }
  .cat-grid, .why-grid, .places-grid, .prop-grid, .testi-grid, .value-grid,
  .info-grid, .stats-grid, .listing-grid, .overview-grid, .amenities-list,
  .footer-grid, .form-row { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .topbar .tb-left { display: none; }
  .cta-band { padding: 34px 22px; }
  .hero-stats { gap: 24px; }
}
