/* =====================================================
   معرض السيارات — Premium UI Redesign
   هوية: أبيض / أحمر فاخر / أسود
   الإصدار: 2.0
   ===================================================== */

/* ===================================================
   1. CSS Variables (Design Tokens)
   =================================================== */
:root {
    /* ألوان رئيسية */
    --primary:        #E10600;
    --primary-dark:   #B80500;
    --primary-light:  #FF2A25;
    --primary-rgb:    225, 6, 0;

    /* ألوان الخلفية والنص */
    --white:          #FFFFFF;
    --bg:             #F7F7F8;
    --bg-card:        #FFFFFF;
    --secondary:      #0B0D10;
    --secondary-light:#1C1F26;
    --accent:         #1C1F26;

    /* نصوص */
    --text-color:     #0B0D10;
    --text-muted:     #6B7280;
    --text-light:     #9CA3AF;

    /* حدود */
    --border:         #E5E7EB;
    --border-dark:    #D1D5DB;

    /* ظلال */
    --shadow-xs:      0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.08);
    --shadow:         0 4px 20px rgba(0,0,0,0.08);
    --shadow-md:      0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg:      0 16px 48px rgba(0,0,0,0.14);
    --shadow-red:     0 8px 28px rgba(225,6,0,0.28);

    /* حواف */
    --radius-xs:      6px;
    --radius-sm:      10px;
    --radius:         14px;
    --radius-lg:      20px;
    --radius-xl:      28px;
    --radius-full:    9999px;

    /* انتقالات */
    --transition:     all 0.28s cubic-bezier(0.4,0,0.2,1);
    --transition-fast:all 0.18s cubic-bezier(0.4,0,0.2,1);
    --transition-slow:all 0.45s cubic-bezier(0.4,0,0.2,1);

    /* مسافات */
    --section-py:     88px;
    --section-py-sm:  56px;
}

/* ===================================================
   2. Reset & Base
   =================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    direction: rtl;
    color: var(--text-color);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: inherit;
}

img { max-width: 100%; display: block; }

/* ===================================================
   3. Top Bar
   =================================================== */
.top-bar {
    background: var(--secondary);
    color: rgba(255,255,255,0.75);
    padding: 9px 0;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* نفس شريط المعلومات لكن أسفل الموقع */
.bottom-bar {
    border-bottom: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.top-bar .social-link {
    color: rgba(255,255,255,0.55);
    margin-left: 14px;
    font-size: 0.88rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.top-bar .social-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

/* ===================================================
   4. Navbar
   =================================================== */
.main-navbar {
    background: rgba(11,13,16,0.97) !important;
    padding: 14px 0;
    box-shadow: 0 2px 24px rgba(0,0,0,0.22);
    transition: var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Logo sizing (desktop baseline) */
.navbar-brand img {
    height: 72px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28));
}

/* صغّر الشعار قليلًا عند الـ scroll حتى لا يضغط على الـ navbar */
.main-navbar.scrolled .navbar-brand img {
    height: 60px;
    max-width: 240px;
}

.main-navbar.scrolled {
    padding: 9px 0;
    background: rgba(11,13,16,0.99) !important;
    box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.navbar-brand .brand-text {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.5px;
}

.navbar-brand .brand-text i { color: var(--primary); }

.main-navbar .nav-link {
    color: rgba(255,255,255,0.78) !important;
    font-weight: 600;
    padding: 8px 15px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 0.92rem;
    position: relative;
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 15px;
    left: 15px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: right;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--white) !important;
    background: rgba(225,6,0,0.12);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.btn-whatsapp {
    background: #25D366;
    color: white !important;
    border: none;
    border-radius: var(--radius-full);
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.84rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-whatsapp:hover {
    background: #20ba58;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,211,102,0.38);
    color: white !important;
}

/* ===================================================
   5. Hero Section
   =================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-swiper { height: 620px; }

@media (max-width: 768px) { .hero-swiper { height: 480px; } }
@media (max-width: 480px) { .hero-swiper { height: 380px; } }

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.swiper-slide-active .hero-bg { transform: scale(1); }

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* خففنا التعتيم الأسود على الهيرو (لإظهار الصورة بدون خلفية سوداء) */
    background: linear-gradient(
        105deg,
        rgba(0,0,0,0.10) 0%,
        rgba(0,0,0,0.06) 55%,
        rgba(0,0,0,0.00) 100%
    );
}

/* خط أحمر ديكوراتيف */
.hero-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 40px 0;
    max-width: 680px;
    animation: heroFadeIn 0.7s ease both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-red);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    color: #fff;
}

.hero-title span { color: var(--primary); }

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    opacity: 0.85;
    margin-bottom: 34px;
    max-width: 520px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    min-height: 50px;
    padding: 0.72rem 1.6rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem !important;
    font-weight: 700;
    border-radius: var(--radius-full) !important;
    transition: var(--transition);
}

.btn-hero-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-red);
}

.btn-hero-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb),0.42);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.08) !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
    color: #fff !important;
    backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.18) !important;
    border-color: rgba(255,255,255,0.85) !important;
    transform: translateY(-3px);
}

/* Hero Stats Bar */
.hero-stats-bar {
    background: var(--secondary);
    border-top: 3px solid var(--primary);
    position: relative;
    z-index: 5;
}

.hero-stat-item {
    text-align: center;
    padding: 20px 10px;
    border-left: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition-fast);
}

.hero-stat-item:last-child { border-left: none; }

.hero-stat-item:hover { background: rgba(225,6,0,0.07); }

.hero-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.6);
    margin-top: 5px;
    display: block;
    letter-spacing: 0.02em;
}

/* Swiper Pagination */
.hero-swiper .swiper-pagination {
    bottom: 20px !important;
}

.hero-swiper .swiper-pagination-bullet,
.featured-cars-swiper .swiper-pagination-bullet,
.brands-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: 1;
    background: rgba(255,255,255,0.35);
    transition: var(--transition-fast);
}

.featured-cars-swiper .swiper-pagination-bullet,
.brands-swiper .swiper-pagination-bullet {
    background: rgba(0,0,0,0.15);
}

.hero-swiper .swiper-pagination-bullet-active,
.featured-cars-swiper .swiper-pagination-bullet-active,
.brands-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 22px;
    border-radius: var(--radius-full);
}

/* إخفاء أسهم السلايدر */
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev,
.featured-cars-swiper .swiper-button-next,
.featured-cars-swiper .swiper-button-prev {
    display: none !important;
}

/* ===================================================
   6. Search Bar Section
   =================================================== */
.search-bar-section {
    background: var(--white);
    padding: 28px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

.search-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.09);
    border: 1px solid var(--border);
}

.search-form .form-label {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.search-form .form-control,
.search-form .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    background: var(--bg);
    color: var(--text-color);
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.12);
    background: var(--white);
    outline: none;
}

/* ===================================================
   7. Section Utilities
   =================================================== */
.section-padding { padding: var(--section-py) 0; }
.section-padding-sm { padding: var(--section-py-sm) 0; }

.section-header {
    text-align: center;
    margin-bottom: 54px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--primary-rgb),0.08);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid rgba(var(--primary-rgb),0.18);
    letter-spacing: 0.03em;
}

.section-title {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-title span { color: var(--primary); }

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-divider {
    width: 52px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-full);
    margin: 16px auto 0;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 8px;
    height: 4px;
    background: rgba(var(--primary-rgb),0.35);
    border-radius: var(--radius-full);
}

/* ===================================================
   8. Car Cards — Premium Redesign
   =================================================== */
.car-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb),0.25);
}

/* صورة السيارة */
.car-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg);
    flex-shrink: 0;
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.car-card:hover .car-card-image img { transform: scale(1.07); }

/* Overlay gradient على الصورة */
.car-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(11,13,16,0.55), transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.car-card:hover .car-card-image::after { opacity: 1; }

/* Badges */
.car-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.car-badge-featured {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb),0.4);
    letter-spacing: 0.02em;
}

.car-badge-status {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

.car-badge-new {
    background: #059669;
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(5,150,105,0.35);
}

.car-badge-used {
    background: var(--text-muted);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

.car-badge-reserved {
    background: #D97706;
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(217,119,6,0.35);
}

.car-badge-sold {
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

/* Card Body */
.car-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.car-brand {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.car-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.car-title a { color: inherit; }
.car-title a:hover { color: var(--primary); }

/* Specs */
.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.car-spec {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.car-spec i {
    color: var(--primary);
    font-size: 0.68rem;
}

.car-card:hover .car-spec {
    border-color: rgba(var(--primary-rgb),0.2);
}

/* Card Footer */
.car-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    gap: 10px;
}

.car-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.car-price-old {
    font-size: 0.78rem;
    color: var(--text-light);
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}

.car-price-currency {
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.8;
}

/* CTA Buttons داخل الكارت */
.btn-car-details {
    background: var(--secondary);
    color: white;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-car-details:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-3px);
    box-shadow: var(--shadow-red);
}

/* ===================================================
   9. Brands Section
   =================================================== */
.brands-section { background: var(--bg); }

.brand-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px 14px;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    cursor: pointer;
    border: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-color);
    min-height: 140px;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: var(--primary);
}

.brand-logo {
    width: 72px;
    height: 46px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: grayscale(25%) opacity(0.85);
    transition: var(--transition);
}

.brand-card:hover .brand-logo {
    filter: none;
    transform: scale(1.06);
}

.brand-icon {
    font-size: 2.4rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: var(--transition);
}

.brand-card:hover .brand-icon { color: var(--primary); }

.brand-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-color);
}

.brand-count {
    font-size: 0.73rem;
    color: var(--text-muted);
}

/* Brands Swiper */
.brands-swiper {
    padding: 4px 2px 24px;
}

.brands-swiper .swiper-slide { height: auto; }

.brands-swiper .swiper-pagination {
    position: static;
    margin-top: 12px;
}

/* ===================================================
   10. Stats Section
   =================================================== */
.stats-section {
    background: var(--secondary);
    color: white;
    padding: 68px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(225,6,0,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    position: relative;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    display: block;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

/* إضافة + بدون كسر عدّاد الـ JS */
.stat-number.has-plus {
    display: inline-block;
    position: relative;
}
.stat-number.has-plus::after {
    content: '+';
    font-size: 0.85em;
    font-weight: 900;
    opacity: 0.95;
    margin-right: 6px;
}

.stat-label {
    font-size: 0.92rem;
    opacity: 0.75;
    margin-top: 10px;
    font-weight: 500;
    display: block;
}

/* ===================================================
   11. Testimonials Section
   =================================================== */
.testimonials-section { background: var(--bg); }

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    border: 1.5px solid var(--border);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 4rem;
    color: rgba(var(--primary-rgb),0.1);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--primary-rgb),0.25);
}

.testimonial-stars {
    color: #F59E0B;
    margin-bottom: 14px;
    font-size: 0.88rem;
    display: flex;
    gap: 2px;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.85;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb),0.3);
}

.testimonial-name { font-weight: 800; font-size: 0.93rem; color: var(--secondary); }
.testimonial-city { font-size: 0.78rem; color: var(--text-muted); }

/* ===================================================
   12. CTA Section
   =================================================== */
.cta-section {
    background: var(--secondary);
    color: white;
    padding: 88px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(225,6,0,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 50%, rgba(225,6,0,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.9rem);
    font-weight: 900;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    color: #fff;
}

.cta-subtitle {
    font-size: 1.05rem;
    opacity: 0.82;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.btn-cta-white {
    background: white;
    color: var(--primary);
    padding: 14px 38px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.98rem;
    transition: var(--transition);
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.3);
    color: var(--primary-dark);
}

.btn-cta-outline {
    background: transparent;
    color: white;
    padding: 14px 38px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.98rem;
    border: 2px solid rgba(255,255,255,0.5);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.9);
    color: white;
    transform: translateY(-3px);
}

/* ===================================================
   13. Page Header (Breadcrumb Banner)
   =================================================== */
.page-header {
    background: var(--secondary);
    color: white;
    padding: 52px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 100% at 0% 50%, rgba(225,6,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    margin: 0;
    color: #fff;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb-item { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.page-header .breadcrumb-item.active { color: var(--primary); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ===================================================
   14. Cars Listing Page
   =================================================== */
.cars-page { padding: 0 0 88px; }

.cars-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.cars-count { font-size: 0.9rem; color: var(--text-muted); }
.cars-count strong { color: var(--secondary); font-weight: 800; }

.sort-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    min-width: 170px;
    background: var(--bg);
    color: var(--text-color);
    transition: var(--transition-fast);
}

.sort-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.1);
    outline: none;
}

/* ===================================================
   15. Filters Sidebar
   =================================================== */
.filters-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: sticky;
    top: 84px;
}

.filter-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group { margin-bottom: 18px; }

.filter-group label {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 7px;
    display: block;
}

.filter-group .form-control,
.filter-group .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    padding: 9px 12px;
    background: var(--bg);
    color: var(--text-color);
    transition: var(--transition-fast);
}

.filter-group .form-control:focus,
.filter-group .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.1);
    background: var(--white);
    outline: none;
}

.btn-filter {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    font-size: 0.92rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-filter:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red);
}

.btn-reset-filter {
    background: var(--bg);
    color: var(--text-muted);
    width: 100%;
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    margin-top: 8px;
    transition: var(--transition-fast);
    display: block;
    text-align: center;
    cursor: pointer;
}

.btn-reset-filter:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: var(--white);
}

/* Mobile Filters */
.filters-overlay { display: none; }

.filters-mobile-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.filters-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filters-close-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-filter-toggle {
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--secondary);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1;
    position: relative;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-filter-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-count-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* ===================================================
   16. Car Details Page
   =================================================== */
.car-detail-page { padding: 0 0 88px; }

.car-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg);
    aspect-ratio: 16/9;
    max-height: 460px;
}

.car-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-gallery-thumbs { margin-top: 10px; }

.car-gallery-thumbs .swiper-slide {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    transition: var(--transition-fast);
    height: 76px;
    border: 2px solid transparent;
}

.car-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb),0.3);
}

.car-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.car-detail-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.car-detail-brand {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.82rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.car-detail-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.car-detail-price-box {
    background: var(--secondary);
    color: white;
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 24px;
    border-right: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.car-detail-price-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 0% 50%, rgba(225,6,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.car-detail-price {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.car-detail-price-old {
    font-size: 1rem;
    text-decoration: line-through;
    opacity: 0.55;
}

.car-detail-price-label {
    font-size: 0.82rem;
    opacity: 0.7;
}

/* Specs Grid */
.car-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.car-spec-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.car-spec-item:hover {
    border-color: rgba(var(--primary-rgb),0.25);
    background: var(--white);
}

.car-spec-icon {
    width: 36px;
    height: 36px;
    background: rgba(var(--primary-rgb),0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.car-spec-label { font-size: 0.73rem; color: var(--text-muted); display: block; }
.car-spec-value { font-size: 0.9rem; font-weight: 800; color: var(--secondary); }

/* Action Buttons */
.car-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-whatsapp-car {
    background: #25D366;
    color: white;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.98rem;
    text-align: center;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-whatsapp-car:hover {
    background: #20ba58;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.38);
}

.btn-inquiry {
    background: var(--primary);
    color: white;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.98rem;
    text-align: center;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-inquiry:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.btn-test-drive {
    background: var(--white);
    color: var(--secondary);
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.98rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-test-drive:hover {
    border-color: var(--secondary);
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

/* Sticky CTA Mobile */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--white);
    padding: 12px 16px;
    border-top: 2px solid var(--border);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
    gap: 10px;
}

@media (max-width: 991.98px) {
    .sticky-cta-mobile {
        display: flex;
    }
    .car-detail-page {
        padding-bottom: 100px;
    }
}

.sticky-cta-mobile .btn-sticky {
    flex: 1;
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.82rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sticky-cta-mobile .btn-sticky-whatsapp {
    background: #25D366;
    color: white;
}

.sticky-cta-mobile .btn-sticky-call {
    background: var(--secondary);
    color: white;
}

.sticky-cta-mobile .btn-sticky-inquiry {
    background: var(--primary);
    color: white;
}

/* ===================================================
   17. Forms
   =================================================== */
.form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.form-section .form-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--secondary);
    margin-bottom: 6px;
}

.form-section .form-control,
.form-section .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    background: var(--bg);
    color: var(--text-color);
}

.form-section .form-control:focus,
.form-section .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.12);
    background: var(--white);
    outline: none;
}

.btn-submit {
    background: var(--primary);
    color: white;
    padding: 13px 38px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    font-size: 0.98rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

/* ===================================================
   18. Footer
   =================================================== */
.main-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.78);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.footer-top { padding: 64px 0 44px; }

.footer-title {
    color: white;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(225,6,0,0.5);
    display: inline-block;
    letter-spacing: 0.01em;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.85;
    opacity: 0.72;
    margin-bottom: 22px;
}

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    transition: var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.08);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.footer-social .whatsapp-social:hover { background: #25D366; border-color: #25D366; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 4px;
}

.footer-contact { list-style: none; padding: 0; margin: 0; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.88rem;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 3px;
    min-width: 16px;
}

.footer-contact a {
    color: rgba(255,255,255,0.72);
    transition: var(--transition-fast);
}

.footer-contact a:hover { color: var(--primary); }

.footer-bottom {
    background: rgba(0,0,0,0.35);
    padding: 16px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom-link {
    color: rgba(255,255,255,0.5);
    transition: var(--transition-fast);
}

.footer-bottom-link:hover { color: var(--primary); }

/* ===================================================
   19. Floating Buttons
   =================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    left: 22px;
    width: 54px;
    height: 54px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    z-index: 1000;
    transition: var(--transition);
    animation: pulseGreen 2.5s infinite;
}

.whatsapp-float:hover {
    background: #20ba58;
    color: white;
    transform: scale(1.12);
    animation: none;
    box-shadow: 0 10px 32px rgba(37,211,102,0.55);
}

.phone-float {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: 54px;
    height: 54px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 24px rgba(var(--primary-rgb),0.45);
    z-index: 1000;
    transition: var(--transition);
}

.phone-float:hover {
    background: var(--primary-dark);
    color: white;
    transform: scale(1.12);
}

@keyframes pulseGreen {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================================================
   20. Scroll to Top
   =================================================== */
.scroll-top {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible { opacity: 1; visibility: visible; }

.scroll-top:hover {
    background: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-red);
}

/* ===================================================
   21. Pagination
   =================================================== */
.pagination .page-link {
    color: var(--secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm) !important;
    margin: 0 3px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    transition: var(--transition-fast);
    padding: 8px 14px;
}

.pagination .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-red);
}

/* ===================================================
   22. Features / Tags
   =================================================== */
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.feature-tag {
    background: rgba(var(--primary-rgb),0.06);
    color: var(--secondary);
    border: 1px solid rgba(var(--primary-rgb),0.18);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.feature-tag:hover {
    background: rgba(var(--primary-rgb),0.12);
    border-color: var(--primary);
}

/* ===================================================
   23. About Features
   =================================================== */
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--white);
    transition: var(--transition);
}

.about-feature:hover {
    border-color: rgba(var(--primary-rgb),0.25);
    box-shadow: var(--shadow-sm);
    transform: translateX(-4px);
}

.about-feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(var(--primary-rgb),0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.about-feature:hover .about-feature-icon {
    background: var(--primary);
    color: white;
}

/* ===================================================
   24. Contact Info Cards
   =================================================== */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    box-shadow: var(--shadow-xs);
    border: 1.5px solid var(--border);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.contact-info-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 18px;
    box-shadow: var(--shadow-red);
}

/* ===================================================
   25. Alerts
   =================================================== */
.alert {
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    border: none;
    font-size: 0.92rem;
}

.alert-success { background: rgba(5,150,105,0.08); color: #065f46; border-right: 4px solid #059669; }
.alert-danger   { background: rgba(225,6,0,0.08);   color: #7f1d1d; border-right: 4px solid var(--primary); }
.alert-warning  { background: rgba(217,119,6,0.08); color: #78350f; border-right: 4px solid #D97706; }
.alert-info     { background: rgba(14,165,233,0.08);color: #0c4a6e; border-right: 4px solid #0EA5E9; }

/* ===================================================
   26. Breadcrumb
   =================================================== */
.breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item + .breadcrumb-item::before { content: "‹"; }

/* ===================================================
   27. No Results
   =================================================== */
.no-results {
    text-align: center;
    padding: 72px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 18px;
    color: var(--border-dark);
    display: block;
}

.no-results h3 {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

/* ===================================================
   28. Bootstrap Overrides (Primary Color)
   =================================================== */
.btn-primary,
.btn.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-primary:hover,
.btn.btn-primary:hover,
.btn-primary:focus,
.btn.btn-primary:focus,
.btn-primary:active,
.btn.btn-primary:active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: var(--shadow-red);
}

.btn-outline-primary,
.btn.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.btn-outline-primary:hover,
.btn.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-red);
}

/* ===================================================
   29. Skeleton Loading
   =================================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoad 1.6s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeletonLoad {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================================
   30. Scroll Reveal Utility
   =================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===================================================
   31. Responsive — Mobile (Rebuilt from scratch)
   هدف: منع تكسير الواجهة + تحسين الأداء على الموبايل
   =================================================== */

/* قواعد عامة للموبايل: تقليل المؤثرات الثقيلة */
@media (max-width: 991.98px) {
    /* تقليل الـ blur والـ shadows الثقيلة (بتسبب تهنيج على موبايلات كتير) */
    .main-navbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .car-card, .filters-sidebar, .form-section, .brand-card, .contact-info-card {
        box-shadow: var(--shadow-xs);
    }

    /* إلغاء نبضات الانيميشن على الأزرار العائمة */
    .whatsapp-float { animation: none; }

    /* منع أي overflow أفقي بسبب عناصر داخلية */
    body { overflow-x: hidden; }
    .swiper, .swiper-wrapper, .swiper-slide { max-width: 100%; }
}

/* === Tablet & Mobile (<= 768px) === */
@media (max-width: 768px) {
    :root { --section-py: 52px; --section-py-sm: 34px; }

    /* Navbar */
    .main-navbar { padding: 10px 0; }
    .main-navbar.scrolled { padding: 8px 0; }
    /* على الموبايل: كبر الشعار وخليه ثابت ومش صغير */
    .navbar-brand img { height: 58px !important; max-width: 260px; }

    /* منع ظهور صفحة "ضيقة" بسبب max-width/containers على بعض الأجهزة */
    .container { max-width: 100% !important; }
    .container, .container-fluid { padding-left: 14px; padding-right: 14px; }

    /* Hero: اجعل المحتوى يتنفس بدل ارتفاعات ثابتة مبالغ فيها */
    .hero-swiper { height: min(72vh, 520px); }
    .hero-content { padding: 22px 0; }
    .hero-title { font-size: 1.65rem; line-height: 1.25; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 16px; }
    .hero-actions { gap: 10px !important; flex-wrap: wrap; }
    .hero-actions .btn {
        min-height: 32px;
        font-size: 0.75rem !important;
        padding: 0.38rem 0.85rem !important;
    }
    .hero-actions .btn i { font-size: 0.95em; }

    /* Sections spacing */
    .section-title { font-size: 1.4rem; }
    .section-subtitle { font-size: 0.92rem; }

    /* Car Cards: منع التكسير + clamp للنصوص */
    .car-card { border-radius: var(--radius); }
    .car-card .car-img,
    .car-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .car-title {
        font-size: 1rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .car-price {
        font-size: 1.1rem;
        white-space: normal;
        word-break: break-word;
    }

    .car-card-footer {
        gap: 10px;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .btn-car-details, .btn-whatsapp-car, .btn-call-car {
        min-height: 40px;
        font-size: 0.84rem;
        padding: 10px 12px;
        width: 100%;
        justify-content: center;
    }

    /* Cars page toolbar */
    .cars-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .cars-toolbar-actions { width: 100%; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
    .cars-toolbar-actions > * { flex: 1 1 150px; }

    /* Filters: على الموبايل خليها Drawer ثابتة بدون تكسير */
    .filters-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: min(92vw, 420px);
        height: 100dvh;
        margin: 0;
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
        z-index: 1050;
        overflow-y: auto;
        padding: 16px 14px calc(18px + env(safe-area-inset-bottom));
        transform: translateX(105%);
        transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
        box-shadow: -16px 0 40px rgba(0,0,0,0.18);
        background: var(--bg-card);
        -webkit-overflow-scrolling: touch;
    }
    .filters-sidebar.show { transform: translateX(0); }

    .filters-overlay {
        position: fixed;
        inset: 0;
        background: rgba(11,13,16,0.55);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        display: block;
    }
    .filters-overlay.show { opacity: 1; visibility: visible; }

    body.filters-open { overflow: hidden; }

    /* تفاصيل السيارة */
    .car-gallery-main { max-height: 280px; border-radius: var(--radius); background: var(--bg); }
    .car-gallery-main img { object-fit: contain; }
    .car-detail-title { font-size: 1.35rem; line-height: 1.3; }
    .car-detail-price { font-size: 1.7rem; }

    .car-specs-grid { grid-template-columns: 1fr; gap: 10px; }

    /* Forms */
    .form-section { padding: 18px; border-radius: var(--radius); }
    .btn-submit { width: 100%; justify-content: center; }

    /* Floating buttons */
    .whatsapp-float, .phone-float { width: 48px; height: 48px; font-size: 1.22rem; left: 16px; }
    .whatsapp-float { bottom: 86px; }
    .phone-float { bottom: 20px; }

    /* Sticky CTA */
    .sticky-cta-mobile {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        gap: 8px;
    }
    .sticky-cta-mobile .btn-sticky {
        padding: 10px 6px;
        font-size: 0.76rem;
        border-radius: 12px;
        gap: 4px;
    }
}

/* === Small phones (<= 480px) === */
@media (max-width: 480px) {
    .hero-swiper { height: min(66vh, 440px); }
    .hero-title { font-size: 1.45rem; }
    /* على الشاشات الصغيرة: خلّي الأزرار صغيرة (مش full width) */
    .hero-actions .btn {
        width: auto;
        min-height: 30px;
        font-size: 0.72rem !important;
        padding: 0.34rem 0.75rem !important;
    }

    .car-detail-price { font-size: 1.55rem; }
    .pagination .page-link { padding: 7px 12px; }
}
/* ===================================================
   33. Reduced Motion
   =================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-bg { transform: none !important; }
}

/* ===================================================
   34. Dynamic CSS Variables from PHP (override)
   =================================================== */
body { color: var(--text-color, #0B0D10); }

.brand-card,
.testimonial-text,
.footer-desc,
.search-form .form-label,
.form-section .form-label,
.contact-info-card,
.car-title a,
.section-subtitle {
    color: inherit;
}



/* ===================================================
   HOTFIX v5 — Mobile Overlap + Sticky CTA sizing
   - يمنع تداخل العناصر (sticky-top) على الموبايل
   - يظبط شريط الأزرار السفلي sticky-cta-mobile
   =================================================== */
@media (max-width: 991.98px) {
  /* Bootstrap sticky-top يسبب تداخل لما العمود يبقى full width على الموبايل */
  .sticky-top {
    position: static !important;
    top: auto !important;
  }

  /* اترك مساحة لشريط الأزرار السفلي + safe area للأيفون */
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  /* شريط CTA السفلي للموبايل */
  .sticky-cta-mobile {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  .sticky-cta-mobile .btn-sticky {
    flex: 1 1 0;
    height: 44px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1;
    padding: 10px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
  }

  .sticky-cta-mobile .btn-sticky i { font-size: 16px; }
}

/* موبايل صغير جداً */
@media (max-width: 390px) {
  .sticky-cta-mobile { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .sticky-cta-mobile .btn-sticky { font-size: 13px; }
}


/* ===================================================
   PATCH (Mobile/UX fixes requested)
   =================================================== */

/* Car details main image: desktop cover, mobile contain (no crop) */
.car-main-img{
  height: 420px;
  object-fit: cover;
  background: #f3f3f3;
}
@media (max-width: 768px){
  .car-main-img{
    height: 280px;
    object-fit: contain;
  }
}

/* Hero: avoid showing adjacent slides + reduce dark overlay */
.hero-swiper{ overflow: hidden !important; }
.hero-swiper .swiper{ overflow: hidden !important; }
.hero-swiper .swiper-wrapper{ overflow: hidden !important; }
.hero-swiper .swiper-slide{ width: 100% !important; opacity: 1 !important; border-radius: 0 !important; border: 0 !important; }
.hero-slide{ width:100%; }
.hero-bg::after{ background: rgba(0,0,0,0.18) !important; } /* lighter overlay */

/* Hero layout: badge top-right, actions pinned bottom */
.hero-slide .container{ height: 100%; display: flex; }
.hero-content{
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 70px;
  padding-bottom: 56px;
}
.hero-badge{
  position: absolute !important;
  top: 18px;
  right: 18px;
  left: auto !important;
  z-index: 5;
}
.hero-actions{ margin-top: auto; }

/* Hero buttons: very small on mobile + stay at bottom nicely */
@media (max-width: 768px){
  .btn-hero-primary,
  .btn-hero-secondary{
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
    min-height: 38px !important;
    border-radius: 999px !important;
  }
  .hero-actions{ gap: 10px !important; }
}
@media (max-width: 480px){
  .hero-actions{ flex-wrap: nowrap !important; }
  .btn-hero-primary,
  .btn-hero-secondary{
    font-size: 0.74rem !important;
    padding: 7px 10px !important;
    min-height: 36px !important;
  }
}

/* Filters drawer: allow vertical scroll to reach apply button */
@media (max-width: 768px){
  .filters-sidebar{
    overscroll-behavior: contain;
  }
  .filters-sidebar form{
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 90px;
    touch-action: pan-y;
  }
}

/* Stats cards: force white numbers when parent says white */
.rounded-3.text-center[style*="color: white"] h1,
.rounded-3.text-center[style*="color: white"] h2,
.rounded-3.text-center[style*="color: white"] h3,
.rounded-3.text-center[style*="color: white"] h4,
.rounded-3.text-center[style*="color: white"] .fw-bold{
  color: #fff !important;
}

/* Hero stats bar numbers/labels: force readability */
.hero-stat-number{ color: #fff !important; }
.hero-stat-label{ color: rgba(255,255,255,0.78) !important; }
