/* Royal Twins shared mobile safety net (core/web/mobile-safe.css). Copied into every site's public/css by
   tools/sync-core-web.sh; tests/test-core-web.php fails if a copy drifts. Link it LAST in <head>.
   Why: on iOS one element wider than the screen makes Safari zoom the whole page out (narrow column + black band).
   tests/test-mobile.py checks scrollWidth == innerWidth at 320/375/390/430 px on every page. */
html,body{max-width:100%;overflow-x:hidden}
@supports(overflow:clip){html,body{overflow-x:clip}}
img,picture,video,svg,iframe,canvas{max-width:100%}
img{height:auto}
input,select,textarea,button{max-width:100%;min-width:0}
/* grid/flex children may shrink below their content (default min-width:auto is what overflows) */
.cx>*,.g2>*,#fleet-cards>*,.fc,.fc *{min-width:0}
pre,code{white-space:pre-wrap;word-break:break-word}
@media(max-width:600px){
  table{max-width:100%}
  table th,table td{overflow-wrap:anywhere;word-break:break-word}
  .doc .pt th,.doc .pt td{padding:8px 5px}
  h1,h2,h3{overflow-wrap:break-word}
}
/* Terms checkbox (31/10, Hisham iPhone): the default 13 px box sat next to two links, a thumb tap opened the T&C page instead of
   ticking it and the booking was then refused. Bigger box + whole text (outside links) toggles it. */
.chk{cursor:pointer;-webkit-tap-highlight-color:transparent}
.chk input[type=checkbox]{width:24px;height:24px;min-width:24px;flex:0 0 24px;margin:0 2px 0 0;cursor:pointer}
.chk a{padding:2px 0}
/* the T&C / privacy links live OUTSIDE the label (.chkl), so any tap on the sentence ticks the box */
.chkl{font-size:12px;margin:-8px 0 14px 34px;opacity:.85}.chkl a{color:inherit;text-decoration:underline}
/* QA 31/10: the floating WhatsApp button covered the SumUp "Payer" button on iPhone. Hidden while paying / typing in the booking form. */
body.paying .wafloat,body:has(#paym.show) .wafloat,body:has(#book :focus) .wafloat{display:none!important}
/* Hamburger menu (core/web/nav-menu.js, opt-in with <nav data-menu=".links">): one line, never clipped, below 1100px (tablets incl. iPad 820/1024) */
.rt-burger{display:none}
@media(max-width:1100px){
nav[data-menu]{position:relative;flex-wrap:nowrap}
nav[data-menu] .nr a,nav[data-menu] .nr span{white-space:nowrap}
nav[data-menu] .rt-burger{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:12px;background:none;border:1px solid currentColor;border-radius:6px;color:inherit;font-size:20px;line-height:1;cursor:pointer}
nav[data-menu] [id="rt-menu"]{display:none!important}
nav[data-menu].rt-open [id="rt-menu"]{display:flex!important;flex-direction:column;position:absolute;top:100%;left:0;right:0;z-index:95;background:var(--bg,#0E0E10);padding:6px 20px 14px;border-bottom:1px solid rgba(255,255,255,.12)}
nav[data-menu].rt-open [id="rt-menu"] a{margin:0!important;padding:12px 0;font-size:15px}
nav[data-menu].rt-open [id="rt-menu"] a span{margin:0!important}
}
/* No horizontal overflow from 320 to 1024px */
html,body{max-width:100%;overflow-x:clip}
img,video,iframe,table{max-width:100%}
h1,h2,h3{overflow-wrap:break-word}
/* WhatsApp float: above the cookie bar (--rtcb set by consent.js), hidden on mobile while the booking form is on screen (nav-menu.js) */
body .wafloat{bottom:calc(18px + var(--rtcb,0px))!important}
@media(max-width:768px){body.wa-off .wafloat{display:none!important}}

