/* ==========================================================
   RESET AND BASE STYLES
========================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}


/* ==========================================================
   HEADER / NAVIGATION
========================================================== */

.ev-navbar {
    background: #0b1724 !important;
    padding: 14px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Logo */

.ev-navbar .navbar-brand {
    color: #ffffff !important;
    font-size: 1.45rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ev-navbar .navbar-brand i {
    color: #27ae60;
    font-size: 1.5rem;
}

.ev-navbar .navbar-brand:hover {
    color: #27ae60 !important;
}


/* Navigation links */

.ev-navbar .navbar-nav {
    gap: 5px;
}

.ev-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 9px 14px !important;
    border-radius: 7px;
    transition: all 0.3s ease;
}

.ev-navbar .nav-link:hover,
.ev-navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(39, 174, 96, 0.15);
}


/* Order button */

.ev-navbar .btn-primary {
    background: #27ae60;
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 7px;
    transition: all 0.3s ease;
}

.ev-navbar .btn-primary:hover {
    background: #229954;
    transform: translateY(-1px);
}


/* ==========================================================
   THREE-LINE MOBILE MENU ICON
========================================================== */

.ev-navbar .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 7px 10px;
    border-radius: 7px;
    box-shadow: none !important;
}

.ev-navbar .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ev-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.25) !important;
}


/* Bootstrap hamburger icon */

.ev-navbar .navbar-toggler-icon {
    width: 1.4em;
    height: 1.4em;
}


/* ==========================================================
   OLD HEADER SUPPORT
========================================================== */

header {
    background-color: #2c3e50;
    padding: 1rem 0;
}

.navbar {
    /* full-width to match footer */
    margin: 0 auto;
}

.logo a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}


/* ==========================================================
   MAIN CONTENT
========================================================== */

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


/* ==========================================================
   HERO SECTION
========================================================== */

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 100%
    );
    color: #fff;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}


/* ==========================================================
   SECTION TITLES
========================================================== */

.section-title {
    font-weight: 700;
    color: #2c3e50;
}

.section-title::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    background: #27ae60;
    margin: 12px auto 0;
    border-radius: 5px;
}


/* ==========================================================
   CARS LISTING
========================================================== */

.cars-listing {
    padding: 2rem 0;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(380px, 1fr)
    );
    gap: 2rem;
    margin-top: 2rem;
}

.cars-page .container {
    max-width: 1400px;
}


/* Wider car sections on homepage */
#cars .container {
    max-width: 1400px;
}

#cars .col-lg-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

@media (max-width: 991px) {
    #cars .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Wider related cars on details page */
.related-cars .col-lg-3 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

/* ==========================================================
   GENERAL CAR CARD
========================================================== */

.car-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-card-content {
    padding: 1.5rem;
}

.car-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.car-card .price {
    color: #27ae60;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}


/* ==========================================================
   CARS PAGE HERO
========================================================== */

.cars-hero {
    padding: 3rem 0 2rem;
}

.cars-hero-badge {
    display: inline-block;
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.cars-hero-title {
    font-size: 2.75rem;
    color: #0b1724;
    margin-bottom: 0.75rem;
}

.cars-hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}


/* ==========================================================
   CARS PAGE FILTER SIDEBAR
========================================================== */

.cars-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    color: #0b1724;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.cars-filter-toggle:hover {
    background: #f8f9fa;
    border-color: #27ae60;
    color: #27ae60;
}

.cars-filter-badge {
    background: #27ae60;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 4px;
}

.cars-sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 100px;
}

.cars-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.cars-sidebar-title {
    font-size: 1.1rem;
    color: #0b1724;
}

.cars-sidebar-title i {
    color: #27ae60;
    margin-right: 6px;
}

.cars-clear-filters {
    font-size: 0.85rem;
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

.cars-clear-filters:hover {
    color: #c82333;
}

.cars-filter-section {
    margin-bottom: 1.25rem;
}

.cars-filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.cars-filter-input,
.cars-filter-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cars-filter-input:focus,
.cars-filter-select:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.cars-filter-btn {
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 0.5rem;
}


/* ==========================================================
   CARS PAGE RESULTS HEADER
========================================================== */

.cars-results-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.cars-results-title {
    font-size: 1.5rem;
    color: #0b1724;
}

.cars-results-count {
    font-size: 0.9rem;
}

.cars-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cars-sort-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.cars-sort-select {
    min-width: 180px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 8px 14px;
    font-size: 0.9rem;
}


/* ==========================================================
   CARS PAGE ACTIVE FILTERS
========================================================== */

.cars-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.cars-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #495057;
}

.cars-filter-tag-remove {
    color: #6c757d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.cars-filter-tag-remove:hover {
    color: #dc3545;
}


/* ==========================================================
   CARS PAGE NO RESULTS
========================================================== */

.cars-no-results {
    background: #ffffff;
    border-radius: 16px;
    padding: 4rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cars-no-results-icon {
    width: 100px;
    height: 100px;
    background: #f1f3f5;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cars-no-results-icon i {
    font-size: 48px;
    color: #adb5bd;
}


/* ==========================================================
   ENHANCED CAR CARD
========================================================== */

.car-card-enhanced {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.car-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.car-image-wrapper-enhanced {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f1f3f5;
}

.car-image-wrapper-enhanced .car-gallery {
    height: 100%;
}

.car-image-wrapper-enhanced .car-gallery-slide {
    height: 100%;
}

.car-image-wrapper-enhanced .car-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.car-card-enhanced:hover .car-image-wrapper-enhanced .car-gallery-slide img {
    transform: scale(1.05);
}

.car-card-enhanced:hover .gallery-arrow {
    opacity: 1;
}

.car-badge {
    position: absolute;
    top: 12px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
}

.car-badge-featured {
    left: 12px;
    background: #0d6efd;
    color: #ffffff;
}

.car-badge-available {
    right: 12px;
    background: #198754;
    color: #ffffff;
}

.car-badge-reserved {
    right: 12px;
    background: #ffc107;
    color: #212529;
}

.car-badge-sold {
    right: 12px;
    background: #dc3545;
    color: #ffffff;
}

.car-card-body-enhanced {
    padding: 1.5rem;
}

.car-model-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b1724;
    margin-bottom: 4px;
}

.car-model-meta {
    font-size: 0.85rem;
}

.car-model-meta i {
    font-size: 0.8rem;
    margin-right: 4px;
}

.car-meta-separator {
    margin: 0 6px;
    color: #dee2e6;
}

.car-price-enhanced {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid #f1f3f5;
    border-bottom: 1px solid #f1f3f5;
    margin-bottom: 1rem;
}

.car-price-currency {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
}

.car-price-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: #198754;
    letter-spacing: -0.5px;
}

.car-specs-enhanced {
    margin-bottom: 1.25rem;
}

.car-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.car-spec-item i {
    font-size: 1rem;
    color: #27ae60;
    margin-top: 2px;
}

.car-spec-item small {
    font-size: 0.75rem;
    display: block;
    margin-bottom: 2px;
}

.car-spec-item .fw-semibold {
    font-size: 0.9rem;
}

.car-view-btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.car-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}


/* ==========================================================
   HOME PAGE CAR CARDS
========================================================== */

.car-home-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}

.car-home-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.12) !important;
}


/* ==========================================================
   MULTI-IMAGE CAROUSEL
========================================================== */

.car-image-carousel {
    height: 250px;
    overflow: hidden;
    background: #f1f3f5;
    position: relative;
}

.car-home-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.car-home-card:hover .car-home-image {
    transform: scale(1.03);
}


/* ==========================================================
   CAROUSEL ARROWS
========================================================== */

.car-carousel-control {
    width: 44px;
    height: 44px;

    top: 50%;
    transform: translateY(-50%);

    margin: 0 12px;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);

    opacity: 0;

    transition: all 0.3s ease;
}

.car-image-carousel:hover .car-carousel-control {
    opacity: 1;
}

.car-carousel-control:hover {
    background: rgba(39, 174, 96, 0.95);
}


/* ==========================================================
   IMAGE INDICATORS
========================================================== */

.car-carousel-indicators {
    margin-bottom: 10px;
}

.car-carousel-indicators button {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    border: 0;

    margin: 0 4px;

    opacity: 0.7;

    transition: all 0.3s ease;
}

.car-carousel-indicators button.active {
    width: 22px;
    border-radius: 10px;
    opacity: 1;
}


/* ==========================================================
   IMAGE COUNTER
========================================================== */

.car-image-counter {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 10;

    background: rgba(0, 0, 0, 0.65);

    color: #ffffff;

    padding: 6px 11px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: 600;

    backdrop-filter: blur(4px);
}


/* ==========================================================
   FEATURED BADGE
========================================================== */

.car-featured-badge {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 10;

    background: #0d6efd;

    color: #ffffff;

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;
}


/* ==========================================================
   AVAILABLE BADGE
========================================================== */

.car-available-badge {
    position: absolute;

    bottom: 12px;
    left: 12px;

    z-index: 10;

    background: rgba(25, 135, 84, 0.95);

    color: #ffffff;

    padding: 6px 11px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;
}


/* ==========================================================
   HOME CAR PRICE
========================================================== */

.car-home-price {
    color: #198754;
    font-size: 1.35rem;
    font-weight: 700;
}


/* ==========================================================
   HOME CAR BUTTON
========================================================== */

.car-home-card .btn-primary {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 16px;
    transition: all 0.3s ease;
}

.car-home-card .btn-primary:hover {
    transform: translateY(-1px);
}


/* ==========================================================
   BUTTONS
========================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #27ae60;
}

.btn-primary:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}


/* ==========================================================
   FORMS
========================================================== */

form {
    max-width: 600px;
    margin: 0 auto;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

button[type="submit"] {
    width: 100%;
}


/* ==========================================================
   FOOTER
========================================================== */

footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}


/* ==========================================================
   EV MOTORS FOOTER
========================================================== */

.ev-footer {
    background: #0b1724 !important;
    color: rgba(255, 255, 255, 0.75);
}

.ev-footer h4 {
    color: #ffffff;
}

.ev-footer h4 i {
    color: #27ae60;
}

.ev-footer h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 15px;
}

.ev-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.ev-footer a:hover {
    color: #27ae60;
    padding-left: 3px;
}

.ev-footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}


/* ==========================================================
   CAR DETAILS PAGE
========================================================== */

.car-details-page {
    padding-top: 30px;
    padding-bottom: 50px;
}

.car-details-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.car-details-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    display: block;
}

.car-details-info {
    padding: 35px;
}

.car-details-brand {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 10px;
}

.car-details-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.car-details-price {
    color: #198754;
    font-size: 2rem;
    font-weight: 700;
    margin: 15px 0;
}


/* ==========================================================
   CAR STATUS
========================================================== */

.car-status {
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.car-status i {
    font-size: 8px;
    margin-right: 5px;
}

.car-status.available {
    background: #198754;
    color: #fff;
}

.car-status.sold {
    background: #dc3545;
    color: #fff;
}

.car-status.reserved {
    background: #ffc107;
    color: #212529;
}


/* ==========================================================
   VEHICLE SPECIFICATIONS
========================================================== */

.specifications-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 5px;
    border-bottom: 1px solid #eeeeee;
}

.spec-label {
    color: #777;
}

.spec-value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
}


/* ==========================================================
   CAR DESCRIPTION
========================================================== */

.car-description p {
    color: #666;
    line-height: 1.8;
}


/* ==========================================================
   RELATED CARS
========================================================== */

.related-cars {
    margin-top: 50px;
    margin-bottom: 30px;
}

.related-cars-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 25px;
}


/* ==========================================================
   ADMIN STYLES
========================================================== */

.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem;
}

.sidebar h2 {
    margin-bottom: 2rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 1rem;
}

.sidebar a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #34495e;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background-color: #f4f4f4;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #2c3e50;
    color: #fff;
}


/* ==========================================================
   STATISTICS
========================================================== */

.stats {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}


/* ==========================================================
   LOGIN
========================================================== */

.login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.error {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 1rem;
}

.success {
    color: #27ae60;
    text-align: center;
    margin-bottom: 1rem;
}


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

@media (max-width: 991px) {

    .ev-navbar .navbar-collapse {
        background: #0b1724;
        padding: 15px;
        margin-top: 12px;
        border-radius: 10px;
    }

    .ev-navbar .navbar-nav {
        gap: 2px;
    }

    .ev-navbar .nav-link {
        padding: 11px 14px !important;
    }

    .ev-navbar .nav-item.ms-lg-3 {
        margin-top: 10px;
        margin-left: 0 !important;
    }

    .ev-navbar .nav-item.ms-lg-3 .btn {
        width: 100%;
    }
}


@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }


    /* Hero */

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }


    /* Car image */

    .car-image-carousel {
        height: 230px;
    }

    .car-home-image {
        height: 230px;
    }


    /* Always show arrows on mobile */

    .car-carousel-control {
        opacity: 1;

        width: 38px;
        height: 38px;

        margin: 0 8px;
    }


    /* Details */

    .car-details-image {
        min-height: 300px;
        height: 300px;
    }

    .car-details-info {
        padding: 25px 20px;
    }

    .car-details-title {
        font-size: 1.8rem;
    }

    .car-details-price {
        font-size: 1.6rem;
    }


    /* Specifications */

    .spec-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 576px) {

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .car-image-carousel {
        height: 220px;
    }

    .car-home-image {
        height: 220px;
    }

    .car-home-card {
        border-radius: 12px;
    }

    .car-details-page {
        padding-top: 15px;
    }

}


/* ==========================================================
   CARS PAGE RESPONSIVE
========================================================== */

@media (max-width: 991px) {

    .cars-hero-title {
        font-size: 2rem;
    }

    .cars-sidebar {
        position: static;
    }

    .cars-results-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .cars-sort-wrapper {
        width: 100%;
    }

    .cars-sort-select {
        width: 100%;
    }
}


@media (max-width: 768px) {

    .cars-hero {
        padding: 2rem 0 1.5rem;
    }

    .cars-hero-title {
        font-size: 1.75rem;
    }

    .cars-hero-subtitle {
        font-size: 1rem;
    }

    .car-card-enhanced {
        border-radius: 12px;
    }

    .car-card-body-enhanced {
        padding: 1.25rem;
    }

    .car-model-title {
        font-size: 1.05rem;
    }

    .car-price-amount {
        font-size: 1.2rem;
    }
}


@media (max-width: 576px) {

    .cars-hero-title {
        font-size: 1.5rem;
    }

    .cars-filter-toggle {
        width: 100%;
        justify-content: center;
    }

    .car-image-wrapper-enhanced {
        aspect-ratio: 4 / 3;
    }

    .car-spec-item {
        padding: 6px 8px;
    }

    .car-spec-item i {
        font-size: 0.9rem;
    }

    .car-spec-item .fw-semibold {
        font-size: 0.85rem;
    }
}


/* ==========================================================
   IMAGE PREVIEW CARD
========================================================== */

.image-preview-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.image-preview-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.image-preview-info {
    padding: 10px;
}

.image-preview-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-preview-number {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,.75);
    color: white;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 12px;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: #dc3545;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.remove-image:hover {
    background: #bb2d3b;
}

.image-count {
    font-weight: 600;
    margin-bottom: 10px;
}


/* ==========================================================
   CAR IMAGE SLIDER (right-to-left translation)
========================================================== */

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

.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.car-slide {
    min-width: 100%;
    height: 100%;
}

.car-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.car-image-slider:hover .slider-prev,
.car-image-slider:hover .slider-next {
    opacity: 1;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(39, 174, 96, 0.95);
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

.slider-dot-container {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 22px;
    border-radius: 10px;
    background: #fff;
}

/* ==========================================================
   EV MOTORS COLOR VARIABLES
========================================================== */

:root {
    --ev-dark: #071522;
    --ev-dark-2: #0b1d2d;
    --ev-green: #22b968;
    --ev-green-dark: #189653;
    --ev-green-soft: #eaf9f0;
    --ev-light: #f5f8fb;
    --ev-text: #122033;
    --ev-muted: #68798d;
    --ev-border: #e2e9f0;
    --ev-white: #ffffff;
}

/* ==========================================================
   CAR GALLERY SLIDER (Right-to-Left Translation)
========================================================== */

.car-image-wrapper {
    position: relative;
    height: 255px;
    overflow: hidden;
    background: #edf2f6;
}

/* Details page gallery — taller than the card gallery */

.car-details-page .car-image-wrapper {
    height: auto;
    min-height: 500px;
}

.car-details-page .car-gallery-slide img {
    min-height: 500px;
}

.car-gallery {
    position: absolute;
    inset: 0;
}

.car-gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .45s ease, transform .45s ease;
    transform: translateX(100%);
    pointer-events: none;
}

.car-gallery-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

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

.car-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b7c3cf;
    font-size: 48px;
}

/* Image navigation */

.gallery-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 50%;
    background: rgba(5,18,31,.60);
    backdrop-filter: blur(6px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: .25s ease;
    padding: 0;
}

.car-image-wrapper:hover .gallery-arrow,
.gallery-arrow:focus {
    opacity: 1;
}

.gallery-arrow:hover {
    background: var(--ev-green);
    border-color: var(--ev-green);
}

.gallery-prev {
    left: 13px;
}

.gallery-next {
    right: 13px;
}

.gallery-counter {
    position: absolute;
    z-index: 5;
    right: 13px;
    bottom: 13px;
    padding: 5px 9px;
    background: rgba(5,18,31,.67);
    color: white;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    backdrop-filter: blur(5px);
}

.gallery-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.gallery-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.48);
    cursor: pointer;
    transition: .2s ease;
}

.gallery-dot.active {
    width: 17px;
    border-radius: 10px;
    background: white;
}

/* Responsive adjustments for car gallery */

@media (max-width: 768px) {
    .car-image-wrapper {
        height: 235px;
    }

    .gallery-arrow {
        opacity: 1;
    }
}
/* ==========================================================
   EV MOTORS - PROFESSIONAL CARS LISTING PAGE
   ----------------------------------------------------------
   IMPORTANT:
   These styles are scoped to .cars-page only.
   They will NOT change the styling of other pages.
========================================================== */


/* ----------------------------------------------------------
   CARS PAGE BACKGROUND & CONTAINER
---------------------------------------------------------- */

.cars-page {
    background: #f5f8fb;
    min-height: 100vh;
    padding-bottom: 60px;
}

.cars-page > .container {
    max-width: 1400px;
}


/* ----------------------------------------------------------
   PAGE HEADER
---------------------------------------------------------- */

.cars-page .text-center {
    position: relative;
}

.cars-page .text-center > .badge {
    background: rgba(34, 185, 104, 0.12) !important;
    color: #189653 !important;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    border: 1px solid rgba(34, 185, 104, 0.15);
}

.cars-page h1 {
    color: #071522;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.cars-page .text-center p {
    color: #68798d !important;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* ----------------------------------------------------------
   FILTER CARD
---------------------------------------------------------- */

.cars-page .card {
    background: #ffffff;
    border: 1px solid #e2e9f0 !important;
    border-radius: 18px !important;
    box-shadow:
        0 8px 30px rgba(7, 21, 34, 0.06) !important;
}

.cars-page .card-body {
    padding: 25px !important;
}

.cars-page .form-label {
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 8px;
}


/* ----------------------------------------------------------
   SEARCH INPUT
---------------------------------------------------------- */

.cars-page .input-group {
    box-shadow: none;
}

.cars-page .input-group-text {
    background: #f8fafc;
    border: 1px solid #dce4ec;
    border-right: 0;
    color: #68798d;
    min-width: 50px;
    justify-content: center;
}

.cars-page .input-group .form-control {
    border-left: 0;
}


/* ----------------------------------------------------------
   FILTER INPUTS
---------------------------------------------------------- */

.cars-page .form-control,
.cars-page .form-select {
    min-height: 52px;
    border: 1px solid #dce4ec;
    border-radius: 10px;
    background-color: #ffffff;
    color: #243447;
    font-size: 0.94rem;
    padding: 12px 14px;
    box-shadow: none;
    transition: all 0.25s ease;
}

.cars-page .form-control:focus,
.cars-page .form-select:focus {
    border-color: #22b968;
    box-shadow:
        0 0 0 4px rgba(34, 185, 104, 0.10);
}

.cars-page .form-control::placeholder {
    color: #9aa8b6;
}


/* ----------------------------------------------------------
   FILTER BUTTONS
---------------------------------------------------------- */

.cars-page .btn-primary {
    background: #22b968 !important;
    border-color: #22b968 !important;
    color: #ffffff !important;
    border-radius: 10px;
    font-weight: 700;
    min-height: 52px;
    box-shadow: 0 5px 15px rgba(34, 185, 104, 0.20);
    transition: all 0.25s ease;
}

.cars-page .btn-primary:hover {
    background: #189653 !important;
    border-color: #189653 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 185, 104, 0.25);
}

.cars-page .btn-outline-secondary {
    min-height: 52px;
    border-radius: 10px;
    border-color: #dce4ec;
    color: #526273;
    font-weight: 600;
    transition: all 0.25s ease;
}

.cars-page .btn-outline-secondary:hover {
    background: #f8fafc;
    color: #22b968;
    border-color: #22b968;
}


/* ----------------------------------------------------------
   RESULTS HEADER
---------------------------------------------------------- */

.cars-page .d-flex.justify-content-between.align-items-center {
    padding: 5px 2px 18px;
    border-bottom: 1px solid #e2e9f0;
}

.cars-page .d-flex h2 {
    color: #071522;
    font-size: 1.65rem;
    font-weight: 800;
}

.cars-page .d-flex p {
    color: #68798d !important;
}


/* ==========================================================
   PROFESSIONAL CAR GRID
========================================================== */

.cars-page .row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}


/* ----------------------------------------------------------
   CAR CARD
---------------------------------------------------------- */

.cars-page .car-card {
    background: #ffffff;
    border: 1px solid #e2e9f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 5px 20px rgba(7, 21, 34, 0.06);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    height: 100%;
}

.cars-page .car-card:hover {
    transform: translateY(-7px);
    border-color: rgba(34, 185, 104, 0.30);
    box-shadow:
        0 18px 40px rgba(7, 21, 34, 0.12);
}


/* ----------------------------------------------------------
   IMAGE AREA
---------------------------------------------------------- */

.cars-page .car-card > .position-relative {
    height: 255px;
    overflow: hidden;
    background: #edf2f6;
}

.cars-page .car-card > .position-relative > img {
    width: 100%;
    height: 255px !important;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.cars-page .car-card:hover > .position-relative > img {
    transform: scale(1.045);
}


/* ----------------------------------------------------------
   FEATURED BADGE
---------------------------------------------------------- */

.cars-page .car-card .badge.bg-primary {
    background: #0d6efd !important;
    border-radius: 50px;
    padding: 8px 13px;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* ----------------------------------------------------------
   STATUS BADGE
---------------------------------------------------------- */

.cars-page .car-status {
    padding: 9px 15px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cars-page .car-status.available {
    background: #198754;
    color: #ffffff;
}

.cars-page .car-status.reserved {
    background: #ffc107;
    color: #212529;
}

.cars-page .car-status.sold {
    background: #dc3545;
    color: #ffffff;
}

.cars-page .car-status i {
    font-size: 7px;
    margin-right: 5px;
}


/* ----------------------------------------------------------
   CAR CONTENT
---------------------------------------------------------- */

.cars-page .car-card-content {
    padding: 20px;
    background: #ffffff;
}


/* ----------------------------------------------------------
   MODEL
---------------------------------------------------------- */

.cars-page .car-card-content h3 {
    color: #071522;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
}


/* ----------------------------------------------------------
   YEAR / BODY TYPE
---------------------------------------------------------- */

.cars-page .car-card-content > p {
    color: #68798d !important;
    font-size: 0.88rem;
    margin-bottom: 14px !important;
}

.cars-page .car-card-content > p i {
    color: #68798d;
}


/* ----------------------------------------------------------
   PRICE
---------------------------------------------------------- */

.cars-page .car-card .price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #198754;
    font-size: 1.35rem;
    font-weight: 800;
    padding: 13px 0;
    margin-bottom: 14px;
    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
}


/* ----------------------------------------------------------
   QUICK SPECIFICATIONS
---------------------------------------------------------- */

.cars-page .car-card-content .row.g-2 {
    margin-left: -4px;
    margin-right: -4px;
}

.cars-page .car-card-content .row.g-2 > div {
    padding-left: 4px;
    padding-right: 4px;
}


/* Individual specification */

.cars-page .car-card-content .row.g-2 > div > div {
    background: #f7f9fb;
    border: 1px solid #edf1f5;
    border-radius: 10px;
    padding: 10px 11px;
    min-height: 67px;
    transition: all 0.25s ease;
}

.cars-page .car-card-content .row.g-2 > div > div:hover {
    background: #f0fbf5;
    border-color: rgba(34, 185, 104, 0.20);
}


/* Specification label */

.cars-page .car-card-content .row.g-2 small {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #7a8998 !important;
    font-size: 0.72rem;
    margin-bottom: 3px;
    white-space: nowrap;
}

.cars-page .car-card-content .row.g-2 small i {
    color: #22b968;
    font-size: 0.82rem;
}


/* Specification value */

.cars-page .car-card-content .row.g-2 .fw-semibold {
    color: #26384a;
    font-size: 0.87rem;
    line-height: 1.2;
}


/* ----------------------------------------------------------
   VIEW DETAILS BUTTON
---------------------------------------------------------- */

.cars-page .car-card-content .mt-auto .btn {
    min-height: 48px;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 700;
    padding: 11px 15px;
}

.cars-page .car-card-content .mt-auto .btn i {
    font-size: 0.85rem;
}


/* ----------------------------------------------------------
   NO RESULTS
---------------------------------------------------------- */

.cars-page .text-center.py-5 {
    background: #ffffff;
    border: 1px solid #e2e9f0;
    border-radius: 18px;
    padding: 60px 25px !important;
    box-shadow: 0 5px 20px rgba(7, 21, 34, 0.05);
}

.cars-page .text-center.py-5 h3 {
    color: #071522;
    font-weight: 800;
}

.cars-page .text-center.py-5 i.bi-car-front {
    color: #a8b4c0 !important;
}


/* ==========================================================
   IMAGE SAFETY
   ----------------------------------------------------------
   Prevents broken/incorrect image dimensions from destroying
   the card layout.
========================================================== */

.cars-page .car-card img {
    max-width: none;
}

.cars-page .car-card > .position-relative {
    isolation: isolate;
}


/* ==========================================================
   LARGE DESKTOP
========================================================== */

@media (min-width: 1200px) {

    .cars-page .row.g-4 {
        --bs-gutter-x: 1.75rem;
        --bs-gutter-y: 1.75rem;
    }

    .cars-page .car-card > .position-relative {
        height: 265px;
    }

    .cars-page .car-card > .position-relative > img {
        height: 265px !important;
    }

    .cars-page .car-card-content {
        padding: 22px;
    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991px) {

    .cars-page h1 {
        font-size: 2.35rem;
    }

    .cars-page .car-card > .position-relative {
        height: 240px;
    }

    .cars-page .car-card > .position-relative > img {
        height: 240px !important;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .cars-page {
        padding-bottom: 40px;
    }

    .cars-page h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .cars-page .text-center p {
        font-size: 0.95rem;
    }

    .cars-page .card-body {
        padding: 18px !important;
    }

    .cars-page .car-card > .position-relative {
        height: 230px;
    }

    .cars-page .car-card > .position-relative > img {
        height: 230px !important;
    }

    .cars-page .car-card-content {
        padding: 18px;
    }

    .cars-page .car-card-content h3 {
        font-size: 1.15rem;
    }

    .cars-page .car-card .price {
        font-size: 1.25rem;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .cars-page h1 {
        font-size: 1.75rem;
    }

    .cars-page .car-card > .position-relative {
        height: 215px;
    }

    .cars-page .car-card > .position-relative > img {
        height: 215px !important;
    }

    .cars-page .car-card-content {
        padding: 16px;
    }

    .cars-page .car-status {
        padding: 8px 11px;
        font-size: 0.7rem;
    }

    .cars-page .car-card .badge.bg-primary {
        padding: 7px 10px;
        font-size: 0.68rem;
    }

    .cars-page .car-card-content .row.g-2 > div > div {
        padding: 9px;
        min-height: 63px;
    }

    .cars-page .car-card-content .row.g-2 small {
        font-size: 0.68rem;
    }

    .cars-page .car-card-content .row.g-2 .fw-semibold {
        font-size: 0.82rem;
    }

}


/* ==========================================================
   FINAL OVERRIDE
   ----------------------------------------------------------
   Prevent the generic .car-card img rule from affecting
   the professional Cars page dimensions.
========================================================== */

.cars-page .car-card > .position-relative > img {
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
/* ==========================================================
   EV MOTORS — FINAL PROFESSIONAL CARS.PHP DESIGN
   ----------------------------------------------------------
   These rules are intentionally scoped to .cars-page.
   They override the older Cars page rules without changing
   the design of other pages.
========================================================== */


/* ==========================================================
   1. CARS PAGE
========================================================== */

.cars-page {
    background: #f5f8fb;
    min-height: 100vh;
    padding: 45px 0 70px;
}

.cars-page > .container {
    max-width: 1380px;
}


/* ==========================================================
   2. PAGE HEADER
========================================================== */

.cars-page .cars-page-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 38px;
}

.cars-page .cars-page-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 16px;

    background: #e9f8f0 !important;
    color: #198754 !important;

    border: 1px solid #d3f0df;
    border-radius: 50px;

    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cars-page .cars-page-header h1 {
    margin: 15px 0 10px;

    color: #071522;

    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;

    letter-spacing: -1.2px;
}

.cars-page .cars-page-header p {
    margin: 0;

    color: #6b7b8c !important;

    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================================
   3. SUPPORT OLD PAGE HEADER
   ----------------------------------------------------------
   If cars.php does not have .cars-page-header, these rules
   still improve the existing header.
========================================================== */

.cars-page > .container > .text-center:first-child h1 {
    color: #071522;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
}

.cars-page > .container > .text-center:first-child p {
    color: #6b7b8c !important;
}


/* ==========================================================
   4. FILTER AREA
========================================================== */

.cars-page .card {
    border: 1px solid #e1e8ef !important;
    border-radius: 16px !important;

    background: #ffffff;

    box-shadow:
        0 8px 28px rgba(7, 21, 34, 0.055) !important;
}

.cars-page .card-body {
    padding: 22px !important;
}

.cars-page .form-label {
    color: #344456;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.cars-page .form-control,
.cars-page .form-select {
    height: 48px;

    border: 1px solid #dce4eb;
    border-radius: 9px;

    color: #26384a;
    background: #ffffff;

    font-size: 14px;

    box-shadow: none;

    transition: all .25s ease;
}

.cars-page .form-control:focus,
.cars-page .form-select:focus {
    border-color: #22b968;

    box-shadow:
        0 0 0 3px rgba(34,185,104,.10);
}

.cars-page .input-group-text {
    border-color: #dce4eb;
    background: #f8fafc;
    color: #718092;
}

.cars-page .btn-primary {
    background: #22b968 !important;
    border-color: #22b968 !important;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 5px 14px rgba(34,185,104,.18);

    transition: all .25s ease;
}

.cars-page .btn-primary:hover {
    background: #198f52 !important;
    border-color: #198f52 !important;

    transform: translateY(-2px);
}


/* ==========================================================
   5. RESULTS HEADER
========================================================== */

.cars-page .cars-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 35px;
    margin-bottom: 22px;

    padding-bottom: 16px;

    border-bottom: 1px solid #e1e8ef;
}

.cars-page .cars-results-header h2 {
    margin: 0;

    color: #071522;

    font-size: 23px;
    font-weight: 800;
}

.cars-page .cars-results-header p {
    margin: 3px 0 0;

    color: #7b8997 !important;
    font-size: 13px;
}


/* ==========================================================
   6. IMPORTANT — CAR GRID
   ----------------------------------------------------------
   This is what keeps all cards properly arranged.
========================================================== */

.cars-page .cars-grid,
.cars-page .row.g-4 {
    --bs-gutter-x: 22px;
    --bs-gutter-y: 28px;
}


/* Three equal columns on desktop */

.cars-page .cars-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* If Bootstrap row is used */

.cars-page .row.g-4 > [class*="col-"] {
    display: flex;
}


/* ==========================================================
   7. CAR CARD
========================================================== */

.cars-page .car-card,
.cars-page .car-card-enhanced {

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e1e8ef;

    border-radius: 17px;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(7, 21, 34, 0.055);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.cars-page .car-card:hover,
.cars-page .car-card-enhanced:hover {

    transform: translateY(-6px);

    border-color:
        rgba(34,185,104,.35);

    box-shadow:
        0 18px 40px rgba(7,21,34,.12);
}


/* ==========================================================
   8. PROFESSIONAL CAR IMAGE AREA
   ----------------------------------------------------------
   THIS IS THE MOST IMPORTANT FIX.
========================================================== */

.cars-page .car-image-wrapper,
.cars-page .car-image-wrapper-enhanced,
.cars-page .car-card > .position-relative {

    position: relative;

    width: 100%;

    height: 260px !important;

    min-height: 260px !important;

    max-height: 260px !important;

    overflow: hidden;

    background: #eef2f5;

    flex-shrink: 0;
}


/* ==========================================================
   9. CAR IMAGES
========================================================== */

.cars-page .car-image-wrapper img,
.cars-page .car-image-wrapper-enhanced img,
.cars-page .car-card > .position-relative > img {

    width: 100% !important;

    height: 260px !important;

    min-height: 260px !important;

    max-height: 260px !important;

    display: block;

    object-fit: cover !important;

    object-position: center center;

    margin: 0;

    padding: 0;

    border: 0;

    transition:
        transform .55s ease;
}


/* Zoom slightly when hovering */

.cars-page .car-card:hover
.car-image-wrapper img,

.cars-page .car-card:hover
.car-image-wrapper-enhanced img,

.cars-page .car-card:hover
> .position-relative > img {

    transform: scale(1.035);
}


/* ==========================================================
   10. GALLERY
========================================================== */

.cars-page .car-gallery {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.cars-page .car-gallery-slide {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    transform: translateX(100%);

    pointer-events: none;

    transition:
        opacity .4s ease,
        transform .4s ease;
}

.cars-page .car-gallery-slide.active {

    opacity: 1;

    transform: translateX(0);

    pointer-events: auto;
}

.cars-page .car-gallery-slide img {

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    object-position: center center;

    display: block;
}


/* ==========================================================
   11. IMAGE PLACEHOLDER
========================================================== */

.cars-page .car-image-placeholder {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eef2f5;

    color: #b7c2cd;

    font-size: 45px;
}


/* ==========================================================
   12. BADGES
========================================================== */

.cars-page .car-badge,
.cars-page .badge {

    font-weight: 700;
}


/* Featured */

.cars-page .car-badge-featured,
.cars-page .car-card .badge.bg-primary {

    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 20;

    padding: 7px 12px;

    background: #0d6efd !important;

    color: #ffffff;

    border-radius: 50px;

    font-size: 11px;

    box-shadow:
        0 4px 12px rgba(0,0,0,.16);
}


/* ==========================================================
   13. AVAILABILITY STATUS
========================================================== */

.cars-page .car-status {

    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 20;

    padding: 7px 12px;

    border-radius: 50px;

    font-size: 11px;

    font-weight: 750;

    box-shadow:
        0 4px 12px rgba(0,0,0,.16);
}

.cars-page .car-status.available {

    background: #198754;

    color: #ffffff;
}

.cars-page .car-status.reserved {

    background: #ffc107;

    color: #212529;
}

.cars-page .car-status.sold {

    background: #dc3545;

    color: #ffffff;
}


/* ==========================================================
   14. IMAGE ARROWS
========================================================== */

.cars-page .gallery-arrow {

    position: absolute;

    z-index: 25;

    top: 50%;

    transform:
        translateY(-50%);

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid
        rgba(255,255,255,.35);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(7,21,34,.68);

    color: #ffffff;

    cursor: pointer;

    opacity: 0;

    transition:
        all .25s ease;

    backdrop-filter:
        blur(5px);
}


/* Show arrows on hover */

.cars-page
.car-image-wrapper:hover
.gallery-arrow,

.cars-page
.car-image-wrapper-enhanced:hover
.gallery-arrow {

    opacity: 1;
}


/* Left */

.cars-page .gallery-prev {

    left: 13px;
}


/* Right */

.cars-page .gallery-next {

    right: 13px;
}


/* Arrow hover */

.cars-page .gallery-arrow:hover {

    background: #22b968;

    border-color: #22b968;

    transform:
        translateY(-50%)
        scale(1.05);
}


/* ==========================================================
   15. IMAGE COUNTER
========================================================== */

.cars-page .gallery-counter {

    position: absolute;

    z-index: 20;

    right: 13px;
    bottom: 13px;

    padding: 6px 10px;

    background:
        rgba(7,21,34,.72);

    color: #ffffff;

    border-radius: 50px;

    font-size: 10px;

    font-weight: 700;

    backdrop-filter:
        blur(5px);
}


/* ==========================================================
   16. GALLERY DOTS
========================================================== */

.cars-page .gallery-dots {

    position: absolute;

    z-index: 20;

    left: 50%;
    bottom: 14px;

    transform:
        translateX(-50%);

    display: flex;

    align-items: center;

    gap: 5px;
}

.cars-page .gallery-dot {

    width: 6px;
    height: 6px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background:
        rgba(255,255,255,.55);

    cursor: pointer;

    transition:
        all .25s ease;
}

.cars-page .gallery-dot.active {

    width: 18px;

    border-radius: 10px;

    background: #ffffff;
}


/* ==========================================================
   17. CARD CONTENT
========================================================== */

.cars-page .car-card-content,
.cars-page .car-card-body-enhanced {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 20px;
}


/* ==========================================================
   18. CAR TITLE
========================================================== */

.cars-page .car-card-content h3,
.cars-page .car-model-title {

    color: #071522;

    font-size: 19px;

    font-weight: 800;

    line-height: 1.3;

    margin: 0 0 5px;
}


/* ==========================================================
   19. CAR META
========================================================== */

.cars-page .car-model-meta,
.cars-page .car-card-content > p {

    color: #758494 !important;

    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 13px;
}

.cars-page .car-model-meta i,
.cars-page .car-card-content > p i {

    color: #7d8b98;

    margin-right: 4px;
}


/* ==========================================================
   20. PRICE
========================================================== */

.cars-page .car-price-enhanced,
.cars-page .car-card .price {

    display: flex;

    align-items: baseline;

    gap: 5px;

    padding: 13px 0;

    margin: 0 0 14px;

    border-top: 1px solid #edf1f4;

    border-bottom: 1px solid #edf1f4;
}

.cars-page .car-price-currency {

    color: #7c8997;

    font-size: 12px;

    font-weight: 650;
}

.cars-page .car-price-amount,
.cars-page .car-card .price {

    color: #198754;

    font-size: 21px;

    font-weight: 800;

    letter-spacing: -.3px;
}


/* ==========================================================
   21. SPECIFICATIONS
========================================================== */

.cars-page .car-specs-enhanced {

    margin-bottom: 17px;
}

.cars-page .car-spec-item {

    min-height: 58px;

    padding: 9px 10px;

    background: #f7f9fb;

    border: 1px solid #edf1f4;

    border-radius: 9px;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.cars-page .car-spec-item:hover {

    background: #effaf4;

    border-color:
        rgba(34,185,104,.20);
}

.cars-page .car-spec-item i {

    color: #22b968;

    font-size: 14px;
}

.cars-page .car-spec-item small {

    display: block;

    color: #8794a2 !important;

    font-size: 10px;

    line-height: 1.2;

    margin-bottom: 3px;
}

.cars-page .car-spec-item .fw-semibold {

    color: #304255;

    font-size: 12px;

    line-height: 1.25;
}


/* ==========================================================
   22. VIEW DETAILS BUTTON
========================================================== */

.cars-page .car-view-btn,
.cars-page .car-card-content .mt-auto .btn {

    width: 100%;

    min-height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: auto;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    transition:
        all .25s ease;
}

.cars-page .car-view-btn:hover {

    transform:
        translateY(-2px);
}


/* ==========================================================
   23. NO RESULTS
========================================================== */

.cars-page .cars-no-results,
.cars-page .text-center.py-5 {

    padding: 65px 25px !important;

    background: #ffffff;

    border: 1px solid #e1e8ef;

    border-radius: 17px;

    box-shadow:
        0 5px 20px rgba(7,21,34,.05);
}

.cars-page .cars-no-results-icon {

    width: 80px;
    height: 80px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    background: #f0f3f6;

    border-radius: 50%;
}

.cars-page .cars-no-results-icon i {

    color: #a9b5c0;

    font-size: 35px;
}


/* ==========================================================
   24. DESKTOP
========================================================== */

@media (min-width: 1200px) {

    .cars-page .car-image-wrapper,
    .cars-page .car-image-wrapper-enhanced,
    .cars-page .car-card > .position-relative {

        height: 270px !important;
        min-height: 270px !important;
        max-height: 270px !important;
    }

    .cars-page .car-image-wrapper img,
    .cars-page .car-image-wrapper-enhanced img,
    .cars-page .car-card > .position-relative > img {

        height: 270px !important;
        min-height: 270px !important;
        max-height: 270px !important;
    }

    .cars-page .car-card-content,
    .cars-page .car-card-body-enhanced {

        padding: 21px;
    }

}


/* ==========================================================
   25. TABLET
========================================================== */

@media (max-width: 1199px) {

    .cars-page .cars-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 991px) {

    .cars-page {

        padding-top: 35px;

    }

    .cars-page h1,
    .cars-page .cars-page-header h1 {

        font-size: 34px;

    }

    .cars-page .car-image-wrapper,
    .cars-page .car-image-wrapper-enhanced,
    .cars-page .car-card > .position-relative {

        height: 245px !important;
        min-height: 245px !important;
        max-height: 245px !important;

    }

    .cars-page .car-image-wrapper img,
    .cars-page .car-image-wrapper-enhanced img,
    .cars-page .car-card > .position-relative > img {

        height: 245px !important;
        min-height: 245px !important;
        max-height: 245px !important;

    }

}


/* ==========================================================
   26. MOBILE
========================================================== */

@media (max-width: 767px) {

    .cars-page {

        padding:
            28px 0 45px;

    }

    .cars-page .cars-grid {

        grid-template-columns: 1fr;

        gap: 22px;

    }

    .cars-page .row.g-4 {

        --bs-gutter-y: 22px;

    }

    .cars-page h1,
    .cars-page .cars-page-header h1 {

        font-size: 29px;

        letter-spacing: -.5px;

    }

    .cars-page .cars-page-header p {

        font-size: 14px;

    }

    .cars-page .cars-results-header {

        align-items:
            flex-start;

        gap: 12px;

        flex-direction:
            column;

    }

    .cars-page .car-image-wrapper,
    .cars-page .car-image-wrapper-enhanced,
    .cars-page .car-card > .position-relative {

        height: 235px !important;
        min-height: 235px !important;
        max-height: 235px !important;

    }

    .cars-page .car-image-wrapper img,
    .cars-page .car-image-wrapper-enhanced img,
    .cars-page .car-card > .position-relative > img {

        height: 235px !important;
        min-height: 235px !important;
        max-height: 235px !important;

    }

    /* Always show arrows on mobile */

    .cars-page .gallery-arrow {

        opacity: 1;

        width: 36px;
        height: 36px;

    }

}


/* ==========================================================
   27. SMALL PHONES
========================================================== */

@media (max-width: 480px) {

    .cars-page .car-image-wrapper,
    .cars-page .car-image-wrapper-enhanced,
    .cars-page .car-card > .position-relative {

        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;

    }

    .cars-page .car-image-wrapper img,
    .cars-page .car-image-wrapper-enhanced img,
    .cars-page .car-card > .position-relative > img {

        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;

    }

    .cars-page .car-card-content,
    .cars-page .car-card-body-enhanced {

        padding: 17px;

    }

    .cars-page .car-card-content h3,
    .cars-page .car-model-title {

        font-size: 17px;

    }

    .cars-page .car-card .price,
    .cars-page .car-price-amount {

        font-size: 19px;

    }

}
/* ==========================================================
   EV MOTORS — FINAL VEHICLE-CARD DESIGN
   ----------------------------------------------------------
   This block matches the current cars.php markup:
   .vehicles-grid, .vehicle-card, .vehicle-gallery, etc.
   It is scoped to .cars-page so other pages are preserved.
========================================================== */

.cars-page {
    --cars-bg: #f5f8fb;
    --cars-dark: #071522;
    --cars-muted: #718092;
    --cars-border: #e3e9ef;
    --cars-green: #22b968;
    --cars-green-dark: #189653;
    background: var(--cars-bg);
    min-height: 100vh;
    padding: 42px 0 72px;
}

.cars-page .cars-container {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.cars-page .cars-main-header {
    margin-bottom: 28px;
}

.cars-page .cars-header-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.cars-page .cars-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 13px;
    border-radius: 999px;
    background: #eaf9f0;
    border: 1px solid #d4f0df;
    color: var(--cars-green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.cars-page .cars-main-title {
    margin: 13px 0 7px;
    color: var(--cars-dark);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -1.4px;
}

.cars-page .cars-title-line {
    width: 58px;
    height: 4px;
    border-radius: 99px;
    background: var(--cars-green);
    margin-bottom: 12px;
}

.cars-page .cars-main-description {
    max-width: 700px;
    margin: 0;
    color: var(--cars-muted) !important;
    font-size: 15px;
    line-height: 1.7;
}

.cars-page .cars-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cars-page .cars-sort-select {
    min-width: 205px;
    height: 46px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--cars-border);
    border-radius: 10px;
    background: #fff;
    color: #2b3b4d;
    font-size: 13px;
    font-weight: 650;
    outline: none;
}

.cars-page .cars-view-toggle {
    display: flex;
    gap: 5px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--cars-border);
    border-radius: 10px;
}

.cars-page .cars-view-btn {
    width: 38px;
    height: 36px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #7b8997;
    cursor: pointer;
}

.cars-page .cars-view-btn.active,
.cars-page .cars-view-btn:hover {
    background: var(--cars-green);
    color: #fff;
}

/* Category navigation */
.cars-page .vehicle-category-nav {
    display: flex;
    gap: 9px;
    margin-top: 26px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.cars-page .vehicle-category-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--cars-border);
    border-radius: 10px;
    background: #fff;
    color: #526273;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: .25s ease;
}

.cars-page .vehicle-category-btn i {
    color: var(--cars-green);
}

.cars-page .vehicle-category-btn:hover,
.cars-page .vehicle-category-btn.active {
    border-color: var(--cars-green);
    background: var(--cars-green);
    color: #fff;
    transform: translateY(-1px);
}

.cars-page .vehicle-category-btn:hover i,
.cars-page .vehicle-category-btn.active i {
    color: #fff;
}

/* Main layout */
.cars-page .cars-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.cars-page .cars-filter-sidebar {
    min-width: 0;
}

.cars-page .cars-filter-card,
.cars-page .why-ev-card {
    background: #fff;
    border: 1px solid var(--cars-border);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(7,21,34,.055);
}

.cars-page .cars-filter-card {
    padding: 20px;
    position: sticky;
    top: 92px;
}

.cars-page .cars-filter-heading {
    padding-bottom: 14px;
    margin-bottom: 17px;
    border-bottom: 1px solid #edf1f4;
}

.cars-page .cars-filter-heading h2 {
    margin: 0;
    color: var(--cars-dark);
    font-size: 17px;
    font-weight: 800;
}

.cars-page .cars-filter-heading i {
    color: var(--cars-green);
    margin-right: 7px;
}

.cars-page .cars-filter-group {
    margin-bottom: 16px;
}

.cars-page .cars-filter-group > label {
    display: block;
    margin-bottom: 7px;
    color: #39495a;
    font-size: 12px;
    font-weight: 750;
}

.cars-page .cars-search-box {
    position: relative;
}

.cars-page .cars-search-box i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b98a6;
    z-index: 2;
}

.cars-page .cars-search-box input,
.cars-page .cars-filter-group select,
.cars-page .price-inputs input {
    width: 100%;
    height: 44px;
    border: 1px solid #dce4eb;
    border-radius: 9px;
    background: #fff;
    color: #26384a;
    font-size: 13px;
    outline: none;
    transition: .2s ease;
}

.cars-page .cars-search-box input {
    padding: 0 12px 0 37px;
}

.cars-page .cars-filter-group select {
    padding: 0 11px;
}

.cars-page .cars-search-box input:focus,
.cars-page .cars-filter-group select:focus,
.cars-page .price-inputs input:focus {
    border-color: var(--cars-green);
    box-shadow: 0 0 0 3px rgba(34,185,104,.1);
}

.cars-page .price-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 7px;
    align-items: center;
}

.cars-page .price-inputs input {
    padding: 0 10px;
}

.cars-page .price-inputs span {
    color: #9aa6b2;
}

.cars-page .price-range-visual {
    position: relative;
    height: 17px;
    margin-top: 9px;
}

.cars-page .price-range-line {
    position: absolute;
    left: 5px;
    right: 5px;
    top: 7px;
    height: 3px;
    border-radius: 99px;
    background: #dfe8e3;
}

.cars-page .range-dot {
    position: absolute;
    top: 3px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--cars-green);
    box-shadow: 0 0 0 1px #b9dcca;
}

.cars-page .range-dot.left { left: 0; }
.cars-page .range-dot.right { right: 0; }

.cars-page .price-scale {
    display: flex;
    justify-content: space-between;
    color: #9aa6b2;
    font-size: 9px;
    margin-top: 1px;
}

.cars-page .cars-apply-btn,
.cars-page .cars-reset-btn {
    width: 100%;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.cars-page .cars-apply-btn {
    border: 0;
    background: var(--cars-green);
    color: #fff;
    box-shadow: 0 7px 18px rgba(34,185,104,.18);
}

.cars-page .cars-apply-btn:hover {
    background: var(--cars-green-dark);
    transform: translateY(-1px);
}

.cars-page .cars-reset-btn {
    margin-top: 8px;
    border: 1px solid var(--cars-border);
    background: #fff;
    color: #68798d;
    text-decoration: none;
}

.cars-page .cars-reset-btn:hover {
    border-color: #d5a2a2;
    color: #c0392b;
}

.cars-page .why-ev-card {
    margin-top: 16px;
    padding: 19px;
    position: relative;
    overflow: hidden;
}

.cars-page .why-ev-card h3 {
    margin: 0 0 15px;
    color: var(--cars-dark);
    font-size: 15px;
    font-weight: 800;
}

.cars-page .why-ev-item {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 10px 0;
    color: #647486;
    font-size: 11px;
}

.cars-page .why-ev-item i {
    color: var(--cars-green);
}

.cars-page .why-ev-decoration {
    position: absolute;
    right: -12px;
    bottom: -18px;
    font-size: 70px;
    color: rgba(34,185,104,.055);
    transform: rotate(-12deg);
}

/* Results */
.cars-page .cars-results {
    min-width: 0;
}

.cars-page .cars-results-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--cars-border);
}

.cars-page .cars-results-top h2 {
    margin: 0;
    color: var(--cars-dark);
    font-size: 22px;
    font-weight: 850;
}

.cars-page .cars-results-top p {
    margin: 3px 0 0;
    color: #81909f !important;
    font-size: 12px;
}

.cars-page .cars-active-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 17px;
}

.cars-page .cars-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #dce9e1;
    border-radius: 999px;
    background: #f4fbf7;
    color: #526273;
    font-size: 10px;
    font-weight: 650;
}

.cars-page .cars-filter-chip a {
    color: #8b98a6;
    font-size: 14px;
    line-height: 1;
}

/* ==========================================================
   VEHICLE GRID — THE MAIN FIX
========================================================== */
.cars-page .vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.cars-page .vehicle-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--cars-border);
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 7px 24px rgba(7,21,34,.065);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.cars-page .vehicle-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34,185,104,.35);
    box-shadow: 0 18px 38px rgba(7,21,34,.13);
}

/* Image area is fixed, so every card starts at exactly the same height. */
.cars-page .vehicle-image-area {
    position: relative;
    width: 100%;
    height: 255px;
    flex: 0 0 255px;
    overflow: hidden;
    background: #eef2f5;
}

.cars-page .vehicle-gallery {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cars-page .vehicle-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(35px);
    transition: opacity .38s ease, transform .38s ease, visibility .38s ease;
}

.cars-page .vehicle-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

/* Contain keeps the full vehicle visible even when source images have different ratios. */
.cars-page .vehicle-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 10px;
    transition: transform .5s ease;
}

.cars-page .vehicle-card:hover .vehicle-slide.active img {
    transform: scale(1.035);
}

/* Gallery controls */
.cars-page .vehicle-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: rgba(7,21,34,.72);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    backdrop-filter: blur(7px);
    transition: .22s ease;
}

.cars-page .vehicle-gallery-prev { left: 12px; }
.cars-page .vehicle-gallery-next { right: 12px; }

.cars-page .vehicle-image-area:hover .vehicle-gallery-arrow,
.cars-page .vehicle-gallery-arrow:focus {
    opacity: 1;
}

.cars-page .vehicle-gallery-arrow:hover {
    background: var(--cars-green);
    border-color: var(--cars-green);
}

.cars-page .vehicle-image-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 10;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(7,21,34,.75);
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    backdrop-filter: blur(6px);
}

.cars-page .vehicle-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 13px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    transform: translateX(-50%);
}

.cars-page .vehicle-gallery-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.6);
    cursor: pointer;
    transition: .2s ease;
}

.cars-page .vehicle-gallery-dot.active {
    width: 18px;
    background: #fff;
}

/* Status and favorite */
.cars-page .vehicle-status-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(0,0,0,.14);
}

.cars-page .vehicle-status-available {
    background: #198754;
    color: #fff;
}

.cars-page .vehicle-status-reserved {
    background: #ffc107;
    color: #212529;
}

.cars-page .vehicle-status-sold {
    background: #dc3545;
    color: #fff;
}

.cars-page .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.cars-page .vehicle-favorite {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 12;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;
    background: rgba(7,21,34,.68);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(7px);
    transition: .22s ease;
}

.cars-page .vehicle-favorite:hover,
.cars-page .vehicle-favorite.active {
    background: #fff;
    color: #e05268;
    border-color: #fff;
}

/* Card information */
.cars-page .vehicle-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 19px 19px;
}

.cars-page .vehicle-title-row {
    min-height: 53px;
}

.cars-page .vehicle-title-row h3 {
    margin: 0 0 5px;
    color: var(--cars-dark);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: -.25px;
}

.cars-page .vehicle-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    color: #7b8997 !important;
    font-size: 11px;
}

.cars-page .vehicle-meta i {
    margin-right: 3px;
}

.cars-page .vehicle-meta-dot {
    color: #bdc6cf;
}

.cars-page .vehicle-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 12px 0 14px;
    padding: 12px 0;
    border-top: 1px solid #edf1f4;
    border-bottom: 1px solid #edf1f4;
}

.cars-page .vehicle-price-label {
    color: #7e8c99;
    font-size: 11px;
    font-weight: 750;
}

.cars-page .vehicle-price strong {
    color: #198754;
    font-size: 21px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.4px;
}

/* Quick specs */
.cars-page .vehicle-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.cars-page .vehicle-spec {
    min-width: 0;
    min-height: 57px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid #edf1f4;
    border-radius: 9px;
    background: #f7f9fb;
}

.cars-page .vehicle-spec > i {
    flex: 0 0 auto;
    color: var(--cars-green);
    font-size: 14px;
}

.cars-page .vehicle-spec > div {
    min-width: 0;
}

.cars-page .vehicle-spec strong {
    display: block;
    color: #304255;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cars-page .vehicle-spec small {
    display: block;
    margin-top: 2px;
    color: #8794a2;
    font-size: 9px;
    line-height: 1.2;
}

.cars-page .vehicle-view-btn {
    width: 100%;
    min-height: 45px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    background: var(--cars-green);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(34,185,104,.17);
    transition: .25s ease;
}

.cars-page .vehicle-view-btn:hover {
    background: var(--cars-green-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* Empty state */
.cars-page .cars-empty {
    padding: 65px 25px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--cars-border);
    border-radius: 17px;
    box-shadow: 0 7px 24px rgba(7,21,34,.05);
}

.cars-page .cars-empty-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f3f6;
    color: #aab6c1;
    font-size: 32px;
}

.cars-page .cars-empty h3 {
    margin-bottom: 7px;
    color: var(--cars-dark);
    font-size: 20px;
    font-weight: 800;
}

.cars-page .cars-empty p {
    margin-bottom: 18px;
    color: #7b8997 !important;
    font-size: 13px;
}

.cars-page .cars-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 9px;
    background: var(--cars-green);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}

/* Mobile filter */
.cars-page .cars-mobile-filter-btn {
    width: 100%;
    min-height: 45px;
    margin-bottom: 16px;
    border: 1px solid var(--cars-border);
    border-radius: 10px;
    background: #fff;
    color: #344456;
    font-size: 13px;
    font-weight: 750;
}

.cars-page .cars-filter-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    border-radius: 50%;
    background: var(--cars-green);
    color: #fff;
    font-size: 10px;
}

/* Responsive */
@media (max-width: 1199px) {
    .cars-page .vehicles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .cars-page .cars-header-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .cars-page .cars-header-actions {
        width: 100%;
    }

    .cars-page .cars-sort-select {
        flex: 1;
        min-width: 0;
    }

    .cars-page .cars-layout {
        grid-template-columns: 1fr;
    }

    .cars-page .cars-filter-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .cars-page {
        padding: 28px 0 48px;
    }

    .cars-page .cars-container {
        width: min(100% - 24px, 680px);
    }

    .cars-page .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cars-page .vehicle-image-area {
        height: 250px;
        flex-basis: 250px;
    }

    .cars-page .vehicle-gallery-arrow {
        opacity: 1;
        width: 36px;
        height: 36px;
    }

    .cars-page .cars-header-actions {
        flex-wrap: wrap;
    }

    .cars-page .cars-sort-select {
        width: 100%;
        flex-basis: 100%;
    }

    .cars-page .cars-view-toggle {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .cars-page .cars-main-title {
        font-size: 30px;
    }

    .cars-page .vehicle-image-area {
        height: 225px;
        flex-basis: 225px;
    }

    .cars-page .vehicle-card-content {
        padding: 16px;
    }

    .cars-page .vehicle-spec-grid {
        gap: 6px;
    }

    .cars-page .vehicle-spec {
        padding: 8px;
    }
}

/* ==========================================================
   ORDER PAGE - VEHICLE PHOTO GALLERY
   ========================================================== */

.order-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    background: #f4f6f8;
}

.order-gallery-main img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

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

.order-thumb {
    width: 76px;
    height: 58px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f6f8;
    cursor: pointer;
    transition: border-color 0.2s ease;
    line-height: 0;
}

.order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.order-thumb:hover {
    border-color: rgba(34, 185, 104, 0.5);
}

.order-thumb.active {
    border-color: #22b968;
}
