/* ════════════════════════════════════════════════════════════════════════════
   Phenom Services — language versions (EN default · FR · AR)
   Linked from every page AFTER the page's own stylesheet (phenom-v2.css / blog.css / legal.css).

   English pages only use section 1 (the three flags) and section 2 (room for them in the navs);
   everything else is scoped to html[lang="fr"], html[dir="rtl"] or :lang(ar) and never reaches /en.
   ════════════════════════════════════════════════════════════════════════════ */


/* ── 1. Flag switcher ─────────────────────────────────────────────────────── */
.lang-switch{
  display:inline-flex;align-items:center;gap:6px;flex-shrink:0;
  line-height:0;
}
html[dir="rtl"] .lang-switch{flex-direction:row-reverse}   /* same order (GB · FR · SA) in every language */
.lang-switch a{
  position:relative;display:block;flex-shrink:0;
  padding:4px 0 5px;border-radius:2px;
  opacity:.62;transition:opacity .25s ease;
}
.lang-switch a:hover{opacity:1}
.lang-switch a.is-current{opacity:1;cursor:default}
.lang-switch a.is-current::after{   /* thin gold rule under the current language */
  content:'';position:absolute;left:1px;right:1px;bottom:0;height:1px;
  background:#B8915C;
}
.lang-switch a:focus-visible{opacity:1;outline:1px solid #B8915C;outline-offset:2px}
.lang-switch img{
  display:block;width:21px;height:15px;max-width:none;
  object-fit:cover;border-radius:2px;overflow:hidden;
  box-shadow:0 0 0 .5px rgba(28,23,20,.28);
}
/* copy placed by nav-mobile.js in the Journal / legal hero, shown only on phones (2b) */
.lang-switch--hero{display:none;position:absolute;z-index:3;top:.85rem;inset-inline-end:1.2rem}
:is(.doc-hero,.blog-index-hero):has(> .lang-switch--hero){position:relative}


/* ── 2. Room for the flags in the navs ────────────────────────────────────────
   The flags take ~80px. Where a nav runs short of room, its side padding and gaps tighten
   one step at a time, so no item ever breaks onto two lines. Thresholds are per language
   (measured with the EN text and the FR/AR translations): EN = html:not([lang=fr]):not([lang=ar]). */

/* 2a. Main nav: flags first in .nav-right, a little closer to the phone number */
#mainNav .nav-right .lang-switch{margin-inline-end:-.55rem}
#mainNav .nav-phone{white-space:nowrap}

/* English */
@media (min-width:1025px) and (max-width:1389px){
  html:not([lang="fr"]):not([lang="ar"]) #mainNav{padding-left:3rem;padding-right:3rem}
  html:not([lang="fr"]):not([lang="ar"]) #mainNav .nav-links{gap:2rem}
}
@media (min-width:1025px) and (max-width:1279px){
  html:not([lang="fr"]):not([lang="ar"]) #mainNav{padding-left:2rem;padding-right:2rem}
  html:not([lang="fr"]):not([lang="ar"]) #mainNav .nav-links{gap:1.5rem}
  html:not([lang="fr"]):not([lang="ar"]) #mainNav .nav-right{gap:1.4rem}
}
@media (min-width:1025px) and (max-width:1189px){
  html:not([lang="fr"]):not([lang="ar"]) #mainNav{padding-left:1.5rem;padding-right:1.5rem}
  html:not([lang="fr"]):not([lang="ar"]) #mainNav .nav-links{gap:1.25rem}
  html:not([lang="fr"]):not([lang="ar"]) #mainNav .nav-phone{display:none}  /* number stays in footer, CTA band, contact page */
}
/* French (longer labels; below 1100px the menu button takes over, as below 1025px) */
@media (min-width:1025px) and (max-width:1465px){
  html[lang="fr"] #mainNav{padding-left:3rem;padding-right:3rem}
  html[lang="fr"] #mainNav .nav-links{gap:2rem}
}
@media (min-width:1025px) and (max-width:1353px){
  html[lang="fr"] #mainNav{padding-left:2rem;padding-right:2rem}
  html[lang="fr"] #mainNav .nav-links{gap:1.5rem}
  html[lang="fr"] #mainNav .nav-right{gap:1.4rem}
}
@media (min-width:1025px) and (max-width:1260px){
  html[lang="fr"] #mainNav{padding-left:1.5rem;padding-right:1.5rem}
  html[lang="fr"] #mainNav .nav-links{gap:1.25rem}
  html[lang="fr"] #mainNav .nav-phone{display:none}
}
@media (min-width:1025px) and (max-width:1099px){
  html[lang="fr"] #mainNav .nav-links{display:none}
  html[lang="fr"] #mainNav #pmBurger{display:flex}
}
/* Arabic (shorter labels) */
@media (min-width:1025px) and (max-width:1209px){
  html[lang="ar"] #mainNav{padding-left:3rem;padding-right:3rem}
  html[lang="ar"] #mainNav .nav-links{gap:2rem}
}
@media (min-width:1025px) and (max-width:1099px){
  html[lang="ar"] #mainNav{padding-left:2rem;padding-right:2rem}
  html[lang="ar"] #mainNav .nav-links{gap:1.5rem}
  html[lang="ar"] #mainNav .nav-right{gap:1.4rem}
}
/* Phones: the top bar keeps logo · Book · menu exactly as before; the flags are in the menu overlay */
@media (max-width:640px){html:not([lang="fr"]):not([lang="ar"]) #mainNav .nav-right .lang-switch{display:none}}
@media (max-width:700px){html[lang="fr"] #mainNav .nav-right .lang-switch{display:none}}
@media (max-width:600px){html[lang="ar"] #mainNav .nav-right .lang-switch{display:none}}

/* 2b. Journal & legal navs: logo · links · flags · CTA.
   The links stay centred between the logo and the flags+CTA pair (as they were between logo and CTA). */
.blog-nav-links,.doc-nav-links{margin-inline:auto}
.blog-nav .lang-switch,.doc-nav .lang-switch{margin-inline-end:1.1rem}
@media (max-width:820px){.doc-nav .lang-switch{margin-inline-start:auto;margin-inline-end:.8rem}}
/* one step tighter where room runs short (below 1025px the Journal bar also carries the menu button) */
@media (min-width:962px) and (max-width:1024px){
  html:not([lang="fr"]):not([lang="ar"]) .blog-nav{padding-left:1.5rem;padding-right:1.5rem}
  html:not([lang="fr"]):not([lang="ar"]) .blog-nav-links{gap:1.25rem}
}
@media (min-width:1025px) and (max-width:1099px){
  html[lang="fr"] .blog-nav{padding-left:1.5rem;padding-right:1.5rem}
  html[lang="fr"] .blog-nav-links{gap:1.25rem}
}
@media (min-width:844px) and (max-width:927px){
  html[lang="ar"] .blog-nav{padding-left:1.5rem;padding-right:1.5rem}
  html[lang="ar"] .blog-nav-links{gap:1.25rem}
}
/* FR / AR Journal: where the links no longer fit beside the flags they go to the menu (button already there) */
@media (max-width:1024px){
  html[lang="fr"] .blog-nav-links{display:none}
  html[lang="fr"] .blog-nav .lang-switch{margin-inline-start:auto}
}
@media (max-width:900px){
  html[lang="ar"] .blog-nav-links{display:none}
  html[lang="ar"] .blog-nav .lang-switch{margin-inline-start:auto}
}
@media (min-width:821px) and (max-width:853px){
  html:not([lang="fr"]):not([lang="ar"]) .doc-nav{padding-left:1.5rem;padding-right:1.5rem}
  html:not([lang="fr"]):not([lang="ar"]) .doc-nav-links{gap:1.25rem}
}
@media (min-width:821px) and (max-width:947px){
  html[lang="fr"] .doc-nav{padding-left:1.5rem;padding-right:1.5rem}
  html[lang="fr"] .doc-nav-links{gap:1.25rem}
}
/* narrower still: the flags leave the bar (which stays exactly as before) for the top corner of the hero */
@media (max-width:961px){
  html:not([lang="fr"]):not([lang="ar"]) .blog-nav-links{display:none}   /* the links are in the menu (button shown below 1025px) */
  html:not([lang="fr"]):not([lang="ar"]) .blog-nav .lang-switch{display:none}
  html:not([lang="fr"]):not([lang="ar"]) :is(.blog-index-hero,.article-hero) > .lang-switch--hero{display:inline-flex}
}
@media (max-width:682px){
  html[lang="fr"] .blog-nav .lang-switch{display:none}
  html[lang="fr"] :is(.blog-index-hero,.article-hero) > .lang-switch--hero{display:inline-flex}
}
@media (max-width:586px){
  html[lang="ar"] .blog-nav .lang-switch{display:none}
  html[lang="ar"] :is(.blog-index-hero,.article-hero) > .lang-switch--hero{display:inline-flex}
}
@media (max-width:449px){
  html:not([lang="fr"]):not([lang="ar"]) .doc-nav .lang-switch{display:none}
  html:not([lang="fr"]):not([lang="ar"]) .doc-hero > .lang-switch--hero{display:inline-flex}
}
@media (max-width:514px),(min-width:821px) and (max-width:863px){
  html[lang="fr"] .doc-nav .lang-switch{display:none}
  html[lang="fr"] .doc-hero > .lang-switch--hero{display:inline-flex}
}
@media (max-width:418px){
  html[lang="ar"] .doc-nav .lang-switch{display:none}
  html[lang="ar"] .doc-hero > .lang-switch--hero{display:inline-flex}
}


/* ── 3. Legal pages (FR/AR): "the English version prevails" note under the H1 ── */
.i18n-legal-note{
  max-width:560px;margin:1rem auto 0;
  font-family:var(--serif);font-style:italic;font-weight:400;
  font-size:1rem;line-height:1.5;letter-spacing:.01em;
  color:rgba(255,255,255,.6);
}


/* ── 4. French: labels run ~30% longer ────────────────────────────────────── */
html[lang="fr"] .btn-book{white-space:nowrap}
@media (max-width:600px){
  html[lang="fr"] :is(.btn-res,.fleet-cta-pill,.hq-go,.cta-band-btn,.sec-cta,.btn-line,.cp-btn,.agencies-cta a.btn,
    .ca-wa,.ca-email,.delegations-submit-wa,.req-submit,.pagehero-link,.article-cta-btn){
    white-space:normal;text-align:center;
  }
}
/* legal bar on phones (no menu button there): « Réserver un trajet » kept on one line beside the logo */
@media (max-width:440px){
  html[lang="fr"] .doc-nav-cta{padding:.62rem .95rem;letter-spacing:.08em;white-space:nowrap}
}
@media (max-width:380px){
  html[lang="fr"] .doc-nav-cta{padding:.58rem .75rem;font-size:.64rem;letter-spacing:.05em}
}


/* ════════════════════════════════════════════════════════════════════════════
   5. ARABIC — typography
   Latin fonts first: car names, prices, phone numbers and e-mails keep Cormorant / Inter;
   every Arabic glyph falls through to Amiri (serif) or IBM Plex Sans Arabic (sans).
   ════════════════════════════════════════════════════════════════════════════ */
html[lang="ar"]{
  --serif:'Cormorant Garamond','Amiri',Georgia,serif;
  --sans:'Inter','IBM Plex Sans Arabic',system-ui,sans-serif;
}
html[lang="ar"] body{font-family:var(--sans)}
/* Joined letters: never letter-spaced, never case-transformed, never slanted */
html[lang="ar"] *:lang(ar):not(:is(.blog-nav-logo,.doc-nav-logo) *,.blog-nav-logo,.doc-nav-logo),
html[lang="ar"] *:lang(ar)::before,html[lang="ar"] *:lang(ar)::after{
  letter-spacing:0!important;text-transform:none!important;
}
html[lang="ar"] :is(em,i,cite,blockquote,.cp-num,.craft .n,.agency-card .n,.iscard .k,.cd-tagline,
  .cp-foot-note,.ft-tagline,.doc-wrap h2 .n,.i18n-legal-note):lang(ar){font-style:normal}
/* Headings: Naskh needs taller lines than the Latin display serif */
html[lang="ar"] :is(h1,h2,h3,h4,h5,.hero-head,.ph-head,.fleet-title,.wip-title,.journal-title,.cp-title,
  .delegations-title,.gal-title,.req-title,.vcard-name,.car-name,.inc-title,.svc h3,.how-step h3){
  line-height:1.45;
}
html[lang="ar"] .hero .hero-head{line-height:1.3}
html[lang="ar"] body{line-height:1.85}
/* Small caps labels: no capitals and no tracking in Arabic, so they get a little more size */
html[lang="ar"] :is(.overline,.eyebrow,.bstep-label,.bfield label,.rs-label,.vcard-tag,.vcard-spec-k,.vcard-price-s,
  .cfield label,.car-sub,.wip-overline,.concierge-cta,.cp-overline,.delegations-overline,.dfield label,
  .journal-card-cat,.svc-tag,.ft-col h5,.live-price-ttl,.lpr-tag,.lpr-from,.bks-label,.vehicles-filter-ttl,.vf-label,
  .vrow-more,.numbers-stat .l,.craft-more,.partner-group .label,.amb-cap .s,.sticky-book .sb-label,.sb-tab,.car-gal-hint,
  .gal-eyebrow,.req-eyebrow,.cd-nav-link .k,.rental-rates-table th,.amb-tag,.amb-discover,.vol-pill span,.equip-label,
  .hq-field label,.hp-stat span,.ct-field label,.rp-facts span,.rp-table th,.rp-cols .eyebrow,.rp-gap,.rp-other span,
  .rp-hubtxt em,.sr-veh-title,.btg,.hero-stat-l,.inc-check,.use-loc,.hq-loc,.live-map-hint,
  .article-hero-cat,.callout-label,.related-card-cat,.blog-index-card-meta,.doc-callout .label,.doc-table thead th):lang(ar){
  font-size:.78rem;
}
html[lang="ar"] :is(.nav-links a,.btn-book,.btn-primary,.btn-ghost,.btab,.btn-res,.btn-back,.vcard-select,.ca-wa,.ca-email,
  .wip-cta,.cp-btn,.delegations-submit-btn,.delegations-submit-wa,.svc-lnk,.trust-item,.ft-legal a,.vrow-select,
  .agencies-cta a.btn,.btn-line,.whois-cta,.sec-cta,.pagehero-link,.cta-band-btn,.sticky-book-btn,.sb-go,.req-label,
  .req-submit,.cd-sub,.cd-ctas .btn-ghost2,.addcar-btn,.rp-book,.fleet-cta-pill,
  .blog-nav-links a,.blog-nav-cta,.article-cta-btn,.related h2,.blog-index-card-read,
  .doc-nav-links a,.doc-nav-cta,.doc-hero .eyebrow,.doc-tabs a,.faq-group-title,.doc-contact a.btn):lang(ar){
  font-size:.86rem;
}
html[lang="ar"] :is(.nav-links a,.btn-book,.btn-primary,.btn-ghost,.btab,.btn-res,.cta-band-btn,.sec-cta,.sb-go,
  .sticky-book-btn,.vrow-select,.btg,.sb-tab):lang(ar){font-weight:500}
/* Small body copy reads small in Naskh: one notch up */
html[lang="ar"] :is(.svc p,.inc-desc,.how-step p,.why p,.sec-hd p,.about-text p,.ft-desc,.ft-col li a,.ft-copy,
  .journal-card-excerpt,.concierge-desc,.cp-card-text,.vcard-sub,.bks-val,.extra-desc,.vol-note,.rental-rates-note,
  .rp-note,.req-note,.addcar-hint,.ct-form-sub,.ct-body i,.pp-note,.pay-methods-note,.sticky-book-text,
  .live-price-empty,.addr-item-sub,.hq-links,.cta-band-call):lang(ar){
  font-size:.9rem;
}
html[lang="ar"] .i18n-legal-note{font-family:var(--sans);font-size:.86rem;line-height:1.8}

/* Numbers, phone numbers and e-mails always read left-to-right inside Arabic */
html[dir="rtl"] :is(a[href^="tel:"],a[href^="mailto:"],.nav-phone,.cta-band-call):not(.ct-card){
  unicode-bidi:plaintext;
}
html[dir="rtl"] bdi.ph-ltr{unicode-bidi:isolate;direction:ltr}   /* set by nav-mobile.js around phone numbers */
html[dir="rtl"] :is(.vrow-price,.lpr-price,.rp-price,.vcard-price-n,.rs-gold,.route-val,.extra-price,
  .addcar-chip b,.bks-total-row > :last-child,.hero-stat-n,.numbers-stat .n,.hp-stat b,.rp-facts b){
  unicode-bidi:plaintext;
}
/* phone / e-mail fields: what is typed takes its own direction (digits and addresses run left-to-right),
   an Arabic placeholder stays right-to-left; everything stays aligned on the right like the labels */
html[dir="rtl"] :is(input[type="tel"],input[type="email"],input[type="url"],input[type="number"]){
  unicode-bidi:plaintext;text-align:right;
}
/* …except the hour and minute boxes of the time picker: centred and left-to-right, so 14 : 30 reads as one time */
html[dir="rtl"] .flatpickr-time input.numInput{direction:ltr;unicode-bidi:normal;text-align:center}


/* ════════════════════════════════════════════════════════════════════════════
   6. ARABIC — right-to-left layout (main site, phenom-v2.css)
   Flexbox and grid mirror by themselves under dir="rtl"; below are the physical
   left/right values, arrows and absolutely placed pieces that must be flipped by hand.
   ════════════════════════════════════════════════════════════════════════════ */

/* Hero: the dark side of the gradient follows the text (now on the right) */
@media (min-width:901px){
  html[dir="rtl"] .hero::before{
    background:
      linear-gradient(to left, rgba(35,42,56,.96) 0%, rgba(35,42,56,.9) 44%, rgba(35,42,56,.64) 68%, rgba(35,42,56,.32) 100%),
      linear-gradient(to top, rgba(35,42,56,.78) 0%, rgba(35,42,56,.4) 26%, rgba(35,42,56,.12) 50%, rgba(35,42,56,0) 66%),
      linear-gradient(to bottom, rgba(35,42,56,.55) 0%, rgba(35,42,56,0) 24%);
  }
}
html[dir="rtl"] .hero-stat{border-right:none;border-left:1px solid rgba(166,125,68,.12)}
html[dir="rtl"] .hero-stat:last-child{border-left:none}
@media (max-width:900px){html[dir="rtl"] .hero-stat{border:1px solid var(--border)}}

/* Booking form */
html[dir="rtl"] .use-loc{right:auto;left:.6rem}
html[dir="rtl"] .bfield.has-useloc input{padding-right:1rem;padding-left:9rem}
html[dir="rtl"] :is(.bfield select,.dfield select){background-position:left 1rem center;padding-right:1rem;padding-left:2.4rem}
html[dir="rtl"] .vf-field select{background-position:left .8rem center;padding-right:.8rem;padding-left:2rem}
html[dir="rtl"] .bfield label .opt{margin-left:0;margin-right:.35rem}
html[dir="rtl"] .vcard.selected::after{right:auto;left:.8rem}
html[dir="rtl"] .confirm-details{border-left:none;border-right:3px solid var(--gold)}
html[dir="rtl"] .billing-details summary::before{margin-right:0;margin-left:.4rem}
html[dir="rtl"] .bks-total-row .small{margin-left:0;margin-right:.3rem}
/* summary totals (FR/AR labels are long): the label wraps, « CHF 998.00 » always stays on one line */
html:is([lang="fr"],[lang="ar"]) .bks-total-row{gap:.8rem}
html:is([lang="fr"],[lang="ar"]) .bks-total-row > :first-child{min-width:0;text-wrap:pretty}
html:is([lang="fr"],[lang="ar"]) .bks-total-row > :last-child{white-space:nowrap;flex-shrink:0}
html[dir="rtl"] .vrow-specs{margin-left:0;margin-right:.6rem}
@media (max-width:700px){html[dir="rtl"] .vrow-specs{margin-right:0}}
html[dir="rtl"] .extra-price{margin-left:0;margin-right:.6rem}
html[dir="rtl"] .lpr-from{margin-left:.3rem;margin-right:.3rem}
html[dir="rtl"] .route-val{margin-right:0;margin-left:.3rem}
html[dir="rtl"] .live-price-loading{right:auto;left:1.4rem}
html[dir="rtl"] .live-price-ttl em[style*="margin-left"]{margin-left:0!important;margin-right:.4rem!important}
html[dir="rtl"] .btn-back[style*="margin-left:auto"]{margin-left:0!important;margin-right:auto!important}
html[dir="rtl"] .addcar-chip b{margin-left:0;margin-right:auto}

/* Address autocomplete (booking form, home quick-booking, sticky bar) */
html[dir="rtl"] .bfield input.addr-input,html[dir="rtl"] .hq-field input.addr-input{padding-left:1rem;padding-right:2.4rem}
/* pickup fields: the pin on the right, and room on the left for « 📍 موقعي الحالي » (mirror of EN) */
html[dir="rtl"] .bfield.has-useloc input.addr-input{padding-left:9rem;padding-right:2.4rem}
html[dir="rtl"] .sb-field input.addr-input{padding-left:1rem;padding-right:2.1rem}
html[dir="rtl"] .addr-pin{left:auto;right:.85rem}
html[dir="rtl"] .addr-loading{right:auto;left:.85rem}
html[dir="rtl"] .sb-field .addr-pin{left:auto;right:.75rem}
html[dir="rtl"] .sb-field .addr-loading{right:auto;left:.75rem}
@media(max-width:640px){   /* two-row sticky bar on phones (phenom-v2.css), mirrored */
  html[dir="rtl"] .sticky-book .sb-field input.addr-input{padding-left:.45rem;padding-right:1.85rem}
  html[dir="rtl"] .sticky-book .sb-field .addr-pin{right:.6rem}
}
html[dir="rtl"] .addr-item{padding:.7rem 2.4rem .7rem 1rem}
html[dir="rtl"] .addr-item::before{left:auto;right:.95rem}
html[dir="rtl"] .hq-loc{margin-left:0;margin-right:.55rem}
/* suggestions are mostly Latin street names: keep them left-to-right (cut at their end), aligned right */
html[dir="rtl"] :is(.addr-item-main,.addr-item-sub){direction:ltr;text-align:right}
html[dir="rtl"] input.addr-input{unicode-bidi:plaintext;text-align:right}   /* a Latin address shows from its start */

/* Phone field: intl-tel-input mirrors itself under [dir=rtl] (flag + dial code on the right);
   the dial code and the number itself stay left-to-right: 🇨🇭 +41 | 79 888 85 54 */
html[dir="rtl"] :is(.iti__selected-dial-code,.iti__dial-code){direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .iti__country-list{text-align:right}
/* Date picker (flatpickr is built left-to-right): days run from the right, Saturday first (ar locale) */
html[dir="rtl"] .flatpickr-calendar{direction:rtl}
html[dir="rtl"] .flatpickr-months .flatpickr-prev-month{left:auto;right:0}
html[dir="rtl"] .flatpickr-months .flatpickr-next-month{right:auto;left:0}
html[dir="rtl"] .flatpickr-months :is(.flatpickr-prev-month,.flatpickr-next-month) svg{transform:scaleX(-1)}
html[dir="rtl"] .flatpickr-time{direction:ltr}       /* 14:30 stays hours:minutes */
/* Maps are drawn left-to-right */
html[dir="rtl"] .leaflet-container{direction:ltr}

/* Fleet cards & carousels */
html[dir="rtl"] .car-spec-pill{padding:.55rem .85rem .55rem 1.1rem}
/* (the ‹ › of .fleet-prev/.fleet-next are bidi-mirrored characters: they already point outward in RTL) */
html[dir="rtl"] .car-gal-hint{right:auto;left:.7rem}
html[dir="rtl"] .amb-tag{left:auto;right:.7rem}
html[dir="rtl"] .amb-discover{right:auto;left:.8rem}
html[dir="rtl"] .fteaser-card .cap{text-align:right}
html[dir="rtl"] .partner-group .list b{margin-right:0;margin-left:1rem}

/* How it works / why Phenom: hairlines between columns */
html[dir="rtl"] .how-step{border-right:none;border-left:1px solid var(--border)}
html[dir="rtl"] .how-step:last-child{border-left:none}
html[dir="rtl"] .how-connector{right:auto;left:-1px}
@media (max-width:768px){html[dir="rtl"] .how-step{border-left:none}}
html[dir="rtl"] .why-item{border-right:none;border-left:1px solid var(--border)}
html[dir="rtl"] .why-item:nth-child(4n){border-left:none}
@media (max-width:900px){html[dir="rtl"] .why-item:nth-child(even){border-left:none}}

/* Modals (car gallery, concierge request) */
html[dir="rtl"] :is(.gal-close,.req-close){right:auto;left:1.2rem}

/* Tables */
html[dir="rtl"] :is(.rental-rates-table th,.rp-table th){text-align:right}
@media (max-width:640px){
  html[dir="rtl"] .rp-table td.rp-price,html[dir="rtl"] .rp-table td:nth-child(4){text-align:left}
}
html[dir="rtl"] .rp-incl li{padding-left:0;padding-right:1.4rem}
html[dir="rtl"] .rp-incl li::before{left:auto;right:0}

/* Car page previous / next */
html[dir="rtl"] #cdNext{text-align:left!important}
html[dir="rtl"] .sec-cta-wrap[style*="text-align:left"]{text-align:right!important}

/* Cookie notice (consent.js): bottom-left → bottom-right */
html[dir="rtl"] #phConsent{left:auto;right:16px;font-family:var(--sans)}
@media (max-width:560px){html[dir="rtl"] #phConsent{left:10px;right:10px}}


/* ── 7. ARABIC — Journal (blog.css) ───────────────────────────────────────── */
html[dir="rtl"] .article-body :is(ul,ol){margin:0 1.5rem 1.5rem 0}
html[dir="rtl"] .article-body blockquote{border-left:none;border-right:3px solid var(--gold);padding:.4rem 1.4rem .4rem 0}
html[dir="rtl"] .callout{border-left:none;border-right:3px solid var(--gold)}


/* ── 8. ARABIC — legal pages & FAQ (legal.css) ────────────────────────────── */
html[dir="rtl"] .doc-wrap :is(ul,ol){margin:0 1.4rem 1.3rem 0}
html[dir="rtl"] .doc-callout{border-left:none;border-right:3px solid var(--gold)}
html[dir="rtl"] :is(.doc-table th,.doc-table td){text-align:right}


/* ════════════════════════════════════════════════════════════════════════════
   iPHONE DUO (foldable) — 2026-11-29. Every rule below is inside a media query that matches only
   the iPhone Duo screens: folded 466x678 / 678x466, unfolded 951x669 / 669x951
   (and, for the ski price table, the 641-706px width band where it was cut off).
   Normal phones, tablets and computers are not affected (checked element by element).
   ════════════════════════════════════════════════════════════════════════════ */

/* ---- bar ---- */
/* ═══ iPhone Duo — bar area (fixed bottom booking bar #stickyBook): French widths and the right-to-left mirror (Arabic) ═══ */

/* fleet-sticky-bar-truncated · svc-3 · home-bar-ip-cramped — inner portrait 669x951 */
@media (min-width:600px) and (max-width:720px) and (min-height:880px) and (max-height:1010px){
  html[dir="rtl"] .sticky-book .sb-field input.addr-input{padding-left:.6rem;padding-right:1.85rem}
  html[dir="rtl"] .sticky-book .sb-field .addr-pin{left:auto;right:.6rem}
}
/* fleet-sticky-bar-truncated · svc-3 · home-bar-ip-cramped — outer landscape 678x466
   (French: the long « Adresse de prise en charge » ends in … as on phones; both fields get the same width
   so « Destination » still reads in full) */
@media (min-width:640px) and (max-width:720px) and (min-height:420px) and (max-height:500px){
  html[lang="fr"] .sticky-book .sb-field:has(#sb-pickup){flex-grow:1}
  html[dir="rtl"] .sticky-book .sb-field input.addr-input{padding-left:.45rem;padding-right:1.85rem}
  html[dir="rtl"] .sticky-book .sb-field .addr-pin{left:auto;right:.6rem}
}
/* home-bar-crease-il — inner landscape 951x669: tabs on the right screen, search (and its suggestions) on the left one */
@media (min-width:900px) and (max-width:1000px) and (min-height:600px) and (max-height:720px){
  html[dir="rtl"] .sticky-book .sb-field input.addr-input{padding-left:.45rem;padding-right:1.85rem}
  html[dir="rtl"] .sticky-book .sb-field .addr-pin{left:auto;right:.6rem}
  html[dir="rtl"] .sticky-book .sb-field .addr-drop{left:2.5rem;right:calc(50% + 16px)}
}

/* ---- ski ---- */
/* ════ iPhone Duo — ski transfers (route pages + hub) ════ */

/* ski-table-clipped-641-700 — price cards in RTL: price and Book on the left edge
   (same width band as the card layout in phenom-v2.css) */
@media (min-width:641px) and (max-width:706px){
  html[dir="rtl"] .rp-table td.rp-price,html[dir="rtl"] .rp-table td:nth-child(4){text-align:left}
}

/* ski-fr-capacity-wrap-951 — Duo inner-landscape 951x669: keep "4 places · 3 bagages" on one line */
@media (min-width:900px) and (max-width:1000px) and (min-height:600px) and (max-height:720px){
  html[lang="fr"] .rp-table td:nth-child(2){white-space:nowrap}
}

/* ---- book ---- */
/* [book-step2-vehicle-rows-inner-landscape] iPhone Duo inner screen, landscape (951x669), RTL.
   - the pills sit under the SELECT bar, flush with the start edge, as on phones
     (i18n.css « html[dir=rtl] .vrow-specs{margin-right:.6rem} » would offset them);
   - extras: the name/price spacing comes from the flex column-gap of .extra-name (phenom-v2.css block),
     so the RTL margin of .extra-price is reset too. */
@media (min-width:900px) and (max-width:1000px) and (min-height:600px) and (max-height:720px){
  html[dir="rtl"] .vrow-specs{margin-right:0}
  html[dir="rtl"] .extra-price{margin-right:0}
}

/* ---- carshome ---- */
/* ═══ iPhone Duo — carshome area (Arabic) ═══ */

/* home-ar-footer-phone + svc-5 + footer-ar-phone-break — inner landscape 951x669, Arabic footer:
   the phone number stays on one line. Arabic sets the footer links one notch larger (.9rem), so
   « +41 22 901 18 88 » is ~113px in a 110px Contact column and broke as « +41 22 901 18 » / « 88 ».
   min-width:0 keeps the four footer columns exactly as they are (the number simply runs ~3px into
   the 80px side padding, invisible); EN/FR already fit and are not touched. */
@media (min-width:900px) and (max-width:1000px) and (min-height:600px) and (max-height:720px){
  html[dir="rtl"] footer .ft-col a[href^="tel:"]{white-space:nowrap}
  html[dir="rtl"] footer .ft-col{min-width:0}
}

/* ---- journallegal ---- */
/* ════════════════════════════════════════════════════════════════════════════
   9. iPhone Duo — Journal (blog.css), legal pages (legal.css) and 404
   Only the four Duo screens match these queries; every standard phone, tablet and
   computer keeps its current layout. Blog, legal and 404 pages do not load
   phenom-v2.css, so these rules live here (loaded after blog.css / legal.css /
   the 404 inline styles).
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 9a. Folded, upright (466x678) ─────────────────────────────────────────── */
@media (min-width:441px) and (max-width:520px) and (min-height:600px) and (max-height:760px){
  /* journal-466-orphans: headlines without a one-word last line; footer links kept whole (3 + 3) */
  :is(.article-hero h1,.blog-index-card-title,.related-card-title){text-wrap:pretty}
  :is(.blog-footer-links,.blog-footer > div:last-child){text-wrap:balance}
  .blog-footer-links a{white-space:nowrap}

  /* legal-tabs-orphan-outer: English tabs as two tidy pairs (Terms · Privacy / Cancellation · FAQ), as on the iPhone */
  html:not([lang="fr"]):not([lang="ar"]) .doc-tabs{padding-left:calc(50% - 12rem);padding-right:calc(50% - 12rem)}
}

/* ── 9b. Folded landscape (678x466) and unfolded upright (669x951) ─────────── */
@media (min-width:640px) and (max-width:720px) and (min-height:420px) and (max-height:500px),
       (min-width:600px) and (max-width:720px) and (min-height:880px) and (max-height:1010px){
  /* journal-6xx-cta-floats: « Book a ride » sits beside the menu button (as in Arabic), not mid-bar */
  .blog-nav-logo{margin-inline-end:auto}
}

/* ── 9c. Unfolded landscape (951x669): the crease runs down the middle (x≈475) ── */
@media (min-width:900px) and (max-width:1000px) and (min-height:600px) and (max-height:720px){
  /* journal-il-nav-crease: Journal bar = logo · flags · Book · menu, as in French
     (Fleet / Concierge / Journal / Contact are in the menu) */
  html:not([lang="fr"]) .blog-nav-links{display:none}
  html:not([lang="fr"]) .blog-nav .lang-switch{margin-inline-start:auto}
  html:not([lang="fr"]):not([lang="ar"]) .blog-nav .lang-switch{display:inline-flex}
  html:not([lang="fr"]):not([lang="ar"]) :is(.blog-index-hero,.article-hero) > .lang-switch--hero{display:none}

  /* journal-466-orphans (951): card headlines without a one-word last line */
  :is(.blog-index-card-title,.related-card-title){text-wrap:pretty}

  /* journal-index-lone-card: the odd last card spans both columns —
     photo under the left column, text under the right one (mirrors itself in Arabic) */
  .blog-index-grid > .blog-index-card:last-child:nth-child(odd){
    grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:2rem;
  }
  .blog-index-grid > .blog-index-card:last-child:nth-child(odd) .blog-index-card-img{aspect-ratio:auto;height:100%;min-height:15rem}
  .blog-index-grid > .blog-index-card:last-child:nth-child(odd) .blog-index-card-body{align-self:center}

  /* 404-cta-on-crease: message on one screen, the three buttons stacked on the other */
  body > .wrap:has(> .ctas){
    max-width:none;width:100%;
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:5rem;align-items:center;
  }
  body > .wrap:has(> .ctas) > :not(.ctas){grid-column:1;justify-self:center}
  body > .wrap:has(> .ctas) > p{margin-bottom:0}
  body > .wrap > .ctas{grid-column:2;grid-row:1 / span 4;flex-direction:column;align-items:center}
  body > .wrap > .ctas a.btn{width:16rem;text-align:center}
}

/* ---- fix-ups after the independent review ---- */
/* Journal: the menu icon is drawn in cream for the dark main bar; on the white Journal bar it was almost
   invisible, and on the Duo screens the menu is the way to Fleet, Concierge and Contact */
@media (min-width:441px) and (max-width:520px) and (min-height:600px) and (max-height:760px), (min-width:640px) and (max-width:720px) and (min-height:420px) and (max-height:500px), (min-width:600px) and (max-width:720px) and (min-height:880px) and (max-height:1010px), (min-width:900px) and (max-width:1000px) and (min-height:600px) and (max-height:720px){
  nav.blog-nav #pmBurger span{background:#232A38}
}
/* Booking page, unfolded landscape, Arabic: one row of tabs, three on one side of the crease and two on the other */
@media (min-width:900px) and (max-width:1000px) and (min-height:600px) and (max-height:720px){
  html[dir="rtl"] .btabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 1.6rem repeat(2,minmax(0,1.5fr));column-gap:.4rem}
  html[dir="rtl"] .btabs .btab{padding:.92rem .4rem;font-size:.7rem;margin-inline:0;grid-column:auto}
  html[dir="rtl"] .btabs .btab:nth-child(4){grid-column:5}   /* column 4 is the gap on the crease */
}
/* Journal, Arabic: keep the original line breaks (the orphan fix is for the English and French titles) */
@media (min-width:441px) and (max-width:520px) and (min-height:600px) and (max-height:760px), (min-width:900px) and (max-width:1000px) and (min-height:600px) and (max-height:720px){
  html[lang="ar"] :is(.article-hero h1,.blog-index-card-title,.related-card-title){text-wrap:wrap}
}
/* Car pages, unfolded upright, Arabic: a little more room above the two-row booking bar (Defender, Range Rover LWB) */
@media (min-width:600px) and (max-width:720px) and (min-height:880px) and (max-height:1010px){
  html[lang="ar"] #cardetail .cd-desc{line-height:1.55;margin-top:.6rem}
  html[lang="ar"] #cardetail .cd-ctas{margin-top:.7rem}
}
/* booking bar 641-900px (iPad held upright / phones held sideways): right-to-left pin and padding */
@media (min-width:641px) and (max-width:900px){
  html[dir="rtl"] .sticky-book .sb-field input.addr-input{padding-left:.5rem;padding-right:1.85rem}
  html[dir="rtl"] .sticky-book .sb-field .addr-pin{left:auto;right:.6rem}
}
/* photo window close button, right-to-left */
html[dir="rtl"] #galModal .gal-close{right:auto;left:calc(max((100vw - 1060px) / 2, 0px) + 1.2rem)}
@media(max-width:860px){html[dir="rtl"] #galModal .gal-close{left:calc(10px + 1.2rem)}}
@media (min-width:900px) and (max-width:1000px) and (min-height:600px) and (max-height:720px){html[dir="rtl"] #galModal .gal-close{left:calc(24px + 1.2rem)}}
