/* Vehicle Archive */
.vehicle-archive {
    padding: 80px 0;
    background: #111;
}

/* Stock Header */
.stock-header {
    text-align: center;
    margin-bottom: 60px;
}

.stock-subtitle {
    color: #C4622D;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
}

.stock-header h1 {
    font-size: 64px;
    margin-bottom: 18px;
}

.stock-intro {
    max-width: 760px;
    margin: auto;
    color: #aaa;
    line-height: 1.8;
    font-size: 18px;
}

/* Layout */
.stock-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.stock-sidebar {
    background: #161616;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 32px;
    position: sticky;
    top: 110px;
}

.stock-sidebar h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 28px;
}

.stock-filters input,
.stock-filters select {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: #F5F0E8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 18px;
    box-sizing: border-box;
}

.stock-filters input:focus,
.stock-filters select:focus {
    outline: none;
    border-color: #C4622D;
}

.reset-filter {
    display: block;
    margin-top: 18px;
    color: #aaa;
    text-align: center;
    transition: 0.3s ease;
}

.reset-filter:hover {
    color: #C4622D;
}

/* Results */
.stock-results-top {
    margin-bottom: 30px;
}

.stock-results-top p {
    color: #aaa;
    margin: 0;
}

/* Vehicle Cards */
.vehicle-card {
    background: #161616;
    border: 1px solid #222;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: 0.35s ease;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    border-color: #C4622D;
}

.vehicle-image {
    display: block;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: 0.4s ease;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-card-content {
    padding: 28px;
}

.vehicle-card-subtitle {
    color: #C4622D;
    letter-spacing: 3px;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.vehicle-card h2 {
    font-size: 30px;
    margin: 0 0 18px;
    line-height: 1.15;
}

.vehicle-price {
    color: #C4622D;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 8px;
}

.vehicle-monthly {
    color: #aaa;
    margin-bottom: 22px;
}

.vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.vehicle-meta span {
    background: #111;
    border: 1px solid #2a2a2a;
    padding: 10px 14px;
    border-radius: 8px;
    color: #ddd;
    font-size: 14px;
}

/* Buttons */
.vehicle-card-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vehicle-card-buttons .cta-button,
.vehicle-card-buttons .secondary-button,
.vehicle-card-buttons .save-vehicle-btn,
.vehicle-card-buttons .compare-vehicle-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.2;
}

/* Save + Compare */
.save-vehicle-btn,
.compare-vehicle-btn {
    background: transparent;
    border: 1px solid #C4622D;
    color: #C4622D;
    cursor: pointer;
    transition: 0.3s ease;
}

.save-vehicle-btn:hover,
.compare-vehicle-btn:hover {
    background: #C4622D;
    color: white;
}

/* Sold Badge */
.sold-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #C4622D;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    z-index: 5;
}

/* No Vehicles */
.no-vehicles {
    background: #161616;
    border: 1px solid #222;
    border-radius: 14px;
    padding: 50px;
    text-align: center;
    grid-column: 1 / -1;
}

.no-vehicles h2 {
    margin-bottom: 16px;
}

.no-vehicles p {
    color: #aaa;
    margin-bottom: 28px;
}

/* Responsive */
@media(max-width: 1200px) {

    .stock-layout {
        grid-template-columns: 1fr;
    }

    .stock-sidebar {
        position: relative;
        top: auto;
    }

}

@media(max-width: 900px) {

    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    .stock-header h1 {
        font-size: 42px;
    }

}

@media(max-width: 600px) {

    .vehicle-card-buttons {
        grid-template-columns: 1fr;
    }

}

.stock-results-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.stock-sort-form select {
    background: #161616;
    border: 1px solid #333;
    color: #F5F0E8;
    padding: 14px 16px;
    border-radius: 8px;
    min-width: 220px;
}

.stock-sort-form select:focus {
    outline: none;
    border-color: #C4622D;
}

@media(max-width: 768px) {
    .stock-results-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .stock-sort-form,
    .stock-sort-form select {
        width: 100%;
    }
}

/* AutoTrader Style Filter Panel */
.filter-title-box {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #2a2a2a;
}

.filter-title-box span {
    width: 48px;
    height: 48px;
    background: rgba(196,98,45,0.15);
    border: 1px solid rgba(196,98,45,0.35);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.filter-title-box h3 {
    margin: 0;
    font-size: 24px;
}

.filter-title-box p {
    margin: 4px 0 0;
    color: #aaa;
    font-size: 14px;
}

.filter-group {
    margin-bottom: 18px;
}

.filter-group label {
    display: block;
    color: #F5F0E8;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stock-filters input,
.stock-filters select {
    min-width: 0;
    margin-bottom: 0;
}

.filter-submit {
    width: 100%;
    margin-top: 8px;
    text-align: center;
}

.reset-filter {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #aaa;
}

.reset-filter:hover {
    color: #C4622D;
}

.stock-results-top {
    background: #161616;
    border: 1px solid #222;
    padding: 18px 22px;
    border-radius: 14px;
}