/* Tab Menu Styles - Görseldeki gibi tasarım */

/* Absolute nav sorunu çözümü */
.booking .content .absolute-nav {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
}

/* Card header düzenlemesi */
.card-header {
    position: relative !important;
    top: 0 !important;
    z-index: 10;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Tab menü container */
.card-header-tabs {
    display: flex;
    gap: 8px;
    padding: 16px;
    margin: 0;
    border: none;
    background: #f8f9fa;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 12px 12px 0 0;
}

/* Tab menü butonları */
.nav-item {
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 120px;
    display: block;
    visibility: visible;
}

.nav-item .cus-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-height: 50px;
    width: 100%;
    visibility: visible;
    opacity: 1;
}

/* Aktif olmayan tab butonları */
.nav-item .cus-btn:not(.active) {
    background: white;
    color: #666;
    border-color: #e0e0e0;
}

.nav-item .cus-btn:not(.active):hover {
    background: #4D73FC;
    color: #FFF;
    border-color: #d0d0d0;
}

/* Aktif tab butonu */
.nav-item .cus-btn.active {
    background: #4D73FC;
    color: white;
    border-color: #4D73FC;
    box-shadow: 0 2px 8px rgba(77, 115, 252, 0.2);
}

.nav-item .cus-btn.active:hover {
    background: #3d5fd8;
    border-color: #3d5fd8;
}

/* İkonlar */
.nav-item .cus-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Aktif olmayan tab ikonları */
.nav-item .cus-btn:not(.active) svg path,
.nav-item .cus-btn:not(.active) svg g path {
    fill: #666;
}

/* Aktif tab ikonu */
.nav-item .cus-btn.active svg path,
.nav-item .cus-btn.active svg g path {
    fill: white;
}

/* Hover durumunda ikonlar */
.nav-item .cus-btn:not(.active):hover svg path,
.nav-item .cus-btn:not(.active):hover svg g path {
    fill: #333;
}

/* Responsive tasarım */



@media (min-width: 1439px) {
    .booking .content .absolute-nav{
        margin-top:-5%;
    }
    .nav-item{
        max-width: 130px;
    }
}

/* 1950px ekran genişliği için arama inputlarını ortalama */
@media (min-width: 1950px) {
    .booking .content .absolute-nav{
        margin-top:-6%;
    }
    /* Hotel search form centering */
    #hotel .hotel-booking .flight-search-container {
        max-width: 1200px;
        margin: 0px auto;
        justify-content: center;
    }
    
    /* Tour search form centering */
    #tour .tour-search-container {
        max-width: 1000px;
        margin: 0 auto;
        justify-content: center;
    }
    
    #tour .tour-booking .booking-info {
        max-width: 1000px;
        margin: 0 auto;
        justify-content: center;
    }
    
    /* Bus search form centering */
    #bus .flight-search-container {
        max-width: 1000px;
        margin: 0 auto;
        justify-content: center;
    }
    
    /* Ferry search form centering */
    #ferry .ferry-search-container {
        max-width: 1000px;
        margin: 0 auto;
        justify-content: center;
    }
    
    #ferry .ferry-booking .booking-info {
        max-width: 1000px;
        margin: 0 auto;
        justify-content: center;
    }
    
    /* Transfer search form centering */
    #transfer .flight-search-container {
        max-width: 1000px;
        margin: 0 auto;
        justify-content: center;
    }
}

@media (max-width: 1200px) {
    .card-header-tabs {
        gap: 6px;
    }
    
    .nav-item {
        min-width: 100px;
    }
    
    .nav-item .cus-btn {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .nav-item .cus-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 900px) {
    .card-header-tabs {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .nav-item {
        min-width: 90px;
        flex: 1;
    }
    
    .nav-item .cus-btn {
        padding: 10px 12px;
        font-size: 12px;
        min-height: 42px;
    }
    
    .nav-item .cus-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .card-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px;
    }
    
    .card-header-tabs {
        flex-direction: row;
        gap: 8px;
        width: max-content;
        min-width: 100%;
        padding-bottom: 4px;
    }
    
    .nav-item {
        flex-shrink: 0;
        min-width: 80px;
        max-width: 100px;
    }
    
    .nav-item .cus-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        min-height: 40px;
        border: 1px solid #e0e0e0;
        background: white;
        color: #333;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .nav-item .cus-btn:not(.active) {
        background: white;
        color: #666;
        border-color: #e0e0e0;
    }
    
    .nav-item .cus-btn:not(.active):hover {
        background: #f8f9fa;
        border-color: #d0d0d0;
        color: #333;
    }
    
    .nav-item .cus-btn.active {
        background: #4D73FC;
        color: white;
        border-color: #4D73FC;
        box-shadow: 0 2px 8px rgba(77, 115, 252, 0.3);
    }
    
    .nav-item .cus-btn svg {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }
}

@media (max-width: 480px) {
    .card-header {
        padding: 8px 12px;
    }
    
    .card-header-tabs {
        gap: 6px;
    }
    
    .nav-item {
        min-width: 70px;
        max-width: 85px;
    }
    
    .nav-item .cus-btn {
        padding: 6px 8px;
        font-size: 11px;
        min-height: 36px;
    }
    
    .nav-item .cus-btn svg {
        width: 14px;
        height: 14px;
        margin-right: 3px;
    }
}

/* Otobüs tabı için ek stiller - şu an için gerekli değil */

/* Tab geçiş animasyonları */
.nav-item .cus-btn {
    transform: translateY(0);
}

.nav-item .cus-btn:hover {
    transform: translateY(-1px);
}

.nav-item .cus-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 115, 252, 0.3);
}

/* Focus durumu */
.nav-item .cus-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 115, 252, 0.1);
}

.nav-item .cus-btn.active:focus {
    box-shadow: 0 4px 12px rgba(77, 115, 252, 0.3), 0 0 0 3px rgba(77, 115, 252, 0.1);
}
