/* Custom Layout Overrides for CaddeAuto */

/* Increase container max-width for wider displays */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px !important;
    }
}

/* Alternative: Use container-fluid with custom max-width */
.container-wide {
    max-width: 1600px !important;
    padding-left: 15px;
    padding-right: 15px;
}

/* Adjust filter sidebar on large screens */
@media (min-width: 1400px) {
    .filters-card {
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}

/* Improve vehicle grid spacing */
.vehicles-grid .row {
    margin-left: -12px;
    margin-right: -12px;
}

.vehicles-grid .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

/* Better card proportions */
.vehicle-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .filters-card {
        margin-bottom: 2rem;
    }
}

/* Full-width option for vehicles page */
.vehicles-page-fullwidth .container {
    max-width: 1600px !important;
    padding-left: 30px;
    padding-right: 30px;
}

/* OPTIONAL: Wider container on vehicles page (max 1600px) */
body.vehicles-page .container {
    max-width: 1600px !important;
    padding-left: 30px;
    padding-right: 30px;
}

/* Ana sayfa öne çıkan araçlar için max-width */
@media (min-width: 1400px) {
    .featured-section .container {
        max-width: 1400px !important;
    }
    
    .featured-vehicles .swiper-slide {
        max-width: 350px;
    }
}

/* Öne çıkan araç kartlarının genişliği */
.featured-vehicles .vehicle-card {
    max-width: 100%;
    margin: 0 auto;
}

/* Featured vehicles responsive fixes */

/* Large Tablet adjustments */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .featured-vehicles .swiper-slide {
        max-width: 320px;
        flex: 0 0 auto;
    }
    
    .featured-vehicles .vehicle-card img {
        height: 190px !important;
    }
}

/* Standard Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .featured-vehicles .swiper-slide {
        max-width: 280px;
        flex: 0 0 auto;
    }
    
    .featured-vehicles .vehicle-card {
        margin-bottom: 1rem;
    }
    
    .featured-vehicles .vehicle-card img {
        height: 180px !important;
    }
    
    .featured-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Small Tablet and Mobile */
@media (max-width: 767.98px) {
    .featured-vehicles .swiper-slide {
        max-width: 100%;
        width: 100%;
    }
    
    .featured-vehicles .vehicle-card {
        margin-bottom: 1rem;
    }
    
    .featured-vehicles .vehicle-card img {
        height: 170px !important;
    }
}

/* Mobile specific */
@media (max-width: 576px) {
    .featured-vehicles .vehicle-card img {
        height: 160px !important;
    }
    
    .vehicle-card-image {
        height: 180px !important;
        object-fit: contain !important;
        background-color: #f8f9fa;
    }
    
    .vehicle-detail-image {
        height: 250px !important;
        object-fit: contain !important;
        background-color: #f8f9fa;
        cursor: pointer;
    }
    
    .featured-section {
        padding: 3rem 0;
    }
}

/* Vehicle detail image - Desktop */
.vehicle-detail-image {
    height: 400px;
    object-fit: contain;
    background-color: #f8f9fa;
    cursor: pointer;
}
