/* أقسام مشتركة بين القوالب (مشاريع، أرقام، نص وصورة، بانر) — مبنية على متغيّرات الثيم بس،
   فبتاخد ألوان وخطوط واستدارة أي قالب تلقائيًا. القوالب بتعدّلها من ملفاتها (مثلاً signature.css). */
/* إزاحة المرساة = ارتفاع الهيدر الثابت + شريط الديمو (لو موجود) + هامش — كانت 90px ثابتة فالعنوان بيستخبى تحت الهيدر (FE-17) */
.th-anchor { display: block; position: relative; top: calc(-1 * (var(--th-top, 0px) + 84px + 16px)); visibility: hidden; height: 0; }
.th-sec { padding-block: clamp(64px, 8vw, 120px); background: var(--background); color: var(--foreground); }
.th-bg-muted { background: var(--muted); }
.th-bg-dark { background: var(--primary); color: var(--primary-foreground); }
.th-bg-dark .th-desc, .th-bg-dark .th-eyebrow { color: color-mix(in oklab, var(--primary-foreground) 72%, transparent); }
.th-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.th-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.th-head-txt { max-width: 640px; }
.th-head.is-center { justify-content: center; text-align: center; }
.th-head.is-center .th-head-txt { margin-inline: auto; }
.th-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--gold); margin-bottom: 12px; }
.th-eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.th-title { margin: 0; font-family: var(--font-head, var(--font-sans)); font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: inherit; text-wrap: balance; }
.th-desc { margin: 14px 0 0; color: var(--muted-foreground); font-size: 1.02rem; line-height: 1.85; max-width: 60ch; }
.th-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }
.th-link:hover { color: var(--gold); }
.th-link i { font-size: .9em; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.th-link:hover i { transform: translateX(-4px); }
[dir="ltr"] .th-link:hover i { transform: translateX(4px); }
.th-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: var(--radius, 12px); background: var(--gold); color: var(--gold-foreground); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--gold); transition: transform .3s cubic-bezier(.16,1,.3,1), background-color .25s, color .25s, box-shadow .3s; cursor: pointer; }
.th-btn:hover { color: var(--gold-foreground); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.th-btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.th-btn-ghost:hover { background: var(--foreground); color: var(--background); border-color: var(--foreground); box-shadow: none; }
.th-btn-light { background: #fff; color: #111; border-color: #fff; }
.th-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.th-btn-outline-light:hover { background: #fff; color: #111; border-color: #fff; box-shadow: none; }

/* ── المشاريع ── */
.th-proj-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 420px); gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.th-proj-track::-webkit-scrollbar { display: none; }
.th-proj-grid { display: grid; grid-template-columns: repeat(var(--th-cols, 3), minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.th-proj-editorial { display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: minmax(220px, auto); gap: clamp(14px, 2vw, 24px); }
.th-proj-editorial .th-proj:first-child { grid-row: span 2; }
.th-proj-editorial .th-proj:first-child .th-proj-media { aspect-ratio: auto; height: 100%; min-height: 460px; }
.th-proj { position: relative; display: block; scroll-snap-align: start; color: #fff; text-decoration: none; border-radius: var(--radius, 12px); overflow: hidden; background: var(--primary); isolation: isolate; }
.th-proj-media { aspect-ratio: 4 / 5; }
.th-proj-grid .th-proj-media, .th-proj-editorial .th-proj:not(:first-child) .th-proj-media { aspect-ratio: 4 / 3; }
.th-proj-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s cubic-bezier(.16,1,.3,1); }
.th-proj:hover .th-proj-media img { transform: scale(1.05); }
.th-proj::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); pointer-events: none; }
.th-proj-body { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 6px; }
.th-proj-tag { justify-self: start; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.28); }
.th-proj-name { margin: 6px 0 0; font-family: var(--font-head, var(--font-sans)); font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); font-weight: 600; line-height: 1.3; }
.th-proj-desc { margin: 0; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-proj-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.th-proj-go i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); transition: background-color .3s, color .3s; font-style: normal; }
.th-proj:hover .th-proj-go i { background: #fff; color: #111; }
.th-proj-nav { display: flex; gap: 8px; }
.th-proj-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.th-proj-nav button:hover { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.th-proj-nav button:disabled { opacity: .35; pointer-events: none; }

/* ── الأرقام ── */
.th-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.th-stat { padding: clamp(22px, 3vw, 34px) clamp(10px, 2vw, 24px) 0; border-inline-end: 1px solid var(--border); }
.th-stat:last-child { border-inline-end: 0; }
.th-stat b { display: block; font-family: var(--font-head, var(--font-sans)); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); font-weight: 600; line-height: 1.1; color: var(--foreground); direction: ltr; unicode-bidi: isolate; text-align: start; }
.th-bg-dark .th-stat b { color: var(--primary-foreground); }
.th-stat span { display: block; margin-top: 8px; color: var(--muted-foreground); font-size: 15px; }
.th-bg-dark .th-stats, .th-bg-dark .th-stat { border-color: color-mix(in oklab, var(--primary-foreground) 18%, transparent); }

/* ── نص وصورة ── */
.th-ti { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.th-ti.is-start .th-ti-media { order: -1; }
.th-ti-media { border-radius: var(--radius, 12px); overflow: hidden; aspect-ratio: 5 / 6; background: var(--muted); }
.th-ti-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-ti-body .th-desc { white-space: pre-line; }
.th-ti-body .th-btn { margin-top: 28px; }

/* ── البانر ── */
.th-banner { position: relative; display: grid; place-items: center; min-height: clamp(320px, 46vw, 560px); text-align: center; color: #fff; overflow: hidden; isolation: isolate; }
.th-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.th-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6)); }
.th-banner .th-title { color: #fff; }
.th-banner .th-desc { color: rgba(255,255,255,.85); margin-inline: auto; }
.th-banner .th-btn { margin-top: 26px; }

@media (max-width: 991.98px) {
  .th-proj-grid { grid-template-columns: repeat(2, 1fr); }
  .th-proj-editorial { grid-template-columns: 1fr; }
  .th-proj-editorial .th-proj:first-child { grid-row: auto; }
  .th-proj-editorial .th-proj:first-child .th-proj-media { min-height: 0; aspect-ratio: 4 / 3; }
  .th-stats { grid-template-columns: repeat(2, 1fr); }
  .th-stat:nth-child(2) { border-inline-end: 0; }
  .th-ti { grid-template-columns: 1fr; }
  .th-ti.is-start .th-ti-media, .th-ti-media { order: -1; aspect-ratio: 4 / 3; }
}
@media (max-width: 575.98px) {
  .th-proj-grid { grid-template-columns: 1fr; }
  .th-proj-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .th-proj-media img, .th-link i { transition: none; } }

/* مساحات لمس مريحة على الجوال لكل القوالب (روابط الفوتر، «المزيد»، المسار، اللغة) */
@media (max-width: 767.98px) {
  .footer-link, .ke-dcard-more, .ke-proj-link, .ke-link-gold, .breadcrumb a, .breadcrumb-item a, .ke-cover-eyebrow a, [class*="breadcrumb"] a, .ke-bc-inner a, .ke-lhero-body .ke-flex-center > a, .sg-footer-col a, .sg-footer-bottom a { display: inline-block; padding-block: 8px; margin-block: -8px; }
  .sg-lang { min-width: 40px; text-align: center; }
}

/* =================== الهيدر المرن (themes/shared/header) ===================
   3 طبقات اختيارية: .th-ann (إعلان) ← .th-util (شريط علوي) ← .th-header (الرئيسي).
   الرئيسي: align-start|center|end|split + is-stack (سطرين) · tone-* · size-* · nav-* · logo-* · الشكل is-full|card|outline */
.th-hwrap { --th-hh: 76px; position: relative; z-index: 1000; }
.th-hwrap.is-sticky { position: sticky; top: var(--th-top, 0px); }
.th-hwrap.is-transparent { position: absolute; top: var(--th-top, 0px); inset-inline: 0; }
.th-hwrap.is-transparent.is-sticky.is-scrolled { position: fixed; animation: thDrop .45s cubic-bezier(.16,1,.3,1); }
@keyframes thDrop { from { transform: translateY(-100%); } }

/* شريط الإعلان */
.th-ann { --a-bg: var(--gold); --a-fg: var(--gold-foreground); background: var(--a-bg); color: var(--a-fg); font-size: 13.5px; }
.th-ann.tone-dark { --a-bg: var(--primary); --a-fg: var(--primary-foreground); }
.th-ann.tone-gradient { background: linear-gradient(90deg, var(--primary), color-mix(in oklab, var(--gold) 75%, var(--primary))); color: #fff; }
.th-ann.tone-light { --a-bg: color-mix(in oklab, var(--gold) 9%, var(--card)); --a-fg: var(--foreground); border-bottom: 1px solid var(--border); }
.th-ann-in { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-block: 6px; }
.th-ann.align-center .th-ann-in { justify-content: center; text-align: center; }
.th-ann-badge { flex: none; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: color-mix(in oklab, currentColor 18%, transparent); white-space: nowrap; }
.th-ann.tone-light .th-ann-badge { background: var(--gold); color: var(--gold-foreground); }
.th-ann-text { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-ann-link { flex: none; display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.th-ann-link:hover { color: inherit; opacity: .85; }
.th-ann-link i { font-size: 9px; }

/* الشريط العلوي */
.th-util { font-size: 13px; background: var(--muted); color: var(--foreground); border-bottom: 1px solid var(--border); }
.th-util.tone-dark { background: color-mix(in oklab, var(--primary) 92%, #000); color: var(--primary-foreground); border-bottom-color: transparent; }
.th-util.tone-brand { background: var(--gold); color: var(--gold-foreground); border-bottom-color: transparent; }
.th-util-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.th-util-start, .th-util-end { display: flex; align-items: center; gap: 6px 20px; min-width: 0; }
.th-util-end { gap: 8px; }
.th-util-start a, .th-util-start span { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; opacity: .85; white-space: nowrap; }
.th-util-start a:hover { opacity: 1; color: inherit; }
.th-util-start i { font-size: 12px; opacity: .75; }
.th-util .th-lang { height: 30px; min-width: 0; padding: 0 10px; border: 0; font-weight: 600; }
.th-util .th-lang:hover { background: color-mix(in oklab, currentColor 10%, transparent); }

/* أيقونات التواصل (الشريط العلوي أو الرئيسي أو قائمة الجوال) */
.th-social { display: inline-flex; align-items: center; gap: 2px; }
.th-social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: inherit; text-decoration: none; font-size: 13px; opacity: .8; transition: background-color .2s, opacity .2s; }
.th-social a:hover { opacity: 1; color: inherit; background: color-mix(in oklab, currentColor 12%, transparent); }

/* الشريط الرئيسي */
.th-header { --th-bg: var(--card); --th-fg: var(--foreground); position: relative; background: var(--th-bg); color: var(--th-fg); box-shadow: 0 1px 0 var(--border); transition: background-color .4s, color .4s, box-shadow .4s; }
.th-header.tone-dark { --th-bg: var(--primary); --th-fg: var(--primary-foreground); box-shadow: none; }
.th-header.tone-brand { --th-bg: var(--gold); --th-fg: var(--gold-foreground); box-shadow: none; }
.th-header.size-compact { --th-hh: 62px; } .th-header.size-tall { --th-hh: 96px; }
.th-header-in { display: grid; align-items: center; gap: 10px 24px; min-height: var(--th-hh); grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav tools"; }
.th-header .th-brand { grid-area: brand; } .th-header .th-nav { grid-area: nav; } .th-header .th-tools { grid-area: tools; }
/* شفاف فوق الواجهة (العرض الكامل فقط — البطاقات تفضل بخلفيتها) */
.th-hwrap.is-transparent.is-full:not(.is-scrolled):not(.menu-open) .th-header { background: transparent; color: #fff; box-shadow: none; }
.th-hwrap.is-transparent:not(.is-scrolled):not(.menu-open) .th-util { background: rgba(0,0,0,.22); color: #fff; border-bottom-color: rgba(255,255,255,.12); backdrop-filter: blur(6px); }

/* الشعار */
.th-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.th-brand:hover { color: inherit; }
.th-logo { display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 4px; border-radius: calc(var(--radius) * .9); background: #fff; box-shadow: 0 4px 12px -8px rgba(0,0,0,.4); }
.th-logo img { width: 100%; height: 100%; object-fit: contain; }
.th-brand-txt { display: grid; min-width: 0; line-height: 1.2; }
.th-brand-txt b { font-family: var(--font-head, var(--font-sans)); font-size: 16px; font-weight: 700; white-space: nowrap; }
.th-brand-txt small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; white-space: nowrap; }
.th-header.logo-icon .th-brand-txt { display: none; }
.th-header.logo-text .th-logo { display: none; }
.th-header.logo-text .th-brand-txt b { font-size: 20px; letter-spacing: -.01em; }
.th-logo-badge { margin-inline-start: 4px; padding: 3px 10px; border-radius: 999px; border: 1px solid color-mix(in oklab, currentColor 22%, transparent); font-size: 11.5px; font-weight: 600; white-space: nowrap; opacity: .9; }

/* القائمة */
.th-nav { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); min-width: 0; }
.th-header.align-start .th-nav { justify-content: flex-start; }
.th-header.align-center .th-nav { justify-content: center; }
.th-header.align-end .th-nav { justify-content: flex-end; }
.th-header.align-center:not(.is-stack) .th-header-in { grid-template-columns: 1fr auto 1fr; }
.th-header.align-center:not(.is-stack) .th-tools { justify-self: end; }
.th-nav-a { position: relative; color: inherit; text-decoration: none; font-size: 14.5px; font-weight: 500; padding-block: 8px; opacity: .82; white-space: nowrap; transition: opacity .2s, color .2s, background-color .2s; }
.th-nav-a:hover, .th-nav-a.is-active { opacity: 1; color: inherit; }
.th-nav-badge { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--gold); color: var(--gold-foreground); vertical-align: 2px; }
/* شكل الروابط */
.th-header.links-underline .th-nav-a::after { content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.th-header.links-underline .th-nav-a:hover::after, .th-header.links-underline .th-nav-a.is-active::after { transform: none; }
.th-header.links-plain .th-nav-a.is-active { color: var(--gold); font-weight: 600; }
.th-header.links-pill .th-nav { gap: 4px; }
.th-header.links-pill .th-nav-a, .th-header.links-pill .th-more summary { padding: 8px 14px; border-radius: 999px; }
.th-header.links-pill .th-nav-a:hover, .th-header.links-pill .th-more summary:hover { background: color-mix(in oklab, currentColor 7%, transparent); }
.th-header.links-pill .th-nav-a.is-active { background: color-mix(in oklab, currentColor 11%, transparent); font-weight: 600; }
.th-header.links-caps .th-nav-a, .th-header.links-caps .th-more summary { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .th-header.links-caps .th-nav-a, html[lang="ar"] .th-header.links-caps .th-more summary { font-size: 14px; letter-spacing: 0; }
.th-header.links-caps .th-nav-a.is-active { color: var(--gold); }
.th-header.tone-brand .th-nav-a.is-active { color: inherit; }
.th-header.tone-brand.links-underline .th-nav-a::after { background: currentColor; }
/* «المزيد» */
.th-more { position: relative; }
.th-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; opacity: .82; padding-block: 8px; white-space: nowrap; }
.th-more summary::-webkit-details-marker { display: none; }
.th-more summary i { font-size: 10px; transition: transform .25s; }
.th-more[open] summary { opacity: 1; }
.th-more[open] summary i { transform: rotate(180deg); }
.th-more-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 5; min-width: 200px; padding: 8px; display: grid; background: var(--card); color: var(--foreground); border-radius: calc(var(--radius) * 1.2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.35), 0 0 0 1px var(--border); }
.th-more-menu .th-nav-a { padding: 9px 12px; border-radius: var(--radius); opacity: 1; font-size: 14px; letter-spacing: 0; text-transform: none; }
.th-more-menu .th-nav-a:hover { background: var(--muted); }
.th-more-menu .th-nav-a::after { display: none; }

/* سطرين: الشعار فوق، والقائمة تحت بخط فاصل */
.th-header.is-stack .th-header-in { grid-template-columns: 1fr auto 1fr; grid-template-areas: "brand brand tools" "nav nav nav"; padding-top: 12px; row-gap: 10px; min-height: 0; }
.th-header.is-stack.align-center .th-header-in { grid-template-areas: ". brand tools" "nav nav nav"; }
.th-header.is-stack.align-center .th-brand { flex-direction: column; gap: 6px; text-align: center; }
.th-header.is-stack.align-center .th-brand-txt { justify-items: center; }
.th-header.is-stack .th-tools { justify-self: end; }
.th-header.is-stack .th-nav { min-height: 52px; border-top: 1px solid color-mix(in oklab, currentColor 11%, transparent); }

/* الشعار بين الروابط: الأدوات تشارك العمود الأخير */
.th-header.align-split .th-header-in { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "a1 brand a2"; column-gap: clamp(24px, 3vw, 48px); }
.th-header.align-split .th-nav-a1 { grid-area: a1; justify-content: flex-end; }
.th-header.align-split .th-nav-a2 { grid-area: a2; justify-content: flex-start; }
.th-header.align-split .th-tools { grid-area: a2; justify-self: end; }
.th-header.align-split .th-brand { flex-direction: column; gap: 4px; text-align: center; }
.th-header.align-split .th-brand-txt { justify-items: center; }
.th-header.align-split .th-brand-txt small, .th-header.align-split .th-tools .th-phone { display: none; }

/* الأدوات */
.th-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.th-ico { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 15px; cursor: pointer; transition: background-color .2s; }
.th-ico:hover { background: color-mix(in oklab, currentColor 9%, transparent); }
.th-tools .th-social a { width: 36px; height: 36px; font-size: 14px; }
.th-phone { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.th-phone:hover { color: inherit; }
.th-phone i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in oklab, currentColor 10%, transparent); font-size: 12px; }
.th-lang { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 8px; border-radius: var(--radius); color: inherit; text-decoration: none; font-size: 13px; font-weight: 700; border: 1px solid color-mix(in oklab, currentColor 22%, transparent); }
.th-lang:hover { color: inherit; }
.th-hcta { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border: 1.5px solid transparent; border-radius: var(--radius); background: var(--gold); color: var(--gold-foreground); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .25s, box-shadow .25s, background-color .25s, color .25s, border-color .25s; }
.th-hcta:hover { color: var(--gold-foreground); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.th-hcta:active { transform: scale(.97); transition-duration: .1s; }
.th-hcta.cta-soft { background: color-mix(in oklab, var(--gold) 14%, transparent); color: var(--gold); }
.th-hcta.cta-soft:hover { background: var(--gold); color: var(--gold-foreground); box-shadow: none; }
.th-hcta.cta-outline { background: transparent; color: inherit; border-color: color-mix(in oklab, currentColor 32%, transparent); }
.th-hcta.cta-outline:hover { border-color: var(--gold); background: var(--gold); color: var(--gold-foreground); box-shadow: none; }
.th-header.tone-brand .th-hcta.cta-solid { background: var(--primary); color: var(--primary-foreground); }
.th-header.tone-brand .th-hcta.cta-soft { background: color-mix(in oklab, currentColor 14%, transparent); color: inherit; }
.th-header.tone-dark .th-hcta.cta-soft { background: color-mix(in oklab, var(--gold) 22%, transparent); color: color-mix(in oklab, var(--gold) 70%, #fff); }
.th-burger { display: none; width: 42px; height: 42px; flex: none; place-content: center; gap: 5px; border: 0; border-radius: var(--radius); background: color-mix(in oklab, currentColor 8%, transparent); color: inherit; cursor: pointer; }
.th-burger.is-always { display: grid; }
.th-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
.th-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.th-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.th-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* البحث: لوحة تنزل تحت الشريط */
.th-search { position: absolute; top: 100%; inset-inline: 0; background: var(--card); color: var(--foreground); box-shadow: 0 18px 40px -22px rgba(0,0,0,.35), 0 -1px 0 var(--border); animation: thIn .3s cubic-bezier(.16,1,.3,1); border-radius: inherit; }
.th-search[hidden] { display: none; }
.th-search-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.th-search-in > i { opacity: .5; }
.th-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 17px; outline: none; }

/* الشكل: بطاقة عائمة / بطاقة بإطار */
.th-hwrap.is-card .th-mainwrap, .th-hwrap.is-outline .th-mainwrap { padding: 12px clamp(12px, 3vw, 32px); }
.th-hwrap.is-card .th-header, .th-hwrap.is-outline .th-header { max-width: 1280px; margin-inline: auto; border-radius: calc(var(--radius) * 1.6); }
.th-hwrap.is-card .th-header { box-shadow: 0 14px 40px -20px rgba(0,0,0,.28), 0 0 0 1px color-mix(in oklab, var(--border) 70%, transparent); }
.th-hwrap.is-outline .th-header { box-shadow: 0 0 0 1px var(--border); }
.th-hwrap.is-outline.is-scrolled .th-header { box-shadow: 0 0 0 1px var(--border), 0 14px 34px -22px rgba(0,0,0,.3); }
.th-hwrap.is-card .th-header-in, .th-hwrap.is-outline .th-header-in { max-width: none; padding-inline: clamp(14px, 2vw, 24px); }
.th-hwrap.is-card .th-search-in, .th-hwrap.is-outline .th-search-in { max-width: none; padding-inline: clamp(14px, 2vw, 24px); }

/* قائمة الجوال (الـ top بيتحسب من أسفل الهيدر بالـ JS) */
.th-mmenu { position: fixed; inset-inline: 0; top: calc(var(--th-top, 0px) + var(--th-hh, 76px)); bottom: 0; z-index: 999; overflow-y: auto; background: var(--card); color: var(--foreground); padding: 16px clamp(16px, 4vw, 40px) 32px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); animation: thIn .3s cubic-bezier(.16,1,.3,1); }
@keyframes thIn { from { opacity: 0; transform: translateY(-8px); } }
.th-mmenu nav { display: grid; max-width: 760px; margin-inline: auto; }
.th-mmenu .th-nav-a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--border); opacity: 1; }
.th-mmenu .th-nav-a.is-active { color: var(--gold); }
.th-mmenu .th-nav-a::after { display: none; }
.th-mmenu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; max-width: 760px; margin: 20px auto 0; }
.th-mmenu-foot > a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; }

@media (max-width: 1280px) { .th-nav { gap: 16px; } .th-nav-a, .th-more summary { font-size: 14px; } .th-tools .th-social { display: none; } }
@media (max-width: 1100px) {
  .th-nav, .th-phone, .th-hide-md { display: none !important; }
  .th-burger { display: grid; }
  .th-header-in, .th-header.is-stack .th-header-in, .th-header.is-stack.align-center .th-header-in, .th-header.align-center:not(.is-stack) .th-header-in, .th-header.align-split .th-header-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand tools"; padding-top: 0; min-height: var(--th-hh); }
  .th-header.is-stack.align-center .th-brand, .th-header.align-split .th-brand { flex-direction: row; gap: 10px; text-align: start; justify-self: start; }
  .th-header.is-stack.align-center .th-brand-txt, .th-header.align-split .th-brand-txt { justify-items: start; }
  .th-header.align-split .th-tools { grid-area: tools; }
  .th-header.size-tall { --th-hh: 76px; }
}
@media (max-width: 640px) {
  .th-hcta, .th-logo-badge, .th-brand-txt small { display: none; }
  .th-hide-sm { display: none !important; }
  .th-util-in { min-height: 36px; }
  .th-util-start > :not(:first-child) { display: none; }
  .th-ann-link { display: none; }
  .th-hwrap.is-card .th-mainwrap, .th-hwrap.is-outline .th-mainwrap { padding: 8px 10px; }
}

/* =================== الفوتر المرن (themes/shared/footer) =================== */
.th-fband { --fb-bg: var(--gold); --fb-fg: var(--gold-foreground); background: var(--fb-bg); color: var(--fb-fg); }
.th-fband.tone-light { --fb-bg: var(--primary); --fb-fg: var(--primary-foreground); }
.th-fband.tone-brand { --fb-bg: var(--primary); --fb-fg: var(--primary-foreground); }
.th-fband-in { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding-block: clamp(28px, 4vw, 44px); }
.th-fband h2 { margin: 0; font-family: var(--font-head, var(--font-sans)); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 600; color: inherit; }
.th-fband-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.th-fband .th-btn { background: var(--fb-fg); color: var(--fb-bg); border-color: var(--fb-fg); }
.th-fband .th-btn-ghost { background: transparent; color: var(--fb-fg); border-color: color-mix(in oklab, var(--fb-fg) 50%, transparent); }
.th-fband .th-btn-ghost:hover { background: var(--fb-fg); color: var(--fb-bg); }
.th-footer { --tf-bg: color-mix(in oklab, var(--primary) 94%, #000); --tf-fg: var(--primary-foreground); background: var(--tf-bg); color: var(--tf-fg); padding: clamp(48px, 6vw, 80px) 0 24px; }
.th-footer.tone-light { --tf-bg: var(--muted); --tf-fg: var(--foreground); }
.th-footer.tone-brand { --tf-bg: var(--gold); --tf-fg: var(--gold-foreground); }
.th-footer a { color: inherit; text-decoration: none; }
.th-footer .th-brand-txt b { font-size: 17px; }
.th-fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 48px); }
.th-fgrid.is-rich { grid-template-columns: 1.7fr 1fr 1fr 1.4fr; }
.th-fgrid.is-rich .th-fbrand .th-brand-txt b { font-size: 20px; }
.th-fabout { margin-top: 16px; opacity: .75; font-size: 14.5px; line-height: 1.85; max-width: 42ch; }
.th-fabout p { margin: 0; }
.th-fsocial { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.th-fsocial a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid color-mix(in oklab, var(--tf-fg) 22%, transparent); transition: background-color .25s, color .25s, border-color .25s; }
.th-fsocial a:hover { background: var(--tf-fg); color: var(--tf-bg); border-color: var(--tf-fg); }
.th-fwa { margin-top: 20px; min-height: 46px; padding: 0 18px; font-size: 14px; }
.th-footer.tone-brand .th-fwa { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.th-fcol { display: grid; gap: 10px; align-content: start; }
.th-fcol h4 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; opacity: .6; font-family: var(--font-sans); color: inherit; }
.th-fcol a, .th-fcol span { opacity: .85; font-size: 14.5px; display: inline-flex; align-items: center; gap: 9px; padding-block: 2px; }
.th-fcol a:hover { opacity: 1; color: var(--gold); }
.th-footer.tone-brand .th-fcol a:hover { color: inherit; text-decoration: underline; }
.th-fcontact i { width: 16px; opacity: .7; }
.th-fcenter { display: grid; justify-items: center; text-align: center; gap: 4px; padding-bottom: clamp(28px, 4vw, 44px); }
.th-fcenter .th-brand { flex-direction: column; }
.th-fcenter .th-brand-txt { justify-items: center; }
.th-fcenter .th-fabout { margin-inline: auto; }
.th-flinks-inline { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 18px; }
.th-flinks-inline a { opacity: .85; font-size: 14.5px; padding-block: 4px; }
.th-flinks-inline a:hover { opacity: 1; }
.th-fmeta { margin: 14px 0 0; opacity: .7; font-size: 14px; }
.th-fsimple { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding-bottom: 24px; }
.th-fsimple .th-flinks-inline { margin: 0; }
.th-fsimple .th-fsocial { margin: 0; }
.th-fbottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid color-mix(in oklab, var(--tf-fg) 14%, transparent); font-size: 13px; opacity: .7; }
@media (max-width: 991.98px) { .th-fgrid, .th-fgrid.is-rich { grid-template-columns: 1fr 1fr; } .th-fbrand { grid-column: 1 / -1; } }
@media (max-width: 767.98px) { .th-fcol a, .th-flinks-inline a, .th-fbottom a { padding-block: 8px; } .th-fsimple { flex-direction: column; text-align: center; } }
@media (max-width: 480px) { .th-fgrid, .th-fgrid.is-rich { grid-template-columns: 1fr; } }

html.th-lock { overflow: hidden; }
@media (max-width: 1280px) { .th-hide-lg { display: none !important; } }

/* =================== طابع كلاسيك («تصميم القالب» في كلاسيك) ===================
   نفس الهيدر المرن بشكل كلاسيك الأصلي: شريط كحلي زجاجي بخط ذهبي، روابط كبسولة داخل إطار، شعار بحلقة ذهبية */
.skin-classic .th-header.size-regular { --th-hh: 80px; }
.skin-classic .th-header.tone-dark { background: color-mix(in oklab, var(--primary) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.skin-classic.is-scrolled .th-header.tone-dark { background: color-mix(in oklab, var(--primary) 96%, transparent); box-shadow: var(--shadow-elegant); }
.skin-classic.is-full .th-header::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--gold) 60%, transparent), transparent); }
.skin-classic .th-logo { width: 44px; height: 44px; border-radius: .875rem; box-shadow: var(--shadow-gold), inset 0 0 0 1px color-mix(in oklab, var(--gold) 45%, transparent); }
.skin-classic .th-brand-txt b { font-size: 14px; font-weight: 800; }
.skin-classic .th-brand-txt small { font-weight: 700; letter-spacing: .12em; }
.skin-classic .th-header.links-pill .th-nav { width: max-content; max-width: 100%; gap: 4px; padding: .35rem; border-radius: 999px; border: 1px solid color-mix(in oklab, currentColor 12%, transparent); background: color-mix(in oklab, currentColor 4%, transparent); }
.skin-classic .th-header.links-pill.align-start .th-nav { justify-self: start; }
.skin-classic .th-header.links-pill.align-center .th-nav { justify-self: center; }
.skin-classic .th-header.links-pill.align-end .th-nav { justify-self: end; }
.skin-classic .th-header.links-pill.is-stack .th-nav { min-height: 0; margin-bottom: 12px; border-top: 1px solid color-mix(in oklab, currentColor 12%, transparent); }
.skin-classic .th-header.links-pill .th-nav-a, .skin-classic .th-header.links-pill .th-more summary { padding: .5rem .9rem; font-size: 12.5px; font-weight: 600; }
.skin-classic .th-header.links-pill .th-nav-a:hover { background: none; color: var(--gold); }
.skin-classic .th-header.links-pill .th-nav-a.is-active { background: var(--gradient-gold, var(--gold)); color: var(--gold-foreground); box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--gold) 55%, transparent); }
.skin-classic .th-lang { width: 36px; min-width: 36px; height: 36px; padding: 0; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent); background: color-mix(in oklab, var(--gold) 10%, transparent); color: var(--gold); }
.skin-classic .th-lang:hover { background: var(--gold); color: var(--gold-foreground); }
.skin-classic .th-header .th-phone { padding: .4rem .9rem .4rem .45rem; border-radius: 999px; border: 1px solid color-mix(in oklab, currentColor 15%, transparent); background: color-mix(in oklab, currentColor 3%, transparent); font-size: 12px; font-weight: 700; transition: border-color .2s, color .2s; }
.skin-classic .th-header .th-phone i { width: 24px; height: 24px; background: color-mix(in oklab, var(--gold) 15%, transparent); color: var(--gold); font-size: 11px; }
.skin-classic .th-header .th-phone:hover { border-color: color-mix(in oklab, var(--gold) 60%, transparent); color: var(--gold); }
.skin-classic .th-burger { width: 40px; height: 40px; background: transparent; border: 1px solid color-mix(in oklab, currentColor 15%, transparent); border-radius: .5rem; }
.th-mmenu.skin-classic.tone-dark { background: color-mix(in oklab, var(--primary) 96%, transparent); color: var(--primary-foreground); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.th-mmenu.skin-classic nav { grid-template-columns: 1fr 1fr; gap: 4px; }
.th-mmenu.skin-classic .th-nav-a { border: 0; border-radius: .6rem; padding: .7rem .8rem; font-size: .9rem; font-weight: 600; opacity: .85; }
.th-mmenu.skin-classic .th-nav-a:hover, .th-mmenu.skin-classic .th-nav-a.is-active { background: color-mix(in oklab, var(--gold) 15%, transparent); color: var(--gold); opacity: 1; }

/* صفحة مبنية بالأقسام لسه فاضية */
.th-page-empty { padding: clamp(120px, 14vw, 180px) 0 clamp(60px, 8vw, 100px); text-align: center; }
.th-page-empty h1 { margin: 0; font-family: var(--font-head, var(--font-sans)); font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); color: var(--foreground); }
.th-page-empty p { margin: 12px 0 0; color: var(--muted-foreground); }

/* =================== أشكال الأقسام الديناميكية (themes/shared/sections/variants) ===================
   نفس الأشكال لكل القوالب، بألوان وخطوط واستدارة القالب النشط. is-{style} · card-{shadow|border|flat} · ratio-* · --th-cols */
.th-v-side { display: flex; align-items: center; gap: 16px; }
.th-v .th-head.is-center { flex-direction: column; align-items: center; }
.th-v-items { display: grid; gap: clamp(14px, 2vw, 24px); }
.th-v.is-grid .th-v-items, .th-v.is-cards .th-v-items, .th-v.is-tiles .th-v-items { grid-template-columns: repeat(var(--th-cols, 3), minmax(0, 1fr)); }
.th-v.is-carousel .th-v-items { grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 2 * 22px) / 3)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.th-v.is-carousel .th-v-items::-webkit-scrollbar { display: none; }
.th-v.is-carousel .th-v-items > * { scroll-snap-align: start; }
/* البطاقات */
.th-v .th-vcard, .th-v .th-vdist, .th-v .th-vquote { --c-bg: var(--card); background: var(--c-bg); color: var(--foreground); border-radius: calc(var(--radius, 12px) * 1.2); overflow: hidden; text-decoration: none; transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s; }
.th-v.card-shadow .th-vcard, .th-v.card-shadow .th-vdist, .th-v.card-shadow .th-vquote { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px -26px rgba(0,0,0,.35); }
.th-v.card-border .th-vcard, .th-v.card-border .th-vdist, .th-v.card-border .th-vquote { box-shadow: inset 0 0 0 1px var(--border); }
.th-v.card-flat .th-vcard, .th-v.card-flat .th-vdist, .th-v.card-flat .th-vquote { --c-bg: transparent; border-radius: 0; }
.th-v.card-flat .th-vcard-media, .th-v.card-flat .th-vdist-media { border-radius: calc(var(--radius, 12px) * 1.2); }
.th-v .th-vcard:hover, .th-v .th-vdist:hover { transform: translateY(-4px); color: var(--foreground); }
.th-v.card-shadow .th-vcard:hover, .th-v.card-shadow .th-vdist:hover { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 28px 50px -26px rgba(0,0,0,.45); }
.th-bg-dark.th-v .th-vcard, .th-bg-dark.th-v .th-vdist, .th-bg-dark.th-v .th-vquote { --c-bg: color-mix(in oklab, var(--primary-foreground) 7%, transparent); color: var(--primary-foreground); }
.th-bg-dark.th-v.card-flat .th-vcard, .th-bg-dark.th-v.card-flat .th-vdist { --c-bg: transparent; }
/* بطاقة عقار */
.th-vcard { display: flex; flex-direction: column; }
.th-vcard-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--muted); }
.th-v.ratio-square .th-vcard-media { aspect-ratio: 1; } .th-v.ratio-portrait .th-vcard-media { aspect-ratio: 3 / 4; }
.th-vcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.16,1,.3,1); }
.th-vcard:hover .th-vcard-media img { transform: scale(1.05); }
.th-vcard-tag, .th-vcard-360 { position: absolute; top: 12px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
.th-vcard-tag { inset-inline-start: 12px; background: rgba(255,255,255,.92); color: #111; }
.th-vcard-360 { inset-inline-end: 12px; background: rgba(0,0,0,.55); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.th-vcard-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.th-v.card-flat .th-vcard-body { padding-inline: 2px; }
.th-vcard-loc { font-size: 12.5px; color: var(--muted-foreground); }
.th-bg-dark .th-vcard-loc { color: color-mix(in oklab, var(--primary-foreground) 65%, transparent); }
.th-vcard-title { font-family: var(--font-head, var(--font-sans)); font-size: 1.05rem; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-vcard-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; opacity: .8; }
.th-vcard-specs i { margin-inline-end: 6px; font-size: 12px; opacity: .7; }
.th-vcard-price { margin-top: 4px; font-weight: 700; font-size: 1.1rem; color: var(--gold); }
/* قائمة: صورة جنب التفاصيل */
.th-v-listings.is-list .th-v-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.th-v-listings.is-list .th-vcard { flex-direction: row; align-items: stretch; }
.th-v-listings.is-list .th-vcard-media { flex: 0 0 40%; aspect-ratio: auto; min-height: 170px; }
.th-v-listings.is-list .th-vcard-body { align-content: center; }
/* مميّز + قائمة: أول عقار كبير */
.th-v-listings.is-spotlight .th-v-items { grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: auto; }
.th-v-listings.is-spotlight .th-vcard.is-big { grid-row: span 2; }
.th-v-listings.is-spotlight .th-vcard.is-big .th-vcard-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.th-v-listings.is-spotlight .th-vcard.is-big .th-vcard-title { font-size: 1.35rem; }
.th-v-listings.is-spotlight .th-vcard:not(.is-big) .th-vcard-specs { display: none; }
/* الأحياء */
.th-vdist { position: relative; display: flex; flex-direction: column; }
.th-vdist-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--muted); }
.th-vdist-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.16,1,.3,1); }
.th-vdist:hover .th-vdist-media img { transform: scale(1.05); }
.th-vdist-body { display: grid; gap: 4px; padding: 16px 18px 18px; }
.th-vdist-body small { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--gold); }
.th-vdist-body b { font-family: var(--font-head, var(--font-sans)); font-size: 1.15rem; font-weight: 600; }
.th-vdist-tag { font-size: 13.5px; line-height: 1.7; opacity: .75; }
.th-vdist-body em { font-style: normal; font-size: 13px; opacity: .8; }
.th-v-districts.is-tiles .th-vdist { border-radius: calc(var(--radius, 12px) * 1.4); box-shadow: none; }
.th-v-districts.is-tiles .th-vdist-media { aspect-ratio: 3 / 4; }
.th-v-districts.is-tiles .th-vdist::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.72)); pointer-events: none; }
.th-v-districts.is-tiles .th-vdist-body { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; color: #fff; padding: 22px; }
.th-v-districts.is-tiles .th-vdist-body small { color: rgba(255,255,255,.8); }
.th-v-districts.is-list .th-v-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.th-v-districts.is-list .th-vdist { flex-direction: row; align-items: center; gap: 14px; padding: 10px; }
.th-v-districts.is-list .th-vdist-media { flex: 0 0 88px; aspect-ratio: 1; border-radius: var(--radius, 12px); }
.th-v-districts.is-list .th-vdist-body { padding: 0; flex: 1; min-width: 0; }
.th-v-districts.is-list .th-vdist-body b { font-size: 1.02rem; }
.th-vdist-go { font-style: normal; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--muted); margin-inline-end: 6px; }
/* آراء العملاء */
.th-vquote { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 28px); }
.th-v.card-flat .th-vquote { padding-inline: 0; }
.th-vquote-stars { color: var(--gold); font-size: 13px; display: flex; gap: 3px; }
.th-vquote blockquote { margin: 0; font-size: 1rem; line-height: 1.9; flex: 1; }
.th-vquote figcaption { display: flex; align-items: center; gap: 12px; }
.th-vquote figcaption > span:last-child { display: grid; line-height: 1.35; }
.th-vquote figcaption small { font-size: 12.5px; opacity: .7; }
.th-vquote-av { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-foreground); font-weight: 700; }
.th-v-quotes.is-spotlight .th-v-items { display: grid; max-width: 860px; margin-inline: auto; }
.th-v-quotes.is-spotlight .th-vquote { grid-area: 1 / 1; align-items: center; text-align: center; background: none; box-shadow: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .7s, transform .7s cubic-bezier(.16,1,.3,1), visibility .7s; }
.th-v-quotes.is-spotlight .th-vquote.is-on { opacity: 1; visibility: visible; transform: none; }
.th-v-quotes.is-spotlight .th-vquote blockquote { font-family: var(--font-head, var(--font-sans)); font-size: clamp(1.25rem, 1rem + 1.1vw, 1.8rem); line-height: 1.7; }
.th-vquote-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.th-vquote-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: currentColor; opacity: .25; cursor: pointer; transition: width .3s, opacity .3s; }
.th-vquote-dots button.is-on { width: 26px; opacity: 1; background: var(--gold); }
@media (max-width: 991.98px) {
    .th-v.is-grid .th-v-items, .th-v.is-cards .th-v-items, .th-v.is-tiles .th-v-items { grid-template-columns: repeat(min(var(--th-cols, 3), 2), minmax(0, 1fr)); }
    .th-v-listings.is-spotlight .th-v-items { grid-template-columns: 1fr 1fr; }
    .th-v-listings.is-spotlight .th-vcard.is-big { grid-column: 1 / -1; grid-row: auto; }
    .th-v-listings.is-list .th-v-items, .th-v-districts.is-list .th-v-items { grid-template-columns: 1fr; }
    .th-v.is-carousel .th-v-items { grid-auto-columns: minmax(260px, 46%); }
    .th-proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .th-v.is-grid .th-v-items, .th-v.is-cards .th-v-items, .th-v-listings.is-spotlight .th-v-items, .th-proj-grid { grid-template-columns: 1fr; }
    .th-v-districts.is-tiles .th-v-items { grid-template-columns: 1fr 1fr; }
    .th-v.is-carousel .th-v-items { grid-auto-columns: 82%; }
    .th-v-listings.is-list .th-vcard { flex-direction: column; }
    .th-v-listings.is-list .th-vcard-media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}
/* معاينة المحرّر: قسم ديناميكي من غير بيانات */
.th-empty-note { padding: 18px 0; background: repeating-linear-gradient(-45deg, var(--muted), var(--muted) 10px, transparent 10px, transparent 20px); color: var(--muted-foreground); font-size: 14px; text-align: center; border-block: 1px dashed var(--border); }

/* سلايدر صور الواجهة (أي شكل) */
.th-hslider { position: absolute; inset: 0; overflow: hidden; }
.th-hslider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s linear; }
.th-hslider img.is-on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .th-hslider img { transition: none; transform: none; } }

/* =================== أشكال الأقسام الثابتة + أقسام جديدة (variants / page_header / vision_mission / contact / service_list / team) =================== */
/* الواجهة: نص + صورة / في المنتصف */
.th-vhero { position: relative; color: var(--foreground); background: var(--background); overflow: hidden; }
.th-vhero.is-split .th-vhero-in { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(28px, 5vw, 72px); padding-block: clamp(110px, 12vw, 160px) clamp(56px, 7vw, 96px); }
.th-vhero-frame { position: relative; aspect-ratio: 4 / 5; max-height: 640px; border-radius: calc(var(--radius, 12px) * 2); overflow: hidden; background: var(--muted); box-shadow: 0 40px 80px -40px rgba(0,0,0,.45); }
.th-vhero-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.th-vhero-yt { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.th-vhero-yt iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%); border: 0; }
.th-vhero.is-split .th-vhero-yt iframe { width: 300%; height: 100%; }
.th-vhero-title { margin: 0; font-family: var(--font-head, var(--font-sans)); font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.th-vhero-lead { margin: 18px 0 0; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.9; opacity: .8; max-width: 52ch; }
.th-vhero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.th-vhero.is-centered { color: #fff; display: grid; align-items: center; min-height: 100svh; }
.th-vhero.is-centered.h-tall { min-height: 78svh; } .th-vhero.is-centered.h-medium { min-height: 58svh; }
.th-vhero-media { position: absolute; inset: 0; }
.th-vhero-media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--th-dim, .45)); }
.th-vhero.is-centered .th-vhero-in { position: relative; z-index: 1; padding-block: 140px 80px; text-align: center; }
.th-vhero.is-centered .th-vhero-copy { max-width: 860px; margin-inline: auto; }
.th-vhero.is-centered .th-vhero-lead { margin-inline: auto; }
.th-vhero.is-centered .th-vhero-ctas { justify-content: center; }
.th-vhero.is-centered .th-eyebrow { color: #fff; }
/* نص وصورة: بطاقة فوق الصورة / صورة عريضة */
.th-vti-media { border-radius: calc(var(--radius, 12px) * 1.6); overflow: hidden; background: var(--muted); }
.th-vti-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-vti-card { background: var(--card); color: var(--foreground); border-radius: calc(var(--radius, 12px) * 1.4); padding: clamp(24px, 3.4vw, 48px); box-shadow: 0 30px 60px -36px rgba(0,0,0,.4); }
.th-vti-card .th-btn { margin-top: 24px; }
.th-vti.is-overlap .th-vti-wrap { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; }
.th-vti.is-overlap .th-vti-media { grid-column: 1 / span 8; grid-row: 1; aspect-ratio: 4 / 3; }
.th-vti.is-overlap .th-vti-card { grid-column: 7 / span 6; grid-row: 1; position: relative; z-index: 1; }
.th-vti.is-overlap.is-start .th-vti-media { grid-column: 5 / span 8; }
.th-vti.is-overlap.is-start .th-vti-card { grid-column: 1 / span 6; }
.th-vti.is-stacked .th-vti-media { aspect-ratio: 21 / 9; }
.th-vti.is-stacked .th-vti-card { position: relative; width: min(860px, 92%); margin: -90px auto 0; text-align: center; }
.th-vti.is-stacked .th-desc { margin-inline: auto; }
/* أرقام: شريط داكن / أرقام كبيرة */
.th-vstats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.th-vstat { display: grid; gap: 6px; padding: 8px 22px; }
.th-vstat b { font-family: var(--font-head, var(--font-sans)); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); font-weight: 600; line-height: 1; color: var(--gold); }
.th-vstat span { font-size: 14.5px; opacity: .8; }
.th-vstats.is-band { padding-block: clamp(48px, 6vw, 80px); }
.th-vstats.is-band .th-vstats-row { border-radius: calc(var(--radius, 12px) * 1.4); }
.th-vstats.is-band .th-vstat + .th-vstat, .th-vstats.is-minimal .th-vstat + .th-vstat { border-inline-start: 1px solid color-mix(in oklab, currentColor 14%, transparent); }
.th-vstats.is-minimal .th-vstat { text-align: center; }
.th-vstats.is-minimal .th-vstat b { color: inherit; font-weight: 300; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); }
/* بانر: صورة + لوحة / بطاقة */
.th-vbanner-box { position: relative; display: grid; border-radius: calc(var(--radius, 12px) * 1.6); overflow: hidden; min-height: 360px; }
.th-vbanner-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-vbanner-body { display: grid; align-content: center; justify-items: start; gap: 14px; padding: clamp(28px, 4vw, 56px); }
.th-vbanner-body .th-desc { margin: 0; }
.th-vbanner.is-split .th-vbanner-box { grid-template-columns: 1.2fr 1fr; background: var(--primary); color: var(--primary-foreground); }
.th-vbanner.is-split .th-desc { color: color-mix(in oklab, var(--primary-foreground) 75%, transparent); }
.th-vbanner.is-card .th-vbanner-media { position: absolute; inset: 0; }
.th-vbanner.is-card .th-vbanner-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.15)); }
[dir="rtl"] .th-vbanner.is-card .th-vbanner-media::after { background: linear-gradient(-90deg, rgba(0,0,0,.72), rgba(0,0,0,.15)); }
.th-vbanner.is-card .th-vbanner-body { position: relative; z-index: 1; color: #fff; max-width: 620px; }
.th-vbanner.is-card .th-desc { color: rgba(255,255,255,.82); }
/* دعوة للتواصل: شريط / بطاقة */
.th-vcta-box { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; padding: clamp(28px, 4vw, 52px); border-radius: calc(var(--radius, 12px) * 1.6); background: var(--primary); color: var(--primary-foreground); overflow: hidden; }
.th-vcta-box .th-desc { color: color-mix(in oklab, var(--primary-foreground) 75%, transparent); margin-top: 10px; }
.th-vcta-txt { position: relative; z-index: 1; max-width: 640px; }
.th-vcta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.th-vcta.is-card .th-vcta-box { flex-direction: column; justify-content: center; text-align: center; padding-block: clamp(56px, 7vw, 96px); }
.th-vcta.is-card .th-desc { margin-inline: auto; }
.th-vcta-bg { position: absolute; inset: 0; }
.th-vcta-bg img { width: 100%; height: 100%; object-fit: cover; }
.th-vcta-bg::after { content: ""; position: absolute; inset: 0; background: color-mix(in oklab, var(--primary) 80%, transparent); }
/* العناصر (لماذا نحن، مميزاتنا…) */
.th-vitem { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 28px); border-radius: calc(var(--radius, 12px) * 1.2); background: var(--card); color: var(--foreground); text-decoration: none; box-shadow: inset 0 0 0 1px var(--border); transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s; }
a.th-vitem:hover { transform: translateY(-3px); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--gold), 0 18px 40px -28px rgba(0,0,0,.4); }
.th-vitem-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: calc(var(--radius, 12px) * .9); background: color-mix(in oklab, var(--gold) 14%, transparent); color: var(--gold); font-size: 21px; flex: none; }
.th-vitem-txt { display: grid; gap: 6px; }
.th-vitem-txt b { font-family: var(--font-head, var(--font-sans)); font-size: 1.08rem; font-weight: 600; }
.th-vitem-txt small { font-size: 14px; line-height: 1.8; opacity: .75; }
.th-bg-dark .th-vitem { background: color-mix(in oklab, var(--primary-foreground) 6%, transparent); color: var(--primary-foreground); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary-foreground) 14%, transparent); }
.th-vitems.is-steps .th-v-items, .th-vitems.is-timeline .th-v-items { counter-reset: none; }
.th-vitems.is-steps .th-v-items { grid-template-columns: repeat(var(--th-cols, 4), minmax(0, 1fr)); position: relative; }
.th-vitems.is-steps .th-vitem { box-shadow: none; background: none; padding-inline: 0; align-items: flex-start; }
.th-vitem-num { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-foreground); font-weight: 700; font-size: 17px; position: relative; z-index: 1; flex: none; }
.th-vitems.is-steps .th-v-items::before { content: ""; position: absolute; inset-inline: 23px; top: clamp(20px, 2.4vw, 28px); margin-top: 22px; height: 2px; background: color-mix(in oklab, var(--gold) 30%, transparent); }
.th-vitems.is-timeline .th-v-items { max-width: 760px; margin-inline: auto; gap: 0; }
.th-vitems.is-timeline .th-vitem { flex-direction: row; box-shadow: none; background: none; padding: 0 0 28px; position: relative; }
.th-vitems.is-timeline .th-vitem:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 22px; top: 46px; bottom: 0; width: 2px; background: color-mix(in oklab, var(--gold) 30%, transparent); }
.th-vitems.is-tiles .th-vitem { align-items: center; text-align: center; }
.th-vitem-img { display: block; aspect-ratio: 4 / 3; width: 100%; border-radius: var(--radius, 12px); overflow: hidden; }
.th-vitem-img img { width: 100%; height: 100%; object-fit: cover; }
.th-vchips { display: flex; flex-wrap: wrap; gap: 12px; }
.th-v .th-head.is-center + .th-vchips { justify-content: center; }
.th-vchip { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--card); color: var(--foreground); text-decoration: none; font-weight: 600; box-shadow: inset 0 0 0 1px var(--border); transition: background-color .25s, color .25s, box-shadow .25s; }
.th-vchip i { color: var(--gold); }
.th-vchip:hover { background: var(--gold); color: var(--gold-foreground); box-shadow: none; }
.th-vchip:hover i { color: inherit; }
.th-vitems-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.th-vitems-list.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; }
.th-vitems-list li { display: flex; gap: 14px; align-items: flex-start; }
.th-vitems-list li > i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: color-mix(in oklab, var(--gold) 14%, transparent); color: var(--gold); font-size: 16px; }
.th-vitems-list span { display: grid; gap: 4px; }
.th-vitems-list b { font-family: var(--font-head, var(--font-sans)); font-weight: 600; font-size: 1.05rem; }
.th-vitems-list small { font-size: 14px; line-height: 1.8; opacity: .75; }
.th-vitems-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.th-vitems-media { border-radius: calc(var(--radius, 12px) * 1.6); overflow: hidden; aspect-ratio: 4 / 5; background: var(--muted); }
.th-vitems-media img { width: 100%; height: 100%; object-fit: cover; }
/* شريط دعوة (اطلب عقارك / دلّني) */
.th-vband { padding-block: clamp(40px, 5vw, 64px); }
.th-vband-box { display: flex; align-items: center; gap: 22px 30px; flex-wrap: wrap; padding: clamp(24px, 3vw, 36px); border-radius: calc(var(--radius, 12px) * 1.4); background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.th-vband.is-accent .th-vband-box { background: color-mix(in oklab, var(--gold) 10%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--gold) 30%, transparent); }
.th-vband-ic { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-foreground); font-size: 24px; }
.th-vband-txt { flex: 1; min-width: 240px; }
.th-vband .th-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.th-vband .th-desc { margin-top: 8px; }
/* رأس الصفحة */
.th-vph { position: relative; padding: clamp(72px, 9vw, 120px) 0 clamp(60px, 7vw, 96px); color: var(--foreground); background: var(--muted); overflow: hidden; }
.th-vph.align-center { text-align: center; }
.th-vph.align-center .th-vph-desc { margin-inline: auto; }
.th-vph.align-center .th-vph-crumbs { justify-content: center; }
.th-vph.is-image, .th-vph.is-gradient { color: #fff; }
.th-vph.is-gradient { background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 60%, var(--gold))); }
.th-vph-bg { position: absolute; inset: 0; }
.th-vph-bg img { width: 100%; height: 100%; object-fit: cover; }
.th-vph-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.65)); }
.th-vph-in { position: relative; z-index: 1; }
.th-vph-title { margin: 0; font-family: var(--font-head, var(--font-sans)); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.th-vph-desc { margin: 14px 0 0; max-width: 62ch; font-size: 1.05rem; line-height: 1.85; opacity: .85; }
.th-vph .th-eyebrow { color: inherit; opacity: .85; }
.th-vph-crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13.5px; opacity: .85; }
.th-vph-crumbs a { color: inherit; text-decoration: none; }
.th-vph-crumbs a:hover { text-decoration: underline; }
.th-vph.is-minimal { background: var(--background); border-bottom: 1px solid var(--border); padding-bottom: clamp(36px, 4vw, 56px); }
/* الرؤية والرسالة */
.th-vvm-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.th-vvm.is-split .th-vvm-cards { grid-template-columns: 1fr; }
/* تواصل */
.th-vcontact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.th-vcontact.is-cards .th-vcontact-grid { grid-template-columns: 1fr; }
.th-vcontact-cards { display: grid; gap: 12px; }
.th-vcontact.is-cards .th-vcontact-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.th-vcontact-cards .th-vitem { flex-direction: row; align-items: center; padding: 16px 18px; }
.th-vcontact-cards .th-vitem-ic { width: 46px; height: 46px; font-size: 18px; }
.th-vform { display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: calc(var(--radius, 12px) * 1.4); background: var(--card); box-shadow: 0 30px 60px -40px rgba(0,0,0,.4), inset 0 0 0 1px var(--border); }
.th-vform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.th-vform label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--foreground); }
.th-vform input, .th-vform textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius, 12px); border: 1px solid var(--border); background: var(--background); color: var(--foreground); font: inherit; font-weight: 400; }
.th-vform input:focus, .th-vform textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 20%, transparent); }
.th-vform .th-btn { justify-self: start; }
/* قائمة الخدمات */
.th-vsvc.is-cards .th-v-items, .th-vsvc.is-icons .th-v-items { grid-template-columns: repeat(var(--th-cols, 3), minmax(0, 1fr)); }
.th-vsvc.is-icons .th-vitem { align-items: center; text-align: center; box-shadow: none; background: none; }
.th-vsvc.is-icons .th-vitem-ic { width: 72px; height: 72px; border-radius: 50%; font-size: 26px; }
.th-vsvc.is-list .th-v-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.th-vsvc.is-list .th-vitem { flex-direction: row; }
.th-vsvc.card-shadow .th-vitem { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px -26px rgba(0,0,0,.35); }
.th-vsvc.card-flat .th-vitem { box-shadow: none; background: none; padding-inline: 0; }
.th-vsvc-feats { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.th-vsvc-feats i { color: var(--gold); margin-inline-end: 8px; font-size: 12px; }
/* فريق العمل */
.th-vteam.is-grid .th-v-items, .th-vteam.is-compact .th-v-items { grid-template-columns: repeat(var(--th-cols, 4), minmax(0, 1fr)); }
.th-vteam.is-carousel .th-v-items { grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 3 * 22px) / 4)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.th-vteam.is-carousel .th-v-items > * { scroll-snap-align: start; }
.th-vmember { margin: 0; display: grid; gap: 14px; }
.th-vmember-img { display: block; aspect-ratio: 4 / 5; border-radius: calc(var(--radius, 12px) * 1.2); overflow: hidden; background: var(--muted); }
.th-vmember-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.16,1,.3,1); }
.th-vmember:hover .th-vmember-img img { transform: scale(1.04); }
.th-vmember figcaption { display: grid; gap: 4px; }
.th-vmember figcaption b { font-family: var(--font-head, var(--font-sans)); font-size: 1.05rem; font-weight: 600; }
.th-vmember figcaption small { font-size: 13.5px; opacity: .7; }
.th-vmember-actions { display: flex; gap: 8px; margin-top: 6px; }
.th-vmember-actions a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--muted); color: var(--foreground); text-decoration: none; transition: background-color .25s, color .25s; }
.th-vmember-actions a:hover { background: var(--gold); color: var(--gold-foreground); }
.th-vteam.is-compact .th-vmember { grid-template-columns: 64px 1fr; align-items: center; padding: 12px; border-radius: calc(var(--radius, 12px) * 1.2); background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.th-vteam.is-compact .th-vmember-img { aspect-ratio: 1; border-radius: 50%; }
@media (max-width: 991.98px) {
    .th-vhero.is-split .th-vhero-in, .th-vitems-split, .th-vcontact-grid, .th-vbanner.is-split .th-vbanner-box { grid-template-columns: 1fr; }
    .th-vhero-frame { aspect-ratio: 16 / 10; }
    .th-vti.is-overlap .th-vti-media, .th-vti.is-overlap.is-start .th-vti-media { grid-column: 1 / -1; }
    .th-vti.is-overlap .th-vti-card, .th-vti.is-overlap.is-start .th-vti-card { grid-column: 1 / -1; grid-row: 2; margin: -60px 16px 0; }
    .th-vstats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
    .th-vstats.is-band .th-vstat:nth-child(3), .th-vstats.is-minimal .th-vstat:nth-child(3) { border-inline-start: 0; }
    .th-vitems.is-steps .th-v-items, .th-vsvc.is-cards .th-v-items, .th-vsvc.is-icons .th-v-items, .th-vteam.is-grid .th-v-items, .th-vteam.is-compact .th-v-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-vitems.is-steps .th-v-items::before { display: none; }
    .th-vsvc.is-list .th-v-items, .th-vitems-list.is-2col { grid-template-columns: 1fr; }
    .th-vitems-media { aspect-ratio: 16 / 10; }
    .th-vteam.is-carousel .th-v-items { grid-auto-columns: minmax(220px, 44%); }
}
@media (max-width: 575.98px) {
    .th-vitems.is-steps .th-v-items, .th-vsvc.is-cards .th-v-items, .th-vvm-cards, .th-vform-row, .th-vteam.is-compact .th-v-items { grid-template-columns: 1fr; }
    .th-vti.is-stacked .th-vti-card { margin-top: -40px; width: 94%; }
    .th-vti.is-stacked .th-vti-media { aspect-ratio: 4 / 3; }
    .th-vteam.is-carousel .th-v-items { grid-auto-columns: 72%; }
}

/* =================== سلايدر بمحتوى متغيّر (themes/shared/sections/hero_carousel) =================== */
.th-hc { position: relative; overflow: hidden; color: #fff; background: var(--primary); }
.th-hc-slides { display: grid; }
.th-hc-slide { grid-area: 1 / 1; position: relative; display: grid; align-items: end; min-height: 100svh; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.th-hc.h-tall .th-hc-slide { min-height: 80svh; } .th-hc.h-medium .th-hc-slide { min-height: 62svh; }
.th-hc-slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.th-hc-media { position: absolute; inset: 0; overflow: hidden; }
.th-hc-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.th-hc-slide.is-on .th-hc-media img { transform: scale(1); }
.th-hc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,calc(var(--th-dim, .45) * .5)) 0%, rgba(0,0,0,var(--th-dim, .45)) 70%); }
.th-hc-in { position: relative; z-index: 1; width: 100%; padding-block: 150px 140px; }
.th-hc-copy { max-width: 720px; }
.th-hc-copy > * { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.th-hc-slide.is-on .th-hc-copy > * { opacity: 1; transform: none; }
.th-hc-slide.is-on .th-hc-copy > :nth-child(2) { transition-delay: .12s; } .th-hc-slide.is-on .th-hc-copy > :nth-child(3) { transition-delay: .22s; } .th-hc-slide.is-on .th-hc-copy > :nth-child(4) { transition-delay: .32s; }
.th-hc-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; opacity: .85; margin-bottom: 16px; }
.th-hc-eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.th-hc-title { margin: 0; font-family: var(--font-head, var(--font-sans)); font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4.6rem); line-height: 1.12; font-weight: 300; letter-spacing: -.02em; color: inherit; text-wrap: balance; }
.th-hc-lead { margin: 18px 0 0; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.9; opacity: .85; max-width: 56ch; }
.th-hc-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.th-hc-controls { position: absolute; inset-inline: 0; bottom: 34px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.th-hc-dots { display: flex; gap: 10px; }
.th-hc-dot { position: relative; width: 46px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.th-hc-dot span { position: absolute; inset-inline: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.th-hc-dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .th-hc-dot span::after { transform-origin: left; }
.th-hc-dot.is-on span::after { transform: scaleX(1); }
.th-hc.is-ticking .th-hc-dot.is-on span::after { transform: scaleX(0); animation: thHcTick var(--th-hc-ms, 6000ms) linear forwards; }
@keyframes thHcTick { to { transform: scaleX(1); } }
.th-hc-arrows { display: flex; gap: 8px; }
.th-hc-arrows button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06); color: #fff; font-size: 18px; cursor: pointer; backdrop-filter: blur(6px); transition: background-color .25s, color .25s; }
.th-hc-arrows button:hover { background: #fff; color: #111; }
/* في المنتصف */
.th-hc.is-centered .th-hc-slide { align-items: center; }
.th-hc.is-centered .th-hc-copy { margin-inline: auto; text-align: center; }
.th-hc.is-centered .th-hc-lead { margin-inline: auto; }
.th-hc.is-centered .th-hc-ctas { justify-content: center; }
.th-hc.is-centered .th-hc-title { font-weight: 700; }
.th-hc.is-centered .th-hc-controls { justify-content: center; }
.th-hc.is-centered .th-hc-arrows { display: none; }
/* نص + صورة */
.th-hc.is-split { background: var(--background); color: var(--foreground); }
.th-hc.is-split .th-hc-slide { min-height: 0; align-items: center; }
.th-hc.is-split .th-hc-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(110px, 12vw, 160px) clamp(90px, 9vw, 120px); }
.th-hc.is-split .th-hc-title { font-weight: 700; }
.th-hc-frame { aspect-ratio: 4 / 5; max-height: 620px; border-radius: calc(var(--radius, 12px) * 2); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.45); }
.th-hc-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.th-hc-slide.is-on .th-hc-frame img { transform: none; }
.th-hc.is-split .th-hc-dot span { background: color-mix(in oklab, var(--foreground) 18%, transparent); }
.th-hc.is-split .th-hc-dot span::after { background: var(--gold); }
.th-hc.is-split .th-hc-arrows button { border-color: var(--border); background: var(--card); color: var(--foreground); }
.th-hc.is-split .th-hc-arrows button:hover { background: var(--foreground); color: var(--background); }
.th-hc.is-split .th-hc-controls { bottom: 28px; }
@media (max-width: 991.98px) {
    .th-hc.is-split .th-hc-in { grid-template-columns: 1fr; }
    .th-hc-frame { aspect-ratio: 16 / 10; order: -1; }
    .th-hc-arrows { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .th-hc-slide, .th-hc-copy > *, .th-hc-media img, .th-hc-frame img { transition: none; transform: none; }
}

/* =================== خط ونص الواجهة (اختياري لكل أشكال الواجهة/السلايدر/الفيديو) — .th-htype =================== */
.th-htype.ts-s :is(h1, .th-hc-title) { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem) !important; }
.th-htype.ts-m :is(h1, .th-hc-title) { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem) !important; }
.th-htype.ts-l :is(h1, .th-hc-title) { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem) !important; }
.th-htype.ts-xl :is(h1, .th-hc-title) { font-size: clamp(2.8rem, 1.8rem + 4.6vw, 5.8rem) !important; line-height: 1.08 !important; }
.th-htype.tw-light :is(h1, .th-hc-title) { font-weight: 300 !important; }
.th-htype.tw-regular :is(h1, .th-hc-title) { font-weight: 400 !important; }
.th-htype.tw-semibold :is(h1, .th-hc-title) { font-weight: 600 !important; }
.th-htype.tw-heavy :is(h1, .th-hc-title) { font-weight: 800 !important; }
.th-htype.tf-head :is(h1, .th-hc-title) { font-family: var(--font-head, var(--font-sans)) !important; }
.th-htype.tf-body :is(h1, .th-hc-title) { font-family: var(--font-sans) !important; }
.th-htype.ls-s :is(.sg-hero-lead, .th-vhero-lead, .th-hc-lead, p.fs-6) { font-size: .95rem !important; }
.th-htype.ls-m :is(.sg-hero-lead, .th-vhero-lead, .th-hc-lead, p.fs-6) { font-size: 1.1rem !important; }
.th-htype.ls-l :is(.sg-hero-lead, .th-vhero-lead, .th-hc-lead, p.fs-6) { font-size: 1.3rem !important; line-height: 1.8 !important; }
.th-htype.ta-center :is(.sg-hero-copy, .th-vhero-copy, .th-hc-copy, .container-xl > .mx-auto) { text-align: center !important; margin-inline: auto !important; }
.th-htype.ta-center :is(.sg-hero-lead, .th-vhero-lead, .th-hc-lead, p.fs-6) { margin-inline: auto !important; }
.th-htype.ta-center :is(.sg-hero-ctas, .th-vhero-ctas, .th-hc-ctas, .d-flex) { justify-content: center !important; }
.th-htype.ta-start :is(.sg-hero-copy, .th-vhero-copy, .th-hc-copy, .container-xl > .mx-auto) { text-align: start !important; margin-inline: 0 auto !important; }
.th-htype.ta-start :is(.sg-hero-lead, .th-vhero-lead, .th-hc-lead, p.fs-6) { margin-inline: 0 auto !important; }
.th-htype.ta-start :is(.sg-hero-ctas, .th-vhero-ctas, .th-hc-ctas, .d-flex) { justify-content: flex-start !important; }

/* مقال (فقرات بعناوين) */
.th-varticle-body { display: grid; gap: clamp(18px, 2.4vw, 28px); max-width: 860px; }
.th-v .th-head.is-center + .th-varticle-body { margin-inline: auto; }
.th-varticle-block { display: flex; gap: 18px; align-items: flex-start; }
.th-varticle-block h3 { margin: 0 0 8px; font-family: var(--font-head, var(--font-sans)); font-size: 1.2rem; font-weight: 600; color: inherit; }
.th-varticle-block p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.95; opacity: .85; }
.th-varticle.is-plain .th-varticle-block + .th-varticle-block { padding-top: clamp(18px, 2.4vw, 28px); border-top: 1px solid var(--border); }
.th-varticle.is-cards .th-varticle-body { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.th-varticle.is-cards .th-varticle-block { padding: clamp(20px, 2.4vw, 28px); border-radius: calc(var(--radius, 12px) * 1.2); background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
@media (max-width: 767.98px) { .th-varticle.is-cards .th-varticle-body { grid-template-columns: 1fr; } }
/* نموذج واتساب */
.th-vwa-wrap { display: grid; gap: clamp(20px, 3vw, 40px); }
.th-vwa.is-card .th-vwa-wrap { max-width: 860px; margin-inline: auto; padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--radius, 12px) * 2); background: var(--primary); color: var(--primary-foreground); }
.th-vwa.is-card .th-vwa-txt { text-align: center; }
.th-vwa.is-card .th-desc { margin-inline: auto; color: color-mix(in oklab, var(--primary-foreground) 75%, transparent); }
.th-vwa.is-card .th-vform { background: transparent; box-shadow: none; padding: 0; }
.th-vwa.is-card .th-vform label { color: var(--primary-foreground); }
.th-vwa.is-card .th-vform input, .th-vwa.is-card .th-vform select, .th-vwa.is-card .th-vform textarea { background: color-mix(in oklab, var(--primary-foreground) 8%, transparent); border-color: color-mix(in oklab, var(--primary-foreground) 20%, transparent); color: var(--primary-foreground); }
.th-vwa.is-card .th-vform .th-btn { justify-self: stretch; justify-content: center; }
.th-vwa.is-split .th-vwa-wrap { grid-template-columns: 1fr 1.2fr; align-items: start; }
.th-vform select { width: 100%; padding: 12px 14px; border-radius: var(--radius, 12px); border: 1px solid var(--border); background: var(--background); color: var(--foreground); font: inherit; font-weight: 400; }
@media (max-width: 991.98px) { .th-vwa.is-split .th-vwa-wrap { grid-template-columns: 1fr; } }
/* قائمة الجوال: عنوان مجموعة من «القوائم» */
.th-mmenu-group { display: block; padding: 18px 4px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted-foreground); text-transform: uppercase; }
.th-mmenu.skin-signature .th-mmenu-group { color: color-mix(in oklab, var(--primary-foreground) 55%, transparent); padding-top: 22px; }
.th-more.is-active > summary { opacity: 1; font-weight: 600; }

/* غلاف <picture> للـ WebP ما يأثرش على مقاسات الصورة جوّاه */
.th-pic { display: contents; }

/* ─────────── الرئيسية على الموبايل: الكروت الطويلة صف بيتسحب بالعرض ───────────
   كانت كل الكروت تحت بعض (الرئيسية في «كلاسيك» ≈ 26 شاشة). الكارت التالي بيبان جزء منه
   عشان الزائر يعرف إنه يسحب. الكمبيوتر وصفحة كل العقارات زي ما هم. */
@media (max-width: 640px) {
    .page-home .ke-svc-grid,
    .page-home .ke-cards,
    .page-home .ke-cards-4,
    .page-home .sg-communities,
    .page-home .sg-listings {
        display: flex !important;
        gap: 14px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        margin-inline: -16px;
        padding: 4px 16px 18px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .page-home .ke-cards::-webkit-scrollbar,
    .page-home .ke-cards-4::-webkit-scrollbar,
    .page-home .sg-communities::-webkit-scrollbar,
    .page-home .sg-listings::-webkit-scrollbar { display: none; }
    .page-home .ke-svc-grid > *,
    .page-home .ke-cards > *,
    .page-home .ke-cards-4 > *,
    .page-home .sg-communities > *,
    .page-home .sg-listings > * {
        flex: 0 0 84%;
        max-width: 84%;
        scroll-snap-align: start;
        margin: 0 !important;
    }
    /* كروت المزايا الصغيرة: أعرض شوية من غير ما تملى الشاشة */
    .page-home .ke-cards-4 > * { flex-basis: 78%; max-width: 78%; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
    .page-home .ke-cards, .page-home .ke-cards-4, .page-home .sg-communities, .page-home .sg-listings { scroll-snap-type: none; }
}
@media (max-width: 640px) {
    /* كروت الأحياء فى «مودرن» محتواها كله absolute، فمن غير ارتفاع ثابت كانت بتختفي (ارتفاع 0) فى الصف */
    .page-home .sg-communities > .sg-comm { aspect-ratio: 4 / 5; height: auto; min-height: 300px; grid-column: auto; grid-row: auto; }
}

/* ── بانر «سينمائي بملء الشاشة» (ثابت — الحركة في signature.css/js) ── */
.th-cine { position: relative; background: #0E0D0B; color: #fff; }
.th-cine-stage { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.th-cine-media { position: absolute; inset: 0; z-index: -2; }
.th-cine-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-cine-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,9,8,.15) 0%, rgba(10,9,8,.1) 35%, rgba(10,9,8,.78) 100%); }
.th-cine-copy { width: 100%; padding-block: 0 clamp(56px, 10vh, 120px); }
.th-cine-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; margin-bottom: 16px; }
.th-cine-eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .7; }
.th-cine-title { margin: 0; max-width: 16ch; font-family: var(--font-head); font-weight: 200; font-size: clamp(2.4rem, 1.2rem + 5vw, 5.6rem); line-height: 1.08; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.th-cine-desc { margin: 18px 0 0; max-width: 46ch; font-size: clamp(1rem, .9rem + .4vw, 1.2rem); line-height: 1.75; color: rgba(255,255,255,.82); }
.th-cine-copy .th-btn { margin-top: 28px; }
/* الجوال: الكلام فوق أزرار التواصل العائمة */
@media (max-width: 640px) { .th-cine-copy { padding-bottom: 128px; } }
