/* ═══════════ Kimo Car — Public Site · Apple Edition ═══════════
   تصميم بديل بروح Human Interface Guidelines: وضوح، تنحّي، وعمق.
   نفس الـHTML بتاع التصميم الكلاسيكي — الاختلاف كله هنا.
   محايد رمادي/أبيض + الذهب كلون علامة واحد (accent)، مش زخرفة. */

:root {
    /* ── الأسطح ── */
    --s-bg: #fbfbfd;
    --s-bg-2: #f5f5f7;
    --s-card: #ffffff;
    --s-card-2: #ffffff;
    --s-fill: rgba(120,120,128,.10);
    --s-fill-strong: rgba(120,120,128,.16);

    /* ── النص ── */
    --s-ink: #1d1d1f;
    --s-ink-2: #6e6e73;
    --s-muted: #86868b;
    --s-line: rgba(0,0,0,.10);
    --s-separator: rgba(0,0,0,.08);

    /* ── لون العلامة (accent واحد) ── */
    --s-gold: #A8862A;
    --s-gold-light: #C9A227;
    --s-gold-dark: #8a6d20;
    --s-gold-line: rgba(168,134,42,.30);
    --s-gold-soft: rgba(168,134,42,.10);
    --s-on-gold: #ffffff;

    /* ── الشكل ── */
    --s-radius: 20px;
    --s-radius-sm: 12px;
    --s-radius-lg: 28px;
    --s-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.07);
    --s-shadow-lift: 0 2px 6px rgba(0,0,0,.05), 0 18px 46px rgba(0,0,0,.11);
    --s-glow: var(--s-shadow);

    /* ── مواد الكروم ── */
    --s-material: rgba(251,251,253,.72);
    --s-material-solid: rgba(251,251,253,.97);
    --s-stage: #f5f5f7;
    --s-frame: #f0f0f2;
    --s-field: rgba(120,120,128,.08);
    --s-field-focus: #ffffff;
    --s-hairline: rgba(0,0,0,.07);
    --s-header: var(--s-material);
    --s-header-solid: var(--s-material-solid);
    --s-panel: rgba(255,255,255,.80);

    /* ── الخط: SF مع بدائل عربية قريبة ── */
    --s-font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Arabic',
                   'IBM Plex Sans Arabic', system-ui, sans-serif;
    --s-font-head: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Arabic',
                   'IBM Plex Sans Arabic', system-ui, sans-serif;
    --s-font-num: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Barlow', system-ui, sans-serif;

    /* ── الحركة: زنبركية زي أبل ── */
    --s-spring: cubic-bezier(.32, .72, 0, 1);
    --s-ease: cubic-bezier(.25, .1, .25, 1);
}

:root[data-theme="dark"] {
    --s-bg: #000000;
    --s-bg-2: #0a0a0b;
    --s-card: #1c1c1e;
    --s-card-2: #1c1c1e;
    --s-fill: rgba(120,120,128,.20);
    --s-fill-strong: rgba(120,120,128,.32);

    --s-ink: #f5f5f7;
    --s-ink-2: rgba(235,235,245,.62);
    --s-muted: rgba(235,235,245,.42);
    --s-line: rgba(255,255,255,.10);
    --s-separator: rgba(255,255,255,.08);

    --s-gold: #D4AF37;
    --s-gold-light: #E8C766;
    --s-gold-dark: #A8862A;
    --s-gold-line: rgba(212,175,55,.32);
    --s-gold-soft: rgba(212,175,55,.14);
    --s-on-gold: #1a1502;

    --s-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.5);
    --s-shadow-lift: 0 2px 8px rgba(0,0,0,.5), 0 22px 54px rgba(0,0,0,.6);

    --s-material: rgba(20,20,22,.70);
    --s-material-solid: rgba(10,10,11,.97);
    --s-stage: #0a0a0b;
    --s-frame: #161618;
    --s-field: rgba(120,120,128,.18);
    --s-field-focus: rgba(120,120,128,.26);
    --s-hairline: rgba(255,255,255,.07);
    --s-panel: rgba(28,28,30,.80);
}

/* ═══════════ الأساس ═══════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--s-font-body);
    background: var(--s-bg);
    color: var(--s-ink);
    font-size: 17px;
    line-height: 1.75;                 /* العربي محتاج تنفّس أكتر من اللاتيني */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--s-gold-soft); }

h1, h2, h3, h4 {
    font-family: var(--s-font-head);
    color: var(--s-ink);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;                 /* ممنوع tracking على العربي */
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

.num { font-family: var(--s-font-num); font-variant-numeric: tabular-nums; }

.s-container { max-width: 1120px; margin-inline: auto; padding-inline: 22px; }
.s-section { padding-block: clamp(56px, 8vw, 104px); }
.s-section-alt { background: var(--s-bg-2); }

.s-section-head {
    display: flex; align-items: end; justify-content: space-between;
    gap: 18px; margin-bottom: 38px; flex-wrap: wrap;
}
.s-section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; }
.s-section-head .sub { color: var(--s-ink-2); font-size: 1.0rem; margin-top: 8px; }

/* الـkicker: هادي ومتواضع بدل الذهبي الصارخ */
.s-kicker {
    color: var(--s-gold); font-weight: 600; font-size: .8rem;
    margin-bottom: 10px; display: inline-flex; align-items: center; gap: 8px;
}
.s-kicker::before { content: none; }

/* ═══════════ الأزرار ═══════════
   أربع درجات بس: ممتلئ، مظلّل، رمادي، نص. كلها كبسولة وبارتداد عند الضغط. */
.s-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px;                  /* هدف لمس مريح */
    padding: 11px 24px;
    border-radius: 999px;
    font-family: var(--s-font-body);
    font-weight: 600; font-size: 1rem;
    border: none; cursor: pointer;
    transition: transform .22s var(--s-spring), background-color .22s var(--s-ease),
                color .22s var(--s-ease), box-shadow .22s var(--s-ease);
}
.s-btn:active { transform: scale(.97); }

.s-btn-gold {                           /* الإجراء الأساسي */
    background: var(--s-gold); color: var(--s-on-gold);
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.s-btn-gold:hover { background: var(--s-gold-dark); }

.s-btn-primary {                        /* مظلّل */
    background: var(--s-gold-soft); color: var(--s-gold);
}
.s-btn-primary:hover { background: var(--s-gold-line); }

.s-btn-outline {                        /* رمادي محايد */
    background: var(--s-fill); color: var(--s-ink);
}
.s-btn-outline:hover { background: var(--s-fill-strong); }

.s-btn-ghost {                          /* نص فقط */
    background: transparent; color: var(--s-gold);
    padding: 10px 12px; font-size: .95rem; min-height: 40px;
}
.s-btn-ghost:hover { color: var(--s-gold-dark); }
.s-btn-ghost i { margin-inline-end: 4px; }

.s-btn-whatsapp { background: #34c759; color: #fff; }
.s-btn-whatsapp:hover { background: #2fb350; color: #fff; }

.s-btn-block { width: 100%; }
.s-btn-sm { min-height: 36px; padding: 8px 18px; font-size: .9rem; }

/* ═══════════ الهيدر: مادة شفافة فوق المحتوى ═══════════ */
.s-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--s-header);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: .5px solid var(--s-separator);
}
.s-header-inner { display: flex; align-items: center; gap: 26px; height: 64px; }
.s-header .logo img { height: 38px; width: auto; }

.s-nav { display: flex; gap: 4px; flex: 1; }
.s-nav a {
    position: relative; color: var(--s-ink-2);
    padding: 8px 14px; border-radius: 10px;
    font-size: .95rem; font-weight: 500;
    transition: color .18s var(--s-ease), background-color .18s var(--s-ease);
}
.s-nav a::after { content: none; }
.s-nav a:hover { color: var(--s-ink); background: var(--s-fill); }
.s-nav a.active { color: var(--s-ink); font-weight: 600; }

.s-header-cta { display: flex; gap: 8px; align-items: center; }
.s-wa-mini { display: none; padding: 9px 13px; }
.s-burger {
    display: none; background: var(--s-fill); border: none;
    border-radius: 10px; color: var(--s-ink); font-size: 1.05rem;
    cursor: pointer; min-width: 44px; min-height: 44px;
    transition: transform .2s var(--s-spring);
}
.s-burger:active { transform: scale(.94); }

.s-mobile-menu {
    display: none; position: fixed; inset: 64px 0 0 0;
    background: var(--s-material-solid);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 99; padding: 16px 20px; flex-direction: column; gap: 2px; overflow-y: auto;
}
.s-mobile-menu.open { display: flex; animation: sheetUp .38s var(--s-spring); }
.s-mobile-menu a {
    color: var(--s-ink); padding: 15px 16px; border-radius: 14px;
    font-weight: 500; font-size: 1.06rem; min-height: 44px;
    display: flex; align-items: center; gap: 10px;
    border-bottom: .5px solid var(--s-separator);
}
.s-mobile-menu a:active { background: var(--s-fill); }
.s-mobile-menu a.active { color: var(--s-gold); font-weight: 600; }

@keyframes sheetUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ═══════════ الغلاف ═══════════ */
.s-cover { background: var(--s-stage); padding-bottom: 80px; }
.s-cover-img { display: block; line-height: 0; }
.s-cover-img img {
    width: 100%; height: auto; max-height: 76vh;
    object-fit: contain; object-position: center; margin-inline: auto;
    transition: transform .6s var(--s-spring);
}
.s-cover-img:hover img { transform: scale(1.012); }
.s-cover-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding-top: 26px; }

/* الهيرو البديل */
.s-hero { position: relative; background: var(--s-stage); color: #fff; overflow: hidden; }
.s-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 62%; }
.s-hero-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.62)); }
.s-hero-inner { position: relative; padding-block: clamp(90px, 14vw, 180px); max-width: 680px; }
.s-hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.8rem); }
.s-hero h1 em { font-style: normal; color: var(--s-gold-light); }
.s-hero p { color: rgba(255,255,255,.86); font-size: 1.15rem; margin-top: 14px; }
.s-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ═══════════ البحث ═══════════ */
.s-search {
    background: var(--s-card); border: .5px solid var(--s-separator);
    border-radius: var(--s-radius-lg); box-shadow: var(--s-shadow);
    padding: 26px; margin-top: -48px; position: relative; z-index: 5;
}
.s-search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 14px; }
/* زرار البحث آخر خلية في الشبكة — يفضل في صف لوحده بدل ما يتوسّط الحقول */
.s-search-grid > .s-field:last-child { grid-column: 1 / -1; padding-top: 4px; }
.s-search-grid > .s-field:last-child .s-btn { width: auto; min-width: 200px; margin-inline-start: auto; }
/* البحث هو الإجراء الأساسي في الصفحة — ممتلئ مش مظلّل */
.s-search .s-btn-primary, .s-filters .s-btn-primary { background: var(--s-gold); color: var(--s-on-gold); }
.s-search .s-btn-primary:hover, .s-filters .s-btn-primary:hover { background: var(--s-gold-dark); }

/* ═══════════ الحقول ═══════════ */
.s-field label {
    display: block; font-size: .82rem; font-weight: 500;
    color: var(--s-ink-2); margin-bottom: 7px;
}
.s-field input, .s-field select, .s-field textarea,
input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="date"], input[type="search"], select, textarea {
    width: 100%; padding: 12px 15px; min-height: 44px;
    border-radius: var(--s-radius-sm);
    border: .5px solid transparent;
    font-family: var(--s-font-body); font-size: 1rem;
    background: var(--s-field); color: var(--s-ink);
    transition: background-color .18s var(--s-ease), border-color .18s var(--s-ease),
                box-shadow .18s var(--s-ease);
}
.s-field input::placeholder, textarea::placeholder { color: var(--s-muted); }
.s-field input:focus, .s-field select:focus, .s-field textarea:focus,
input:focus, select:focus, textarea:focus {
    outline: none;
    background: var(--s-field-focus);
    border-color: var(--s-gold-line);
    box-shadow: 0 0 0 4px var(--s-gold-soft);
}
.s-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* ═══════════ كروت السيارات ═══════════ */
.s-cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.s-car-card {
    background: var(--s-card); border: .5px solid var(--s-separator);
    border-radius: var(--s-radius); overflow: hidden;
    box-shadow: var(--s-shadow);
    transition: transform .35s var(--s-spring), box-shadow .35s var(--s-ease);
    display: flex; flex-direction: column;
}
.s-car-card:hover { transform: translateY(-5px); box-shadow: var(--s-shadow-lift); }
.s-car-card:active { transform: translateY(-2px) scale(.995); }

.s-car-media { position: relative; aspect-ratio: 4 / 3; background: var(--s-frame); overflow: hidden; }
.s-car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--s-spring); }
.s-car-card:hover .s-car-media img { transform: scale(1.05); }

.s-car-body { padding: 20px; flex: 1; }
.s-car-title { font-size: 1.12rem; font-weight: 600; color: var(--s-ink); }
.s-car-specs {
    display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px;
    color: var(--s-ink-2); font-size: .88rem;
}
.s-car-specs i { color: var(--s-muted); margin-inline-end: 4px; }
.s-car-foot {
    padding: 16px 20px; border-top: .5px solid var(--s-separator);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.s-price { font-family: var(--s-font-num); font-size: 1.24rem; font-weight: 700; color: var(--s-ink); }
.s-price small { font-size: .74rem; font-weight: 500; color: var(--s-muted); margin-inline-start: 4px; }

/* الشارات: ممتلئة وهادية */
.s-badge {
    position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
    padding: 5px 12px; border-radius: 999px;
    font-size: .76rem; font-weight: 600;
    background: var(--s-material-solid); color: var(--s-ink);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,.10);
}
.s-badge-available { color: #1a7f37; }
.s-badge-reserved { color: #b26205; }
.s-badge-sold { color: #c0362c; }
/* المباعة: الصورة بتفضل واضحة بالكامل — علامة زجاجية بعلامة صح بس،
   وتدرّج خفيف تحتها عشان تفضل مقروءة فوق أي صورة. */
.s-sold-overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.20));
}
.s-sold-overlay span {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 24px; border-radius: 999px;
    font-weight: 600; font-size: 1rem; color: #fff;
    background: rgba(28,28,30,.46);
    border: 1px solid rgba(255,255,255,.30);
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 30px rgba(0,0,0,.28);
}
.s-sold-overlay span i { color: var(--s-gold-light); font-size: .95em; }

/* تسمية المباع في تذييل الكارت — مكان السعر */
.s-sold-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; border-radius: 999px;
    font-size: .86rem; font-weight: 600;
    color: var(--s-ink-2); background: var(--s-fill);
}
.s-sold-tag i { color: var(--s-gold); }

/* ═══════════ تخطيط صفحة السيارات ═══════════ */
.s-cars-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.s-cars-layout > * { min-width: 0; }
.s-filters {
    background: var(--s-card); border: .5px solid var(--s-separator);
    border-radius: var(--s-radius); padding: 22px; position: sticky; top: 82px;
    box-shadow: var(--s-shadow);
}
.s-filters h3 { font-size: 1.02rem; margin-bottom: 16px; }
.s-filters h3 i { color: var(--s-gold); }
.s-filters .s-field { margin-bottom: 14px; }

.s-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--s-fill); border: none; border-radius: 999px;
    padding: 7px 14px; font-size: .86rem; color: var(--s-ink-2);
    transition: background-color .18s var(--s-ease);
}
.s-chip:hover { background: var(--s-fill-strong); }

/* ═══════════ معرض صور السيارة ═══════════ */
.s-gallery-main {
    border-radius: var(--s-radius); overflow: hidden; background: var(--s-frame);
    aspect-ratio: 16 / 10; max-height: 420px;
    cursor: zoom-in; position: relative; border: .5px solid var(--s-separator);
}
.s-gallery-main img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.s-gallery-main img.s-gallery-blur {
    position: absolute; inset: 0; z-index: 0; object-fit: cover;
    filter: blur(28px) saturate(1.1); transform: scale(1.2); opacity: .55;
}
.s-gallery-main .s-badge { z-index: 2; }

.s-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.s-thumbs::-webkit-scrollbar { display: none; }
.s-thumbs img {
    width: 88px; height: 66px; object-fit: cover; border-radius: 10px; cursor: pointer;
    border: 2px solid transparent; opacity: .6; flex-shrink: 0;
    transition: opacity .2s var(--s-ease), border-color .2s var(--s-ease), transform .25s var(--s-spring);
}
.s-thumbs img.active, .s-thumbs img:hover { border-color: var(--s-gold); opacity: 1; transform: translateY(-2px); }

.s-lightbox {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.92);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    align-items: center; justify-content: center; padding: 4vw;
}
.s-lightbox.open { display: flex; animation: fadeZoom .32s var(--s-spring); }
.s-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.s-lightbox .close {
    position: absolute; top: 20px; inset-inline-end: 24px; color: #fff; font-size: 1.6rem;
    background: rgba(255,255,255,.16); border: none; cursor: pointer;
    width: 44px; height: 44px; border-radius: 999px;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
@keyframes fadeZoom { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* ═══════════ الألواح والجداول ═══════════ */
.s-panel {
    background: var(--s-card); border: .5px solid var(--s-separator);
    border-radius: var(--s-radius); padding: 26px; box-shadow: var(--s-shadow);
}
.s-panel + .s-panel { margin-top: 20px; }
.s-panel h3 { font-size: 1.1rem; margin-bottom: 16px; }
.s-panel h3 i { color: var(--s-gold); }

.s-specs-table { width: 100%; border-collapse: collapse; }
.s-specs-table td { padding: 13px 4px; border-bottom: .5px solid var(--s-separator); font-size: .96rem; }
.s-specs-table tr:last-child td { border-bottom: none; }
.s-specs-table td:first-child { color: var(--s-ink-2); font-weight: 400; width: 42%; }
.s-specs-table td:last-child { font-weight: 600; color: var(--s-ink); }

/* حقلين جنب بعض (من/إلى) — مش صف مفتاح وقيمة */
.s-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
@media (max-width: 360px) { .s-pair { grid-template-columns: 1fr; } }

.s-two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.s-two-col-wide { grid-template-columns: 1.6fr 1fr; }
.s-two-col > *, .s-two-col-wide > * { min-width: 0; }

.s-compare-table { width: 100%; border-collapse: collapse; background: var(--s-card); border-radius: var(--s-radius); overflow: hidden; }
.s-compare-table th, .s-compare-table td { padding: 14px; border-bottom: .5px solid var(--s-separator); text-align: center; }
.s-compare-table th { background: var(--s-bg-2); font-weight: 600; }

.s-calc-result {
    background: var(--s-gold-soft); border: .5px solid var(--s-gold-line);
    border-radius: var(--s-radius); padding: 22px; text-align: center;
}
.s-pump { font-family: var(--s-font-num); font-size: 1.9rem; font-weight: 700; color: var(--s-gold-dark); }

/* ═══════════ سلايدر صور الكارت ═══════════
   الأسهم جوه منطقة الصورة وبتظهر عند المرور بس — زي ما أبل بتخفي التحكم
   لحد ما المستخدم يقرب من المحتوى. */
.s-slider {
    display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.s-slider::-webkit-scrollbar { display: none; }
.s-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.s-slide img { width: 100%; height: 100%; object-fit: cover; }

.s-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 34px; height: 34px; border-radius: 999px; border: none; cursor: pointer;
    background: var(--s-material-solid); color: var(--s-ink); font-size: .78rem;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 1px 4px rgba(0,0,0,.14);
    display: none; align-items: center; justify-content: center;
    transition: background-color .2s var(--s-ease), transform .22s var(--s-spring);
}
.s-slider-arrow.prev { inset-inline-start: 10px; }
.s-slider-arrow.next { inset-inline-end: 10px; }
.s-slider-arrow:hover { transform: translateY(-50%) scale(1.08); }
.s-slider-arrow:active { transform: translateY(-50%) scale(.92); }
@media (hover: hover) { .s-car-media:hover .s-slider-arrow { display: inline-flex; } }

.s-slider-dots {
    position: absolute; bottom: 10px; inset-inline: 0; z-index: 3;
    display: flex; gap: 5px; justify-content: center; pointer-events: none;
}
.s-slider-dots span {
    width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.55);
    transition: width .3s var(--s-spring), background-color .3s var(--s-ease);
}
.s-slider-dots span.on { width: 18px; background: #fff; }

.s-showcase-dots button {
    width: 7px; height: 7px; border-radius: 999px; border: none; cursor: pointer;
    background: rgba(255,255,255,.45); transition: width .3s var(--s-spring), background-color .3s var(--s-ease);
}
.s-showcase-dots button.on { width: 22px; background: #fff; }

/* الفاترينة (لو رجعت) */
.s-showcase { position: relative; background: var(--s-stage); }
.s-showcase-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.s-showcase-track::-webkit-scrollbar { display: none; }
.s-showcase-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 21 / 9; }
.s-showcase-slide img { width: 100%; height: 100%; object-fit: cover; }
.s-showcase-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.66)); }
.s-showcase-content { position: absolute; inset-block-end: 8%; inset-inline: 0; color: #fff; }
.s-showcase-content h1 { color: #fff; }
.s-showcase-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.s-showcase-price { font-family: var(--s-font-num); font-size: 1.5rem; font-weight: 700; }
.s-showcase-spec { color: rgba(255,255,255,.82); font-size: .93rem; }
.s-showcase-dots { position: absolute; inset-block-end: 18px; inset-inline: 0; display: flex; gap: 7px; justify-content: center; }

/* ═══════════ الترقيم والتنبيهات ═══════════ */
.s-pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.s-pagination a, .s-pagination span {
    min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--s-fill); color: var(--s-ink); font-size: .92rem; font-weight: 500;
    transition: background-color .18s var(--s-ease);
}
.s-pagination a:hover { background: var(--s-fill-strong); }
.s-pagination .current { background: var(--s-gold); color: var(--s-on-gold); }

.s-flash {
    padding: 14px 18px; border-radius: var(--s-radius-sm); margin-bottom: 18px;
    display: flex; align-items: center; gap: 10px; font-weight: 500;
    animation: sheetUp .4s var(--s-spring);
}
.s-flash-success { background: rgba(52,199,89,.12); color: #1a7f37; }
.s-flash-error { background: rgba(255,59,48,.12); color: #c0362c; }

/* ═══════════ الفوتر ═══════════ */
.s-footer { background: var(--s-bg-2); border-top: .5px solid var(--s-separator); padding-block: 52px 26px; margin-top: 60px; }
.s-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 34px; }
.s-footer h4 { font-size: .92rem; margin-bottom: 14px; color: var(--s-ink); }
.s-footer a, .s-footer p { color: var(--s-ink-2); font-size: .93rem; display: block; padding-block: 4px; }
.s-footer a { transition: color .18s var(--s-ease); }
.s-footer a:hover { color: var(--s-gold); }
.s-footer .logo img { height: 40px; margin-bottom: 14px; }
.s-footer .brandline {
    border-top: .5px solid var(--s-separator); padding-block: 20px; margin-top: 26px;
    font-size: .82rem; display: flex; justify-content: space-between; gap: 10px;
    flex-wrap: wrap; color: var(--s-muted);
}
.s-social { display: flex; gap: 9px; margin-top: 14px; }
.s-social a {
    width: 40px; height: 40px; border-radius: 999px; background: var(--s-fill);
    display: inline-flex; align-items: center; justify-content: center; color: var(--s-ink-2);
    transition: transform .22s var(--s-spring), background-color .2s var(--s-ease), color .2s var(--s-ease);
}
.s-social a:hover { background: var(--s-gold); color: var(--s-on-gold); transform: translateY(-2px); }

/* ═══════════ شريط الموبايل ═══════════ */
.s-mobile-actions {
    display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 90;
    background: var(--s-material-solid);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 9px;
    border-top: .5px solid var(--s-separator);
}
.s-mobile-actions .s-btn { flex: 1; min-width: 0; padding: 11px 8px; font-size: .9rem; }

/* ═══════════ الحركة ═══════════
   الحركة بتشرح تغيّر مكاني: الأقسام بتطلع من تحت وهي بتظهر، مش زخرفة. */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--s-ease), transform .7s var(--s-spring);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ═══════════ الاستجابة ═══════════ */
@media (max-width: 980px) {
    .s-cars-layout { grid-template-columns: 1fr; }
    .s-filters { position: static; }
    .s-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .s-nav { display: none; }
    .s-burger { display: inline-flex; align-items: center; justify-content: center; }
    .hide-mobile { display: none; }
    .s-wa-mini { display: inline-flex; }
    .s-two-col, .s-two-col-wide { grid-template-columns: 1fr; gap: 22px; }
    .s-two-col .s-panel[style*="sticky"], .s-two-col-wide .s-panel[style*="sticky"] { position: static !important; }
    .s-gallery-main { aspect-ratio: 4 / 3; }

    /* الهيدر على الموبايل: البرجر على اليمين، اللوجو في النص، الواتساب على الشمال.
       الجريد بيعكس نفسه تلقائياً مع اتجاه الصفحة فالترتيب سليم في RTL وLTR. */
    .s-header-inner {
        display: grid; grid-template-columns: 1fr auto 1fr;   /* الجانبان متساويان فاللوجو يقع في النص بالظبط */
        align-items: center; gap: 10px;
    }
    /* هامش تلقائي بيزق كل طرف لناحيته — أثبت من justify-self مع عناصر flex */
    .s-header-inner > .s-burger { margin-inline-end: auto; }
    .s-header-inner > .logo { justify-self: center; }
    .s-header-inner > .s-header-cta { margin-inline-start: auto; }
    .s-mobile-actions { display: flex; }
    body.has-mobile-actions { padding-bottom: 80px; }
    .s-footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .s-search { margin-top: -30px; padding: 20px; }
    .s-cars-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
}
@media (max-width: 480px) {
    body { font-size: 16px; }
    .s-container { padding-inline: 18px; }
    .s-cover-ctas .s-btn { flex: 1 1 auto; }
}
