/* =========================================
   Lojistikv1 – Custom Mobile & Layout Fixes
   ========================================= */

/* Orphaned fallback button — meanmenu handles mobile menu reveal */
.mobile-menu-fallback {
    display: none !important;
}

/* Logo: overflow engeli (genel) */
.navbar-brand.logo img,
.side-panel-logo img {
    max-width: 160px;
    height: auto;
    max-height: 55px;
    object-fit: contain;
}

/* Google Translate: sayfa aşağı kaymasın */
body { top: 0 !important; }
.goog-te-banner-frame,
.goog-te-balloon-frame { display: none !important; }
.skiptranslate         { display: none !important; }

/* Desktop dil dropdown z-index */
.header-top-area .language .language-dropdown      { z-index: 9999; }
.header-top-area .language .language-dropdown li   { z-index: 1 !important; }
.header-top-area .language .language-dropdown li a { color: #fff; }

/* =========================================
   Mobil dil butonu
   ========================================= */
.mob-dil-wrap {
    display: none; /* mobilde CSS ile açılır */
    position: absolute;
    right: 50px;   /* meanmenu-reveal (~40px) + boşluk */
    top: 0;
    height: 38px;  /* logo img yüksekliğiyle aynı */
    align-items: center;
    z-index: 100;
}
.mob-dil-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid rgba(0,0,0,.22);
    border-radius: 4px;
    background: transparent;
    font-size: 12px;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}
.mob-dil-btn i { font-size: 13px; }
.mob-dil-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 155px;
    background: #1a1a1a;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
    padding: 5px 0;
    z-index: 9999;
}
.mob-dil-menu.open { display: block; }
.mob-dil-menu a {
    display: block;
    padding: 8px 14px;
    color: #eee;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.mob-dil-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* =========================================
   Mobil header düzeltmeleri  (≤991px)
   ========================================= */
@media (max-width: 991px) {

    /* col-md-12: positioning context — flexbox YOK, float korunuyor */
    .header-style-two .header-navigation-area .col-md-12 {
        position: relative;
        min-height: 38px;
    }

    /* Logo: float left, responsive.css'teki margin:0 auto eziliyor */
    .header-style-two .header-navigation-area .navbar-brand.logo {
        float: left !important;
        margin: 0 !important;
        padding-top: 0 !important;
    }
    .header-style-two .header-navigation-area .navbar-brand.logo img {
        height: 38px;
        max-height: 38px;
    }

    /* mean-bar: positioning context OLMASIN →
       reveal butonu col-md-12'ye göre konumlanır */
    .header-style-two .mean-container .mean-bar {
        position: static !important;
        float: none !important;
        width: auto !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* meanmenu-reveal: col-md-12 sağ üstü, logo yüksekliğiyle hizalı */
    .header-style-two .mean-container a.meanmenu-reveal {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        margin-top: 0 !important;
    }

    /* mean-nav accordion: logo altında tam genişlik */
    .header-style-two .mean-container .mean-nav {
        width: 100%;
        margin-top: 0;
        clear: left;
    }

    /* Desktop menü + arama: mobilde gizli */
    .header-style-two .main-menu.f-right         { display: none !important; }
    .header-style-two .header-searchbox-style-two { display: none !important; }

    /* Mobil dil butonu: aç */
    .mob-dil-wrap { display: flex; }

    /* mean-expand (+/-) ikon dikey ortalama */
    .mean-container .mean-nav ul li a.mean-expand {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
    }

    /* Side panel dil seçimi */
    .side-translate-area {
        border-top: 1px solid rgba(255,255,255,.15);
        padding-top: 20px;
        margin-top: 20px;
    }
    .side-translate-area h4 {
        font-size: 15px;
        color: #fff;
        margin-bottom: 12px;
    }
    .side-lang-btns { display: flex; flex-wrap: wrap; gap: 8px; }
    .side-lang-btn {
        display: inline-block;
        padding: 5px 12px;
        border-radius: 20px;
        background: rgba(255,255,255,.12);
        color: #fff;
        font-size: 13px;
        text-decoration: none;
        transition: background .2s;
        white-space: nowrap;
    }
    .side-lang-btn:hover { background: rgba(255,255,255,.25); color: #fff; }
}
