/* =========================================================
   قالب «ليل» — سينمائي وجريء (قالب ليل × روح VIP Motors و Exotic Cars)
   نفس هيكل ونظام «رزين» بالضبط؛ الفرق بالشكل بس.
   الملف قسمين: (1) الأساس المشترك للتخطيط، (2) «طبقة ليل» بآخر الملف.
   المعرض بيغيّر --accent بس.
   ========================================================= */

:root {
  --bg: #EFECE6;
  --surface: #FFFFFF;
  --surface-2: #F5F2EC;
  --ink: #141311;
  --ink-2: #3A3732;
  --muted: #5E5A53;
  --line: #E3DFD6;
  --accent: #C9A24F;        /* الذهبي */
  --accent-ink: #140F05;    /* النص فوق الذهبي */
  --accent-text: #806019;   /* ذهبي غامق للنص على الفاتح */
  --glass: rgba(16, 15, 14, .55);   /* الزجاج الغامق للشريط فوق */
  --glass-ink: #F5F2EB;
  --cinema: #0D0D0F;        /* البلوكات السينمائية (ثابتة بالوضعين) */
  --header: transparent;
  --header-ink: #F5F2EB;
  --wa: #118043;
  --ok: #167D3E;
  --btn: #141311;
  --btn-ink: #FFFFFF;

  --font-display: "Alexandria", "Rubik", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, sans-serif;

  --wrap: 1320px;
  --gutter: 56px;
  --radius: 16px;
  --radius-lg: 28px;
  --pill: 999px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0D0D0F;
  --surface: #151517;
  --surface-2: #1E1E21;
  --ink: #F5F2EB;
  --ink-2: #D6D2C9;
  --muted: #A9A59C;
  --line: #2A2A2E;
  --accent: #D4AF5E;
  --accent-text: #D4AF5E;
  --ok: #1FA855;
  --btn: #F5F2EB;
  --btn-ink: #141311;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  transition: background-color .3s, color .3s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
/* إطار التحديد بلوحة المفاتيح */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.field:focus-within, .bk-field:focus-within, .rs-field:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.field input:focus-visible, .field select:focus-visible, .bk-field input:focus-visible, .bk-field select:focus-visible, .rs-field input:focus-visible, .rs-field select:focus-visible { outline: none; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.num { font-family: var(--font-display); font-feature-settings: "tnum"; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; color: var(--accent); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: var(--pill);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-solid { background: var(--btn); color: var(--btn-ink); }
.btn-solid:hover { opacity: .88; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.06); }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-grid; place-items: center; color: var(--ink); transition: border-color .2s, background-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.icon-btn[aria-pressed="true"] .icon { fill: currentColor; }
[dir="ltr"] .flip { transform: scaleX(-1); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- الشريط الأسود فوق (مستوحى من مرسيدس) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--header); color: var(--header-ink); }
.topbar .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark { font-family: var(--font-display); font-weight: 300; font-size: 22px; letter-spacing: .32em; direction: ltr; }
.brand-sub { font-size: 13px; opacity: .7; }
/* شعار المعرض: إذا رفع شعار بيطلع الشعار مع الاسم، وإلا الاسم مكتوب */
.brand { align-items: center; }
.brand-logo { height: 38px; width: auto; max-width: 140px; object-fit: contain; flex: none; }
.brand.has-logo .brand-mark { display: none; }
.brand.has-logo .brand-sub { font-size: 15px; opacity: .95; font-weight: 500; }
.brand-logo.on-light { background: #fff; padding: 4px 6px; border-radius: 8px; } /* للشعارات الغامقة على الشريط الأسود */
.nav { display: flex; gap: 34px; font-size: 14.5px; }
.nav a { opacity: .78; padding: 22px 0; border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s; }
.nav a:hover, .nav a.on { opacity: 1; border-bottom-color: var(--header-ink); }
.tools { display: flex; align-items: center; gap: 6px; }
.tool { height: 38px; min-width: 38px; padding: 0 10px; border-radius: var(--pill); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--header-ink); opacity: .8; }
.tool:hover { opacity: 1; background: rgba(255,255,255,.08); }
.tool .badge { font-size: 11px; background: var(--accent); color: var(--accent-ink); border-radius: var(--pill); min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
.topbar .btn-wa-top { height: 38px; padding: 0 16px; font-size: 13.5px; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: var(--pill); display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 8px; }
.topbar .btn-wa-top:hover { border-color: #fff; }
.menu-btn { display: none; }
:root:not([data-theme="dark"]) .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: none; }

/* ---------- الصورة الكبيرة ---------- */
.hero { position: relative; height: min(82vh, 760px); min-height: 520px; color: #fff; overflow: hidden; background: #111; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%), linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 40%); }
[dir="ltr"] .hero::after { background: linear-gradient(to right, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%), linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 40%); }
.hero .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 72px; }
.hero h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 5.2vw, 72px); line-height: 1.15; margin: 0 0 32px; max-width: 14ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- شارات الثقة ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 26px 0; }
.trust-item + .trust-item { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.trust-item .icon { width: 26px; height: 26px; stroke-width: 1.3; color: var(--accent); }
.trust-item b { display: block; font-weight: 500; font-size: 15px; }
.trust-item span { font-size: 13px; color: var(--muted); }

/* ---------- المجموعة ---------- */
.section { padding: 96px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.15; margin: 8px 0 0; }
.section-head .count { color: var(--muted); font-size: 14px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  height: 40px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: all .2s;
}
.tab small { color: var(--muted); font-size: 12px; }
.tab:hover { border-color: var(--ink); }
.tab.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tab.on small { color: inherit; opacity: .6; }

.filters { display: grid; grid-template-columns: 1fr repeat(3, 180px); gap: 10px; margin: 18px 0 40px; }
.field { position: relative; display: flex; align-items: center; height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.field .icon { position: absolute; inset-inline-start: 16px; color: var(--muted); pointer-events: none; }
.field input, .field select { appearance: none; border: 0; background: transparent; width: 100%; height: 100%; padding: 0 16px; font-size: 14.5px; outline: none; }
.field input { padding-inline-start: 46px; }
.field select { padding-inline-end: 40px; cursor: pointer; }
.field.select::after { content: ""; position: absolute; inset-inline-end: 18px; width: 7px; height: 7px; border-left: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg) translateY(-2px); pointer-events: none; }
.field:focus-within { border-color: var(--ink); }
.filter-btn { display: none; }

/* بطاقة السيارة */
.cars { display: grid; grid-template-columns: 1fr 1fr; gap: 72px 40px; }
.car { display: flex; flex-direction: column; }
.car-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); aspect-ratio: 4 / 3; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.car:hover .car-media img { transform: scale(1.03); }
.car-media .photos { position: absolute; inset-inline-end: 14px; bottom: 14px; font-size: 12px; color: #fff; background: rgba(0,0,0,.55); border-radius: var(--pill); padding: 3px 10px; display: inline-flex; gap: 6px; align-items: center; backdrop-filter: blur(4px); }
.car-media .status { position: absolute; inset-inline-start: 14px; top: 14px; font-size: 12px; background: var(--surface); color: var(--ink); border-radius: var(--pill); padding: 4px 12px; }
.car-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.car-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.3; margin: 4px 0 4px; }
.car-body .meta { font-size: 14px; color: var(--muted); }
.car-body .meta i { font-style: normal; margin: 0 6px; opacity: .6; }
.car-tools { display: flex; gap: 8px; }
.car-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; flex-wrap: wrap; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; }
.price .cur { font-size: 14px; color: var(--muted); }
.price .monthly { font-size: 14px; color: var(--muted); margin-inline-start: 10px; }
.price .monthly .num { color: var(--ink-2); }
.car-actions { display: flex; gap: 8px; }
.car.hide { display: none; }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); margin-bottom: 32px; }
.empty p { margin: 0 0 16px; color: var(--muted); }
.avail-note { margin: 24px 0 -8px; font-size: 15px; color: var(--ink-2); }
/* التقسيط اختياري: إذا المعرض ما حط سعر تقسيط، ما بيظهر شي عنو */
[data-finance="0"] .fin { display: none !important; }


/* ---------- عن المعرض ---------- */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-lead { display: grid; grid-template-columns: 200px 1fr; gap: 40px; margin-bottom: 72px; }
.about-lead p { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.55; margin: 0; max-width: 32ch; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.point { border-top: 1px solid var(--ink); padding-top: 22px; }
.point .n { font-family: var(--font-display); color: var(--accent); font-size: 14px; }
.point h4 { font-family: var(--font-display); font-weight: 400; font-size: 21px; margin: 10px 0 8px; }
.point p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- صورة عريضة (المعرض بيختارها) ---------- */
.showcase { position: relative; height: min(72vh, 680px); min-height: 360px; overflow: hidden; background: var(--surface-2); }
.showcase img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- زورنا ---------- */
.visit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: stretch; }
.visit-info { display: grid; gap: 0; }
.visit-row { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr auto; gap: 20px; align-items: start; }
.visit-row:first-child { border-top: 1px solid var(--line); }
.visit-row .k { font-size: 13px; color: var(--muted); padding-top: 3px; }
.visit-row .v { font-size: 17px; }
.visit-row .v small { display: block; font-size: 14px; color: var(--muted); }
.open-now { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ok); }
.open-now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-now.closed { color: #C2410C; }
.visit-full { grid-template-columns: 1fr; max-width: 900px; }

/* ---------- الفوتر الأسود ---------- */
.footer { background: var(--header); color: var(--header-ink); padding: 64px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links h5 { margin: 0 0 14px; font-weight: 400; font-size: 13px; opacity: .55; }
.footer-links a { display: block; font-size: 14.5px; opacity: .85; padding: 3px 0; }
.footer-links a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 13px; opacity: .8; flex-wrap: wrap; }
.powered { display: inline-flex; align-items: center; gap: 10px; }
.powered img { width: 34px; height: 34px; border-radius: 8px; }
.social { display: flex; gap: 8px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.social a:hover { border-color: #fff; }

/* ---------- شريط الجوال الثابت ---------- */
.mobile-bar { display: none; }

/* ---------- قايمة الجوال ---------- */
.drawer { position: fixed; inset: 68px 0 0 0; background: var(--header); color: var(--header-ink); z-index: 49; padding: 24px 16px; display: none; flex-direction: column; gap: 4px; }
.drawer.open { display: flex; }
.drawer a { font-family: var(--font-display); font-weight: 300; font-size: 28px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }

/* =================== الجوال =================== */
@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: 1 / -1; }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .visit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { padding-bottom: 76px; }
  .topbar .wrap { height: 60px; }
  .drawer { inset: 60px 0 0 0; }
  .brand-mark { font-size: 18px; }
  .brand:not(.has-logo) .brand-sub { display: none; }
  .brand-logo { height: 32px; }
  .tools .tool-lang, .tools .tool-fav, .topbar .btn-wa-top { display: none; }

  .hero { height: 74vh; min-height: 480px; }
  .hero img { object-position: 22% 78%; }
  .hero .wrap { padding-bottom: 36px; }
  .hero::after { background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.05) 100%); }
  .hero .actions .btn { flex: 1; }

  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 18px 0; gap: 10px; align-items: flex-start; }
  .trust-item + .trust-item { padding-inline-start: 14px; }
  .trust-item:nth-child(3) { padding-inline-start: 0; }
  .trust-item b { font-size: 14px; }
  .trust-item span { font-size: 12px; }

  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .filters { grid-template-columns: 1fr auto; margin-bottom: 28px; }
  .filters .field:first-child { grid-column: auto; }
  .filters .field.select { display: none; }
  .filters.open .field.select { display: flex; grid-column: 1 / -1; }
  .filter-btn { display: inline-flex; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); align-items: center; gap: 8px; font-size: 14px; background: var(--surface); }

  .cars { grid-template-columns: 1fr; gap: 48px; }
  .car-body { padding: 16px 0 14px; }
  .car-body h3 { font-size: 22px; }
  .car-foot { padding-top: 14px; }
  .price b { font-size: 24px; }
  .price .monthly { margin-inline-start: 0; width: 100%; }
  .car-actions { width: 100%; }
  .car-actions .btn { flex: 1; }


  .about-lead { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
  .points { grid-template-columns: 1fr; gap: 28px; }

  .showcase { height: 56vh; min-height: 300px; }

  .visit-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .visit-row .k { grid-column: 1 / -1; }

  .footer-links { gap: 32px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; inset: auto 0 0 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { height: 48px; }
}

/* =========================================================
   صفحة السيارة
   ========================================================= */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; opacity: .5; }

.car-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 28px 0 28px; }
.car-head h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 4vw, 56px); line-height: 1.15; margin: 10px 0 8px; }
.car-head .meta { color: var(--muted); font-size: 15px; }
.car-head .meta i { font-style: normal; margin: 0 8px; opacity: .6; }
.head-tools { display: flex; gap: 8px; flex: none; }

/* المعرض */
.gallery-main { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); aspect-ratio: 16 / 9; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-main .counter { position: absolute; inset-inline-end: 16px; bottom: 16px; font-size: 13px; color: #fff; background: rgba(0,0,0,.55); border-radius: var(--pill); padding: 4px 12px; backdrop-filter: blur(4px); }
.gallery-main .nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.88); color: #151515; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.gallery-main:hover .nav-arrow { opacity: 1; }
.gallery-main .nav-arrow.prev { inset-inline-start: 16px; }
.gallery-main .nav-arrow.next { inset-inline-end: 16px; }
/* الأسهم: «السابق» بيأشّر لجهة بداية السطر، و«التالي» لنهايتو */
[dir="ltr"] [data-prev] .icon, [dir="ltr"] [data-cal-prev] .icon { transform: scaleX(-1) !important; }
[dir="ltr"] [data-next] .icon, [dir="ltr"] [data-cal-next] .icon { transform: none !important; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 120px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; opacity: .55; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .85; }
.thumb.on { opacity: 1; outline-color: var(--ink); }

/* المحتوى + صندوق السعر */
.car-layout { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; padding: 56px 0 96px; }
.car-layout > *, .booking > * { min-width: 0; } /* ما يطلع العمود أعرض من مكانو */
.car-main > section + section { margin-top: 64px; }
.car-main h2 { font-family: var(--font-display); font-weight: 300; font-size: 30px; margin: 6px 0 22px; line-height: 1.25; }
.lead-text { font-family: var(--font-display); font-weight: 300; font-size: 22px; line-height: 1.75; margin: 0; color: var(--ink-2); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.quick div { padding: 20px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.quick .icon { width: 24px; height: 24px; color: var(--accent); stroke-width: 1.4; }
.quick p > span { display: block; font-size: 12.5px; color: var(--muted); }
.quick b { font-weight: 500; font-size: 16px; }

.specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; text-align: end; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 40px; padding: 0; margin: 0; list-style: none; }
.features li { display: flex; gap: 12px; align-items: center; font-size: 15px; padding: 6px 0; }
.features .icon { width: 18px; height: 18px; color: var(--accent); }

/* حاسبة القسط */
.calc { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 28px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.calc label.k { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; min-width: 52px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line); font-size: 14px; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.calc-result { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.calc-result .big { font-family: var(--font-display); font-weight: 300; font-size: 48px; line-height: 1; }
.calc-result .big small { font-size: 16px; color: var(--muted); margin-inline-start: 6px; }
.calc-result .detail { font-size: 13.5px; color: var(--muted); text-align: end; }
.note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* صندوق السعر الثابت */
.price-box { position: sticky; top: 92px; transition: top .3s; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 28px; }
.has-sticky .price-box { top: 164px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: var(--pill); padding: 4px; margin-bottom: 22px; }
.seg button { height: 36px; border-radius: var(--pill); font-size: 14px; color: var(--muted); transition: all .2s; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
:root[data-theme="dark"] .seg button.on { background: var(--line); }
.pb-price { font-family: var(--font-display); font-weight: 300; font-size: 44px; line-height: 1.05; }
.pb-price small { font-size: 16px; color: var(--muted); margin-inline-start: 6px; }
.pb-sub { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.pb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.pb-actions .btn { width: 100%; }
.pb-actions .full { grid-column: 1 / -1; }
.pb-link { display: block; text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.pb-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* سؤال على واتساب */
.ask { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ask .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; flex-wrap: wrap; }
.ask h2 { font-family: var(--font-display); font-weight: 300; font-size: 32px; margin: 0 0 6px; }
.ask p { margin: 0; color: var(--muted); }

/* الشريط الثابت فوق (يظهر بعد الصور) */
.stickybar { position: fixed; top: 68px; inset-inline: 0; z-index: 45; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transform: translateY(-110%); transition: transform .3s; }
.stickybar.show { transform: none; }
.stickybar .wrap { height: 72px; display: flex; align-items: center; gap: 16px; }
.stickybar img { width: 64px; height: 44px; object-fit: cover; border-radius: var(--radius); }
.stickybar .sb-name { font-weight: 500; font-size: 15px; line-height: 1.3; }
.stickybar .sb-price { font-size: 13.5px; color: var(--muted); }
.stickybar .sb-links { display: flex; gap: 24px; margin-inline-start: auto; font-size: 14px; color: var(--ink-2); }
.stickybar .sb-links a:hover { color: var(--ink); }
.stickybar .sb-actions { display: flex; gap: 8px; margin-inline-start: 24px; }

/* نوافذ الحجز والتقييم */
dialog.sheet { border: 0; padding: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); background: var(--surface); color: var(--ink); border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.sheet::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px 0; }
.sheet-head h3 { font-family: var(--font-display); font-weight: 300; font-size: 26px; margin: 4px 0 0; }
.sheet-body { padding: 20px 28px 28px; display: grid; gap: 20px; }
.sheet-car { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.sheet-car img { width: 84px; height: 56px; object-fit: cover; border-radius: var(--radius); }
.sheet-car b { display: block; font-weight: 500; }
.sheet-car span { font-size: 13px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field.plain input { padding-inline-start: 16px; }
.upload { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); font-size: 14px; cursor: pointer; display: grid; gap: 6px; place-items: center; }
.upload:hover { border-color: var(--ink); color: var(--ink); }
.upload .icon { width: 26px; height: 26px; }
.upload input { display: none; }
.upload.has-file { border-style: solid; border-color: var(--ok); color: var(--ink); }
.done { text-align: center; padding: 18px 0 6px; display: none; }
.done .icon { width: 46px; height: 46px; color: var(--ok); stroke-width: 1.4; }
.done h4 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 10px 0 6px; }
.done p { margin: 0; color: var(--muted); }
.sheet.sent .form-part { display: none; }
.sheet.sent .done { display: block; }

/* سيارات مشابهة */
.similar .cars { gap: 48px 40px; }

@media (max-width: 1080px) {
  .car-layout { grid-template-columns: 1fr; gap: 40px; }
  .price-box { position: static; order: -1; }
  .stickybar .sb-links { display: none; }
}

@media (max-width: 720px) {
  .car-head { flex-direction: column; align-items: flex-start; padding: 18px 0 20px; gap: 14px; }
  .car-head .meta i { margin: 0 5px; }
  .gallery-wrap { margin: 0 calc(var(--gutter) * -1); }
  .gallery-main { border-radius: 0; aspect-ratio: 4 / 3; }
  .gallery-main .nav-arrow { opacity: 1; width: 38px; height: 38px; }
  .thumbs { padding: 0 var(--gutter); }
  .thumb { width: 88px; }
  .car-layout { padding: 28px 0 64px; }
  .car-main > section + section { margin-top: 48px; }
  .car-main h2 { font-size: 24px; }
  .lead-text { font-size: 19px; }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick div { padding: 14px; gap: 10px; }
  .specs { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .calc { padding: 20px; }
  .calc-grid { grid-template-columns: 1fr; gap: 20px; }
  .calc-result .big { font-size: 38px; }
  .calc-result .detail { text-align: start; }
  .price-box { padding: 22px; }
  .pb-price { font-size: 38px; }
  .stickybar { top: 60px; }
  .stickybar .wrap { height: 62px; gap: 12px; }
  .stickybar .sb-actions { display: none; }
  .ask .wrap { padding-top: 36px; padding-bottom: 36px; }
  .ask .btn { width: 100%; }
  .sheet-head { padding: 20px 20px 0; }
  .sheet-body { padding: 16px 20px 22px; }
  .two { grid-template-columns: 1fr; }
}

/* =========================================================
   الإيجار
   ========================================================= */
.hero-rent .wrap { padding-bottom: 120px; }
.rent-search {
  position: relative; z-index: 2; margin-top: -52px;
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.12);
}
.rs-field { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 22px; border-inline-end: 1px solid var(--line); }
.rs-field span { font-size: 12.5px; color: var(--muted); }
.rs-field input, .rs-field select { border: 0; background: transparent; outline: none; font-size: 15.5px; padding: 0; appearance: none; width: 100%; cursor: pointer; }
.rs-field.select::after { content: ""; position: absolute; inset-inline-end: 22px; bottom: 22px; width: 7px; height: 7px; border-left: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); pointer-events: none; }
.rent-search .btn { margin: 10px; height: auto; border-radius: var(--radius); padding: 0 28px; }
.trust-rent { margin-top: 48px; border-top: 1px solid var(--line); }

.status-now { background: var(--wa) !important; color: #fff !important; }
.status-soon { background: var(--surface) !important; color: var(--ink) !important; }
.rent-price .price b { font-size: 26px; }
.rent-more { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.rent-more i { font-style: normal; margin: 0 6px; opacity: .6; }

.terms { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.terms li { padding: 20px 0; display: grid; gap: 4px; }
.terms li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.terms b { font-weight: 400; font-size: 13px; color: var(--muted); }
.terms span { font-size: 16px; font-weight: 500; }

@media (max-width: 1080px) {
  .rent-search { grid-template-columns: 1fr 1fr; }
  .rs-field:nth-child(2) { border-inline-end: 0; }
  .rs-field:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-inline-end: 0; }
  .rent-search .btn { grid-column: 1 / -1; height: 50px; }
  .terms { grid-template-columns: 1fr 1fr; }
  .terms li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .terms li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .hero-rent .wrap { padding-bottom: 90px; }
  .rent-search { margin-top: -40px; }
  .rs-field { padding: 12px 16px; }
  .trust-rent { margin-top: 32px; }
  .terms { margin-top: 40px; }
  .terms li { padding: 16px 0; }
  .terms li + li { padding-inline-start: 14px; }
}

/* صندوق سعر الإيجار */
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.rb-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 22px; }
.rb-dates .rs-field { padding: 10px 14px; }
.rb-dates .rs-field:last-child { border-inline-end: 0; }
.rb-dates input { font-size: 14.5px; }
.rb-total { font-size: 14px; color: var(--muted); margin-top: 12px; min-height: 1.7em; }
.rb-total b { color: var(--ink); font-weight: 500; }
.rb-total.bad { color: #C2410C; }
.btn.is-disabled { opacity: .4; pointer-events: none; }

/* تقويم التوفر */
.cal { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px 22px; max-width: 560px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head b { font-family: var(--font-display); font-weight: 400; font-size: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .wd { font-size: 12px; color: var(--muted); padding: 4px 0 8px; }
.cal-grid .d { height: 42px; display: grid; place-items: center; font-size: 14px; border-radius: 6px; font-family: var(--font-display); }
.cal-grid .d.past { color: var(--muted); opacity: .45; }
.cal-grid .d.booked { color: var(--muted); text-decoration: line-through; background: repeating-linear-gradient(-45deg, var(--surface-2) 0 6px, transparent 6px 10px); }
.cal-grid .d.today { outline: 1.5px solid var(--ink); }
.cal-legend { display: flex; gap: 20px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.cal-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
.cal-legend .lg-booked { background: repeating-linear-gradient(-45deg, var(--surface-2) 0 3px, transparent 3px 5px); }

@media (max-width: 720px) {
  .cal { padding: 16px; }
  .cal-grid .d { font-size: 13px; }
}

/* =========================================================
   صفحة طلب الحجز
   ========================================================= */
.booking { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: start; padding: 8px 0 96px; }
.bk-step { padding: 32px 0; border-top: 1px solid var(--line); }
.bk-step:first-child { border-top: 0; padding-top: 8px; }
.bk-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.bk-step-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0; }
.bk-n { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 14px; flex: none; }
.bk-grid { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: 10px; }
.bk-grid-2 { grid-template-columns: 1fr 1fr; }
.bk-field { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.bk-field:focus-within { border-color: var(--ink); }
.bk-field span { font-size: 12.5px; color: var(--muted); }
.bk-field input, .bk-field select { border: 0; background: transparent; outline: none; font-size: 15.5px; padding: 2px 0; appearance: none; width: 100%; }
.bk-field.select::after { content: ""; position: absolute; inset-inline-end: 16px; bottom: 18px; width: 7px; height: 7px; border-left: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); pointer-events: none; }
[data-show] { margin-top: 12px; }
.bk-options.bk-options-3 { grid-template-columns: repeat(3, 1fr); }
.bk-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
.bk-alert { margin: 12px 0 0; padding: 12px 16px; border-radius: var(--radius); background: color-mix(in srgb, #C2410C 10%, transparent); color: #C2410C; font-size: 14px; }

.bk-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-opt { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); cursor: pointer; transition: border-color .2s; }
.bk-opt:hover { border-color: var(--muted); }
.bk-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bk-opt input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.bk-opt b { display: block; font-weight: 500; font-size: 15px; }
.bk-opt small { font-size: 13px; color: var(--muted); }
.bk-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.bk-check input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.upload small { font-size: 12.5px; }

.bk-summary { top: 92px; }
.sum { margin: 0; display: grid; gap: 0; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; text-align: end; }
.sum .tier { display: inline-block; font-size: 11.5px; color: var(--accent); margin-inline-start: 6px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.sum-total span { font-size: 15px; }
.sum-total b { font-family: var(--font-display); font-weight: 300; font-size: 36px; }

.bk-done { text-align: center; max-width: 520px; margin: 40px auto 120px; }
.bk-done .icon { width: 64px; height: 64px; color: var(--ok); stroke-width: 1.2; }
.bk-done h2 { font-family: var(--font-display); font-weight: 300; font-size: 36px; margin: 14px 0 10px; }
.bk-done p { color: var(--muted); margin: 0 0 28px; }

@media (max-width: 1080px) {
  .booking { grid-template-columns: 1fr; gap: 24px; }
  .bk-summary { position: static; order: 0 !important; }
}
@media (max-width: 720px) {
  .bk-grid { grid-template-columns: 1fr 1fr; }
  .bk-grid > :nth-child(1) { grid-column: 1; }
  .bk-grid-2 { grid-template-columns: 1fr; }
  .bk-options, .bk-options.bk-options-3 { grid-template-columns: 1fr; }
  .bk-grid-3 { grid-template-columns: 1fr 1fr; }
  .bk-grid-3 > :first-child { grid-column: 1 / -1; }
  .bk-step { padding: 24px 0; }
  .booking { padding-bottom: 48px; }
}


/* =========================================================
   صفحات الخصوصية والشروط و404
   ========================================================= */
html[lang="ar"] [data-only="en"], html[lang="en"] [data-only="ar"] { display: none !important; }
.legal-links { display: flex; gap: 20px; }
.legal-links a { opacity: .85; }
.legal-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.legal { max-width: 820px; padding-bottom: 96px; }
.legal h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 4vw, 52px); margin: 28px 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16.5px; line-height: 1.9; }
.legal ul { padding-inline-start: 22px; }
.notfound { text-align: center; padding: 120px 16px 140px; max-width: 640px; }
.nf-code { font-family: var(--font-display); font-weight: 200; font-size: clamp(90px, 16vw, 160px); line-height: 1; color: var(--accent); }
.notfound h1 { font-family: var(--font-display); font-weight: 300; font-size: 36px; margin: 10px 0 10px; }
.notfound p { color: var(--muted); margin: 0 0 32px; }
.notfound .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 720px) { .legal-links { gap: 14px; } .notfound { padding: 72px 0 96px; } }


/* =========================================================
   تقويم اختيار التاريخ
   ========================================================= */
.dp-btn { text-align: start; font-size: 15.5px; padding: 2px 0; width: 100%; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-btn.on { color: var(--accent); }
.rs-field, .bk-field { position: relative; }
.dp-pop { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 60; width: 320px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.18); padding: 14px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-head b { font-family: var(--font-display); font-weight: 400; font-size: 16px; }
.dp-head .icon-btn { width: 36px; height: 36px; }
[dir="rtl"] .dp-head [data-dp-next] .icon, [dir="ltr"] .dp-head [data-dp-prev] .icon { transform: scaleX(-1); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-grid .wd { font-size: 12px; color: var(--muted); padding: 4px 0 6px; }
.dp-d { height: 38px; border-radius: 8px; font-size: 14px; font-family: var(--font-display); color: var(--ink); }
.dp-d:hover:not([disabled]) { background: var(--surface-2); }
.dp-d.today { box-shadow: inset 0 0 0 1px var(--line); }
.dp-d.mid { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 0; }
.dp-d.sel { background: var(--ink); color: var(--bg); }
.dp-d[disabled] { color: var(--muted); opacity: .4; text-decoration: line-through; cursor: not-allowed; }
@media (max-width: 720px) {
  .dp-pop { position: fixed; inset: auto 0 0 0; width: auto; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .dp-d { height: 44px; }
}


/* #########################################################
   (2) طبقة «ليل» — الشكل الخاص بهالقالب
   ######################################################### */

/* ---------- عام ---------- */
.eyebrow { color: var(--accent-text); font-weight: 600; }
.btn { border-radius: 12px; font-weight: 600; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-line { background: var(--surface-2); border-color: transparent; }
.btn-line:hover { border-color: var(--ink); }
.icon-btn { background: var(--surface); border-color: var(--line); }
.link-arrow { font-weight: 600; color: var(--accent-text); }

/* ---------- الشريط فوق: زجاج غامق فوق الصورة ---------- */
.topbar { background: transparent; color: var(--glass-ink); }
.topbar .wrap { height: 76px; }
.topbar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0)); pointer-events: none; }
.topbar .wrap { position: relative; }
.brand-logo { background: rgba(0,0,0,.5); border-radius: 12px; padding: 4px; height: 42px; }
.brand.has-logo .brand-sub { font-family: var(--font-display); font-weight: 800; font-size: 17px; opacity: 1; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.nav { gap: 2px; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12); border-radius: var(--pill); padding: 4px; }
.nav a { opacity: .85; padding: 8px 18px; border: 0; border-radius: var(--pill); color: #fff; font-weight: 500; }
.nav a:hover, .nav a.on { opacity: 1; background: rgba(255,255,255,.14); border: 0; }
.tool { color: #fff; opacity: 1; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; height: 40px; min-width: 40px; font-weight: 600; }
.tool:hover { background: rgba(255,255,255,.18); }
.topbar .btn-wa-top { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px; height: 40px; font-weight: 700; }
.drawer { background: var(--cinema); color: #F5F2EB; inset: 76px 0 0 0; }
.drawer a { font-family: var(--font-display); font-weight: 800; }
/* صفحات بلا صورة كبيرة: الشريط بيصير زجاج غامق كامل */
body:not(:has(.hero)) .topbar { background: var(--cinema); }
body:not(:has(.hero)) .topbar::before { display: none; }

/* ---------- الواجهة السينمائية ---------- */
/* بالرئيسية الشريط بيقعد فوق الصورة وبيطلع معها؛ بباقي الصفحات ثابت وغامق */
body:has(.hero) .topbar { position: absolute; inset: 0 0 auto 0; }
.hero { height: min(96vh, 900px); min-height: 600px; background: var(--cinema); }
.hero img { object-position: center 60%; }
.hero::after, [dir="ltr"] .hero::after { background: linear-gradient(to left, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 50%, rgba(0,0,0,0) 78%), linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0) 28%); }
[dir="ltr"] .hero::after { background: linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 50%, rgba(0,0,0,0) 78%), linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0) 28%); }
.hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(to top, var(--bg) 4%, rgba(0,0,0,0)); z-index: 1; }
.hero .wrap { z-index: 2; padding-bottom: 150px; }
.hero h1 { font-weight: 900; font-size: clamp(48px, 7vw, 116px); line-height: 1.02; max-width: 10ch; margin: 0 0 34px; text-shadow: 0 4px 30px rgba(0,0,0,.35); color: #fff; }
.hero h1::after { content: ""; display: block; width: 88px; height: 6px; border-radius: 6px; background: var(--accent); margin-top: 26px; }
.hero .btn-accent { background: var(--accent); color: var(--accent-ink); }
.hero .btn-ghost-light { background: var(--glass); backdrop-filter: blur(10px); border-color: rgba(255,255,255,.25); }

/* شارات الثقة: بطاقات بإطار رفيع */
.trust { background: none; border: 0; position: relative; z-index: 3; }
.trust .wrap { gap: 12px; }
.trust-item, .trust-item + .trust-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.trust-item .icon { color: var(--accent-text); width: 28px; height: 28px; stroke-width: 1.6; }
.trust-item b { font-family: var(--font-display); font-weight: 700; }

/* ---------- عناوين الأقسام ---------- */
.section-head h2 { font-weight: 800; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.08; }
.tab { background: var(--surface); border-color: var(--line); font-weight: 500; }
.tab.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tab.on small { color: inherit; }
.field { border-radius: 12px; height: 52px; }

/* ---------- بطاقة السيارة: ستوديو غامق ---------- */
.cars { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.car { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px; transition: border-color .25s, transform .25s; }
.car:hover { border-color: var(--accent); transform: translateY(-3px); }
.car-media { border-radius: 14px; background: radial-gradient(120% 90% at 50% 100%, #2a2a2e 0%, #0D0D0F 70%); }
.car-media .status { background: var(--accent); color: var(--accent-ink); font-weight: 600; inset-inline-start: 12px; top: 12px; }
.car-body { padding: 14px 10px 4px; border-bottom: 0; }
.car-body h3 { font-weight: 700; font-size: 20px; }
.car-body .meta { font-size: 13px; }
.car-foot { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: stretch; gap: 12px; padding: 4px 10px 6px; }
.price { flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price b { font-weight: 800; font-size: 28px; }
.price .monthly { width: 100%; margin: 0; color: var(--accent-text); font-weight: 500; font-size: 13.5px; }
.price .monthly .num { color: inherit; }
.car-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.car-actions .btn { height: 46px; }
.car .car-actions [data-wa] { background: var(--wa); color: #fff; border: 0; }
.car .car-actions a[href^="طلب-حجز"] { background: var(--accent); color: var(--accent-ink); }
.rent-more { color: var(--accent-text); }

.empty { border-radius: var(--radius); }

/* عن المعرض */
.about { background: none; border: 0; }
.about-lead p { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.45; }
.point { border-top: 1px solid var(--line); }
.point .n { color: var(--accent-text); font-weight: 800; }
.point h4 { font-weight: 700; }
.terms li, .terms li + li { border-color: var(--line); }

/* الصورة العريضة: سينمائية بتذوب بالصفحة */
.showcase { height: min(78vh, 720px); background: var(--cinema); }
.showcase::before, .showcase::after { content: ""; position: absolute; inset-inline: 0; height: 30%; z-index: 1; }
.showcase::before { top: 0; background: linear-gradient(to bottom, var(--bg), rgba(0,0,0,0)); }
.showcase::after { bottom: 0; background: linear-gradient(to top, var(--bg), rgba(0,0,0,0)); }

/* زوروا المعرض: 3 بطاقات، الهاتف ذهبي */
.visit-full { max-width: none; }
.visit-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.visit-row, .visit-row:first-child { grid-template-columns: 1fr; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); align-content: start; }
.visit-row .v { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.visit-row:last-child { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.visit-row:last-child .k, .visit-row:last-child .v small { color: rgba(20,15,5,.7); }
.visit-row:last-child .link-arrow { color: var(--accent-ink); }

/* الفوتر: بسيط بخط فاصل */
.footer { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); }
.footer-top { border-bottom-color: var(--line); }
.footer-links h5 { opacity: .6; }
.social a { border-color: var(--line); }
.brand-mark { font-family: var(--font-display); font-weight: 900; letter-spacing: 0; }
.footer .brand.has-logo .brand-sub { color: var(--ink); text-shadow: none; }
.footer .brand-logo { background: var(--cinema); }

/* ---------- صفحة السيارة ---------- */
.car-head h1 { font-weight: 800; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.06; }
.gallery-main { border-radius: 22px; background: var(--cinema); }
.thumb { border-radius: 12px; }
.thumb.on { outline-color: var(--accent); outline-width: 2px; }
.gallery-main .nav-arrow { background: var(--glass); color: #fff; backdrop-filter: blur(8px); }
.quick { border: 0; gap: 10px; }
.quick div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.quick .icon { color: var(--accent-text); }
.quick b { font-family: var(--font-display); font-weight: 700; }
.car-main h2 { font-weight: 800; font-size: 34px; }
.lead-text { font-family: var(--font-body); font-size: 19px; }
.specs dd { font-weight: 600; }
.features .icon { color: var(--accent-text); }
.calc { border-radius: var(--radius-lg); }
.calc .chip { border-radius: 10px; font-weight: 600; }
.calc .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.calc-result { background: var(--cinema); color: #F5F2EB; border: 0; border-radius: 18px; padding: 22px 24px; }
.calc-result label.k, .calc-result .detail, .calc-result .big small { color: rgba(245,242,235,.7); }
.calc-result .big { font-family: var(--font-display); font-weight: 900; color: var(--accent); }
.price-box { border-radius: 22px; }
.pb-price { font-weight: 800; }
.price-box .seg { border-radius: 12px; }
.price-box .seg button { border-radius: 9px; font-weight: 600; }
.pb-actions .btn-solid { background: var(--accent); color: var(--accent-ink); }
/* سؤال على واتساب: بلوك سينمائي */
.ask { background: none; border: 0; padding-top: 24px; }
.ask .wrap { max-width: calc(var(--wrap) - 2 * var(--gutter)); background: radial-gradient(60% 140% at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%), var(--cinema); color: #F5F2EB; border-radius: var(--radius-lg); padding: 44px; }
.ask h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); }
.ask p { color: rgba(245,242,235,.7); }
.stickybar { top: 76px; }
.stickybar .sb-name { font-family: var(--font-display); font-weight: 700; }
.stickybar .btn-solid { background: var(--accent); color: var(--accent-ink); }
.has-sticky .price-box { top: 168px; }

/* التقويم والنوافذ والحجز */
dialog.sheet { border-radius: 24px; }
.sheet-head h3 { font-weight: 800; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bk-n { background: var(--accent); color: var(--accent-ink); border: 0; font-weight: 700; }
.bk-opt, .bk-field, .rs-field, .cal, .upload { border-radius: 14px; }
.bk-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); border-color: var(--accent); }
.sum-total b { font-weight: 800; }
.bk-summary .btn-solid { background: var(--accent); color: var(--accent-ink); }
.dp-pop { border-radius: 18px; }
.dp-d.sel { background: var(--accent); color: var(--accent-ink); }
.dp-d.mid { background: color-mix(in srgb, var(--accent) 20%, transparent); }

/* بحث الإيجار فوق آخر الصورة */
.hero-rent .wrap { padding-bottom: 190px; }
.rent-search { margin-top: -120px; border-radius: 20px; z-index: 3; }
.rent-search .btn { background: var(--accent); color: var(--accent-ink); border-radius: 12px; }
.trust-rent { margin-top: 32px; border: 0; }

/* القانونية و404 */
.legal h1, .notfound h1 { font-weight: 800; }
.nf-code { font-weight: 900; }

/* =================== تابلت =================== */
@media (max-width: 1080px) {
  .cars { grid-template-columns: repeat(2, 1fr); }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .visit-info { grid-template-columns: 1fr; }
}

/* =================== جوال =================== */
@media (max-width: 720px) {
  .topbar .wrap { height: 64px; }
  .hero { height: 88vh; min-height: 540px; }
  .hero .wrap { padding-bottom: 110px; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero::after, [dir="ltr"] .hero::after { background: linear-gradient(to top, rgba(0,0,0,.6) 10%, rgba(0,0,0,.15) 60%), linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0) 30%); }
  .drawer { inset: 64px 0 0 0; }
  .brand-logo { height: 36px; }
  .nav { display: none; }
  .trust .wrap { gap: 8px; }
  .trust-item, .trust-item + .trust-item { padding: 14px; }
  .cars { grid-template-columns: 1fr; gap: 16px; }
  .hero-rent .wrap { padding-bottom: 150px; }
  .rent-search { margin-top: -96px; }
  .showcase { height: 52vh; }
  .ask .wrap { margin: 0 16px; padding: 28px 20px; border-radius: 22px; }
  .mobile-bar { background: color-mix(in srgb, var(--cinema) 88%, transparent); border-top: 0; }
  .mobile-bar .btn-line { background: var(--accent); color: var(--accent-ink); border: 0; }
}
