/* ==========================================================================
   Muthl — محدّد الوحدات (مكوّن مشترك · يعمل مع picker.js)
   الواجهة الحقيقية ← مخطط الدور ← بطاقة الوحدة
   على الشاشات الكبيرة: البطاقة عمود جانبي · على الجوال: ورقة سفلية
   ========================================================================== */

/* قاعدتان عامّتان كانتا داخل تنسيق المحدّد القديم وتعتمد عليهما الصفحة */
[hidden] { display: none !important; }
.fin-section { margin-top: 56px; }

:root {
  --pk-ok: #2E6B45;   --pk-ok-bg: rgba(74,124,89,0.13);   --pk-ok-line: rgba(74,124,89,0.50);
  --pk-res: #8A6224;  --pk-res-bg: rgba(176,138,79,0.18); --pk-res-line: rgba(150,113,57,0.45);
  --pk-sold: #A33C3C; --pk-sold-bg: rgba(190,55,55,0.10); --pk-sold-line: rgba(190,55,55,0.40);
  --pk-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --pk-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
.pk { margin-top: 36px; }
#picker { scroll-margin-top: 76px; }
.pk button { font-family: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pk-tile { touch-action: manipulation; }

/* ── التصفية ─────────────────────────────────────────────────────────── */
.pk-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  padding: 11px 22px;
  background: var(--cream);
  border: 1px solid var(--line); border-bottom: 0;
}
.pk-fcheck {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; color: var(--navy); white-space: nowrap;
}
.pk-fcheck input { accent-color: var(--gold); width: 15px; height: 15px; cursor: pointer; margin: 0; }
.pk-ftoggle {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--blue-grey);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px 14px 6px; font-size: 12.5px; line-height: 1.3;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .16s var(--pk-ease);
}
.pk-ftoggle svg { width: 13px; height: 13px; flex: none; }
.pk-ftoggle:active { transform: scale(0.97); }
.pk-ftoggle b {
  min-width: 17px; height: 17px; border-radius: 999px; padding: 0 5px;
  display: inline-grid; place-items: center;
  background: var(--gold); color: #fff; font-family: var(--f-mono); font-size: 10px; font-weight: 400;
}
.pk-filters.is-open .pk-ftoggle { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.pk-fresult {
  margin-inline-start: auto;
  display: flex; align-items: baseline; gap: 14px; white-space: nowrap;
}
.pk-fcount { font-size: 13px; font-weight: 600; color: var(--navy); }
.pk-freset {
  appearance: none; background: none; border: 0; cursor: pointer; padding: 0 0 1px;
  font-size: 12.5px; color: var(--slate); border-bottom: 1px dotted var(--slate);
  transition: color .18s ease, border-color .18s ease;
}
.pk-fpanel {
  display: none; flex-basis: 100%;
  flex-wrap: wrap; align-items: center; gap: 12px 30px;
  padding: 11px 0 3px; border-top: 1px solid var(--line);
}
.pk-filters.is-open .pk-fpanel { display: flex; animation: pk-rise .22s var(--pk-ease); }
.pk-fgroup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pk-flabel { font-size: 12.5px; color: var(--slate); white-space: nowrap; }
.pk-flabel b { color: var(--gold-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pk-chip {
  appearance: none; cursor: pointer;
  font-size: 12.5px; line-height: 1.3; color: var(--blue-grey);
  background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 4px 13px 5px;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .16s var(--pk-ease);
}
.pk-chip:active { transform: scale(0.96); }
.pk-chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.pk-chip--m { font-family: var(--f-mono); font-size: 11.5px; padding: 4px 10px 5px; }
.pk-frange input[type="range"] { width: 180px; accent-color: var(--gold); cursor: pointer; }

/* ── الهيكل: المسرح + البطاقة ────────────────────────────────────────── */
.pk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  background: var(--cream-soft);
  border: 1px solid var(--line);
}
.pk-stage { padding: 24px 28px 20px; min-width: 0; }
.pk-side {
  align-self: stretch; min-width: 0;
  background: var(--cream);
  border-inline-start: 1px solid var(--line);
}
@media (min-width: 981px) and (min-height: 800px) {
  .pk-stage { position: sticky; top: 64px; }
}

/* رأس المسرح */
.pk-head { display: flex; align-items: center; gap: 14px; min-height: 48px; margin-bottom: 14px; }
.pk-where { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pk-where small {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-ink); direction: ltr; text-align: end;
}
.pk-where h3 {
  margin: 0; font-family: var(--f-ar); font-weight: 600; font-size: 20px; line-height: 1.25;
  color: var(--navy);
}
.pk-where h3 span { font-weight: 400; font-size: 13px; color: var(--slate); margin-inline-start: 10px; white-space: nowrap; }
.pk-legend {
  margin-inline-start: auto; display: flex; gap: 14px; flex: none;
  font-size: 12px; color: var(--blue-grey);
}
.pk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pk-legend i { width: 10px; height: 10px; border-radius: 2px; display: block; }
.pk-legend i[data-st="available"] { background: var(--pk-ok-bg);   box-shadow: inset 0 0 0 1px var(--pk-ok-line); }
.pk-legend i[data-st="reserved"]  { background: var(--pk-res-bg);  box-shadow: inset 0 0 0 1px var(--pk-res-line); }
.pk-legend i[data-st="sold"]      { background: var(--pk-sold-bg); box-shadow: inset 0 0 0 1px var(--pk-sold-line); }

/* زر الرجوع — مصغّر الواجهة والدور الحالي مضاء عليه */
.pk-back {
  appearance: none; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream); color: var(--navy);
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 4px; padding-inline-end: 13px;
  font-size: 12.5px; font-weight: 600;
  transition: border-color .18s ease, background .18s ease, transform .16s var(--pk-ease);
}
.pk-back:active { transform: scale(0.97); }
.pk-back-thumb {
  position: relative; display: block; overflow: hidden;
  width: 66px; aspect-ratio: var(--pk-fa); border-radius: 5px; background: #d9d2c5;
}
.pk-back-thumb img {
  position: absolute; max-width: none; height: auto; display: block;
  width: var(--pk-fw); left: var(--pk-fl); top: var(--pk-ft);
}
.pk-back-thumb::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: rgba(27,42,74,0.34);
}
.pk-back-thumb i {
  position: absolute; z-index: 2; left: var(--pk-bl); width: var(--pk-bw);
  background: rgba(216,190,147,0.78);
  box-shadow: 0 0 0 1px rgba(253,251,245,0.95);
  transition: top .3s var(--pk-ease), height .3s var(--pk-ease);
}

/* ── طبقتا العرض: المبنى / الدور ─────────────────────────────────────── */
.pk-views { position: relative; }
.pk-view { transition: opacity .2s ease, transform .26s var(--pk-ease); transform-origin: 50% 46%; }
.pk-view.is-out { opacity: 0; transform: scale(var(--pk-out, 1.035)); }
.pk-view.is-in  { opacity: 0; transform: scale(var(--pk-in, 0.97)); transition: none; }

/* الواجهة الحقيقية */
.pk-facade {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: var(--pk-fa);
  background: #d9d2c5; border-radius: 3px;
}
.pk-facade > img {
  position: absolute; max-width: none; height: auto; display: block;
  width: var(--pk-fw); left: var(--pk-fl); top: var(--pk-ft);
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.pk-facade > img.pk-night { opacity: 0; transition: opacity .6s ease; }
.pk-facade.is-night > img.pk-night { opacity: 1; }
.pk-bands { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pk-band {
  position: absolute; left: 0; width: 100%;
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; display: block; pointer-events: auto;
}
.pk-band::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: var(--pk-bl); width: var(--pk-bw);
  background: rgba(27,42,74,0);
  box-shadow: inset 0 1.5px 0 rgba(253,251,245,0), inset 0 -1.5px 0 rgba(253,251,245,0);
  transition: background .22s ease, box-shadow .22s ease;
}
.pk-band-chip {
  position: absolute; top: 50%; inset-inline-start: calc(var(--pk-bl) + 1.4%);
  transform: translateY(-50%);
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 3px 11px 4px; border-radius: 999px;
  background: rgba(253,251,245,0.90); color: var(--navy);
  font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap;
  box-shadow: 0 1px 6px rgba(27,42,74,0.20);
  transition: background .2s ease, color .2s ease;
}
.pk-band-chip em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--pk-ok); transition: color .2s ease; }
.pk-band-chip em.is-none { color: var(--slate); }
.pk-band.is-lit::before {
  background: rgba(216,190,147,0.30);
  box-shadow: inset 0 1.5px 0 rgba(253,251,245,0.95), inset 0 -1.5px 0 rgba(253,251,245,0.95);
}
.pk-band.is-lit .pk-band-chip,
.pk-band:active .pk-band-chip { background: var(--navy); color: var(--cream); }
.pk-band.is-lit .pk-band-chip em,
.pk-band:active .pk-band-chip em { color: var(--beige-warm); }
.pk-band.is-here .pk-band-chip { box-shadow: 0 0 0 1.5px var(--gold-soft), 0 1px 6px rgba(27,42,74,0.20); }
.pk-band.is-mute .pk-band-chip { opacity: 0.55; }
.pk-band:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .pk-bands:hover .pk-band::before { background: rgba(27,42,74,0.22); }
  .pk-bands:hover .pk-band:hover::before {
    background: rgba(216,190,147,0.30);
    box-shadow: inset 0 1.5px 0 rgba(253,251,245,0.95), inset 0 -1.5px 0 rgba(253,251,245,0.95);
  }
  .pk-band:hover .pk-band-chip { background: var(--navy); color: var(--cream); }
  .pk-band:hover .pk-band-chip em { color: var(--beige-warm); }
  .pk-chip:hover { border-color: var(--gold); color: var(--gold-ink); }
  .pk-chip.is-on:hover { color: var(--cream); border-color: var(--navy); }
  .pk-freset:hover { color: var(--gold-ink); border-color: var(--gold); }
  .pk-ftoggle:hover { border-color: var(--gold); color: var(--gold-ink); }
  .pk-filters.is-open .pk-ftoggle:hover { color: var(--cream); border-color: var(--navy); }
  .pk-back:hover { border-color: var(--gold); background: var(--cream-soft); }
}
.pk-daynight {
  position: absolute; z-index: 3; top: 10px; inset-inline-end: 10px;
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(253,251,245,0.86); color: var(--navy);
  border: 0; border-radius: 999px; padding: 4px 11px 5px;
  font-size: 11.5px; line-height: 1.3;
  box-shadow: 0 1px 6px rgba(27,42,74,0.20);
  transition: background .2s ease, color .2s ease, transform .16s var(--pk-ease);
}
.pk-daynight svg { width: 12px; height: 12px; display: block; }
.pk-daynight:active { transform: scale(0.96); }
.pk-facade.is-night .pk-daynight { background: rgba(27,42,74,0.82); color: var(--cream); }

/* فهرس الوحدات — صف لكل دور بترتيب المبنى */
.pk-index { margin-top: 16px; }
.pk-index-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 12px; color: var(--slate);
  padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.pk-index-head b { font-weight: 600; color: var(--navy); font-size: 12.5px; }
.pk-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 3px 0; border-radius: 8px;
  transition: background .18s ease;
}
.pk-row.is-lit { background: rgba(166,130,74,0.07); }
.pk-row-floor {
  appearance: none; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 9px 8px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--navy); text-align: start;
  transition: color .18s ease;
}
.pk-row-floor svg { width: 12px; height: 12px; color: var(--gold); flex: none; transition: transform .2s var(--pk-ease); }
/* ترتيب الخلايا من اليسار كما تُرى الوحدات من الشارع (كالرسم السابق) */
.pk-row-units { display: flex; gap: 6px; direction: ltr; }
.pk-row-units .pk-u { flex: 1 1 0; min-width: 0; }
.pk-u {
  appearance: none; cursor: pointer;
  min-width: 42px; height: 34px; padding: 0 6px 2px;
  border: 1px solid var(--pk-ok-line); border-radius: 7px;
  background: var(--pk-ok-bg); color: var(--navy);
  font-family: var(--f-en); font-style: italic; font-weight: 600; font-size: 20px; line-height: 1;
  font-variant-numeric: lining-nums;
  transition: background .18s ease, border-color .18s ease, color .18s ease, opacity .25s ease,
              transform .16s var(--pk-ease), box-shadow .18s ease;
}
.pk-u[data-st="reserved"] { border-color: var(--pk-res-line); background: var(--pk-res-bg); color: rgba(27,42,74,0.62); }
.pk-u[data-st="sold"] {
  border-color: var(--pk-sold-line); background: var(--pk-sold-bg); color: rgba(27,42,74,0.46);
  text-decoration: line-through; text-decoration-color: rgba(163,60,60,0.55);
}
.pk-u:active { transform: scale(0.94); }
.pk-u.is-dim { opacity: 0.2; pointer-events: none; }
.pk-u.is-sel, .pk-u.is-sel[data-st] {
  background: var(--navy); border-color: var(--navy); color: var(--cream);
  box-shadow: 0 0 0 2px var(--gold-soft); text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .pk-row-floor:hover { color: var(--gold-ink); }
  .pk-row-floor:hover svg { transform: translateX(-3px); }
  .pk-u:hover { border-color: var(--navy); box-shadow: 0 4px 12px -6px rgba(27,42,74,0.45); }
}

/* مخطط الدور */
.pk-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.pk-tab {
  flex: 1 1 0; min-width: 0;
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: baseline; justify-content: center; gap: 6px;
  background: var(--cream); color: var(--navy);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 8px 8px;
  font-size: 13px; line-height: 1.3; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .16s var(--pk-ease);
}
.pk-tab em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--pk-ok); }
.pk-tab em.is-none { color: var(--slate); opacity: 0.7; }
.pk-tab:active { transform: scale(0.97); }
.pk-tab.is-on { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.pk-tab.is-on em { color: var(--beige-warm); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .pk-tab:not(.is-on):hover { border-color: var(--gold); color: var(--gold-ink); }
}
.pk-plan-col { display: flex; flex-direction: column; align-items: center; }
.pk-edge {
  display: flex; align-items: center; gap: 10px;
  width: min(100%, calc(var(--pk-plan-h, 470px) * var(--pk-ratio, 1.07)));
}
.pk-edge i { flex: 1; height: 0; border-top: 1.5px dashed rgba(150,113,57,0.50); }
.pk-edge b {
  font-size: 11.5px; font-weight: 600; color: var(--gold-ink); white-space: nowrap;
  background: rgba(166,130,74,0.10); border: 1px solid rgba(166,130,74,0.32);
  border-radius: 999px; padding: 2px 12px 3px;
}
.pk-edge--street { margin-bottom: 7px; }
.pk-edge--back { margin-top: 7px; }
.pk-edge--back i { border-top-color: var(--line-strong); }
.pk-edge--back b { color: var(--slate); background: transparent; border-color: var(--line-strong); font-weight: 500; }
.pk-plan {
  position: relative; overflow: hidden; flex: none;
  width: min(100%, calc(var(--pk-plan-h, 470px) * var(--pk-ratio, 1.07)));
  aspect-ratio: var(--pk-ratio, 1.07);
  border-radius: 4px;
}
.pk-plan.is-fresh { animation: pk-fade .24s ease; }
@keyframes pk-fade { from { opacity: 0; } to { opacity: 1; } }
.pk-plan > img { display: block; width: 100%; height: 100%; mix-blend-mode: multiply; user-select: none; -webkit-user-drag: none; }
.pk-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pk-tile { cursor: pointer; outline: none; }
.pk-tile path {
  vector-effect: non-scaling-stroke; stroke-width: 1.6; stroke-linejoin: round;
  transition: fill .2s ease, stroke-width .16s ease, opacity .25s ease;
}
.pk-tile[data-st="available"] path { fill: rgba(74,124,89,0.20);  stroke: var(--pk-ok); }
.pk-tile[data-st="reserved"]  path { fill: rgba(176,138,79,0.26); stroke: var(--pk-res); }
.pk-tile[data-st="sold"]      path { fill: rgba(190,55,55,0.18);  stroke: var(--pk-sold); }
@media (hover: hover) and (pointer: fine) {
  .pk-tile:hover path { stroke-width: 3; }
  .pk-tile[data-st="available"]:hover path { fill: rgba(74,124,89,0.38); }
  .pk-tile[data-st="reserved"]:hover  path { fill: rgba(176,138,79,0.44); }
  .pk-tile[data-st="sold"]:hover      path { fill: rgba(190,55,55,0.32); }
}
.pk-tile.is-sel path, .pk-tile.is-sel:hover path { fill: rgba(27,42,74,0.82); stroke: var(--gold-soft); stroke-width: 3; }
.pk-tile:focus-visible path { stroke: var(--gold-soft); stroke-width: 3.5; }
.pk-tile.is-dim { pointer-events: none; }
.pk-tile.is-dim path { opacity: 0.12; }
.pk-labels { position: absolute; inset: 0; pointer-events: none; }
.pk-lbl {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 10px 5px; border-radius: 8px; text-align: center; white-space: nowrap;
  background: rgba(253,251,245,0.93);
  box-shadow: 0 2px 8px -2px rgba(27,42,74,0.30), inset 0 0 0 1px rgba(27,42,74,0.14);
  transition: background .2s ease, box-shadow .2s ease, opacity .25s ease;
}
.pk-lbl b {
  font-family: var(--f-en); font-style: italic; font-weight: 600; font-size: 25px; line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--navy);
}
.pk-lbl span { font-family: var(--f-mono); font-size: 10.5px; line-height: 1.35; color: var(--pk-ok); font-variant-numeric: tabular-nums; }
.pk-lbl[data-st="reserved"] span, .pk-lbl[data-st="sold"] span { font-family: var(--f-ar); font-size: 10.5px; font-weight: 600; }
.pk-lbl[data-st="reserved"] span { color: var(--pk-res); }
.pk-lbl[data-st="sold"] span { color: var(--pk-sold); }
.pk-lbl.is-sel { background: var(--navy); box-shadow: 0 6px 16px -4px rgba(27,42,74,0.55), inset 0 0 0 1.5px var(--gold-soft); }
.pk-lbl.is-sel b { color: var(--beige-warm); }
.pk-lbl.is-sel span, .pk-lbl.is-sel[data-st] span { color: var(--cream); }
.pk-lbl.is-dim { opacity: 0.14; }

.pk-hint { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--slate); min-height: 1.5em; }

/* ── العمود الجانبي: نظرة عامة / بطاقة الوحدة ────────────────────────── */
.pk-intro, .pk-card { padding: 30px 30px 28px; }
.pk-eyebrow {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-ink); direction: ltr; unicode-bidi: isolate;
}
.pk-title {
  margin: 8px 0 0; font-family: var(--f-ar); font-weight: 500; font-size: 32px; line-height: 1.1;
  color: var(--navy);
}
.pk-title em { font-style: normal; font-weight: 400; font-size: 14px; color: var(--slate); margin-inline-start: 10px; }
.pk-intro > p { margin: 12px 0 0; font-size: 14px; line-height: 1.8; color: var(--blue-grey); max-width: 38ch; }
.pk-estats { display: flex; gap: 0; margin-top: 22px; border: 1px solid var(--line); }
.pk-estats div { flex: 1; padding: 14px 16px 15px; border-inline-start: 1px solid var(--line); }
.pk-estats div:first-child { border-inline-start: 0; }
.pk-estats b { display: block; font-family: var(--f-en); font-weight: 500; font-size: 32px; line-height: 1; color: var(--navy); }
.pk-estats span { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12.5px; color: var(--slate); }
.pk-estats span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; }
.pk-estats [data-st="available"] span::before { background: var(--pk-ok-bg);   box-shadow: inset 0 0 0 1px var(--pk-ok-line); }
.pk-estats [data-st="reserved"] span::before  { background: var(--pk-res-bg);  box-shadow: inset 0 0 0 1px var(--pk-res-line); }
.pk-estats [data-st="sold"] span::before      { background: var(--pk-sold-bg); box-shadow: inset 0 0 0 1px var(--pk-sold-line); }
.pk-sec-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 26px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--navy);
}
.pk-sec-h small { font-size: 12px; font-weight: 400; color: var(--slate); }
.pk-models { display: flex; flex-direction: column; }
.pk-model {
  appearance: none; background: none; border: 0; cursor: pointer; text-align: start;
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid var(--line);
  color: var(--navy);
  transition: background .18s ease, padding .2s var(--pk-ease);
}
.pk-model:last-child { border-bottom: 0; }
.pk-model > b {
  font-family: var(--f-en); font-style: italic; font-weight: 500; font-size: 26px; line-height: 1;
  color: var(--gold); text-align: center;
}
.pk-model-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk-model-t span { font-size: 13.5px; }
.pk-model-t small { font-size: 12px; color: var(--slate); }
.pk-model-p { text-align: end; font-size: 11.5px; color: var(--slate); white-space: nowrap; }
.pk-model-p b { display: block; font-family: var(--f-en); font-weight: 500; font-size: 17px; color: var(--navy); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .pk-model:hover { background: rgba(166,130,74,0.07); padding-inline: 10px; }
}
.pk-model:active { background: rgba(166,130,74,0.10); }

/* بطاقة الوحدة */
.pk-card { display: none; }
.pk-card.is-open { display: block; }
@media (min-width: 981px) { .pk.has-sel .pk-intro { display: none; } }
.pk-chrome { display: none; }
.pk-sum-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pk-status {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: 12.5px; font-weight: 600; color: var(--pk-ok);
  background: var(--pk-ok-bg); border-radius: 999px; padding: 3px 12px 4px;
}
.pk-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pk-status[data-st="reserved"] { color: var(--pk-res); background: var(--pk-res-bg); }
.pk-status[data-st="sold"] { color: var(--pk-sold); background: var(--pk-sold-bg); }
.pk-close {
  appearance: none; cursor: pointer; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-strong); color: var(--slate);
  font-size: 18px; line-height: 1; padding: 0 0 2px;
  transition: border-color .18s ease, color .18s ease, transform .16s var(--pk-ease);
}
.pk-close:active { transform: scale(0.94); }
.pk-sum-tr { display: inline-flex; align-items: center; gap: 10px; }
.pk-factline { display: none; }
.pk-facts {
  display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 0;
  border: 1px solid var(--line);
}
.pk-facts div { padding: 13px 16px 14px; border-inline-start: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.pk-facts div:nth-child(odd) { border-inline-start: 0; }
.pk-facts div:nth-last-child(-n+2) { border-bottom: 0; }
.pk-facts dt { font-size: 12px; color: var(--slate); }
.pk-facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 500; color: var(--navy); line-height: 1.35; }
.pk-facts dd small { font-size: 12px; font-weight: 400; color: var(--slate); }
.pk-price {
  margin-top: 16px; padding: 16px 18px 15px;
  background: linear-gradient(180deg, rgba(166,130,74,0.09), rgba(166,130,74,0.02));
  border: 1px solid rgba(166,130,74,0.26);
  display: flex; flex-direction: column; gap: 3px;
}
.pk-price-l { font-size: 12.5px; color: var(--slate); }
.pk-price-v {
  font-family: var(--f-en); font-weight: 400; font-size: 38px; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.pk-price-v small { font-family: var(--f-ar); font-size: 14px; color: var(--slate); margin-inline-start: 6px; letter-spacing: 0; }
.pk-price-n { font-size: 12px; color: var(--slate); margin-top: 2px; }
.pk-price--locked {
  flex-direction: row; align-items: center; gap: 10px;
  background: rgba(58,63,82,0.04); border-color: rgba(58,63,82,0.16);
  font-size: 14px; font-weight: 500; color: var(--slate);
}
.pk-price--locked svg { flex: none; opacity: 0.7; }
.pk-alt { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pk-alt > span { font-size: 12.5px; color: var(--slate); }
.pk-alt > div { display: flex; gap: 6px; flex-wrap: wrap; }
.pk-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pk-actions .btn { padding: 13px 24px; font-size: 14.5px; justify-content: center; }
.pk-actions .btn-primary { flex: 1 1 auto; }
.pk-mob { display: none !important; }
.pk-tools { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; }
.pk-tool {
  appearance: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--blue-grey);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 13px 7px; font-size: 12.5px; line-height: 1.3; white-space: nowrap;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .16s var(--pk-ease);
}
.pk-tool svg { width: 13px; height: 13px; flex: none; }
.pk-tool:active { transform: scale(0.97); }
.pk-tool.is-on { background: var(--gold); border-color: var(--gold); color: #fff; }
.pk-planimg {
  appearance: none; cursor: zoom-in; display: block; width: 100%; padding: 0; margin: 14px 0 0;
  position: relative; overflow: hidden;
  background: #EBE3D8; border: 1px solid var(--line); border-radius: 3px;
  transition: border-color .2s ease, box-shadow .25s ease;
}
.pk-planimg img { display: block; width: 100%; height: auto; }
.pk-planimg.is-tall img { width: auto; max-width: 100%; max-height: 420px; margin-inline: auto; }
.pk-planimg.is-tall { background: var(--cream); }
.pk-zoom {
  position: absolute; top: 10px; inset-inline-end: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(27,42,74,0.84); color: var(--cream);
  border-radius: 999px; padding: 5px 11px 6px; font-size: 11.5px; line-height: 1.2;
}
.pk-zoom svg { width: 12px; height: 12px; }
.pk-feats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.pk-feats li { position: relative; padding-inline-start: 15px; font-size: 13px; line-height: 1.5; color: var(--blue-grey); }
.pk-feats li::before { content: '·'; position: absolute; inset-inline-start: 3px; color: var(--gold); font-size: 16px; line-height: 1.3; }
.pk-sakani {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 8px 15px 9px; border: 1px solid rgba(166,130,74,0.32); border-radius: 999px;
  background: rgba(166,130,74,0.06); color: var(--gold-ink);
  font-size: 13px; text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.pk-sakani svg { width: 14px; height: 14px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .pk-close:hover { border-color: var(--gold); color: var(--gold-ink); }
  .pk-tool:hover { border-color: var(--gold); color: var(--gold-ink); }
  .pk-tool.is-on:hover { color: #fff; }
  .pk-planimg:hover { border-color: var(--gold); box-shadow: 0 12px 30px -10px rgba(27,42,74,0.22); }
  .pk-sakani:hover { background: var(--gold); border-color: var(--gold); color: var(--cream); }
}
.pk-card.is-fresh .pk-sum, .pk-card.is-fresh .pk-more { animation: pk-rise .28s var(--pk-ease); }
@keyframes pk-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── تكبير المخطط ────────────────────────────────────────────────────── */
.pk-lb {
  position: fixed; inset: 0; z-index: 600;
  display: flex; flex-direction: column;
  background: rgba(15,22,42,0.90);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.pk-lb.is-on { opacity: 1; pointer-events: auto; }
.pk-lb-bar {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; color: var(--cream); font-family: var(--f-ar); font-size: 13.5px;
}
.pk-lb-bar small { font-size: 12px; opacity: 0.7; margin-inline-start: 10px; }
.pk-lb-x {
  appearance: none; cursor: pointer; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(253,251,245,0.12); border: 1px solid rgba(253,251,245,0.25); color: var(--cream);
  font-size: 22px; line-height: 1; padding: 0 0 3px; flex: none;
}
.pk-lb-scroll {
  flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch;
  display: flex; padding: 0 14px 18px; direction: ltr;
}
.pk-lb-scroll img {
  display: block; margin: auto; flex: none;
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 4px; background: #EBE3D8; cursor: zoom-in;
  transform: scale(0.985); transition: transform .24s var(--pk-ease);
}
.pk-lb.is-on .pk-lb-scroll img { transform: none; }
.pk-lb.is-zoom .pk-lb-scroll img { max-width: none; max-height: none; cursor: zoom-out; }

.pk-shade { display: none; }
html.pk-lock, html.pk-lock body { overflow: hidden; }
body.pk-near .back-to-top { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
.cmp-head .lfp-close {
  appearance: none; cursor: pointer; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-strong); color: var(--slate);
  font-size: 20px; line-height: 1; padding: 0 0 2px;
  transition: border-color .18s ease, color .18s ease;
}
.cmp-head .lfp-close:hover { border-color: var(--gold); color: var(--gold-ink); }
/* جدول المقارنة: عناوين الصفوف عربية بلا تباعد أحرف، والمميزات نص هادئ */
.cmp-table .rh { font-family: var(--f-ar); font-size: 12.5px; letter-spacing: 0; text-transform: none; }
.cmp-table td .pk-cmp-feat { font-size: 12.5px; line-height: 1.9; color: var(--blue-grey); }
.cmp-table thead th small { text-align: start; unicode-bidi: plaintext; }

/* ── الشاشات المتوسطة والجوال ────────────────────────────────────────── */
@media (max-width: 1180px) {
  .pk-stage { padding: 22px 22px 18px; }
  .pk-intro, .pk-card { padding: 26px 24px 24px; }
}
@media (max-width: 980px) {
  .pk { margin-top: 24px; }
  .pk-grid { display: block; }
  .pk-stage { padding: 16px 14px 14px; }
  .pk-side { border-inline-start: 0; border-top: 1px solid var(--line); }
  .pk-intro { padding: 22px 16px 20px; }
  .pk-intro .pk-title { font-size: 26px; }
  .pk-desk { display: none !important; }
  .pk-mob { display: inline-flex !important; }

  /* التصفية */
  .pk-filters { padding: 10px 14px; gap: 10px 12px; }
  .pk-ftoggle { padding: 7px 14px 8px; font-size: 13px; }
  .pk-fcount { font-size: 12.5px; }
  .pk-fpanel { flex-direction: column; align-items: stretch; gap: 14px; padding: 12px 0 4px; }
  .pk-fgroup { flex-direction: column; align-items: flex-start; gap: 7px; }
  .pk-frange input[type="range"] { width: min(100%, 300px); }

  /* رأس المسرح */
  .pk-head { gap: 10px; min-height: 44px; margin-bottom: 12px; }
  .pk-where h3 { font-size: 17px; }
  .pk-where h3 span { display: block; margin: 2px 0 0; font-size: 12px; }
  .pk-where small { display: none; }
  .pk-legend { gap: 10px; font-size: 11px; }
  .pk-legend span { gap: 4px; }
  .pk-legend i { width: 8px; height: 8px; }
  .pk-back { padding-inline-end: 10px; gap: 8px; }
  .pk-back-thumb { width: 54px; }

  .pk-band-chip { font-size: 11px; padding: 2px 9px 3px; gap: 5px; }
  .pk-band-chip em { font-size: 10.5px; }
  .pk-daynight { top: 7px; inset-inline-end: 7px; padding: 3px 9px 4px; font-size: 11px; }

  .pk-index { margin-top: 12px; }
  .pk-row { grid-template-columns: 76px minmax(0, 1fr); gap: 6px; padding: 2px 0; }
  .pk-row-floor { padding: 10px 6px; font-size: 13px; }
  .pk-row-units { gap: 5px; }
  .pk-u { height: 38px; font-size: 21px; }

  .pk-tabs { gap: 5px; margin-bottom: 10px; }
  .pk-tab { padding: 8px 4px 9px; font-size: 12.5px; gap: 4px; }
  .pk-lbl { padding: 3px 7px 4px; border-radius: 7px; }
  .pk-lbl b { font-size: 21px; }
  .pk-lbl span, .pk-lbl[data-st="reserved"] span, .pk-lbl[data-st="sold"] span { font-size: 9.5px; }
  .pk-hint { font-size: 12px; margin-top: 10px; }

  /* بطاقة الوحدة = ورقة سفلية */
  .pk-card {
    position: fixed; z-index: 320; left: 0; right: 0; bottom: 0;
    margin-inline: auto; max-width: 640px;
    max-height: 86vh; max-height: 86dvh;
    display: flex; flex-direction: column;
    padding: 0; background: var(--cream-soft);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 50px -16px rgba(15,22,42,0.45), 0 0 0 1px rgba(27,42,74,0.06);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .34s var(--pk-drawer), visibility 0s linear .34s;
    will-change: transform;
  }
  .pk-card, .pk-card.is-open { display: flex; }
  .pk-card.is-open {
    visibility: visible;
    transform: translateY(calc(100% - var(--pk-peek, 232px)));
    transition: transform .34s var(--pk-drawer), visibility 0s;
  }
  .pk-card.is-open.is-full { transform: translateY(0); }
  .pk-card.is-open.is-away { transform: translateY(105%); }
  .pk-card.is-drag { transition: none; }
  .pk-card.is-fresh .pk-sum, .pk-card.is-fresh .pk-more { animation: none; }
  .pk-chrome { display: block; flex: none; touch-action: none; cursor: grab; }
  .pk-grab { display: grid; place-items: center; height: 22px; }
  .pk-grab i { width: 40px; height: 4px; border-radius: 999px; background: rgba(27,42,74,0.20); }
  .pk-sum { flex: none; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); touch-action: none; }
  .pk-title { font-size: 25px; margin-top: 4px; }
  .pk-title em { font-size: 13px; }
  .pk-facts { display: none; }
  .pk-factline { display: block; margin: 7px 0 0; font-size: 13px; line-height: 1.6; color: var(--blue-grey); }
  .pk-price { margin-top: 10px; padding: 9px 14px 9px; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
  .pk-price-v { font-size: 30px; }
  .pk-price-n { display: none; }
  .pk-price--locked { align-items: center; font-size: 13px; padding: 11px 14px; }
  .pk-alt { margin-top: 10px; gap: 8px; }
  .pk-alt .pk-u { flex: none; min-width: 42px; height: 34px; }
  .pk-actions { margin-top: 12px; gap: 8px; flex-wrap: nowrap; }
  .pk-actions .btn { padding: 12px 16px; font-size: 14px; }
  .pk-actions .btn-ghost { flex: none; }
  .pk-more {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 2px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
  }
  .pk-more .pk-tools { margin-top: 14px; }
  .pk-sec-h { margin-top: 20px; }
  .pk-details-ic { transition: transform .25s var(--pk-ease); }
  .pk-card.is-full .pk-details-ic { transform: rotate(180deg); }
  .pk-shade {
    display: block; position: fixed; inset: 0; z-index: 310;
    background: rgba(15,22,42,0.42);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  .pk-shade.is-on { opacity: 1; pointer-events: auto; }
  body.pk-sheet-on .cmp-tray.show { bottom: calc(var(--pk-peek, 232px) + 10px); }
  body.pk-sheet-full .cmp-tray.show { transform: translate(-50%, 240%); }
  .pk-planimg.is-tall img { max-height: 360px; }
}
@media (max-width: 420px) {
  .pk-feats { gap: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pk-view, .pk-card, .pk-shade, .pk-lb, .pk-lb-scroll img, .pk-band::before, .pk-facade > img.pk-night { transition-duration: .01s !important; }
  .pk-view.is-out, .pk-view.is-in { transform: none; }
  .pk-plan.is-fresh, .pk-card.is-fresh .pk-sum, .pk-card.is-fresh .pk-more { animation: none; }
}
