/* Sahara Dune Adventures — shared fixes for the Arabic, Russian and Chinese pages */

/* Longer words in Russian: let headings and buttons wrap instead of overflowing */
html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] h3, html[lang="ru"] .btn-p, html[lang="ru"] .btn-w, html[lang="ru"] .btn-det { overflow-wrap: anywhere; hyphens: auto; }

/* Chinese and Arabic read better without wide letter-spacing */
html[lang="zh-Hans"] *, html[lang="ar"] * { letter-spacing: normal !important; }
html[lang="zh-Hans"] body, html[lang="ar"] body { line-height: 1.75; }

/* Bottom keyword section: one column on phones (long translated words cannot fit three columns) */
@media (max-width: 760px) {
  div[style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 26px !important; }
}

/* ---------- Right-to-left (Arabic) ---------- */
html[dir="rtl"] body { text-align: right; }
/* The skip link normally sits far off-screen; in right-to-left pages that creates sideways scrolling.
   Hide it in place instead (still shown when a keyboard user tabs to it). */
html[dir="rtl"] .skip-link:not(:focus) {
  left: 0 !important; right: auto !important; top: 0;
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
html[dir="rtl"] .skip-link:focus { left: auto; right: 0; }
/* Booking form anti-spam field: same off-screen trick, hide it in place for right-to-left */
html[dir="rtl"] .bk-hp { left: 0 !important; right: auto !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
/* Phone numbers keep their left-to-right order inside Arabic text */
html[dir="rtl"] a[href^="tel:"] { direction: ltr; unicode-bidi: embed; }
