/* ============================================================
   OUR CARS PAGE  –  cars.css
   ============================================================ */

/* ── Hero ── */
.cars-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cars-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.cars-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, transparent);
    z-index: 1;
}

.cars-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 6%;
}

.cars-hero-content h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1;
}

.cars-hero-content h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #F4600A;
    margin-top: 10px;
    border-radius: 2px;
}

.cars-hero-content p {
    color: #ccc;
    font-size: 16px;
    margin-top: 14px;
}

/* ── Floating Filter Bar ── */
.cars-filter-wrap {
    max-width: 1300px;
    margin: -36px auto 0;
    padding: 0 6%;
    position: relative;
    z-index: 10;
}

.cars-filter-bar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,.13);
    padding: 22px 28px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.cf-field {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cf-field label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.cf-field select {
    padding: 11px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #111;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.cf-field select:focus {
    outline: none;
    border-color: #F4600A;
}

.cf-btn {
    background: #F4600A;
    color: #111;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: .25s;
    flex-shrink: 0;
}

.cf-btn:hover {
    background: #FF8A3D;
    transform: translateY(-2px);
}

/* ── Listing ── */
.cars-listing {
    max-width: 1500px;
    margin: 0 auto;
    padding: 50px 6% 80px;
}

.listing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.listing-count {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.listing-count span {
    color: #F4600A;
}

.listing-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #777;
}

.listing-sort select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #111;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.listing-sort select:focus { outline: none; }

/* ── Cars Grid ── */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Car Item Card ── */
.car-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    transition: transform .3s, box-shadow .3s;
}

.car-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.1);
}

.car-item-img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.car-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.car-item:hover .car-item-img-wrap img {
    transform: scale(1.05);
}

.car-item-info {
    padding: 16px 18px 18px;
}

.car-item-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.car-item-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.car-item-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #777;
}

.car-item-specs i {
    font-size: 11px;
    color: #bbb;
}

.car-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f2f2f2;
}

.car-item-price {
    font-size: 22px;
    font-weight: 700;
    color: #F4600A;
}

.car-item-price span {
    font-size: 12px;
    font-weight: 400;
    color: gray;
}

.car-item-btn {
    text-decoration: none;
    color: #111;
    border: 1.5px solid #ddd;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    transition: .25s;
    white-space: nowrap;
}

.car-item-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ── No Results ── */
.no-results {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #bbb;
    gap: 16px;
    text-align: center;
}

.no-results i {
    font-size: 48px;
    color: #e0e0e0;
}

.no-results p {
    font-size: 16px;
    color: #999;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .cars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cars-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .cf-btn {
        width: 100%;
        justify-content: center;
    }

    .cars-hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 500px) {
    .cars-grid {
        grid-template-columns: 1fr;
    }

    .listing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
