/* =====================================================
   FINAL UNIFIED HEADER STYLE
   Match trip page header to homepage header
   ===================================================== */

/* الحاوية الرئيسية — height/padding controlled by header.css */

/* الشعار */
#fts-v2-trip-header .fts-v2-thb-logo,
#fts-v2-trip-header .fts-v2-thb-logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    min-width: 70px !important;
    line-height: 1 !important;
}

#fts-v2-trip-header .fts-v2-thb-logo img,
#fts-v2-trip-header .fts-v2-thb-logo-img,
#fts-v2-trip-header .fts-v2-thb-logo-image {
    display: block !important;
    width: auto !important;
    height: 30px !important;
    max-height: 30px !important;
    object-fit: contain !important;
}

/* مجموعة الأدوات */
#fts-v2-trip-header .fts-v2-thb-utils {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
}

/* كل عنصر داخل الأدوات */
#fts-v2-trip-header .fts-v2-thb-item,
#fts-v2-trip-header .fts-v2-thb-utils > * {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* =====================================================
   Language switcher — glass-morphism pill
   ===================================================== */

/* Language pill styling is now controlled by header.css */

#fts-v2-trip-header .fts-v2-lang-flag {
    width: 16px !important;
    height: 12px !important;
    border-radius: 2px !important;
    object-fit: cover !important;
    flex: 0 0 auto !important;
}

/* =====================================================
   Search + burger
   ===================================================== */

#fts-v2-trip-header .fts-v2-thb-search .fts-ss-trigger,
#fts-v2-trip-header .fts-v2-thb-burger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* السهم/الهامبرغر */
#fts-v2-trip-header .fts-v2-thb-burger {
    margin-left: 2px !important;
}

#fts-v2-trip-header .fts-v2-thb-burger span {
    width: 18px !important;
    height: 2px !important;
    margin: 2px 0 !important;
    border-radius: 2px !important;
    background: var(--v2-dark, #1a1a2e) !important;
}

/* عند الفتح يبقى X متناسق */
#fts-v2-trip-header .fts-v2-thb-burger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg) !important;
}
#fts-v2-trip-header .fts-v2-thb-burger.active span:nth-child(2) {
    opacity: 0 !important;
}
#fts-v2-trip-header .fts-v2-thb-burger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg) !important;
}

/* Mobile menu — all styling controlled by header.css */

/* =====================================================
   Dropdowns
   ===================================================== */

#fts-v2-trip-header .fts-v2-lang-dropdown {
    top: calc(100% + 10px) !important;
    right: 0 !important;
    min-width: 230px !important;
    max-width: 260px !important;
    padding: 6px !important;
    border-radius: 14px !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px !important;
}

#fts-v2-trip-header .fts-v2-lang-dropdown a {
    min-height: 36px !important;
    padding: 7px 10px !important;
    gap: 7px !important;
    border-radius: 9px !important;
    font-size: 12.5px !important;
}

/* =====================================================
   Small mobile
   ===================================================== */

@media (max-width: 480px) {
    #fts-v2-trip-header .fts-v2-thb-inner {
        min-height: 54px !important;
        height: 54px !important;
        padding: 0 10px !important;
        gap: 8px !important;
    }

    #fts-v2-trip-header .fts-v2-thb-logo img,
    #fts-v2-trip-header .fts-v2-thb-logo-img,
    #fts-v2-trip-header .fts-v2-thb-logo-image {
        height: 28px !important;
        max-height: 28px !important;
    }

    #fts-v2-trip-header .fts-v2-thb-utils {
        gap: 6px !important;
    }

    #fts-v2-trip-header .fts-v2-lang-current {
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }

    #fts-v2-trip-header .fts-v2-lang-current > svg:last-child {
        display: none !important;
    }

    #fts-v2-trip-header .fts-v2-thb-search .fts-ss-trigger,
    #fts-v2-trip-header .fts-v2-thb-burger {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }

    #fts-v2-trip-header .fts-v2-lang-dropdown {
        min-width: 210px !important;
        max-width: 240px !important;
        right: -8px !important;
    }

    #fts-v2-trip-header .fts-v2-lang-dropdown a {
        min-height: 34px !important;
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}
