/* 
   HOME-MOBILE.CSS 
   Target: Tablet and Mobile (<= 991px)
*/

@media (max-width: 991px) {

    /* Section Priority - Mantıklı Mobil Sıralama */
    .home-sections-wrapper {
        display: flex;
        flex-direction: column;
    }

    .section-slider {
        order: 1;
    }

    .section-filter {
        order: 2;
        margin-top: 20px !important;
    }

    .section-vitrin {
        order: 3;
        margin-top: 10px !important;
    }

    .section-coming-soon {
        order: 4;
    }

    .section-banners {
        order: 5;
    }

    .section-stats {
        order: 6;
    }

    .section-seo-title {
        order: 7;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .section-sold {
        order: 8;
    }

    .section-blog {
        order: 9;
    }

    .section-cta {
        order: 10;
    }

    .section-auth-docs {
        order: 11;
        margin-bottom: 30px !important;
    }

    .section-features {
        order: 12;
    }

    .section-overall-stats {
        order: 13;
    }

    .section-newsletter {
        order: 14;
    }

    /* Layout Adjustments */
    .listing-card {
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
    }

    .card-img-wrapper {
        height: auto !important;
        aspect-ratio: 4 / 3;
        min-height: auto !important;
    }

    .card-img-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-content {
        padding: 10px !important;
    }

    .brand-title {
        font-size: 14px !important;
        height: 20px !important;
        margin-bottom: 2px !important;
    }

    .trim-title {
        font-size: 11px !important;
        height: 16px !important;
        margin-bottom: 8px !important;
    }

    .specs-grid {
        padding: 6px !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 4px !important;
        height: auto !important;
        max-height: none !important;
        margin-bottom: 10px !important;
    }

    .spec-item {
        font-size: 10px !important;
        white-space: nowrap;
    }

    .spec-item i {
        width: 12px !important;
        margin-right: 2px !important;
        font-size: 10px;
    }

    .card-footer-custom {
        padding-top: 8px !important;
        height: auto !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .price-val {
        font-size: 16px !important;
    }

    .badge-dynamic {
        font-size: 9px !important;
        padding: 3px 6px !important;
    }

    .fav-btn,
    .compare-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    /* Hide some elements to save space in 2-column layout */
    .listing-card .lot-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        top: 8px !important;
        right: 8px !important;
    }

    /* Stats Banner Adjustment */
    .stats-counter-banner .stat-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .stats-counter-banner h3 {
        font-size: 1.1rem !important;
    }

    /* Search Page Card Adjustments */
    .vehicle-col {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .vehicle-card {
        border-radius: 12px !important;
        overflow: hidden;
    }

    .vehicle-card .card-img-top {
        height: 120px !important;
        object-fit: cover;
    }

    .vehicle-card .card-body {
        padding: 8px !important;
    }

    .vehicle-card .card-title {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
        height: 34px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.2;
    }

    /* Slider Mobile Improvements */
    .simple-split-slider {
        height: 480px !important;
        margin: 15px auto !important;
    }

    .simple-slide {
        flex-direction: column !important;
        display: flex !important;
        /* Forces layout on mobile */
    }

    .slide-left {
        width: 100% !important;
        height: 50% !important;
        flex: 0 0 50% !important;
    }

    .slide-right {
        width: 100% !important;
        height: 50% !important;
        flex: 0 0 50% !important;
        padding: 15px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .slide-title {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .slide-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 12px !important;
    }

    .slide-btn {
        padding: 5px 20px !important;
        font-size: 0.8rem !important;
        margin-left: auto;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px !important;
    }

    .slide-price {
        font-size: 1.1rem !important;
        margin-bottom: 0 !important;
        height: 38px;
        display: flex;
        align-items: center;
        background: #f8f9fa;
        padding: 0 15px;
        border-radius: 8px;
        font-weight: 800;
        color: var(--premium-blue);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Wrap price and button for alignment */
    .slide-right>div>div:last-child {
        display: flex !important;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }

    .slide-badge {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
    }

    .slider-nav {
        display: none !important;
    }

    .slider-dot {
        width: 8px !important;
        height: 8px !important;
    }

    /* Compact Listing Card - Global Mobile */
    .listing-card,
    .vehicle-card {
        border-radius: 12px !important;
        margin-bottom: 10px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .card-img-wrapper,
    .vehicle-card .card-img-top {
        height: 140px !important;
        min-height: 140px !important;
        aspect-ratio: 16 / 11;
    }

    .brand-title,
    .vehicle-card .card-title {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        height: 34px !important;
        margin-bottom: 4px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .trim-title {
        display: none !important;
        /* Hide trim on mobile 2st column to save space */
    }

    .price-val,
    .vehicle-card .text-primary.fw-bold {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
    }

    .specs-grid,
    .vehicle-card .small.text-muted {
        grid-template-columns: 1fr 1fr !important;
        gap: 2px !important;
        margin-bottom: 8px !important;
    }

    .spec-item,
    .vehicle-card .small.text-muted>div {
        font-size: 0.75rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-footer-custom {
        padding: 5px 0 0 0 !important;
    }

    .badge-dynamic {
        font-size: 0.65rem !important;
        padding: 2px 5px !important;
    }

    .btn-outline-primary {
        padding: 5px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }


}

/* Fluidity for very small screens */
@media (max-width: 576px) {
    .price-val {
        font-size: 15px !important;
    }
}