/* al-Mutawassit.com, right to left (4 December 2026).
   Every page is TheMediterranean.com's own page, set right to left by <html dir="rtl">. Flex rows, grids and
   text already follow the direction; this sheet settles what the direction alone does not: Arabic letters are
   joined (no letter-spacing, no false italic, no drop capital), and the few English rules written with "left"
   and "right" are mirrored. Numbers, telephone numbers and Latin names keep their own direction. */

/* ---------- Nothing hidden off the page may widen it ---------- */
/* In English, things kept out of sight (the form's trap field, the skip link) wait far off to the left, where a page
   cannot scroll. In Arabic the page can scroll to the left, so they wait off to the right instead. */
html[dir=rtl] .letter .hp, html[dir=rtl] .iv .hp, html[dir=rtl] .hp { left: auto !important; right: -9999px !important; }
html[dir=rtl] .skip { left: auto; right: -999px; }
html[dir=rtl] .skip:focus { right: 8px; }
html[dir=rtl] body { overflow-x: clip; }

/* ---------- Arabic letters stay joined ---------- */
/* Spaced capitals are an English device: spacing pulls Arabic letters apart. */
html[dir=rtl] body :lang(ar),
html[dir=rtl] body :lang(ar)::before,
html[dir=rtl] body :lang(ar)::after { letter-spacing: 0 !important; }
/* Arabic has no italic: where the English sets a word in italic (the gold words of the titles, the signature
   lines), the Arabic stays upright and keeps its colour. Real Latin italics still show where the font has them. */
html[dir=rtl], html[dir=rtl] body * { font-synthesis: weight; }
html[dir=rtl] body :is(em, i, cite, .gold, .wel-sig, .sig, blockquote):lang(ar) { font-synthesis: weight; }
/* The English drop capital would cut the first letter from its word. */
html[dir=rtl] .prose p:first-child::first-letter,
html[dir=rtl] .prose > p:first-of-type::first-letter {
  float: none !important; font-size: inherit !important; line-height: inherit !important; padding: 0 !important;
  margin: 0 !important; font-family: inherit !important; font-weight: inherit !important; color: inherit !important;
}

/* ---------- What keeps its own direction ---------- */
html[dir=rtl] a[href^="tel:"], html[dir=rtl] a[href*="wa.me"], html[dir=rtl] a[href^="mailto:"],
html[dir=rtl] .num, html[dir=rtl] time { unicode-bidi: isolate; }
html[dir=rtl] a[href^="tel:"], html[dir=rtl] a[href*="wa.me"] { direction: ltr; }
html[dir=rtl] input[type=email], html[dir=rtl] input[type=tel], html[dir=rtl] input[type=url] { direction: ltr; text-align: right; }

/* ---------- Text set to the left in the English stylesheets ---------- */
html[dir=rtl] .tablebox caption, html[dir=rtl] .tablebox h3 { text-align: right; }
html[dir=rtl] footer.foot, html[dir=rtl] footer.foot .fc { text-align: right; }
/* YuliVG's logo: yulivg-center.js sets its left margin to centre it over the two links; in a right-to-left page a
   left margin only counts when the right one is free. */
html[dir=rtl] footer.foot .yv-mark { margin-right: auto; }
html[dir=rtl] footer.foot .sharebar { justify-content: flex-start; }
html[dir=rtl] .v2 section.letter > .wrap { text-align: right !important; }

/* ---------- Spacing written with left and right, mirrored ---------- */
html[dir=rtl] .facts li::before { margin-right: 0; margin-left: 8px; }
html[dir=rtl] .badge, html[dir=rtl] .stars, html[dir=rtl] .cr-ports a span { margin-left: 0; margin-right: 6px; }
html[dir=rtl] .season h3 a .ext { margin-left: 0; margin-right: .25em; }
html[dir=rtl] .staybar { border-left: 0; border-right: 2px solid var(--gold); }
html[dir=rtl] .gateway { padding-left: 0; }
html[dir=rtl] .hero-body h1 .gold, html[dir=rtl] .hero-body h1 em { margin-right: 0; margin-left: -.08em; padding-inline: .08em .02em; }
html[dir=rtl] .glide-track span::after { margin-left: 0; margin-right: 36px; }
html[dir=rtl] .invite-x { right: auto; left: 10px; }
html[dir=rtl] .sc-close { float: left; margin: 8px 0 -52px 8px; }
html[dir=rtl] .lang-dd { margin-left: 0; margin-right: 14px; }
html[dir=rtl] footer.foot .fc-k { margin-right: 0; margin-left: 1.1em; }
html[dir=rtl] .bars button::after { transform-origin: right; }
/* The Formula 1 season: "سباق السبرينت" stays on one line beside the race */
html[dir=rtl] .f1s { margin-left: 0; margin-right: 6px; white-space: nowrap; display: inline-block; }

/* The gold menu bar */
html[dir=rtl] .lxi.dd > a::after { margin-left: 0; margin-right: 2px; }
html[dir=rtl] .lxbar .lxlead { padding-left: 0; }
html[dir=rtl] .lxbar .lxnav .lxm a { padding: 12px 20px 12px 0; border-left: 0; border-right: 1px solid rgba(201, 163, 91, .38); }
html[dir=rtl] .lxbar .lxnav.lxacc > .lxi.dd > a::after { margin: 0 0 0 5px; }
html[dir=rtl] .lxbar .lxnav .lxflinks a + a::before { left: auto; right: -2px; }
html[dir=rtl] .slogo { padding-left: 0; padding-right: 0; }
html[dir=rtl] body.slogo-on .slogo { padding-left: 4px; padding-right: 16px; }
html[dir=rtl] .util .ulogo { margin-left: 0; margin-right: 12px; }
html[dir=rtl] .util .wrap { padding-right: 0; padding-left: 12px; }

/* ---------- The gold wave in a right-to-left title ----------
   The gold wave (lxbar.js) puts each word in a box and each Latin letter or figure in a box of its own; an Arabic word
   stays whole. Boxes carry no direction, so in a right-to-left line Latin letters, figures and Latin names would run
   backwards ("nobruoB", "0581", "Athens Hotel Seasons Four"). A title in Arabic words alone needs nothing. */
/* A title in Latin words only (a hotel's name): every word, and the name as a whole, reads left to right; each letter still lifts. */
html[dir=rtl] h1.country-name:not(:has(.gwl:only-child)) .gww { display: inline; direction: ltr; unicode-bidi: bidi-override; }
/* A title that mixes Arabic with Latin words or figures: its letters are set as ordinary text, so they fall in exactly the
   order of the plain title; the gold and the sweeping bar stay, and only the lift is given up on these titles. */
html[dir=rtl] h1.country-name:has(.gwl:not(:only-child)):has(.gwl:only-child) :is(.gww, .gwl) { display: inline; }
/* The domain mark is always in Latin letters (gold-mark.js splits it the same way). */
html[dir=rtl] .dmark { direction: ltr; unicode-bidi: isolate; }
