/* ==========================================================================
   RTL overrides for Arabic. Loaded only when Arabic is active.
   Logical properties already handle most flips; this file fixes the rest.
   ========================================================================== */

body{
  font-family:"Segoe UI",Tahoma,"Noto Kufi Arabic",Roboto,Arial,sans-serif;
  letter-spacing:0;
}

/* step arrows point left in RTL */
.step::after,.fstep::after{content:"←"}

/* search box corners */
.search-box input{border-radius:0 3px 3px 0}
.search-box button{border-radius:3px 0 0 3px}

/* hero bullets */
.hero h1{letter-spacing:0}

/* tour number badge corner */
.tour .num{border-end-end-radius:0;border-end-start-radius:6px}

/* nav dropdown anchored to the correct side */
.nav-item .sub{inset-inline-start:auto;inset-inline-end:0}

/* letter-spacing looks broken in Arabic script — remove it */
.sec-head h2,.promise b,.eyebrow,.side-title{letter-spacing:0}

/* nav active underline stays centered */
.nav-item.on>a::after{left:0;right:0}

/* text alignment */
.single-post,.post-content{text-align:right}
.form-field label{text-align:right}


/* ── LTR islands ──────────────────────────────────────────────────────────
   电话号码、邮箱、WhatsApp 链接是拉丁串。在 RTL 段落里，"+86 137 2340 2757"
   会被双向算法重排成 "2757 2340 137 86+"，读起来是错的号。
   给这些元素单独设 LTR，让整串保持原顺序。
   ──────────────────────────────────────────────────────────────────────── */
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"],
[dir="rtl"] a[href*="wa.me"],
[dir="rtl"] a[href*="whatsapp"],
[dir="rtl"] .yb-ltr,
[dir="rtl"] .tb-tel,
[dir="rtl"] .tb-mail {
  direction: ltr;
  unicode-bidi: embed;
}
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"],
[dir="rtl"] a[href*="wa.me"] {
  display: inline-block;
}
