/* Mobil layout düzeltmeleri — build sync ile ezilmemesi için ayrı dosya */

@media (min-width: 768px) {
    .ib-header-mobile-bar {
        display: none !important;
    }

    .header-tursab-logo {
        height: 40px;
        max-width: 110px;
    }

    .bg-custom-header-2 {
        padding-bottom: 0.45rem;
    }

    .bg-custom-header-2 > .container > .row {
        padding-bottom: 0.15rem;
    }

    .bg-custom-header-2 .col-md-3 > a {
        display: inline-block;
        padding-bottom: 0.2rem;
    }
}

@media (min-width: 768px) {
    .page-home .home-hero-stack {
        display: flex;
        flex-direction: column;
    }

    .page-home .home-hero-stack #dvMainBanner {
        order: 1;
    }

    .page-home .home-hero-stack #dvStories {
        order: 2;
    }
}

@media (max-width: 767.98px) {
    .page-home .home-hero-stack {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .page-home .home-hero-stack #dvStories.story-slider-section {
        margin-top: 10px !important;
        padding-top: 0px !important;
        padding-bottom: 0px;
        margin-bottom: 0;
    }

    .page-home .home-hero-stack #dvMainBanner.home-banner-section {
        margin-top: 0;
        padding-top: 0;
    }

    #dvMainBanner.home-banner-section {
        display: flex;
        flex-direction: column;
        gap: var(--home-banner-card-gap, 12px);
    }

    #dvMainBanner .home-banner-extra-categories {
        margin-top: 0;
    }

    #dvMainBanner .home-banner-grid--mobile {
        gap: var(--home-banner-card-gap, 12px) !important;
        margin-top: 0;
    }

    .nav-scroller--mobile-ticker {
        height: auto;
        min-height: 2.75rem;
        overflow: hidden;
        padding: 4px 0 6px;
    }

    .nav-scroller--mobile-ticker .nav-scroller__viewport {
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .nav-scroller--mobile-ticker .nav-scroller__viewport::-webkit-scrollbar {
        display: none;
    }

    .nav-scroller--mobile-ticker .nav-scroller__track {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        width: max-content;
        min-width: 100%;
        padding: 2px 10px 4px;
        overflow: hidden;
    }

    .nav-scroller--mobile-ticker .nav-scroller__item {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        box-sizing: border-box;
        text-align: center;
        white-space: nowrap;
        padding: 0.45rem 0.7rem !important;
        line-height: 1.25;
    }

    @media (prefers-reduced-motion: reduce) {
        .nav-scroller--mobile-ticker .nav-scroller__viewport {
            scroll-behavior: auto;
        }
    }

    .home-banner-section {
        padding: 12px 12px 10px !important;
    }

    .story-slider-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
        margin-top: 10px !important;
        padding-top: 0 !important;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #dvStories.story-slider-section.container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0;
        margin-right: 0;
        margin-top: 10px !important;
        padding-top: 0 !important;
        padding-bottom: 0;
        margin-bottom: 0;
        max-width: 100%;
    }

    .bg-custom-header-2 > .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .bg-custom-header-2 .header-trailing {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        max-width: 100%;
        padding: 8px 0 !important;
    }

    .bg-custom-header-2 .header-search-wrap {
        grid-column: 1 / -1 !important;
        width: 100%;
        max-width: 100%;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .bg-custom-header-2 .header-tursab-center,
    .bg-custom-header-2 .header-cart-wrap {
        display: none !important;
    }

    .bg-custom-header-2 .header-search-wrap .form-control-header {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        height: calc(1.65rem + .5rem + 2px);
        font-size: 0.9rem;
    }

    .bg-custom-header-2 .header-search-btn {
        flex-shrink: 0;
        padding: 0.35rem 0.85rem;
    }

    .bg-custom-header > .container {
        padding-left: 6px;
        padding-right: 10px;
        position: relative;
    }

    .headerFixed {
        height: 10.25rem !important;
    }

    .ib-header-mobile-bar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: 100%;
        min-height: 52px;
        padding: 6px 0;
        position: relative;
        z-index: 1070;
    }

    .ib-header-mobile-bar > [class*="col"] {
        display: block;
    }

    .ib-header-mobile-bar__menu-btn {
        margin-left: -2px;
    }

    .ib-header-mobile-bar__logo img {
        max-width: min(100%, var(--ib-logo-mobile-width, 220px));
        max-height: var(--ib-logo-mobile-height, 52px);
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .ib-header-mobile-cart .fa-shopping-cart,
    .ib-header-mobile-cart__icon {
        display: block;
        width: 22px;
        height: 22px;
        background-color: #fff;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.26-.47.04-1.06-.43-1.06H5.21l-.94-2H1zm16 16c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.26-.47.04-1.06-.43-1.06H5.21l-.94-2H1zm16 16c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
        font-size: 0;
        color: transparent;
    }

    /* Hamburger açıkken etiket şeridi menünün altında kalsın */
    #divMenuMasaustu {
        z-index: 1020;
    }

    /* Eski overlay tasarım: içeriği itmez, logo satırının tam altında açılır */
    #navbarMobilMenu.navbar-absolute-top,
    #navbarMobilMenu.navbar-absolute-top.collapsing,
    #navbarMobilMenu.navbar-absolute-top.show {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 1065;
        margin-top: 0;
        background-color: var(--ib-color-primary, #195065);
    }

    #navbarMobilMenu.navbar-absolute-top.show,
    #navbarMobilMenu.navbar-absolute-top.collapsing {
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    }

    body.ib-mobile-menu-open #divMenuMasaustu .nav-scroller--mobile-ticker {
        visibility: hidden;
        pointer-events: none;
    }
}

@media (max-width: 991.98px) {
    .tur-detay-tour-number,
    .tur-hcard__tur-no.tur-hcard__tur-no--under-media {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .tur-detay-tour-number__label,
    .tur-hcard__tur-no--under-media .tur-hcard__tur-no-label {
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        color: #000;
        white-space: nowrap;
        text-decoration: none !important;
    }

    .tur-detay-tour-number__value,
    .tur-hcard__tur-no--under-media .tur-hcard__tur-no-value {
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        color: crimson;
        white-space: nowrap;
        text-decoration: none !important;
    }

    .tur-hcard__tur-no--in-panel {
        display: none !important;
    }
}

/* Mobil "Hemen Ara" sticky bar — ayrı dosya publish kaçarsa diye burada da tutuluyor */
@media (max-width: 991.98px) {
    body.page-home,
    body.page-tur-liste,
    body.page-arama {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .site-mobile-call-stack {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        pointer-events: none;
    }

    .site-mobile-call-bar {
        position: relative;
        pointer-events: auto;
        display: flex;
        align-items: stretch;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid #dbe6ef;
        box-shadow: 0 -4px 18px rgba(15, 45, 65, 0.12);
    }

    .site-mobile-call-bar__btn {
        flex: 1 1 100%;
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        padding: 12px 10px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        border: 0;
        box-shadow: 0 4px 12px rgba(15, 45, 65, 0.12);
    }

    .site-mobile-call-bar__btn i {
        font-size: 18px;
        line-height: 1;
    }

    .site-mobile-call-bar__btn--call {
        background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
        color: #fff !important;
    }
}

/* Yukarı çık FAB — ayrı dosya publish kaçarsa diye burada da tutuluyor */
.ib-scroll-top-fab {
    position: fixed;
    left: auto;
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1035;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0;
    min-width: 0;
    height: 52px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(180deg, #4b8fb8 0%, #368daf 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(54, 141, 175, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.92);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease, width 0.22s ease, box-shadow 0.22s ease;
}

.ib-scroll-top-fab.is-visible {
    width: 52px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ib-scroll-top-fab:hover,
.ib-scroll-top-fab:focus-visible {
    color: #fff;
    box-shadow: 0 8px 22px rgba(54, 141, 175, 0.5);
    outline: none;
}

.ib-scroll-top-fab i {
    font-size: 22px;
    line-height: 1;
}

body.has-mobile-bottom-bar .ib-scroll-top-fab {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
    .ib-scroll-top-fab {
        right: 20px;
        bottom: 24px;
        width: 48px;
        height: 48px;
    }

    .ib-scroll-top-fab.is-visible {
        width: 48px;
    }

    .ib-scroll-top-fab i {
        font-size: 20px;
    }

    body.has-mobile-bottom-bar .ib-scroll-top-fab {
        bottom: 24px;
    }
}
