/* Modern Car Listing Styles */
.car-listing {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-listing:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.car-image-container {
    position: relative;
    padding-top: 70%;
    overflow: hidden;
    background: #f8f9fa;
}

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

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

.car-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e63946;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: #f8d7da;
    transform: scale(1.1);
}

.favorite-btn i {
    color: #e63946;
    font-size: 18px;
}

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

.car-make {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.car-model {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #2b2b2b;
}

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

.spec-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6c757d;
}

.spec-item i {
    margin-right: 5px;
    color: #e63946;
    font-size: 16px;
}

.car-location {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f1f1;
    font-size: 13px;
    color: #6c757d;
}

.car-location img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    margin-right: 8px;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.car-price {
    font-size: 20px;
    font-weight: 700;
    color: #e63946;
    margin: 0;
}

.view-details-btn {
    background: #e63946;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.view-details-btn:hover {
    background: #c1121f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.view-details-btn i {
    margin-right: 5px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .car-details {
        padding: 15px;
    }
    
    .car-model {
        font-size: 16px;
    }
    
    .car-price {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .car-listing {
        margin-bottom: 20px;
    }
    
    .car-specs {
        gap: 10px;
    }
    
    .spec-item {
        font-size: 12px;
    }
}
