/* Additional languages: preserve approved Japanese/English layouts. */
html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) main { overflow-wrap:break-word; }
html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) :is(main h1,main h2,main h3,.desktop-nav a,.booking-link) { letter-spacing:normal; word-break:normal; overflow-wrap:normal; }
html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) :is(.reference-banner,.cuisine-entry) { height:auto!important; min-height:clamp(240px,24vw,340px); padding-block:44px; }
html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .culture-tabs button[data-culture] { white-space:normal; overflow-wrap:normal; line-height:1.5; }
html:is(:lang(hi),:lang(ar)) :is(main h1,main h2,main h3,main p,main li,main button,main label,main a,.desktop-nav a,.booking-link) { font-family:Arial,"Nirmala UI",Tahoma,sans-serif; letter-spacing:normal!important; line-height:1.8; }
html[dir="rtl"] body { direction:rtl; }
html[dir="rtl"] :is(.header,.terms-header,.shiki-language-picker,.shiki-mobile-booking) { direction:ltr; }
html[dir="rtl"] .shiki-language-picker [lang="ar"] span { direction:rtl; unicode-bidi:isolate; }
html[dir="rtl"] :is(main p,main li,main blockquote,main label,main input,main textarea) { text-align:start; }
html[dir="rtl"] :is(a[href^="tel:"],a[href^="mailto:"],input[type="email"],input[type="tel"]) { direction:ltr; unicode-bidi:isolate; }
html[dir="rtl"] :is(.swiper,.swiper-wrapper,.slick-slider,.splide,.culture-track,.gallery-track,.room-gallery-track) { direction:ltr; }
html[dir="rtl"] :is(.swiper-slide,.culture-slide,.gallery-slide) :is(p,h2,h3,figcaption) { direction:rtl; }
html[dir="rtl"] .shiki-language-picker nav { direction:ltr; }
@media(max-width:700px){
 html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .shiki-mobile-booking { font-size:13px; white-space:normal; line-height:1.5; }
 html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) :is(.reference-banner,.cuisine-entry) h1 { font-size:clamp(26px,7vw,32px)!important; }
}

/* Offscreen spam fields must not extend the RTL scrollable area. */
html[dir="rtl"] .contact-trap { left:0; right:auto; clip-path:inset(50%); }
html[dir="rtl"] :is(.home-room-carousel,.culture-stage) { direction:ltr; }
html[dir="rtl"] .home-room-slide > div:not(.home-room-photo):not(.home-room-arrows) { direction:rtl; }

/* Translation length must not force controls outside their columns. */
html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .pdf-layout #seasons .culture-tabs button[data-culture] {white-space:normal!important;line-height:1.5;overflow-wrap:normal;font-size:14px;}
html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .room-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .room-tabs button {min-width:0;width:100%;}
html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .room-tabs button span {white-space:normal!important;line-height:1.5;}
html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .reference-brand {min-width:0;}
html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .reference-brand span {white-space:normal;}
@media(max-width:700px){
 html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .reference-room-panel dl>div {grid-template-columns:minmax(0,1fr);gap:4px;}
 html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .reference-room-panel dt {font-weight:600;}
 html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .reference-room-panel dd {margin:0;}
 html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .pdf-layout main:has(#special-rates) #gastronomy .reference-gastro-copy {width:100%;max-width:none;}
}

html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .pdf-route-list :is(dt,dt span,dd,strong) {white-space:normal!important;min-width:0;overflow-wrap:break-word;}
@media(max-width:1000px){html:is(:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(hi),:lang(ar)) .pdf-route-list {grid-template-columns:minmax(0,1fr)!important;}}

.shiki-proper-name {font:inherit!important;color:inherit!important;letter-spacing:inherit!important;display:inline!important;white-space:normal!important;}

/* Arabic reading direction does not mirror the photographic composition. */
html:lang(ar) .pdf-layout main #gastronomy.reference-gastronomy { direction:ltr; }
html:lang(ar) .pdf-layout main #gastronomy :is(.reference-collab,.reference-gastro-copy) { direction:rtl; }
html:lang(ar) .pdf-layout main #gastronomy .reference-gastro-copy { margin-left:0; margin-right:auto; text-align:right; }
html:lang(ar) .pdf-layout main #gastronomy .reference-gastro-copy p { text-wrap:wrap; }
@media(max-width:700px) {
 html:lang(ar) .pdf-layout main:has(#special-rates) #gastronomy.reference-gastronomy {
  padding-top:calc(66.6667cqw + 32px); min-height:0; background-color:#1d2430;
 }
 html:lang(ar) .pdf-layout main:has(#special-rates) #gastronomy::after {
  inset:0 0 auto; height:66.6667cqw; background-position:center; background-size:cover;
 }
 html:lang(ar) .pdf-layout main:has(#special-rates) #gastronomy::before { top:66.6667cqw; }
}
