:root {
  --brand: #0d6e6e;
  --ink: #15202b; --muted: #5b6b7a; --line: #e4e9ee; --bg: #f6f8fa;
  --ok: #1a8f4c; --warn: #c2410c; --danger: #c62828; --radius: 12px;
  --shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.06);
  /* Inter everywhere — matching sobha.com's clean, premium type system */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* Headings & brand: Inter with tight tracking for the modern, refined look */
h1, h2, h3, .brand, .brand-mark, .auth-card h1, .hero h1, .stat .n, .lp-stat .n, .card-price {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; border-radius: 6px; }
.brand-name { color: var(--brand); }
.brand-mark { font-weight: 800; color: var(--ink); } .brand-mark span { color: var(--brand); }
/* 10cent wordmark logo (1 + ring-house emblem + cent) */
.wordmark { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; font-size: 30px; letter-spacing: -0.03em; line-height: 1; }
.wordmark .wm-1 { color: var(--brand); }
.wordmark .wm-cent { color: var(--ink); margin-left: 2px; }
.wordmark .wm-emblem { color: var(--brand); width: 29px; height: 30px; display: inline-flex; }
.wordmark .wm-emblem svg { width: 100%; height: 100%; display: block; }
.site-nav { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 15px; }
.site-nav a { color: var(--muted); } .site-nav a:hover { color: var(--brand); text-decoration: none; }

/* hero / search */
.hero { background: linear-gradient(135deg, var(--brand), #0a4f4f); color: #fff; padding: 40px 0 64px; }
.hero h1 { margin: 0 0 6px; font-size: 30px; }
.hero p { margin: 0; opacity: .9; }
.searchbar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-top: -36px; position: relative; z-index: 10; }
.searchbar form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .field select, textarea, .input { padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: #fff; width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 9px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; background: var(--brand); color: #fff; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 7px 12px; font-size: 14px; }

/* cards / grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.section { padding: 28px 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,24,40,.10); }
.card a { color: inherit; }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: #e9eef2; }
.card-body { padding: 14px; }
.card-price { font-size: 20px; font-weight: 800; color: var(--ink); }
.card-title { font-weight: 600; margin: 4px 0; font-size: 15px; }
.card-meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef6f6; color: var(--brand); text-transform: uppercase; letter-spacing: .3px; }
.badge.sell { background: #e8f5ee; color: var(--ok); }
.badge.rent { background: #fef0e6; color: var(--warn); }
.badge.wanted { background: #eef0fb; color: #3949ab; }
.badge.status { background: #eef2f6; color: var(--muted); }

/* ── detail: image slider ──────────────────────────────────────────────── */
.gallery-wrap { margin-top: 4px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b1417; box-shadow: var(--shadow); }
.slider__track { display: flex; transition: transform .45s cubic-bezier(.4,.0,.2,1); }
.slider__slide { min-width: 100%; aspect-ratio: 16 / 9; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 26px; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: background .15s, transform .15s;
}
.slider__btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slider__btn.prev { left: 14px; } .slider__btn.next { right: 14px; }
.slider__count {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: rgba(11,20,23,.7); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.slider__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 7px; }
.slider__dot { width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.slider__dot.active { width: 24px; background: #fff; }
.slider__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.slider__thumb { flex: 0 0 96px; height: 64px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; opacity: .65; transition: opacity .15s, border-color .15s; }
.slider__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider__thumb.active { opacity: 1; border-color: var(--brand); }

/* detail header + chips + grid */
.fact-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fact-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--ink); box-shadow: var(--shadow); }
.fact-chip b { color: var(--brand); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-top: 22px; }
.detail-aside { position: sticky; top: 84px; }
.aside-facts { display: grid; gap: 10px; margin-top: 16px; }
.aside-facts > div { display: flex; justify-content: space-between; font-size: 14px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } .slider__btn { width: 38px; height: 38px; font-size: 22px; } }

/* listing detail */
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery img:first-child { grid-row: span 2; aspect-ratio: 1/1; }
.layout-2col { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 18px; }
.spec { } .spec b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; } .spec span { font-weight: 700; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel.sticky { position: sticky; top: 84px; }
.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.amenity-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
#map { height: 280px; border-radius: var(--radius); border: 1px solid var(--line); }
.phone-reveal { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.masked { letter-spacing: 3px; color: var(--muted); }

/* tables / console */
.console { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.sidebar { background: #0f1b24; color: #cdd7e0; padding: 18px 12px; }
.sidebar h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; opacity: .6; margin: 18px 8px 8px; }
.sidebar a { display: block; color: #cdd7e0; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.console-main { padding: 26px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.page-head h1 { margin: 0; font-size: 24px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { background: #fafbfc; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
tr:last-child td { border-bottom: none; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat .n { font-size: 30px; font-weight: 800; color: var(--brand); }
.stat .l { color: var(--muted); font-weight: 600; font-size: 13px; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 920px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 0 0 18px; }
legend { font-weight: 700; padding: 0 6px; color: var(--brand); }
label.lbl { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 4px; }

/* auth */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 30px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; width: 100%; max-width: 400px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 4px; font-size: 22px; }
.auth-card p.sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.auth-card .field { margin-bottom: 14px; }
.hint { background: #fff8e6; border: 1px solid #f4d98a; color: #8a6d1a; padding: 10px 12px; border-radius: 9px; font-size: 13px; margin-top: 14px; }

/* broker profile: square logo preview */
.logo-square { width: 120px; height: 120px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow); flex: none; }
.logo-square img { width: 100%; height: 100%; object-fit: cover; }
.logo-square span { color: var(--muted); font-size: 13px; }

/* toggle switch (admin: show-on-home) */
.switch { width: 48px; height: 27px; border-radius: 999px; border: none; background: #cbd5dd; position: relative; cursor: pointer; padding: 0; transition: background .2s; vertical-align: middle; }
.switch.on { background: var(--ok); }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: left .2s; }
.switch.on .knob { left: 24px; }
.switch-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 8px; vertical-align: middle; }

/* flash / misc */
.flash { padding: 12px 16px; border-radius: 9px; margin: 16px 0; font-weight: 600; }
.flash-error { background: #fdecec; color: var(--danger); border: 1px solid #f3b6b6; }
.flash-success { background: #e8f7ee; color: var(--ok); border: 1px solid #aedcc0; }
.muted { color: var(--muted); }
.empty { text-align: center; padding: 50px; color: var(--muted); }
.rera { font-size: 13px; color: var(--muted); margin: 4px 0; }
.disclaimer { font-size: 12px; color: var(--muted); max-width: 800px; }
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0; }
.powered { font-size: 13px; color: var(--muted); }
.footer-broker { font-weight: 600; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,27,36,.55); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal-backdrop.open { display: grid; }
.modal { background: #fff; border-radius: var(--radius); padding: 26px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal h3 { margin: 0 0 6px; }
.modal .close { float: right; cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; }

@media (max-width: 860px) {
  .searchbar form { grid-template-columns: 1fr 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .console { grid-template-columns: 1fr; }
  .sidebar { display: flex; flex-wrap: wrap; gap: 6px; min-height: auto; }
  .sidebar h3 { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-row: span 1; aspect-ratio: 16/10; }
}
