/* =========================================================
   شركة سهم — نظام التصميم
   الهوية مأخوذة من ملف الشعار: كحلي #1A3B6F · تيركواز #5BC2CB · نحاسي #C0A26B
   ========================================================= */

/* ---------------------------------------------------------
   الخطوط — محلية في assets/fonts (رخصة OFL معها)، لا من قوقل
   كل زائر كان يرسل عنوانه إلى خوادم خطوط قوقل — والسياسة تقول إن
   بيانات الزوار لا تذهب لطرف ثالث. وCSP صارت font-src 'self' وحدها.

   الأوجه الستة المستعملة فعلاً لا كل الأوزان (قيست بالمتصفح على كل الصفحات
   بالعربي والإنجليزي واللوحة): Tajawal 700 · 800، و IBM Plex Sans Arabic
   400 · 500 · 600 · 700. الوزن 600 في Tajawal يُعرض بوجه 700، و 800 في
   IBM Plex بوجه 700 — كما كان مع قوقل (مطابقة الخطوط تختار الأقرب).
   ⚠ وزن جديد في CSS لا وجه له يُعرض بأقرب وجه، لا يُحمَّل من مكان آخر.
   والملفات نفسها التي كان قوقل يقدّمها، مقسّمة بـ unicode-range: الصفحة
   العربية لا تحمّل ملفات اللاتينية إلا لما فيها من حروف لاتينية.
   --------------------------------------------------------- */
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-500-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-600-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/tajawal-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/tajawal-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/tajawal-800-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/tajawal-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* الألوان */
  --navy-900: #14304F;      /* أفتح من قبل — الفخامة في الهدوء لا العتمة */
  --navy-800: #1B3C68;
  --navy: #1A3B6F;          /* الكحلي من الشعار */
  --navy-600: #33578F;
  --navy-400: #7E9AC0;

  --brass: #C0A26B;
  --brass-soft: #E3D3AE;
  /* --brass بقنواته الثلاث (#C0A26B) — CSS لا يفكّ لون hex إلى قنوات،
     فهذا السطر يُحدَّث يدوياً مع --brass إن تغيّر */
  --brass-rgb: 192, 162, 107;
  --brass-dim: rgba(var(--brass-rgb), 0.18);

  --aqua: #5BC2CB;          /* التيركواز من الشعار */
  --aqua-deep: #2A929E;     /* نسخة أغمق للنصوص والروابط */
  --aqua-dim: rgba(91, 194, 203, 0.14);

  --bg: #F8F9FB;            /* خلفية أفتح وأهدأ */
  --tint: #F1F4F8;          /* تظليل خفيف للأقسام المتبادلة */
  --paper: #FFFFFF;
  --ink: #22303F;
  /* تباين 5.44:1 على --paper و 5.16:1 على --bg و 4.93:1 على --tint —
     فوق حد 4.5:1 للنص الصغير على كل خلفية فاتحة في الموقع. كان #7A8899
     (3.61:1) تحته في كل مكان. ⚠ لا يوضع على الكحلي: تباينه عليه 2:1. */
  --muted: #5E6B7A;
  --line: rgba(26, 59, 111, 0.09);
  --line-strong: rgba(26, 59, 111, 0.16);

  --ok: #1FA971;
  --warn: #D98324;
  --danger: #D64545;
  /* نص الخطأ — --danger نفسه 4.38:1 على الأبيض، تحت حد النص الصغير */
  --danger-ink: #A83232;
  --wa: #25D366;

  /* الظلال */
  --sh-sm: 0 1px 2px rgba(26, 59, 111, .04), 0 4px 16px rgba(26, 59, 111, .045);
  --sh-md: 0 2px 8px rgba(26, 59, 111, .05), 0 14px 40px rgba(26, 59, 111, .07);
  --sh-lg: 0 24px 64px rgba(26, 59, 111, .11);
  --sh-brass: 0 10px 30px rgba(192, 162, 107, .28);

  /* القياسات */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --wrap: 1200px;
  --gut: 26px;
  --head-h: 78px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ================= الأساس ================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: -webkit-fill-available;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--navy); color: #fff; }

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* شريط التمرير */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #E7ECF3; }
::-webkit-scrollbar-thumb { background: var(--navy-400); border-radius: 99px; border: 3px solid #E7ECF3; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ================= الطباعة ================= */
.display {
  font-family: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

h1, h2, h3, h4 { line-height: 1.35; font-weight: 600; }

/* عرض المحتوى = عرض الهيدر (--wrap). كان مقيّداً بـ 82ch (≈735px) فيظهر
   المحتوى في عمود ضيّق وسط الشاشة بينما الهيدر يمتد 1200px فوقه.
   قياس السطر محفوظ في عناصر النص نفسها (.sec-head p = 60ch،
   .cta p = 52ch، .footer__about = 40ch) فلا حاجة لتقييد الحاوية. */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* المقياسان أقل بالربع مما كانا (116 و 78 على الشاشة الكبيرة): القسمان
   المتجاوران يجمعان حشويهما، فكان بين «العقارات» و«المبيعات» 194px.
   تحت 900px تحكمها قيم ثابتة في قسم الجوال ولا تتأثر. */
.sec { padding-block: clamp(48px, 6.75vw, 87px); }
.sec--tight { padding-block: clamp(36px, 4.5vw, 58px); }

/* إيقاع واحد بين الأقسام: كل حد بين قسمين = حشو .sec + حشو .sec--tight
   (145px على 1440). الحالة الوحيدة الشاذة قسمان «ضيّقان» متجاوران —
   كانا يعطيان فراغاً أقصر من البقية — فيأخذ الثاني حشو .sec من أعلاه.
   الشاشة الكبيرة فقط: الجوال حشوه موحّد أصلاً. */
@media (min-width: 901px) {
  .sec--tight + .sec--tight { padding-block-start: clamp(48px, 6.75vw, 87px); }
}

/* رأس القسم */
.sec-head { margin-bottom: 44px; }
.sec-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy-400);
  margin-bottom: 10px;
}
.sec-head__kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brass);
  border-radius: 2px;
}
.sec-head h2 {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -.015em;
  color: var(--navy);
}
.sec-head p {
  margin-top: 10px;
  max-width: 60ch;
  color: var(--muted);
}
.sec-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ================= الأزرار ================= */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .96rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--brass { --btn-bg: var(--brass); --btn-fg: #10233B; }
.btn--brass:hover { box-shadow: var(--sh-brass); }
.btn--aqua { --btn-bg: var(--aqua); --btn-fg: #04212B; }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #fff; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--paper); border-color: var(--navy); }
.btn--on-dark {
  --btn-bg: rgba(255,255,255,.07);
  --btn-fg: #fff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.btn--on-dark:hover { background: rgba(255,255,255,.14); }
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* رابط بسهم */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
}
.arrow-link i {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: .3s var(--ease);
}
.arrow-link:hover i { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateX(-4px); }

/* الشارات */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.6;
  background: var(--navy);
  color: var(--paper);
}
.pill--brass { background: var(--brass); color: #10233B; }
.pill--ok { background: rgba(31,169,113,.13); color: #147B51; }
.pill--warn { background: rgba(217,131,36,.14); color: #A65E10; }
.pill--danger { background: rgba(214,69,69,.12); color: var(--danger-ink); }
.pill--muted { background: rgba(113,128,150,.14); color: var(--muted); }
.pill--glass {
  background: rgba(8,24,43,.62);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
}

/* ================= الهيدر ================= */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 900;
  height: var(--head-h);
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.header__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: 30px;
}
/* Balance header after removing extra CTAs */
.header__inner { justify-content: flex-start; }
.nav { margin-inline-start: 12px; }
.header__cta { margin-inline-start: auto; }

/* الشعار: صورة العميل. النسخة الفاتحة تظهر فوق الخلفيات الداكنة */
.logo { display: flex; align-items: center; flex: none; }
.logo img {
  height: 54px;
  width: auto;
  transition: height .35s var(--ease);
}
.logo__light { display: none; }
.logo__mark { display: grid; place-items: center; flex: none; }
.logo__mark img { height: 40px; }

/* نص بديل يُقرأ بقارئ الشاشة فقط */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 500;
  color: var(--navy);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 3px;
  inset-inline-start: 50%;
  translate: 50% 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--brass);
  transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { width: 22px; }
.nav a.is-active { font-weight: 600; }

.header__cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header__fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding-inline: 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.08);
  color: var(--navy);
  position: relative;
}
.header__fav svg { width: 17px; height: 17px; }
.header__fav-count {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding-inline: 4px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  font-size: .68rem;
  line-height: 1;
  font-weight: 700;
}
.header__fav.is-on { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); }
.header--over .header__fav { border-color: rgba(255,255,255,.3); color: #fff; }
.header.is-stuck .header__fav { border-color: var(--line-strong); color: var(--navy); }

/* الهيدر فوق واجهة داكنة */
.header--over { background: transparent; }
.header--over .nav a { color: #fff; }
.header--over .logo__dark { display: none; }
.header--over .logo__light { display: block; }
.header--over .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.3); }
.header--over .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* بعد التمرير */
.header.is-stuck {
  height: 68px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(11,27,46,.07);
}
.header.is-stuck .nav a { color: var(--navy); }
.header.is-stuck .logo__dark { display: block; }
.header.is-stuck .logo__light { display: none; }
.header.is-stuck .logo img { height: 48px; }
.header.is-stuck .btn--ghost { --btn-fg: var(--navy); border-color: var(--line-strong); }

/* ================= الواجهة الرئيسية ================= */
.hero {
  position: relative;
  /* تقلّصت مع المحتوى: min(94vh, 880px) ← 74vh/660 (بعد التنظيف) ←
     62vh/560 (زر بدل شريط البحث) ← 56vh/510 (بعد حذف السطر التعريفي).
     المحتوى محاذى لأسفل، فكلما قصر كبر الفراغ فوق العنوان — أي حذف
     جديد من الواجهة يستدعي مراجعة هذه القيمة. */
  min-height: min(56vh, 510px);
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--head-h) + 60px) 0;
  /* Darker at top, lighter at bottom using defined identity variables */
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 10px),
    linear-gradient(to bottom, var(--navy-900) 0%, var(--navy) 50%, var(--navy-600) 100%);
  overflow: hidden;
  color: #fff;
}

/* Two soft radial glows (aqua top-left, brass bottom-right) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: blur(64px);
  transform: scale(1.06);
  will-change: transform, opacity;
}
.hero::before {
  width: 70%; height: 70%;
  left: -8%; top: -12%;
  background: radial-gradient(circle at 10% 10%, #5BC2CB14 0%, transparent 40%);
  opacity: .95;
  animation: heroZoom 22s var(--ease) forwards;
}
.hero::after {
  width: 70%; height: 70%;
  right: -8%; bottom: -12%;
  background: radial-gradient(circle at 90% 90%, #C0A26B14 0%, transparent 40%);
  opacity: .95;
  animation: breathe 14s ease-in-out infinite;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gut) 46px;
}

/* Slightly softened text shadow to reduce perceived contrast */
.hero h1 { color: #fff; text-shadow: 0 6px 18px rgba(0,0,0,.38); }

.hero h1 {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 36ch;
  text-wrap: balance;
  -webkit-text-wrap: balance;
  /* العنوان يليه الزر مباشرة منذ حُذف السطر التعريفي، فالمسافة بينهما
     هنا — كانت 8px + السطر + 44px تحته (≈84px) */
  margin-bottom: 36px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brass-soft);
}

/* Spacing & floats */
#promos { padding-block-start: 48px; }
@media (max-width: 900px) { #promos { padding-block-start: 40px; } }

@media (min-width: 901px) {
  .wa-float { inset-block-end: 220px; }
  .to-top { inset-block-end: 220px; }
}
@media (min-width: 1400px) {
  .wa-float { inset-block-end: 320px; }
  .to-top { inset-block-end: 320px; }
}

/* Stats removed */

/* ================= بطاقة العقار ================= */
.grid-props {
  display: grid;
  /* 320 لا 260: بعد توسيع .wrap صار 260 يعطي أربعة أعمدة ضيّقة تُقصّ فيها
     العناوين الإنجليزية وينكسر سطر السعر. 320 يعطي ثلاثة أعمدة مريحة. */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

.card__media {
  position: relative;
  /* slightly wider ratio to reduce image height */
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-800);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale .7s var(--ease-out);
}
.card:hover .card__media img { scale: 1.05; }
.card__media::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(8,24,43,.6), transparent);
  pointer-events: none;
}

.card__badges {
  position: absolute;
  inset-block-start: 13px;
  inset-inline-start: 13px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.card__fav {
  position: absolute;
  inset-block-start: 13px;
  inset-inline-end: 13px;
  z-index: 2;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  box-shadow: var(--sh-sm);
  transition: .25s var(--ease);
}
.card__fav svg { width: 17px; height: 17px; }
.card__fav:hover { transform: scale(1.1); }
.card__fav.is-on { background: var(--danger); color: #fff; }
.card__fav.is-on svg { fill: currentColor; }

.card__loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .86rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.card__loc svg { width: 15px; height: 15px; flex: none; }

.card__link { position: absolute; inset: 0; z-index: 1; }
.card__fav, .card__actions { position: absolute; }
.card__actions { position: static; z-index: 2; }

/* ================= المبيعات ================= */
/* عدّاد القسم — العدد نفسه دليل نشاط، فيأخذ وزن العنوان لا وزن الحاشية */
.soldcount {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  color: var(--navy);
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper);
  white-space: nowrap;
}

/* البطاقة المباعة: تدرّج رمادي خفيف يميّزها ولا يخفي الصورة */
.card--sold .card__media img { filter: grayscale(.6) contrast(.96); }

/* ختم «مباع» في منتصف الصورة. التوسيط بـ inset + margin:auto لا
   بـ translate(-50%): الأخير مع inset-inline-start ينزاح في الواجهة
   العربية لأن البداية صارت يميناً. */
.soldstamp {
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  height: max-content;
  z-index: 2;
  pointer-events: none;
  padding: 5px 20px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--paper);
  border: 2px solid currentColor;
  border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--navy) 74%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 26%, transparent);
  transform: rotate(-8deg);
}
.soldstamp--lg { font-size: clamp(1.5rem, 4vw, 2.1rem); padding: 8px 30px; }

/* صفحة العقار المباع. الانتقاء مسبوق بـ .dbox لأن قاعدة «.dbox p»
   (صنف + عنصر) تأتي لاحقاً في الملف فتغلب «.soldnote p» */
.dbox .soldnote {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-inline-start: 3px solid var(--navy);
  border-radius: var(--r-sm);
  background: var(--tint);
}
.dbox .soldnote svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--navy); }
.dbox .soldnote b { display: block; color: var(--navy); font-weight: 700; }
.dbox .soldnote p { margin: 2px 0 0; font-size: .92rem; line-height: 1.8; color: var(--muted); }

/* ================= لماذا سهم ================= */
.why {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.why__visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--sh-lg);
}
.why__visual img { width: 100%; height: 100%; object-fit: cover; }
.why__float {
  position: absolute;
  inset-block-end: 22px;
  inset-inline-start: 22px;
  inset-inline-end: 22px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-md);
}
.why__float b { display: block; font-size: 1.1rem; color: var(--navy); }
.why__float span { font-size: .87rem; color: var(--muted); }

.why__list { display: grid; gap: 4px; margin-top: 28px; }
.why__item {
  display: flex;
  gap: 16px;
  padding: 18px 4px;
  border-top: 1px solid var(--line);
}
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__ico {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--navy);
  color: var(--brass-soft);
}
.why__ico svg { width: 21px; height: 21px; }
.why__item h3 { font-size: 1.04rem; margin-bottom: 2px; color: var(--navy); }
.why__item p { font-size: .92rem; color: var(--muted); line-height: 1.7; }

/* ================= الأحياء ================= */
.hoods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.hood {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy-800);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.hood:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.hood:nth-child(4) { grid-column: span 2; }
.hood img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale .8s var(--ease-out);
}
.hood::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,24,43,.85) 5%, rgba(8,24,43,.15) 60%);
  transition: background .4s var(--ease);
}
.hood:hover img { scale: 1.07; }
.hood:hover::after { background: linear-gradient(to top, rgba(8,24,43,.9) 5%, rgba(27,54,93,.4) 70%); }
.hood__txt { position: relative; z-index: 2; color: #fff; }
.hood__txt b { display: block; font-family: 'Tajawal', sans-serif; font-size: 1.5rem; font-weight: 700; }
.hood__txt span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ================= الخطوات ================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step {
  position: relative;
  padding: 34px 26px 28px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  counter-increment: s;
}
.step::before {
  content: "0" counter(s);
  position: absolute;
  inset-block-start: 22px;
  inset-inline-end: 24px;
  font-family: 'Tajawal', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  opacity: .08;
  line-height: 1;
}
.step__ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brass-dim);
  color: var(--navy);
  margin-bottom: 16px;
}
.step__ico svg { width: 21px; height: 21px; }
.step h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: .93rem; color: var(--muted); }

/* ================= آراء العملاء ================= */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  padding: 30px 26px;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
}
.quote__stars { display: flex; gap: 3px; color: var(--brass); margin-bottom: 14px; }
.quote__stars svg { width: 16px; height: 16px; fill: currentColor; }
.quote p { color: var(--ink); line-height: 1.85; flex: 1; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote__av {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--brass-soft);
  font-weight: 600;
  flex: none;
}
.quote__who b { display: block; font-size: .95rem; color: var(--navy); }
.quote__who span { font-size: .82rem; color: var(--muted); }

/* ================= نداء الإجراء ================= */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--navy);
  padding: clamp(38px, 6vw, 68px);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-start: -10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,.22), transparent 65%);
}
.cta::after {
  content: "";
  position: absolute;
  inset-block-end: -50%;
  inset-inline-end: -5%;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,162,107,.2), transparent 65%);
}
.cta > * { position: relative; z-index: 2; }
.cta h2 {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 10px;
}
.cta p { color: rgba(233,240,248,.76); max-width: 52ch; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ================= الفوتر ================= */
.footer {
  background: var(--navy-900);
  color: rgba(233,240,248,.68);
  padding-block: 42px 0;
  margin-top: 0;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 32px 40px;
  align-items: start;
  padding-bottom: 28px;
}
.footer__brand, .footer__info { min-width: 0; }
.footer .logo img { height: 50px; }
.footer__about { margin-top: 12px; font-size: .92rem; max-width: 40ch; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-size: .93rem; transition: .25s var(--ease); display: inline-block; }
.footer__links a:hover { color: var(--brass-soft); transform: translateX(-4px); }
.footer__contact { display: grid; gap: 9px; }
.footer__contact a, .footer__contact div { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; }
.footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--brass); }
.socials { display: flex; gap: 9px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.15);
  transition: .28s var(--ease);
}
.socials svg { width: 17px; height: 17px; }
.socials a:hover { background: var(--brass); color: #10233B; border-color: transparent; transform: translateY(-3px); }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-block: 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .86rem;
}
.footer__bar nav { display: flex; gap: 20px; }

/* ================= واتساب عائم ================= */
.wa-float {
  position: fixed;
  /* raised by default to keep clear of content */
  inset-block-end: 86px;
  inset-inline-start: 24px;
  inset-inline-end: auto;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding-inline: 17px;
  border-radius: var(--r-pill);
  background: var(--wa);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease-out); }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(37,211,102,.5); }
/* يختفي عند النزول ويعود عند الصعود (buildFloats في ui.js) */
.wa-float { transition: transform .3s var(--ease), opacity .3s var(--ease), box-shadow .3s var(--ease); }
.wa-float.is-away { transform: translateY(calc(100% + 28px)); opacity: 0; pointer-events: none; }
.wa-float:hover span { max-width: 170px; }

/* زر الأعلى */
.to-top {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  inset-inline-start: auto;
  z-index: 800;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: .35s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-600); }
.to-top svg { width: 19px; height: 19px; }

/* شريط تقدم القراءة */
.progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 950;
  background: linear-gradient(to left, var(--aqua), var(--brass));
  transform-origin: right center;
  scale: 0 1;
  transition: scale .1s linear;
}

/* ================= الحركات ================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* دخول الواجهة */
.hero__inner > * { animation: riseIn .9s var(--ease-out) both; }
.hero h1 { animation-delay: .22s; }
.hero__cta { animation-delay: .34s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ================= صفحة العقارات ================= */
.pagehead {
  background: var(--navy);
  color: #fff;
  padding-block: calc(var(--head-h) + 46px) 46px;
  position: relative;
  overflow: hidden;
}
.pagehead::after {
  content: "";
  position: absolute;
  inset-block-start: -60%;
  inset-inline-start: -6%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,.2), transparent 62%);
}
.pagehead__inner { position: relative; z-index: 2; }
.pagehead h1 {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.pagehead p { color: rgba(233,240,248,.72); max-width: 60ch; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: rgba(233,240,248,.6); margin-bottom: 14px; }
.crumbs a:hover { color: var(--brass-soft); }
.crumbs i { font-style: normal; opacity: .5; }

.layout-list {
  display: grid;
  grid-template-columns: 288px 1fr;
  gap: 28px;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--head-h) + 18px);
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.filters__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filters__head b { color: var(--navy); }
.filters__head button { font-size: .84rem; color: var(--aqua-deep); font-weight: 600; }
.filters__body { padding: 6px 20px 20px; max-height: min(66vh, 640px); overflow-y: auto; }
.fgroup { padding-block: 16px; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup > label, .fgroup__title {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.input, select.input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px var(--aqua-dim); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; background-size: 16px; padding-inline-start: 13px; padding-inline-end: 34px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: .85rem;
  color: var(--ink);
  transition: .22s var(--ease);
  cursor: pointer;
}
.chip:hover { border-color: var(--navy-400); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.check { display: flex; align-items: center; gap: 9px; padding-block: 5px; cursor: pointer; font-size: .91rem; }
.check input { width: 17px; height: 17px; accent-color: var(--navy); cursor: pointer; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 13px 18px;
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.toolbar__count { font-size: .92rem; color: var(--muted); }
.toolbar__count b { color: var(--navy); font-size: 1.06rem; }
.toolbar__right { display: flex; align-items: center; gap: 10px; }
.toolbar select { padding-block: 8px; font-size: .9rem; }

.viewtoggle { display: flex; gap: 3px; padding: 3px; background: var(--bg); border-radius: var(--r-sm); }
.viewtoggle button {
  width: 34px; height: 32px;
  display: grid; place-items: center;
  border-radius: 7px;
  color: var(--muted);
  transition: .22s var(--ease);
}
.viewtoggle button svg { width: 17px; height: 17px; }
.viewtoggle button.is-on { background: var(--paper); color: var(--navy); box-shadow: var(--sh-sm); }

.filters-toggle { display: none; }

.empty {
  padding: 70px 24px;
  text-align: center;
  background: var(--paper);
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
}
.empty svg { width: 54px; height: 54px; color: var(--navy-400); margin: 0 auto 16px; opacity: .5; }
.empty b { display: block; font-size: 1.15rem; color: var(--navy); margin-bottom: 5px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

/* هيكل التحميل */
.skel {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.skel__img { aspect-ratio: 4/3; }
.skel__line { height: 12px; border-radius: 6px; margin: 12px 18px; }
.skel__img, .skel__line {
  background: linear-gradient(100deg, #EDF1F6 30%, #F7F9FC 50%, #EDF1F6 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ================= صفحة التفاصيل ================= */
.detail { display: grid; grid-template-columns: 1fr 366px; gap: 30px; align-items: start; }

.gallery {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.gallery__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-block-end: 2px;
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-height: 440px;
}
.gallery__slide {
  position: relative;
  flex: 0 0 min(82%, 880px);
  border: 0;
  padding: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy-800);
  cursor: zoom-in;
  scroll-snap-align: start;
  box-shadow: var(--sh-sm);
}
.gallery__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: scale .6s var(--ease-out);
}
.gallery__slide:hover img { scale: 1.03; }
.gallery__meta {
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery__meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}

.dbox {
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 26px;
  margin-bottom: 20px;
}
.dbox h2 {
  font-size: 1.22rem;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dbox h2 svg { width: 20px; height: 20px; color: var(--brass); }
.dbox p { color: var(--ink); line-height: 1.95; }

.dtitle { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.dtitle h1 { font-family: 'Tajawal', sans-serif; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; color: var(--navy); line-height: 1.35; }
.dtitle .card__loc { margin-top: 5px; font-size: .95rem; }
.dprice { text-align: left; }
.dprice b { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--navy); }
.dprice span { font-size: .82rem; color: var(--muted); }

.keyspecs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.keyspec {
  padding: 14px 10px 12px;
  border-radius: var(--r-md);
  background: var(--bg);
  text-align: center;
  border: 1px solid transparent;
  transition: .25s var(--ease);
}
.keyspec:hover { border-color: var(--line-strong); background: var(--paper); }
.keyspec__ico {
  width: 34px; height: 34px;
  margin: 0 auto 7px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--brass-soft);
}
.keyspec__ico svg { width: 17px; height: 17px; }
.keyspec b { display: block; font-size: .95rem; color: var(--ink); }
.keyspec span { font-size: .76rem; color: var(--muted); line-height: 1.45; }

.spectable { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-sm); overflow: hidden; }
.spectable div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  background: var(--paper);
  font-size: .94rem;
}
.spectable div span { color: var(--muted); }
.spectable div b { color: var(--ink); font-weight: 600; text-align: left; }

.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.feat { display: flex; align-items: center; gap: 10px; font-size: .94rem; }
.feat i {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(31,169,113,.13);
  color: var(--ok);
  flex: none;
}
.feat i svg { width: 13px; height: 13px; stroke-width: 3; }

.mapbox { aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--bg); }
.mapbox__ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); gap: 8px; }
.mapbox__ph svg { width: 40px; height: 40px; opacity: .4; margin: 0 auto; }

/* البطاقة الجانبية */
.aside { position: sticky; top: calc(var(--head-h) + 18px); display: grid; gap: 18px; }
.agent {
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.agent__head {
  padding: 22px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
}
.agent__av {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--brass-soft);
  font-weight: 700;
  font-size: 1.1rem;
  flex: none;
}
.agent__head b { display: block; font-size: 1.05rem; }
.agent__head span { font-size: .84rem; color: rgba(233,240,248,.7); }
.agent__body { padding: 14px; display: grid; gap: 8px; }
.agent__note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 2px; }
.finance-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(var(--brass-rgb), .35);
  background: rgba(var(--brass-rgb), .08);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.6;
  text-align: start;
}

.share { display: flex; gap: 8px; }
.share button {
  flex: 1;
  padding: 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: .22s var(--ease);
}
.share button:hover { border-color: var(--navy); color: var(--navy); background: var(--bg); }
.share svg { width: 17px; height: 17px; }

/* معرض التكبير */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4,12,22,.94);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; border-radius: var(--r-md); object-fit: contain; }
.lightbox__x, .lightbox__nav {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  transition: .25s var(--ease);
}
.lightbox__x:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__x { inset-block-start: 22px; inset-inline-end: 22px; }
.lightbox__nav { inset-block-start: 50%; translate: 0 -50%; }
.lightbox__nav--prev { inset-inline-end: 22px; }
.lightbox__nav--next { inset-inline-start: 22px; }
.lightbox__nav svg, .lightbox__x svg { width: 21px; height: 21px; }
.lightbox__count { position: absolute; inset-block-end: 26px; color: rgba(255,255,255,.7); font-size: .9rem; }

/* ================= صفحات ثابتة ================= */
.prose { max-width: 72ch; }
.prose h2 { font-family: 'Tajawal', sans-serif; font-size: 1.7rem; color: var(--navy); margin: 34px 0 12px; }
.prose h3 { font-size: 1.14rem; color: var(--navy); margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; color: var(--ink); }
.prose ul { display: grid; gap: 9px; margin-bottom: 16px; }
.prose li { display: flex; gap: 10px; }
.prose li::before { content: "—"; color: var(--brass); flex: none; }
/* سياسة الخصوصية — نص قانوني طويل: عناوين أصغر من .prose العامة حتى لا تطغى */
.policy h2 { font-size: 1.28rem; margin: 30px 0 10px; }
.policy p, .policy li { line-height: 1.95; }
.policy__contact {
  display: grid; gap: 4px; margin: 4px 0 22px; padding: 16px 20px;
  font-style: normal; line-height: 1.8;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
}
.policy__contact b { color: var(--navy); }
.policy__contact a { color: var(--aqua-deep); font-weight: 600; unicode-bidi: isolate; }
.policy__updated { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.field { display: grid; gap: 6px; margin-bottom: 15px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
textarea.input { resize: vertical; min-height: 120px; line-height: 1.7; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 10px; }

.infocard {
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh-sm);
  display: flex;
  gap: 15px;
  margin-bottom: 14px;
}
.infocard__ico {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: var(--brass-soft);
}
.infocard__ico svg { width: 20px; height: 20px; }
.infocard b { display: block; color: var(--navy); margin-bottom: 3px; }
.infocard span, .infocard a { color: var(--muted); font-size: .94rem; }
.infocard a:hover { color: var(--aqua-deep); }
/* أيقونات التواصل داخل بطاقة فاتحة — حدود الفوتر البيضاء لا تظهر هنا،
   وتلوين .infocard a أعلاه لا يناسب زراً أيقونياً */
.infocard .socials { margin-top: 8px; flex-wrap: wrap; }
.infocard .socials a { border-color: var(--line); color: var(--navy); }
.infocard .socials a:hover { color: var(--navy); border-color: transparent; }

/* تنبيه */
.toast {
  position: fixed;
  inset-block-end: 28px;
  inset-inline-start: 50%;
  translate: 50% 0;
  z-index: 1100;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  font-size: .93rem;
  font-weight: 500;
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: .35s var(--ease-out);
}
.toast.is-on { opacity: 1; visibility: visible; transform: none; }
.toast svg { width: 18px; height: 18px; color: var(--brass-soft); }

/* ================= الاستجابة ================= */
@media (max-width: 1080px) {
  .layout-list { grid-template-columns: 1fr; }
  .filters {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(340px, 88vw);
    z-index: 950;
    border-radius: 0;
    max-height: none;
    transform: translateX(-100%);
    transition: transform .35s var(--ease);
    display: flex;
    flex-direction: column;
  }
  .filters.is-open { transform: none; }
  .filters__body { max-height: none; flex: 1; }
  .filters-toggle { display: inline-flex; }
  .detail { grid-template-columns: 1fr; }
  .aside { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav, .header__cta .btn--ghost { display: none; }
  .header__cta { margin-inline-start: auto; }
  .why { grid-template-columns: 1fr; }
  .why__visual { aspect-ratio: 16/10; }
  .steps, .quotes { grid-template-columns: 1fr; }
  .hoods { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .hoods .hood:nth-child(1) { grid-column: span 2; }
  .hoods .hood:nth-child(4) { grid-column: span 2; }
  .keyspecs { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gut: 18px; --head-h: 68px; }
  body { font-size: 15.5px; }
  /* stats removed */
  .grid-props { grid-template-columns: 1fr; gap: 12px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; align-items: center; text-align: center; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__col { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .gallery__side { aspect-ratio: 4/3; }
  .dbox { padding: 20px; }
  .wa-float { height: 52px; inset-block-end: 64px; inset-inline-start: 18px; inset-inline-end: auto; }
  .to-top { inset-block-end: 34px; inset-inline-end: 18px; inset-inline-start: auto; }
  .hero { min-height: auto; padding-block: calc(var(--head-h) + 46px) 0; }
  .hero__inner { padding-bottom: 36px; }
  .toolbar { padding: 12px 14px; }
}

@media print {
  .header, .footer, .wa-float, .to-top, .aside, .filters, .progress { display: none !important; }
  body { background: #fff; }
}

/* =========================================================
   تبديل اللغة والاتجاه
   ========================================================= */
.langswitch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  transition: .25s var(--ease);
  flex: none;
}
.langswitch::before {
  content: "";
  width: 15px; height: 15px;
  background: currentColor;
  opacity: .6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18a15 15 0 0 1 0-18'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18a15 15 0 0 1 0-18'/%3E%3C/svg%3E") center/contain no-repeat;
}
.langswitch:hover { border-color: var(--navy); background: var(--paper); }
.header--over .langswitch { color: #fff; border-color: rgba(255,255,255,.3); }
.header--over .langswitch:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.header.is-stuck .langswitch { color: var(--navy); border-color: var(--line-strong); }
.langswitch--block {
  width: 100%;
  justify-content: center;
  padding-block: 13px;
  color: #fff;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
}

/* الإنجليزية: الأرقام والمسافات */
html[lang="en"] body { line-height: 1.7; }
html[lang="en"] .display,
html[lang="en"] .hero h1,
html[lang="en"] .sec-head h2 { letter-spacing: -.015em; }

/* عناصر تعتمد على الاتجاه */
html[dir="ltr"] .filters { transform: translateX(100%); }
html[dir="ltr"] .filters.is-open { transform: none; }
html[dir="ltr"] .side { transform: translateX(100%); }
html[dir="ltr"] .side.is-open { transform: none; }
html[dir="ltr"] .footer__links a:hover { transform: translateX(4px); }
html[dir="ltr"] .arrow-link:hover i { transform: translateX(4px); }
html[dir="ltr"] .arrow-link i svg { rotate: 180deg; }
html[dir="ltr"] .progress { transform-origin: left center; }
html[dir="ltr"] .toast { translate: -50% 0; }
html[dir="ltr"] .dprice, html[dir="ltr"] .spectable div b { text-align: right; }
html[dir="ltr"] select.input { background-position: right 12px center; }

@media (max-width: 1080px) {
  html[dir="ltr"] .filters { transform: translateX(100%); }
  html[dir="ltr"] .filters.is-open { transform: none; }
}

/* =========================================================
   الشعار في صفحة عرض العقار
   ========================================================= */

/* علامة مائية على صورة المعرض — خافتة عشان ما تشوّه الصورة */
.watermark {
  position: absolute;
  inset-block-end: 16px;
  inset-inline-end: 18px;
  height: 46px;
  width: auto;
  opacity: .78;
  filter: drop-shadow(0 2px 6px rgba(4, 12, 22, .55));
  pointer-events: none;
  z-index: 2;
}

/* شعار الشركة في بطاقة المستشار */
.agent__logo {
  height: 46px;
  width: auto;
  flex: none;
}

/* print header and @media print removed (print action removed) */

@media (max-width: 640px) {
  .watermark { height: 32px; inset-block-end: 10px; inset-inline-end: 12px; }
  .agent__logo { height: 40px; }
}

/* =========================================================
   اللاندنق بيج: شريط الفلترة وقسم التواصل
   ========================================================= */

.filterbar {
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 18px 20px;
  margin-bottom: 26px;
}
.filterbar .chips { margin-bottom: 14px; }
.filterbar__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
}
.filterbar {
  display: flow-root;
}
.filterbar__row .input { padding-block: 10px; }
.filterbar__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--paper);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.loadmore { display: flex; justify-content: center; margin-top: 34px; }

/* قسم التواصل */
.contactgrid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 26px;
  align-items: start;
}
.contactgrid__info { display: grid; gap: 12px; }
.contactgrid__info .infocard { margin-bottom: 0; }
.contactgrid__map {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  min-height: 460px;
  background: var(--bg);
}
.contactgrid__canvas {
  position: absolute;
  inset: 0;
}

/* فوتر مبسّط — عمودان فقط: الهوية في جهة البداية والتواصل في الجهة المقابلة.
   العمود الثاني يأخذ عرض أطول سطر فيه (العنوان وأوقات العمل) فلا يلتفّان،
   والمسافة بينهما تتوزّع بالـ gap بدل ما تُترك فراغاً في طرف واحد. */
.footer--slim .footer__top {
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 26px clamp(30px, 4vw, 64px);
}
.footer--slim .footer__info { justify-self: end; }
.footer--slim .footer__contact span { text-wrap: pretty; }

@media (max-width: 900px) {
  .filterbar__row { grid-template-columns: 1fr 1fr; }
  .filterbar__row .btn { grid-column: span 2; }
  .contactgrid { grid-template-columns: 1fr; }
  .contactgrid__map { min-height: 320px; }
  .footer--slim .footer__top {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 24px clamp(24px, 4vw, 44px);
  }
}
/* يستقرّ عموداً واحداً مبكراً (760 لا 640) لأن عمودَي الفوتر يضيقان
   قبل نقطة الجوال المعتادة فيلتفّ العنوان وأوقات العمل */
@media (max-width: 760px) {
  .footer--slim .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .footer--slim .footer__info { justify-self: start; }
}

/* =========================================================
   الجوال واللمس — iOS و Android
   ========================================================= */

/* ارتفاع الشاشة الديناميكي: يعالج قفزة المحتوى عند اختفاء شريط سفاري */
@supports (height: 100dvh) {
  body { min-height: 100dvh; }
  .hero { min-height: min(56dvh, 510px); }
  .lightbox, .modal { height: 100dvh; }
}

/* إلغاء المربع الرمادي الذي يظهر عند اللمس في iOS */
a, button, select, input, textarea, label, .chip, .card {
  -webkit-tap-highlight-color: transparent;
}

/* منع تكبير الصفحة تلقائياً عند لمس الحقول في iOS.
   سفاري يكبّر الشاشة لأي حقل خطه أقل من 16px، فنثبّته على 16px. */
@media (max-width: 900px) {
  .input,
  select.input,
  textarea.input,
  .topbar__search input {
    font-size: 16px;
  }
}

/* مراعاة الحواف المنحنية وشريط الإيماءات في الآيفون */
@supports (padding: max(0px)) {
  .wa-float { inset-block-end: max(64px, env(safe-area-inset-bottom)); }
  .to-top { inset-block-end: max(40px, env(safe-area-inset-bottom)); }
  .footer__bar { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .modal__foot { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .wrap { padding-inline: max(var(--gut), env(safe-area-inset-left), env(safe-area-inset-right)); }
}

/* تكبير أهداف اللمس الصغيرة على الأجهزة اللمسية فقط،
   حتى لا تتضخم الواجهة على سطح المكتب */
@media (hover: none) and (pointer: coarse) {
  .card__fav { width: 44px; height: 44px; }
  .socials a { width: 44px; height: 44px; }
  .share button { padding-block: 14px; }
  .check { padding-block: 11px; }
  .check input { width: 22px; height: 22px; }
  .chip { padding: 10px 16px; }
  .nav a, .footer__links a { padding-block: 11px; }
  .arrow-link i { width: 38px; height: 38px; }

  /* الحد الأدنى 44px لكل هدف لمس — قيست هذه العناصر أقل منه على جهاز فعلي */
  .btn { min-height: 44px; }
  .header__fav { height: 44px; min-width: 44px; }
  .langswitch { min-height: 44px; min-width: 44px; justify-content: center; }

  /* إلغاء تأثيرات المرور التي تعلق على اللمس */
  .card:hover { transform: none; box-shadow: var(--sh-sm); }
  .card:hover .card__media img { scale: 1; }
  .btn:hover { transform: none; }
}

/* تمرير أنعم للقوائم داخل الأجهزة اللمسية */
.filters__body, .modal__body, .tablewrap, .side__nav {
  -webkit-overflow-scrolling: touch;
}

/* منع التمرير الأفقي غير المقصود */
/* clip لا hidden: hidden على html و body معاً يجعل body حاوية تمرير،
   فيتعطّل position: sticky بصمت (شريط البحث في properties.html). */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html { overflow-x: hidden; } }
.hero, .sec, .footer { max-width: 100vw; }

/* الآيباد الرأسي: صف الفلاتر عمودان بدل أربعة */
@media (min-width: 641px) and (max-width: 900px) {
  .filterbar__row { grid-template-columns: 1fr 1fr; }
  .grid-props { grid-template-columns: repeat(2, 1fr); }
  .keyspecs { grid-template-columns: repeat(4, 1fr); }
}

/* الشاشات الصغيرة جداً */
@media (max-width: 380px) {
  :root { --gut: 14px; }
  .hero h1 { font-size: 2.1rem; }
  .logo img { height: 38px; }
}

/* الوضع الأفقي على الجوال: تقليل ارتفاع الواجهة */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: calc(var(--head-h) + 30px) 0; }
  .hero__inner { padding-bottom: 26px; }
  .lightbox img { max-height: 74vh; }
}

/* =========================================================
   العروض
   ========================================================= */
.pill--sale {
  background: var(--danger);
  color: var(--paper);
  box-shadow: 0 2px 8px var(--line-strong);
}

/* شريحة «العروض»: حالة تسويقية لا نوع عقار، فتتميّز عن شرائح الأنواع
   بالنحاسي — خلفية خفيفة وحدّ واضح ونقطة — وبفاصل رفيع بعدها يعزل
   ما قبله (الكل · العروض) عن الأنواع. السلوك نفسه لم يتغيّر.
   الانتقاء .chip.chip--sale لأن قاعدة «.chip» لاحقة في الملف تعيد الحدّ والوزن.
   النص كحلي في الحالتين: الأبيض على النحاسي تباينه 2.44:1، والكحلي 5.51:1. */
.chip.chip--sale {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-end: 14px;
  background: color-mix(in srgb, var(--brass) 12%, var(--paper));
  border-color: var(--brass);
  color: var(--navy-900);
  font-weight: 600;
}
.chip.chip--sale::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass);
}
/* الفاصل: في منتصف المسافة بينها وبين أول نوع (14 هامش + 7 فجوة) */
.chip.chip--sale::after {
  content: "";
  position: absolute;
  inset-inline-end: -11px;
  inset-block: 20%;
  width: 1px;
  background: var(--line-strong);
  pointer-events: none;
}
.chip.chip--sale:hover { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 22%, var(--paper)); }
.chip.chip--sale.is-on { background: var(--brass); border-color: var(--brass); color: var(--navy-900); }
.chip.chip--sale.is-on::before { background: var(--navy-900); }

/* شريط سحب أفقي */
.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut);
  padding: 6px var(--gut) 26px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail__item {
  flex: 0 0 min(330px, 82vw);
  scroll-snap-align: start;
}
/* توسيط الشريط مع حاوية الصفحة على الشاشات الكبيرة */
@media (min-width: 1288px) {
  .rail { padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gut)); }
}

.rail__nav { display: flex; gap: 8px; }
.rail__btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  transition: .25s var(--ease);
}
.rail__btn svg { width: 19px; height: 19px; }
.rail__btn:hover:not(:disabled) { background: var(--navy); color: #fff; border-color: var(--navy); }
.rail__btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 900px) { .rail__nav { display: none; } }

/* شرائح قابلة للسحب على الجوال */
.chips--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--scroll .chip { flex: none; }
@media (min-width: 901px) { .chips--scroll { flex-wrap: wrap; overflow: visible; } }

/* =========================================================
   تحسينات الجوال — إعادة ضبط التجربة على الشاشات الصغيرة
   ========================================================= */
@media (max-width: 900px) {

  /* --- الواجهة: نسب أهدأ ومساحة أوضح --- */
  .hero { min-height: auto; }
  .hero__inner { padding-bottom: 30px; }
  .hero h1 {
    font-size: clamp(2.15rem, 8.5vw, 3.1rem);
    line-height: 1.2;
    max-width: 14ch;
    margin-bottom: 28px;
  }

  /* --- الأرقام: صف واحد قابل للسحب، أخف من مربعين × مربعين --- */

  /* --- الأقسام: مسافات أقل خنقاً --- */
  .sec { padding-block: 52px; }
  .sec--tight { padding-block: 42px; }
  .sec-head { margin-bottom: 26px; }
  .sec-head h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
  .sec-head p { font-size: .95rem; }

  /* --- شريط الفلترة: البحث والشرائح فوقه في .finder هي الملتصقة --- */
  .filterbar { padding: 12px 14px; }
  .filterbar__row { gap: 8px; }
  .filterbar__count { margin-top: 9px; font-size: .82rem; }


  /* --- القائمة الجانبية: أوضح وأسهل بالإبهام --- */

  /* --- التواصل --- */
  .infocard { padding: 16px 18px; gap: 13px; }
  .infocard__ico { width: 40px; height: 40px; }

  /* --- الفوتر --- */
  .footer { padding-block: 32px 0; }
  .footer__top { padding-bottom: 22px; }
  .footer .logo img { height: 50px; }
}

/* الأزرار العائمة: أصغر وألطف على الجوال */
@media (max-width: 640px) {
  .wa-float { height: 52px; padding-inline: 15px; }
  .wa-float span { display: none; }
  .to-top { width: 44px; height: 44px; }
  .sec { padding-block: 46px; }
}

/* شريط إجراءات ثابت أسفل صفحة العقار — جوال فقط */
.actionbar { display: none; }

@media (max-width: 900px) {
  .actionbar {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 810;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px var(--gut);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(11,27,46,.09);
    transform: translateY(105%);
    transition: transform .35s var(--ease-out);
  }
  .actionbar.is-on { transform: none; }
  .actionbar__price { flex: 1; min-width: 0; line-height: 1.25; }
  .actionbar__price b { display: block; font-size: 1.16rem; color: var(--navy); white-space: nowrap; }
  /* «يبدأ من» سطر صغير فوق السعر: بجانبه كان يكسر السعر نفسه على سطرين */
  .actionbar__from { display: block; font-style: normal; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--muted); }
  .actionbar__price span { font-size: .76rem; color: var(--muted); }
  .actionbar .btn { padding: 13px 22px; }

  /* إفساح مكان للشريط حتى لا يغطي الفوتر أو الأزرار العائمة */
  body:has(.actionbar) .footer { padding-bottom: 84px; }
  body:has(.actionbar) .wa-float { display: none; }
  body:has(.actionbar) .to-top { inset-block-end: max(88px, calc(env(safe-area-inset-bottom) + 78px)); }
}

/* الشاشات الضيقة (SE): مساحة أكثر للمحتوى داخل صناديق صفحة العقار */
@media (max-width: 380px) {
  .dbox { padding: 16px; }
  .unit { padding: 10px 12px; }
  .actionbar { gap: 10px; }
  .actionbar__price b { font-size: 1.05rem; }
  .actionbar .btn { padding: 12px 14px; }
}

/* =========================================================
   إصلاحات من اختبار الجوال الفعلي
   ========================================================= */

/* 1) الهيدر كان يفيض فيختفي زر القائمة تماماً.
   على الجوال نبقي: الشعار + اللغة + زر القائمة فقط. */
@media (max-width: 900px) {
  .header__inner { gap: 10px; }
  .header__cta { gap: 8px; }
  .header__cta .btn--brass { display: none; }
  .langswitch { padding: 10px 12px; font-size: .84rem; }
  .langswitch span { display: none; }
  .langswitch::before { opacity: .85; }
  .logo img { height: 40px; }
  .header.is-stuck .logo img { height: 36px; }
}

/* 2) العلامة المائية كانت تتمدد على كامل الصورة،
   لأن ‎.gallery img‎ أقوى في الأولوية من ‎.watermark‎ */
.gallery .watermark,
.gallery__main .watermark {
  width: auto;
  height: 46px;
  object-fit: contain;
  inset-block-start: auto;
}
@media (max-width: 640px) {
  .gallery .watermark, .gallery__main .watermark { height: 30px; }
}

/* 3) صف الفلاتر كان عموداً واحداً فيأكل الشاشة كاملة */
@media (max-width: 640px) {
  .filterbar__row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .filterbar__row .btn { grid-column: span 2; padding-block: 11px; }
  .filterbar__row .input { padding-block: 11px; font-size: 16px; }
  .filterbar { padding: 11px 12px 12px; }
}

/* 4) زر العودة للأعلى كان يغطي المحتوى في صفحة العقار */
@media (max-width: 900px) {
  .to-top { width: 42px; height: 42px; opacity: .92; }
  .to-top svg { width: 17px; height: 17px; }
}

/* 5) مؤشر التمويل بشكل موحّد بين المتصفحات */
input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--line-strong);
  appearance: none;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid #fff;
  box-shadow: var(--sh-sm);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid #fff;
  cursor: pointer;
}

/* على اللمس: صندوق المؤشر 24px فقط لأن ارتفاعه يتبع الإبهام، فنرفعه إلى 44
   وننقل المسار إلى العنصر الزائف حتى لا يسمن الشريط نفسه.
   لازم تأتي هذه الكتلة بعد القاعدة الأساسية أعلاه وإلا تجاوزتها. */
@media (hover: none) and (pointer: coarse) {
  input[type="range"] {
    height: 44px;
    background: transparent;
  }
  input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 99px;
    background: var(--line-strong);
  }
  input[type="range"]::-webkit-slider-thumb { margin-top: -9px; }
  input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 99px;
    background: var(--line-strong);
  }
}

/* 6) خريطة العقار داخل صفحة التفاصيل */

/* =========================================================
   إصلاحات الجولة الثانية من اختبار الجوال
   ========================================================= */

/* 1) زران عائمان على شاشة صغيرة ازدحام. سفاري في الآيفون
   يرجّع لأعلى بلمس شريط الحالة، فنستغني عن زر العودة. */
@media (max-width: 900px) {
  .to-top { display: none; }
}

/* 2) نص الإحصائيات كان يُقص ("سنة في السو") */
@media (max-width: 900px) {
}

/* 4) قائمة أنواع العقارات في الفوتر كانت ستة أسطر طويلة */
@media (max-width: 900px) {
  .footer__links { grid-template-columns: 1fr 1fr; gap: 4px 14px; }
  .footer__contact { gap: 9px; }
}

/* 5) زر واتساب العائم كان يغطي محتوى البطاقات */
@media (max-width: 900px) {
  .wa-float {
    height: 50px;
    padding-inline: 13px;
    box-shadow: 0 6px 18px rgba(37,211,102,.35), 0 0 0 4px rgba(255,255,255,.7);
  }
  .wa-float svg { width: 24px; height: 24px; }
}

/* =========================================================
   تحسين الأيقونات
   ========================================================= */
/* أيقونات ألطف: دائرة بلون خفيف وحلقة رفيعة بدل المربع الكحلي الثقيل */
.infocard__ico,
.why__ico,
.keyspec__ico,
.step__ico {
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(91,194,203,.16), rgba(26,59,111,.09));
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(26,59,111,.12);
}
.infocard__ico svg,
.why__ico svg,
.step__ico svg { stroke-width: 1.7; }

.step__ico { border-radius: 50%; }
.keyspec__ico {
  background: linear-gradient(145deg, rgba(91,194,203,.2), rgba(26,59,111,.1));
  color: var(--navy);
}

/* قسم "من نحن" بدون صورة: عمود واحد بعرض مريح */
.why--noimg { grid-template-columns: 1fr; max-width: 74ch; }

@media (max-width: 900px) {
  /* stats removed */
}

/* =========================================================
   مراجعة الفخامة: هدوء، بياض، وتفاصيل أدق
   ========================================================= */

.hero h1 em { color: #fff; position: relative; }
.hero h1 em { color: #fff; position: relative; }
.hero h1 em::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: .06em;
  height: 3px;
  border-radius: 3px;
  background: var(--brass);
  opacity: .9;
}

/* Stats styles removed */

/* ---- تفاصيل ترفع الإحساس العام ---- */
.sec-head__kicker {
  letter-spacing: .04em;
  font-size: .8rem;
  color: var(--brass);
}
.sec-head__kicker::before { width: 30px; background: var(--brass); opacity: .55; }
.sec-head p { font-size: 1.02rem; line-height: 1.8; color: var(--muted); }

/* بطاقات أهدأ: حد رفيع بدل ظل ثقيل */
.card {
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(26,59,111,.03);
  border-radius: 20px;
}
.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--sh-md);
}

/* شرائح وأزرار أنحف */
.chip { border-color: var(--line-strong); font-weight: 500; }
.btn { letter-spacing: -.01em; font-weight: 600; }
.btn--brass { box-shadow: 0 1px 2px rgba(192,162,107,.2); }

/* الحقول */
.input { border-color: var(--line-strong); border-radius: 12px; }
.input:focus { border-color: var(--navy-400); box-shadow: 0 0 0 3px rgba(26,59,111,.08); }

/* الأقسام: تبادل أهدأ بين الأبيض والتظليل الخفيف */
.sec--tight[style*="var(--paper)"] { background: var(--tint) !important; }
.filterbar { border: 1px solid var(--line); box-shadow: none; }
.infocard { border: 1px solid var(--line); box-shadow: none; }
.step { border-color: var(--line); border-radius: 20px; }
.step::before { opacity: .07; font-weight: 800; }

/* الفوتر: أفتح قليلاً، ومساحاته الرأسية مضبوطة على كمية محتواه */
.footer { background: var(--navy-900); }
.footer__top { padding-bottom: 26px; }

/* التذييل الجانبي في صفحة العقار */
.dbox { border: 1px solid var(--line); box-shadow: none; border-radius: 20px; }
.agent { border: 1px solid var(--line); box-shadow: var(--sh-md); }
.keyspec { background: var(--tint); border-radius: 16px; }

/* رأس الصفحات الداخلية أفتح */
.pagehead { background: var(--navy-800); }

/* stats removed */


/* =========================================================
   تحسينات المراجعة
   ========================================================= */

/* رابط تخطي للوصولية — يظهر عند التنقل بالكيبورد فقط */
.skip {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 1200;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  transition: inset-block-start .2s var(--ease);
}
.skip:focus { inset-block-start: 16px; }

/* شريحة المحفوظة */
.chip--fav { display: inline-flex; align-items: center; gap: 6px; }
.chip--fav svg { width: 14px; height: 14px; }
.chip--fav.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip--fav.is-on svg { fill: currentColor; }

/* شريط الترخيص في الفوتر — يظهر فقط عند توفر الأرقام */
.licence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-block: 16px;
  border-block-start: 1px solid rgba(255,255,255,.09);
  font-size: .84rem;
}
.licence span { display: flex; gap: 7px; align-items: center; }
.licence b { color: var(--brass-soft); font-weight: 600; letter-spacing: .01em; }

/* =========================================================
   الحزمة البصرية: خلفيات، أشكال، وحركات
   كل الحركات تعتمد transform و opacity فقط لأداء سلس،
   وتتوقف كلها عند تفعيل "تقليل الحركة" في النظام.
   ========================================================= */

/* ---------- 1. خلفيات ناعمة بأشكال ضوئية ---------- */
.sec { position: relative; }
.sec > .wrap { position: relative; z-index: 2; }

.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}
.bloom--aqua { background: radial-gradient(circle, rgba(91,194,203,.42), transparent 68%); }
.bloom--sand { background: radial-gradient(circle, rgba(203,184,148,.42), transparent 68%); }
.bloom--navy { background: radial-gradient(circle, rgba(26,59,111,.20), transparent 68%); }

/* حركة انسياب بطيئة جداً — تُحس ولا تُلاحظ */
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(3%, -4%, 0) scale(1.09); }
  100% { transform: translate3d(0,0,0) scale(1); }
}
.bloom--slow { animation: drift 26s ease-in-out infinite; }
.bloom--slower { animation: drift 38s ease-in-out infinite reverse; }

/* نقش شبكي خفيف يعطي عمقاً للخلفيات الفاتحة */
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26,59,111,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,59,111,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 78%);
          mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 78%);
}

/* ختم الشعار كعلامة مائية كبيرة */
.watermark-mark {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: -60px;
  translate: 0 -50%;
  width: min(420px, 38vw);
  opacity: .05;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* ---------- 2. الواجهة: عمق وحركة ---------- */
@keyframes breathe {
  0%, 100% { opacity: .75; }
  50% { opacity: 1; }
}

/* ---------- 3. البطاقات: لمعة تمر على الصورة ---------- */
.card__media::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  width: 55%;
  z-index: 2;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-16deg);
  opacity: 0;
  pointer-events: none;
}
.card:hover .card__media::before { animation: shine .85s var(--ease-out) forwards; }
@keyframes shine {
  0%   { inset-inline-start: -60%; opacity: 0; }
  25%  { opacity: 1; }
  100% { inset-inline-start: 115%; opacity: 0; }
}

/* بطاقات العروض: حد متوهج خفيف ينبض */
.rail__item {
  position: relative;
  box-shadow: 0 0 0 1px rgba(200,64,47,.16), var(--sh-sm);
  animation: promoPulse 3.6s ease-in-out infinite;
}
@keyframes promoPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(200,64,47,.16), var(--sh-sm); }
  50% { box-shadow: 0 0 0 2px rgba(200,64,47,.3), 0 10px 30px rgba(200,64,47,.12); }
}
.rail__item:hover { animation-play-state: paused; }

/* شارة الخصم تنبض بهدوء */
.pill--sale { animation: badgePop 2.8s ease-in-out infinite; }
@keyframes badgePop {
  0%, 92%, 100% { transform: scale(1); }
  96% { transform: scale(1.07); }
}

/* ---------- 4. ظهور متدرّج بأكثر من اتجاه ---------- */
.reveal--right { transform: translateX(28px); }
.reveal--left  { transform: translateX(-28px); }
.reveal--scale { transform: scale(.965); opacity: 0; }
.reveal--right.is-in, .reveal--left.is-in, .reveal--scale.is-in { transform: none; opacity: 1; }

/* ---------- 5. تفاعل الأزرار ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }

/* الشرائح ترتفع قليلاً عند التمرير */
.chip { transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease); }
.chip:hover { transform: translateY(-2px); }

/* ---------- 6. هيكل تحميل عند تغيير الفلاتر ---------- */
.grid-props.is-loading { opacity: .45; transition: opacity .18s ease; }

/* ---------- 7. أيقونات الأقسام تتحرك عند الظهور ---------- */
.why__item:hover .why__ico,
.step:hover .step__ico { transform: translateY(-3px) rotate(-4deg); }
.why__ico, .step__ico { transition: transform .4s var(--ease-out); }

/* ---------- احترام تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  .bloom--slow, .bloom--slower, .hero::before, .hero::after,
  .rail__item, .pill--sale { animation: none !important; }
  .card:hover .card__media::before { animation: none; opacity: 0; }
  .wa-float { transition: none; }
}

/* الأشكال الضوئية تخرج عن حدود القسم — نقصّها حتى لا تسبب تمريراً أفقياً */
.sec { overflow: clip; }
@supports not (overflow: clip) { .sec { overflow: hidden; } }

/* الواجهة تحتاج overflow مرئي للهيدر الثابت فوقها */
.hero { overflow: hidden; }

/* تخفيف الحركة والأشكال على الجوال حفاظاً على البطارية والأداء */
@media (max-width: 640px) {
  .bloom { filter: blur(50px); opacity: .4; }
  .bloom--slow, .bloom--slower { animation: none; }
  .watermark-mark { display: none; }
  .grid-bg::before { background-size: 40px 40px; }
  .rail__item { animation: none; }
}

/* =========================================================
   المشاريع والوحدات
   ========================================================= */
.pill--proj { background: var(--navy); color: var(--paper); }

/* وحدات المشروع — كرت ~90–115px (المرحلة ٣):
   ١ الاسم والمرجع … الحالة (شارة صغيرة)
   ٢ المساحة · الغرف · السعر … أيقونة واتساب
   ٣ الخصم والسعر القديم وملاحظته إن وُجد عرض
   الاستفسار أيقونة لا زر أخضر عريض — العريض واحد في الشريط السفلي. */
.units { display: grid; gap: 8px; }
.unit {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.unit:hover { border-color: var(--navy-400); }
/* البيع تعلنه الخلفية الرمادية وشارة «مباع» — لا تعتيم النص: اسم الوحدة
   المباعة وسعرها معلومة يقارن بها المشتري. كان opacity: .72 ينزل
   بالنص الثانوي إلى 2.94:1 وبالشارة إلى 3.14:1. */
.unit--sold { background: var(--tint); }
.unit__top, .unit__line, .unit__promo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
  line-height: 1.5;
}
.unit__top b { color: var(--navy); font-weight: 700; }
.unit__top small { color: var(--muted); font-size: 13px; }
.unit__top b { min-width: 0; }
.unit__top .pill { margin-inline-start: auto; }
.unit__line { font-size: 14px; color: var(--ink); min-height: 44px; }
.unit__line span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.unit__line svg { width: 15px; height: 15px; flex: none; color: var(--navy-400); }
.unit__line b { font-weight: 800; color: var(--navy); }
.unit__line b i { font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); }
.unit__promo { font-size: 13px; }
.unit__promo s { color: var(--muted); text-decoration-color: var(--brass); }
.unit__promo em { font-style: normal; color: var(--navy); font-weight: 600; }
.pill--sm { padding: 1px 9px; font-size: 13px; line-height: 1.6; }

/* الاستفسار: أيقونة واتساب في آخر سطر السعر لا زر عريض */
.unit__wa {
  margin-inline-start: auto;
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(37,211,102,.12);
  color: #128C4A;
  transition: background .2s var(--ease);
}
.unit__wa svg { width: 22px; height: 22px; }
.unit__wa:hover { background: rgba(37,211,102,.2); }
@media (hover: none) and (pointer: coarse) { .unit__wa { width: 44px; height: 44px; } }

/* أول ثلاث ظاهرة، والباقي خلف الزر */
.units.is-collapsed .unit:nth-child(n + 4) { display: none; }
.units__more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.units__more:hover { background: var(--tint); }


/* =========================================================
   هيكل التحميل — بنفس أبعاد البطاقة حتى لا تقفز الصفحة
   ========================================================= */
.skel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
}
.skel__media { aspect-ratio: 4 / 3; background: var(--tint); }
.skel__body { padding: 16px; display: grid; gap: 10px; }
.skel__body i { display: block; height: 12px; border-radius: 99px; background: var(--tint); }
.skel__body i.w60 { width: 60%; }
.skel__body i.w40 { width: 40%; }

.skel__media, .skel__body i {
  background-image: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,.65) 50%, transparent 100%);
  background-size: 220% 100%;
  animation: skelshine 1.3s linear infinite;
}
@keyframes skelshine { from { background-position: 220% 0; } to { background-position: -220% 0; } }

@media (max-width: 640px) { .skel__media { aspect-ratio: 16 / 11; } }
@media (prefers-reduced-motion: reduce) {
  .skel__media, .skel__body i { animation: none; background-image: none; }
}

/* صورة العقار البديلة — تُملأ بالكامل بلا اقتصاص مشوّه */
.card__media img.is-placeholder { object-fit: cover; }


/* =========================================================
   أرقام الواتساب العامة — واحد أو اثنان
   ========================================================= */
.walist { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.walist__item {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  min-height: 32px;
}
.walist__label { font-weight: 600; }
.walist__num {
  font-size: .86em; color: var(--muted);
  unicode-bidi: plaintext;
}
.walist__item + .walist__item {
  padding-top: 8px; border-top: 1px solid var(--line);
}

.wabtns { display: flex; flex-direction: column; gap: 8px; }
.wabtns .btn--block { margin: 0; }

@media (hover: none) and (pointer: coarse) {
  .walist__item { min-height: 44px; align-items: center; }
}




/* =========================================================
   شكل التطبيق — المرحلة ١
   القائمة السفلية، صفحات التبويب، شريط البحث الملتصق، حسابي،
   حاسبة الرئيسية. القائمة السفلية للجوال فقط (≤900px)، والهيدر
   بروابطه للشاشات الكبيرة فقط — نفس نقطة التحول، فلا يجتمعان.
   ========================================================= */
:root { --tab-h: 62px; }

/* العناصر ذات display صريح (.header__fav، .btn…) تتجاهل hidden بدونه */
[hidden] { display: none !important; }

/* ---------- القائمة السفلية ---------- */
.tabbar { display: none; }

@media (max-width: 900px) {
  .tabbar {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 850;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(var(--tab-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(11,27,46,.06);
  }
  .tabbar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 500;
    line-height: 1.2;
  }
  .tabbar__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar__ico { position: relative; display: grid; place-items: center; width: 24px; height: 24px; }
  .tabbar__ico svg { width: 23px; height: 23px; }
  /* الحالي: اللون والوزن، وشرطة نحاسية رفيعة فوقه */
  .tabbar__item.is-active { color: var(--navy); font-weight: 700; }
  .tabbar__item.is-active svg { stroke-width: 2.2; }
  .tabbar__item.is-active::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    margin-inline: auto;
    width: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--brass);
  }
  .tabbar__badge {
    position: absolute;
    inset-block-start: -6px;
    inset-inline-end: -11px;
    min-width: 18px;
    height: 18px;
    padding-inline: 4px;
    display: grid;
    place-items: center;
    border-radius: var(--r-pill);
    border: 2px solid var(--paper);
    background: var(--navy);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    line-height: 1;
  }

  /* آخر كرت لا يختفي تحت القائمة */
  body.has-tabbar { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }

  /* واتساب والتنبيه فوق القائمة لا تحتها */
  .has-tabbar .wa-float { inset-block-end: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); }
  .has-tabbar .toast { inset-block-end: calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px); }

  /* شريط إجراءات صفحة العقار يقف فوق القائمة، ويختفي خلفها */
  .has-tabbar .actionbar {
    inset-block-end: calc(var(--tab-h) + env(safe-area-inset-bottom));
    padding-bottom: 12px;
  }
  .has-tabbar .actionbar:not(.is-on) { visibility: hidden; }

  /* المفضلة في القائمة السفلية، فلا تتكرر في الهيدر */
  .header .header__fav { display: none; }
}

/* ---------- صفحات التبويب ---------- */
.apppage {
  min-height: 70vh;
  padding-block: calc(var(--head-h) + 26px) 64px;
}
.wrap--narrow { max-width: 680px; }
.apppage__head { margin-bottom: 18px; }
.apppage__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; }
.apppage__head h1 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  letter-spacing: -.015em;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.25;
  color: var(--navy);
}
@media (max-width: 900px) {
  .apppage { padding-block: calc(var(--head-h) + 18px) 40px; }
}

/* ---------- البحث والشرائح: ملتصقان تحت الهيدر ----------
   الهيدر في هذه الصفحات ثابت بحالة is-stuck (ارتفاعه 68px). */
.finder {
  position: sticky;
  top: 68px;
  z-index: 70;
  margin-inline: calc(var(--gut) * -1);
  margin-bottom: 14px;
  padding: 10px var(--gut) 11px;
  /* معتم: الشفافية كانت تُظهر «يعرض 3 من 3» و«مسح الكل» تحته */
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.finder__search { position: relative; display: block; }
.finder__search svg {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 15px;
  margin-block: auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.finder__search .input {
  height: 46px;
  padding-inline-start: 44px;
  border-radius: var(--r-pill);
  background: var(--paper);
}
.finder .chips { margin-top: 10px; }
.filterbar__count:empty { display: none; }
/* المبيعات: العدّاد مباشرة تحت الشريط بلا صندوق فلترة */
.finder + .filterbar__count { margin: 0 0 18px; }

/* ---------- حسابي ---------- */
.menu {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
}
/* الصف كله هدف الضغط، رابطاً كان أو زراً. سفاري يعطي <button>
   مظهره الأصلي وعرضاً بقدر محتواه ما لم يُلغَ صراحة. */
.menu__row {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.menu__row + .menu__row { border-top: 1px solid var(--line); }
.menu__row:hover { background: var(--tint); }
.menu__ico {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--tint);
  color: var(--navy);
}
.menu__ico svg { width: 19px; height: 19px; }
.menu__label { flex: 1; min-width: 0; font-weight: 600; color: var(--navy); }
.menu__val { color: var(--muted); font-size: .92rem; }
.menu__val--count {
  min-width: 26px; height: 26px;
  padding-inline: 8px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
}
.menu__chev { display: grid; color: var(--muted); }
.menu__chev svg { width: 18px; height: 18px; }
html[dir="ltr"] .menu__chev svg { rotate: 180deg; }

/* صفحة «قريباً» */
.soon { padding-block: 56px; text-align: center; }
.soon__ico { display: grid; place-items: center; margin: 0 auto 14px; width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--navy); }
.soon__ico svg { width: 28px; height: 28px; }
.soon b { font-size: 1.2rem; color: var(--navy); }

/* ---------- حاسبة التمويل في الرئيسية ---------- */
.fincalc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}
.fincalc .field:last-child { margin-bottom: 0; }
.fincalc label b { color: var(--aqua-deep); font-weight: 700; }
.fincalc__out { display: grid; align-content: start; gap: 12px; }
.fincalc .finance-note { margin: 0; }
@media (max-width: 760px) {
  .fincalc { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
}

@media print { .tabbar { display: none !important; } }

/* ---------- من نحن ----------
   نُقل من الرئيسية كما هو (.why)، والختم الخافت معه. الختم يخرج عن
   الحاوية فتُقص الصفحة أفقياً بـ clip. */
.apppage--about { position: relative; overflow: clip; }
.apppage--about > .wrap { position: relative; z-index: 1; }
.about__lead { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--navy); }
.aboutfacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 74ch;
  margin-top: 34px;
}
.aboutfacts .infocard { margin: 0; }
@media (max-width: 640px) {
  .aboutfacts { grid-template-columns: 1fr; gap: 10px; }
}

/* =========================================================
   المرحلة ٢ — الكرت المضغوط
   الهدف كرتان كاملان في 390×844 داخل سفاري:
     844 − 53 (iOS) − 100 (سفاري) = 691 ظاهر
     − 110 (البحث والشرائح، والهيدر يمرّ على الجوال) − 62 (القائمة السفلية)
     = 519 متاح ← الكرت ≤ (519 − 12) ÷ 2 = 253px. الهدف ≤ 240.
   الشارات كلها فوق الصورة. الصورة 150 والجسم ثلاثة أسطر لا تلتف:
   السعر · النوع: الاسم · الموقع والمواصفات. (كان سطرين بصورة 165، فلما
   عادت المدينة للموقع لم يبقَ للاسم في سطر واحد إلا ~70px.)
   ========================================================= */
.card__media { aspect-ratio: auto; height: 150px; }
@media (min-width: 641px) { .card__media { height: 200px; } }

.card__badges { inset-block-start: 10px; inset-inline-start: 10px; gap: 5px; }
.card__badges .pill { padding: 3px 10px; font-size: 13px; line-height: 1.5; }
.card__fav { inset-block-start: 10px; inset-inline-end: 10px; }

/* أسفل البداية: العد التنازلي أو «بيع قبل …» */
.card__corner {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(8,24,43,.62);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.card__corner svg { width: 14px; height: 14px; flex: none; }

/* أسفل النهاية: الرقم المرجعي على تدرّج الصورة */
.card__ref {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  /* isolate لا direction: ltr — الأخيرة تقلب inset-inline-end نفسها
     إلى اليمين فيقع الرقم فوق العد التنازلي */
  unicode-bidi: isolate;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.card__body { display: grid; gap: 2px; padding: 8px 12px 9px; }

/* السطر ١: السعر + القديم مشطوباً */
.card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  line-height: 1.3;
}
.card__price b { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.card__price b i { font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card__price s { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration-color: var(--brass); }

/* السطر ٢: النوع: الاسم — كتلة كاملة العرض تُقص بنقاط.
   ⚠ لا تجعلها عنصر flex يتغيّر عرضه بعد الرسم: سفاري في RTL لا يعيد
   حساب موضع النقاط، فيظهر «…س: تاون هاو» مقصوصاً من البداية. */
.card__name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
}
.card__name b { color: var(--navy); font-weight: 700; }

/* السطر ٣: المدينة — الحي · الغرف · المساحة · [الوحدات · دورات المياه] */
.card__meta, .scard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
  min-width: 0;
  /* سطر واحد بالضبط: ما يلتف يقع في سطر ثانٍ مخفي. أول عنصر (الموقع)
     لا يلتف أبداً، وما بعده يسقط من الآخر — دورات المياه ثم الوحدات.
     ⚠ لا تضع العناصر الاختيارية في صندوق داخلي بعنصر وهمي أول: سفاري
     لا يلفّ أول عنصر حقيقي بعده، فيظهر «3/» مقصوصاً. */
  height: 1.5em;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.card__m { flex: none; display: inline-flex; align-items: center; gap: 3px; }
.card__m svg { width: 14px; height: 14px; flex: none; color: var(--navy-400); }


/* ---------- كرت المبيعات: أفقي ومطفأ وللعرض فقط ---------- */
.grid-props.grid-sold { grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 901px) { .grid-props.grid-sold { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.scard {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--tint);
}
.scard__thumb {
  position: relative;
  flex: none;
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-800);
}
/* الرمادي على الصورة وحدها — النص يبقى بتباينه (لا opacity على نص) */
.scard__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.92); }
.scard__ago {
  position: absolute;
  inset-inline: 4px;
  inset-block-end: 4px;
  padding: 1px 4px;
  border-radius: var(--r-pill);
  background: rgba(8,24,43,.74);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scard__body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.scard__price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; white-space: nowrap; line-height: 1.4; }
.scard__price b { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; color: var(--muted); }
.scard__price b i { font-style: normal; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.scard__ref { direction: ltr; font-size: 13px; color: var(--muted); }
/* الاسم لا يُقص: نص الكرت ~200px فقط على 320، فالطويل يلتف لسطر ثانٍ
   ويطول كرته (~130px) بدل أن يضيع جزء من الاسم */
.scard__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.scard__name b { color: var(--muted); font-weight: 600; }
/* «مشروع» فوق الصورة المصغّرة لا في سطر الاسم — يوفّر عرض الاسم */
.scard__tag {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-start: 4px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- البحث والشرائح أضغط، والهيدر يمرّ على الجوال ----------
   في العقارات والمبيعات على الجوال لا يبقى الهيدر ثابتاً: يمرّ مع
   الصفحة، ويلتصق البحث والشرائح وحدهما أعلى الشاشة (كما في وحدات).
   الشعار وزر اللغة يظهران عند الرجوع للأعلى، واللغة في «حسابي». */
@media (max-width: 900px) {
  body[data-list] .header { position: absolute; }
  body[data-list] .finder { top: 0; padding-block: max(8px, env(safe-area-inset-top)) 6px; }
  .finder__search .input { height: 42px; }
  .finder .chips { margin-top: 6px; }
}

/* =========================================================
   الخريطة — Leaflet (map.js)
   خريطة properties.html: عرض ثانٍ لنتيجة الفلترة نفسها، تملأ ما تحت
   الشريط الملتصق (.finder) وفوق القائمة السفلية. وخريطة صفحة العقار
   داخل .mapbox. لا خريطة في sold.html.
   ========================================================= */

/* Leaflet يرتّب طبقاته بـ z-index حتى 1000 — بلا سياق تكديس خاص كانت
   أزراره تعلو الهيدر والقائمة السفلية والشريط الملتصق عند التمرير.
   وكل مواضعه فيزيائية (left/top)، فالاتجاه داخله LTR دائماً؛ الدبوس
   يحمل dir لغته بنفسه. */
.leaflet-container {
  isolation: isolate;
  direction: ltr;
  font-family: inherit;
  background: var(--tint);
}
.leaflet-container a { color: var(--aqua-deep); }
.leaflet-control-attribution { font-size: 11px; }

/* ---------- الدبوس: السعر مختصراً ---------- */
.mpin-wrap { background: none; border: 0; }
.mpin-wrap:focus { outline: none; }
.mpin {
  position: absolute;
  left: 0;
  bottom: 9px;
  translate: -50% 0;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(11, 27, 46, .28), 0 0 0 2px var(--paper);
  cursor: pointer;
  transition: background-color .2s var(--ease), scale .2s var(--ease);
}
/* الذيل يشير للنقطة نفسها */
.mpin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% -1px;
  border: 6px solid transparent;
  border-top-color: var(--navy);
  border-bottom-width: 0;
}
.mpin.is-on { background: var(--aqua-deep); scale: 1.08; }
/* ملصق الدبابيس المتراكبة: أبيض بحد كحلي، يُميَّز عن السعر بنظرة */
.mpin--group { background: var(--paper); color: var(--navy); box-shadow: 0 3px 10px rgba(11, 27, 46, .22), inset 0 0 0 2px var(--navy); }
.mpin.is-on::after { border-top-color: var(--aqua-deep); }
.mpin-wrap:focus-visible .mpin { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* دبوس صفحة العقار: أيقونة لا سعر — السعر في الصفحة نفسها */
.mpin--dot {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: default;
}
.mpin--dot svg { width: 20px; height: 20px; }

/* دبوس المكتب في الرئيسية: الأيقونة واسم المكتب (map_label) */
.mpin--office {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 14px;
  cursor: default;
}
.mpin--office svg { flex: none; width: 18px; height: 18px; }
/* الحاوية بلا عرض (iconSize: null) فيضغط flex النص ويقص آخر حرف */
.mpin--office { width: max-content; }
.mpin--office span { flex: none; }

/* ---------- خريطة صفحة العقار ---------- */
.mapbox__map { position: absolute; inset: 0; }

/* ---------- خريطة العقارات ---------- */
.mapview {
  display: flex;
  flex-direction: column;
  /* الهيدر الثابت 68 + الشريط + هامش يتسع للزر تحت الملاحظة */
  height: calc(100dvh - 68px - var(--finder-h, 130px) - 90px);
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
}
.mapview__stage { position: relative; flex: 1; min-height: 0; }
.mapview__map { position: absolute; inset: 0; }
/* سطر «4 من 5 عقارات لها موقع» — ارتفاع ثابت يرفع الزر فوقه بالضبط */
.mapview__note {
  flex: none;
  height: 34px;
  padding-inline: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- بطاقة الدبوس ---------- */
.mapcard {
  --card-b: 16px;
  position: absolute;
  z-index: 2;
  inset-inline: 12px;
  inset-block-end: var(--card-b);
  max-width: 440px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh-lg);
  opacity: 0;
  translate: 0 10px;
  transition: opacity .22s var(--ease), translate .22s var(--ease-out);
}
.mapcard.is-on { opacity: 1; translate: 0 0; }
.mapcard__link {
  display: flex;
  gap: 12px;
  padding: 10px;
  padding-inline-end: 42px;
  color: inherit;
}
.mapcard__link img {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--tint);
}
.mapcard__body { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.mapcard__price { color: var(--navy); font-size: 16px; font-weight: 700; }
.mapcard__price i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); }
.mapcard__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mapcard__name b { color: var(--muted); font-weight: 600; }
.mapcard__loc { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.mapcard__loc svg { flex: none; width: 15px; height: 15px; }
.mapcard__x {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 4px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.mapcard__x svg { width: 18px; height: 18px; }

/* ---------- زر التبديل: «الخريطة» / «القائمة» ----------
   عائم في المنتصف كما في وحدات. التوسيط بـ inset-inline + margin
   auto لا بإزاحة 50٪، فلا يحتاج معالجة للاتجاه. */
.maptoggle {
  position: fixed;
  z-index: 820;
  inset-inline: 0;
  inset-block-end: 26px;
  margin-inline: auto;
  width: max-content;
  height: 46px;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(11, 27, 46, .28), 0 0 0 3px rgba(255, 255, 255, .75);
  cursor: pointer;
}
.maptoggle svg { width: 20px; height: 20px; }
.maptoggle:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

/* على الكمبيوتر الخريطة تنتهي قبل أسفل الشاشة بـ 90px، فالزر تحتها لا فوقها */

@media (max-width: 900px) {
  /* الهيدر يمرّ هنا (body[data-list]) والشريط عند top: 0؛ الخريطة تملأ
     ما بينه وبين القائمة السفلية، بعرض الشاشة كاملاً */
  .mapview {
    height: calc(100dvh - var(--finder-h, 110px) - var(--tab-h) - env(safe-area-inset-bottom));
    min-height: 300px;
    margin-inline: calc(var(--gut) * -1);
    border: 0;
    border-radius: 0;
  }
  /* البطاقة مثبّتة بالشاشة فوق الزر، لا بأسفل الخريطة: لو مُرّرت الصفحة
     ولو قليلاً نزل أسفل الخريطة تحت الزر وواتساب والقائمة السفلية */
  .mapcard {
    position: fixed;
    z-index: 810;
    inset-inline: 10px;
    --card-b: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px + 44px + 10px);
  }
  body.map-noted .mapcard { --card-b: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px + 34px + 44px + 10px); }
  .has-tabbar .maptoggle { inset-block-end: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); }
  body.has-tabbar.is-map.map-noted .maptoggle { inset-block-end: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px + 34px); }
  .maptoggle { height: 44px; padding-inline: 18px; font-size: 14px; }
}

@media (max-width: 380px) {
  .mapcard__link img { width: 76px; height: 76px; }
}

@media print { .maptoggle, .mapview { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .mapcard, .mpin { transition: none; }
}


/* =========================================================
   نموذج العملاء قبل واتساب (lead.js) — المرحلة ٥-ب
   ورقة من الأسفل على الجوال، ونافذة في الوسط على الشاشات الأكبر.
   زر «تخطَّ» بحجم زر الإرسال وحدٍّ كحلي واضح — لا رابط باهت صغير.
   ========================================================= */
html.lead-open { overflow: hidden; }
.leadsheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  align-items: end;
  justify-items: center;
}
.leadsheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 46, .5);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.leadsheet__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--paper);
  box-shadow: var(--sh-lg);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .25s var(--ease), transform .3s var(--ease-out);
}
.leadsheet.is-on .leadsheet__scrim { opacity: 1; }
.leadsheet.is-on .leadsheet__box { opacity: 1; transform: none; }
@media (min-width: 641px) {
  .leadsheet { align-items: center; padding: 24px; }
  .leadsheet__box { padding-bottom: 22px; border-radius: var(--r-lg); }
}

.leadsheet h2 {
  padding-inline-end: 40px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  letter-spacing: -.015em;
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--navy);
}
.leadsheet__p { margin: 6px 0 16px; color: var(--muted); font-size: .93rem; line-height: 1.7; }
.leadsheet__x {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.leadsheet__x svg { width: 20px; height: 20px; }
.leadsheet .field { margin-bottom: 12px; }
.leadsheet .field > span { font-size: .88rem; font-weight: 600; color: var(--navy); }
/* 16px على كل الشاشات — سفاري يكبّر الصفحة لأي حقل أصغر */
.leadsheet .input { font-size: 16px; }
#leadPhone { text-align: start; unicode-bidi: plaintext; }

/* الفخّ: خارج الشاشة لا display:none — بعض البوتات تتجاهل الحقول المخفية صراحةً */
.leadsheet__hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.leadsheet__consent {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 4px;
  font-size: .93rem;
  line-height: 1.65;
  color: var(--ink);
}
.leadsheet__consent label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.leadsheet__consent input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); }
.leadsheet__consent a { color: var(--aqua-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.leadsheet__err { margin-top: 10px; color: var(--danger-ink); font-size: .9rem; font-weight: 600; line-height: 1.6; }
.leadsheet__err:empty { display: none; }

.leadsheet__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.leadsheet__acts .btn { min-height: 50px; padding: 12px 14px; white-space: normal; text-align: center; line-height: 1.35; }
.leadsheet__skip {
  --btn-bg: var(--paper);
  --btn-fg: var(--navy);
  border: 1.5px solid var(--navy);
}
/* المعطّل يُعلَن بخلفية ولون من المتغيّرات لا بـ opacity (قاعدة التباين) */
.leadsheet__send:disabled {
  --btn-bg: var(--tint);
  --btn-fg: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
@media (max-width: 380px) {
  .leadsheet__acts { grid-template-columns: 1fr; }
}

/* ---------- «حسابي»: الترحيب وصف التسجيل ---------- */
.menu__sub { display: block; margin-top: 2px; color: var(--muted); font-size: .84rem; font-weight: 400; }
.acchello {
  margin-bottom: 16px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}
.acchello b {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  letter-spacing: -.015em;
  font-size: 1.35rem;
  color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  .leadsheet__scrim, .leadsheet__box { transition: none; }
}
