/* Almlakia v5.1 deployment hotfix — fully scoped, loaded after all theme CSS. */
:root{--safe-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:90px}html,body{max-width:100%;overflow-x:clip}
body{min-width:320px}img,video,iframe{max-width:100%}
.container{width:min(var(--max),calc(100% - 48px))}
/* Keep every slide in a single composite area. builder-site.css previously changed position to relative. */
.hero{isolation:isolate;min-height:600px;height:min(790px,100svh);max-height:none}
.hero .hero-slide{position:absolute!important;inset:0!important;height:100%;width:100%;background-size:cover;background-position:center center;overflow:hidden;opacity:0;visibility:hidden;z-index:1}
.hero .hero-slide.active{opacity:1;visibility:visible;z-index:2}
.hero .hero-slide .hero-inner{height:100%;min-height:0}
.hero .hero-slide:before{pointer-events:none}
.hero .builder-hero-video{position:absolute;inset:0;z-index:0}
.hero .hero-halo{z-index:2}
.hero .hero-bottom{z-index:6;pointer-events:none}
.hero .slide-control,.hero .slide-control *{pointer-events:auto}
.hero-copy{position:relative;z-index:3;max-width:min(660px,100%);padding-top:65px}
.hero-copy h1{font-size:clamp(45px,6.1vw,90px);line-height:1.14;overflow-wrap:anywhere;text-wrap:balance;max-width:12ch}
.hero-copy p{font-size:clamp(15px,1.28vw,19px);line-height:1.7;max-width:57ch;text-wrap:pretty}
.hero-links{align-items:center;flex-wrap:wrap}
.hero-links .button{max-width:100%;white-space:normal;text-align:center}
/* Consistent RTL and LTR: no reversed English text, and no left/right overflow. */
[dir="rtl"] .hero-inner{justify-content:flex-start}
[dir="ltr"] .hero-inner{justify-content:flex-start}
[dir="rtl"] .hero-copy{text-align:start}
[dir="ltr"] .hero-copy{text-align:start}
[dir="rtl"] .hero-slide:before{background:linear-gradient(0deg,var(--bg),transparent 35%),linear-gradient(90deg,rgba(10,7,9,.80),rgba(10,7,9,.35) 65%,rgba(10,7,9,.2))}
[dir="ltr"] .hero-slide:before{background:linear-gradient(0deg,var(--bg),transparent 35%),linear-gradient(90deg,rgba(10,7,9,.78),rgba(10,7,9,.4) 64%,rgba(10,7,9,.25))}
/* Fix grid overflow from long titles, URLs, untranslated tags and phone numbers. */
:is(.destination-grid,.tours-grid,.services-grid,.branch-grid,.footer-grid,.v4-grid,.builder-gallery-grid,.builder-review-grid)>*{min-width:0}
:is(.tour-card,.branch-card,.v4-guide,.v4-person,.v4-story,.v4-review,.v4-branch,.service-card,.destination-card){overflow-wrap:anywhere}
:is(.tour-card,.branch-card,.v4-guide,.v4-person,.v4-story,.v4-review,.v4-branch) :is(h2,h3,p,small,strong){overflow-wrap:anywhere}
:is(input,textarea,select){max-width:100%;min-width:0}
button,a{touch-action:manipulation}
/* Header nav on laptops and medium screens */
.header-inner{gap:clamp(12px,2vw,26px);padding-inline:clamp(14px,2.5vw,36px)}
.nav-desktop{min-width:0;gap:clamp(12px,1.15vw,22px)}
.nav-desktop a{white-space:nowrap;font-size:clamp(12px,.9vw,14px)}
.brand-label strong{font-size:clamp(18px,1.5vw,27px)}
.brand-label small{white-space:normal;max-width:170px}
.header-actions{margin-inline-start:auto}
/* Textual section and hero in both languages */
.section-heading{min-width:0}.section-heading>div{min-width:0}.section-heading h2{text-wrap:balance}
.v4-grid-4,.v4-grid-3{min-width:0}
.v4-metrics{min-width:0}
@media(max-width:1200px){.header-contact{display:none}.header-inner{gap:12px}.nav-desktop{gap:12px}}
@media(max-width:1050px){
 .header-inner{height:76px;padding-inline:18px;display:flex;gap:12px}
 .nav-desktop{display:none!important}.menu-toggle{display:block!important;flex:none;margin-inline-start:0}
 .brand{min-width:0;gap:8px}.brand>img,.brand-icon{width:45px;height:45px;flex:none}
 .brand-label strong{font-size:21px}.brand-label small{font-size:9px;max-width:125px}
 .header-actions{gap:9px;margin-inline-start:auto}.locale-switch{margin-inline:0;padding:2px;flex:none}
 .mobile-nav:not([hidden]){display:flex!important;position:absolute;top:100%;inset-inline:0;left:0;right:0;width:100%;background:#1b1115;box-shadow:0 20px 50px #0007;flex-direction:column;max-height:calc(100dvh - 76px);overflow-y:auto;padding:10px 24px calc(24px + var(--safe-bottom));z-index:100}
 .mobile-nav a{font-size:17px;line-height:1.4;padding:13px 4px;white-space:normal;min-height:48px;display:flex;align-items:center}
 .hero{height:min(760px,90svh);min-height:540px}
 .hero-copy{padding-top:55px}
}
@media(max-width:760px){
 .container{width:calc(100% - 32px)}
 .hero{min-height:600px;height:clamp(600px,90svh,780px)}
 .hero .hero-slide{background-position:58% center}
 .hero .hero-inner{align-items:center;padding-top:62px;padding-bottom:98px}
 .hero-copy{padding-top:0;max-width:100%}
 .hero-copy .eyebrow{font-size:10px;letter-spacing:.07em;margin-bottom:10px}
 .hero-copy h1{font-size:clamp(37px,10.4vw,67px);max-width:13ch;line-height:1.22;letter-spacing:-.025em;margin-bottom:17px}
 .hero-copy p{font-size:clamp(14px,3.8vw,17px);line-height:1.65;max-width:35ch;margin-bottom:0}
 .hero-links{margin-top:22px;gap:12px}
 .hero-links .button{min-height:46px;padding:10px 17px;font-size:13px;gap:8px}
 .hero-secondary{font-size:12px}
 .hero-bottom{bottom:22px;align-items:center}
 .hero-side-note{display:none}
 .hero-bottom .slide-control{margin-inline-start:auto}
 .section{padding:55px 0}.section-heading{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-bottom:24px}
 .section-heading h2{font-size:clamp(28px,7vw,43px)}
 .destination-grid,.tours-grid,.services-grid,.branch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .destination-grid{grid-template-rows:auto}.destination-card,.destination-card.featured{grid-row:auto;min-height:200px;padding:15px}
 .tour-visual{height:170px;padding:12px}.tour-info{padding:14px}.tour-info h3{font-size:20px}.tour-info>p{min-height:0}
 .promise-section{grid-template-columns:1fr;min-height:0}.promise-media{min-height:255px}.promise-content{padding:32px 20px}
 .footer-grid{gap:25px}.footer-bottom{flex-wrap:wrap;gap:12px}
 .button{white-space:normal;min-height:44px;padding:11px 16px;gap:9px}
 .v4-grid-4,.v4-grid-3,.v4-grid{gap:14px}
 .v4-branch-photo{height:130px}
}
@media(max-width:540px){
 .header-inner{height:70px;padding-inline:12px;gap:7px}
 .brand>img,.brand-icon{width:38px;height:38px}
 .brand-label strong{font-size:clamp(16px,5.2vw,20px)}
 .brand-label small{font-size:8px;max-width:105px;line-height:1.2}
 .locale-switch{gap:0;border-radius:100px;padding:2px}
 .locale-switch a{padding:5px 7px;font-size:10px}
 .menu-toggle{height:42px;width:40px;padding:9px;margin:0}
 .mobile-nav:not([hidden]){max-height:calc(100dvh - 70px)}
 .hero{min-height:570px;height:clamp(570px,88svh,730px)}
 .hero .hero-inner{padding-top:60px;padding-bottom:90px}
 .hero-copy h1{font-size:clamp(37px,10vw,55px)}
 .hero-copy p{font-size:14px;max-width:30ch}
 .hero-links .button{padding:10px 15px}
 .slide-control{gap:9px}.slide-control button{height:36px;width:36px}
 .destination-grid,.tours-grid,.services-grid,.branch-grid{grid-template-columns:1fr}
 .destination-card,.destination-card.featured{min-height:225px}
 .tour-visual{height:225px}.tour-info h3{font-size:22px}
 .section-heading h2{font-size:32px}
 .v4-grid-3,.v4-grid-4,.v4-grid{grid-template-columns:1fr}
 .v4-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .v4-metric{min-width:0}
 .v4-page{padding-top:108px}
 .footer-bottom{flex-direction:column;align-items:flex-start}
 .branch-card{width:100%}.branch-info{padding:18px}
}
@media(max-width:380px){.brand-label small{display:none}.brand-label strong{font-size:16px}.brand>img{width:34px;height:34px}.locale-switch a{padding:4px 5px}.hero-copy h1{font-size:36px}.container{width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){.hero .hero-slide{transform:none!important}.hero-copy{animation:none!important}}
/* English typographic rhythm, while Arabic retains its dedicated headline family. */
html[dir="ltr"] :is(h1,h2,h3,h4){font-family:Inter,Arial,sans-serif;letter-spacing:-.025em}
html[dir="rtl"] :is(h1,h2,h3,h4){font-family:'El Messiri','IBM Plex Sans Arabic',sans-serif;letter-spacing:0}
