/* Locale-aware wrapping and direction. The budget rail retains its numeric LTR scale. */
.brand-name { direction: ltr; unicode-bidi: isolate; }
.language-option { text-align: start; }
.guide-tab span, .chip b { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.budget-rail, .budget-stops { direction: ltr; }
.photo-counter, .qr-target, .tel { direction: ltr; unicode-bidi: isolate; }
html:lang(zh) { --sans: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
html:lang(ja) { --sans: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", system-ui, sans-serif; }
html:lang(ko) { --sans: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; }
html:lang(hi) { --sans: "Nirmala UI", "Kohinoor Devanagari", system-ui, sans-serif; }
html:lang(ar) { --sans: "Segoe UI", Tahoma, Arial, sans-serif; }
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) .eyebrow,
html:lang(hi) h1, html:lang(hi) h2 { letter-spacing: normal; }
html:lang(hi) .cover h1, html:lang(hi) .trip-cover h1,
html:lang(ar) .cover h1, html:lang(ar) .trip-cover h1 { line-height: 1.3; }
[dir="rtl"] .language-popover { right: auto; left: 0; transform-origin: top left; }
[dir="rtl"] .sos-panel { right: auto; left: 30px; transform-origin: top left; }
[dir="rtl"] .sidebar { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .profile-need { padding-left: 0; padding-right: 10px; border-left: 0; border-right: 2px solid #c4cfc3; }
[dir="rtl"] .guide-section li { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .guide-section li:before { left: auto; right: 0; }
[dir="rtl"] .budget-estimate output { direction: ltr; unicode-bidi: isolate; text-align: right; }
[dir="rtl"] .trip-page .foot { padding-left: 24px; padding-right: 242px; }
[dir="rtl"] .trip-cover-shade { transform: scaleX(-1); }
[dir="rtl"] .icon[data-icon="arrow-left"], [dir="rtl"] .icon[data-icon="arrow-right"],
[dir="rtl"] .icon[data-icon="send"] { scale: -1 1; }
@media(max-width:980px) {
  [dir="rtl"] .trip-page .foot { padding-right: 24px; }
}
@media(max-width:760px) {
  [dir="rtl"] .language-popover { left: -2px; }
  [dir="rtl"] .sos-panel { left: 16px; }
  .brand-copy { min-width: 0; }
  .brand-sub, .trip-page .brand-sub { width: auto; max-width: 190px; white-space: normal; }
  .brand { min-width: 0; }
  .start-page .top { height: auto; min-height: 80px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
}
