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

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #475569;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.vehicle-header,
.price-section,
.contact-section,
.specs-section,
.history-section,
.vehicle-images {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 3rem;
}

.vehicle-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.vehicle-subtitle,
.price-subtitle {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.vehicle-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.rebuilt-badge {
    background: #b1161d;
    color: white;
}

.carfax-badge {
    background: #059669;
    color: white;
}

.available-badge {
    background: #0ea5e9;
    color: white;
}

.main-image {
    width: 100%;
    background: linear-gradient(135deg, #64748b, #475569);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.thumbnail {
    height: 80px;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #b1161d;
    transform: translateY(-2px);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #059669;
    margin-bottom: 0.5rem;
}

.action-btn {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.primary-btn {
    background: linear-gradient(135deg, #b1161d 0%, rgb(126, 13, 19) 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(177, 22, 29, 0.3);
}

.specs-header,
.history-header {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    border-bottom: 2px solid #b1161d;
    padding-bottom: 0.5rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.spec-group {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.history-content {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #b1161d;
    margin-bottom: 1.5rem;
}

.carfax-button {
    background: #059669;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carfax-button:hover {
    background: #047857;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

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

    .price {
        font-size: 2.5rem;
    }

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