/* =========================================================
   منزلة العقارية — نظام التصميم
   ========================================================= */
:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --sand-100: #F3EDE3;
  --sand-200: #E9E0D1;
  --line: #E4DBCC;
  --line-2: #D6CBB8;
  --ink: #14211C;
  --ink-2: #3B4843;
  --muted: #5F6B66;
  --green: #0F4C3A;
  --green-2: #176149;
  --green-900: #0A2F25;
  --green-50: #E8F1EC;
  --gold: #C9A86C;
  --gold-ink: #85652F;
  --gold-50: #F7EFDF;

  --st-available: #1E7449;
  --st-negotiation: #5E47A0;
  --st-reserved: #995000;
  --st-sold: #A3342B;
  --st-rented: #2457A6;

  --of-sale: #0F4C3A;
  --of-rent: #2457A6;
  --of-investment: #85652F;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 28, .06), 0 1px 1px rgba(20, 33, 28, .04);
  --shadow: 0 10px 30px -12px rgba(20, 33, 28, .18), 0 2px 6px rgba(20, 33, 28, .05);
  --shadow-lg: 0 30px 60px -24px rgba(10, 47, 37, .35);

  --f-body: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', system-ui, sans-serif;
  --f-display: 'Alexandria', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.3; margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 2000; background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.ic { width: 20px; height: 20px; flex: none; }
.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.cur { font-size: .72em; font-weight: 500; color: inherit; opacity: .8; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-2); box-shadow: 0 8px 20px -8px rgba(15, 76, 58, .6); }
.btn--gold { background: var(--gold); color: var(--green-900); }
.btn--gold:hover { background: #D6B87F; }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { background: var(--gold-50); }
.btn--wa { background: #1F8F55; color: #fff; }
.btn--wa:hover { background: #197A48; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: .2s; }
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.dot-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--green-900); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.link { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(250, 247, 242, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .25); }
.site-header__in { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--green); }
.logo svg { width: 42px; height: 42px; }
.logo span { display: flex; flex-direction: column; line-height: 1.05; }
.logo b { font-family: var(--f-display); font-size: 22px; font-weight: 700; color: var(--ink); }
.logo small { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.logo--light b { color: #fff; }
.logo--light small { color: rgba(255, 255, 255, .7); }
.logo--light { color: var(--gold); }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav__link { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: .2s; }
.nav__link:hover { color: var(--green); background: var(--green-50); }
.nav__link.is-active { color: var(--green); background: var(--green-50); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.show-sm { display: none !important; }

.drawer { position: fixed; inset: 0; z-index: 1500; background: rgba(10, 30, 24, .45); }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(340px, 88vw); background: var(--bg); padding: 18px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-lg); animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__nav .nav__link { padding: 12px 14px; font-size: 17px; border-radius: 12px; }

/* ---------- Badges / Status ---------- */
.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; }
.badge--sale { background: var(--of-sale); }
.badge--rent { background: var(--of-rent); }
.badge--investment { background: var(--of-investment); }
.status { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--available { color: var(--st-available); }
.status--negotiation { color: var(--st-negotiation); }
.status--reserved { color: var(--st-reserved); }
.status--sold { color: var(--st-sold); }
.status--rented { color: var(--st-rented); }
.stamp { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 24px; font-weight: 700; color: #fff; background: rgba(20, 33, 28, .45); letter-spacing: .02em; }
.stamp::before { content: ''; position: absolute; width: 150px; height: 56px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 12px; transform: rotate(-8deg); }

/* ---------- Card ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__top { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.fav-btn { position: absolute; top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: .2s; }
.fav-btn:hover { transform: scale(1.06); color: var(--st-sold); }
.fav-btn.is-on { color: var(--st-sold); }
.fav-btn.is-on svg { fill: currentColor; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.type-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); font-weight: 600; }
.type-chip .ic { width: 17px; height: 17px; }
.card__title { font-size: 18px; font-weight: 600; line-height: 1.45; }
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.fav-btn, .card__top { z-index: 2; }
.card__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.card__loc .ic { width: 16px; height: 16px; }
.facts { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: 14px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .ic { width: 18px; height: 18px; color: var(--muted); }
.card__foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.price { font-family: var(--f-display); font-size: 21px; font-weight: 700; color: var(--green); line-height: 1.2; }
.price small { font-family: var(--f-body); font-size: 13px; font-weight: 500; color: var(--muted); }
.code { font-size: 12px; color: var(--muted); direction: ltr; letter-spacing: .04em; }
.card--closed .card__media img { filter: grayscale(.55); }
.card--closed .price { color: var(--muted); }
.card--row { flex-direction: row; }
.card--row .card__media { width: 38%; aspect-ratio: auto; min-height: 220px; }
.card--row .card__body { padding: 20px 24px; }
.card.is-hl { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(15, 76, 58, .12); }
.select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6B66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: left 14px center; }
.input[aria-invalid="true"] { border-color: var(--st-sold); }
.err { color: var(--st-sold); font-size: 13px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: .15s; }
.chip .ic { width: 17px; height: 17px; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.seg { display: inline-flex; padding: 4px; background: var(--sand-100); border-radius: 999px; gap: 2px; }
.seg button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--green); box-shadow: var(--shadow-sm); }
.seg .ic { width: 18px; height: 18px; }
.range2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--gold-ink); margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); }
.h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; }
.lead { color: var(--ink-2); font-size: 17px; max-width: 620px; margin-top: 10px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }

/* ---------- Hero ---------- */
.hero { padding: 16px 0 0; }
.hero__box { position: relative; border-radius: var(--r-xl); background: radial-gradient(1200px 500px at 85% -10%, #1E6B53 0%, transparent 60%), linear-gradient(160deg, #0F4C3A 0%, #0A2F25 100%); color: #fff; overflow: hidden; min-height: 640px; padding: 96px 64px 180px; isolation: isolate; }
.hero__box::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z M28 16 40 28 28 40 16 28Z' fill='none' stroke='%23C9A86C' stroke-width='1.5'/%3E%3C/svg%3E"); background-size: 56px; }
.hero__sky { position: absolute; inset-inline: 0; bottom: 0; height: 46%; z-index: -1; opacity: .9; }
.hero__sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 47, 37, 0) 0%, rgba(10, 47, 37, .35) 100%); }
.grid-cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .grid-cards--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .grid-cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-cards--4 { grid-template-columns: 1fr; } }
.hero__sky img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.hero__content { max-width: 720px; }
.hero__tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: rgba(255, 255, 255, .88); margin-bottom: 26px; }
.hero__tag b { background: var(--gold); color: var(--green-900); padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 72px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { margin-top: 20px; font-size: 19px; color: rgba(255, 255, 255, .82); max-width: 560px; }
.hero__stats { display: flex; gap: 40px; margin-top: 36px; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats b { font-family: var(--f-display); font-size: 32px; font-weight: 700; color: #fff; }
.hero__stats span { font-size: 14px; color: rgba(255, 255, 255, .72); }

.search { position: relative; z-index: 5; margin: -120px auto 0; width: min(1120px, 100% - 64px); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 10px 10px 18px; }
.search__tabs { display: flex; gap: 4px; padding: 6px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.search__tabs button { min-height: 44px; padding: 0 20px; border: 0; background: transparent; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.search__tabs button[aria-selected="true"] { background: var(--green); color: #fff; }
.search__row { display: grid; grid-template-columns: 1.1fr 1.1fr 1.4fr 1fr auto; gap: 12px; padding: 0 10px; align-items: end; }
.search__row .btn { min-height: 48px; padding: 0 30px; }

/* ---------- Type tiles ---------- */
.types { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.type-tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: .25s; }
.type-tile:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
.type-tile .ic { width: 34px; height: 34px; color: var(--green); stroke-width: 1.3; }
.type-tile b { font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.type-tile span { font-size: 13px; color: var(--muted); }
.type-tile:hover .ic { color: var(--gold-ink); }

/* ---------- Tabs line ---------- */
.tabs-line { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Investment band ---------- */
.invest { background: linear-gradient(160deg, #0F4C3A, #0A2F25); color: #fff; border-radius: var(--r-xl); padding: 72px 56px; position: relative; overflow: hidden; isolation: isolate; }
.invest::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z' fill='none' stroke='%23C9A86C' stroke-width='1.5'/%3E%3C/svg%3E"); }
.invest .eyebrow { color: var(--gold); }
.invest .lead { color: rgba(255, 255, 255, .78); }
.invest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.icard { display: flex; flex-direction: column; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); overflow: hidden; transition: .25s; position: relative; }
.icard:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.icard__media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.icard__media img { width: 100%; height: 100%; object-fit: cover; }
.icard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.icard h3 { font-size: 18px; }
.icard h3 a::after { content: ''; position: absolute; inset: 0; }
.icard__loc { font-size: 14px; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: 6px; }
.icard__loc .ic { width: 16px; height: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: 12px; overflow: hidden; }
.kpis div { background: #0E4334; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.kpis span { font-size: 12px; color: rgba(255, 255, 255, .68); }
.kpis b { font-family: var(--f-display); font-size: 17px; font-weight: 600; }
.kpis b.gold { color: var(--gold); }

/* ---------- Cities ---------- */
.cities { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.city { position: relative; border-radius: var(--r-lg); padding: 24px 20px; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff; background: var(--green); isolation: isolate; transition: transform .25s; }
.city:hover { transform: translateY(-3px); }
.city::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c-bg, linear-gradient(160deg, #176149, #0A2F25)); }
.city::after { content: ''; position: absolute; inset: auto -30px -40px auto; width: 160px; height: 160px; z-index: -1; opacity: .16; border: 2px solid var(--gold); transform: rotate(45deg); border-radius: 18px; }
.city b { font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.city span { font-size: 14px; color: rgba(255, 255, 255, .78); display: flex; align-items: center; justify-content: space-between; }
.city span .ic { width: 22px; height: 22px; }

/* ---------- Map teaser / Services ---------- */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.map-box { position: relative; height: 460px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks .ic { width: 22px; height: 22px; color: var(--green); background: var(--green-50); border-radius: 50%; padding: 3px; margin-top: 2px; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; }
.service .ic-wrap { width: 54px; height: 54px; border-radius: 16px; background: var(--gold-50); color: var(--gold-ink); display: grid; place-items: center; }
.service .ic-wrap .ic { width: 28px; height: 28px; }
.service h3 { font-size: 19px; }
.service p { color: var(--muted); font-size: 15px; }

.trust { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 28px 32px; border-radius: var(--r-lg); background: var(--gold-50); border: 1px solid #EADCBF; }
.trust .ic-wrap { width: 64px; height: 64px; border-radius: 18px; background: var(--surface); display: grid; place-items: center; color: var(--green); }
.trust .ic-wrap .ic { width: 32px; height: 32px; }
.trust h3 { font-size: 20px; margin-bottom: 4px; }
.trust p { color: var(--ink-2); }

.cta { border-radius: var(--r-xl); padding: 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; background: var(--sand-100); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cta__art { position: relative; height: 260px; border-radius: var(--r-lg); overflow: hidden; }
.cta__art img { width: 100%; height: 100%; object-fit: cover; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .78); padding: 72px 0 28px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { margin: 18px 0 22px; max-width: 340px; font-size: 15px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer a:hover { color: var(--gold); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .ic { color: var(--gold); width: 18px; height: 18px; margin-top: 4px; }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); display: grid; place-items: center; transition: .2s; }
.social a:hover { border-color: var(--gold); color: var(--gold); }
.social .ic { width: 18px; height: 18px; }
.footer-legal { margin-top: 48px; padding: 18px 0; border-block: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ---------- Toast / Modal ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 3000; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; display: flex; align-items: center; gap: 10px; font-size: 15px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow-lg); }
.toast .ic { color: var(--gold); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; z-index: 2500; background: rgba(10, 30, 24, .55); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal__box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.modal--wide .modal__box { width: min(1100px, 100%); padding: 0; background: #0B1612; }
.modal__x { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; }
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal .form-grid { margin-top: 20px; }

/* ---------- Page heads ---------- */
.page-head { padding: 40px 0 28px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--green); }
.crumbs .ic { width: 14px; height: 14px; }
.page-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; }

/* ---------- Listing ---------- */
.list-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); max-height: calc(100vh - var(--header-h) - 32px); display: flex; flex-direction: column; }
.filters__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.filters__head h2 { font-size: 18px; display: flex; gap: 8px; align-items: center; }
.filters__body { overflow: auto; padding: 4px 20px 12px; }
.filters__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: none; gap: 10px; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--sand-200); display: flex; flex-direction: column; gap: 10px; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > .label { font-size: 14px; color: var(--ink); }
.fgroup .chips { gap: 6px; }
.fgroup .chip { min-height: 36px; padding: 0 12px; font-size: 13px; }
.num-pills { display: flex; gap: 6px; }
.num-pills button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; }
.num-pills button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.textbtn { background: none; border: 0; padding: 6px 4px; color: var(--green); font-weight: 600; font-size: 14px; min-height: 36px; }
.textbtn:hover { text-decoration: underline; text-underline-offset: 4px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar__count { font-size: 15px; color: var(--ink-2); }
.toolbar__count b { font-family: var(--f-display); color: var(--ink); font-size: 18px; }
.toolbar__end { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .select { min-height: 44px; width: auto; min-width: 180px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-chips:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--green-50); color: var(--green); font-size: 13px; font-weight: 600; border: 0; }
.achip .ic { width: 16px; height: 16px; }
.offer-tabs { margin-bottom: 20px; }
.results.is-list { grid-template-columns: 1fr; }
.results.is-loading { opacity: .5; pointer-events: none; }
.map-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px; align-items: start; }
.map-split .results { grid-template-columns: 1fr; }
.map-split__map { position: sticky; top: calc(var(--header-h) + 16px); height: calc(100vh - var(--header-h) - 32px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager button { min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; }
.pager button[aria-current="page"] { background: var(--green); color: #fff; border-color: var(--green); }
.pager button:disabled { opacity: .4; cursor: default; }
.empty { text-align: center; padding: 72px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .ic { width: 48px; height: 48px; color: var(--gold-ink); stroke-width: 1.2; }
.empty h3 { font-size: 20px; }
.empty p { color: var(--muted); max-width: 380px; }
.filter-fab { display: none; }

/* ---------- Map elements ---------- */
.map { background: #E9E4DA; }
.map--notiles { background-color: #EEE8DC; background-image: linear-gradient(rgba(255, 255, 255, .7) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .7) 2px, transparent 2px), linear-gradient(rgba(201, 168, 108, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 168, 108, .14) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.map--notiles::after { content: 'معاينة: طبقة الخريطة تظهر بعد الرفع على السيرفر'; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 1000; direction: rtl; background: rgba(20, 33, 28, .78); color: #fff; font: 500 12px/1 var(--f-body); padding: 8px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.map-fail { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.map-fail .ic { width: 36px; height: 36px; }
.mk-wrap { background: none; border: 0; }
.mk-price { position: absolute; transform: translate(-50%, -100%); padding: 6px 11px; border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 13px/1 var(--f-body); white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); border: 2px solid var(--surface); transition: transform .15s, background .15s; cursor: pointer; direction: ltr; }
.mk-price::after { content: ''; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--surface); border-bottom: 0; }
.mk-price--sale { color: var(--of-sale); }
.mk-price--rent { color: var(--of-rent); }
.mk-price--investment { color: var(--of-investment); }
.mk-price.is-closed { opacity: .55; }
.is-active > .mk-price, .mk-price:hover { background: var(--green); color: #fff; border-color: var(--green); transform: translate(-50%, -100%) scale(1.08); }
.is-active > .mk-price::after, .mk-price:hover::after { border-top-color: var(--green); }
.mk-home { position: absolute; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(15, 76, 58, .2), 0 6px 16px rgba(0, 0, 0, .25); border: 3px solid #fff; }
.mk-home svg { width: 24px; height: 24px; }
.mk-poi { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink-2); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); border: 2px solid #fff; transition: transform .15s; }
.mk-poi .ic { width: 18px; height: 18px; }
.is-active > .mk-poi { transform: translate(-50%, -50%) scale(1.25); background: var(--gold); color: var(--green-900); }
.mk-poi--mosque { color: #0F6B4F; } .mk-poi--school { color: #2457A6; } .mk-poi--health { color: #B23A2F; } .mk-poi--pharmacy { color: #1E7449; }
.mk-poi--grocery { color: #8A5A00; } .mk-poi--mall { color: #6B3FA0; } .mk-poi--food { color: #9A4A1E; } .mk-poi--park { color: #3E7A2A; } .mk-poi--fuel { color: #444; } .mk-poi--bank { color: #1D5E6E; }
.mk-pop { position: absolute; transform: translate(-50%, calc(-100% - 46px)); width: 240px; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); direction: rtl; font-family: var(--f-body); }
.mk-pop img { width: 100%; height: 110px; object-fit: cover; }
.mk-pop div { padding: 10px 12px; }
.mk-pop b { display: block; font-size: 14px; line-height: 1.4; }
.mk-pop span { font-size: 13px; color: var(--green); font-weight: 700; }

/* Leaflet essentials (inlined: CSP يمنع ملفات CSS الخارجية) */
.leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-tile-container, .leaflet-pane > svg, .leaflet-pane > canvas, .leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer { position: absolute; left: 0; top: 0; }
.leaflet-container { overflow: hidden; position: relative; font-family: var(--f-body); -webkit-tap-highlight-color: transparent; outline-offset: 1px; }
.leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow { user-select: none; -webkit-user-drag: none; }
.leaflet-container img.leaflet-tile, .leaflet-container .leaflet-marker-pane img { max-width: none !important; max-height: none !important; }
.leaflet-tile { filter: inherit; visibility: hidden; }
.leaflet-tile-loaded { visibility: inherit; }
.leaflet-pane { z-index: 400; } .leaflet-tile-pane { z-index: 200; } .leaflet-overlay-pane { z-index: 400; } .leaflet-shadow-pane { z-index: 500; } .leaflet-marker-pane { z-index: 600; } .leaflet-tooltip-pane { z-index: 650; } .leaflet-popup-pane { z-index: 700; }
.leaflet-map-pane canvas { z-index: 100; } .leaflet-map-pane svg { z-index: 200; }
.leaflet-control { position: relative; z-index: 800; pointer-events: auto; float: left; clear: both; }
.leaflet-top, .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.leaflet-top { top: 0; } .leaflet-right { right: 0; } .leaflet-bottom { bottom: 0; } .leaflet-left { left: 0; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 12px; } .leaflet-bottom .leaflet-control { margin-bottom: 0; } .leaflet-left .leaflet-control { margin-left: 12px; } .leaflet-right .leaflet-control { margin-right: 0; }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-zoom-anim .leaflet-zoom-animated { transition: transform .25s cubic-bezier(0, 0, .25, 1); }
.leaflet-zoom-anim .leaflet-tile, .leaflet-pan-anim .leaflet-tile { transition: none; }
.leaflet-zoom-anim .leaflet-zoom-hide { visibility: hidden; }
.leaflet-interactive { cursor: pointer; }
.leaflet-grab { cursor: grab; }
.leaflet-dragging .leaflet-grab, .leaflet-dragging .leaflet-grab .leaflet-interactive { cursor: grabbing; }
.leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-image-layer, .leaflet-pane > svg path, .leaflet-tile-container { pointer-events: none; }
.leaflet-marker-icon.leaflet-interactive, .leaflet-pane > svg path.leaflet-interactive { pointer-events: auto; }
.leaflet-bar { border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.leaflet-bar a { display: grid; place-items: center; width: 40px; height: 40px; background: #fff; color: var(--ink); font: 600 20px/1 var(--f-body); border-bottom: 1px solid var(--line); }
.leaflet-bar a:last-child { border-bottom: 0; }
.leaflet-bar a:hover { background: var(--sand-100); }
.leaflet-control-attribution { background: rgba(255, 255, 255, .8); padding: 2px 8px; font-size: 11px; color: #333; }
.leaflet-control-attribution a { color: #2457A6; }

/* ---------- Property page ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 10px; border-radius: var(--r-xl); overflow: hidden; position: relative; }
.gallery button { padding: 0; border: 0; position: relative; overflow: hidden; background: var(--sand-100); }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 33, 28, .55); color: #fff; font-weight: 700; font-size: 18px; }
.gallery__all { position: absolute; bottom: 16px; inset-inline-end: 16px; z-index: 2; }
.gallery .stamp { font-size: 34px; }
.gallery .stamp::before { width: 230px; height: 80px; }
.gallery.is-closed img { filter: grayscale(.5); }

.prop-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin: 28px 0 8px; }
.prop-head__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.prop-head h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
.prop-head__loc { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 10px; color: var(--muted); font-size: 15px; }
.prop-head__loc span { display: inline-flex; gap: 6px; align-items: center; }
.prop-head__loc .ic { width: 17px; height: 17px; }
.prop-head__actions { display: flex; gap: 8px; }

.prop-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; margin-top: 28px; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.keyfacts div { background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.keyfacts .ic { width: 24px; height: 24px; color: var(--gold-ink); }
.keyfacts span { font-size: 13px; color: var(--muted); }
.keyfacts b { font-family: var(--f-display); font-size: 18px; font-weight: 600; }

.ptabs { position: sticky; top: var(--header-h); z-index: 50; background: rgba(250, 247, 242, .94); backdrop-filter: blur(10px); display: flex; gap: 4px; overflow-x: auto; margin: 28px 0 0; padding: 10px 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.ptabs a { padding: 8px 16px; border-radius: 999px; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.ptabs a:hover, .ptabs a.is-active { background: var(--green-50); color: var(--green); }
.psec { padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 70px); }
.psec:last-child { border-bottom: 0; }
.psec h2 { font-size: 24px; margin-bottom: 20px; }
.desc { color: var(--ink-2); font-size: 17px; line-height: 1.9; }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.spec-group { margin-bottom: 26px; }
.spec-group h3 { font-size: 15px; color: var(--gold-ink); margin-bottom: 8px; font-weight: 600; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.spec-row span { color: var(--muted); }
.spec-row b { font-weight: 600; text-align: end; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feature { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.feature .ic { width: 22px; height: 22px; color: var(--green); background: var(--green-50); border-radius: 50%; padding: 3px; }
.feature.is-off { color: var(--muted); background: transparent; border-style: dashed; }
.feature.is-off .ic { color: var(--muted); background: var(--sand-100); }

.nearby { display: grid; grid-template-columns: 1fr 360px; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.nearby__map { height: 520px; }
.nearby__side { display: flex; flex-direction: column; border-inline-start: 1px solid var(--line); min-height: 0; max-height: 520px; }
.nearby__cats { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px; border-bottom: 1px solid var(--line); }
.nearby__cats .chip { min-height: 34px; padding: 0 10px; font-size: 13px; }
.nearby__list { list-style: none; margin: 0; padding: 6px; overflow: auto; flex: 1; }
.nearby__list li button { width: 100%; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 0; background: none; border-radius: 12px; text-align: start; }
.nearby__list li button:hover, .nearby__list li button.is-active { background: var(--sand-100); }
.nearby__list .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--sand-100); display: grid; place-items: center; color: var(--ink-2); }
.nearby__list .ico .ic { width: 18px; height: 18px; }
.nearby__list b { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.nearby__list small { color: var(--muted); font-size: 12px; }
.nearby__list .d { text-align: end; font-size: 13px; font-weight: 600; color: var(--green); white-space: nowrap; }
.nearby__list .d small { display: flex; gap: 4px; align-items: center; justify-content: flex-end; font-weight: 400; }
.nearby__list .d .ic { width: 13px; height: 13px; }
.nearby__note { padding: 10px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); display: flex; gap: 6px; align-items: center; }
.nearby__note .ic { width: 15px; height: 15px; }
.nearby-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.nearby-summary div { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.nearby-summary .ic { width: 22px; height: 22px; color: var(--gold-ink); }
.nearby-summary span { font-size: 12px; color: var(--muted); }
.nearby-summary b { font-size: 15px; }

.legal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.legal div { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.legal span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.legal b { font-size: 16px; direction: ltr; display: inline-block; letter-spacing: .03em; }
.legal-note { margin-top: 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); padding: 12px 16px; border-radius: 12px; background: var(--green-50); }
.legal-note .ic { color: var(--green); }

.invest-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.invest-box div { padding: 20px; border-radius: 16px; background: var(--green-900); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.invest-box span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.invest-box b { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.invest-box b.gold { color: var(--gold); }

/* Sticky side */
.side { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.pricebox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.pricebox__label { font-size: 14px; color: var(--muted); }
.pricebox__price { font-family: var(--f-display); font-size: 34px; font-weight: 700; color: var(--green); line-height: 1.2; margin: 4px 0; }
.pricebox__price small { font-size: 15px; color: var(--muted); font-family: var(--f-body); font-weight: 500; }
.pricebox__sub { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 12px 0; border-bottom: 1px dashed var(--line); }
.pricebox__sub:last-of-type { border-bottom: 0; }
.pricebox__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.pricebox__btns .btn--primary { grid-column: 1 / -1; }
.closed-note { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--sand-100); color: var(--ink-2); font-size: 14px; display: flex; gap: 10px; }
.closed-note .ic { color: var(--st-sold); }
.agent { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-50); color: var(--gold-ink); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 20px; }
.agent b { display: block; font-size: 16px; }
.agent small { color: var(--muted); font-size: 13px; display: block; }
.agent .fal { font-size: 12px; color: var(--muted); direction: ltr; text-align: end; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.calc h3 { font-size: 17px; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.calc h3 .ic { color: var(--gold-ink); }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc__out { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--green-50); display: flex; justify-content: space-between; align-items: center; }
.calc__out b { font-family: var(--f-display); font-size: 22px; color: var(--green); }
.calc__out span { font-size: 13px; color: var(--ink-2); }
.calc__fine { font-size: 12px; color: var(--muted); margin-top: 10px; }

.mobile-bar { display: none; }

/* Lightbox */
.lb { position: relative; display: grid; grid-template-rows: 1fr auto; height: min(86vh, 760px); color: #fff; }
.lb__stage { position: relative; display: grid; place-items: center; overflow: hidden; }
.lb__stage img { max-height: 100%; width: 100%; object-fit: contain; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.lb__nav:hover { background: rgba(255, 255, 255, .26); }
.lb__prev { inset-inline-start: 16px; } .lb__next { inset-inline-end: 16px; }
.lb__thumbs { display: flex; gap: 8px; padding: 14px; overflow-x: auto; justify-content: center; }
.lb__thumbs button { width: 92px; height: 64px; flex: none; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; opacity: .6; background: none; }
.lb__thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb__count { position: absolute; top: 18px; inset-inline-start: 20px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.modal--wide .modal__x { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }

/* ---------- About / Contact ---------- */
.about-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-hero__art { border-radius: var(--r-xl); overflow: hidden; height: 440px; position: relative; }
.about-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 26px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: '0' counter(s); font-family: var(--f-display); font-size: 40px; font-weight: 700; color: var(--gold); opacity: .55; line-height: 1; display: block; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.req-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.req-tabs label { position: relative; }
.req-tabs input { position: absolute; opacity: 0; inset: 0; }
.req-tabs span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; transition: .15s; }
.req-tabs span .ic { width: 24px; height: 24px; color: var(--gold-ink); }
.req-tabs input:checked + span { border-color: var(--green); background: var(--green-50); color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.req-tabs input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.info-list { display: grid; gap: 14px; }
.info-item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.info-item .ic-wrap { width: 48px; height: 48px; border-radius: 14px; background: var(--green-50); color: var(--green); display: grid; place-items: center; }
.info-item span { font-size: 13px; color: var(--muted); display: block; }
.info-item b { font-weight: 600; }
.success { text-align: center; padding: 30px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.success .ic-wrap { width: 72px; height: 72px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; }
.success .ic-wrap .ic { width: 36px; height: 36px; }
.demo-note { font-size: 13px; color: var(--muted); background: var(--sand-100); padding: 8px 12px; border-radius: 10px; }

/* Skeleton */
.sk { background: linear-gradient(90deg, var(--sand-100), var(--sand-200), var(--sand-100)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-lg); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__link { padding: 8px 10px; font-size: 14px; }
  .types { grid-template-columns: repeat(4, 1fr); }
  .cities { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .prop-layout { grid-template-columns: 1fr 340px; }
  .nearby { grid-template-columns: 1fr; }
  .nearby__side { border-inline-start: 0; border-top: 1px solid var(--line); max-height: 420px; }
  .nearby__map { height: 400px; }
  .nearby-summary { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1020px) {
  .nav, .hide-sm { display: none !important; }
  .show-sm { display: inline-grid !important; }
  .header-actions { margin-inline-start: auto; }
  .hero__box { padding: 72px 36px 170px; min-height: 600px; }
  .search__row { grid-template-columns: 1fr 1fr; }
  .search__row .field--q { grid-column: 1 / -1; order: -1; }
  .search__row .btn { grid-column: 1 / -1; }
  .invest-grid { grid-template-columns: 1fr 1fr; }
  .split, .about-hero, .cta, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .list-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 1600; max-height: none; border-radius: 0; border: 0; display: none; }
  .filters.is-open { display: flex; }
  .filters__foot { display: flex; }
  .filter-fab { display: inline-flex; }
  .map-split { grid-template-columns: 1fr; }
  .map-split__map { position: relative; top: 0; height: 420px; order: -1; }
  .prop-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .mobile-bar { display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 800; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgba(0, 0, 0, .25); align-items: center; }
  .mobile-bar .price { font-size: 18px; flex: 1; }
  .mobile-bar .btn { min-height: 46px; padding: 0 16px; }
  body.has-mobile-bar .site-footer { padding-bottom: 110px; }
  .legal { grid-template-columns: 1fr 1fr; }
  .invest-box { grid-template-columns: 1fr 1fr; }
  .steps, .values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .hero { padding-top: 8px; }
  .hero__box { padding: 48px 22px 150px; border-radius: 24px; min-height: 560px; }
  .hero__lead { font-size: 16px; }
  .hero__stats { gap: 24px; }
  .hero__stats b { font-size: 24px; }
  .search { width: calc(100% - 24px); margin-top: -110px; }
  .search__tabs { overflow-x: auto; }
  .search__row { grid-template-columns: 1fr; padding: 0 6px; }
  .types { grid-template-columns: repeat(2, 1fr); }
  .cities { grid-template-columns: repeat(2, 1fr); }
  .city { min-height: 150px; }
  .invest { padding: 44px 20px; border-radius: 24px; }
  .invest-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; text-align: start; }
  .cta { padding: 36px 22px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .map-box { height: 360px; }
  .grid-cards { grid-template-columns: 1fr; }
  .card--row { flex-direction: column; }
  .card--row .card__media { width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
  .toolbar .select { min-width: 0; flex: 1; }
  .toolbar__end { width: 100%; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 110px; border-radius: 20px; }
  .gallery button:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
  .prop-head { grid-template-columns: 1fr; }
  .specs, .features, .legal, .form-grid, .calc__grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .nearby-summary { grid-template-columns: 1fr 1fr; }
  .steps, .values { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .modal__box { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Listing: map view & filter drawer ---------- */
.filters__close { display: none; width: 40px; height: 40px; }
.filters__head > div { display: flex; align-items: center; gap: 6px; }
.filters-backdrop { position: fixed; inset: 0; z-index: 1550; background: rgba(10, 30, 24, .45); }
.list-layout.is-map { grid-template-columns: 1fr; }
.list-layout.is-map .filters { position: fixed; inset-block: 0; inset-inline-start: 0; top: 0; width: min(380px, 100vw); max-height: none; z-index: 1600; border-radius: 0; border: 0; display: none; box-shadow: var(--shadow-lg); }
.list-layout.is-map .filters.is-open { display: flex; }
.list-layout.is-map .filters__foot, .list-layout.is-map .filters__close { display: flex; }
.list-layout.is-map .filter-fab { display: inline-flex; }
.map-split .results { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
@media (max-width: 1020px) { .filters__close { display: grid; } .filters { top: 0; } }
.list-layout .results { grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); }
.list-layout .results.is-list { grid-template-columns: 1fr; }
.gallery--n1 { grid-template-columns: 1fr; grid-template-rows: 470px; }
.gallery--n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 470px; }
.gallery--n1 button:first-child, .gallery--n2 button:first-child { grid-row: auto; }
.gallery--n3 { grid-template-columns: 2fr 1fr; }
.gallery--n4 button:nth-child(4) { grid-column: span 2; }
.icon-btn.is-on { color: var(--st-sold); border-color: var(--st-sold); }
.icon-btn.is-on svg { fill: currentColor; }
@media (max-width: 680px) {
  .gallery--n1, .gallery--n2 { grid-template-columns: 1fr; grid-template-rows: 260px; }
  .gallery--n2 button:nth-child(2) { display: none; }
  .gallery--n4 button:nth-child(4) { grid-column: auto; }
}
.map { position: relative; }
.gallery .gallery__all { position: absolute; padding: 0 16px; background: #fff; color: var(--green); border-radius: 999px; min-height: 44px; box-shadow: var(--shadow); grid-row: auto; display: inline-flex; }
.gallery .gallery__all:hover { background: var(--gold-50); }
.prop-layout > *, .list-layout > *, .split > *, .contact-layout > *, .map-split > *, .about-hero > * { min-width: 0; }
@media (max-width: 680px) {
  .seg button { padding: 0 12px; }
  .toolbar .select { min-width: 130px; }
  .prop-head__actions { order: -1; }
  .pricebox__price { font-size: 28px; }
}

/* ---------- Hero photo ---------- */
.hero__sky { inset: 0; height: auto; opacity: 1; }
.hero__sky img { object-position: center 65%; }
.hero__sky::after { background: linear-gradient(270deg, rgba(10, 47, 37, .94) 0%, rgba(10, 47, 37, .82) 38%, rgba(10, 47, 37, .35) 75%, rgba(10, 47, 37, .15) 100%), linear-gradient(0deg, rgba(10, 47, 37, .55) 0%, rgba(10, 47, 37, 0) 40%); }
.hero__box::before { z-index: 0; opacity: .05; }
.hero__content { position: relative; z-index: 1; }
@media (max-width: 680px) { .hero__sky::after { background: linear-gradient(0deg, rgba(10, 47, 37, .95) 0%, rgba(10, 47, 37, .8) 55%, rgba(10, 47, 37, .55) 100%); } }
