/* Car Cards Styling */
.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.car-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

.car-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.spec-item i {
    margin-left: 5px;
    color: #3498db;
}

.car-price {
    margin-top: auto;
    font-size: 1.3rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
}

.car-price span {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: normal;
}

.book-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.book-btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .car-card {
        margin-bottom: 20px;
    }
    
    .car-image-container {
        height: 180px;
    }
}

/* Badge for car type */
.car-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
