/* ============================================================
   site.css — تصميم موقع الويب العام (RTL / عربي)
   ============================================================ */

.brand-logo {
    height: 45px;      /* يمكنك تعديل الرقم حسب الحاجة */
    width: auto;       /* يحافظ على أبعاد الصورة الأصلية */
    max-width: 100%;
    object-fit: contain;
}

/* ضبط مقاس شعار الموقع في الفوتر */
.brand-logo-footer {
    height: 50px;      /* يمكنك تعديل الرقم حسب الحاجة */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* في الشاشات الصغيرة (الجوال) تصغير الشعار قليلاً */
@media (max-width: 768px) {
    .brand-logo {
        height: 35px;
    }
    .brand-logo-footer {
        height: 40px;
    }
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-400.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-600.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-700.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}


:root {
    --navy: #0e2a47;
    --navy-2: #17395e;
    --navy-3: #24507f;
    --gold: #3494f7;
    --gold-dark: #24507f;
    --gold-soft: #E0F2FE;
    --bg: #f5f7fa;
    --line: #e6eaf0;
    --muted: #6b7a8d;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: #24313f;
    padding-top: 34px;  شريط التواصل العلوي 
}

a { text-decoration: none; }

/* ============ شريط التواصل العلوي ============ */
.top-strip {
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 0;
    background: var(--navy);
    color: rgba(255,255,255,.85);
    padding: 6px 0;
    font-size: .82rem;
}

.top-strip i { color: var(--gold); margin-inline-end: 4px; }
.top-strip-link { color: rgba(255,255,255,.85); }
.top-strip-link:hover { color: var(--gold); }

/* ============ شريط التنقل ============ */
.site-navbar {
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
    transition: box-shadow .25s ease;
    z-index: 1030;
}
.site-navbar.scrolled { box-shadow: 0 6px 24px rgba(14,42,71,.12); }
.site-navbar .brand-icon {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy);
    color: var(--gold);
    font-size: 1.35rem;
    border-radius: 12px;
}
.site-navbar .brand-text {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
}
.site-navbar .nav-link {
    color: #3b4a5a;
    font-weight: 600;
    padding-inline: 1rem !important;
    position: relative;
}
.site-navbar .nav-link:hover { color: var(--navy); }
.site-navbar .nav-link.active { color: var(--navy); }
.site-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px; right: 1rem; left: 1rem;
    height: 3px; border-radius: 3px;
    background: var(--gold);
}

/* زر ذهبي */
.btn-gold {
    background: var(--gold);
    color: #1d1a07;
    font-weight: 700;
    border: none;
}
.btn-gold:hover, .btn-gold:focus {
    background: var(--gold-dark);
    color: #fff;
}
.btn-outline-navy {
    border: 1.5px solid var(--navy);
    color: var(--navy);
    font-weight: 600;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ============ الواجهة الرئيسية ============ */
.hero {
    position: relative;
    min-height: 560px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 60px 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(14,42,71,.94) 25%, rgba(14,42,71,.72) 55%, rgba(14,42,71,.35));
}
.hero-content { position: relative; z-index: 2; }
.hero-tag {
    display: inline-block;
    background: rgba(217,165,33,.15);
    border: 1px solid rgba(217,165,33,.5);
    color: var(--gold);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.hero-title {
    color: #fff;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.25;
    margin-bottom: 1rem;
}
.hero-title span { color: var(--gold); }
.hero-sub { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 560px; }
.hero-stats { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1rem; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats b { color: var(--gold); font-size: 1.5rem; font-weight: 700; }
.hero-stats span { color: rgba(255,255,255,.7); font-size: .85rem; }

.hero-search {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
}
.hero-search h5 { color: var(--navy); font-weight: 700; }
.hero-search h5 i { color: var(--gold); }

/* ============ شريط المزايا ============ */
.features-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.feature-item {
    display: flex; align-items: center; gap: .75rem;
}
.feature-item i {
    width: 46px; height: 46px; flex: 0 0 46px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 1.3rem;
    border-radius: 12px;
}
.feature-item b { display: block; color: var(--navy); font-size: .95rem; }
.feature-item small { color: var(--muted); }

/* ============ الأقسام ============ */
.section { padding: 64px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 {
    color: var(--navy);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: .75rem;
}
.section-head h2::after {
    content: '';
    position: absolute;
    bottom: 0; right: 50%; transform: translateX(50%);
    width: 70px; height: 4px; border-radius: 4px;
    background: var(--gold);
}
.section-head.text-start h2::after { right: 0; transform: none; }

/* ============ بطاقة السيارة ============ */
.vehicle-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.vehicle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(14,42,71,.14);
}
.vehicle-card-img {
    position: relative;
    display: block;
    height: 200px;
    background: #eef1f5;
    overflow: hidden;
}
.vehicle-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.vehicle-card:hover .vehicle-card-img img { transform: scale(1.06); }
.img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #b9c2cc; font-size: 3rem;
    background: linear-gradient(135deg, #e9edf2, #dfe5ec);
}
.img-placeholder-lg { font-size: 5rem; min-height: 380px; }
.cat-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(37,99,235,.85) !important;
    color: #fff;
    backdrop-filter: blur(4px);
}
.status-mini {
    position: absolute; bottom: 12px; right: 12px;
    font-size: .7rem;
}
.vehicle-title a { color: var(--navy); }
.vehicle-title a:hover { color: var(--gold-dark); }
.gold-badge { background: var(--gold-soft); color: var(--gold-dark); border: 1px solid rgba(217,165,33,.4); }
.vehicle-specs {
    display: flex; flex-wrap: wrap; gap: .35rem .9rem;
    border-block: 1px dashed var(--line);
    padding: .6rem 0;
    font-size: .82rem;
    color: #4a5866;
}
.vehicle-specs i { color: var(--gold-dark); margin-inline-end: 3px; }
.price-box .price-main {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.25rem;
}
.price-box .price-main small { color: var(--muted); font-size: .72rem; font-weight: 400; }
.price-box .price-sub { color: var(--muted); font-size: .78rem; }

/* ============ بطاقات الفئات ============ */
.cat-card {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.4rem .8rem;
    color: var(--navy);
    transition: all .25s ease;
    text-align: center;
}
.cat-card i { font-size: 1.9rem; color: var(--gold-dark); }
.cat-card b { font-weight: 700; }
.cat-card small { color: var(--muted); }
.cat-card:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-4px);
    border-color: var(--navy);
}
.cat-card:hover i { color: var(--gold); }
.cat-card:hover small { color: rgba(255,255,255,.65); }

/* ============ الخطوات ============ */
.step-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2rem 1.4rem 1.4rem;
    text-align: center;
    height: 100%;
}
.step-card > i { font-size: 2.2rem; color: var(--gold-dark); }
.step-card h5 { color: var(--navy); font-weight: 700; margin: .6rem 0; }
.step-num {
    position: absolute; top: -16px; right: 50%; transform: translateX(50%);
    width: 34px; height: 34px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
    border: 3px solid var(--bg);
}

/* ============ دعوة التواصل ============ */
.cta-banner {
    background: linear-gradient(110deg, var(--navy), var(--navy-3));
    color: #fff;
    padding: 56px 0;
}
.cta-banner h2 { font-weight: 700; }

/* ============ ترويسة الصفحات الداخلية ============ */
.page-head {
    background: linear-gradient(110deg, var(--navy), var(--navy-3));
    color: #fff;
    padding: 40px 0;
    margin-bottom: 8px;
}
.page-head h1 { font-weight: 700; font-size: 1.7rem; }
.page-head i { color: var(--gold); margin-inline-end: 6px; }
.breadcrumb .breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active { color: var(--navy); font-weight: 600; }

/* ============ صفحة الأسطول ============ */
.fleet-filters {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem;
    position: sticky;
    top: 90px;
}
.filter-title { color: var(--navy); font-weight: 700; margin-bottom: 1rem; }
.filter-title i { color: var(--gold-dark); }
.empty-state {
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--muted);
}
.empty-state i { font-size: 2.6rem; }

/* ترقيم الصفحات */
.pagination { --bs-pagination-color: var(--navy); --bs-pagination-active-bg: var(--navy); --bs-pagination-active-border-color: var(--navy); }
.pagination .page-link { border-radius: 8px !important; margin: 0 3px; }

/* ============ صفحة السيارة ============ */
.gallery-main {
    background: #eef1f5;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    overflow: hidden;
}

.gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbs { overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb {
    width: 90px; height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .75;
    flex: 0 0 auto;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold); opacity: 1; }
.vehicle-page-title { color: var(--navy); font-weight: 700; font-size: 1.6rem; }

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}
.spec-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .8rem;
    display: flex; flex-direction: column; gap: 2px;
    font-size: .8rem;
}
.spec-item i { color: var(--gold-dark); font-size: 1.1rem; }
.spec-item span { color: var(--muted); }
.spec-item b { color: var(--navy); font-size: .92rem; }

.site-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.site-card h5 { color: var(--navy); font-weight: 700; }
.site-card h5 i { color: var(--gold-dark); }
.feature-chip {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: .8rem;
}
.feature-chip i { color: var(--gold-dark); }
.rule-item { display: flex; align-items: baseline; gap: .5rem; color: #4a5866; margin-bottom: .5rem; }
.rule-item i { color: var(--gold-dark); flex: 0 0 auto; transform: translateY(2px); }

/* بطاقة الحجز */
.booking-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: 16px;
    padding: 1.4rem;
    position: sticky;
    top: 90px;
    box-shadow: 0 12px 32px rgba(14,42,71,.08);
}
.price-hero {
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
}
.price-hero .price-main { font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.price-hero .price-main small { color: rgba(255,255,255,.75); font-size: .75rem; }
.price-hero .price-sub { color: rgba(255,255,255,.85); font-size: .85rem; }

.rental-type-radio input { display: none; }
.rental-type-radio span {
    display: inline-flex; align-items: center; gap: .4rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 7px 16px;
    font-size: .88rem;
    font-weight: 600;
    color: #4a5866;
    cursor: pointer;
    transition: all .2s ease;
}
.rental-type-radio input:checked + span {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}
.cost-summary {
    background: var(--bg);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: .9rem;
    font-size: .85rem;
    display: flex; flex-direction: column; gap: .45rem;
}
.cost-summary > div { display: flex; justify-content: space-between; }
.cost-summary .total-row {
    border-top: 1px solid var(--line);
    padding-top: .5rem;
    color: var(--navy);
    font-weight: 700;
    font-size: .95rem;
}
.cost-summary .total-row b { color: var(--gold-dark); }

/* ============ صفحة نجاح الحجز ============ */
.success-wrap { min-height: 60vh; }
.success-card {
    max-width: 720px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 16px 44px rgba(14,42,71,.09);
}
.success-icon {
    width: 76px; height: 76px;
    margin: 0 auto 1rem;
    background: #d8f3dc;
    color: #2d6a4f;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem;
}
.ref-badge {
    display: inline-block;
    background: var(--navy);
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 26px;
    border-radius: 50px;
    font-size: 1.1rem;
}
.summary-table { margin-top: .5rem; }
.summary-table th {
    width: 40%;
    color: var(--muted);
    font-weight: 600;
    font-size: .85rem;
    padding: .65rem;
}
.summary-table th i { color: var(--gold-dark); }
.summary-table td { padding: .65rem; font-size: .92rem; }
.summary-table .total-row th, .summary-table .total-row td {
    background: var(--gold-soft);
    border-top: 1px solid rgba(217,165,33,.4);
    font-size: 1rem;
}
.note-box {
    margin-top: 1.2rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    text-align: right;
}
.note-box h6 { color: var(--navy); }

/* ============ تواصل معنا ============ */
.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.3rem 1rem;
    text-align: center;
    height: 100%;
    transition: transform .2s ease;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card i { font-size: 1.8rem; color: var(--gold-dark); }
.contact-card h6 { color: var(--navy); font-weight: 700; margin: .5rem 0 .25rem; }
.contact-card a, .contact-card span { color: #4a5866; font-size: .88rem; word-break: break-word; }
.contact-card a:hover { color: var(--gold-dark); }
.branch-item {
    border-bottom: 1px dashed var(--line);
    padding: .7rem 0;
}
.branch-item:last-of-type { border-bottom: none; }
.branch-item i { color: var(--gold-dark); }
.working-hours {
    background: var(--bg);
    border-radius: 10px;
    padding: .8rem;
    font-size: .88rem;
}
.working-hours i { color: var(--gold-dark); }

/* ============ من نحن ============ */
.stat-mini {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem;
    text-align: center;
}
.stat-mini i { font-size: 1.5rem; color: var(--gold-dark); }
.stat-mini b { display: block; font-size: 1.6rem; color: var(--navy); }
.stat-mini span { font-size: .8rem; color: var(--muted); }
.value-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.6rem 1.3rem;
    height: 100%;
}
.value-card i { font-size: 1.9rem; color: var(--gold-dark); }
.value-card h5 { color: var(--navy); font-weight: 700; margin: .6rem 0; }

/* ============ التذييل ============ */
.site-footer {
    background: var(--navy);
    color: #fff;
    padding: 56px 0 20px;
    margin-top: 0;
}
.footer-title {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: .5rem;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 34px; height: 3px;
    border-radius: 3px;
    background: var(--gold);
}
.footer-links {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: .5rem;
}
.footer-links li { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: var(--gold); }
.footer-links i { color: var(--gold); margin-inline-end: 5px; }
.btn-wa {
    background: #25d366;
    color: #fff;
    font-weight: 700;
}
.btn-wa:hover { background: #1da851; color: #fff; }
.footer-hr { border-color: rgba(255,255,255,.14); }

/* زر واتساب العائم */
.wa-float {
    position: fixed;
    bottom: 22px; left: 22px;
    width: 54px; height: 54px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 26px rgba(37,211,102,.45);
    z-index: 1050;
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }

/* ============ الفلاش والتنبيهات ============ 
.site-flash { margin-top: 14px; position: relative; z-index: 5; }*/

/* ============ التجاوب ============ */
@media (max-width: 991.98px) {
    .hero { min-height: 0; padding: 50px 0; }
    .hero-search { margin-top: 1.5rem; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
    .booking-card { position: static; }
    .fleet-filters { position: static; }
    .gallery-main, .gallery-main img { max-height: 280px; }
}
@media (max-width: 575.98px) {
    body { padding-top: 30px; }
    .top-strip { font-size: .75rem; }
    .section { padding: 44px 0; }
    .hero-title { font-size: 1.7rem; }
    .navbar-brand .brand-text { font-size: .95rem; }
}

/* ============================================================
   حساب الزبون — دخول / تسجيل / حسابي
   ============================================================ */

/* زر حساب جديد (حدود ذهبية) */
.btn-gold-outline {
    border: 1.5px solid var(--gold);
    color: var(--navy);
    font-weight: 600;
    transition: all .2s;
}
.btn-gold-outline:hover {
    background: var(--gold-soft);
    color: var(--navy);
}

/* رابط تسجيل دخول الزبون في النافبار */
.navbar .login-link { color: var(--navy); font-weight: 600; }
.navbar .login-link:hover { color: var(--gold-dark); }

/* زر قائمة حساب الزبون */
.btn-user-site {
    background: #fff;
    border: 1.5px solid var(--line);
    color: var(--navy);
    font-weight: 600;
    border-radius: 50rem;
    padding-inline: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-user-site:hover { border-color: var(--gold); }

/* صفحات الدخول والتسجيل */
.auth-page { padding-block: 48px; }
.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 14px 40px rgba(14, 42, 71, .08);
}
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-icon {
    display: inline-flex;
    width: 62px; height: 62px;
    border-radius: 18px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 1.7rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.auth-head h4 { color: var(--navy); font-weight: 700; }
.auth-alt { text-align: center; font-size: .9rem; color: var(--muted); }
.auth-alt a { color: var(--gold-dark); font-weight: 700; }
.auth-note {
    margin-top: 16px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px dashed var(--line);
    border-radius: 12px;
    font-size: .8rem;
    color: var(--muted);
    text-align: center;
}
.auth-note i { color: var(--gold); }
.auth-note a { color: var(--navy); font-weight: 600; }

/* بوابة الدخول على بطاقة الحجز (زائر) */
.auth-gate {
    background: var(--gold-soft);
    border: 1px dashed var(--gold);
    border-radius: 14px;
}
.auth-gate .form-text { color: var(--muted); }

/* هوية الزبون المسجل داخل نموذج الحجز */
.customer-identity {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
}

/* صفحة حسابي */
.account-avatar {
    display: inline-flex;
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--navy);
    color: var(--gold);
    font-size: 1.6rem;
    align-items: center;
    justify-content: center;
}
.account-info li { padding: 4px 0; color: #45566a; }
.account-info i { color: var(--gold-dark); margin-inline-end: 6px; }
.account-stats .stat-val { font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.account-stats .stat-lbl { font-size: .72rem; color: var(--muted); }
.account-booking .booking-thumb {
    width: 74px; height: 52px;
    object-fit: cover;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--muted);
    font-size: 1.2rem;
}
.account-booking .booking-meta {
    background: var(--bg);
    border-radius: 10px;
    padding: 8px 12px;
    margin: 0;
}

/* ===================== منتقي التاريخ المخصص ===================== */
.date-wrap { position: relative; }
.date-input-pretty {
    background: #fff;
    cursor: pointer;
    direction: ltr;
    text-align: center;
}
.date-panel {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    z-index: 1060;
    width: 252px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line, #e8e2d4);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
    display: none;
}
.date-panel.open { display: block; animation: dpFade .15s ease-out; }
@keyframes dpFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.dp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.dp-title { font-weight: 700; font-size: .88rem; color: var(--navy, #1b2a4a); }
.dp-nav {
    width: 28px; height: 28px;
    border: 1px solid var(--line, #e8e2d4);
    background: #fff;
    border-radius: 8px;
    color: var(--navy, #1b2a4a);
    font-size: .8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dp-nav:hover:not(:disabled) { background: var(--bg, #faf7f0); }
.dp-nav:disabled { opacity: .35; cursor: not-allowed; }

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.dp-wd {
    font-size: .64rem;
    font-weight: 700;
    color: var(--muted, #8a8f9c);
    padding: 4px 0;
}
.dp-day {
    border: none;
    background: transparent;
    border-radius: 8px;
    height: 30px;
    font-size: .8rem;
    color: var(--navy, #1b2a4a);
    cursor: pointer;
    padding: 0;
}
.dp-day:hover:not(:disabled) { background: #f3ead2; }
.dp-day:disabled {
    color: #c6cbd4;
    cursor: not-allowed;
    text-decoration: line-through;
}
.dp-day.booked:disabled {
    background: #fdecea;
    color: #d9534f;
}
.dp-day.selected {
    background: var(--navy, #1b2a4a);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.dp-day.today:not(.selected) { box-shadow: inset 0 0 0 1.5px var(--gold, #c9a227); }
.dp-empty {
    font-size: .74rem;
    color: var(--muted, #8a8f9c);
    text-align: center;
    padding: 6px 0 2px;
}
.dp-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .66rem;
    color: var(--muted, #8a8f9c);
    border-top: 1px dashed var(--line, #e8e2d4);
    margin-top: 6px;
    padding-top: 6px;
}
.dp-legend .lg {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 4px;
    margin-inline-start: 8px;
}
.dp-legend .lg:first-child { margin-inline-start: 0; }
.dp-legend .lg-booked { background: #fdecea; border: 1px solid #f1b8b3; }
.dp-legend .lg-today { box-shadow: inset 0 0 0 1.5px var(--gold, #c9a227); }

/* شرائح الفترات المحجوزة */
.booked-ranges .booked-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.booked-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fdecea;
    color: #b02a37;
    border: 1px solid #f5c6cb;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .72rem;
    white-space: nowrap;
}
.booked-chip i { font-size: .7rem; }

/* رسالة خطأ التواريخ */
.date-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 6px 10px;
}

/* على الشاشات الصغيرة: اللوحة تلتصق بحافة البطاقة */
@media (max-width: 575.98px) {
    .date-panel { width: min(252px, calc(100vw - 48px)); }
}

/* ================================================================
   مبدّل اللغة في الشريط العلوي
   ================================================================ */
.lang-switch {
    padding-inline: .5rem;
    border-inline-start: 1px solid rgba(255,255,255,.25);
    font-size: .85rem;
}
.lang-switch .top-strip-link { text-decoration: none; }
.lang-switch .text-warning { text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================
   تجاوزات الاتجاه LTR (الإنكليزية) — عكس المواضع الفيزيائية فقط
   ================================================================ */
[dir="ltr"] .note-box { text-align: left; }
[dir="ltr"] .footer-title::after { right: auto; left: 0; }
[dir="ltr"] .section-head.text-start h2::after { right: auto; left: 0; }
[dir="ltr"] .wa-float { left: auto; right: 22px; }
[dir="ltr"] .cat-badge { right: auto; left: 12px; }
[dir="ltr"] .status-mini { right: auto; left: 12px; }

/* زر عرض النتائج في نموذج البحث بالواجهة (سهم يوافق الاتجاه) */
[dir="ltr"] .hero-search .bi-arrow-left-circle::before { content: "\f134"; }

.pulsing-heart {
    color: #dc3545; /* لون أحمر جّذاب */
    display: inline-block;
    animation: heartPulse 1.2s infinite ease-in-out;
}

/* حركة النبض */
@keyframes heartPulse {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.25);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.25);
    }
    70% {
        transform: scale(1);
    }
}

.terms-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 1.75rem;
        box-shadow: 0 8px 24px rgba(14, 42, 71, .04);
    }
    .terms-section + .terms-section {
        margin-top: 2rem;
        padding-top: 1.75rem;
        border-top: 1px dashed var(--line);
    }
    .terms-num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: var(--gold-soft);
        color: var(--gold-dark);
        font-weight: 700;
        font-size: .95rem;
        margin-inline-end: .6rem;
    }
    .terms-heading {
        color: var(--navy);
        font-weight: 700;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        margin-bottom: .9rem;
    }
    .terms-list {
        padding-inline-start: 1.25rem;
        margin-bottom: 0;
        color: #3b4a5a;
        line-height: 1.85;
    }
    .terms-list li + li {
        margin-top: .45rem;
    }
    .terms-toc {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 1.25rem;
        position: sticky;
        top: 90px;
    }
    .terms-toc a {
        display: block;
        padding: .45rem .65rem;
        border-radius: 8px;
        color: #3b4a5a;
        font-size: .9rem;
        font-weight: 600;
    }
    .terms-toc a:hover {
        background: var(--gold-soft);
        color: var(--navy);
    }
    @media (max-width: 991.98px) {
        .terms-toc { position: static; margin-bottom: 1.5rem; }
    }