/* ==========================================================
   مأمن للتطوير العقاري والمقاولات — الأنماط المشتركة
   الألوان مأخوذة من الملف التعريفي: أصفر السلامة + الفحمي + كهرماني الشعار
   ========================================================== */
:root {
  --yellow: #ffde58;
  --yellow-2: #f5ca2a;
  --yellow-soft: #fff5c9;
  --ink: #24211d;
  --ink-2: #3a362f;
  --slate: #544a3b;
  --amber: #e69916;
  --amber-soft: #fbeccf;
  --clay: #cd6928;
  --brown: #794900;
  --steel: #2f5568;
  --steel-soft: #e2ecf1;
  --concrete: #edede9;
  --concrete-2: #e2e2dd;
  --paper: #ffffff;
  --line: #dad9d3;
  --line-2: #c7c5bd;
  --text: #24211d;
  --text-2: #524e47;
  --muted: #75716a;
  --ok: #2b7549;
  --ok-soft: #e0f0e5;
  --warn: #8f5b00;
  --warn-soft: #fcefd3;
  --bad: #b42318;
  --bad-soft: #fbe5e2;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(36, 33, 29, 0.06);
  --sh-2: 0 2px 4px rgba(36, 33, 29, 0.05), 0 12px 28px rgba(36, 33, 29, 0.08);
  --sh-3: 0 24px 60px rgba(36, 33, 29, 0.24);
  --f-display: 'Reem Kufi', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --hazard: repeating-linear-gradient(-45deg, var(--ink) 0 9px, var(--yellow) 9px 18px);
  --wrap: 1200px;
  --gutter: 20px;
  color-scheme: light;
}

/* ---------- الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.mono { font-family: var(--f-mono); font-size: 0.92em; letter-spacing: 0.02em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.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; }
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- الأزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.72em 1.25em; border-radius: var(--r-sm); border: 1.5px solid transparent; font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s; white-space: nowrap; background: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-2); border-color: var(--yellow-2); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-danger { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-sm { padding: 0.5em 0.9em; font-size: 0.875rem; }
.btn-lg { padding: 0.9em 1.6em; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 0; background: transparent; cursor: pointer; color: inherit; flex: none; }
.icon-btn:hover { background: rgba(36, 33, 29, 0.07); }
.icon-btn .i { width: 22px; height: 22px; }
.link-btn { background: none; border: 0; padding: 0 0 2px; font-weight: 600; color: var(--ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; border-bottom: 2px solid var(--yellow-2); text-decoration: none; align-self: flex-start; }
.link-btn:hover { border-bottom-color: var(--ink); }
.link-quiet { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: inherit; }

/* ---------- الشارات ---------- */
.badge { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.18em 0.65em; border-radius: 999px; font-size: 0.78rem; font-weight: 600; line-height: 1.55; background: var(--concrete); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ''; width: 0.48em; height: 0.48em; border-radius: 50%; background: currentColor; }
.badge--plain::before { display: none; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--info { background: var(--steel-soft); color: var(--steel); }
.badge--yellow { background: var(--yellow); color: var(--ink); }
.badge--dark { background: var(--ink); color: #fff; }
.badge--muted { background: var(--concrete); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.2em 0.65em; border-radius: var(--r-sm); background: var(--concrete); font-size: 0.8rem; font-weight: 600; color: var(--text-2); }

/* ---------- النماذج ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.req { color: var(--clay); }
.input, .select, .textarea { width: 100%; padding: 0.68em 0.85em; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; min-height: 46px; transition: border-color 0.15s, box-shadow 0.15s; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.select { appearance: none; -webkit-appearance: none; padding-left: 2.4em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324211d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 16px; background-position: left 0.8em center; }
input[type='date'].input, input[type='number'].input, input[type='tel'].input { text-align: right; }
.hint { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.err { font-size: 0.82rem; color: var(--bad); display: none; font-weight: 500; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--bad); }
.field.invalid .err { display: block; }
.form-grid { display: grid; gap: 18px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.5em 1em; border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.9rem; font-weight: 500; background: #fff; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.choice:hover span { border-color: var(--line-2); }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.choice input[type='checkbox']:checked + span::before { content: '✓'; font-weight: 700; color: var(--yellow); }

/* ---------- رأس الموقع ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.mark { width: 40px; height: auto; flex: none; object-fit: contain; }
.brand__logo { display: grid; place-items: center; flex: none; }
.brand__logo img { height: 50px; width: auto; display: block; }
.brand--dark .brand__logo { background: #efede0; border-radius: 10px; padding: 5px 7px; }
.brand--dark .brand__logo img { height: 40px; }
.brand__txt { display: grid; line-height: 1.15; }
.brand__txt b { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; }
.brand__txt small { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.site-nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.site-nav a { padding: 0.45em 0.8em; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; color: var(--text-2); font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); background: var(--concrete); }
.site-nav a[aria-current='page'] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--yellow-2); border-radius: 0; }
.site-nav .nav-extra { display: none; }
.site-header__actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; }
@media (max-width: 1020px) {
  .site-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: #fff; padding: 10px var(--gutter) 18px; border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8em 0.6em; border-bottom: 1px solid var(--concrete); border-radius: 0; }
  .site-nav a[aria-current='page'] { box-shadow: inset -4px 0 0 var(--yellow-2); }
  .site-nav .nav-extra { display: flex; gap: 8px; align-items: center; }
  .menu-btn { display: inline-grid; }
  .site-header__in { justify-content: space-between; }
  .site-header__actions .btn-ghost { display: none; }
}
@media (max-width: 520px) {
  .site-header__actions .btn-primary { display: none; }
}

/* ---------- الأقسام والطباعة ---------- */
.section { padding-block: clamp(56px, 8vw, 100px); }
.section--concrete { background: var(--concrete); }
.section--dark { background: var(--ink); color: #e9e6df; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55em; font-size: 0.86rem; font-weight: 600; color: var(--brown); }
.eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--amber); border-radius: 2px; }
.section--dark .eyebrow { color: var(--yellow); }
.display { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.22; }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.3; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.14rem); color: var(--text-2); max-width: 60ch; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head > div { display: grid; gap: 10px; }
.section-head p { max-width: 58ch; color: var(--text-2); }
.section-head .filter-chips { display: flex; }
.section--dark .section-head p, .section--dark .lead { color: #c9c4ba; }

/* ---------- لوحة المشروع (العنصر المميز) ---------- */
.signboard { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 4px; position: relative; }
.signboard__stripe { height: 12px; background: var(--hazard); border-bottom: 3px solid var(--ink); }
.signboard__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; }
.signboard__head .mark { width: 30px; color: var(--ink); }
.signboard__title { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.signboard__live { margin-inline-start: auto; font-size: 0.76rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.signboard__live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(43, 117, 73, 0.2); }
.signboard__rows { padding: 2px 16px 6px; display: grid; }
.signboard__rows div { display: flex; gap: 10px; align-items: baseline; font-size: 0.9rem; padding: 6px 0; border-bottom: 1.5px dashed rgba(36, 33, 29, 0.32); }
.signboard__rows dt { color: rgba(36, 33, 29, 0.72); white-space: nowrap; }
.signboard__rows dd { margin: 0 auto 0 0; font-weight: 700; text-align: left; }
.signboard__progress { padding: 10px 16px 14px; display: grid; gap: 6px; }
.signboard__progress .top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 0.9rem; }
.signboard__progress .top b { font-size: 1.7rem; line-height: 1; }
.sb-bar { height: 10px; background: rgba(36, 33, 29, 0.16); border-radius: 4px; overflow: hidden; }
.sb-bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.signboard__legs { position: absolute; top: 100%; right: 20%; left: 20%; height: 44px; border-inline: 9px solid var(--ink); }

/* ---------- الواجهة الرئيسية ---------- */
.hero { padding-block: clamp(28px, 5vw, 60px) clamp(64px, 8vw, 100px); position: relative; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: clamp(64px, 8vw, 100px); background: var(--concrete); z-index: -1; border-top: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__copy .display { margin: 16px 0 20px; }
.hl { background: linear-gradient(transparent 60%, var(--yellow) 60% 90%, transparent 90%); padding-inline: 0.06em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero__note { margin-top: 26px; display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 0.88rem; color: var(--text-2); }
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note .i { color: var(--amber); }
.hero__visual { position: relative; min-height: 560px; }
.hero__photo { position: absolute; top: 0; right: 0; bottom: 110px; left: 70px; border-radius: var(--r-lg); overflow: hidden; background: var(--concrete-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual .signboard { position: absolute; left: 0; bottom: 44px; width: min(360px, 78%); box-shadow: var(--sh-3); }
.hero__visual .sign-caption { position: absolute; right: 0; bottom: 14px; max-width: 200px; font-size: 0.82rem; color: var(--text-2); line-height: 1.5; }
.hero__visual .sign-caption a { font-weight: 700; color: var(--ink); }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 520px; }
}
@media (max-width: 560px) {
  .hero__visual { min-height: 0; display: grid; gap: 0; }
  .hero__photo { position: relative; inset: auto; height: 260px; }
  .hero__visual .signboard { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 12px 44px; }
  .hero__visual .sign-caption { position: static; max-width: none; margin-top: 4px; }
}

/* القسمان */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.door { display: grid; grid-template-rows: 250px auto; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s; }
.door:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.door__media { position: relative; overflow: hidden; }
.door__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.door:hover .door__media img { transform: scale(1.03); }
.door__media .badge { position: absolute; top: 16px; right: 16px; }
.door__body { padding: 22px 26px 26px; display: grid; gap: 12px; align-content: start; }
.door h3 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; }
.door ul { list-style: none; display: grid; gap: 7px; font-size: 0.95rem; color: var(--text-2); }
.door li { display: flex; gap: 8px; align-items: flex-start; }
.door li .i { color: var(--amber); margin-top: 0.3em; }
.door__go { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; border-bottom: 2px solid var(--yellow-2); justify-self: start; margin-top: 6px; }
@media (max-width: 820px) { .doors { grid-template-columns: 1fr; } .door { grid-template-rows: 200px auto; } }

/* الرحلة: من الطلب إلى التسليم */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.step { padding-inline-end: 18px; display: grid; gap: 10px; align-content: start; }
.step__n { display: flex; align-items: center; gap: 10px; }
.step__n b { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 1.3rem; background: #fff; border: 2px solid var(--ink); flex: none; }
.step__n::after { content: ''; flex: 1; height: 2px; background: repeating-linear-gradient(to left, var(--line-2) 0 6px, transparent 6px 12px); }
.step:last-child .step__n::after { display: none; }
.step--platform .step__n b { background: var(--yellow); }
.step h3 { font-size: 1.05rem; font-weight: 700; }
.step p { font-size: 0.92rem; color: var(--text-2); }
.step__tag { font-size: 0.74rem; font-weight: 700; color: var(--brown); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { grid-template-columns: 46px 1fr; gap: 0 14px; padding: 0; }
  .step__n { grid-row: span 3; flex-direction: column; align-self: stretch; }
  .step__n::after { width: 2px; height: auto; min-height: 18px; background: repeating-linear-gradient(to bottom, var(--line-2) 0 6px, transparent 6px 12px); }
  .step p { padding-bottom: 22px; }
}

/* معاينة البوابة */
.portal-preview { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.pp-points { list-style: none; display: grid; gap: 18px; margin-top: 28px; }
.pp-points li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.pp-points .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 222, 88, 0.14); color: var(--yellow); }
.pp-points b { color: #fff; display: block; margin-bottom: 2px; }
.pp-points p { color: #bdb8ae; font-size: 0.93rem; }
.pp-stage { position: relative; }
.pp-stage .report { box-shadow: var(--sh-3); color: var(--text); }
.pp-stage__label { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 0.85rem; color: #bdb8ae; }
@media (max-width: 900px) { .portal-preview { grid-template-columns: 1fr; } }

/* معرض الأعمال */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.work { position: relative; border-radius: var(--r); overflow: hidden; border: 0; padding: 0; cursor: zoom-in; background: var(--concrete-2); display: block; width: 100%; text-align: right; }
.work--wide { grid-column: span 2; }
.work--tall { grid-row: span 2; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.work:hover img { transform: scale(1.04); }
.work__cap { position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(20, 18, 15, 0.8)); color: #fff; font-size: 0.86rem; line-height: 1.45; display: grid; }
.work__cap b { font-size: 0.98rem; }
.work__cap span { opacity: 0.85; }
@media (max-width: 900px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }
@media (max-width: 520px) { .works { grid-auto-rows: 150px; gap: 8px; } .work--tall { grid-row: span 1; } }

/* من نحن والشهادات */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.values { display: grid; gap: 20px; margin-top: 26px; }
.value { border-inline-start: 3px solid var(--yellow-2); padding-inline-start: 16px; }
.value h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.value p { color: var(--text-2); font-size: 0.94rem; }
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cert { text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 14px; cursor: zoom-in; text-align: right; display: grid; gap: 10px; transition: box-shadow 0.2s; }
.cert:hover { box-shadow: var(--sh-2); }
.cert img { width: 100%; height: 130px; object-fit: cover; object-position: top; border-radius: 6px; background: var(--concrete); }
.cert b { font-size: 0.92rem; line-height: 1.45; }
.cert small { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* شريط الدعوة */
.cta-band { background: var(--yellow); }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 44px; }
.cta-band h2 { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
.cta-band p { color: rgba(36, 33, 29, 0.78); margin-top: 4px; }

/* ---------- التذييل ---------- */
.site-footer { background: var(--ink); color: #cfcbc3; padding: 56px 0 24px; font-size: 0.93rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand__txt small { color: #a19b90; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px; }
.foot-about p { margin-top: 16px; max-width: 38ch; color: #b3aea4; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.foot-links { list-style: none; display: grid; gap: 9px; }
.foot-links a, .foot-links span { color: #cfcbc3; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.foot-links a:hover { color: #fff; }
.foot-links .i { color: var(--yellow); }
.foot-links--plain li { color: #b3aea4; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 40px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: #9c978d; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- رأس الصفحات الداخلية ---------- */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, rgba(36, 33, 29, 0.96) 30%, rgba(36, 33, 29, 0.55)); }
.page-hero .container { padding-block: 52px 46px; }
.crumbs { font-size: 0.85rem; color: #bdb8ae; display: flex; gap: 8px; align-items: center; }
.crumbs a { color: #bdb8ae; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.page-hero h1 { font-family: var(--f-display); font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; margin: 10px 0 12px; line-height: 1.25; }
.page-hero p { color: #d8d4cc; max-width: 64ch; font-size: 1.05rem; }
.subnav { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.subnav a { padding: 0.5em 1.05em; border: 1.5px solid rgba(255, 255, 255, 0.28); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.subnav a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ---------- تشييد المقاولات ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.svc__ic { width: 46px; height: 46px; border-radius: 10px; background: var(--yellow-soft); display: grid; place-items: center; color: var(--brown); }
.svc__ic .i { width: 24px; height: 24px; }
.svc h3 { font-size: 1.05rem; font-weight: 700; }
.svc p { font-size: 0.9rem; color: var(--text-2); flex: 1; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }

.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pkg { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.pkg--featured { border: 2px solid var(--ink); box-shadow: var(--sh-2); }
.pkg__flag { position: absolute; top: -13px; right: 22px; }
.pkg h3 { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; }
.pkg__blurb { color: var(--text-2); font-size: 0.93rem; }
.pkg__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 12px 0; border-block: 1px dashed var(--line-2); }
.pkg__price b { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.pkg__price span { color: var(--muted); font-size: 0.9rem; }
.pkg ul { list-style: none; display: grid; gap: 8px; font-size: 0.93rem; }
.pkg li { display: flex; gap: 8px; }
.pkg li .i { color: var(--ok); margin-top: 0.3em; }
.pkg .btn { margin-top: auto; }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr; } }

.calc { margin-top: 20px; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.calc h3 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 14px; }
.calc .label { color: #fff; }
.calc .input, .calc .select { background-color: #fff; color: var(--ink); }
.calc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc__out { border-inline-start: 1px solid rgba(255, 255, 255, 0.16); padding-inline-start: 28px; display: grid; gap: 8px; }
.calc__out small { color: #bdb8ae; }
.calc__out b { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--yellow); }
@media (max-width: 800px) { .calc { grid-template-columns: 1fr; } .calc__out { border: 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); } }
@media (max-width: 460px) { .calc__fields { grid-template-columns: 1fr; } }

.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fs { border: 0; margin: 0; padding: 26px 28px; border-bottom: 1px solid var(--line); min-width: 0; }
.fs__head { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.fs__n { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 0.95rem; }
.fs__head h3 { font-size: 1.12rem; font-weight: 700; }
.fs__head p { font-size: 0.85rem; color: var(--muted); }
.form-foot { padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fafaf8; flex-wrap: wrap; }
.aside-stack { display: grid; gap: 16px; position: sticky; top: 92px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.aside-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 12px; }
.mini-steps { list-style: none; display: grid; gap: 12px; counter-reset: ms; }
.mini-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 0.9rem; color: var(--text-2); counter-increment: ms; }
.mini-steps li::before { content: counter(ms); width: 26px; height: 26px; border-radius: 50%; background: var(--concrete); display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; color: var(--ink); }
.mini-steps li.hl-step::before { background: var(--yellow); }
.mini-steps b { color: var(--ink); display: block; }
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 28px 18px; text-align: center; background: #fafaf8; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; display: grid; gap: 6px; justify-items: center; }
.dropzone:hover, .dropzone.drag { border-color: var(--amber); background: var(--yellow-soft); }
.dropzone .i { width: 34px; height: 34px; color: var(--amber); }
.dropzone b { font-size: 1rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 14px; }
.thumbs:empty { display: none; }
.thumb { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--file { display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; padding: 8px; font-size: 0.74rem; line-height: 1.35; word-break: break-word; }
.thumb--file .i { width: 26px; height: 26px; color: var(--clay); }
.thumb__x { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(36, 33, 29, 0.82); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; }
.thumb__x .i { width: 14px; height: 14px; }
.success-card { padding: 40px 32px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.success-card__ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.success-card__ic .i { width: 32px; height: 32px; }
.ref-box { font-family: var(--f-mono); font-size: 1.3rem; background: var(--yellow); padding: 0.3em 0.9em; border-radius: 6px; border: 2px dashed var(--ink); direction: ltr; }
.track-result { margin-top: 12px; font-size: 0.9rem; }
@media (max-width: 980px) { .quote-layout { grid-template-columns: 1fr; } .aside-stack { position: static; } }
@media (max-width: 560px) { .fs { padding: 22px 18px; } .form-foot { padding: 18px; } }

/* ---------- التطوير العقاري ---------- */
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: -38px; position: relative; z-index: 2; box-shadow: var(--sh-2); }
.filters .label { font-size: 0.8rem; color: var(--text-2); }
.filters-toggle { display: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 30px 0 16px; flex-wrap: wrap; }
.results-bar b { font-size: 1.05rem; }
.results-bar .select { width: auto; min-height: 40px; padding-block: 0.4em; }
.props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.prop { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s; }
.prop:hover { box-shadow: var(--sh-2); }
.prop__media { position: relative; aspect-ratio: 4 / 3; border: 0; padding: 0; cursor: pointer; display: block; width: 100%; background: var(--concrete); overflow: hidden; }
.prop__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.prop:hover .prop__media img { transform: scale(1.03); }
.prop__media .badge { position: absolute; top: 12px; right: 12px; }
.prop__count { position: absolute; bottom: 10px; left: 10px; background: rgba(36, 33, 29, 0.78); color: #fff; font-size: 0.75rem; border-radius: 6px; padding: 2px 8px; display: inline-flex; gap: 5px; align-items: center; }
.prop--sold .prop__media img { filter: grayscale(0.7); }
.prop__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prop__type { font-size: 0.8rem; color: var(--brown); font-weight: 700; }
.prop h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.45; }
.prop h3 a { text-decoration: none; color: inherit; }
.prop h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow-2); text-decoration-thickness: 2px; }
.prop__loc { color: var(--muted); font-size: 0.88rem; display: flex; gap: 5px; align-items: center; }
.specs { display: flex; gap: 6px 16px; flex-wrap: wrap; list-style: none; margin-top: 4px; font-size: 0.88rem; color: var(--text-2); }
.specs li { display: inline-flex; gap: 5px; align-items: center; }
.specs .i { color: var(--muted); }
.prop__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.price small { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.empty { text-align: center; padding: 48px 20px; color: var(--text-2); display: grid; gap: 10px; justify-items: center; }
.empty > .i { width: 42px; height: 42px; color: var(--line-2); }
.empty h3 { font-size: 1.1rem; color: var(--ink); }
@media (max-width: 1060px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .props { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -28px; }
  .filters .f-search { grid-column: 1 / -1; }
  .filters.collapsed > :not(.f-search):not(.filters-toggle) { display: none; }
  .filters-toggle { display: inline-flex; grid-column: 1 / -1; }
  .props { grid-template-columns: 1fr; }
}

/* تفاصيل العقار */
.pd { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; }
.gal__main { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--concrete); border: 0; padding: 0; width: 100%; cursor: zoom-in; display: block; }
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.gal__thumbs a { width: 76px; height: 58px; flex: none; border-radius: 6px; overflow: hidden; border: 2px solid transparent; display: block; cursor: pointer; background: var(--concrete); }
.gal__thumbs a[aria-current='true'] { border-color: var(--ink); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { display: grid; gap: 16px; align-content: start; }
.pd__title { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; line-height: 1.35; }
.pd__price { background: var(--concrete); border-radius: var(--r); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd__price b { font-size: 1.6rem; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-grid div { padding: 9px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; font-size: 0.88rem; }
.spec-grid div:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.spec-grid div:nth-last-child(-n + 2) { border-bottom: 0; }
.spec-grid span { color: var(--muted); }
.spec-grid b { font-weight: 600; text-align: left; }
.features { display: flex; flex-wrap: wrap; gap: 8px; }
.feature { display: inline-flex; gap: 6px; align-items: center; background: var(--yellow-soft); padding: 0.3em 0.75em; border-radius: 999px; font-size: 0.85rem; }
.feature .i { color: var(--ok); }
.pd__section h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.pd__book { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.pd__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 860px) { .pd { grid-template-columns: minmax(0, 1fr); } }

/* ---------- نوافذ الحوار ---------- */
dialog.dlg { border: 0; padding: 0; border-radius: var(--r-lg); width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: var(--sh-3); color: var(--text); background: #fff; overflow: hidden; flex-direction: column; }
dialog.dlg[open] { display: flex; }
dialog.dlg--lg { width: min(1080px, calc(100vw - 24px)); }
dialog.dlg--sm { width: min(440px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(20, 18, 15, 0.62); }
.dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 12px; padding-inline-start: 22px; border-bottom: 1px solid var(--line); flex: none; }
.dlg__title { font-size: 1.1rem; font-weight: 700; }
.dlg__body { padding: 22px; overflow: auto; }
.dlg__body:focus { outline: none; }
.dlg__foot { display: flex; gap: 10px; padding-top: 20px; flex-wrap: wrap; }
@media (max-width: 560px) { .dlg__body { padding: 16px; } }

dialog.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 14, 12, 0.95); color: #fff; }
dialog.lb::backdrop { background: transparent; }
.lb__stage { position: absolute; inset: 60px 70px 64px; display: grid; place-items: center; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb__close { position: absolute; top: 12px; left: 12px; color: #fff; }
.lb__nav { position: absolute; top: 50%; translate: 0 -50%; color: #fff; width: 48px; height: 48px; background: rgba(255, 255, 255, 0.08); border-radius: 50%; }
.lb__prev { right: 14px; }
.lb__next { left: 14px; }
.lb__cap { position: absolute; bottom: 20px; inset-inline: 16px; text-align: center; font-size: 0.9rem; color: #d8d3ca; }
.icon-btn.lb__close:hover, .lb__nav:hover { background: rgba(255, 255, 255, 0.16); }
@media (max-width: 560px) { .lb__stage { inset: 56px 8px 70px; } .lb__nav { top: auto; bottom: 12px; translate: none; } }

/* ---------- رسائل منبثقة ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; translate: -50% 0; z-index: 1000; display: grid; gap: 8px; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r); box-shadow: var(--sh-3); display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; line-height: 1.55; animation: toast-in 0.25s ease; pointer-events: auto; }
.toast .i { margin-top: 0.2em; }
.toast--ok .i { color: #86d9a3; }
.toast--bad { background: var(--bad); }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ==========================================================
   التقرير اليومي والتعليقات — مشترك بين الرئيسية والبوابة
   ========================================================== */
.report { display: grid; grid-template-columns: 86px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.report__date { background: var(--concrete); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 18px 6px; gap: 2px; text-align: center; }
.report__date b { font-size: 2.1rem; line-height: 1; font-weight: 700; }
.report__date span { font-size: 0.86rem; font-weight: 600; }
.report__date small { font-size: 0.74rem; color: var(--muted); }
.report__date--today { background: var(--yellow); }
.report__date--today small { color: var(--ink); }
.report__main { padding: 18px 22px 20px; min-width: 0; }
.report__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.report__head h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.45; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.84rem; color: var(--muted); margin-top: 6px; }
.meta > span { display: inline-flex; gap: 5px; align-items: center; }
.report__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.report h4 { font-size: 0.84rem; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.checklist { list-style: none; display: grid; gap: 6px; font-size: 0.93rem; }
.checklist li { display: flex; gap: 8px; line-height: 1.6; }
.checklist .i { color: var(--ok); margin-top: 0.25em; }
.checklist--plan .i { color: var(--steel); }
.issue { margin-top: 14px; display: flex; gap: 10px; background: var(--warn-soft); color: #5e3d00; border-radius: var(--r-sm); padding: 10px 12px; font-size: 0.9rem; line-height: 1.6; }
.issue .i { margin-top: 0.25em; color: var(--warn); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 16px; }
.photos a { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; display: block; cursor: zoom-in; background: var(--concrete); }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.report__prog { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--text-2); }
.report__prog .meter { flex: 1; max-width: 220px; }
.thread { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.thread__head { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; }
.thread__head h4 { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.cmts { display: grid; gap: 10px; }
.cmt { display: flex; gap: 10px; align-items: flex-start; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; flex: none; background: var(--concrete-2); color: var(--ink); }
.avatar--client { background: var(--yellow); }
.avatar--engineer { background: var(--steel); color: #fff; }
.avatar--owner { background: var(--ink); color: var(--yellow); }
.cmt__body { background: var(--concrete); border-radius: 12px; border-start-start-radius: 3px; padding: 8px 12px 10px; min-width: 0; flex: 1; max-width: 680px; }
.cmt--engineer .cmt__body { background: var(--steel-soft); }
.cmt--owner .cmt__body { background: #f3efe6; }
.cmt__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.8rem; }
.cmt__head b { font-size: 0.88rem; }
.cmt__head time { color: var(--muted); margin-inline-start: auto; }
.role { font-size: 0.7rem; padding: 0.05em 0.5em; border-radius: 4px; font-weight: 700; }
.role--client { background: var(--yellow); color: var(--ink); }
.role--engineer { background: var(--steel); color: #fff; }
.role--owner { background: var(--ink); color: var(--yellow); }
.cmt p { font-size: 0.93rem; margin-top: 3px; white-space: pre-wrap; line-height: 1.65; }
.cmt-form { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.cmt-form .textarea { min-height: 46px; height: 46px; padding-block: 0.6em; }
.cmt-form .btn { min-height: 46px; }
.meter { height: 8px; border-radius: 4px; background: var(--amber-soft); overflow: hidden; position: relative; min-width: 60px; }
.meter > i { display: block; height: 100%; background: var(--amber); border-radius: 4px; }
.meter--ok { background: var(--ok-soft); }
.meter--ok > i { background: var(--ok); }
.meter--bad { background: var(--bad-soft); }
.meter--bad > i { background: var(--bad); }
@media (max-width: 640px) {
  .report { grid-template-columns: 1fr; }
  .report__date { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 10px 16px; border-inline-end: 0; border-bottom: 1px solid var(--line); align-items: baseline; }
  .report__date b { font-size: 1.3rem; }
  .report__main { padding: 16px; }
  .report__cols { grid-template-columns: 1fr; gap: 14px; }
  .cmt-form { flex-direction: column; align-items: stretch; }
}

/* خط Reem Kufi يضيّق المسافة بين الكلمات؛ نوسّعها قليلاً */
.display, .h2, .page-hero h1, .door h3, .pkg h3, .pd__title, .psign__title h2, .signboard__title, .brand__txt b, .cta-band h2, .calc h3, .login__side h2 { word-spacing: 0.14em; }

/* ==========================================================
   إضافات المنصة (PHP)
   ========================================================== */
.skip { position: absolute; top: -60px; right: 12px; z-index: 200; background: var(--ink); color: var(--yellow); padding: 8px 14px; border-radius: 0 0 8px 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 0; }
/* حقل فخ للروبوتات: مخفي بالقص لا بالإزاحة (الإزاحة توسّع الصفحة في الاتجاه من اليمين لليسار) */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.inline { display: inline; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-error { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: var(--r-sm); font-size: 0.9rem; display: flex; gap: 8px; align-items: flex-start; }
.form-note { background: var(--yellow-soft); color: var(--ink); padding: 10px 12px; border-radius: var(--r-sm); font-size: 0.9rem; display: flex; gap: 8px; align-items: flex-start; }
.form-card > .form-error, .form-card > .form-note { margin: 18px 28px 0; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .form-grid--3 { grid-template-columns: 1fr; } }
.check-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 0.3em; accent-color: var(--ink); flex: none; }
.check-row b { display: block; font-weight: 600; font-size: 0.93rem; }
.check-row small { display: block; }
.check-group { display: grid; gap: 12px; align-content: center; }
.btn.is-busy { opacity: 0.6; pointer-events: none; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dropzone.busy { opacity: 0.7; pointer-events: none; }
.dropzone.busy b::after { content: " — جارٍ تجهيز الصور…"; font-weight: 500; }

/* شارات الفلترة كروابط */
.choice-link { display: inline-flex; align-items: center; padding: 0.45em 1em; border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.88rem; font-weight: 500; background: #fff; text-decoration: none; color: inherit; white-space: nowrap; }
.choice-link:hover { border-color: var(--line-2); }
.choice-link.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* التنقل بين الصفحات */
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 18px; font-size: 0.9rem; color: var(--text-2); }
.pager a { display: inline-flex; gap: 6px; align-items: center; padding: 0.45em 1em; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); background: #fff; font-weight: 600; }
.pager a:hover { border-color: var(--ink); }

/* لوحة المشروع في الواجهة */
.signboard__live--sample::before { background: var(--slate); box-shadow: none; }

/* صفحة العقار */
.prop-page { padding-block: 28px 80px; }
.crumbs--light, .crumbs--light a { color: var(--muted); }
.crumbs--light a:hover { color: var(--ink); }
.crumbs--light span:last-child { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-page .pd__title { margin: 10px 0 20px; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.gal__main--empty { display: grid; place-items: center; color: var(--line-2); cursor: default; }
.gal__main--empty .i { width: 48px; height: 48px; }
.related { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }

/* التقارير والتعليقات */
.report__actions { display: flex; gap: 2px; flex: none; }
.cmt__del { background: none; border: 0; padding: 2px; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; border-radius: 4px; }
.cmt__del:hover { color: var(--bad); background: var(--bad-soft); }
.cmt__del .i { width: 14px; height: 14px; }
