/* ============================================
   MODERN LUXURY CAR DEALERSHIP STYLES
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --primary-black: #000000;
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --tertiary-dark: #2d2d2d;
    
    /* Gold Gradient */
    --gold-primary: #d4af37;
    --gold-light: #f9d976;
    --gold-dark: #b8941f;
    
    /* Neutral Colors */
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-dark-bg: rgba(0, 0, 0, 0.7);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
    --glow-gold: 0 0 30px rgba(212, 175, 55, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ============================================
   NAVBAR - GLASSMORPHISM
   ============================================ */
.glass-navbar {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all var(--transition-normal);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
}

.navbar-brand:hover {
    color: var(--gold-primary) !important;
    transform: translateY(-2px);
    text-shadow: var(--glow-gold);
}

.navbar-brand i {
    transition: all var(--transition-normal);
}

.navbar-brand:hover i {
    transform: scale(1.1) rotate(-10deg);
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px !important;
    margin: 0 4px;
    position: relative;
    transition: all var(--transition-normal);
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-normal);
    will-change: transform;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--gold-primary) !important;
    transform: translateY(-2px);
}

.nav-link i {
    margin-right: 6px;
    font-size: 14px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        var(--primary-black) 0%, 
        var(--secondary-dark) 25%, 
        var(--tertiary-dark) 50%, 
        var(--secondary-dark) 75%, 
        var(--primary-black) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-section .container-lg {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-weight: 800;
    animation: slideInDown 1s ease-out;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    color: #ffffff !important;
}

.hero-section .display-3 {
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #ffffff !important;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-section i.fa-car-side {
    animation: floating 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.4));
}

/* ============================================
   BUTTONS - LUXURY STYLE
   ============================================ */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    will-change: transform;
}

.btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.luxury-button,
.btn-lg[style*="background-color: #d4af37"] {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light)) !important;
    color: var(--primary-black) !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    border: none !important;
}

.luxury-button:hover,
.btn-lg[style*="background-color: #d4af37"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.btn-dark {
    background: linear-gradient(135deg, var(--primary-black), var(--secondary-dark)) !important;
    border: 2px solid var(--gold-primary);
    color: var(--white) !important;
    transition: all var(--transition-normal);
}

.btn-dark:hover {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light)) !important;
    border-color: var(--gold-light);
    color: var(--primary-black) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-outline-dark {
    border: 2px solid var(--primary-black);
    color: var(--primary-black);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--primary-black) !important;
    color: var(--white) !important;
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CARDS - GLASSMORPHISM & HOVER EFFECTS
   ============================================ */
.card {
    border-radius: 16px;
    border: none;
    transition: all var(--transition-normal);
    background: var(--white);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-xl) !important;
}

.hover-card {
    transition: all var(--transition-slow);
    cursor: pointer;
    position: relative;
    will-change: transform;
}

.hover-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.1));
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.hover-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--glow-gold) !important;
}

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

.hover-card .card-img-top {
    transition: transform var(--transition-slow);
    will-change: transform;
}

.hover-card:hover .card-img-top {
    transform: scale(1.1);
}

.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
}

/* Card Link Styles */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-link:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.card-link * {
    text-decoration: none !important;
}

.card-link:hover * {
    text-decoration: none !important;
}

/* Card Image Overlay */
.card .position-relative {
    overflow: hidden;
}

.card .card-img-top {
    transition: transform var(--transition-slow);
    height: 250px;
    object-fit: cover;
}

/* ============================================
   PRICE BADGE
   ============================================ */
.price-badge,
h4[style*="color: #d4af37"],
h2[style*="color: #d4af37"] {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800 !important;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    position: relative;
}

.badge {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.badge.bg-dark {
    background: linear-gradient(135deg, var(--primary-black), var(--secondary-dark)) !important;
    border: 1px solid var(--gold-primary);
}

/* ============================================
   SEARCH SECTION
   ============================================ */
.bg-light {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

section.py-5 {
    position: relative;
}

section h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    border-radius: 2px;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.form-control,
.form-select {
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    transition: all var(--transition-normal);
    font-family: 'Inter', sans-serif;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

.filter-form label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-form .card {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    position: sticky;
    top: 100px;
}

/* ============================================
   SWIPER SLIDER CUSTOMIZATION
   ============================================ */
.featured-swiper {
    padding: 40px 0;
}

.swiper-slide {
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    color: var(--primary-black);
    font-weight: 900;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--gold-primary);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--gold-primary);
    width: 32px;
    border-radius: 6px;
}

/* ============================================
   GALLERY SWIPER (Product Detail Page)
   ============================================ */
.gallery-main {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.gallery-main .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.gallery-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: auto;
    aspect-ratio: 16/10;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-main .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* YouTube video wrapper styles */
.gallery-main .swiper-slide.youtube-slide {
    aspect-ratio: 16/9;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.gallery-main .youtube-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.gallery-main .youtube-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* YouTube iframe */
.gallery-main .swiper-slide iframe {
    pointer-events: auto;
}

/* Overlay dla obsługi gestów na urządzeniach mobilnych */
.gallery-main .youtube-touch-overlay {
    display: none;
}

/* Na urządzeniach mobilnych - overlay przechwytuje dotknięcia */
@media (max-width: 991px) {
    .gallery-main .swiper-slide.youtube-slide {
        position: relative;
    }
    
    .gallery-main .youtube-video-wrapper {
        position: relative;
    }
    
    /* Overlay blokuje dotknięcia iframe - JS obsługuje gesty */
    .gallery-main .youtube-touch-overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 5;
        background: transparent;
        cursor: pointer;
        transition: opacity 0.2s ease;
    }
    
    .gallery-main .swiper-slide iframe {
        pointer-events: auto;
    }
    
    /* Mniejsze przyciski nawigacji na mobile */
    .gallery-main .swiper-button-next,
    .gallery-main .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .gallery-main .swiper-button-next::after,
    .gallery-main .swiper-button-prev::after {
        font-size: 16px;
    }
    
    .gallery-main .swiper-pagination {
        bottom: 10px;
        padding: 4px 8px;
    }
    
    .gallery-main .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    
    .gallery-main .swiper-pagination-bullet-active {
        width: 20px;
    }
}

.gallery-main .swiper-button-next,
.gallery-main .swiper-button-prev {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    z-index: 10;
}

.gallery-main .swiper-button-next::after,
.gallery-main .swiper-button-prev::after {
    font-size: 20px;
    color: var(--primary-black);
    font-weight: 900;
}

.gallery-main .swiper-button-next:hover,
.gallery-main .swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.gallery-main .swiper-pagination {
    bottom: 15px;
    z-index: 10;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.gallery-main .swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-main .swiper-pagination-bullet-active {
    background: var(--gold-primary);
    opacity: 1;
    border-color: var(--gold-primary);
    width: 24px;
    border-radius: 6px;
}

.gallery-thumbs {
    width: 100%;
    height: auto;
    margin-top: 10px;
}

.gallery-thumbs .swiper-wrapper {
    display: flex;
    align-items: center;
}

.gallery-thumbs .swiper-slide {
    width: auto;
    height: 100px;
    opacity: 0.6;
    transition: opacity var(--transition-normal);
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.gallery-thumbs .swiper-slide:hover {
    opacity: 1;
    border-color: var(--gold-primary);
}

.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* YouTube thumbnail styles */
.gallery-thumbs .youtube-thumbnail {
    position: relative;
}

.gallery-thumbs .youtube-thumbnail .youtube-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff0000;
    font-size: 2rem;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.gallery-thumbs .youtube-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    pointer-events: none;
}

/* Fallback for empty images */
.gallery-main .swiper-slide:empty,
.gallery-thumbs .swiper-slide:empty {
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main .swiper-slide:empty::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 80px;
    color: #ccc;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(180deg, var(--primary-black) 0%, var(--secondary-dark) 100%);
    border-top: 3px solid var(--gold-primary);
    position: relative;
}

footer h5 {
    color: var(--gold-primary) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

footer a {
    transition: all var(--transition-normal);
    position: relative;
}

footer a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
    will-change: transform;
}

footer a:hover {
    color: var(--gold-primary) !important;
    text-decoration: none !important;
    transform: translateX(5px);
}

footer a:hover::before {
    transform: scaleX(1);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--primary-black);
    border: 2px solid #e0e0e0;
    margin: 0 4px;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    border-color: var(--gold-primary);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-black), var(--secondary-dark));
    border-color: var(--gold-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   TABLES
   ============================================ */
.table-hover tbody tr {
    transition: all var(--transition-normal);
}

.table-hover tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.08);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ============================================
   IMAGES & THUMBNAILS
   ============================================ */
.img-thumbnail {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.img-thumbnail:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transform: scale(1.05);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-sm);
    animation: slideInRight 0.5s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.cursor-pointer {
    cursor: pointer;
}

.floating-animation {
    animation: floating 3s ease-in-out infinite;
    will-change: transform;
}

.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.glow {
    box-shadow: var(--glow-gold);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-black), var(--secondary-dark));
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="2" height="2" fill="rgba(212,175,55,0.1)"/></svg>');
    opacity: 0.3;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 10px;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
    transition: all var(--transition-normal);
}

.feature-icon i {
    font-size: 32px;
    color: var(--primary-black);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5);
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    transition: all var(--transition-normal);
}

.feature-item h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ============================================
   HERO REVIEWS MINI CARDS
   ============================================ */
.hero-reviews-swiper-container {
    max-width: 100%;
    overflow: hidden;
}

.hero-reviews-swiper {
    width: 100%;
    overflow: visible;
}

.hero-reviews-swiper .swiper-wrapper {
    transition-timing-function: linear;
}

.hero-review-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 18px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-review-card::before {
    content: none;
}

.hero-review-card::after {
    content: none;
}

.hero-review-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 15px rgba(212, 175, 55, 0.2);
}

.hero-review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.hero-review-stars i {
    font-size: 13px;
    color: var(--gold-primary);
}

.hero-review-stars i.far {
    color: rgba(255, 255, 255, 0.3);
}

.hero-review-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 10px 0;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-review-author {
    color: var(--gold-primary);
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 1;
    text-align: right;
}

/* Swiper slide sizing for hero reviews */
.hero-reviews-swiper .swiper-slide {
    width: auto;
    max-width: 100%;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container-lg {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-section {
        min-height: 600px;
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .filter-form .card {
        position: static;
        top: auto;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    /* Navbar */
    .navbar-brand {
        font-size: 22px;
    }
    
    .nav-link {
        font-size: 15px;
        padding: 8px 12px !important;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 550px;
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section i.fa-car-side {
        font-size: 150px !important;
    }
    
    /* Stats Section */
    .stats-section {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* Feature Icons */
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 28px;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Swiper */
    .swiper-button-next,
    .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 18px;
    }
    
    /* Footer */
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    footer .row > div:last-child {
        margin-bottom: 0;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    /* Navbar */
    .navbar-brand {
        font-size: 20px;
    }
    
    .navbar-brand i {
        font-size: 20px;
    }
    
    .nav-link {
        padding: 10px 15px !important;
        margin: 0;
    }
    
    /* Hero Reviews */
    .hero-review-card {
        padding: 14px;
    }
    
    .hero-review-stars i {
        font-size: 12px;
    }
    
    .hero-review-text {
        font-size: 12px;
        -webkit-line-clamp: 3;
        line-height: 1.4;
    }
    
    .hero-review-author {
        font-size: 11px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 500px;
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section i.fa-car-side {
        font-size: 120px !important;
        margin-top: 20px;
    }
    
    .hero-section .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 28px;
        font-size: 16px;
    }
    
    /* Stats Section */
    .stats-section {
        padding: 50px 0;
    }
    
    .stat-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    /* Search Section */
    section.py-5 {
        padding: 40px 0 !important;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .filter-form .card {
        margin-bottom: 20px;
    }
    
    /* Cards */
    .card-body {
        padding: 1.25rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    /* Feature Items */
    .feature-item {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    /* Swiper */
    .featured-swiper {
        padding: 30px 0;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
        display: none; /* Hide on mobile, use pagination */
    }
    
    .swiper-pagination {
        position: relative;
        margin-top: 20px;
    }
    
    /* Footer */
    footer {
        padding: 40px 0 20px !important;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer ul {
        text-align: center;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 14px;
        margin: 2px;
    }
    
    /* Tables */
    .table-responsive {
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    /* Alerts */
    .alert {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 14px;
        margin-bottom: 1rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Container */
    .container-lg {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 18px;
    }
    
    .navbar-brand i {
        font-size: 18px;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 16px;
    }
    
    /* Hero Reviews */
    .hero-review-card {
        padding: 12px;
    }
    
    .hero-review-text {
        font-size: 11px;
        -webkit-line-clamp: 3;
    }
    
    .hero-review-author {
        font-size: 10px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 450px;
        padding: 30px 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    .hero-section i.fa-car-side {
        font-size: 100px !important;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    /* Stats Section */
    .stats-section {
        padding: 40px 0;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
        margin-top: 8px;
    }
    
    /* Search Section */
    section.py-5 {
        padding: 30px 0 !important;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .filter-form label {
        font-size: 13px;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    /* Feature Items */
    .feature-item {
        padding: 20px 10px;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 12px;
    }
    
    .feature-icon i {
        font-size: 22px;
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
    
    /* Swiper */
    .featured-swiper {
        padding: 20px 0;
    }
    
    .swiper-slide {
        padding: 0 5px;
    }
    
    /* Footer */
    footer {
        padding: 30px 0 15px !important;
    }
    
    footer h5 {
        font-size: 1rem;
    }
    
    footer p,
    footer a {
        font-size: 14px;
    }
    
    /* Pagination */
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 13px;
        margin: 1px;
    }
    
    /* Badges */
    .badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Price Badge */
    .price-badge,
    h4[style*="color: #d4af37"],
    h2[style*="color: #d4af37"] {
        font-size: 1.5rem;
    }
    
    /* Gallery */
    .gallery-main .swiper-slide {
        min-height: 300px !important;
    }
    
    .gallery-main .swiper-slide img {
        height: 300px !important;
    }
    
    .gallery-thumbs .swiper-slide {
        height: 60px !important;
    }
    
    .gallery-thumbs .swiper-slide img {
        height: 60px !important;
    }
    
    .gallery-main .swiper-button-next,
    .gallery-main .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .gallery-main .swiper-button-next::after,
    .gallery-main .swiper-button-prev::after {
        font-size: 16px;
    }
    
    /* Call to Action */
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

/* Extra extra small devices (very small phones, less than 480px) */
@media (max-width: 479.98px) {
    /* Navbar */
    .navbar-brand {
        font-size: 16px;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section i.fa-car-side {
        font-size: 80px !important;
    }
    
    /* Typography */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    
    /* Stats */
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 160px;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* Gallery */
    .gallery-main .swiper-slide {
        min-height: 250px !important;
    }
    
    .gallery-main .swiper-slide img {
        height: 250px !important;
    }
    
    .gallery-thumbs .swiper-slide {
        height: 50px !important;
    }
    
    .gallery-thumbs .swiper-slide img {
        height: 50px !important;
    }
    
    .gallery-main .swiper-button-next,
    .gallery-main .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .gallery-main .swiper-button-next::after,
    .gallery-main .swiper-button-prev::after {
        font-size: 14px;
    }
    
    /* Footer */
    footer {
        padding: 25px 0 15px !important;
    }
}

/* Very small devices (less than 360px) */
@media (max-width: 359.98px) {
    /* Container */
    .container-lg {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 14px;
    }
    
    /* Hero */
    .hero-section h1 {
        font-size: 1.3rem;
    }
    
    .hero-section i.fa-car-side {
        font-size: 70px !important;
    }
    
    /* Cards */
    .card-body {
        padding: 0.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* ============================================
   YOUTUBE FACADE - LAZY LOADING
   ============================================ */
.ratio .youtube-facade,
.swiper-slide .youtube-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.youtube-facade {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-color: #000;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.youtube-facade:hover {
    transform: scale(1.02);
}

.youtube-facade:focus {
    outline: 3px solid var(--gold-primary);
    outline-offset: 2px;
}

.youtube-facade img,
.youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.youtube-facade:hover .youtube-play-button {
    transform: translate(-50%, -50%) scale(1.2);
}

.youtube-play-button svg {
    width: 100%;
    height: 100%;
    display: block;
}

.youtube-facade::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.youtube-facade:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.youtube-facade.youtube-loaded {
    cursor: default;
}

.youtube-facade.youtube-loaded::after {
    display: none;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold-light), var(--gold-primary));
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   AUTOCOMPLETE DROPDOWN
   ============================================ */
.autocomplete-container {
    position: absolute;
    width: 100%;
    z-index: 1050;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeInDown 0.3s ease;
}

.autocomplete-item {
    padding: 14px 18px;
    cursor: pointer;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.autocomplete-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.autocomplete-item:first-child {
    border-radius: 12px 12px 0 0;
}

.autocomplete-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    color: var(--gold-primary);
    padding-left: 24px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.autocomplete-item:hover::before,
.autocomplete-item.active::before {
    transform: scaleY(1);
}

.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 12px 12px 0;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
    border-radius: 10px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold-light), var(--gold-primary));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}