/* v2.8.0: seven-category menu and complete multilingual direction repair. */
.tr-lang-en body,
.tr-lang-en .site,
.tr-lang-en .site-content,
.tr-lang-en .tr-explore,
.tr-lang-en .tr-home,
.tr-lang-en .tr-account-shell,
.tr-lang-en .tr-platform-admin,
.tr-lang-en [dir="rtl"]{
    direction:ltr!important;
    text-align:left;
}
.tr-lang-en .main-header-menu,
.tr-lang-en .main-header-menu .sub-menu{
    direction:ltr!important;
}
.tr-lang-en .tr-place-card-actions,
.tr-lang-en .tr-explore-actions,
.tr-lang-en .tr-home-actions,
.tr-lang-en .tr-account-actions{
    flex-direction:row;
}
.tr-lang-ku body,
.tr-lang-ku .site,
.tr-lang-ku [dir="ltr"]{
    direction:rtl!important;
}

/* Keep the desktop navigation short and in one calm row. */
@media (min-width:922px){
    .tr-interface-v270 .main-header-menu{
        gap:clamp(10px,1.15vw,22px)!important;
        flex-wrap:nowrap!important;
        align-items:center!important;
    }
    .tr-interface-v270 .main-header-menu>.menu-item>a{
        white-space:nowrap!important;
        font-size:14px!important;
        padding-inline:4px!important;
    }
    .tr-interface-v270 .main-header-menu>.menu-item>.sub-menu{
        min-width:230px!important;
        max-height:min(70vh,560px);
        overflow:auto;
        border-radius:18px!important;
        padding:8px!important;
    }
    .tr-interface-v270 .main-header-menu>.menu-item>.sub-menu a{
        border-radius:12px;
        padding:11px 13px!important;
    }
}

/* Mobile: one clean drawer, seven visible discovery choices. */
@media (max-width:921px){
    .tr-interface-v270 .ast-mobile-header-content,
    .tr-interface-v270 .ast-builder-menu-mobile .main-navigation{
        max-height:calc(100dvh - 72px)!important;
        overflow-y:auto!important;
        overscroll-behavior:contain;
    }
    .tr-interface-v270 .main-header-menu>.menu-item{
        border-bottom:1px solid #edf2f7;
    }
    .tr-interface-v270 .main-header-menu>.menu-item>a{
        min-height:48px;
        display:flex!important;
        align-items:center;
        font-weight:700;
    }
    .tr-interface-v270 .main-header-menu .sub-menu{
        padding:4px 10px 10px!important;
        background:#f8fbff!important;
        border-radius:14px!important;
        margin:0 8px 8px!important;
    }
    .tr-interface-v270 .main-header-menu .sub-menu a{
        min-height:42px;
        display:flex!important;
        align-items:center;
        border-radius:10px;
    }
}

/* Search categories are deliberately limited to the seven public choices. */
.tr-seven-category-ui .tr-explore-field select[name="type"]{
    font-weight:700;
}
.tr-seven-category-ui .tr-explore-field select[name="type"] option{
    font-weight:600;
}
