/* ============================================================
   Northstar Auto Group - Modern Frontend Styles
   Light Blue Card Theme
   ============================================================ */

:root {
    /* Brand Colors */
    --primary: #071426;
    --primary-light: #1A2A4A;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-gradient: linear-gradient(135deg, #2563EB, #3B82F6);
    --accent-gradient-hover: linear-gradient(135deg, #1D4ED8, #2563EB);

    /* Light Blue Card Palette */
    --card-bg: #F0F7FF;
    --card-bg-hover: #E3F0FF;
    --card-featured-bg: #E8F3FF;
    --card-special-bg: #E3F0FF;
    --section-bg: #F5FAFF;
    --filter-bg: #F8FBFF;
    --testimonial-bg: #EEF2FF;
    --hero-overlay: rgba(7, 20, 38, 0.5);

    /* Text Colors */
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.06);
    --shadow-md: 0 8px 30px rgba(37, 99, 235, 0.08);
    --shadow-lg: 0 12px 40px rgba(37, 99, 235, 0.12);
    --radius: 14px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--card-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================
   BUTTONS – Gradient with Animation
   ============================================================ */
.btn-teal,
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.btn-teal::after,
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    transform: rotate(25deg) translateY(100%);
    transition: transform 0.6s ease;
}

.btn-teal:hover::after,
.btn-primary:hover::after {
    transform: rotate(25deg) translateY(-100%);
}

.btn-teal:hover,
.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-teal:active,
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    border-color: white;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ============================================================
   SECTION BACKGROUNDS – Distinct Light Blue Shades
   ============================================================ */
.section-spacing {
    padding: 4rem 0;
}

.section-featured {
    background: var(--card-bg);
}

.section-recent {
    background: var(--section-bg);
}

.section-under {
    background: var(--card-featured-bg);
}

.section-why {
    background: var(--section-bg);
}

.section-how {
    background: var(--card-bg);
}

.section-testimonials {
    background: var(--testimonial-bg);
}

.section-faq {
    background: var(--section-bg);
}

.section-sold {
    background: var(--filter-bg);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 4px solid var(--accent);
    display: inline-block;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   VEHICLE CARDS – Modern Light Blue Design
   ============================================================ */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2rem;
}

.vehicle-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(37, 99, 235, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    background: var(--card-bg-hover);
}

.vehicle-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--card-featured-bg);
    transition: transform 0.6s ease;
}

.vehicle-card:hover img {
    transform: scale(1.03);
}

.vehicle-card .content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vehicle-card .card-body {
    flex: 1;
}

.vehicle-card .badge-featured {
    background: var(--accent-gradient);
    color: white;
    font-size: 0.65rem;
    padding: 2px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vehicle-card .badge-new {
    background: var(--accent-gradient);
    color: white;
    font-size: 0.65rem;
    padding: 2px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vehicle-card .badge-value {
    background: var(--accent-gradient);
    color: white;
    font-size: 0.65rem;
    padding: 2px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vehicle-card .year-make {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.vehicle-card .model-trim {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.vehicle-card .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0;
}

.vehicle-card .details {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.06);
}

.vehicle-card .btn-teal {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    margin-top: auto;
}

.vehicle-card .btn-teal:hover {
    transform: translateY(-2px);
}

/* ============================================================
   FEATURE GRID – Why Choose Us
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid rgba(37, 99, 235, 0.06);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.feature-item .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.how-it-works-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(37, 99, 235, 0.06);
    transition: all 0.3s ease;
}

.how-it-works-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.how-it-works-item .step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.15;
    margin-bottom: 0.5rem;
}

.how-it-works-item .step-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.how-it-works-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.how-it-works-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(37, 99, 235, 0.06);
    border-left: 5px solid var(--accent);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-item .testimonial-stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.testimonial-item blockquote {
    font-style: italic;
    color: var(--text-dark);
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.7;
}

.testimonial-item .customer-name {
    font-weight: 600;
    margin-top: 1rem;
    color: var(--accent);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: var(--primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero .tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero-image {
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
}

.hero-image .container .tagline {
    color: var(--accent) !important;
}

.hero-trust {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-trust span::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
}

/* ============================================================
   CTA SECTIONS
   ============================================================ */
.cta-section {
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 40px;
}

.cta-section .cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.cta-section.dark-cta {
    background: var(--primary);
    color: white;
}

.cta-section.dark-cta h2 {
    color: white;
}

.cta-section.dark-cta p {
    color: rgba(255,255,255,0.8);
}

.cta-section.light-cta {
    background: var(--section-bg);
    color: var(--text-dark);
}

.cta-section.light-cta h2 {
    color: var(--primary);
}

.cta-section.light-cta p {
    color: var(--text-muted);
}

.cta-section.final-cta-section {
    border-radius: 40px 40px 0 0;
    margin-top: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem 1.5rem 2rem;
    border-radius: 40px 40px 0 0;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

footer a:hover {
    color: white;
}

footer p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

footer .copyright {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.social-icons a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.3rem;
}

.social-icons a:hover {
    color: var(--accent);
}

/* ============================================================
   INVENTORY FILTERS
   ============================================================ */
.filters-sidebar {
    background: var(--filter-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(37, 99, 235, 0.06);
    margin-bottom: 2rem;
}

.filters-sidebar h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: var(--transition);
    color: var(--text-dark);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.filter-actions .btn-teal {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ============================================================
   VEHICLE DETAIL
   ============================================================ */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin: 2rem 0 4rem 0;
}

.detail-gallery .main-image {
    background: var(--card-bg);
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.detail-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.detail-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.detail-thumbnails img:hover,
.detail-thumbnails img.active {
    border-color: var(--accent);
}

.detail-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    margin: 1.5rem 0;
}

.detail-specs .spec-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.detail-specs .spec-value {
    font-weight: 600;
    color: var(--text-dark);
}

.lead-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.06);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 2rem;
}

.lead-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.lead-card input,
.lead-card textarea,
.lead-card select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    box-sizing: border-box;
    transition: var(--transition);
    background: white;
}

.lead-card input:focus,
.lead-card textarea:focus,
.lead-card select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.lead-card .btn-teal {
    width: 100%;
    text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    .btn-group a {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .lead-card {
        position: relative;
        top: 0;
    }
    .detail-gallery .main-image {
        height: 250px;
    }
    .hero {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .cta-section h2 {
        font-size: 1.5rem;
    }
    .section-spacing {
        padding: 2.5rem 0;
    }
}
/* ============================================================
   INVENTORY – SIDEBAR LAYOUT
   ============================================================ */
.inventory-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* ===== SIDEBAR – 25% ===== */
.inventory-sidebar {
    flex: 0 0 25%;
    min-width: 240px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.06);
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

.filter-header h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0;
}

.filter-header .filter-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 2px 12px;
    border-radius: 20px;
}

.filter-form .filter-group {
    margin-bottom: 1.25rem;
}

.filter-form .filter-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-form .filter-group select,
.filter-form .filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.85rem;
    background: white;
    color: var(--text-dark);
    transition: var(--transition);
}

.filter-form .filter-group select:focus,
.filter-form .filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.price-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-range input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.85rem;
}

.price-range span {
    color: var(--text-muted);
    font-weight: 600;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.filter-actions .btn-teal {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.filter-actions .btn-outline {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ===== MAIN CONTENT – 75% ===== */
.inventory-main {
    flex: 1;
    min-width: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.results-count strong {
    color: var(--text-dark);
    font-weight: 700;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-wrapper label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.sort-wrapper select {
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.85rem;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
}

/* ===== HORIZONTAL VEHICLE CARDS – COMPACT ===== */
.vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vehicle-card-horizontal {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.vehicle-card-horizontal:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ===== VEHICLE IMAGE + PRICE WRAPPER ===== */
.vehicle-image-wrapper {
    flex: 0 0 35%;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    overflow: hidden;
    order: -1;
}

.vehicle-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: auto;
    min-height: 150px;
    max-height: 170px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vehicle-card-horizontal:hover .vehicle-image img {
    transform: scale(1.03);
}

.vehicle-image .sold-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

/* ===== PRICE BLOCK UNDER IMAGE ===== */
.vehicle-price-block {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.vehicle-price-block .price-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: block;
}

.vehicle-price-block .price-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

/* ===== VEHICLE DETAILS ===== */
.vehicle-details {
    flex: 1;
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vehicle-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.15rem 0;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0.25rem 0;
}

.vehicle-specs span {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.vehicle-specs span i {
    color: var(--accent);
    width: 14px;
    font-size: 0.75rem;
}

.vehicle-description {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vehicle-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.vehicle-actions .btn-teal {
    padding: 6px 18px;
    font-size: 0.8rem;
}

.vehicle-actions .btn-outline {
    padding: 6px 18px;
    font-size: 0.8rem;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.pagination a {
    padding: 6px 14px;
    border-radius: 40px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--accent);
    color: white;
}

.pagination a.active {
    background: var(--accent);
    color: white;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.empty-state h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .inventory-wrapper {
        flex-direction: column;
        padding: 0 1.5rem;
    }

    .inventory-sidebar {
        flex: 1;
        position: relative;
        top: 0;
        width: 100%;
        min-width: unset;
    }

    .inventory-main {
        flex: 1;
    }

    .vehicle-card-horizontal {
        flex-direction: column;
    }

    .vehicle-image-wrapper {
        flex: 1;
        max-width: unset;
        order: -1;
        flex-direction: row;
        align-items: stretch;
    }

    .vehicle-image {
        flex: 2;
        min-height: 180px;
    }

    .vehicle-image img {
        min-height: 180px;
        max-height: 220px;
    }

    .vehicle-price-block {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-top: none;
        border-left: 1px solid var(--border-light);
        padding: 0.5rem 1rem;
        min-width: 100px;
    }

    .vehicle-price-block .price-value {
        font-size: 1.2rem;
    }

    .vehicle-details {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-wrapper {
        width: 100%;
    }

    .sort-wrapper select {
        flex: 1;
    }

    .vehicle-image-wrapper {
        flex-direction: column;
    }

    .vehicle-image {
        flex: 1;
        min-height: 150px;
    }

    .vehicle-image img {
        min-height: 150px;
        max-height: 180px;
    }

    .vehicle-price-block {
        border-left: none;
        border-top: 1px solid var(--border-light);
        padding: 0.4rem 0.5rem;
        min-width: unset;
    }

    .vehicle-price-block .price-value {
        font-size: 1.1rem;
    }

    .vehicle-specs {
        gap: 0.3rem 0.8rem;
    }

    .vehicle-specs span {
        font-size: 0.75rem;
    }

    .vehicle-actions {
        flex-direction: column;
    }

    .vehicle-actions .btn-teal,
    .vehicle-actions .btn-outline {
        width: 100%;
        text-align: center;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn-teal,
    .filter-actions .btn-outline {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .inventory-wrapper {
        padding: 0 1rem;
    }

    .vehicle-title {
        font-size: 1rem;
    }

    .vehicle-image {
        min-height: 120px;
    }

    .vehicle-image img {
        min-height: 120px;
        max-height: 150px;
    }

    .vehicle-details {
        padding: 0.75rem;
    }

    .vehicle-specs span {
        font-size: 0.7rem;
    }

    .vehicle-price-block .price-value {
        font-size: 1rem;
    }
}