﻿@media (max-width: 992px) {
    .booking_dates { 
        gap: 10px;
        margin-bottom: 20px;
    }

    .date_separator {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    .vehicle_card {
        margin: 15px 0;
    }

    .vehicle_name {
        font-size: 16px;
    }

    .spec_row {
        gap: 15px;
    }
}
.mobile-visible {
    display: none !important;
}

/* Show these menu items on mobile and tablet devices */
@media (max-width: 771px) {
    .mobile-visible {
        display: block !important;
    }
}
@media (max-width: 768px) {
    .strip_booking {
        padding: 20px 15px;
    }

    .booking_dates {
        gap: 8px;
    }

    .date {
        min-height: 60px;
        padding: 8px 6px;
    }

        .date .day {
            font-size: 18px;
        }

    .vehicle_header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .vehicle_main_info {
        text-align: center;
    }

    .spec_row { 
        gap: 10px;
    }
    
    /* #search padding kuralları kaldırıldı - Osoa.css'de tanımlı */
    
    .container.margin_60 .row.justify-content-between {
        display: flex;
        flex-direction: column;
    }

        /* Resim kolonunu her zaman üste koy */
        .container.margin_60 .row.justify-content-between .col-lg-4 {
            order: 1;
            margin-bottom: 20px;
        }

        /* Metin kolonunu her zaman alta koy */
        .container.margin_60 .row.justify-content-between .col-lg-7 {
            order: 2;
        }

        /* Mobilde tam genişlik kullan */
        .container.margin_60 .row.justify-content-between .col-lg-4,
        .container.margin_60 .row.justify-content-between .col-lg-7 {
            flex: 0 0 100%;
            max-width: 100%;
        }
    .service-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .service-info {
        text-align: center;
    }

    .service-quantity {
        min-width: auto;
    }

    .qty-input {
        width: 60px;
    }

    .security-package {
        flex-direction: column;
    }

    .status_badge {
        padding: 6px 12px;
        font-size: 11px;
    }

    .status-icon::before {
        font-size: 9px;
    }
}

/* Küçük mobil cihazlar için ek ayar - 480px ve altı */
@media (max-width: 480px) {
    /* #search padding kuralları kaldırıldı - Osoa.css'de tanımlı */
    
    #search ul.nav.nav-tabs {
        margin-left: 15px;
        padding-left: 0;
        margin-bottom: 1px;
    }
    
    .extra-services-container {
        gap: 10px;
    }

    .service-card {
        padding: 12px;
        gap: 12px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
    }

        .service-icon i {
            font-size: 16px;
        }

    .service-title {
        font-size: 14px;
    }

    .service-price {
        font-size: 13px;
    }
}

 
.phone-input-container .iti {
    width: 100%;
}

.phone-input-container .iti__flag-container {
    border-right: 1px solid #ddd;
}

.phone-input-container .iti__selected-flag {
    padding: 8px 12px;
}

.phone-input-container .form-control {
    padding-left: 60px;
}

.iti__country-list {
    z-index: 9999;
}

.iti {
    position: relative;
    display: inline !important;
}

@media (max-width: 768px) {
    .phone-input-container .iti__flag-container {
        width: 50px;
    }
}

/* Mevcut kodlarınızın sonuna ekleyin */

/* ========================================
   MOBİL ARAMA FORMU SCROLL FIX
   ======================================== */

@media (max-width: 991px) {
    /* Search container'ın yüksekliğini otomatik yap */
    body.page-home #search_container {
        height: auto !important;
        min-height: auto !important;
        overflow-y: visible !important;
    }

    /* Search div'ini normal akışa döndür */
    body.page-home #search {
        display: block !important;
        vertical-align: top !important;
        padding-bottom: 30px !important;
    }

    /* Tab content'in scroll davranışını kaldır */
    body.page-home #search .tab-content {
        max-height: none !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
    }

    /* Tab pane scroll davranışını kaldır */
    body.page-home .tab-pane {
        max-height: none !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
    }

    /* Form elementlerinin scroll davranışını kaldır */
    body.page-home #search form,
    body.page-home #search .row,
    body.page-home #search .col-md-6,
    body.page-home #search .col-md-12 {
        overflow: visible !important;
    }
}

/* Küçük ekranlar için ek düzenleme */
@media (max-width: 768px) {
    body.page-home #search_container {
        padding-bottom: 20px;
    }
    
    body.page-home #search {
        padding: 0 10px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* Nav tabs için üst boşluk - logo overlay ile çakışmayı önlemek için */
    body.page-home #search .nav-tabs {
        margin-top: 180px !important;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 480px) {
    body.page-home #search_container {
        padding-bottom: 15px;
    }
    
    body.page-home #search {
        padding: 0 8px !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    /* Form elementleri için daha kompakt görünüm */
    body.page-home .tab-pane {
        padding: 20px 15px !important;
    }
    
    body.page-home .tab-pane .form-group {
        margin-bottom: 15px;
    }
}

/* Touch cihazlarda scroll smooth olsun */
body.page-home #search_container {
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   TELEFON INPUT RESPONSIVE FIX
   ======================================== */

@media (max-width: 768px) {
    .phone-input-container .iti {
        width: 100%;
    }
    
    .phone-input-container .iti__flag-container {
        width: 52px;
    }
    
    .phone-input-container .form-control {
        padding-left: 62px;
        font-size: 14px;
    }
    
    .phone-input-container .iti__selected-flag {
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .phone-input-container .iti__flag-container {
        width: 48px;
    }
    
    .phone-input-container .form-control {
        padding-left: 58px;
        font-size: 13px;
    }
}

/* İntl Tel Input dropdown z-index fix */
.iti__country-list {
    z-index: 99999 !important;
    max-height: 200px;
    overflow-y: auto;
}