/* =====================================================================
   الإمام للتطوير العقاري — نظام التصميم (V2)
   الهوية: أسود مخضر + أخضر البروشور + ذهبي. الذهبي لون إبراز، مش زينة.
   - مقاسين بس للحواف: --r-sm (أزرار/حقول) و --r-md (كروت/صور)
   - الظل للعناصر اللي فوق الصفحة بس (نوافذ، قوائم، كروت طايرة)
   - مفيش حركة غير رد فعل على فعل المستخدم
   ===================================================================== */

/* ---------- التوكنز: الوضع الغامق (الافتراضي) ---------- */
:root,
[data-theme="light"] .on-dark {
  --bg: #0b100d;
  --bg-alt: #0f1612;
  --surface: #141c17;
  --surface-2: #1a241e;
  --border: rgba(239, 233, 220, .10);
  --border-strong: rgba(239, 233, 220, .20);
  --text: #efe9dc;
  --text-2: #b4ad9e;
  --text-3: #8c8678;
  --accent: #c9a35a;          /* خلفيات الأزرار */
  --accent-hover: #d6b26b;
  --on-accent: #17120a;
  --accent-text: #d4b06a;     /* ذهبي للنص */
  --green: #1f4a35;
  --green-deep: #0f2a1d;
  --ok: #4fb47a;
  --warn: #d4b06a;
  --danger: #e27a68;
  --danger-bg: rgba(226, 122, 104, .12);
  --ok-bg: rgba(79, 180, 122, .12);
  --overlay: rgba(4, 7, 5, .72);
  --shadow-overlay: 0 24px 60px rgba(0, 0, 0, .5);
  --header-bg: rgba(11, 16, 13, .92);
  color-scheme: dark;
}

/* ---------- الوضع الفاتح: حجر جيري زي واجهة العمارات ---------- */
[data-theme="light"] {
  --bg: #f5f1e8;
  --bg-alt: #ede7da;
  --surface: #fffdf8;
  --surface-2: #f3eee3;
  --border: rgba(23, 34, 28, .12);
  --border-strong: rgba(23, 34, 28, .24);
  --text: #17221c;
  --text-2: #4e564f;
  --text-3: #6c706a;
  --accent: #b5883a;
  --accent-hover: #a67a2e;
  --on-accent: #160f04;
  --accent-text: #7f5d1c;
  --ok: #23804e;
  --warn: #7f5d1c;
  --danger: #b4432f;
  --danger-bg: rgba(180, 67, 47, .09);
  --ok-bg: rgba(35, 128, 78, .10);
  --overlay: rgba(20, 28, 23, .55);
  --shadow-overlay: 0 24px 60px rgba(40, 32, 15, .18);
  --header-bg: rgba(245, 241, 232, .94);
  color-scheme: light;
}

:root {
  --font: "Tajawal", "Segoe UI", system-ui, sans-serif;

  --fs-xs: 14px;
  --fs-sm: 15px;
  --fs-base: 17px;
  --fs-md: 19px;
  --fs-lg: 22px;
  --fs-xl: clamp(24px, 2.6vw, 28px);
  --fs-2xl: clamp(28px, 3.6vw, 38px);
  --fs-3xl: clamp(34px, 5.2vw, 58px);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(56px, 8vw, 104px);

  --r-sm: 8px;
  --r-md: 14px;

  --max: 1200px;
  --measure: 62ch;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { list-style: none; }
main { overflow-x: clip; }
main:focus { outline: none; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.accent { color: var(--accent-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.skip-link { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 2000; background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 8px 16px; border-radius: var(--r-sm); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* أيقونة جوه أي عنصر */
[data-icon] > svg, .btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 10px 20px; border-radius: var(--r-sm);
  border: 1px solid transparent; font-weight: 700; font-size: var(--fs-base); line-height: 1.2;
  white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 12px 26px; font-size: var(--fs-md); }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--text-2); background: var(--surface-2); }
.btn-wa { background: #25d366; color: #04210f; }
.btn-wa:hover { background: #3be07a; }
.btn-secondary [data-icon="wa"] svg, .btn-secondary.wa svg { color: #25d366; }
.btn-danger { border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--accent-text) 40%, transparent); }
.link:hover { text-decoration-color: currentColor; }

.icon-btn { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--border); color: var(--text-2); transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- الهيدر ---------- */
.announce { display: block; background: var(--green-deep); color: #efe9dc; font-size: var(--fs-sm); border-bottom: 1px solid rgba(201, 163, 90, .3); }
.announce .container { display: flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 42px; padding-block: 6px; text-align: center; flex-wrap: wrap; }
.announce b { font-weight: 700; }
.announce .tag { font-size: var(--fs-xs); font-weight: 700; color: #17120a; background: #c9a35a; border-radius: 4px; padding: 0 8px; }
.announce .go { color: #d4b06a; font-weight: 700; white-space: nowrap; }
.announce:hover .go { text-decoration: underline; text-underline-offset: 4px; }

.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 20px; font-weight: 800; }
.brand-text small { font-size: 13px; color: var(--text-3); }
.nav { display: flex; align-items: center; gap: var(--s-1); margin-inline-start: auto; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; color: var(--text-2); transition: color .15s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { margin-inline-start: var(--s-3); }
.header-tools { display: flex; gap: var(--s-2); }
.menu-btn { display: none; }
.theme-btn .sun { display: none; }
[data-theme="light"] .theme-btn .sun { display: block; }
[data-theme="light"] .theme-btn .moon { display: none; }

/* ---------- عناوين الأقسام ---------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.eyebrow { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-text); margin-bottom: var(--s-3); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5) var(--s-7); flex-wrap: wrap; margin-bottom: var(--s-6); }
.section-head > div { max-width: var(--measure); }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { color: var(--text-2); margin-top: var(--s-2); }
.prose p { color: var(--text-2); max-width: var(--measure); }
.prose p + p { margin-top: var(--s-4); }
.prose strong { color: var(--text); font-weight: 700; }

/* ---------- الرئيسية: الهيرو ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--fs-3xl); line-height: 1.2; letter-spacing: -.01em; }
.hero h1 span { color: var(--accent-text); }
.hero .lead { font-size: var(--fs-md); color: var(--text-2); margin-top: var(--s-5); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-media { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; max-height: calc(100svh - var(--header-h) - 220px); min-height: 320px; object-fit: cover; object-position: 35% 30%; }
.hero-media figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 20px 14px; font-size: var(--fs-sm); color: #efe9dc; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent); }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--border); }
.figures > div { padding: var(--s-5) var(--s-4); }
.figures > div + div { border-inline-start: 1px solid var(--border); }
.figures dt { font-size: var(--fs-sm); color: var(--text-2); }
.figures dd { font-size: var(--fs-2xl); font-weight: 800; line-height: 1.2; order: -1; }
.figures > div { display: flex; flex-direction: column; }

.promo-phones { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--text-2); }
.promo-phones a { color: var(--text); font-weight: 700; }
.promo-phones a:hover { color: var(--accent-text); }
/* الكارت الصغير اللي بيظهر مرة في الزيارة */
.promo-pop { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90; width: min(360px, calc(100% - 32px)); padding: var(--s-5); border-radius: var(--r-md); background: var(--green-deep); color: var(--text); border: 1px solid rgba(201, 163, 90, .4); box-shadow: var(--shadow-overlay); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.promo-pop.show { opacity: 1; transform: none; pointer-events: auto; }
.promo-pop .close-x { position: absolute; top: 10px; inset-inline-end: 10px; }
.promo-pop small { display: block; color: var(--accent-text); font-weight: 700; font-size: var(--fs-sm); }
.promo-pop b { display: block; font-size: var(--fs-lg); line-height: 1.35; margin: 2px 0 4px; padding-inline-end: 36px; }
.promo-pop p { color: var(--text-2); font-size: var(--fs-sm); }
.promo-pop .row { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.promo-pop .row .btn { flex: 1; }

/* ---------- المتاح للحجز ---------- */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: stretch; }
.offers:has(> .offer[hidden]) { grid-template-columns: minmax(0, 1fr); }
.offers:has(> .offer[hidden]) .offer:not([hidden]) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.offer { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.offer-promo { grid-template-rows: 1fr; background: var(--green-deep); border-color: rgba(201, 163, 90, .4); color: var(--text); }
.offer-media { display: block; overflow: hidden; background: var(--surface-2); }
.offer-media img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.offer-body { display: flex; flex-direction: column; padding: var(--s-5); }
.offer-body .eyebrow { margin-bottom: 4px; }
.offer h3 { font-size: var(--fs-2xl); line-height: 1.2; }
.offer h3 span { color: var(--accent-text); }
.offer-place { color: var(--text-2); margin-top: 4px; }
.offer-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: var(--s-5) 0; border-block: 1px solid var(--border); }
.offer-promo .offer-terms { border-color: rgba(201, 163, 90, .3); }
.offer-terms > div { display: flex; flex-direction: column; padding: var(--s-3) 0; }
.offer-terms > div + div { border-inline-start: 1px solid var(--border); padding-inline-start: var(--s-4); }
.offer-promo .offer-terms > div + div { border-color: rgba(201, 163, 90, .3); }
.offer-terms dt { font-size: var(--fs-sm); color: var(--text-2); order: 1; }
.offer-terms dd { font-size: var(--fs-xl); font-weight: 800; line-height: 1.25; }
.offer-promo .offer-terms dd { font-size: clamp(36px, 4.5vw, 52px); color: var(--accent-text); }
.offer-terms dd small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--text-2); }
.offer-promo .offer-terms dd small { display: inline; margin-inline-start: 6px; font-size: var(--fs-sm); }
.offer-text { color: var(--text-2); margin-bottom: var(--s-5); }
.offer .actions { margin-top: auto; }
.offer-tag { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid rgba(201, 163, 90, .25); font-weight: 700; font-size: var(--fs-sm); color: var(--text-2); }
.offer .promo-phones { margin-top: var(--s-4); }
/* الوحدات الجاهزة: صف عرضي تحت الكارتين */
.offer-ready { grid-column: 1 / -1; grid-template-rows: auto; }
.offer-ready .offer-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: var(--s-3) var(--s-6); align-items: center; }
.offer-ready .offer-terms { margin: 0; }
.offer-ready .actions { margin: 0; }
@media (max-width: 960px) { .offer-ready .offer-body { grid-template-columns: minmax(0, 1fr); } }

.spec { margin-top: var(--s-5); border-top: 1px solid var(--border); }
.spec > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: var(--s-4); padding: 12px 0; border-bottom: 1px solid var(--border); }
.spec dt { color: var(--text-2); }
.spec dd { font-weight: 700; }
.spec dd small { font-weight: 400; color: var(--text-2); }

/* ---------- الحالة (نقطة + كلمة) ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.green { color: var(--ok); }
.status.gold { color: var(--accent-text); }
.status.brick { color: #d9846f; }
[data-theme="light"] .status.brick { color: #a5462f; }

/* ---------- المشاريع ---------- */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.filter { min-height: 40px; padding: 6px 14px; border-radius: 6px; font-weight: 700; font-size: var(--fs-sm); color: var(--text-2); transition: background-color .15s, color .15s; }
.filter:hover { color: var(--text); }
.filter.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.filter .count { font-weight: 500; color: var(--text-3); margin-inline-start: 4px; }

.plots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-3); }
.plot { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-5) var(--s-5); overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: border-color .15s; }
.plot:hover { border-color: var(--border-strong); }
.plot-img { display: block; margin: calc(var(--s-4) * -1) calc(var(--s-5) * -1) var(--s-2); aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.plot-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.plot:hover .plot-img img { transform: scale(1.04); }
.plot-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.plot h3 { font-size: var(--fs-xl); font-weight: 800; }
.plot h3 small { font-size: var(--fs-sm); font-weight: 500; color: var(--text-3); margin-inline-end: 6px; }
.plot-area { color: var(--text-2); font-size: var(--fs-sm); }
.plot-note { font-size: var(--fs-sm); color: var(--text-2); }
.plot-terms { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-text); }
.plot .link { margin-top: auto; padding-top: var(--s-3); font-size: var(--fs-sm); }
/* الكارت كله بيدوس: اللينك بيغطي الكارت */
.plot { position: relative; cursor: pointer; }
.plot .link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.plot .link:focus-visible { outline: none; }
.plot:has(.link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plot:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.plot.has-page { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.plots-empty { grid-column: 1 / -1; padding: var(--s-7) var(--s-5); text-align: center; color: var(--text-2); border: 1px dashed var(--border-strong); border-radius: var(--r-md); }

/* ---------- الخريطة ---------- */
.map-block { margin-top: var(--s-7); }
.map-block h3 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.map-wrap { position: relative; isolation: isolate; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.map { height: clamp(340px, 52vh, 500px); z-index: 1; }
.map-note { margin-top: var(--s-3); color: var(--text-3); font-size: var(--fs-sm); }
.plot-pin .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #c9a35a; color: #17120a; font: 800 14px/1 var(--font); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { background: #141c17; color: #efe9dc; border: 1px solid rgba(239, 233, 220, .14); border-radius: var(--r-md); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.leaflet-popup-tip { background: #141c17; }
.leaflet-popup-content { margin: 12px; }
.map-pop { display: grid; gap: 2px; text-align: right; direction: rtl; min-width: 210px; }
.map-pop img { width: 100%; height: 110px; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 8px; }
.map-pop b { font-size: 18px; }
.map-pop span { color: #b4ad9e; font-size: 14px; }
.map-pop .status { margin-top: 2px; }
.map-pop-btns { display: flex; gap: 6px; margin-top: 10px; }
.map-pop-btns .btn { flex: 1; min-height: 40px; font-size: 14px; padding: 6px 10px; }
.map-pop-btns .btn-secondary { color: #efe9dc; border-color: rgba(239, 233, 220, .24); }
.map-pop-btns .btn-primary { color: #17120a; }
.map-pop-btns .btn svg { width: 16px; height: 16px; }
.map-switch { display: flex; background: #141c17; border: 1px solid rgba(239, 233, 220, .18); border-radius: var(--r-sm); overflow: hidden; }
.map-switch button { padding: 8px 14px; color: #b4ad9e; font-weight: 700; font-size: 14px; }
.map-switch button.on { background: #1a241e; color: #efe9dc; }
.leaflet-bar a { background: #141c17 !important; color: #efe9dc !important; border-color: rgba(239, 233, 220, .14) !important; width: 40px !important; height: 40px !important; line-height: 40px !important; }

/* ---------- الفيديوهات ---------- */
.reels-wrap { --rw: clamp(220px, 62vw, 270px); }
.reels { position: relative; }
.reels-track { display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px calc(50% - var(--rw) / 2) 8px; }
.reels-track::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 var(--rw); scroll-snap-align: center; opacity: .55; transition: opacity .25s; cursor: pointer; }
.reel.active { opacity: 1; cursor: default; }
.reel:not(.active):hover { opacity: .8; }
.reel-frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-md); overflow: hidden; background: #000; border: 1px solid var(--border); }
.reel:not(.active) .reel-frame iframe { pointer-events: none; }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.reel-poster { position: absolute; inset: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); background: #0f2a1d; color: #b4ad9e; font-size: var(--fs-sm); }
.reel-poster img { height: 56px; opacity: .8; }
.reel-poster b { font-size: var(--fs-md); color: #efe9dc; }
.reel-play { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #c9a35a; color: #17120a; }
.reel-play svg { width: 24px; height: 24px; margin-left: 3px; }
.reel-no { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: rgba(0, 0, 0, .6); color: #efe9dc; border-radius: 4px; padding: 0 8px; font-size: 13px; pointer-events: none; }
.reel-full { margin-top: var(--s-3); display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; width: 100%; border-radius: var(--r-sm); border: 1px solid var(--border); font-weight: 700; font-size: var(--fs-sm); color: var(--text-2); visibility: hidden; }
.reel-full svg { width: 18px; height: 18px; }
.reel.active .reel-full { visibility: visible; }
.reel-full:hover { border-color: var(--border-strong); color: var(--text); }
.reels-bar { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-4); }
.reels-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); color: var(--text); transition: background-color .15s; }
.reels-arrow:hover:not(:disabled) { background: var(--surface-2); }
.reels-arrow:disabled { opacity: .3; cursor: default; }
.reels-arrow svg { width: 18px; height: 18px; }
.reels-arrow.prev svg { transform: scaleX(-1); }
.reels-count { color: var(--text-2); font-size: var(--fs-sm); min-width: 64px; text-align: center; }

/* ---------- المسرح (فيديو بملء الشاشة) ---------- */
.theater { position: fixed; inset: 0; z-index: 1200; display: grid; grid-template-columns: auto auto auto; align-items: center; justify-content: center; gap: var(--s-5); background: rgba(3, 5, 4, .95); color: #efe9dc; padding: 16px; animation: fadeIn .2s ease; }
.theater-screen { position: relative; height: min(84svh, 760px); aspect-ratio: 9 / 16; border-radius: var(--r-md); overflow: hidden; background: #000; }
.theater-screen iframe { width: 100%; height: 100%; border: 0; }
.theater-nav { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(239, 233, 220, .25); color: #efe9dc; }
.theater-nav:hover { background: rgba(255, 255, 255, .08); }
.theater-nav svg { width: 20px; height: 20px; }
.theater-nav.prev svg { transform: scaleX(-1); }
.theater .close-x { position: absolute; top: 16px; inset-inline-end: 16px; }
.theater-info { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: var(--s-4); font-size: var(--fs-sm); color: #b4ad9e; white-space: nowrap; }
.theater-info a { display: flex; align-items: center; gap: 6px; color: #d4b06a; font-weight: 700; }
.theater-info svg { width: 16px; height: 16px; }

/* ---------- عن الشركة ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about h2 { font-size: var(--fs-2xl); margin-bottom: var(--s-5); }
.commit { counter-reset: c; margin-top: var(--s-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-6); }
.commit li { counter-increment: c; border-top: 1px solid var(--border-strong); padding-top: var(--s-3); }
.commit li::before { content: counter(c, decimal-leading-zero); display: block; font-size: var(--fs-sm); color: var(--accent-text); font-weight: 700; margin-bottom: 2px; }
.commit b { display: block; font-size: var(--fs-md); }
.commit span { color: var(--text-2); font-size: var(--fs-sm); }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--surface); }
.about-media figcaption { padding-top: 10px; font-size: var(--fs-sm); color: var(--text-3); }

/* ---------- التواصل والفورم ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: var(--fs-2xl); }
.contact > div > p { color: var(--text-2); margin-top: var(--s-3); max-width: 30em; }
.contact-list { margin-top: var(--s-5); border-top: 1px solid var(--border); }
.contact-list li { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: var(--s-4); align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-list span { color: var(--text-2); font-size: var(--fs-sm); }
.contact-list a, .contact-list b { font-weight: 700; }
.contact-list a:hover { color: var(--accent-text); }
.contact-list .multi { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: clamp(20px, 3.5vw, 32px); }
.form { display: grid; gap: var(--s-4); }
.form h3 { font-size: var(--fs-xl); }
.form > p { color: var(--text-2); font-size: var(--fs-sm); margin-top: calc(var(--s-3) * -1); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); font-weight: 400; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--bg); color: var(--text); border: 1px solid var(--border-strong);
  font-size: var(--fs-base); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.input::placeholder, .field input::placeholder { color: var(--text-3); }
.input:hover, .field :is(input, select, textarea):hover { border-color: var(--text-3); }
.input:focus, .field :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field select { appearance: none; padding-inline-start: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23938c7d' stroke-width='2'%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; }
.field input[type="tel"] { direction: ltr; text-align: right; }
.form-error { color: var(--danger); font-weight: 700; font-size: var(--fs-sm); }
.form-error:empty { display: none; }
.fine { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: var(--fs-xs); }
.fine svg { width: 16px; height: 16px; flex: none; }

.done { display: grid; gap: var(--s-4); }
.done-head { display: flex; gap: var(--s-3); align-items: flex-start; }
.done-head .ok { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.done-head .ok svg { width: 20px; height: 20px; }
.done-head h3 { font-size: var(--fs-lg); }
.done-head p { color: var(--text-2); font-size: var(--fs-sm); }
.ref { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border: 1px dashed var(--border-strong); border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--text-2); }
.ref b { font-size: var(--fs-lg); color: var(--text); letter-spacing: 1px; }

/* ---------- الفوتر ---------- */
.footer { background: var(--bg); color: var(--text); border-top: 1px solid var(--border); padding: var(--s-7) 0 var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s-6); }
.footer p, .footer li { color: var(--text-2); font-size: var(--fs-sm); }
.footer p { margin-top: var(--s-3); max-width: 28em; }
.footer h4 { font-size: var(--fs-sm); color: var(--text-3); font-weight: 700; margin-bottom: var(--s-3); }
.footer ul { display: grid; gap: 6px; }
.footer a:hover { color: var(--text); }
.copy { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--border); color: var(--text-3); font-size: var(--fs-xs); }

/* أزرار ثابتة */
.float-wa { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.float-wa svg { width: 28px; height: 28px; }
.mobile-bar { display: none; }

/* ---------- صفحة المشروع ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); color: var(--text-3); }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--text); }
.p-hero { padding-block: var(--s-6) var(--s-7); }
.p-hero-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; margin-top: var(--s-4); }
.p-hero h1 { font-size: var(--fs-3xl); line-height: 1.15; }
.p-hero h1 span { color: var(--text-2); font-weight: 500; }
.p-hero .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s-4); margin-top: var(--s-2); color: var(--text-2); font-size: var(--fs-md); }
.p-hero .sub [lang="en"] { font-size: var(--fs-sm); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.p-hero .actions { margin-top: 0; }

.p-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-5); height: clamp(300px, 36vw, 480px); }
.p-gallery button { position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.p-gallery button:first-child { grid-row: span 2; border-radius: var(--r-md); }
.p-gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.p-gallery button:hover img { opacity: .88; }
.p-gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 700; font-size: var(--fs-md); }
.p-gallery button.extra { display: none; }

.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.keyfacts > div { display: flex; flex-direction: column; padding: var(--s-4) var(--s-5); }
.keyfacts > div + div { border-inline-start: 1px solid var(--border); }
.keyfacts dt { font-size: var(--fs-sm); color: var(--text-2); }
.keyfacts dd { order: -1; font-size: var(--fs-xl); font-weight: 800; line-height: 1.3; }
.keyfacts dd small { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--header-bg); backdrop-filter: blur(10px); border-block: 1px solid var(--border); }
.subnav .container { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 14px 14px 12px; font-weight: 700; font-size: var(--fs-sm); color: var(--text-2); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--text); }
.subnav a.on { color: var(--text); border-bottom-color: var(--accent); }

/* صفحة المشروع العامة: صورة عريضة */
.project-cover { margin-top: var(--s-5); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.project-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 760px) { .project-cover img { aspect-ratio: 4 / 3; } }
.keyfacts dd small { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.overview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.overview h2 { font-size: var(--fs-2xl); margin-bottom: var(--s-5); }

/* التابات */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.tab { min-height: 44px; padding: 6px 18px; border-radius: 6px; font-weight: 700; color: var(--text-2); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }

.units { display: grid; gap: var(--s-5); }
.unit { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.unit-plan { position: relative; background: #050505; display: block; width: 100%; min-height: 280px; }
.unit-plan img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.unit-plan:hover img { opacity: .85; }
.unit-plan .plan-cta { position: absolute; bottom: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .7); color: #efe9dc; font-size: var(--fs-sm); font-weight: 700; border: 1px solid rgba(239, 233, 220, .2); }
.unit-plan .plan-cta svg { width: 18px; height: 18px; }
.unit-plan:hover .plan-cta { border-color: #c9a35a; }
.unit-info { padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.unit-info h3 { font-size: var(--fs-lg); }
.unit-info .where { color: var(--text-2); font-size: var(--fs-sm); margin-top: 2px; }
.unit-area { display: flex; align-items: baseline; gap: 6px; }
.unit-area b { font-size: 44px; line-height: 1; font-weight: 800; }
.unit-area span { color: var(--text-2); }
.rooms { display: flex; flex-wrap: wrap; gap: 6px; }
.rooms li { padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: var(--fs-sm); color: var(--text-2); }
.rooms li b { color: var(--text); font-weight: 700; }
.unit .actions { margin-top: auto; padding-top: var(--s-2); }

/* من الاسكتش للتصميم */
.build { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.compare { --pos: 50%; position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface); aspect-ratio: 3 / 2; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0; background: #fff; pointer-events: none; }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; translate: -50% -50%; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; touch-action: pan-y; }
.compare input:focus-visible + .handle::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.compare .lbl { position: absolute; top: 12px; padding: 2px 10px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: var(--fs-xs); font-weight: 700; pointer-events: none; }
.compare .lbl.l { left: 12px; } .compare .lbl.r { right: 12px; }

.build-title { font-size: var(--fs-2xl); margin-bottom: var(--s-5); }
.steps { display: grid; gap: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-3); padding-bottom: var(--s-5); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; top: 28px; bottom: 0; inset-inline-start: 13px; width: 2px; background: var(--border); }
.steps li:last-child::before { display: none; }
.steps i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--bg); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; color: var(--text-3); z-index: 1; }
.steps .done i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.steps .now i { border-color: var(--accent); color: var(--accent-text); }
.steps b { display: block; font-size: var(--fs-md); line-height: 1.5; }
.steps b em { font-style: normal; font-size: var(--fs-xs); font-weight: 700; color: var(--accent-text); margin-inline-start: 8px; }
.steps span { font-size: var(--fs-sm); color: var(--text-2); }

/* نظام السداد */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--border-strong); }
.terms > div { padding: var(--s-6) var(--s-5); }
.terms > div + div { border-inline-start: 1px solid var(--border); }
.terms dt { color: var(--text-2); }
.terms dd { font-size: clamp(44px, 6vw, 68px); font-weight: 800; line-height: 1.1; margin-top: 4px; }
.terms dd small { font-size: var(--fs-lg); font-weight: 700; color: var(--text-2); margin-inline-start: 6px; }
.terms p { color: var(--text-2); font-size: var(--fs-sm); margin-top: 6px; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin-top: var(--s-6); }
.notes h3 { font-size: var(--fs-md); margin-bottom: 6px; }
.notes p, .notes li { color: var(--text-2); }
.notes ul { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); }
.notes ul li::before { content: "— "; color: var(--text-3); }

/* الأسعار */
.price-gate { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; padding: var(--s-5); border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); margin-bottom: var(--s-4); }
.price-gate h3 { font-size: var(--fs-lg); }
.price-gate p { color: var(--text-2); font-size: var(--fs-sm); max-width: 46em; margin-top: 2px; }
.price-gate.pending { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.price-gate .state { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--accent-text); margin-bottom: 4px; }
.price-gate .state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
table.prices { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
table.prices th { text-align: right; padding: 12px 16px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); background: var(--surface-2); white-space: nowrap; }
table.prices td { padding: 14px 16px; border-top: 1px solid var(--border); white-space: nowrap; }
table.prices td.total { font-weight: 800; }
table.prices tbody tr:hover { background: var(--surface-2); }
.mask { display: inline-block; width: 6em; height: .8em; border-radius: 4px; background: var(--border-strong); vertical-align: middle; }
.mask.s { width: 4em; }
.price-timer { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding: 12px 16px; margin-bottom: var(--s-4); border-radius: var(--r-sm); background: var(--ok-bg); color: var(--text); font-size: var(--fs-sm); }
.price-timer b.countdown { font-size: var(--fs-lg); letter-spacing: 1px; }
.price-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-4); }
.price-foot .fine { font-size: var(--fs-xs); }

/* الموقع */
.location { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.location .spec { margin-top: 0; }
.location .actions { margin-top: var(--s-5); }

/* ---------- عارض الصور ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(3, 5, 4, .95); display: none; align-items: center; justify-content: center; padding: 64px 16px; color: #efe9dc; }
.lightbox.open { display: flex; animation: fadeIn .2s ease; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: var(--r-sm); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(239, 233, 220, .25); color: #efe9dc; }
.lb-btn:hover { background: rgba(255, 255, 255, .08); }
.lb-btn svg { width: 20px; height: 20px; }
.lightbox .close-x { position: absolute; top: 12px; inset-inline-end: 12px; }
.lb-prev { inset-inline-start: 16px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 16px; top: 50%; translate: 0 -50%; }
.lb-prev svg { transform: scaleX(-1); }
.lb-caption { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; font-size: var(--fs-sm); color: #b4ad9e; white-space: nowrap; }

/* زرار الإغلاق: X مرسومة بخطين */
.close-x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: currentColor; transition: background-color .15s; }
.close-x:hover { background: rgba(127, 127, 127, .16); }
.close-x::before, .close-x::after { content: ""; grid-area: 1 / 1; width: 18px; height: 2px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.close-x::after { transform: rotate(-45deg); }

/* ---------- النافذة (طلب الأسعار) ---------- */
.modal { position: fixed; inset: 0; z-index: 1150; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .15s ease; }
.modal-card { position: relative; width: min(480px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-6) var(--s-5) var(--s-5); box-shadow: var(--shadow-overlay); animation: rise .2s var(--ease); }
.modal-card > .close-x { position: absolute; top: 12px; inset-inline-end: 12px; color: var(--text-2); }
.modal-head { margin-bottom: var(--s-5); padding-inline-end: 40px; }
.modal-head h3 { font-size: var(--fs-xl); }
.modal-head p { color: var(--text-2); font-size: var(--fs-sm); margin-top: 4px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- جولة 3D ---------- */
.tour { position: fixed; inset: 0; z-index: 1100; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; background: #080b09; color: #efe9dc; animation: fadeIn .2s ease; }
.tour-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 16px; border-bottom: 1px solid rgba(239, 233, 220, .1); min-width: 0; }
.tour-title { min-width: 0; }
.tour-title b { display: block; font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-title small { color: #b4ad9e; font-size: var(--fs-sm); }
.tour .close-x { flex: none; }
.tour-stage { position: relative; overflow: hidden; perspective: 1400px; perspective-origin: 50% 35%; touch-action: none; cursor: grab; user-select: none; }
.tour-stage:active { cursor: grabbing; }
.tour-floor { position: absolute; left: 50%; top: 62%; width: 140%; height: 90%; translate: -50% -50%; transform: rotateX(72deg); background: radial-gradient(circle, rgba(239, 233, 220, .08) 1px, transparent 1.5px) 0 0 / 34px 34px; -webkit-mask: radial-gradient(ellipse at center, #000 20%, transparent 65%); mask: radial-gradient(ellipse at center, #000 20%, transparent 65%); pointer-events: none; }
.tour-board { position: absolute; left: 50%; top: 50%; width: min(78vw, 880px); aspect-ratio: 1110 / 680; transform-style: preserve-3d; will-change: transform; }
.tour-board img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); box-shadow: 0 40px 70px rgba(0, 0, 0, .6); pointer-events: none; -webkit-user-drag: none; }
.tour-spots { position: absolute; inset: 0; transform-style: preserve-3d; }
.tour-spot { position: absolute; transform-style: preserve-3d; transform: translateZ(2px); }
.tour-spot > span { display: block; }
.tour-spot .pin { scale: calc(1 / var(--s, 1)); position: absolute; left: 0; bottom: 0; translate: -50% 0; transform-origin: 50% 100%; transform: rotateZ(calc(-1 * var(--rz))) rotateX(calc(-1 * var(--rx))) translateY(-6px); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #c9a35a; color: #17120a; font: 800 15px/1 var(--font); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.tour-spot .lbl { scale: calc(1 / var(--s, 1)); position: absolute; left: 0; bottom: 44px; translate: -50% 0; transform: rotateZ(calc(-1 * var(--rz))) rotateX(calc(-1 * var(--rx))); transform-origin: 50% 100%; white-space: nowrap; background: rgba(8, 11, 9, .9); color: #fff; padding: 2px 10px; border-radius: 4px; font-size: 14px; font-weight: 700; opacity: 0; transition: opacity .2s; pointer-events: none; }
.tour-spot .lbl em { font-style: normal; color: #d4b06a; margin-inline-start: 6px; }
.tour-spot:hover .lbl, .tour-spot.on .lbl, .tour-spot:focus-visible .lbl { opacity: 1; }
.tour-spot.on .pin { background: #fff; }
.tour-hint { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; display: flex; gap: 8px; align-items: center; background: rgba(8, 11, 9, .85); padding: 8px 16px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: #b4ad9e; transition: opacity .3s; pointer-events: none; white-space: nowrap; }
.tour-hint svg { width: 18px; height: 18px; }
.tour-hint.gone { opacity: 0; }
.room-card { position: absolute; top: 16px; inset-inline-end: 16px; width: min(300px, calc(100% - 32px)); background: #141c17; border: 1px solid rgba(239, 233, 220, .14); border-radius: var(--r-md); padding: var(--s-4); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: rise .2s var(--ease); }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rc-head b { font-size: var(--fs-lg); }
.rc-size { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.rc-size strong { font-size: 40px; line-height: 1.1; }
.rc-size span { color: #b4ad9e; }
.rc-dims { color: #b4ad9e; font-size: var(--fs-sm); margin-bottom: 8px; text-align: right; }
.rc-share { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rc-share i { display: block; height: 100%; width: 0; background: #c9a35a; transition: width .4s var(--ease); }
.rc-share-txt { display: block; color: #b4ad9e; font-size: var(--fs-xs); margin: 6px 0 10px; }
.room-card p { color: #d1cabb; font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.room-card .btn { width: 100%; }
.demo-tag { display: inline-block; font-size: 12px; font-weight: 700; color: #d4b06a; border: 1px solid rgba(212, 176, 106, .5); padding: 0 8px; border-radius: 4px; white-space: nowrap; }
.tour-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(239, 233, 220, .1); flex-wrap: wrap; min-width: 0; }
.tour-rooms { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.tour-rooms button, .tour-ctrl button { min-height: 44px; padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid rgba(239, 233, 220, .14); color: #efe9dc; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.tour-rooms button span.num { width: 22px; height: 22px; border-radius: 50%; background: #c9a35a; color: #17120a; display: grid; place-items: center; font-size: 12px; }
.tour-rooms button em { font-style: normal; font-size: 13px; color: #b4ad9e; }
.tour-rooms button:hover, .tour-ctrl button:hover { background: rgba(255, 255, 255, .06); }
.tour-rooms button.active, .tour-ctrl button.active { background: #1a241e; border-color: rgba(201, 163, 90, .7); }
.tour-ctrl { display: flex; gap: 6px; }
.tour-ctrl [data-c=in], .tour-ctrl [data-c=out], .tour-ctrl [data-c=spin] { width: 44px; justify-content: center; font-size: 20px; padding: 0; }
.areas { position: absolute; top: 16px; inset-inline-start: 16px; bottom: 16px; width: min(340px, calc(100% - 32px)); display: flex; flex-direction: column; background: #141c17; border: 1px solid rgba(239, 233, 220, .14); border-radius: var(--r-md); overflow: hidden; z-index: 3; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.areas-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(239, 233, 220, .1); }
.areas-head b { font-size: var(--fs-md); }
.areas-list { flex: 1; overflow-y: auto; padding: 6px; }
.areas-list button { width: 100%; display: grid; grid-template-columns: 26px 1fr 64px auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: #efe9dc; text-align: right; }
.areas-list button:hover, .areas-list button.active { background: #1a241e; }
.areas-list .num:first-child { width: 24px; height: 24px; border-radius: 50%; background: #c9a35a; color: #17120a; display: grid; place-items: center; font-size: 12px; }
.areas-list .an { display: flex; flex-direction: column; font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; }
.areas-list .an small { color: #8c8678; font-weight: 400; font-size: 12px; text-align: right; }
.areas-list .ab { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.areas-list .ab i { display: block; height: 100%; background: #c9a35a; }
.areas-list button.out .ab i { background: #4fb47a; }
.areas-list button > b { font-size: var(--fs-sm); min-width: 40px; text-align: left; }
.areas-foot { border-top: 1px solid rgba(239, 233, 220, .1); padding: 12px 16px 14px; display: grid; gap: 4px; font-size: var(--fs-sm); }
.areas-foot div { display: flex; justify-content: space-between; color: #b4ad9e; }
.areas-foot b { color: #efe9dc; }
.areas-foot .total { color: #efe9dc; font-weight: 700; padding-top: 6px; margin-top: 2px; border-top: 1px solid rgba(239, 233, 220, .1); }
.areas-foot .extra { color: #4fb47a; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; align-content: center; padding: 24px 0; }
.nf .code { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-text); }
.nf h1 { font-size: var(--fs-3xl); margin: 4px 0 var(--s-3); }
.nf p { color: var(--text-2); max-width: 32em; }
.nf .brand { margin-bottom: var(--s-7); }

/* ---------- عام: تنبيه + فراغ ---------- */
.toast { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 1300; display: flex; gap: 10px; align-items: center; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 12px 16px; font-weight: 700; font-size: var(--fs-sm); box-shadow: var(--shadow-overlay); animation: rise .2s var(--ease); }
.toast svg { width: 20px; height: 20px; color: var(--ok); }
.empty { text-align: center; padding: var(--s-7) var(--s-5); color: var(--text-2); border: 1px dashed var(--border-strong); border-radius: var(--r-md); }
.empty h3 { color: var(--text); font-size: var(--fs-md); margin-bottom: 4px; }

/* =====================================================================
   المقاسات
   ===================================================================== */
@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; inset: 100% 0 auto 0; z-index: -1; max-height: calc(100svh - var(--header-h)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-overlay); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav a:not(.btn) { padding: 14px 4px; font-size: var(--fs-md); color: var(--text); border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav .btn { margin: var(--s-4) 0 0; }
  .header-tools { margin-inline-start: auto; }
}
@media (max-width: 960px) {
  .hero-grid, .offers, .about, .contact, .overview, .build, .location { grid-template-columns: minmax(0, 1fr); }
  .offers:has(> .offer[hidden]) .offer:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; min-height: 0; max-height: 42svh; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figures > div:nth-child(3) { border-inline-start: 0; }
  .figures > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .unit { grid-template-columns: minmax(0, 1fr); }
  .unit-plan { min-height: 0; aspect-ratio: 1110 / 680; }
  .keyfacts { grid-template-columns: repeat(2, 1fr); }
  .keyfacts > div:nth-child(3) { border-inline-start: 0; }
  .keyfacts > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .about-media { order: -1; }
}
@media (max-width: 760px) {
  .terms { grid-template-columns: 1fr; }
  .terms > div + div { border-inline-start: 0; border-top: 1px solid var(--border); }
  .terms > div { padding: var(--s-4) 0; }
  .notes { grid-template-columns: 1fr; gap: var(--s-5); }
  .p-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .p-gallery button:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .p-gallery button:not(:first-child) { aspect-ratio: 4 / 3; }
  .p-gallery button:nth-child(n+4):not(:last-child) { display: none; }
  .p-hero .actions { width: 100%; }
  .p-hero .actions .btn { flex: 1 1 auto; }

  table.prices thead { display: none; }
  table.prices, table.prices tbody, table.prices tr, table.prices td { display: block; width: 100%; }
  table.prices tr { padding: 12px 16px; border-top: 1px solid var(--border); }
  table.prices tr:first-child { border-top: 0; }
  table.prices td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: var(--s-3); white-space: normal; }
  table.prices td::before { content: attr(data-l); color: var(--text-2); font-size: var(--fs-sm); }
  table.prices td:first-child { font-size: var(--fs-md); padding-bottom: 6px; }
  table.prices td:first-child::before { content: none; }

  .float-wa { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--header-bg); border-top: 1px solid var(--border); backdrop-filter: blur(10px); }
  body:has(.mobile-bar) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .promo-pop { inset-inline: 16px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); }

  .theater { grid-template-columns: 1fr; gap: 0; padding: 64px 10px 80px; }
  .theater-screen { height: auto; width: 100%; max-height: calc(100svh - 160px); justify-self: center; }
  .theater-nav { position: absolute; bottom: 14px; }
  .theater-nav.prev { inset-inline-start: 14px; } .theater-nav.next { inset-inline-end: 14px; }
  .theater-info { bottom: 28px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; translate: none; }
  .lb-caption { bottom: 64px; }

  .tour-board { width: 94vw; }
  .tour-bar { flex-direction: column; align-items: stretch; }
  .tour-ctrl { justify-content: center; }
  .room-card { top: auto; bottom: 12px; inset-inline: 12px; width: auto; }
  .areas { top: auto; inset-inline: 10px; bottom: 10px; width: auto; max-height: 72%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { height: 36px; }
  .brand-text b { font-size: 18px; }
  .hero .actions .btn, .offer .actions .btn { flex: 1 1 100%; }
  .commit { grid-template-columns: 1fr; }
  .plots { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .plot { padding: var(--s-3) var(--s-4) var(--s-4); }
  .plot-img { margin: calc(var(--s-3) * -1) calc(var(--s-4) * -1) var(--s-2); }
  .plot-top { flex-direction: column; align-items: flex-start; gap: 2px; }
  .plot-note { display: none; }
  .spec > div, .contact-list li { grid-template-columns: 1fr; gap: 0; }
  .keyfacts > div { padding: var(--s-3) var(--s-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: var(--s-5); }
  .unit-info { padding: var(--s-5) var(--s-4); }
  .unit .actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .btn, .filter, .tab { border: 1px solid ButtonText; }
  .status::before { forced-color-adjust: none; }
}

/* =====================================================================
   الحركة — كلها في motion.js. المحتوى ظاهر طبيعي من غير JS،
   وأي حاجة بتختفي عشان تظهر بحركة لازم تكون تحت الشاشة وقت التحميل.
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s ease both vtOut; }
::view-transition-new(root) { animation: .35s var(--ease) both vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(6px); } }

/* شاشة البداية: اللوجو بيتبني من تحت لفوق، وبعدين الستارة بتترفع */
.intro { position: fixed; inset: 0; z-index: 3000; cursor: pointer; }
.intro .veil { position: absolute; inset: 0; background: #0b100d; transition: transform 1.1s cubic-bezier(.76, 0, .24, 1); }
.intro .veil::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #c9a35a, transparent); opacity: 0; transition: opacity .3s; }
.intro .stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; color: #efe9dc; transition: opacity .5s ease, transform 1s cubic-bezier(.76, 0, .24, 1); }
.intro .mark { position: relative; width: 120px; height: 160px; }
.intro .mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; clip-path: inset(100% 0 0 0); animation: introBuild 1.4s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
.intro .mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 205, .85) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 150% 0; mix-blend-mode: overlay; -webkit-mask: url(../img/logo-mark.png) center / contain no-repeat; mask: url(../img/logo-mark.png) center / contain no-repeat; animation: introSheen 1s ease 1.5s forwards; }
.intro .name { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: 1px; line-height: 1.3; opacity: 0; transform: translateY(10px); animation: introUp .7s var(--ease) 1.1s forwards; }
.intro .name small { display: block; font-size: 14px; font-weight: 500; color: #c9a35a; letter-spacing: 4px; }
.intro .bar { width: 140px; height: 1px; background: rgba(201, 163, 90, .2); overflow: hidden; }
.intro .bar::after { content: ""; display: block; height: 100%; background: #c9a35a; transform: scaleX(0); transform-origin: right; animation: introGrow 2s ease forwards; }
.intro.open { pointer-events: none; }
.intro.open .veil { transform: translateY(-100%); }
.intro.open .veil::after { opacity: 1; }
.intro.open .stage { opacity: 0; transform: translateY(-24vh); }
@keyframes introBuild { to { clip-path: inset(0 0 0 0); } }
@keyframes introSheen { to { background-position: -50% 0; } }
@keyframes introUp { to { opacity: 1; transform: none; } }
@keyframes introGrow { to { transform: scaleX(1); } }

/* دخول أول الصفحة (بعد شاشة البداية) */
.m-on [data-enter] { opacity: 0; transform: translateY(18px); }
.m-on.m-go [data-enter] { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }


/* الظهور مع السكرول */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.reveal.from-side { transform: translateX(-28px); }
.reveal.from-side.in { transform: none; }
.reveal.media { clip-path: inset(0 0 12% 0 round var(--r-md)); transform: none; }
.reveal.media.in { clip-path: inset(0 0 0 0 round var(--r-md)); transition: opacity .7s var(--ease), clip-path 1.1s var(--ease); }

/* خط المراحل بيتملي لحد المرحلة الحالية */
.steps.reveal-line li::before { transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 140ms + 200ms); }
.steps.reveal-line.in li::before { transform: none; }
.steps .done i, .steps .now i { transition: background-color .3s, border-color .3s; }

/* تفاعلات صغيرة */
.header { transition: box-shadow .3s, background-color .3s; }
.header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.plot { transition: border-color .2s, transform .25s var(--ease), background-color .2s; }
.plot:hover { transform: translateY(-3px); }
.plot.enter { animation: rise .45s var(--ease) both; animation-delay: calc(var(--d, 0) * 35ms); }
.unit-plan img, .p-gallery img, .about-media img { transition: transform .8s var(--ease), opacity .2s; }
.unit-plan:hover img { transform: scale(1.03); opacity: 1; }
.p-gallery button:hover img { transform: scale(1.04); opacity: 1; }
.btn { transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .2s; }
.btn-primary:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.link svg, .link { transition: text-decoration-color .15s, gap .2s var(--ease); }
.link:hover { gap: 10px; }
[role="tabpanel"]:not([hidden]), .price-gate, .price-timer, .done { animation: rise .4s var(--ease) both; }
.float-wa { transition: transform .25s var(--ease); }
.float-wa:hover { transform: scale(1.06); }
.compare.hint .handle, .compare.hint .before { transition: left 1s var(--ease), clip-path 1s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .intro { display: none !important; }
  .reveal, .m-on [data-enter] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ===== صور بتتحرك: سلايد شو في الهيرو + زووم بطيء (Ken Burns) على الصور الأساسية =====
   الحركة شغالة بس والصورة ظاهرة على الشاشة (.live من motion.js) */
.hero-media .slide { transition: opacity 1.4s ease; }
.hero-media .slide:not(:first-child) { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; min-height: 0; aspect-ratio: auto; opacity: 0; }
.hero-media .slide:first-child:not(.on) { opacity: 0; }
.hero-media .slide.on { opacity: 1; animation: kbA 7.5s linear both; }
.hero-media .slide:nth-child(even).on { animation-name: kbB; }
.hero-media figcaption { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); z-index: 2; }
.hero-media .cap { transition: opacity .4s; }
.hero-media .cap.swap { opacity: 0; }
.slide-nav { display: flex; gap: 6px; flex: none; direction: ltr; }
.slide-nav button { position: relative; width: 28px; height: 24px; padding: 0; }
.slide-nav button::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 3px; translate: 0 -50%; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.slide-nav button i { position: absolute; left: 0; top: 50%; height: 3px; width: 100%; translate: 0 -50%; border-radius: 2px; background: #fff; transform: scaleX(0); transform-origin: left; }
.slide-nav button.done i { transform: scaleX(1); }
.slide-nav button.on i { animation: slideBar var(--slide-ms, 6000ms) linear forwards; }
.hero-media.paused .slide-nav button.on i, .hero-media.paused .slide.on { animation-play-state: paused; }
@keyframes slideBar { to { transform: scaleX(1); } }

@keyframes kbA { from { scale: 1.02; translate: 0 0; } to { scale: 1.14; translate: -2.5% -1.5%; } }
@keyframes kbB { from { scale: 1.14; translate: 2% -1%; } to { scale: 1.03; translate: 0 0; } }
@keyframes kbSlow { from { scale: 1; translate: 0 0; } to { scale: 1.1; translate: -2% -1.5%; } }
@keyframes kbPan { from { scale: 1.12; translate: 3% 0; } to { scale: 1.12; translate: -3% -2%; } }

.offer-media img, .project-cover img, .p-gallery button:first-child img { animation: kbSlow 16s ease-in-out infinite alternate paused; }
.about-media img { animation: kbPan 22s ease-in-out infinite alternate paused; }
.about-img { overflow: hidden; border-radius: var(--r-md); background: var(--surface); }
:is(.offer-media, .project-cover, .p-gallery button, .about-media, .unit-plan).live img { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .hero-media .slide, .offer-media img, .p-gallery img, .about-media img, .unit-plan img, .slide-nav i { animation: none !important; }
}

/* =====================================================================
   الموبايل — تحسينات خاصة بالشاشات الصغيرة (V2)
   ===================================================================== */
@media (max-width: 760px) {
  :root { --header-h: 60px; --section: 52px; }
  .header-row { gap: var(--s-3); }
  .brand img { height: 32px; }
  .brand-text b { font-size: 17px; }
  .brand-text small { font-size: 12px; }
  .icon-btn { width: 42px; height: 42px; }

  /* شريط الإعلان: سطر واحد */
  .announce .container { flex-wrap: nowrap; min-height: 38px; padding-block: 4px; gap: var(--s-2); }
  .announce .terms { display: none; }
  .announce b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

  /* الهيرو: العنوان والزرار في أول شاشة */
  .hero { padding-top: var(--s-4); }
  .hero-grid { gap: var(--s-5); }
  .hero-media img { max-height: 32svh; }
  .hero-media figcaption { padding: 24px 12px 8px; justify-content: flex-start; }
  .hero-media .cap { display: none; }
  .slide-nav { margin-inline-start: auto; }
  .slide-nav button { width: 34px; height: 32px; }
  .hero .eyebrow { font-size: var(--fs-xs); margin-bottom: var(--s-2); }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: var(--fs-base); margin-top: var(--s-3); }
  .hero .actions { margin-top: var(--s-5); }
  .hide-sm { display: none !important; }

  .figures { margin-top: var(--s-6); }
  .figures > div { padding: var(--s-3) var(--s-3); }
  .figures dd { font-size: 26px; }
  .figures dt { font-size: var(--fs-xs); }

  .section-head { margin-bottom: var(--s-4); }
  .section-head h2 { font-size: 26px; }

  /* كروت المتاح للحجز */
  .offer-body { padding: var(--s-4); }
  .offer h3 { font-size: 24px; }
  .offer-terms { grid-template-columns: 1fr 1fr; margin: var(--s-4) 0; }
  .offer-terms > div, .offer-terms > div + div { border-inline-start: 0; padding-inline-start: 0; }
  .offer-terms > div:nth-child(even) { border-inline-start: 1px solid var(--border); padding-inline-start: var(--s-3); }
  .offer-promo .offer-terms > div:nth-child(even) { border-color: rgba(201, 163, 90, .3); }
  .offer-terms > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .offer-terms dd { font-size: 22px; }
  .offer-promo .offer-terms dd { font-size: 34px; }
  .offer .actions { flex-wrap: nowrap; }
  .offer .actions .btn, .hero .actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; }
  .offer-media img { aspect-ratio: 16 / 9; }
  .offer-ready .offer-body { gap: var(--s-3); }
  .promo-phones a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); }

  /* الفلتر: صف واحد بيتسحب بالعرض */
  .segmented { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .segmented::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .section-head > .segmented { width: 100%; }

  .reels-wrap { --rw: clamp(190px, 56vw, 240px); }
  .about-media img { aspect-ratio: 16 / 10; }
  .commit { gap: var(--s-4); }

  /* التواصل: العنوان والقيمة في نفس السطر */
  .contact-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: 12px 0; }
  .contact-list li > :last-child { text-align: left; }
  .contact-list .multi { justify-content: flex-end; }

  .footer { padding-top: var(--s-6); }
  .link { min-height: 40px; }
}

/* كروت المشاريع على الموبايل: صف أفقي (صورة + تفاصيل) بدل عمودين ضيقين */
@media (max-width: 560px) {
  .plots { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .plot { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: var(--s-3); row-gap: 2px; align-content: start; padding: var(--s-3); }
  .plot > :not(.plot-img) { grid-column: 2; }
  .plot-img { grid-column: 1; grid-row: 1 / span 6; margin: 0; width: 92px; height: 92px; aspect-ratio: auto; border-radius: var(--r-sm); align-self: start; }
  .plot-top { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 2px var(--s-3); }
  .plot h3 { font-size: var(--fs-lg); }
  .plot .status { font-size: var(--fs-xs); }
  .plot-area, .plot-terms { font-size: var(--fs-xs); }
  .plot-note { display: none; }
  .plot .link { position: absolute; inset: 0; padding: 0; min-height: 0; font-size: 0; }
  .plot { padding-inline-end: 30px; }
  .plot::after { content: "←"; position: absolute; inset-inline-end: 12px; top: 50%; translate: 0 -50%; color: var(--accent-text); font-weight: 700; }
  .plots.collapsed .plot:nth-child(n+7) { display: none; }
  #plots-more { margin-top: var(--s-3); }
  .plot:hover { transform: none; }

  .unit-info { gap: var(--s-3); }
  .unit-area b { font-size: 36px; }
  .terms dd { font-size: 44px; }
  .p-hero h1 { font-size: 30px; }
  .keyfacts dd { font-size: var(--fs-lg); }
}
