/* =========================================================
   VEHICLES INDEX
   ========================================================= */

.vehicles-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 55px 35px 80px;
}


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

.vehicles-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 35px;

    border-bottom: 1px solid rgba(255,255,255,.07);
    padding-bottom: 25px;
}

.vehicles-header h1 {
    margin: 0;

    color: #fff;

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

.vehicles-header p {
    margin: 8px 0 0;

    color: var(--gray);

    font-size: 11px;
}

.vehicles-count {
    color: var(--gray);

    font-size: 11px;
}

.vehicles-count strong {
    color: #fff;

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


/* =========================================================
   FILTRES
   ========================================================= */

.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 25px;
}

.active-filters-label {
    margin-right: 4px;

    color: #555d67;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.filter-pill {
    padding: 6px 10px;

    background: rgba(0,108,177,.08);

    border: 1px solid rgba(0,108,177,.20);
    border-radius: 5px;

    color: #65b6e3;

    font-size: 9px;
}

.clear-filters {
    margin-left: 5px;

    color: #7b838d;

    font-size: 9px;
    font-weight: 600;

    text-decoration: none;
}

.clear-filters:hover {
    color: var(--red);
}


/* =========================================================
   GRID
   ========================================================= */

.vehicles-grid {
    display: grid;

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

    gap: 22px;
}


/* =========================================================
   CARD
   ========================================================= */

.vehicle-card {
    overflow: hidden;

    background: var(--dark2);

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;

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

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

    border-color: rgba(0,108,177,.45);

    box-shadow:
        0 18px 45px rgba(0,0,0,.25);
}


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

.vehicle-image {
    position: relative;

    display: block;

    height: 230px;

    overflow: hidden;

    background: #0d0f14;

    text-decoration: none;
}

.vehicle-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .45s ease;
}

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

.vehicle-no-image {
    width: 100%;
    height: 100%;

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

    color: #454c55;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* =========================================================
   BADGES
   ========================================================= */

.vehicle-category {
    position: absolute;

    top: 12px;
    left: 12px;

    padding: 6px 9px;

    background: rgba(10,10,10,.78);

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 4px;

    color: #dce0e4;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: .6px;

    backdrop-filter: blur(5px);
}

.vehicle-status {
    position: absolute;

    top: 12px;
    right: 12px;

    padding: 6px 9px;

    border-radius: 4px;

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

    backdrop-filter: blur(5px);
}

.vehicle-status.available {
    background: rgba(0,108,177,.85);
    color: #fff;
}

.vehicle-status.depot {
    background: rgba(10,10,10,.78);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
}

.vehicle-status.sold {
    background: rgba(225,102,0,.85);
    color: #fff;
}


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

.vehicle-content {
    padding: 19px;
}

.vehicle-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 18px;
}

.vehicle-brand {
    display: block;

    margin-bottom: 3px;

    color: var(--blue);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.vehicle-title h2 {
    margin: 0;

    color: #fff;

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

.vehicle-year {
    padding: 5px 7px;

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

    border-radius: 4px;

    color: #8f969f;

    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   STATS
   ========================================================= */

.vehicle-stats {
    display: grid;

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

    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.vehicle-stat {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 0;

    padding: 11px 4px;

    color: #818994;
}

.vehicle-stat:nth-child(1),
.vehicle-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.vehicle-stat:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,.05);
}

.vehicle-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    flex-shrink: 0;

    background: rgba(0,108,177,.08);

    border-radius: 4px;

    color: #4da8d5;

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

.vehicle-stat strong {
    display: inline-block;

    color: #d5d9de;

    font-size: 9px;
    font-weight: 700;
}

.vehicle-stat span:not(.vehicle-stat-icon) {
    color: #666e78;

    font-size: 8px;
}


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

.vehicle-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    padding-top: 17px;
}

.vehicle-price {
    display: flex;
    align-items: baseline;

    gap: 4px;
}

.vehicle-price strong {
    color: #fff;

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

.vehicle-price span {
    color: #737b85;

    font-size: 10px;
    font-weight: 700;
}

.vehicle-details {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #58add7;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .5px;

    text-decoration: none;

    transition: color .2s ease;
}

.vehicle-details span {
    font-size: 13px;

    transition: transform .2s ease;
}

.vehicle-details:hover {
    color: #82c9eb;
}

.vehicle-details:hover span {
    transform: translateX(3px);
}


/* =========================================================
   EMPTY
   ========================================================= */

.vehicles-empty {
    max-width: 500px;

    margin: 70px auto;

    padding: 45px 30px;

    background: var(--dark2);

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;

    text-align: center;
}

.vehicles-empty-icon {
    width: 48px;
    height: 48px;

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

    margin: 0 auto 18px;

    background: rgba(225,102,0,.08);

    border: 1px solid rgba(225,102,0,.20);
    border-radius: 50%;

    color: var(--red);

    font-size: 22px;
}

.vehicles-empty h2 {
    margin: 0 0 8px;

    color: #fff;

    font-size: 18px;
}

.vehicles-empty p {
    margin: 0 0 22px;

    color: var(--gray);

    font-size: 10px;
}

.vehicles-empty-button {
    display: inline-flex;

    width: auto;

    padding: 11px 18px;

    text-decoration: none;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.vehicles-pagination {
    margin-top: 40px;
}

.vehicles-pagination .pagination {
    margin: 0;
}


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

@media (max-width: 1100px) {

    .vehicles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .vehicles-page {
        padding: 35px 18px 60px;
    }

    .vehicles-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

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

    .vehicle-image {
        height: 240px;
    }

}

@media (max-width: 450px) {

    .vehicles-header h1 {
        font-size: 25px;
    }

    .vehicle-image {
        height: 210px;
    }

}