.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.car-view .vehicles-grid {
    grid-template-columns: repeat(3, 1fr);
}

.vehicle-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-fast);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-md);
}

.vehicle-status {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.status-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: var(--border-radius-md);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
}

.status-badge.new {
    background-color: #28a745;
}

.status-badge.sale {
    background-color: #dc3545;
}

.vehicle-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

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

.vehicle-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-fast);
}

.vehicle-card:hover .vehicle-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.vehicle-content {
    padding: 25px;
    flex: 1 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vehicle-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vehicle-brand {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 0;
}

.vehicle-rating {
    color: #ffc107;
    font-size: 14px;
}

.vehicle-year {
    color: #999;
    font-size: 13px;
}

.vehicle-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.vehicle-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

.vehicle-title a:hover {
    color: var(--primary-color);
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-medium);
    color: #555;
}

.spec-item i {
    color: var(--primary-color);
    font-size: 16px;
}

.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.vehicle-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.vehicle-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.vehicle-link i {
    transition: var(--transition-fast);
}

.vehicle-link:hover {
    color: var(--primary-color);
}

.vehicle-link:hover i {
    transform: translateX(5px);
}

/* 4 columns on extra large screens (≤ 1400px for example) */
@media (max-width: 1399.98px) {
    .vehicles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 3 columns on large screens (≤ 1200px) */
@media (max-width: 1199.98px) {
    .vehicles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* 2 columns on medium screens (≤ 992px) */
@media (max-width: 991.98px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 column on small screens (≤ 768px) */
@media (max-width: 767.98px) {
    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}