/* =========================================================
   SKYBOUND PROPERTIES KSA — "Najd Modern"
   Three tokens: Sand 60 · Night 30 · Gold 10
   Every other tone is one of these at reduced opacity.
   ========================================================= */
:root {
  --sand: #f5efe4;
  --night: #0d241d;
  --gold: #c49a4a;

  --night-80: rgb(13 36 29 / .8);
  --night-60: rgb(13 36 29 / .62);
  --night-40: rgb(13 36 29 / .42);
  --night-12: rgb(13 36 29 / .12);
  --night-06: rgb(13 36 29 / .06);
  --sand-80: rgb(245 239 228 / .82);
  --sand-60: rgb(245 239 228 / .62);
  --sand-40: rgb(245 239 228 / .42);
  --sand-14: rgb(245 239 228 / .14);
  --sand-08: rgb(245 239 228 / .08);
  --gold-20: rgb(196 154 74 / .2);
  --gold-10: rgb(196 154 74 / .1);
  --white: #fffdf9; /* card surface: sand lifted, still within the family */

  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --g: clamp(16px, 4vw, 64px);
  --maxw: 1440px;
  --r: 16px;
  --r-lg: 26px;
  --hdr: 84px;

  /* Najd motifs as reusable masks */
  --crenel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cpath d='M0 20H4V14H10V8H16V2H24V8H30V14H36V20H40Z'/%3E%3C/svg%3E");
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23c49a4a' stroke-width='1'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 32h9.4M54.6 32H64M32 0v9.4M32 54.6V64'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
  --sadu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14'%3E%3Cpath d='M0 7L7 0L14 7L7 14Z' fill='%23c49a4a'/%3E%3Cpath d='M24 0L31 7L24 14L17 7Z' fill='none' stroke='%23c49a4a'/%3E%3Cpath d='M34 0h14L41 7Z M34 14h14L41 7Z' fill='%23c49a4a' opacity='.55'/%3E%3C/svg%3E");
}

html[lang="ar"] {
  --display: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  --sans: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--sand); color: var(--night); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; overflow-x: hidden; min-height: 100vh;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
.cover { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; color: var(--gold); }
html[lang="ar"] em { font-style: normal; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html[dir="rtl"] .flip { transform: scaleX(-1); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--g); }
.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }
.dark { background: var(--night); color: var(--sand); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--night-60);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.dark .eyebrow { color: var(--sand-60); }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); flex: none; }
.h1, .h2, .h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.02; }
.h1 { font-size: clamp(48px, 7.4vw, 124px); }
.h2 { font-size: clamp(38px, 5vw, 80px); }
.h3 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; }
html[lang="ar"] .h1 { font-size: clamp(42px, 6.2vw, 104px); line-height: 1.2; letter-spacing: 0; }
html[lang="ar"] .h2 { font-size: clamp(34px, 4.2vw, 66px); line-height: 1.25; letter-spacing: 0; }
html[lang="ar"] .h3 { line-height: 1.35; letter-spacing: 0; }
.lead { font-size: clamp(16px, 1.25vw, 19px); color: var(--night-60); max-width: 56ch; }
.dark .lead { color: var(--sand-60); }
.muted { color: var(--night-60); }
.dark .muted { color: var(--sand-60); }
.sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.sh__text { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding-inline: 26px; border-radius: 100px; font-weight: 600; font-size: 15px;
  overflow: hidden; isolation: isolate; white-space: nowrap; transition: color .4s, background .4s, border-color .4s, transform .4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--gold);
  transform: translateY(102%); transition: transform .55s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn--night { background: var(--night); color: var(--sand); }
.btn--night:hover { color: var(--night); }
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold::after { background: var(--sand); }
.btn--sand { background: var(--sand); color: var(--night); }
.btn--line { border: 1px solid var(--night-40); color: var(--night); }
.btn--line:hover { border-color: var(--gold); }
.dark .btn--line, .btn--line-light { border: 1px solid var(--sand-40); color: var(--sand); }
.dark .btn--line:hover, .btn--line-light:hover { color: var(--night); }
.btn--sm { height: 42px; padding-inline: 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--wa { background: #1f6f4a; color: var(--sand); } /* WhatsApp action keeps the night-green family */
.btn--wa svg { fill: currentColor; stroke: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--night-12); background: var(--white); transition: .3s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn.is-on { background: var(--night); color: var(--gold); border-color: var(--night); }
.icon-btn.is-on svg { fill: var(--gold); }
.link { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
html[dir="rtl"] .link { background-position: 100% 100%; }
.link:hover { background-size: 100% 1px; }
.link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding-inline: 11px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--sand-80); color: var(--night); backdrop-filter: blur(8px);
}
.chip--night { background: var(--night); color: var(--sand); }
.chip--gold { background: var(--gold); color: var(--night); }
.chip--line { background: transparent; border: 1px solid var(--night-12); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-available i { background: #3f9a6b; }
.status-reserved i { background: var(--gold); }
.status-sold i { background: #b5503c; }

/* ---------- Motifs ---------- */
.crenel-top, .crenel-bottom { position: relative; }
.crenel-top::before, .crenel-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 20px; z-index: 3; pointer-events: none;
  -webkit-mask: var(--crenel) repeat-x 0 0 / 40px 20px; mask: var(--crenel) repeat-x 0 0 / 40px 20px;
}
.crenel-top::before { top: -19px; background: inherit; }
.crenel-bottom::after { bottom: -1px; background: var(--sand); }
.crenel-bottom.to-night::after { background: var(--night); }
.lattice { position: absolute; inset: 0; background-image: var(--lattice); background-size: 64px; opacity: .08; pointer-events: none; }
.sadu { height: 14px; background-image: var(--sadu); background-size: 48px 14px; opacity: .9; }

/* =========================================================
   INTRO + TRANSITIONS
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 2000; background: var(--night); color: var(--sand);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
}
.intro::before { content: ""; position: absolute; inset: 0; background-image: var(--lattice); background-size: 64px; opacity: .06; }
.intro__svg { width: 84px; height: 84px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round; }
.intro__word { display: flex; flex-direction: column; align-items: center; gap: 4px; overflow: hidden; }
.intro__word span { display: block; font-family: "Manrope", sans-serif; font-weight: 300; letter-spacing: .6em; font-size: 15px; margin-inline-start: .6em; }
.intro__word .ar { font-family: "Reem Kufi", sans-serif; letter-spacing: 0; font-size: 22px; color: var(--gold); margin: 0; }
.intro__bar { width: 160px; height: 1px; background: var(--sand-14); }
.intro__bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
html[dir="rtl"] .intro__bar i { transform-origin: right; }

.transition { position: fixed; inset: 0; z-index: 1500; pointer-events: none; background: var(--night); clip-path: inset(100% 0 0 0); }
.transition__pattern { position: absolute; inset: 0; background-image: var(--lattice); background-size: 64px; opacity: .12; }

/* =========================================================
   HEADER
   ========================================================= */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 900; height: var(--hdr);
  display: flex; align-items: center; gap: 28px; padding-inline: var(--g); color: var(--sand);
  transition: background .5s, color .5s, transform .6s var(--ease), height .5s var(--ease), box-shadow .5s;
}
.hdr.is-solid { background: rgb(245 239 228 / .86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); color: var(--night); height: 72px; box-shadow: 0 1px 0 var(--night-12); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.on-light { color: var(--night); }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo svg { width: 38px; height: 38px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; }
.logo__t { display: flex; flex-direction: column; line-height: 1.05; }
.logo__t b { font-family: "Manrope", sans-serif; font-weight: 700; letter-spacing: .32em; font-size: 15px; }
.logo__t small { font-size: 10px; letter-spacing: .26em; opacity: .7; font-family: "Manrope", sans-serif; }
.logo__t .ar { font-family: "Reem Kufi", sans-serif; font-size: 12px; letter-spacing: 0; color: var(--gold); opacity: 1; margin-top: 2px; }
.nav { display: flex; gap: 30px; margin-inline: auto; font-size: 14.5px; font-weight: 500; }
.nav a { position: relative; padding-block: 6px; opacity: .88; transition: opacity .3s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .45s var(--ease); }
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.hdr__tools { display: flex; align-items: center; gap: 10px; }
.lang {
  height: 40px; padding-inline: 14px; border-radius: 100px; border: 1px solid currentColor; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; opacity: .9; transition: .3s;
}
.lang:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.lang .ar-label { font-family: "IBM Plex Sans Arabic", sans-serif; }
.fav-link { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.fav-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fav-link b { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gold); color: var(--night); font-size: 11px; display: grid; place-items: center; padding-inline: 4px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--night); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger i { width: 18px; height: 1.6px; background: currentColor; transition: .4s var(--ease); }
body.menu-open .burger i:first-child { transform: translateY(3.3px) rotate(45deg); }
body.menu-open .burger i:last-child { transform: translateY(-3.3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 880; background: var(--night); color: var(--sand);
  padding: calc(var(--hdr) + 30px) var(--g) 40px; display: flex; flex-direction: column; gap: 6px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); overflow-y: auto;
}
.menu::before { content: ""; position: absolute; inset: 0; background-image: var(--lattice); background-size: 64px; opacity: .06; pointer-events: none; }
body.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu a.menu__item { font-family: var(--display); font-size: 40px; line-height: 1.25; padding-block: 6px; border-bottom: 1px solid var(--sand-14); display: flex; justify-content: space-between; align-items: center; }
.menu a.menu__item small { font-family: var(--sans); font-size: 13px; color: var(--gold); }
.menu__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 30px; }

/* =========================================================
   HERO (home)
   ========================================================= */
.hero { position: relative; min-height: 100svh; color: var(--sand); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--night); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transform: scale(1.12); will-change: transform; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(13 36 29 / .55) 0%, rgb(13 36 29 / .05) 30%, rgb(13 36 29 / .25) 55%, rgb(13 36 29 / .92) 100%),
    linear-gradient(90deg, rgb(13 36 29 / .55), transparent 60%);
}
html[dir="rtl"] .hero__media::after {
  background:
    linear-gradient(180deg, rgb(13 36 29 / .55) 0%, rgb(13 36 29 / .05) 30%, rgb(13 36 29 / .25) 55%, rgb(13 36 29 / .92) 100%),
    linear-gradient(270deg, rgb(13 36 29 / .55), transparent 60%);
}
.hero__lattice { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 42%; background-image: var(--lattice); background-size: 64px; opacity: .14;
  -webkit-mask: linear-gradient(90deg, transparent, #000 70%); mask: linear-gradient(90deg, transparent, #000 70%); }
html[dir="rtl"] .hero__lattice { -webkit-mask: linear-gradient(270deg, transparent, #000 70%); mask: linear-gradient(270deg, transparent, #000 70%); }
.hero__ar-mark {
  position: absolute; top: 20vh; right: var(--g); font-family: "Reem Kufi", sans-serif; font-size: clamp(60px, 9vw, 150px);
  color: transparent; -webkit-text-stroke: 1px rgb(196 154 74 / .45); line-height: 1; pointer-events: none; direction: rtl;
}
html[lang="ar"] .hero__ar-mark { font-family: "Cormorant Garamond", serif; font-style: italic; direction: ltr; right: auto; left: var(--g); }
.hero__content { position: relative; z-index: 2; padding: 0 var(--g) 40px; max-width: var(--maxw); margin-inline: auto; width: 100%; }
.hero__title { max-width: 14ch; margin: 22px 0 22px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: block; }
.hero__sub { max-width: 52ch; color: var(--sand-80); font-size: clamp(16px, 1.25vw, 19px); }
.hero .eyebrow { color: var(--sand-80); }

.search {
  position: relative; z-index: 3; margin-top: 44px; background: rgb(245 239 228 / .1); border: 1px solid var(--sand-14);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); border-radius: var(--r-lg); padding: 10px;
}
.search__tabs { display: flex; gap: 4px; padding: 4px 4px 12px; flex-wrap: wrap; }
.search__tab { height: 36px; padding-inline: 16px; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--sand-80); transition: .3s; }
.search__tab.is-on { background: var(--sand); color: var(--night); }
.search__row { display: grid; grid-template-columns: 1.1fr 1fr 1fr .8fr auto; gap: 8px; background: var(--sand); border-radius: 18px; padding: 8px; color: var(--night); }
.sfield { display: flex; flex-direction: column; justify-content: center; padding: 8px 16px; border-radius: 12px; transition: background .3s; min-width: 0; }
.sfield:hover { background: var(--night-06); }
.sfield + .sfield { border-inline-start: 1px solid var(--night-12); }
.sfield label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--night-60); }
html[lang="ar"] .sfield label { letter-spacing: 0; font-size: 12.5px; }
.sfield select { border: 0; background: transparent; font-size: 15.5px; font-weight: 600; padding: 2px 0; outline: none; cursor: pointer; appearance: none; width: 100%; }
.search__go { height: 64px; padding-inline: 30px; border-radius: 14px; }
.search__chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 6px 4px; }
.qchip { height: 32px; padding-inline: 14px; border-radius: 100px; border: 1px solid var(--sand-40); font-size: 13px; color: var(--sand-80); transition: .3s; display: inline-flex; align-items: center; }
.qchip:hover { background: var(--sand); color: var(--night); border-color: var(--sand); }

.hero__stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--sand-14); max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 var(--g); }
.hero__stats div { padding: 22px 0 46px; display: flex; flex-direction: column; gap: 2px; }
.hero__stats b { font-family: var(--display); font-size: clamp(30px, 3vw, 46px); font-weight: 500; line-height: 1; color: var(--sand); }
.hero__stats span { font-size: 13px; color: var(--sand-60); }
.scroll-cue { position: absolute; bottom: 30px; inset-inline-end: var(--g); z-index: 3; width: 1px; height: 54px; background: var(--sand-14); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* =========================================================
   STATEMENT
   ========================================================= */
.statement { padding-block: clamp(90px, 12vw, 180px); position: relative; overflow: hidden; }
.statement__mark { position: absolute; inset-inline-start: 50%; top: 50%; transform: translate(-50%, -50%); font-family: "Reem Kufi", sans-serif; font-size: clamp(140px, 26vw, 420px); color: var(--night-06); white-space: nowrap; pointer-events: none; line-height: 1; }
html[dir="rtl"] .statement__mark { transform: translate(50%, -50%); }
.statement__text { position: relative; font-family: var(--display); font-size: clamp(34px, 4.4vw, 72px); line-height: 1.12; letter-spacing: -0.01em; text-align: center; max-width: 20ch; margin-inline: auto; }
html[lang="ar"] .statement__text { line-height: 1.5; letter-spacing: 0; max-width: 22ch; }
.statement__text .w { color: var(--night-12); }
.statement__foot { display: flex; justify-content: center; gap: clamp(20px, 6vw, 90px); margin-top: 56px; flex-wrap: wrap; position: relative; }
.pillar-mini { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 220px; }
.pillar-mini svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.3; }
.pillar-mini b { font-size: 15px; }
.pillar-mini span { font-size: 14px; color: var(--night-60); }

/* =========================================================
   PROPERTY CARDS
   ========================================================= */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 1px 0 var(--night-06), 0 20px 40px -30px rgb(13 36 29 / .35); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--night-06), 0 34px 60px -34px rgb(13 36 29 / .45); }
.pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-06); }
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), scale 1.2s var(--ease); }
.pcard__media img + img { opacity: 0; }
.pcard:hover .pcard__media img { scale: 1.06; }
.pcard:hover .pcard__media img + img { opacity: 1; }
.pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(13 36 29 / .35), transparent 35%, transparent 70%, rgb(13 36 29 / .35)); pointer-events: none; }
.pcard__top { position: absolute; top: 14px; inset-inline: 14px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; gap: 8px; }
.pcard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__acts { display: flex; gap: 6px; }
.pcard__acts .icon-btn { width: 38px; height: 38px; background: var(--sand-80); border: 0; backdrop-filter: blur(8px); }
.pcard__acts .icon-btn.is-on { background: var(--night); }
.pcard__id { position: absolute; bottom: 12px; inset-inline-start: 14px; z-index: 2; font-size: 11px; letter-spacing: .1em; color: var(--sand); font-weight: 600; }
.pcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__loc { font-size: 13px; color: var(--night-60); display: flex; align-items: center; gap: 6px; }
.pcard__loc svg { width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 1.8; }
.pcard__title { font-family: var(--display); font-size: 25px; line-height: 1.15; font-weight: 500; }
html[lang="ar"] .pcard__title { font-size: 21px; line-height: 1.5; }
.pcard__specs { display: flex; gap: 16px; font-size: 13.5px; color: var(--night-80); flex-wrap: wrap; padding-block: 4px; }
.pcard__specs span { display: inline-flex; gap: 6px; align-items: center; }
.pcard__specs svg { width: 17px; height: 17px; fill: none; stroke: var(--night-60); stroke-width: 1.5; }
.pcard__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--night-06); gap: 10px; }
.price { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 5px; }
.price small { font-size: 12px; font-weight: 600; color: var(--night-60); letter-spacing: .04em; }
.price .per { font-size: 12px; font-weight: 500; color: var(--night-60); }
.pcard__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--gold-10); color: #8a6a2c; white-space: nowrap; }
.tag--night { background: var(--night-06); color: var(--night-80); }
.pcard.is-sold .pcard__media img { filter: grayscale(.8); }
.pcard__link { position: absolute; inset: 0; z-index: 1; }
.pcard__top, .pcard__acts { pointer-events: none; }
.pcard__acts > * { pointer-events: auto; position: relative; z-index: 3; }

/* =========================================================
   KINGDOM MAP
   ========================================================= */
.kmap { overflow: hidden; }
.kmap__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.kmap__list { display: flex; flex-direction: column; margin-top: 36px; border-top: 1px solid var(--sand-14); }
.kmap__city { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--sand-14); text-align: start; transition: .4s var(--ease); }
.kmap__city .n { font-family: var(--display); color: var(--gold); font-size: 18px; }
.kmap__city .nm { font-family: var(--display); font-size: 28px; line-height: 1.1; transition: transform .5s var(--ease); }
html[lang="ar"] .kmap__city .nm { font-size: 24px; }
.kmap__city .ct { font-size: 13px; color: var(--sand-60); }
.kmap__city:hover .nm, .kmap__city.is-on .nm { transform: translateX(10px); color: var(--gold); }
html[dir="rtl"] .kmap__city:hover .nm, html[dir="rtl"] .kmap__city.is-on .nm { transform: translateX(-10px); }
.kmap__stage { position: relative; }
.kmap__svg { width: 100%; height: auto; overflow: visible; }
.kmap__land { fill: rgb(245 239 228 / .04); stroke: rgb(196 154 74 / .55); stroke-width: 1.4; stroke-linejoin: round; }
.kmap__grid-dots { fill: rgb(245 239 228 / .16); }
.kmap__pin { cursor: pointer; }
.kmap__pin .core { fill: var(--gold); transition: r .4s var(--ease); }
.kmap__pin .ring { fill: none; stroke: var(--gold); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease) infinite; }
.kmap__pin .lbl { fill: var(--sand); font-size: 22px; font-family: var(--sans); font-weight: 600; opacity: .85; }
.kmap__pin.is-on .core { r: 11; }
.kmap__pin.is-on .lbl { fill: var(--gold); opacity: 1; }
.kmap__line { stroke: rgb(196 154 74 / .35); stroke-width: 1; stroke-dasharray: 4 6; fill: none; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.kmap__card {
  position: absolute; inset-inline-end: 0; bottom: 0; width: min(320px, 60%); background: var(--sand); color: var(--night);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45);
}
.kmap__card-img { height: 150px; overflow: hidden; }
.kmap__card-img img { width: 100%; height: 100%; object-fit: cover; }
.kmap__card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.kmap__card-body .h3 { font-size: 30px; }
.kmap__card-meta { display: flex; gap: 18px; font-size: 13px; color: var(--night-60); }
.kmap__card-meta b { display: block; color: var(--night); font-size: 17px; }

/* =========================================================
   CITIES ACCORDION
   ========================================================= */
.cities { display: flex; gap: 10px; height: clamp(460px, 70vh, 680px); }
.city {
  position: relative; flex: 1; min-width: 0; border-radius: var(--r-lg); overflow: hidden; color: var(--sand);
  transition: flex 1s var(--ease); background: var(--night);
}
.city.is-open { flex: 4.2; }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1s; filter: saturate(.85); }
.city.is-open img { transform: scale(1.04); filter: saturate(1); }
.city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(13 36 29 / .1) 30%, rgb(13 36 29 / .88)); }
.city__v { position: absolute; z-index: 2; bottom: 28px; inset-inline-start: 50%; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: var(--display); font-size: 30px; white-space: nowrap; transition: opacity .5s; }
html[dir="rtl"] .city__v { transform: translateX(50%) rotate(180deg); }
html[lang="ar"] .city__v { writing-mode: horizontal-tb; transform: translateX(50%); font-size: 22px; bottom: 30px; }
.city.is-open .city__v { opacity: 0; }
.city__body { position: absolute; z-index: 2; inset-inline: 32px; bottom: 30px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; opacity: 0; transform: translateY(20px); transition: .6s var(--ease); pointer-events: none; }
.city.is-open .city__body { opacity: 1; transform: none; transition-delay: .3s; pointer-events: auto; }
.city__name { display: flex; flex-direction: column; gap: 6px; }
.city__name .h2 { font-size: clamp(40px, 4.6vw, 76px); }
.city__name .ar { font-family: "Reem Kufi", sans-serif; color: var(--gold); font-size: 26px; }
html[lang="ar"] .city__name .ar { font-family: "Cormorant Garamond", serif; font-style: italic; }
.city__name p { max-width: 44ch; color: var(--sand-80); font-size: 15px; }
.city__count { position: absolute; z-index: 2; top: 22px; inset-inline-start: 24px; font-size: 12px; letter-spacing: .14em; color: var(--sand-80); font-weight: 600; }

/* =========================================================
   OWNERSHIP
   ========================================================= */
.own { position: relative; overflow: hidden; color: var(--sand); background: var(--night); }
.own__bg { position: absolute; inset: 0; }
.own__bg img { width: 100%; height: 120%; object-fit: cover; }
.own__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(13 36 29 / .82), rgb(13 36 29 / .6) 40%, rgb(13 36 29 / .94)); }
.own .wrap { position: relative; z-index: 2; }
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.profile { padding: 30px; border-radius: var(--r-lg); background: rgb(245 239 228 / .07); border: 1px solid var(--sand-14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: flex; flex-direction: column; gap: 14px; transition: background .5s, transform .6s var(--ease); }
.profile:hover { background: rgb(245 239 228 / .12); transform: translateY(-6px); }
.profile__ic { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; }
.profile__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.profile ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--sand-80); }
.profile li { display: flex; gap: 10px; }
.profile li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; background: var(--gold); transform: rotate(45deg); flex: none; }
.own__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; font-size: 13px; color: var(--sand-60); }
.own__foot a { color: var(--gold); }

/* =========================================================
   FINANCE (shared calculator)
   ========================================================= */
.fin-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 90px); align-items: center; }
.calc { background: var(--night); color: var(--sand); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.calc .lattice { opacity: .05; }
.calc__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; position: relative; gap: 10px; flex-wrap: wrap; }
.calc__head .h3 { font-size: 30px; }
.range { position: relative; display: flex; flex-direction: column; gap: 10px; padding-block: 12px; border-bottom: 1px solid var(--sand-08); }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.range__top label { font-size: 13.5px; color: var(--sand-60); }
.range__top output, .range__top input { font-weight: 700; font-size: 17px; color: var(--sand); background: transparent; border: 0; text-align: end; width: 150px; outline: none; }
.range__top input:focus { color: var(--gold); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: linear-gradient(to right, var(--gold) var(--p, 50%), var(--sand-14) var(--p, 50%)); border-radius: 3px; outline: none; cursor: pointer; }
html[dir="rtl"] input[type="range"] { background: linear-gradient(to left, var(--gold) var(--p, 50%), var(--sand-14) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); border: 5px solid var(--gold); box-shadow: 0 0 0 6px rgb(196 154 74 / .18); transition: transform .3s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--sand); border: 5px solid var(--gold); }
.calc__out { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-top: 26px; position: relative; }
.donut { width: 130px; height: 130px; }
.donut circle { fill: none; stroke-width: 14; }
.calc__nums { display: flex; flex-direction: column; gap: 10px; }
.calc__big span { font-size: 13px; color: var(--sand-60); display: block; }
.calc__big b { font-family: var(--display); font-size: clamp(38px, 3.6vw, 54px); font-weight: 500; line-height: 1; color: var(--gold); }
html[lang="ar"] .calc__big b { font-family: "Manrope", sans-serif; font-weight: 700; font-size: clamp(32px, 3vw, 44px); }
.calc__big small { font-size: 14px; color: var(--sand-60); margin-inline-start: 6px; }
.calc__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 13px; }
.calc__rows span { color: var(--sand-60); display: flex; align-items: center; gap: 8px; }
.calc__rows span i { width: 8px; height: 8px; border-radius: 2px; }
.calc__rows b { font-weight: 600; }
.calc__note { font-size: 12px; color: var(--sand-40); margin-top: 18px; line-height: 1.5; position: relative; }
.partners { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.partner { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--night-06); }
.partner__logo { width: 46px; height: 46px; border-radius: 12px; background: var(--night); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.partner b { display: block; font-size: 15px; }
.partner span { font-size: 13px; color: var(--night-60); }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 860px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; padding-inline: var(--g); scroll-padding-inline: var(--g); }
.projects-rail::-webkit-scrollbar { display: none; }
.proj { position: relative; scroll-snap-align: start; border-radius: var(--r-lg); overflow: hidden; height: clamp(420px, 62vh, 600px); color: var(--sand); display: flex; align-items: flex-end; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.proj:hover img { transform: scale(1.05); }
.proj::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(13 36 29 / .9)); }
.proj__body { position: relative; z-index: 2; padding: clamp(22px, 3vw, 40px); width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
.proj__meta { display: flex; gap: 22px; margin-top: 14px; font-size: 13px; color: var(--sand-60); flex-wrap: wrap; }
.proj__meta b { display: block; color: var(--sand); font-size: 16px; }
.proj__dev { position: absolute; top: 22px; inset-inline-start: 22px; z-index: 2; display: flex; gap: 10px; align-items: center; font-size: 13px; }
.mono { width: 40px; height: 40px; border-radius: 10px; background: var(--sand); color: var(--night); display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: .04em; }
.rail-ctrl { display: flex; gap: 8px; }

/* =========================================================
   HERITAGE BAND
   ========================================================= */
.heritage { position: relative; height: 92vh; min-height: 560px; overflow: hidden; color: var(--sand); display: grid; place-items: center; text-align: center; }
.heritage__img { position: absolute; inset: -10% 0; }
.heritage__img img { width: 100%; height: 100%; object-fit: cover; }
.heritage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgb(13 36 29 / .35), rgb(13 36 29 / .78)); }
.heritage__body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 24px; align-items: center; padding-inline: var(--g); }
.heritage__quote { font-family: var(--display); font-size: clamp(38px, 5.4vw, 92px); line-height: 1.05; max-width: 16ch; }
html[lang="ar"] .heritage__quote { line-height: 1.45; }
.heritage__ar { font-family: "Reem Kufi", sans-serif; font-size: clamp(22px, 2.4vw, 34px); color: var(--gold); }
html[lang="ar"] .heritage__ar { font-family: "Cormorant Garamond", serif; font-style: italic; }

/* =========================================================
   PILLARS
   ========================================================= */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-12); }
.pillar { padding: 34px 26px 10px 0; display: flex; flex-direction: column; gap: 14px; border-inline-end: 1px solid var(--night-12); padding-inline: 0 26px; }
.pillar + .pillar { padding-inline-start: 26px; }
.pillar:last-child { border-inline-end: 0; }
.pillar svg { width: 46px; height: 46px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.pillar .n { font-family: var(--display); color: var(--gold); font-size: 18px; }
.pillar h3 { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.15; }
html[lang="ar"] .pillar h3 { font-size: 22px; line-height: 1.5; }
.pillar p { font-size: 15px; color: var(--night-60); }

/* =========================================================
   INSIGHTS + REVIEWS
   ========================================================= */
.insights { display: grid; grid-template-columns: repeat(3, 1fr) 1fr; gap: 22px; }
.post { display: flex; flex-direction: column; gap: 14px; }
.post__img { aspect-ratio: 4 / 3.4; border-radius: var(--r); overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.post:hover .post__img img { scale: 1.06; }
.post__meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--night-60); }
.post__meta span:first-child { color: #8a6a2c; font-weight: 600; }
.post h3 { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.2; }
html[lang="ar"] .post h3 { font-size: 20px; line-height: 1.55; }
.reviews-card { border-radius: var(--r); background: var(--night); color: var(--sand); padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.reviews-card .g { width: 48px; height: 48px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.reviews-card .g svg { width: 24px; height: 24px; }
.reviews-card p { color: var(--sand-60); font-size: 14.5px; }

/* =========================================================
   CTA
   ========================================================= */
.cta { position: relative; overflow: hidden; }
.cta__card { position: relative; border-radius: 32px; overflow: hidden; background: var(--night); color: var(--sand); display: grid; grid-template-columns: 1.15fr 1fr; min-height: 520px; }
.cta__copy { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; gap: 22px; justify-content: center; position: relative; z-index: 2; }
.cta__img { position: relative; }
.cta__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--night), transparent 40%); }
html[dir="rtl"] .cta__img::before { background: linear-gradient(270deg, var(--night), transparent 40%); }
.cta__acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.ftr { background: var(--night); color: var(--sand); position: relative; }
.ftr__top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; padding-block: 80px 60px; }
.ftr h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
html[lang="ar"] .ftr h4 { letter-spacing: 0; font-size: 14px; }
.ftr a, .ftr p { display: block; color: var(--sand-60); font-size: 14.5px; padding-block: 3px; transition: color .3s; }
.ftr a:hover { color: var(--sand); }
.ftr__brand p { max-width: 36ch; margin-top: 18px; }
.ftr__news { display: flex; border-bottom: 1px solid var(--sand-40); margin-top: 22px; max-width: 360px; }
.ftr__news input { flex: 1; background: transparent; border: 0; color: var(--sand); padding: 12px 0; outline: none; }
.ftr__news input::placeholder { color: var(--sand-40); }
.ftr__news button svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.ftr__word { font-family: "Manrope", sans-serif; font-weight: 200; font-size: clamp(54px, 14.5vw, 240px); letter-spacing: .08em; line-height: .8; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--sand-14); user-select: none; padding-top: 20px; white-space: nowrap; overflow: hidden; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 26px 34px; border-top: 1px solid var(--sand-14); font-size: 13px; color: var(--sand-40); }
.ftr__bottom a { display: inline; color: var(--sand-60); }
.ftr__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* =========================================================
   FAB + COMPARE TRAY + TOASTS + MODAL
   ========================================================= */
.fab { position: fixed; z-index: 800; bottom: 24px; inset-inline-end: 24px; width: 60px; height: 60px; border-radius: 50%; background: #1f6f4a; color: var(--sand); display: grid; place-items: center; box-shadow: 0 16px 36px -12px rgb(13 36 29 / .6); transition: transform .5s var(--ease); }
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.fab svg { width: 30px; height: 30px; fill: currentColor; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #1f6f4a; animation: fabPulse 2.8s var(--ease) infinite; }
@keyframes fabPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
body.in-admin .fab, body.in-admin .compare-tray { display: none; }

.compare-tray {
  position: fixed; z-index: 790; bottom: 24px; left: 50%; transform: translate(-50%, 160%); background: var(--night); color: var(--sand);
  border-radius: 100px; padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 20px 50px -15px rgb(13 36 29 / .6);
  transition: transform .7s var(--ease); max-width: calc(100vw - 120px);
}
html[dir="rtl"] .compare-tray { padding: 8px 20px 8px 8px; }
.compare-tray.is-on { transform: translate(-50%, 0); }
.compare-tray__thumbs { display: flex; }
.compare-tray__thumbs img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--night); margin-inline-start: -8px; }
.compare-tray__thumbs img:first-child { margin: 0; }
.compare-tray span { font-size: 14px; font-weight: 600; white-space: nowrap; }

.toasts { position: fixed; z-index: 2100; top: 92px; inset-inline-end: 20px; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { background: var(--night); color: var(--sand); border-radius: 16px; padding: 16px 18px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; box-shadow: 0 20px 40px -14px rgb(13 36 29 / .55); border-inline-start: 3px solid var(--gold); }
.toast__ic { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--night); display: grid; place-items: center; }
.toast__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.toast b { display: block; font-size: 14.5px; }
.toast p { font-size: 13px; color: var(--sand-60); line-height: 1.45; }

.modal { position: fixed; inset: 0; z-index: 1800; display: grid; place-items: center; padding: 20px; background: rgb(13 36 29 / .72); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.modal.is-on { opacity: 1; pointer-events: auto; }
.modal__box { background: var(--sand); border-radius: var(--r-lg); width: min(620px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; padding: clamp(24px, 3vw, 40px); position: relative; transform: translateY(24px) scale(.98); transition: transform .6s var(--ease); }
.modal.is-on .modal__box { transform: none; }
.modal__box--wide { width: min(1100px, 100%); }
.modal__x { position: absolute; top: 16px; inset-inline-end: 16px; }
.lightbox { position: fixed; inset: 0; z-index: 1900; background: rgb(8 22 18 / .96); display: grid; grid-template-rows: 1fr auto; opacity: 0; pointer-events: none; transition: opacity .4s; }
.lightbox.is-on { opacity: 1; pointer-events: auto; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 60px 80px 20px; }
.lightbox__stage img { max-width: 100%; max-height: 78vh; border-radius: 12px; object-fit: contain; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { inset-inline-start: 20px; } .lightbox__nav.next { inset-inline-end: 20px; }
.lightbox__x { position: absolute; top: 18px; inset-inline-end: 18px; }
.lightbox__thumbs { display: flex; gap: 8px; justify-content: center; padding: 16px; overflow-x: auto; }
.lightbox__thumbs button { width: 74px; height: 54px; border-radius: 8px; overflow: hidden; opacity: .45; flex: none; transition: opacity .3s; }
.lightbox__thumbs button.is-on { opacity: 1; outline: 2px solid var(--gold); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__count { position: absolute; top: 24px; inset-inline-start: 24px; color: var(--sand-60); font-size: 14px; }

/* =========================================================
   FORMS
   ========================================================= */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 6px; position: relative; }
.fld label { font-size: 13px; font-weight: 600; color: var(--night-80); }
.fld label .req { color: #b5503c; }
.fld input, .fld select, .fld textarea {
  height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--night-12); background: var(--white); outline: none;
  transition: border-color .3s, box-shadow .3s; font-size: 15px; width: 100%;
}
.fld textarea { height: 110px; padding: 14px 16px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-10); }
.fld.has-error input, .fld.has-error select, .fld.has-error textarea { border-color: #b5503c; }
.fld .err { font-size: 12px; color: #b5503c; min-height: 0; }
.dark .fld label { color: var(--sand-80); }
.dark .fld input, .dark .fld select, .dark .fld textarea { background: var(--sand-08); border-color: var(--sand-14); color: var(--sand); }
.dark .fld select option { color: var(--night); }
.dark .form .btn--night { background: var(--gold); color: var(--night); }
.dark .form .btn--night::after { background: var(--sand); }
.dark .consent, .wiz .consent { color: var(--sand-60); }
.dark .consent input, .wiz .consent input { accent-color: var(--gold); }
.wiz .disclaimer { background: var(--sand-08); border-color: var(--sand-14); color: var(--sand-80); }
.wiz .disclaimer svg { stroke: var(--gold); }
.wiz .fld label { color: var(--sand-80); }
.wiz .fld input { background: var(--sand-08); border-color: var(--sand-14); color: var(--sand); }
.dark .form-ok small, .dark .form-ok .muted { color: var(--sand-60); }
.hp { position: absolute !important; inset-inline-start: 0; top: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.consent { display: flex; gap: 10px; font-size: 12.5px; color: var(--night-60); align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--night); }
.form-ok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 30px 10px; }
.form-ok__ic { width: 70px; height: 70px; border-radius: 50%; background: var(--night); color: var(--gold); display: grid; place-items: center; }
.form-ok__ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; }
.form-ok small { color: var(--night-60); font-size: 12.5px; }
.seg { display: inline-flex; padding: 4px; border-radius: 100px; background: var(--night-06); gap: 2px; flex-wrap: wrap; }
.seg button { height: 38px; padding-inline: 16px; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--night-60); transition: .3s; }
.seg button.is-on { background: var(--night); color: var(--sand); }
.dark .seg { background: var(--sand-08); }
.dark .seg button { color: var(--sand-60); }
.dark .seg button.is-on { background: var(--gold); color: var(--night); }

/* =========================================================
   INNER PAGE HEADER
   ========================================================= */
.phead { position: relative; color: var(--sand); background: var(--night); padding: calc(var(--hdr) + 70px) 0 80px; overflow: hidden; }
.phead__img { position: absolute; inset: 0; }
.phead__img img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.phead__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(13 36 29 / .4), var(--night)); }
.phead .wrap { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 18px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--sand-60); flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { opacity: .5; }
.phead--short { padding-bottom: 56px; }

/* =========================================================
   SEARCH PAGE
   ========================================================= */
.srch { display: grid; grid-template-columns: 310px 1fr; gap: 36px; align-items: start; padding-block: 50px 120px; }
.filters { position: sticky; top: 96px; background: var(--white); border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--night-06); display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-width: thin; }
.filters__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; }
.filters__head b { font-size: 17px; }
.filters__head button { font-size: 13px; color: #8a6a2c; font-weight: 600; }
.fgroup { padding-block: 14px; border-top: 1px solid var(--night-06); display: flex; flex-direction: column; gap: 10px; }
.fgroup > label, .fgroup > span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--night-60); }
html[lang="ar"] .fgroup > label, html[lang="ar"] .fgroup > span { letter-spacing: 0; font-size: 13px; }
.fgroup select, .fgroup input[type="number"] { height: 44px; border-radius: 10px; border: 1px solid var(--night-12); padding-inline: 12px; background: var(--sand); outline: none; width: 100%; }
.fgroup select:focus, .fgroup input:focus { border-color: var(--gold); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { height: 34px; padding-inline: 13px; border-radius: 100px; border: 1px solid var(--night-12); font-size: 13px; font-weight: 600; transition: .25s; }
.pill:hover { border-color: var(--gold); }
.pill.is-on { background: var(--night); color: var(--sand); border-color: var(--night); }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; padding-block: 2px; }
.toggle input { appearance: none; width: 40px; height: 24px; border-radius: 20px; background: var(--night-12); position: relative; transition: background .3s; cursor: pointer; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .35s var(--ease); }
.toggle input:checked { background: var(--night); }
.toggle input:checked::after { transform: translateX(16px); background: var(--gold); }
html[dir="rtl"] .toggle input:checked::after { transform: translateX(-16px); }
.results__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.results__bar h2 { font-family: var(--display); font-weight: 500; font-size: 30px; }
.results__bar select { height: 42px; border-radius: 100px; border: 1px solid var(--night-12); padding-inline: 16px; background: var(--white); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.af { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding-inline: 12px; border-radius: 100px; background: var(--night); color: var(--sand); font-size: 13px; }
.af button { color: var(--gold); font-size: 16px; line-height: 1; }
.results .grid-cards { grid-template-columns: repeat(2, 1fr); }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--night-12); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty svg { width: 64px; height: 64px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.filters-toggle { display: none; }

/* =========================================================
   PROPERTY DETAIL
   ========================================================= */
.pd-top { padding-top: calc(var(--hdr) + 26px); }
.pd-title__meta svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.8; flex: none; }
.pd-top .crumbs { color: var(--night-60); }
.pd-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 18px 0 24px; flex-wrap: wrap; }
.pd-title h1 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.8vw, 58px); line-height: 1.05; max-width: 22ch; }
html[lang="ar"] .pd-title h1 { line-height: 1.45; }
.pd-title__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; color: var(--night-60); font-size: 14px; }
.pd-title__acts { display: flex; gap: 8px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(360px, 62vh, 640px); border-radius: var(--r-lg); overflow: hidden; }
.gallery button { position: relative; overflow: hidden; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery { position: relative; }
.gallery__more { position: absolute; bottom: 16px; inset-inline-start: 16px; z-index: 2; }
.gallery button:nth-child(4):nth-last-child(2) { grid-column: span 2; }
.gallery button:nth-child(3):nth-last-child(2) { grid-row: span 2; }
.pd { display: grid; grid-template-columns: 1fr 400px; gap: clamp(30px, 4vw, 70px); padding-block: 50px 110px; align-items: start; }
.pd section + section { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--night-12); }
.pd h2 { font-family: var(--display); font-weight: 500; font-size: 34px; margin-bottom: 20px; line-height: 1.1; }
html[lang="ar"] .pd h2 { font-size: 28px; line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--night-12); border-radius: var(--r); overflow: hidden; border: 1px solid var(--night-12); }
.fact { background: var(--white); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.fact svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.fact span { font-size: 12.5px; color: var(--night-60); }
.fact b { font-size: 16px; }
.desc { font-size: 17px; line-height: 1.75; color: var(--night-80); max-width: 70ch; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 26px; }
.spec-table div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--night-06); font-size: 14.5px; }
.spec-table span { color: var(--night-60); }
.spec-table b { font-weight: 600; text-align: end; }
.amen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amen div { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--night-06); font-size: 14.5px; font-weight: 500; }
.amen svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.5; flex: none; }
.plan-bar { display: flex; height: 64px; border-radius: 14px; overflow: hidden; gap: 3px; }
.plan-bar div { display: flex; flex-direction: column; justify-content: center; padding-inline: 14px; color: var(--sand); font-size: 12px; min-width: 0; }
.plan-bar div b { font-size: 18px; }
.plan-bar .p1 { background: var(--night); }
.plan-bar .p2 { background: rgb(13 36 29 / .72); }
.plan-bar .p3 { background: var(--gold); color: var(--night); }
.plan-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.plan-steps div { font-size: 14px; color: var(--night-60); }
.plan-steps b { display: block; color: var(--night); font-size: 15px; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-card { padding: 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--night-06); display: flex; flex-direction: column; gap: 10px; }
.info-card__h { display: flex; gap: 12px; align-items: center; }
.info-card__h svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.info-card__h b { font-size: 16px; }
.info-card p { font-size: 14.5px; color: var(--night-60); }
.badge-ok { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: #2f7a55; }
.badge-no { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: #b5503c; }
.floorplan { background: var(--white); border-radius: var(--r); border: 1px solid var(--night-06); padding: 20px; }
.floorplan svg { width: 100%; height: auto; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.doc { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid var(--night-12); transition: .3s; }
.doc:hover { border-color: var(--gold); background: var(--white); }
.doc svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.4; flex: none; }
.doc b { display: block; font-size: 15px; }
.doc span { font-size: 12.5px; color: var(--night-60); }
.map-embed { border-radius: var(--r); overflow: hidden; height: 380px; background: var(--night-06); position: relative; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) sepia(.15); }
.map-acts { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.dev-card { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--night-06); align-items: start; }
.dev-card .mono { width: 64px; height: 64px; border-radius: 16px; background: var(--night); color: var(--gold); font-size: 16px; }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--white); border-radius: var(--r-lg); padding: 26px; border: 1px solid var(--night-06); box-shadow: 0 30px 60px -40px rgb(13 36 29 / .4); }
.side-card .price { font-size: 32px; }
.side-card .ppsqm { font-size: 13px; color: var(--night-60); margin-top: 2px; }
.side-card__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.side-card__acts .btn { height: 48px; padding-inline: 10px; font-size: 14px; }
.side-card__acts .wide { grid-column: 1 / -1; }
.side-est { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--sand); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--night-60); }
.side-est b { color: var(--night); font-size: 18px; display: block; }
.agent { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: var(--night); color: var(--sand); }
.agent img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.agent b { display: block; }
.agent span { font-size: 13px; color: var(--sand-60); }
.sold-banner { padding: 14px 18px; border-radius: 12px; background: #b5503c; color: var(--sand); font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: center; }

/* =========================================================
   FINANCING PAGE
   ========================================================= */
.tabs-panel { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--night-06); padding: clamp(24px, 3vw, 40px); margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.tabs-panel ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tabs-panel li { display: flex; gap: 12px; font-size: 15px; }
.tabs-panel li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; background: var(--gold); transform: rotate(45deg); flex: none; }
.dp-calc { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--night-06); padding: clamp(24px, 3vw, 36px); }
.dp-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.dp-out div { padding: 16px; border-radius: 14px; background: var(--sand); }
.dp-out span { font-size: 12.5px; color: var(--night-60); display: block; }
.dp-out b { font-size: 20px; }
.disclaimer { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--gold-10); border: 1px solid var(--gold-20); font-size: 13.5px; color: var(--night-80); line-height: 1.6; }
.disclaimer svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #8a6a2c; stroke-width: 1.7; margin-top: 1px; }
.dark .disclaimer { background: var(--sand-08); border-color: var(--sand-14); color: var(--sand-80); }
.dark .disclaimer svg { stroke: var(--gold); }

/* =========================================================
   ELIGIBILITY WIZARD
   ========================================================= */
.wiz { min-height: 100svh; display: grid; grid-template-columns: 1fr 1.1fr; background: var(--night); color: var(--sand); }
.wiz__side { position: relative; overflow: hidden; }
.wiz__side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wiz__side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(13 36 29 / .3), rgb(13 36 29 / .9)); }
.wiz__side-body { position: absolute; z-index: 2; inset-inline: clamp(24px, 4vw, 60px); bottom: clamp(30px, 6vw, 70px); display: flex; flex-direction: column; gap: 16px; }
.wiz__main { padding: calc(var(--hdr) + 40px) clamp(24px, 5vw, 90px) 60px; display: flex; flex-direction: column; position: relative; }
.wiz__progress { height: 2px; background: var(--sand-14); border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
.wiz__progress i { display: block; height: 100%; background: var(--gold); transform-origin: left; transition: transform .7s var(--ease); }
html[dir="rtl"] .wiz__progress i { transform-origin: right; }
.wiz__step-n { font-size: 13px; color: var(--sand-60); margin-bottom: 40px; }
.wiz__q { font-family: var(--display); font-size: clamp(32px, 3.4vw, 52px); line-height: 1.1; margin-bottom: 30px; }
html[lang="ar"] .wiz__q { line-height: 1.5; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { text-align: start; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--sand-14); background: var(--sand-08); display: flex; gap: 14px; align-items: center; transition: .35s var(--ease); font-size: 16px; font-weight: 500; }
.opt:hover { border-color: var(--gold); transform: translateY(-2px); }
.opt.is-on { background: var(--gold); color: var(--night); border-color: var(--gold); }
.opt svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; flex: none; opacity: .85; }
.opt small { display: block; font-size: 13px; opacity: .7; font-weight: 400; }
.wiz__nav { display: flex; justify-content: space-between; margin-top: auto; padding-top: 40px; gap: 10px; }
.wiz__stage { flex: 1; display: flex; flex-direction: column; }
.verdict { padding: 26px; border-radius: 20px; border: 1px solid var(--sand-14); background: var(--sand-08); display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.verdict__tag { align-self: flex-start; }
.verdict h3 { font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1.15; }
html[lang="ar"] .verdict h3 { font-size: 28px; line-height: 1.5; }
.verdict p, .verdict li { color: var(--sand-80); font-size: 15px; }
.verdict ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.verdict li { display: flex; gap: 10px; }
.verdict li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* =========================================================
   CITY / OWNERSHIP / CONTACT PAGES
   ========================================================= */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--sand-14); border-radius: var(--r); overflow: hidden; margin-top: 30px; }
.kpis div { background: rgb(13 36 29 / .55); padding: 20px; backdrop-filter: blur(10px); }
.kpis b { display: block; font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1.1; }
html[lang="ar"] .kpis b { font-family: "Manrope", sans-serif; font-size: 28px; font-weight: 700; }
.kpis span { font-size: 13px; color: var(--sand-60); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--night-12); }
.faq details { border-bottom: 1px solid var(--night-12); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--night-12); position: relative; flex: none; transition: .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: .4s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--night); color: var(--gold); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding-bottom: 22px; color: var(--night-60); max-width: 70ch; }
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.zone { padding: 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--night-06); display: flex; flex-direction: column; gap: 10px; }
.zone__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.zone__h b { font-size: 17px; }
.zone dl { display: grid; gap: 8px; font-size: 13.5px; }
.zone dt { font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-60); }
html[lang="ar"] .zone dt { letter-spacing: 0; font-size: 12.5px; }
.zone dd { color: var(--night-80); }
.zone__upd { font-size: 12px; color: var(--night-60); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--night-06); }
.st-open { background: rgb(63 154 107 / .14); color: #2f7a55; }
.st-conditional { background: var(--gold-10); color: #8a6a2c; }
.st-restricted { background: rgb(181 80 60 / .12); color: #a2452f; }
.articles { display: flex; flex-direction: column; }
.article { display: grid; grid-template-columns: 1fr auto; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--night-12); align-items: start; }
.article h3 { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
html[lang="ar"] .article h3 { font-size: 24px; line-height: 1.5; }
.article__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--night-60); margin-top: 12px; }
.article__meta .upd { color: #8a6a2c; font-weight: 600; }
.article__body p { color: var(--night-80); margin-top: 10px; max-width: 75ch; }
.article__src { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 70px); padding-block: 70px 120px; }
.contact-list { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.contact-list a, .contact-list div { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--night-12); }
.contact-list svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--night); fill: none; stroke: var(--gold); stroke-width: 1.6; }
.contact-list b { display: block; font-size: 16px; }
.contact-list span { font-size: 13.5px; color: var(--night-60); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--night-12); text-align: start; vertical-align: top; }
.compare-table thead th { vertical-align: bottom; }
.compare-table th:first-child { color: var(--night-60); font-weight: 600; width: 160px; }
.compare-table img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.compare-wrap { overflow-x: auto; }

/* =========================================================
   BROCHURE (print)
   ========================================================= */
.brochure { background: #6b6b6b; padding: 30px 0 80px; }
.brochure__bar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: center; gap: 10px; padding: 14px; background: var(--night); }
.bpage { width: 210mm; min-height: 297mm; margin: 24px auto; background: var(--sand); position: relative; overflow: hidden; padding: 16mm; display: flex; flex-direction: column; gap: 8mm; }
.bpage__cover { height: 150mm; border-radius: 12px; overflow: hidden; margin: -16mm -16mm 0; border-radius: 0; }
.bpage__cover img { width: 100%; height: 100%; object-fit: cover; }
.bpage .h2 { font-size: 34pt; }
.bpage__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; }
.bpage__grid div { padding: 4mm; border-radius: 8px; background: var(--white); font-size: 9pt; }
.bpage__grid b { display: block; font-size: 12pt; }
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: var(--sand) !important; }
  body * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hdr, .ftr, .fab, .compare-tray, .toasts, .brochure__bar, .intro, .transition { display: none !important; }
  .brochure { padding: 0; background: none; }
  .bpage { margin: 0; page-break-after: always; box-shadow: none; }
}

/* =========================================================
   REVEAL HELPERS
   ========================================================= */
.rv { opacity: 0; transform: translateY(40px); }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wm > span { display: inline-block; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 20px; font-size: 14px; }
  .nav a:nth-child(n+6) { display: none; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .insights { grid-template-columns: 1fr 1fr; }
  .pd { grid-template-columns: 1fr 340px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  :root { --hdr: 72px; }
  .nav, .hdr__tools .btn { display: none; }
  .burger { display: flex; }
  .search__row { grid-template-columns: 1fr 1fr; }
  .sfield + .sfield { border-inline-start: 0; }
  .search__go { grid-column: 1 / -1; height: 56px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats div { padding-bottom: 20px; }
  .hero__ar-mark { display: none; }
  .kmap__grid, .fin-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .kmap__card { position: relative; width: 100%; margin-top: 20px; }
  .cities { flex-direction: column; height: auto; }
  .city { flex: none; height: 110px; transition: height .9s var(--ease); }
  .city.is-open { height: 460px; flex: none; }
  .city__v { writing-mode: horizontal-tb; transform: none; inset-inline-start: 24px; bottom: 34px; font-size: 28px; }
  html[dir="rtl"] .city__v, html[lang="ar"] .city__v { transform: none; }
  .city__body { inset-inline: 22px; flex-direction: column; align-items: flex-start; }
  .profiles { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar { border: 0 !important; padding-inline: 0 !important; }
  .cta__card { grid-template-columns: 1fr; }
  .cta__img { height: 280px; order: -1; }
  .cta__img::before { background: linear-gradient(0deg, var(--night), transparent 50%) !important; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .srch { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 1200; border-radius: 0; max-height: none; transform: translateY(100%); transition: transform .6s var(--ease); padding-top: 24px; }
  .filters.is-open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .pd { grid-template-columns: 1fr; }
  .side { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 460px; }
  .gallery button:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
  .wiz { grid-template-columns: 1fr; }
  .wiz__side { display: none; }
  .tabs-panel { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-cards, .results .grid-cards { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--hdr) + 28px); }
  .hero__title { margin: 14px 0; }
  .search { margin-top: 26px; }
  .search__row { grid-template-columns: 1fr 1fr; }
  .sfield { padding: 8px 10px; }
  .search__tabs { overflow-x: auto; flex-wrap: nowrap; }
  .search__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .qchip { white-space: nowrap; }
  .insights { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .amen { grid-template-columns: 1fr 1fr; }
  .spec-table { grid-template-columns: 1fr; }
  .info-cards, .docs { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .dp-out { grid-template-columns: 1fr; }
  .calc__out { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .calc__rows { width: 100%; text-align: start; }
  .ftr__top { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .plan-steps { grid-template-columns: 1fr; }
  .compare-tray { max-width: calc(100vw - 110px); inset-inline-start: 16px; left: 16px; transform: translate(0, 160%); }
  .compare-tray.is-on { transform: translate(0, 0); }
  html[dir="rtl"] .compare-tray { left: auto; right: 16px; }
  .fab { width: 54px; height: 54px; bottom: 18px; inset-inline-end: 16px; }
  .logo__t small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* =========================================================
   NUMERALS — one professional figure style site-wide
   Manrope lining + tabular figures for every number;
   lining figures inside serif headings so digits sit on the baseline.
   ========================================================= */
:root { --num: "Manrope", ui-sans-serif, system-ui, sans-serif; }
body, .h1, .h2, .h3, .pcard__title, .pd-title h1 { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.hero__stats b, .kpis b, .calc__big b, .kmap__card-meta b, .proj__meta b, .stat b,
.price, .dp-out b, .calc__rows b, .range__top output, .range__top input, .plan-bar b, .plan-steps b,
.fact b, .side-est b, .bpage__grid b, .pcard__id, .city__count, .kmap__city .ct,
.kmap__city .n, .pillar .n, .step__num, .menu__item small, .js-count, .spec-table b, .compare-table td, .af {
  font-family: var(--num) !important; font-style: normal;
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
}
.hero__stats b { font-weight: 600; font-size: clamp(26px, 2.5vw, 38px); letter-spacing: -0.03em; }
.kpis b { font-weight: 600 !important; font-size: clamp(24px, 2.2vw, 32px) !important; letter-spacing: -0.03em; }
.calc__big b { font-weight: 700 !important; font-size: clamp(34px, 3.2vw, 48px) !important; letter-spacing: -0.035em; }
.proj__meta b, .kmap__card-meta b { font-weight: 700; letter-spacing: -0.01em; }
.price { letter-spacing: -0.02em; }
.kmap__city .n, .pillar .n { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--gold); }
.step__num { font-size: 13px; font-weight: 700; letter-spacing: .08em; }

/* =========================================================
   HERO — never slide under the header on short viewports
   ========================================================= */
.hero { padding-top: calc(var(--hdr) + clamp(20px, 5vh, 56px)); }
.hero__title { font-size: clamp(44px, min(7.4vw, 12.5vh), 124px); }
html[lang="ar"] .hero__title { font-size: clamp(40px, min(6.2vw, 10.5vh), 104px); }
.hero__ar-mark { top: calc(var(--hdr) + 8vh); }
@media (max-height: 820px) and (min-width: 981px) {
  .hero__title { margin: 14px 0; }
  .hero__sub { font-size: 16px; }
  .search { margin-top: 24px; }
  .hero__stats div { padding: 14px 0 30px; }
}
@media (max-height: 700px) and (min-width: 981px) {
  .hero__stats { display: none; }
  .search__chips { display: none; }
}


/* =========================================================
   KINGDOM MAP — interactive layer
   ========================================================= */
.kmap__right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.kmap__stage { position: relative; padding-top: 44px; }
.kmap__tilt { transform-style: preserve-3d; will-change: transform; }
.kmap__svg { filter: drop-shadow(0 34px 40px rgb(0 0 0 / .35)); cursor: crosshair; }
.kmap__land { vector-effect: non-scaling-stroke; }
.kmap__line { vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; animation: kflow 1.4s linear infinite; transition: stroke .4s, stroke-width .4s, opacity .4s; }
.kmap__line.is-on { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 6 6; }
@keyframes kflow { to { stroke-dashoffset: -20; } }
.kmap__pin { cursor: pointer; outline: none; transition: opacity .5s; }
.kmap__pin .hit { fill: transparent; }
.kmap__pin.is-dim { opacity: .35; }
.kmap__pin:focus-visible .core { stroke: var(--sand); stroke-width: 3; }
.kmap__pin .lbl { paint-order: stroke; stroke: var(--night); stroke-width: 5px; stroke-linejoin: round; }
.kmap__prop { cursor: pointer; opacity: .45; transition: opacity .5s; }
.kmap__prop .dot { fill: var(--sand); stroke: var(--gold); stroke-width: 2; }
.kmap__prop .halo { fill: rgb(196 154 74 / .28); opacity: 0; transition: opacity .3s; }
.kmap__prop:hover { opacity: 1; }
.kmap__prop:hover .halo { opacity: 1; }
.kmap__stage.is-zoomed .kmap__prop { opacity: .2; }
.kmap__stage.is-zoomed .kmap__prop.is-city { opacity: 1; }
.kmap__reset {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding-inline: 14px; border-radius: 100px; border: 1px solid var(--sand-40); color: var(--sand); font-size: 13px; font-weight: 600;
  background: rgb(13 36 29 / .6); backdrop-filter: blur(8px); transition: .3s;
}
.kmap__reset:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.kmap__reset svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.kmap__hint { position: absolute; top: 8px; inset-inline-end: 0; display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--sand-40); }
.kmap__hint svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.7; }
.kmap__stage.is-zoomed .kmap__hint { opacity: 0; }
.kmap__tip {
  position: absolute; top: 0; left: 0; z-index: 6; width: 260px; pointer-events: none; display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center;
  padding: 8px; border-radius: 14px; background: var(--sand); color: var(--night); box-shadow: 0 20px 40px -12px rgb(0 0 0 / .5);
  opacity: 0; transition: opacity .25s;
}
.kmap__tip.is-on { opacity: 1; }
.kmap__tip img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.kmap__tip b { display: block; font-size: 13px; line-height: 1.3; font-weight: 700; }
.kmap__tip span { display: block; font-family: var(--num); font-weight: 700; font-size: 14px; color: #8a6a2c; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kmap__tip small { font-size: 11.5px; color: var(--night-60); }
.kmap__card { position: relative; inset: auto; width: 100%; display: grid; grid-template-columns: 220px 1fr; border-radius: var(--r-lg); }
.kmap__card-img { height: auto; min-height: 180px; }
.kmap__card-meta { flex-wrap: wrap; }
@media (max-width: 980px) {
  .kmap__card { margin-top: 0; }
  .kmap__hint { position: static; margin-bottom: 10px; }
  .kmap__stage { padding-top: 0; }
  .kmap__reset { top: auto; bottom: 0; }
}
@media (max-width: 640px) {
  .kmap__card { grid-template-columns: 1fr; }
  .kmap__card-img { min-height: 150px; height: 150px; }
}
.kmap__stage.is-zoomed .kmap__svg {
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
}
.kmap__prop .pr { opacity: 0; transition: opacity .4s; pointer-events: none; }
.kmap__prop .pr rect { fill: var(--sand); }
.kmap__prop .pr text { fill: var(--night); font-family: var(--num); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kmap__stage.is-zoomed .kmap__prop.is-city .pr { opacity: 1; transition-delay: 1.3s; }
.kmap__stage.is-zoomed .kmap__prop.is-city:hover .pr rect { fill: var(--gold); }
.kmap__lead { stroke: rgb(196 154 74 / .7); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.kmap__anchor { fill: var(--gold); }
