:root {
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --gold: #e9c46a;
  --gold-2: #d4a73f;
  --gold-soft: #fbf3dc;
  --green: #15803d;
  --green-soft: #dcfce7;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --wa: #1fa855;
  --seg-down: #111827;
  --seg-construction: #d4a73f;
  --seg-handover: #8b95a7;
  --seg-post: #15803d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
}
:root[dir="rtl"] {
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-display: "IBM Plex Sans Arabic", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
[hidden] { display: none !important; }

.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--gold-2); margin: 0 0 12px; }
:root[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1f2937; }
.btn-outline { background: transparent; border-color: currentColor; }
.btn-outline:hover { background: rgba(17, 24, 39, .05); }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover, .btn-ghost.on { background: rgba(255,255,255,.12); }
.btn-ghost svg { width: 18px; height: 18px; fill: currentColor; }
.btn-link { background: none; border: 0; padding: 0 6px; min-height: 36px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.btn-link:disabled { opacity: .35; cursor: default; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a45; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(17,24,39,.06); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.icon-btn:hover { background: rgba(17,24,39,.12); }
.pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .75rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 46px; width: auto; }
.brand-sub { color: #cbd5e1; font-size: .8rem; white-space: nowrap; padding: 4px 0 4px 12px; padding-inline: 12px 0; border-inline-start: 1px solid rgba(255,255,255,.2); }
.top-actions { display: flex; gap: 8px; }
.lang-toggle { font-family: "IBM Plex Sans Arabic", var(--font); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(233,196,106,.25), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #1c2536 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -.01em; }
:root[dir="rtl"] .hero h1 { font-weight: 700; letter-spacing: 0; }
.lead { color: #d1d5db; font-size: 1.1rem; max-width: 56ch; margin: 18px 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-outline { color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.08); }
.hero-stats { display: flex; gap: 36px; margin: 36px 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { margin: 0; font-family: "DM Serif Display", serif; font-size: 2rem; color: var(--gold); line-height: 1; }
.hero-stats dt { color: #9ca3af; font-size: .85rem; margin-top: 6px; }

.budget-card { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.budget-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
:root[dir="rtl"] .budget-card h2 { font-weight: 700; }
.budget-card > p { margin: 6px 0 18px; }
.budget-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }

/* ---------- form fields ---------- */
.field { display: grid; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-size: .82rem; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.field input, .field select, .sort select, .row2 select {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--gold-2); outline: none; box-shadow: 0 0 0 3px rgba(233,196,106,.35); }
.input-affix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.input-affix:focus-within { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(233,196,106,.35); }
.input-affix span { padding: 0 12px; color: var(--muted); font-size: .85rem; font-weight: 600; background: #f9fafb; align-self: stretch; display: grid; place-items: center; border-inline-end: 1px solid var(--line); }
.input-affix input { border: 0; min-height: 48px; font-size: 1.05rem; font-weight: 600; box-shadow: none !important; direction: ltr; text-align: start; }
:root[dir="rtl"] .input-affix input { text-align: right; }
.input-affix input::placeholder { color: #b6bcc6; font-weight: 500; }
.check { display: flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- chips ---------- */
.presets-bar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 20; }
.presets-bar .chips { padding: 14px 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.presets-bar .chips::-webkit-scrollbar { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; min-height: 38px;
  font-size: .88rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all .15s;
}
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips.small .chip { padding: 6px 12px; min-height: 34px; font-size: .84rem; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; padding: 32px 0 64px; align-items: start; }
.filters { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filters-head h2 { font-size: 1.1rem; }
.only-mobile { display: none !important; }

.results-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.results-count { font-weight: 700; font-size: 1.1rem; margin: 0; margin-inline-end: auto; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.sort select { width: auto; min-height: 40px; }
.active-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-tags:empty { display: none; }
.tag { border: 0; background: var(--gold-soft); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 500; cursor: pointer; }
.tag:hover { background: #f5e3b0; }
.tag span { margin-inline-start: 4px; font-size: 1rem; line-height: 0; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(17,24,39,.06), 0 18px 40px rgba(17,24,39,.12); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #e5e7eb; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badges { position: absolute; inset-inline-start: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge { background: rgba(17,24,39,.82); color: #fff; font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.badge-ok { background: var(--green-soft); color: var(--green); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.badge-new { background: var(--gold); color: var(--ink); }
.heart { position: absolute; inset-inline-end: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; }
.heart svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; }
.heart.on svg { fill: #e11d48; stroke: #e11d48; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price { margin: 0; font-weight: 700; font-size: 1.25rem; }
.price small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.card-title { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
:root[dir="rtl"] .card-title { font-family: "DM Serif Display", var(--font); }
.card-title button { all: unset; cursor: pointer; }
.card-title button:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-title button:focus-visible { outline: 3px solid var(--gold-2); }
.card-meta { margin: 0; color: var(--muted); font-size: .88rem; }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.card-specs span { background: #f3f4f6; border-radius: 6px; padding: 3px 8px; font-size: .78rem; color: var(--ink-2); }

.planbar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; margin-top: 6px; gap: 2px; direction: ltr; }
:root[dir="rtl"] .planbar { direction: rtl; }
.seg { display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #fff; min-width: 6px; }
.seg-down { background: var(--seg-down); }
.seg-construction { background: var(--seg-construction); color: var(--ink); }
.seg-handover { background: var(--seg-handover); }
.seg-post { background: var(--seg-post); }
.plan-text { margin: 0; font-size: .75rem; color: var(--muted); direction: ltr; text-align: start; }
:root[dir="rtl"] .plan-text { text-align: right; }

.money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.money div { background: var(--gold-soft); border-radius: 10px; padding: 10px 12px; }
.money dt { font-size: .72rem; color: var(--ink-2); font-weight: 500; }
.money dd { margin: 2px 0 0; font-weight: 700; font-size: .98rem; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 8px; }

.more { text-align: center; margin-top: 28px; }
.empty { text-align: center; padding: 64px 24px; background: var(--surface); border-radius: var(--radius); }
.empty h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 48ch; margin: 0 auto 20px; }

/* ---------- modals ---------- */
.modal { border: 0; padding: 0; border-radius: 20px; width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); background: var(--surface); color: var(--ink); }
.modal::backdrop { background: rgba(17,24,39,.6); backdrop-filter: blur(2px); }
.modal[open]:not(:modal) { position: fixed; inset: 0; margin: auto; z-index: 50; }
.scrim { position: fixed; inset: 0; background: rgba(17,24,39,.6); z-index: 40; }
.modal-media { position: relative; aspect-ratio: 16 / 8; background: #e5e7eb; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; background: rgba(255,255,255,.92); }
.modal-body { padding: 26px 28px 30px; }
.modal-body h2 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin-top: 4px; }
:root[dir="rtl"] .modal-body h2 { font-family: "DM Serif Display", var(--font); }
.modal-body h3 { font-size: 1rem; margin: 26px 0 10px; }
.plan-table { width: 100%; border-collapse: collapse; margin: 14px 0 8px; font-size: .92rem; }
.plan-table th, .plan-table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: start; }
.plan-table th { font-weight: 500; }
.plan-table td:nth-child(2) { color: var(--muted); width: 80px; }
.plan-table td:last-child { text-align: end; font-weight: 600; direction: ltr; }
:root[dir="rtl"] .plan-table td:last-child { text-align: left; }
.plan-table .subtotal th, .plan-table .subtotal td { font-weight: 700; background: var(--gold-soft); padding-inline: 10px; }
.plan-table .hint th, .plan-table .hint td { color: var(--muted); font-size: .85rem; font-weight: 500; }
.summary { color: var(--ink-2); text-align: start; }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.amenities li { background: #f3f4f6; border-radius: 999px; padding: 5px 12px; font-size: .82rem; }
.link { font-weight: 600; color: var(--ink); }
.modal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }

.quiz { width: min(560px, calc(100% - 24px)); }
.quiz-head { display: flex; justify-content: space-between; align-items: center; }
.quiz-head .eyebrow { margin: 0; }
.progress { height: 6px; background: #f3f4f6; border-radius: 99px; margin: 14px 0 24px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--gold); transition: width .25s; }
.quiz h2 { font-size: 1.5rem; margin-bottom: 20px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt { min-height: 60px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-weight: 600; cursor: pointer; padding: 10px 14px; text-align: start; transition: all .15s; }
.quiz-opt:hover { border-color: var(--ink); }
.quiz-opt.on { border-color: var(--ink); background: var(--gold-soft); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.quiz-nav .btn-gold { margin-inline-start: auto; }

/* ---------- footer & fab ---------- */
/* Questions and the A-Z project directory: plain text that search engines read */
.faq { padding: 40px 0 8px; }
.faq h2, .dir h2 { font-size: 1.35rem; margin: 0 0 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 10px; max-width: 90ch; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.dir { padding: 32px 0 40px; }
.dir-lead { color: var(--muted); margin: 0 0 14px; }
.dir-more > summary { cursor: pointer; display: inline-block; font-weight: 600; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 14px; }
.dir-list { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: 28px; font-size: .86rem; }
.dir-list li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--line); }
.dir-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.dir-list a:hover { text-decoration: underline; }
.dir-list span { color: var(--muted); }
.footer { background: var(--ink); color: #cbd5e1; padding: 36px 0 90px; font-size: .88rem; }
.footer p { max-width: 90ch; }
.footer .muted { color: #94a3b8; }
.wa-fab { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(31,168,85,.45); z-index: 25; }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- currency ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cur-menu { position: relative; }
.cur-menu .caret { width: 16px; height: 16px; margin-inline-start: -4px; }
.cur-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 40; width: 230px;
  list-style: none; margin: 0; padding: 6px; background: var(--surface); color: var(--ink);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.cur-list button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.cur-list button:hover, .cur-list button:focus-visible { background: #f3f4f6; }
.cur-list button[aria-selected="true"] { background: var(--gold-soft); }
.cur-list b { width: 38px; }
.cur-list span { color: var(--muted); }
.field .input-affix .affix-cur {
  flex: none; width: auto; min-height: 0; align-self: stretch; border: 0; border-radius: 0; border-inline-end: 1px solid var(--line);
  background: #f9fafb; padding: 0 6px 0 12px; color: var(--ink-2); font-size: .85rem; font-weight: 600; cursor: pointer; direction: ltr;
}
.field .input-affix .affix-cur:focus { outline: none; box-shadow: none; background: var(--gold-soft); }
.rate-note { color: var(--muted); margin: 4px 0 0; }
.footer .rate-note { color: #94a3b8; }
.price-aed { font-size: .8rem; font-weight: 500; color: var(--muted); margin-inline-start: 6px; }

/* ---------- list / map toggle ---------- */
.view-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.view-toggle button {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; border-radius: 999px;
  padding: 0 14px; min-height: 34px; font-size: .86rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.view-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- map view ---------- */
.map-toolbar { display: grid; gap: 10px; margin-bottom: 12px; }
.map-toolbar .chips:empty { display: none; }
.chip-count { color: var(--muted); font-weight: 600; margin-inline-start: 2px; }
.fac-chip { display: inline-flex; align-items: center; gap: 7px; }
.fac-chip:not(.on) { color: var(--muted); }
.fac-chip:not(.on) .dot { opacity: .35; }
.fac-chip.on { background: #fff; color: var(--ink); border-color: var(--ink); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(17,24,39,.12); flex: none; }
.dot.star { background: none; box-shadow: none; width: auto; height: auto; font-style: normal; font-size: .9rem; line-height: 1; color: var(--gold-2); }

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: stretch; }
.map-wrap { position: relative; min-width: 0; }
.map-canvas { height: max(460px, calc(100vh - 300px)); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #e5e7eb; z-index: 0; }
.map-hint {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 500; margin: 0;
  background: rgba(17,24,39,.85); color: #fff; font-size: .8rem; padding: 6px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap;
}
.map-error { display: grid; place-items: center; height: 100%; margin: 0; padding: 24px; text-align: center; color: var(--muted); }
.map-panel {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
  height: max(460px, calc(100vh - 300px)); overflow: auto;
}
.panel-head h3 { font-size: 1.05rem; }
.panel-head p { margin: 2px 0 12px; }
.panel-search { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.panel-search:focus { border-color: var(--gold-2); outline: none; box-shadow: 0 0 0 3px rgba(233,196,106,.35); }
.area-list, .cat-list, .lm-list, .near-grid { list-style: none; margin: 0; padding: 0; }
.area-list li { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.area-row { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: grid; gap: 3px; padding: 10px 4px; cursor: pointer; }
.area-row:hover .area-name { text-decoration: underline; text-underline-offset: 3px; }
.area-row:focus-visible { outline: 3px solid var(--gold-2); border-radius: 6px; }
.area-name { font-weight: 600; font-size: .9rem; }
.area-meta { font-size: .78rem; color: var(--muted); }
.area-bar { display: block; height: 4px; border-radius: 4px; background: #f3f4f6; overflow: hidden; }
.area-bar i { display: block; height: 100%; background: var(--gold-2); border-radius: 4px; }
.area-list-btn { font-size: .8rem; min-height: 32px; flex: none; }

.back-btn { padding: 0; margin-bottom: 10px; text-decoration: none; font-weight: 600; }
.np-head { display: flex; gap: 12px; align-items: flex-start; }
.np-head img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.np-head h3 { font-size: 1rem; }
.np-head .card-meta { font-size: .8rem; }
.np-head .price { font-size: .95rem; margin-top: 2px; }
.np-title { font-size: .92rem; margin: 18px 0 8px; }
.radius { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 8px; }
.radius .chip { padding: 3px 9px; min-height: 30px; font-size: .78rem; }
.cat-list > li { border-bottom: 1px solid var(--line); padding: 6px 0 8px; }
.cat-row { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 9px; width: 100%; padding: 4px 0; cursor: pointer; font-size: .88rem; font-weight: 600; }
.cat-row span { flex: 1; }
.cat-row:not(.on) { color: var(--muted); }
.cat-row:not(.on) .dot { opacity: .35; }
.cat-row:focus-visible { outline: 3px solid var(--gold-2); border-radius: 6px; }
.cat-places { list-style: none; margin: 2px 0 0; padding-inline-start: 19px; display: grid; gap: 2px; }
.cat-places li { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; }
.cat-places button { all: unset; cursor: pointer; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-places button:hover { text-decoration: underline; }
.cat-places button:focus-visible { outline: 2px solid var(--gold-2); }
.cat-places span, .lm-list b { color: var(--muted); font-weight: 500; white-space: nowrap; direction: ltr; }
.cat-none { margin: 2px 0 0; padding-inline-start: 19px; font-size: .78rem; color: var(--muted); }
.lm-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .84rem; border-bottom: 1px dashed var(--line); }
.np-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

/* Leaflet markers and popups */
.pin { width: 0; height: 0; }
.pin-tag {
  --pin-bg: var(--ink);
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 7px));
  background: var(--pin-bg); color: #fff; font: 700 .74rem/1 var(--font); padding: 6px 8px; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); border: 2px solid #fff;
}
.pin-tag::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--pin-bg);
}
.pin-tag.ok { --pin-bg: var(--green); }
.pin-tag.warn { --pin-bg: var(--amber); }
.pin-tag.sel { --pin-bg: var(--gold); color: var(--ink); font-size: .82rem; }
.leaflet-marker-icon:hover .pin-tag, .leaflet-marker-icon:focus .pin-tag { --pin-bg: var(--gold); color: var(--ink); }
.cluster span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--ink); color: var(--gold); font: 700 .85rem var(--font);
  border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(17,24,39,.18), 0 3px 10px rgba(0,0,0,.25);
}
.landmark span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: var(--gold-2); border: 1.5px solid var(--gold-2); font-size: .8rem; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.lm-tip { font: 600 .78rem var(--font); }
.pop .leaflet-popup-content-wrapper { padding: 0; border-radius: 12px; overflow: hidden; }
.pop .leaflet-popup-content { margin: 0; width: 260px !important; font-family: var(--font); line-height: 1.4; }
.map-pop img { width: 100%; height: 120px; object-fit: cover; }
.map-pop-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.map-pop-body h4 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; line-height: 1.2; }
.map-pop-body .price { font-size: 1rem; }
.map-pop-body .card-meta { font-size: .8rem; }
.map-pop-body p { margin: 0; }
.pop-metro { display: flex; align-items: center; gap: 7px; margin-top: 2px !important; font-size: .78rem; color: var(--ink-2); }
.pop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.pop-actions .btn { min-height: 36px; padding: 0 10px; font-size: .8rem; }
.leaflet-container { font-family: var(--font); }

/* map style switch, legend and area bubbles */
.map-style {
  position: absolute; top: 12px; right: 12px; z-index: 500; display: flex; padding: 3px; gap: 2px;
  background: #fff; border-radius: 999px; box-shadow: 0 2px 10px rgba(17,24,39,.2);
}
.map-style button { border: 0; background: none; border-radius: 999px; padding: 6px 12px; font: 600 .8rem var(--font); color: var(--ink-2); cursor: pointer; }
.map-style button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.map-legend {
  position: absolute; left: 12px; bottom: 26px; z-index: 500; max-width: calc(100% - 24px);
  background: rgba(255,255,255,.94); border-radius: 12px; box-shadow: 0 2px 10px rgba(17,24,39,.18);
  padding: 8px 12px; font-size: .74rem; color: var(--ink-2);
}
.map-legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px 10px; }
.map-legend li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.map-legend .lg-title { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.lg-tiers i { width: 12px; height: 12px; border-radius: 50%; }
.lg-lines { margin-top: 6px !important; }
.lg-tiers:last-child, .lg-title + .lg-tiers:last-child { margin: 0; }
.lg-lines i { width: 16px; height: 4px; border-radius: 2px; }
.map-legend > .lg-lines:first-child { margin-top: 0 !important; }

.area-bubble { width: 0; height: 0; }
.ab-dot {
  position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff;
  background: var(--tier); color: #fff; font: 700 .8rem var(--font); box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ab-label {
  position: absolute; top: 0; transform: translateY(-50%); left: calc(var(--s, 30px) / 2); margin-left: 4px;
  display: grid; background: rgba(255,255,255,.95); color: var(--muted); border-radius: 8px; padding: 3px 8px;
  font: 500 .7rem/1.25 var(--font); white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.15); pointer-events: none;
}
.ab-label b { color: var(--ink); font-size: .76rem; }
.area-bubble.no-label .ab-label { visibility: hidden; }
.area-bubble:hover .ab-label, .area-bubble:focus .ab-label { visibility: visible; z-index: 1; }
.area-bubble:hover .ab-dot { box-shadow: 0 0 0 3px var(--gold), 0 2px 8px rgba(0,0,0,.25); }
.tier-0 { --tier: #cc9d35; }
.tier-1 { --tier: #ae7f28; }
.tier-2 { --tier: #8e631d; }
.tier-3 { --tier: #6b4815; }
.tier-4 { --tier: #452d0f; }
.tier-0 .ab-dot, .tier-1 .ab-dot { color: var(--ink); }
.tier-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 7px; vertical-align: 0; }

/* detail window: nearby */
.near-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.near-grid li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 8px; font-size: .88rem; padding: 8px 10px; background: #f9fafb; border-radius: 10px; }
.near-grid small { grid-column: 2 / -1; color: var(--muted); font-size: .76rem; }
.loc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }

/* ---------- free consultation ---------- */
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .86rem; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* The booking pop-up fills the whole screen. */
.consult[open] {
  display: flex; flex-direction: column; overflow: hidden;
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border-radius: 0;
}
.consult-head { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--ink); color: #fff; }
.consult-logo { height: 38px; width: auto; flex: none; }
.consult-titles { flex: 1; min-width: 0; padding-inline-start: 14px; border-inline-start: 1px solid rgba(255,255,255,.2); }
.consult-head h2 { font-size: 1.05rem; }
.consult-head p { margin: 2px 0 0; color: #cbd5e1; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.consult-newtab { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; text-decoration: none; font-size: 1.1rem; flex: none; }
.consult-newtab:hover { background: rgba(255,255,255,.12); }
.consult-head .icon-btn { background: rgba(255,255,255,.12); color: #fff; flex: none; }
.consult-head .icon-btn:hover { background: rgba(255,255,255,.22); }
.consult-frame { flex: 1; min-height: 0; background: var(--bg); }
.consult-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Floating button in the corner opposite WhatsApp. */
.consult-fab {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 25;
  display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
}
.consult-fab-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--gold); box-shadow: 0 10px 30px rgba(212,167,63,.5); flex: none; transition: background .15s; }
.consult-fab-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.consult-fab-label { background: #fff; font-weight: 700; font-size: .84rem; padding: 8px 14px; border-radius: 999px; box-shadow: 0 4px 16px rgba(17,24,39,.18); white-space: nowrap; }
.consult-fab:hover .consult-fab-icon { background: var(--gold-2); }

.cta-teaser {
  position: fixed; bottom: 96px; inset-inline-start: 22px; z-index: 26; width: min(370px, calc(100% - 44px));
  background: var(--surface); color: var(--ink); border-radius: 16px; border-top: 4px solid var(--gold);
  box-shadow: 0 24px 60px rgba(17,24,39,.28); padding: 20px 20px 16px; animation: teaser-in .35s ease-out;
}
.cta-teaser h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin-inline-end: 30px; }
:root[dir="rtl"] .cta-teaser h3 { font-weight: 700; }
.cta-teaser p { color: var(--ink-2); font-size: .9rem; margin: 8px 0 14px; }
.cta-teaser .icon-btn { position: absolute; top: 10px; inset-inline-end: 10px; width: 32px; height: 32px; font-size: 1.25rem; }
.teaser-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@keyframes teaser-in { from { transform: translateY(18px); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .only-mobile { display: inline-flex !important; }
  .filters {
    position: fixed; inset: 0; z-index: 60; max-height: none; border-radius: 0; top: 0;
    transform: translateX(-100%); transition: transform .25s; overflow: auto;
  }
  :root[dir="rtl"] .filters { transform: translateX(100%); }
  .filters.open, :root[dir="rtl"] .filters.open { transform: none; }
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .map-canvas { height: 62vh; min-height: 380px; }
  .map-hint { top: 12px; left: 54px; right: 150px; transform: none; white-space: normal; font-size: .72rem; border-radius: 12px; }
  .map-legend { bottom: 22px; left: 8px; padding: 6px 10px; font-size: .7rem; }
  .map-legend .lg-lines { display: none; }
  .map-panel { height: auto; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 0 40px; }
  .brand-sub { display: none; }
  .brand-logo { height: 40px; }
  .top-actions .btn { padding: 0 12px; }
  .top-actions [data-i18n="shortlist"] { display: none; }
  .hero-stats { gap: 24px; }
  .budget-card { padding: 22px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero-ctas .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .quiz-options { grid-template-columns: 1fr; }
  .modal-body { padding: 22px 18px 26px; }
  .modal-body h2 { font-size: 1.6rem; }
  .results-head .sort span { display: none; }
  .near-grid { grid-template-columns: minmax(0, 1fr); }
  .view-toggle button { padding: 0 10px; }
  .hide-mobile { display: none !important; }
  .consult-logo, .consult-newtab { display: none; }
  .consult-titles { padding-inline-start: 0; border: 0; }
  .cta-teaser { inset-inline: 12px; bottom: 92px; width: auto; padding: 16px 16px 12px; }
  .cta-teaser h3 { font-size: 1.15rem; }
  .top-actions { gap: 6px; }
  .top-actions .btn { padding: 0 10px; }
  .map-toolbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .map-toolbar .chips::-webkit-scrollbar { display: none; }
}
@media (max-width: 400px) {
  .brand-logo { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- language switch in the project window, and the PDF report (4 Oct 2026) ---------- */
.modal-lang { position: absolute; top: 14px; inset-inline-start: 14px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.92); font: 600 .95rem "IBM Plex Sans Arabic", var(--font); color: var(--ink); cursor: pointer; }
.modal-lang:hover { background: #fff; }
.pdf-ready { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pdf-ready p { margin: 0; flex: 1 1 220px; }
.pdf-report { position: fixed; top: 0; left: -10000px; width: 794px; background: #fff; color: var(--ink); padding: 34px 40px 30px; font-size: 14px; line-height: 1.45; }
.pdf-report[dir="rtl"] { font-family: "IBM Plex Sans Arabic", var(--font); }
.pdf-report header { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 3px solid var(--gold); padding-bottom: 12px; margin-bottom: 16px; }
.pdf-report header img { height: 46px; width: auto; }
.pdf-report header div { display: grid; text-align: end; }
.pdf-report header b { font-size: 16px; }
.pdf-report header small { color: var(--ink-2); }
.pdf-photo { display: block; width: 100%; height: 300px; object-fit: cover; border-radius: 12px; }
.pdf-report h1 { font-family: var(--font-display); font-weight: 400; font-size: 32px; margin: 16px 0 2px; }
.pdf-meta { margin: 0; color: var(--ink-2); }
.pdf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.pdf-facts div { background: #f6f5f2; border-radius: 10px; padding: 10px 12px; display: grid; }
.pdf-facts small { color: var(--ink-2); }
.pdf-facts b { font-size: 16px; }
.pdf-report h2 { font-size: 17px; margin: 18px 0 6px; }
.pdf-note { margin: 4px 0 0; font-size: 11.5px; color: var(--ink-2); }
.pdf-amen { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pdf-amen li { background: #f6f5f2; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; }
.pdf-lm { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.pdf-lm li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #eee; padding: 3px 0; }
.pdf-summary { margin: 0; font-size: 13px; color: var(--ink-2); }
.pdf-report footer { margin-top: 20px; background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.pdf-report footer div { display: grid; }
.pdf-report footer b { color: var(--gold); font-size: 16px; }
.pdf-link { text-align: end; }
.pdf-link small { opacity: .75; }
.pdf-report .planbar { height: 26px; margin-top: 10px; }
.pdf-report .seg { display: block; height: 26px; line-height: 26px; padding: 0; text-align: center; font-size: 12px; }
