/* ===== طبقة الحركة والإبهار ===== */

/* شاشة البداية: اللوجو بيتبني، وبعدين الشاشة كلها بتترفع لفوق كقطعة واحدة */
.fx-intro { position: fixed; inset: 0; z-index: 999; cursor: pointer; }
.fx-intro.open { pointer-events: none; }
.fx-intro .veil { position: absolute; inset: 0; background: var(--black); transition: transform 1.2s cubic-bezier(.76, 0, .24, 1); }
.fx-intro .veil::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 18px var(--gold); opacity: 0; transition: opacity .3s; }
.fx-intro .stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity .6s ease, transform 1.1s cubic-bezier(.76, 0, .24, 1); }
.fx-intro .mark { position: relative; width: 150px; height: 200px; }
.fx-intro .mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; clip-path: inset(100% 0 0 0); animation: build 1.5s cubic-bezier(.65, 0, .35, 1) .2s forwards; filter: drop-shadow(0 0 22px rgba(212, 168, 83, .45)); }
.fx-intro .mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 200, .9) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 150% 0; mix-blend-mode: overlay; -webkit-mask: url(../img/logo-mark.png) center / contain no-repeat; mask: url(../img/logo-mark.png) center / contain no-repeat; animation: sheen 1.1s ease 1.7s forwards; }
.fx-intro .name { font-size: 34px; font-weight: 900; letter-spacing: 2px; opacity: 0; transform: translateY(14px); animation: up .8s ease 1.3s forwards; }
.fx-intro .name small { display: block; text-align: center; font-size: 15px; font-weight: 500; color: var(--gold); letter-spacing: 6px; }
.fx-intro .bar { width: 180px; height: 2px; background: rgba(212, 168, 83, .2); overflow: hidden; }
.fx-intro .bar::after { content: ""; display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; animation: grow 2s ease forwards; }
.fx-intro.open .veil { transform: translateY(-100%); }
.fx-intro.open .veil::after { opacity: 1; }
.fx-intro.open .stage { opacity: 0; transform: translateY(-30vh); }
@keyframes build { to { clip-path: inset(0 0 0 0); } }
@keyframes sheen { to { background-position: -50% 0; } }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }

/* شريط تقدّم القراءة */
.progress { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 80; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold)); transform-origin: right; transform: scaleX(0); box-shadow: 0 0 12px var(--gold); }

/* تراب ذهبي */
.dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* الصورة الرئيسية بتظهر بهدوء: من زووم وضباب لوضوح */
.fx-ready .hero-bg { animation: heroIn 2.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes heroIn {
  from { opacity: 0; scale: 1.18; filter: blur(14px) brightness(.6); }
  to { opacity: 1; scale: 1; filter: none; }
}

/* العناوين كلمة كلمة */
.split .w { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(4deg); filter: blur(8px); transition: opacity .8s, transform .9s cubic-bezier(.2, .9, .3, 1.2), filter .8s; transition-delay: calc(var(--i) * 90ms + var(--d, 0ms)); }
.split.in .w { opacity: 1; transform: none; filter: none; }

/* لمعة ذهبية في النص */
.shine { background: linear-gradient(110deg, var(--gold-dark) 0%, var(--gold) 30%, #fff3cf 45%, var(--gold) 60%, var(--gold-dark) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: textSheen 4.5s ease-in-out infinite; }
@keyframes textSheen { 0%, 20% { background-position: 100% 0; } 80%, 100% { background-position: -100% 0; } }

/* شريط متحرك */
.ribbon { position: relative; overflow: hidden; background: var(--gold); color: #1a1206; transform: rotate(-1.5deg) scale(1.03); margin-block: -10px; z-index: 5; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.ribbon.green { background: var(--green-band); color: var(--text); transform: rotate(1.2deg) scale(1.03); margin-top: -46px; z-index: 4; border-block: 1px solid var(--gold); }
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon.green .ribbon-track { animation-direction: reverse; animation-duration: 46s; }
.ribbon span { display: flex; align-items: center; gap: 28px; padding: 14px 14px; font-size: 22px; font-weight: 800; white-space: nowrap; }
.ribbon span::after { content: "✦"; font-size: 16px; opacity: .7; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ميل ثلاثي الأبعاد + لمعة */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tilt .glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 230, 170, .22), transparent 45%); opacity: 0; transition: opacity .4s; z-index: 3; }
.tilt:hover .glare { opacity: 1; }

/* ستارة ذهبية على الصور */
.curtain { position: relative; overflow: hidden; }
.curtain::before { content: ""; position: absolute; inset: 0; z-index: 4; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); transform-origin: left; transition: transform 1.1s cubic-bezier(.77, 0, .18, 1) .15s; pointer-events: none; }
.curtain img { transform: scale(1.35); transition: transform 1.8s cubic-bezier(.2, .8, .2, 1) .3s; }
.curtain.in::before { transform: scaleX(0); }
.curtain.in img { transform: scale(1); }

/* أنواع ظهور */
.reveal.from-right { transform: translateX(-60px); }
.reveal.from-left { transform: translateX(60px); }
.reveal.zoom { transform: scale(.85); }
.reveal.in.from-right, .reveal.in.from-left, .reveal.in.zoom { transform: none; }
.stagger > * { transition-delay: calc(var(--i, 0) * 110ms) !important; }

/* رقم 37 مرسوم بالخط */
.draw-no { position: absolute; left: 3%; bottom: 8%; width: min(46vw, 560px); z-index: -1; pointer-events: none; opacity: .9; }
.draw-no text { font-family: Roboto, sans-serif; font-weight: 900; font-size: 300px; fill: transparent; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: drawStroke 3.2s ease 1.2s forwards, fillIn 1.5s ease 4s forwards; }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: rgba(212, 168, 83, .08); } }

/* السهم اللي بينزل */
.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 30px; height: 50px; border: 2px solid rgba(212, 168, 83, .6); border-radius: 16px; z-index: 2; }
.scroll-cue::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 10px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }

/* توهج يتبع الماوس في الكروت */
.p-card, .feature, .pay { --mx: 50%; --my: 50%; }
.feature::before, .pay::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx) var(--my), var(--gold), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.feature, .pay { position: relative; }
.feature:hover::before, .pay:hover::before { opacity: 1; }

/* نبض على أيقونات المميزات */
.feature .ico { position: relative; }
.feature .ico::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; transform: scale(.8); }
.feature:hover .ico::after { animation: ring 1.2s ease-out infinite; }
@keyframes ring { 0% { opacity: .8; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.4); } }
.feature:hover .ico svg { animation: wiggle .6s ease; }
@keyframes wiggle { 30% { transform: rotate(-12deg) scale(1.15); } 60% { transform: rotate(8deg); } }

@media (max-width: 760px) {
  .ribbon span { font-size: 18px; padding: 10px; }
  .draw-no { width: 70vw; opacity: .5; bottom: auto; top: 14%; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-intro, .dust, .scroll-cue, .draw-no { display: none !important; }
  .fx-ready .hero-bg { animation: none; }
  .split .w { opacity: 1; transform: none; filter: none; transition: none; }
  .shine { animation: none; }
  .ribbon-track { animation: none; }
  .curtain::before { display: none; }
  .curtain img { transform: none; }
}

/* تبديل الثيم: دايرة بتتمدد من الزرار */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: themeWipe .9s cubic-bezier(.7, 0, .2, 1); }
@keyframes themeWipe { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 0)); } to { clip-path: circle(150vmax at var(--vx, 50%) var(--vy, 0)); } }

/* ===== جولة 3D ===== */
.tour { position: fixed; inset: 0; z-index: 1100; display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(ellipse at 50% 60%, #12291e 0%, #050a07 70%); color: #f3efe6; animation: fadeIn .4s ease; }
.tour-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(212, 168, 83, .2); }
.tour-title { display: flex; align-items: center; gap: 14px; }
.tour-title b { display: block; font-size: 21px; }
.tour-title small { color: #c9c3b6; font-size: 15px; }
.tour-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #e8c77f, #d4a853, #9c7a36); color: #1a1206; font-family: Roboto, sans-serif; font-weight: 900; font-size: 20px; }
.tour-x { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 22px; color: #fff; }
.tour-x:hover { background: #d4a853; color: #000; }
.tour-stage { position: relative; overflow: hidden; perspective: 1400px; perspective-origin: 50% 35%; touch-action: none; cursor: grab; user-select: none; }
.tour-stage:active { cursor: grabbing; }
.tour-floor { position: absolute; left: 50%; top: 62%; width: 140%; height: 90%; translate: -50% -50%; transform: rotateX(72deg); background: radial-gradient(circle, rgba(212, 168, 83, .14) 1px, transparent 1.5px) 0 0 / 34px 34px; -webkit-mask: radial-gradient(ellipse at center, #000 20%, transparent 65%); mask: radial-gradient(ellipse at center, #000 20%, transparent 65%); pointer-events: none; }
.tour-board { position: absolute; left: 50%; top: 50%; width: min(78vw, 880px); aspect-ratio: 1110 / 680; transform-style: preserve-3d; will-change: transform; }
.tour-board img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px rgba(212, 168, 83, .45), 0 50px 80px rgba(0, 0, 0, .7); pointer-events: none; -webkit-user-drag: none; }
.tour-board::before { content: ""; position: absolute; inset: 0; border-radius: 10px; transform: translateZ(-18px); background: linear-gradient(135deg, #2a2418, #0a0806); box-shadow: 0 0 0 1px rgba(212, 168, 83, .3); }
.tour-board::after { content: ""; position: absolute; inset: 0; border-radius: 10px; transform: translateZ(-9px); background: #15110a; }
.tour-spots { position: absolute; inset: 0; transform-style: preserve-3d; }
.tour-spot { position: absolute; transform-style: preserve-3d; transform: translateZ(2px); }
.tour-spot > span { display: block; }
.tour-spot .pin { scale: calc(1 / var(--s, 1)); position: absolute; left: 0; bottom: 0; translate: -50% 0; transform-origin: 50% 100%; transform: rotateZ(calc(-1 * var(--rz))) rotateX(calc(-1 * var(--rx))) translateY(-6px); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #d4a853; color: #1a1206; font: 900 17px Roboto, sans-serif; box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 0 6px rgba(212, 168, 83, .25); animation: spotPulse 2s ease-in-out infinite; }
.tour-spot .lbl { scale: calc(1 / var(--s, 1)); position: absolute; left: 0; bottom: 48px; translate: -50% 0; transform: rotateZ(calc(-1 * var(--rz))) rotateX(calc(-1 * var(--rx))); transform-origin: 50% 100%; white-space: nowrap; background: rgba(5, 10, 7, .85); border: 1px solid #d4a853; color: #fff; padding: 2px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; opacity: 0; transition: opacity .25s; pointer-events: none; }
.tour-spot:hover .lbl, .tour-spot.on .lbl { opacity: 1; }
.tour-spot.on .pin { background: #fff; animation: none; box-shadow: 0 0 0 10px rgba(255, 255, 255, .2), 0 0 40px #d4a853; }
@keyframes spotPulse { 50% { box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 0 14px rgba(212, 168, 83, 0); } }
.tour-hint { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; display: flex; gap: 10px; align-items: center; background: rgba(5, 10, 7, .8); border: 1px solid rgba(212, 168, 83, .4); padding: 10px 20px; border-radius: 999px; font-size: 16px; font-weight: 700; transition: opacity .5s; pointer-events: none; white-space: nowrap; animation: hintBob 2.4s ease-in-out infinite; }
.tour-hint svg { width: 22px; height: 22px; color: #d4a853; }
.tour-hint.gone { opacity: 0; }
@keyframes hintBob { 50% { transform: translateY(-6px); } }
.room-card { position: absolute; top: 20px; right: 20px; width: min(320px, calc(100% - 40px)); background: rgba(10, 18, 14, .92); border: 1px solid #d4a853; border-radius: 18px; padding: 20px; backdrop-filter: blur(8px); animation: popIn .45s cubic-bezier(.2, 1.3, .4, 1); }
.room-card b { display: block; font-size: 24px; color: #d4a853; margin-bottom: 6px; }
.room-card p { color: #d6d0c3; font-size: 17px; margin-bottom: 14px; }
.room-card .btn { width: 100%; min-height: 50px; font-size: 17px; }
.tour-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(212, 168, 83, .2); flex-wrap: wrap; }
.tour-rooms { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tour-rooms button, .tour-ctrl button { min-height: 48px; padding: 6px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(212, 168, 83, .25); color: #f3efe6; font-weight: 700; font-size: 16px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.tour-rooms button .num { width: 26px; height: 26px; border-radius: 50%; background: #d4a853; color: #1a1206; display: grid; place-items: center; font-size: 14px; }
.tour-rooms button.active, .tour-ctrl button.active, .tour-rooms button:hover, .tour-ctrl button:hover { background: #1f4a35; border-color: #d4a853; }
.tour-ctrl { display: flex; gap: 6px; }
.tour-ctrl [data-c=in], .tour-ctrl [data-c=out], .tour-ctrl [data-c=spin] { width: 48px; justify-content: center; font-size: 22px; padding: 0; }
.unit-plan .tour-cta { position: absolute; top: 14px; left: 14px; z-index: 4; display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #e8c77f, #d4a853); color: #1a1206; padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: 15px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); animation: spotPulse 2.4s infinite; }
@media (max-width: 760px) {
  .tour-board { width: 94vw; }
  .tour-bar { flex-direction: column; align-items: stretch; }
  .tour-ctrl { justify-content: center; }
  .room-card { top: auto; bottom: 14px; right: 14px; }
  .tour-hint { font-size: 14px; }
}

/* ===== الخريطة ===== */
.map-wrap { position: relative; isolation: isolate; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map { height: clamp(380px, 60vh, 560px); background: #0a120e; z-index: 1; }
.map-tag { position: absolute; top: 16px; right: 16px; z-index: 500; background: rgba(5, 10, 7, .85); color: #f3efe6; border: 1px solid #d4a853; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.map-tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #e0544a; box-shadow: 0 0 0 0 rgba(224, 84, 74, .6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(224, 84, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 84, 74, 0); } }
.plot-pin { position: relative; }
.plot-pin .dot { position: absolute; inset: 8px; border-radius: 50%; background: linear-gradient(135deg, #e8c77f, #d4a853 60%, #9c7a36); color: #1a1206; display: grid; place-items: center; font: 900 15px Roboto, sans-serif; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.plot-pin .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #d4a853; animation: plotRing 2.2s ease-out infinite; }
.plot-pin .ring.r2 { animation-delay: 1.1s; }
@keyframes plotRing { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.leaflet-popup-content-wrapper { background: #0f1a15; color: #f3efe6; border: 1px solid #d4a853; border-radius: 16px; font-family: var(--font); }
.leaflet-popup-tip { background: #d4a853; }
.leaflet-popup-content { margin: 12px; }
.map-pop { display: grid; gap: 4px; text-align: right; direction: rtl; min-width: 210px; }
.map-pop img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.map-pop b { font-size: 20px; color: #d4a853; }
.map-pop span { color: #c9c3b6; font-size: 14px; }
.map-pop em { font-style: normal; justify-self: start; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.map-pop em.brick { background: #9e3b2b; color: #fff; } .map-pop em.gold { background: #d4a853; color: #000; } .map-pop em.green { background: #1e7a4c; color: #fff; }
.map-pop-btns { display: flex; gap: 6px; margin-top: 8px; }
.map-pop-btns .btn { flex: 1; min-height: 42px; font-size: 15px; padding: 6px 10px; color: inherit; }
.map-pop-btns .btn-gold { color: #1a1206 !important; }
.map-pop-btns .btn-green { color: #fff !important; }
.map-pop-btns .btn svg { width: 18px; height: 18px; }
.map-switch { display: flex; background: rgba(5, 10, 7, .85); border: 1px solid #d4a853; border-radius: 12px; overflow: hidden; }
.map-switch button { padding: 8px 14px; color: #f3efe6; font-family: var(--font); font-weight: 700; font-size: 14px; }
.map-switch button.on { background: #d4a853; color: #1a1206; }
.leaflet-control-zoom a { background: #0f1a15 !important; color: #d4a853 !important; border-color: rgba(212, 168, 83, .4) !important; width: 40px !important; height: 40px !important; line-height: 40px !important; }
.map-note { margin-top: 14px; color: var(--muted); font-size: 16px; text-align: center; }

/* ===== مشهد: من رسمة لعمارة ===== */
.scene { position: relative; height: 380vh; background: #050a07; color: #f3efe6; --p: 0; }
.scene-sticky { position: sticky; top: 78px; height: calc(100svh - 78px); display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto 1fr; gap: 10px 40px; padding: 26px max(16px, calc((100vw - 1200px) / 2)) 30px; overflow: hidden; }
.scene-head { grid-column: 1 / -1; text-align: center; }
.scene-head h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.3; }
.scene-img { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(212, 168, 83, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); min-height: 0; }
.scene-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-img .sketch { transform: scale(calc(1.08 - var(--p) * .08)); }
.scene-img .real { clip-path: inset(calc((1 - var(--b, 0)) * 100%) 0 0 0); transform: scale(calc(1.08 - var(--p) * .08)); }
.scene-img .scan { position: absolute; left: 0; right: 0; height: 3px; top: calc((1 - var(--b, 0)) * 100%); background: linear-gradient(90deg, transparent, #fff3cf, #d4a853, #fff3cf, transparent); box-shadow: 0 0 24px 6px rgba(212, 168, 83, .7); opacity: calc(var(--b, 0) * (1 - var(--b, 0)) * 6); }
.scene-meter { position: absolute; bottom: 18px; right: 18px; background: rgba(5, 10, 7, .8); border: 1px solid #d4a853; border-radius: 16px; padding: 10px 18px; text-align: center; backdrop-filter: blur(6px); }
.scene-meter b { display: block; font-size: 38px; line-height: 1; color: #d4a853; }
.scene-meter span { font-size: 14px; color: #c9c3b6; }
.scene-steps { list-style: none; display: flex; flex-direction: column; justify-content: center; gap: 12px; position: relative; padding-inline-start: 26px; }
.scene-steps::before { content: ""; position: absolute; right: 8px; top: 10%; bottom: 10%; width: 2px; background: rgba(212, 168, 83, .2); }
.scene-steps::after { content: ""; position: absolute; right: 8px; top: 10%; width: 2px; height: calc(80% * var(--p)); background: #d4a853; box-shadow: 0 0 12px #d4a853; }
.scene-steps li { position: relative; padding: 14px 18px; border-radius: 16px; border: 1px solid transparent; opacity: .35; transform: translateX(-10px); transition: .5s cubic-bezier(.2, .8, .2, 1); }
.scene-steps li::before { content: ""; position: absolute; right: -24px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: #050a07; border: 2px solid rgba(212, 168, 83, .4); transition: .4s; }
.scene-steps li.on { opacity: 1; transform: none; background: rgba(31, 74, 53, .45); border-color: rgba(212, 168, 83, .4); }
.scene-steps li.on::before { background: #d4a853; border-color: #d4a853; box-shadow: 0 0 0 6px rgba(212, 168, 83, .2); }
.scene-steps .num { color: #d4a853; font-size: 15px; }
.scene-steps b { display: block; font-size: 24px; }
.scene-steps p { color: #c9c3b6; font-size: 17px; }
@media (max-width: 900px) {
  .scene { height: 340vh; }
  .scene-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding-top: 16px; padding-bottom: 90px; gap: 12px; }
  .scene-steps { flex-direction: row; padding: 0; gap: 0; }
  .scene-steps::before, .scene-steps::after, .scene-steps li::before { display: none; }
  .scene-steps li { display: none; padding: 12px 16px; transform: none; }
  .scene-steps li.on { display: block; flex: 1; }
  .scene-meter b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene { height: auto; }
  .scene-sticky { position: relative; top: 0; height: auto; }
  .scene-img { aspect-ratio: 3/2; }
  .scene-steps li { opacity: 1; transform: none; display: block; }
}

/* ===== كاروسيل الريلز ===== */
.reels-wrap { --rw: clamp(230px, 64vw, 290px); }
.reels { position: relative; }
.reels-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 30px calc(50% - var(--rw) / 2) 20px; outline: none; -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.reels-track::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 var(--rw); scroll-snap-align: center; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s, filter .5s; transform: scale(.88); opacity: .82; filter: brightness(.8); cursor: pointer; }
.reel.active { transform: scale(1); opacity: 1; filter: none; cursor: default; }
.reel:not(.active):hover { opacity: 1; filter: none; transform: scale(.9); }
.reel-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000; border: 1.5px solid rgba(212, 168, 83, .45); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); transition: box-shadow .5s, border-color .5s; }
.reel.active .reel-frame { border-color: var(--gold); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 6px rgba(212, 168, 83, .12), 0 0 60px rgba(212, 168, 83, .18); }
.reel:not(.active) .reel-frame iframe { pointer-events: none; }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; background: transparent; }
.reel-poster { position: absolute; inset: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: radial-gradient(circle at 50% 35%, #1f4a35, #0e3522 50%, #050a07); color: #c9c3b6; font-size: 14px; }
.reel-poster img { height: 74px; opacity: .9; }
.reel-poster b { font-size: 22px; color: #f3efe6; }
.reel-poster small { color: #c9c3b6; font-size: 14px; margin-top: -10px; }
.reel-poster::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(212, 168, 83, .25); border-radius: 18px; pointer-events: none; }
.reel-play { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #e8c77f, #d4a853 55%, #9c7a36); color: #1a1206; box-shadow: 0 0 0 10px rgba(212, 168, 83, .15), 0 12px 30px rgba(0, 0, 0, .5); animation: breathe 2.6s ease-in-out infinite; }
.reel-play svg { width: 30px; height: 30px; margin-inline-start: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.reel-no { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(5, 10, 7, .75); color: #d4a853; border: 1px solid rgba(212, 168, 83, .5); border-radius: 999px; padding: 0 12px; font-size: 14px; pointer-events: none; }
.reel-full { margin: 14px auto 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 16px; opacity: 0; transform: translateY(-8px); transition: .4s; pointer-events: none; }
.reel-full svg { width: 20px; height: 20px; color: var(--gold); }
.reel.active .reel-full { opacity: 1; transform: none; pointer-events: auto; }
.reel-full:hover { border-color: var(--gold); color: var(--gold); }
.reels-arrow { position: absolute; top: calc(50% - 30px); z-index: 3; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1a1206; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: .25s; }
.reels-arrow svg { width: 24px; height: 24px; }
.reels-arrow.prev { right: max(0px, calc(50% - var(--rw) / 2 - 90px)); }
.reels-arrow.next { left: max(0px, calc(50% - var(--rw) / 2 - 90px)); }
.reels-arrow.next svg { transform: scaleX(-1); }
.reels-arrow:hover:not(:disabled) { transform: scale(1.1); }
.reels-arrow:disabled { opacity: 0; pointer-events: none; }
.reels-bar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
.reels-count { color: var(--gold); font-size: 18px; letter-spacing: 1px; min-width: 70px; text-align: center; }
.reels-dots { display: flex; gap: 8px; }
.reels-dots button { width: 10px; height: 10px; border-radius: 5px; background: var(--line); transition: .35s; padding: 0; }
.reels-dots button.on { width: 30px; background: var(--gold); }
@media (max-width: 600px) { .reels-arrow { top: auto; bottom: -62px; width: 52px; height: 52px; } .reels-arrow.prev { right: 12px; } .reels-arrow.next { left: 12px; } .reels-bar { min-height: 52px; } }

/* ===== المسرح ===== */
.theater { position: fixed; inset: 0; z-index: 1200; display: grid; grid-template-columns: auto auto auto; align-items: center; justify-content: center; gap: 28px; background: rgba(2, 5, 3, .95); backdrop-filter: blur(10px); color: #f3efe6; animation: fadeIn .35s ease; padding: 16px; }
.theater-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(212, 168, 83, .14), transparent 55%); }
.theater-screen { position: relative; height: min(84svh, 760px); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid #d4a853; box-shadow: 0 0 0 8px rgba(212, 168, 83, .1), 0 40px 120px rgba(0, 0, 0, .8), 0 0 100px rgba(212, 168, 83, .2); animation: popIn .5s cubic-bezier(.2, 1.2, .4, 1); }
.theater-screen iframe { width: 100%; height: 100%; border: 0; }
.theater-nav { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(212, 168, 83, .4); color: #d4a853; transition: .25s; }
.theater-nav svg { width: 26px; height: 26px; }
.theater-nav.next svg { transform: scaleX(-1); }
.theater-nav:hover { background: #d4a853; color: #1a1206; transform: scale(1.08); }
.theater-x { position: absolute; top: 18px; left: 18px; z-index: 2; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 22px; color: #fff; }
.theater-x:hover { background: #d4a853; color: #000; }
.theater-info { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 16px; background: rgba(5, 10, 7, .8); border: 1px solid rgba(212, 168, 83, .35); border-radius: 999px; padding: 8px 18px; font-size: 15px; white-space: nowrap; }
.theater-info a { display: flex; align-items: center; gap: 6px; color: #d4a853; font-weight: 700; }
.theater-info svg { width: 18px; height: 18px; }
@media (max-width: 700px) {
  .theater { grid-template-columns: 1fr; gap: 0; padding: 70px 10px 80px; }
  .theater-screen { height: auto; width: 100%; max-height: calc(100svh - 160px); justify-self: center; }
  .theater-nav { position: absolute; bottom: 14px; width: 54px; height: 54px; z-index: 2; }
  .theater-nav.prev { right: 14px; } .theater-nav.next { left: 14px; }
  .theater-info { bottom: 74px; }
}

/* ===== زراير الإغلاق: علامة X مرسومة بخطين عشان تبقى في النص بالظبط ===== */
.modal-x, .lb-close, .tour-x, .theater-x { display: grid !important; grid-template: 1fr / 1fr; place-items: center; padding: 0; font-size: 0 !important; line-height: 0; color: #fff; }
.modal-x::before, .modal-x::after, .lb-close::before, .lb-close::after, .tour-x::before, .tour-x::after, .theater-x::before, .theater-x::after {
  content: ""; grid-area: 1 / 1; width: 42%; height: 2.5px; border-radius: 2px; background: currentColor; transform: rotate(45deg); transition: transform .25s;
}
.modal-x::after, .lb-close::after, .tour-x::after, .theater-x::after { transform: rotate(-45deg); }
.modal-x:hover::before, .lb-close:hover::before, .tour-x:hover::before, .theater-x:hover::before { transform: rotate(135deg); }
.modal-x:hover::after, .lb-close:hover::after, .tour-x:hover::after, .theater-x:hover::after { transform: rotate(45deg); }
.modal-x { color: var(--text); }
.modal-x:hover, .lb-close:hover, .tour-x:hover, .theater-x:hover { color: #1a1206; }
/* الجولة ما تعرضش أوسع من الشاشة (صف الأوض بيتسحب جوه نفسه) */
.tour { grid-template-columns: minmax(0, 1fr); }
.tour-bar, .tour-top { min-width: 0; }
.tour-rooms { min-width: 0; flex: 1; }
.tour-title { min-width: 0; }
.tour-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-x { flex-shrink: 0; }

/* ===== لوحة المساحات في الجولة 3D ===== */
.demo-tag { display: inline-block; font-size: 12px; font-weight: 700; color: #1a1206; background: #e8c77f; padding: 1px 10px; border-radius: 999px; white-space: nowrap; }
.tour-spot .lbl em { font-style: normal; color: #d4a853; margin-inline-start: 6px; }
.tour-rooms button em { font-style: normal; font-size: 13px; color: #d4a853; opacity: .9; }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.rc-head b { margin: 0 !important; }
.rc-size { display: flex; align-items: baseline; gap: 6px; }
.rc-size strong { font-size: 46px; line-height: 1.1; color: #fff; }
.rc-size span { font-size: 20px; color: #d4a853; font-weight: 700; }
.rc-dims { color: #c9c3b6; font-size: 16px; margin-bottom: 10px; text-align: right; }
.rc-share { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rc-share i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #9c7a36, #e8c77f); border-radius: 4px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.rc-share-txt { display: block; color: #c9c3b6; font-size: 14px; margin: 6px 0 10px; }
.areas { position: absolute; top: 16px; left: 16px; bottom: 16px; width: min(360px, calc(100% - 32px)); display: flex; flex-direction: column; background: rgba(10, 18, 14, .94); border: 1px solid #d4a853; border-radius: 20px; backdrop-filter: blur(10px); animation: popIn .4s cubic-bezier(.2, 1.2, .4, 1); overflow: hidden; z-index: 3; }
.areas-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(212, 168, 83, .25); }
.areas-head b { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.areas-head svg { width: 22px; height: 22px; color: #d4a853; }
.areas-list { flex: 1; overflow-y: auto; padding: 8px; }
.areas-list button { width: 100%; display: grid; grid-template-columns: 30px 1fr 70px auto; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: #f3efe6; text-align: right; transition: background .2s; }
.areas-list button:hover, .areas-list button.active { background: rgba(31, 74, 53, .8); }
.areas-list .num:first-child { width: 28px; height: 28px; border-radius: 50%; background: #d4a853; color: #1a1206; display: grid; place-items: center; font-size: 14px; }
.areas-list .an { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.3; }
.areas-list .an small { color: #9d978a; font-weight: 500; font-size: 13px; text-align: right; }
.areas-list .ab { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.areas-list .ab i { display: block; height: 100%; background: linear-gradient(90deg, #9c7a36, #e8c77f); border-radius: 3px; animation: barIn .9s cubic-bezier(.2, .8, .2, 1) both; transform-origin: right; }
.areas-list button.out .ab i { background: linear-gradient(90deg, #1f4a35, #4ed693); }
.areas-list button > b { color: #d4a853; font-size: 17px; min-width: 44px; text-align: left; }
@keyframes barIn { from { transform: scaleX(0); } }
.areas-foot { border-top: 1px solid rgba(212, 168, 83, .25); padding: 12px 18px 16px; display: grid; gap: 6px; font-size: 15px; }
.areas-foot div { display: flex; justify-content: space-between; color: #c9c3b6; }
.areas-foot b { color: #f3efe6; }
.areas-foot .total { color: #fff; font-size: 18px; font-weight: 800; padding-top: 6px; border-top: 1px dashed rgba(212, 168, 83, .3); }
.areas-foot .total b { color: #d4a853; font-size: 20px; }
.areas-foot .extra { color: #4ed693; font-size: 14px; }
.areas-btn.active { background: #d4a853 !important; color: #1a1206 !important; }
@media (max-width: 760px) {
  .areas { top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; max-height: 72%; }
  .rc-size strong { font-size: 38px; }
}

/* ===== الإعلان: الإمام في الحي المتميز ===== */
.promo-pill { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 16px 6px 8px; border-radius: 999px; border: 1px solid var(--gold); background: rgba(212, 168, 83, .12); backdrop-filter: blur(8px); font-size: 17px; font-weight: 700; color: var(--text); transition: .25s; animation: up .7s .4s both; opacity: 0; transform: translateY(10px); }
.promo-pill b { background: var(--gold); color: #1a1206; border-radius: 999px; padding: 0 12px; font-size: 15px; }
.promo-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5a3c; box-shadow: 0 0 0 0 rgba(255, 90, 60, .6); animation: live 1.6s infinite; flex: none; }
.promo-pill .arr { color: var(--gold); transition: transform .25s; }
.promo-pill:hover { background: rgba(212, 168, 83, .22); box-shadow: 0 0 30px rgba(212, 168, 83, .3); }
.promo-pill:hover .arr { transform: translateX(-5px); }

.promo { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(70px, 9vw, 110px) clamp(80px, 10vw, 130px); color: var(--text);
  background: radial-gradient(circle at 15% 30%, rgba(212, 168, 83, .16), transparent 42%), linear-gradient(135deg, #0e3522 0%, #08170f 55%, #050a07 100%); border-top: 1px solid var(--gold); }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(212, 168, 83, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 168, 83, .07) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 30% 50%, #000, transparent 75%); }
.promo-glow { position: absolute; z-index: -1; width: 620px; aspect-ratio: 1; left: -140px; top: 50%; translate: 0 -50%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(212, 168, 83, .25), transparent 30%, rgba(31, 74, 53, .6) 55%, transparent 80%, rgba(212, 168, 83, .25)); filter: blur(60px); animation: spin 18s linear infinite; }
.promo-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.promo-info > * { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.promo.in .promo-info > * { opacity: 1; transform: none; }
.promo.in .promo-info > :nth-child(2) { transition-delay: .08s; } .promo.in .promo-info > :nth-child(3) { transition-delay: .16s; }
.promo.in .promo-info > :nth-child(4) { transition-delay: .24s; } .promo.in .promo-info > :nth-child(5) { transition-delay: .32s; }
.promo.in .promo-info > :nth-child(n+6) { transition-delay: .4s; }
.promo-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.promo-kicker i { width: 11px; height: 11px; border-radius: 50%; background: #ff5a3c; animation: live 1.6s infinite; }
.promo h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1.12; font-weight: 900; }
.promo h2 .gold { display: inline-block; background: linear-gradient(100deg, var(--gold-dark), #f3d58f 45%, var(--gold) 60%, var(--gold-dark)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: textSheen 5s ease-in-out infinite; }
.promo-place { display: inline-block; margin: 10px 0 26px; background: var(--green-band); border-inline-start: 4px solid var(--gold); padding: 2px 18px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }
.promo-facts { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.promo-facts > div { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(0, 0, 0, .28); }
.promo-facts b { font-size: clamp(40px, 5vw, 56px); line-height: 1; color: var(--gold); }
.promo-facts span { font-size: 18px; font-weight: 700; line-height: 1.3; max-width: 6em; }
.promo-text { color: var(--muted); font-size: 19px; max-width: 580px; margin-bottom: 26px; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.promo-actions .btn-gold { animation: breathe 2.8s ease-in-out infinite; }
.promo-phones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--gold); font-size: 20px; margin-bottom: 18px; }
.promo-phones svg { width: 22px; height: 22px; }
.promo-phones a:hover { text-decoration: underline; }
.promo-phones span { opacity: .4; }
.promo-tag { font-weight: 800; font-size: 19px; border-inline-start: 3px solid var(--gold); padding-inline-start: 14px; }

.promo-badge { position: relative; width: min(430px, 100%); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; opacity: 0; transform: scale(.7) rotate(-12deg); transition: opacity .9s, transform 1.1s cubic-bezier(.2, 1.3, .4, 1); }
.promo.in .promo-badge { opacity: 1; transform: none; }
.promo-badge::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1.5px dashed rgba(212, 168, 83, .45); animation: spin 40s linear infinite reverse; }
.promo-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 30s linear infinite; }
.promo-ring circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 1; opacity: .8; }
.promo-ring .r2 { stroke-width: 1.5; stroke-dasharray: .6 .4; opacity: .5; }
@media (max-width: 560px) { .promo-pill .pp-x { display: none; } }
.promo-core { position: relative; width: 60%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; overflow: hidden; color: #1a1206;
  background: radial-gradient(circle at 32% 28%, #f6dc9c, var(--gold) 48%, var(--gold-dark)); box-shadow: 0 30px 80px rgba(212, 168, 83, .35), inset 0 -14px 30px rgba(0, 0, 0, .25), 0 0 0 10px rgba(212, 168, 83, .12); animation: hintBob 4s ease-in-out infinite; }
.promo-core b { font-size: clamp(64px, 9vw, 108px); line-height: .95; font-weight: 900; }
.promo-core small { font-size: clamp(18px, 2vw, 24px); font-weight: 800; line-height: 1.2; }
.promo-core::after { content: ""; position: absolute; inset: -50% auto -50% -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: rotate(20deg); animation: coreShine 4.5s ease-in-out infinite; }
@keyframes coreShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.promo-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--ink); border: 1px solid var(--gold); font-weight: 800; font-size: 17px; box-shadow: var(--shadow); white-space: nowrap; animation: hintBob 3.4s ease-in-out infinite; }
.promo-chip svg { width: 20px; height: 20px; color: var(--gold); }
.promo-chip.c1 { top: 6%; right: -2%; }
.promo-chip.c2 { bottom: 8%; left: -2%; animation-delay: -1.7s; }

.promo-pop { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: min(400px, calc(100% - 32px)); display: flex; gap: 14px; align-items: center; padding: 18px 18px 18px 50px; border-radius: 22px; color: var(--text);
  background: linear-gradient(160deg, #1f4a35, #0a120e 70%); border: 1px solid var(--gold); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 6px rgba(212, 168, 83, .1);
  opacity: 0; transform: translateY(40px) scale(.96); pointer-events: none; transition: opacity .45s, transform .6s cubic-bezier(.2, 1.3, .4, 1); }
.promo-pop.show { opacity: 1; transform: none; pointer-events: auto; }
.promo-pop .modal-x { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.promo-pop .modal-x:hover { background: var(--gold); }
.promo-pop-badge { flex: none; width: 86px; height: 86px; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #1a1206; background: radial-gradient(circle at 32% 28%, #f6dc9c, var(--gold) 50%, var(--gold-dark)); box-shadow: 0 0 0 5px rgba(212, 168, 83, .18); }
.promo-pop-badge b { font-size: 28px; line-height: 1; }
.promo-pop-badge small { font-size: 14px; font-weight: 800; }
.promo-pop-body { display: grid; gap: 2px; min-width: 0; }
.promo-pop-body small { color: var(--gold); font-weight: 800; font-size: 15px; }
.promo-pop-body > b { font-size: 21px; font-weight: 900; line-height: 1.3; }
.promo-pop-body > span { color: var(--muted); font-size: 16px; line-height: 1.5; }
.promo-pop-row { display: flex; gap: 8px; margin-top: 10px; }
.promo-pop-row .btn { min-height: 46px; font-size: 16px; padding: 8px 16px; }

@media (max-width: 900px) {
  .promo-grid { grid-template-columns: minmax(0, 1fr); }
  .promo-badge { order: -1; width: min(330px, 86%); }
  .promo-chip { font-size: 15px; padding: 6px 12px; }
  .promo-chip.c1 { right: -6%; } .promo-chip.c2 { left: -6%; }
  .promo-actions .btn { flex: 1 1 220px; }
}
@media (max-width: 860px) {
  .promo-pop { right: 16px; left: 16px; width: auto; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .promo-pop-badge { width: 72px; height: 72px; }
  .promo-pop-badge b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-glow, .promo-ring, .promo-badge::before, .promo-core, .promo-core::after, .promo-chip, .promo-actions .btn-gold, .promo h2 .gold { animation: none; }
  .promo-info > *, .promo-badge, .promo-pill { opacity: 1; transform: none; transition: none; animation: none; }
}

/* =====================================================================
   تحسينات الموبايل (V1) — نفس الشكل، ترتيب أنضف على الشاشات الصغيرة
   ===================================================================== */
@media (max-width: 560px) {
  .header .container { min-height: 64px; }
  .brand img { height: 40px; }
  .brand-text b { font-size: 18px; }
  .menu-btn, .theme-btn { width: 44px; height: 44px; }
  .nav { inset: 64px 0 auto 0; }
  html { scroll-padding-top: 72px; }

  .section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 28px; }
  .section-head p { font-size: 17px; }

  /* الهيرو */
  .hero { min-height: auto; padding-block: 72px 48px; }
  .hero h1 { font-size: 36px; }
  .hero p.lead { font-size: 17px; margin-bottom: 22px; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; font-size: 16px; min-height: 52px; }
  .hero-actions .btn svg { width: 20px; height: 20px; }
  .trust { gap: 8px 16px; margin-top: 22px; }
  .trust span { font-size: 15px; }
  .scroll-cue { display: none; }

  /* المميزات: 2 × 2 بدل كارت تحت كارت */
  .features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { padding: 18px 12px; }
  .feature .ico { width: 50px; height: 50px; margin-bottom: 10px; }
  .feature .ico svg { width: 26px; height: 26px; }
  .feature h3 { font-size: 17px; }
  .feature p { font-size: 14px; line-height: 1.6; }

  /* المشروع المميز */
  .featured { gap: 24px; }
  .featured-info .area { font-size: 22px; }
  .facts b, .fact b { font-size: 22px; }
  .fact span { font-size: 13px; }

  /* الإعلان */
  .promo { padding-block: 48px 56px; }
  .promo-badge { width: min(240px, 70%); }
  .promo-chip { font-size: 13px; padding: 4px 10px; }
  .promo-facts > div { padding: 10px 14px; }
  .promo-facts b { font-size: 36px; }
  .promo-facts span { font-size: 15px; }
  .promo-text { font-size: 17px; }
  .promo-phones { font-size: 17px; }
  .promo-phones a { display: inline-flex; align-items: center; min-height: 44px; }

  /* المشاريع: عمودين مضغوطين بدل كارت بطول الشاشة */
  .projects { grid-template-columns: 1fr 1fr; gap: 10px; }
  .p-thumb { aspect-ratio: 4 / 3; }
  .p-thumb .big-no { font-size: 34px; bottom: 6px; left: 10px; }
  .status { top: 8px; right: 8px; padding: 2px 8px; font-size: 12px; }
  .mini-badge { display: none; }
  .p-body { padding: 10px 12px 12px; gap: 4px; }
  .p-body h3 { font-size: 18px; }
  .p-meta { font-size: 13px; gap: 4px; }
  .p-meta svg { width: 14px; height: 14px; }
  .p-meta + .p-meta { display: none; }
  .p-body .btn { min-height: 44px; font-size: 14px; padding: 6px 8px; white-space: normal; text-align: center; gap: 6px; }
  .p-body .btn svg { width: 18px; height: 18px; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; min-height: 44px; font-size: 15px; padding: 6px 16px; }
  .map { height: 340px; }

  /* الفيديوهات */
  .btn-ghost { white-space: normal; text-align: center; }
  .reels-dots { gap: 2px; }
  .reels-dots button { width: 22px; height: 28px; background: none; position: relative; }
  .reels-dots button::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 10px; translate: 0 -50%; border-radius: 5px; background: var(--line); transition: .35s; }
  .reels-dots button.on { width: 40px; background: none; }
  .reels-dots button.on::before { background: var(--gold); }

  /* عن الشركة */
  .about-logo { padding: 28px; }
  .about-logo img { width: min(220px, 100%); }
  .about h2 { font-size: 26px; }
  .about p { font-size: 17px; }

  /* التواصل */
  .contact-box { border-radius: 18px; }
  .contact-side, .contact-form { padding: 24px 18px; }
  .contact-line { font-size: 17px; padding: 10px 0; }
  .contact-line .ico { width: 42px; height: 42px; }

  .footer { padding: 40px 0 110px; }
  .promo-pop .modal-x { width: 44px; height: 44px; top: 6px; left: 6px; }

  /* صفحة المشروع */
  .page-hero { min-height: 62svh; }
  .quick-actions { gap: 8px; margin-top: -24px; }
  .qa { padding: 12px 14px; font-size: 17px; }
  .qa .ico { width: 42px; height: 42px; }
  .pay { padding: 22px 16px; }
  .unit-info { gap: 12px; }
  .unit-area b { font-size: 42px; }
  .chips { grid-template-columns: 1fr 1fr; gap: 6px; }
  .chip { font-size: 14px; padding: 8px 10px; }
  .chip svg { width: 20px; height: 20px; }
  .tab { min-height: 48px; padding: 8px 16px; font-size: 16px; flex: 1 1 0; }
  .tabs { flex-wrap: nowrap; }
}
