.car-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.car-card {
    background: #333;
    border-radius: 15px;
    overflow: hidden;
    width: 370px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
    position: relative;  /* Ensure absolute elements stay inside */
}

.car-card:hover {
    transform: scale(1.07);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

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

.swiper {
    width: 100%;
    height: 230px;
    border-radius: 15px 15px 0 0;
}

.swiper-slide img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.swiper-button-next, .swiper-button-prev {
    color: white;
}

.swiper-pagination-bullet {
    background: white;
}

.status {
    position: absolute;
    background: gold;
    color: black;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    z-index: 10;
    top: 15px;
    left: 15px;
    display: block;
}

.car-details {
    padding: 25px;
    text-align: center;
    background: #222;
}

.car-details h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: white;
    font-weight: bold;
}

.car-details p {
    font-size: 1.1rem;
    color: #ddd;
}

.tag-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    background: #555;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 1rem;
    color: white;
}
.location {
    position: absolute;
    background: gold;
    color: black;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    z-index: 10;
    bottom: 15px;
    left: 15px;
}
.swiper-wrapper .status {
    display: none !important; /* Prevent duplication */
}
@media (max-width: 1024px) {
    .car-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .car-card {
        width: 95%;
    }
}