/* =========================================================
   SOLID i18n / RTL — keep layout stable, flip text safely
========================================================= */

html[dir="rtl"],
html[dir="rtl"] body,
body.is-rtl {
    overflow-x: hidden;
}

html[dir="rtl"] body,
body.is-rtl {
    direction: rtl;
    text-align: right;
}

/* Keep complex chrome layouts LTR so logo/nav grid stays intact */
html[dir="rtl"] .ashunt-header-v2,
html[dir="rtl"] .ashunt-header-v2 .ashunt-topbar,
html[dir="rtl"] .ashunt-header-v2 .ashunt-mainbar,
html[dir="rtl"] .ashunt-header-v2 .ashunt-header-menu,
html[dir="rtl"] .ashunt-footer-partners-grid,
html[dir="rtl"] .ashunt-home-slider,
html[dir="rtl"] .carousel,
html[dir="rtl"] [data-ltr] {
    direction: ltr;
    text-align: left;
}

/* Textual areas follow page direction */
html[dir="rtl"] .ashunt-footer-column,
html[dir="rtl"] .ashunt-footer-description,
html[dir="rtl"] .ashunt-footer-bottom,
html[dir="rtl"] .ashunt-footer-legal,
html[dir="rtl"] .ashunt-footer-credit,
html[dir="rtl"] .ashunt-section-heading,
html[dir="rtl"] .ashunt-legal-page,
html[dir="rtl"] .ashunt-login-heading,
html[dir="rtl"] .ashunt-login-form,
html[dir="rtl"] .ashunt-dl-page,
html[dir="rtl"] .ashunt-events-page,
html[dir="rtl"] .ashunt-guide-page,
html[dir="rtl"] .ashunt-store-page,
html[dir="rtl"] .ashunt-dash-page,
html[dir="rtl"] .ashunt-rk-page {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] code,
html[dir="rtl"] pre,
html[dir="rtl"] [data-ltr] {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .dropdown-menu,
html[dir="rtl"] .menu-sub:not(.ashunt-header-v2 .menu-sub),
html[dir="rtl"] .modal-content,
html[dir="rtl"] .table {
    text-align: right;
}

html[dir="rtl"] .fa-arrow-right,
html[dir="rtl"] .fa-chevron-right,
html[dir="rtl"] .fa-angle-right {
    transform: scaleX(-1);
}

/* Language menu */
.ashunt-lang-menu .menu-link.is-active-lang {
    color: #efc657 !important;
}

.ashunt-lang-menu .menu-link.is-active-lang .menu-title {
    color: #efc657 !important;
}

/* Arabic typography without breaking Latin UI chrome */
html[dir="rtl"] body,
html[lang="ar"] body {
    font-family: "El Messiri", "Manrope", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .ashunt-header-v2,
html[dir="rtl"] .ashunt-header-v2 .menu-title,
html[dir="rtl"] .ashunt-header-v2 .ashunt-auth-btn {
    font-family: "Manrope", "Segoe UI", Tahoma, Arial, sans-serif;
}
