/* ==========================================================================
   eTravel.wiki — right-to-left overrides (Arabic)
   Loaded only when the active language declares dir="rtl". Logical properties
   in main.css already handle most of the mirroring; this file corrects the
   few physical values and adjusts Arabic typography.
   ========================================================================== */

html[dir="rtl"] {
  --font: "Noto Naskh Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}

html[dir="rtl"] body {
  line-height: 1.85;          /* Arabic needs more leading */
  letter-spacing: 0;
}

html[dir="rtl"] .breadcrumbs li + li::before { content: "\\"; }

html[dir="rtl"] .hero-search input,
html[dir="rtl"] .search-page-form input { text-align: right; }

html[dir="rtl"] .lang-switch__menu { text-align: right; }

html[dir="rtl"] .coverage__bar::after {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

html[dir="rtl"] .card--section .card-body { text-align: right; }

html[dir="rtl"] .prose { text-align: right; }

/* The two-column article grid follows the writing direction automatically:
   column 1 sits on the right in RTL, so the rail moves to the opposite side
   without a physical override. Declared here so the intent is explicit. */
html[dir="rtl"] .layout-with-rail { direction: rtl; }

html[dir="rtl"] .facts dt { letter-spacing: 0; }

html[dir="rtl"] .error-code { direction: ltr; }

/* Latin-script fragments inside Arabic text keep their own direction. */
html[dir="rtl"] .card-meta span,
html[dir="rtl"] .record__line a[href^="tel"],
html[dir="rtl"] .lang-switch__code,
html[dir="rtl"] time { direction: ltr; unicode-bidi: embed; display: inline-block; }
