/* ===================================
   CAR CAROUSEL SECTION
   =================================== */
.car-carousel-section {
    padding: 60px 1rem 80px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    max-width: 1280px;
    margin: 0 auto;
}

.carousel-header {
    text-align: center;
    margin-bottom: 3rem;
}

.carousel-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.carousel-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Car Cards */
.car-card {
    min-width: 280px;
    max-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0;
    transition: var(--transition-base);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: pointer;
}

.car-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.car-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.25rem 0;
    margin-bottom: 1rem;
}

.car-badge {
    background: var(--gradient-green);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.car-location {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Car Image/Icon */
.car-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.25rem;
    margin-bottom: 1.5rem;
}

.car-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.car-brand {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Car Details */
.car-details {
    padding: 0 1.25rem 1.25rem;
}

.car-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.car-model {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spec-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.spec-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.car-price {
    text-align: center;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-success);
    margin-bottom: 0.25rem;
}

.savings-amount {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Car Footer */
.car-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    text-align: center;
}

.opportunity-level span {
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.level-super {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.level-good {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.level-normal {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-base);
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Swipe Indicator */
.swipe-indicator {
    text-align: center;
    margin-top: 1rem;
    opacity: 0.7;
}

.swipe-indicator span {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
    animation: swipe-hint 2s ease-in-out infinite;
}

@keyframes swipe-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* Touch Scrolling Enhancement */
.carousel-track {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.car-card {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .car-carousel-section {
        padding: 40px 1rem 60px;
    }
    
    .carousel-header {
        margin-bottom: 2rem;
    }
    
    .car-card {
        min-width: 260px;
        max-width: 260px;
    }
    
    .carousel-track {
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        margin: 0 -1rem;
    }
    
    .car-specs {
        padding: 0.75rem;
    }
    
    .current-price {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .car-card {
        min-width: 240px;
        max-width: 240px;
    }
    
    .car-card-header {
        padding: 1rem 1rem 0;
    }
    
    .car-details {
        padding: 0 1rem 1rem;
    }
    
    .car-footer {
        padding: 0.75rem 1rem;
    }
    
    .car-title {
        font-size: 1.125rem;
    }
}

/* Desktop Enhancement */
@media (min-width: 1024px) {
    .carousel-track {
        gap: 2rem;
    }
    
    .car-card {
        min-width: 300px;
        max-width: 300px;
    }
    
    .swipe-indicator {
        display: none; /* Hide on desktop */
    }
}