/* Always start a browser refresh at the top, including a saved hash. */
(()=>{const reload=performance.getEntriesByType('navigation')[0]?.type==='reload';if(!reload)return;history.scrollRestoration='manual';const top=()=>window.scrollTo({top:0,left:0,behavior:'instant'});top();window.addEventListener('load',()=>{top();requestAnimationFrame(top);setTimeout(top,180);},{once:true});window.addEventListener('pageshow',e=>{if(!e.persisted)top();});})();
/* Gold SVG signature — brown curtain, version 2. Original backed up separately. */
(()=>{
const root=document.documentElement;
const home=['/','/ar','/en'].includes(location.pathname.replace(/\/+$/,'')||'/');
if(!home){root.classList.add('rr-startup-released');return;}
if(document.getElementById('rr-signature'))return;
const reduced=matchMedia('(prefers-reduced-motion: reduce)').matches;
const svgMarkup="\n";
let overlay,done=false,observer;const inertState=new Map();
const started=performance.now(),delay=ms=>new Promise(r=>setTimeout(r,ms));
function clean(){if(done)return;root.dataset.rrIntroExit=overlay?.dataset.phase==='curtain'?'curtain':'fallback';done=true;clearTimeout(watchdog);observer?.disconnect();root.classList.add('rr-startup-released');root.classList.remove('rr-signature-active');overlay?.remove();inertState.forEach((old,el)=>{if(el.isConnected)el.inert=old;});}
const watchdog=setTimeout(clean,9500);
async function mount(){if(done||overlay||!document.body)return;observer?.disconnect();
overlay=document.createElement('div');overlay.id='rr-signature';overlay.className='rr-gold-loader';
overlay.setAttribute('role','status');overlay.setAttribute('aria-label','جارٍ تحميل منتجع الصخرة');
const mark=document.createElement('div');mark.className='rr-gold-mark';mark.setAttribute('aria-hidden','true');mark.innerHTML=svgMarkup;overlay.append(mark);document.body.prepend(overlay);
root.classList.add('rr-signature-active');
for(const el of document.body.children){if(el!==overlay&&el instanceof HTMLElement&&!['SCRIPT','STYLE','LINK'].includes(el.tagName)){inertState.set(el,el.inert);el.inert=true;}}
overlay.addEventListener('wheel',e=>e.preventDefault(),{passive:false});overlay.addEventListener('touchmove',e=>e.preventDefault(),{passive:false});
try{
const paths=[...mark.querySelectorAll('path')];const bounds=paths.map(p=>p.getBBox());
const minY=Math.min(...bounds.map(b=>b.y)),maxY=Math.max(...bounds.map(b=>b.y));
paths.forEach((p,i)=>{const len=p.getTotalLength(),progress=(bounds[i].y-minY)/Math.max(1,maxY-minY),wait=progress*700;
p.style.fill='#ffd892';p.style.stroke='#ffd892';p.style.strokeWidth='1.15';p.style.strokeLinejoin='round';p.style.strokeLinecap='round';p.style.vectorEffect='non-scaling-stroke';
if(!reduced){p.style.fillOpacity='0';p.style.strokeDasharray=String(len);p.style.strokeDashoffset=String(len);
p.animate([{strokeDashoffset:len},{strokeDashoffset:0}],{duration:1900,delay:wait,easing:'cubic-bezier(.3,.1,.25,1)',fill:'forwards'});
p.animate([{fillOpacity:0},{fillOpacity:1}],{duration:650,delay:wait+1450,easing:'ease-in-out',fill:'forwards'});}
});
const loaded=document.readyState==='complete'?Promise.resolve():new Promise(r=>window.addEventListener('load',r,{once:true}));
const fonts=document.fonts?.ready||Promise.resolve();
const heroReady=new Promise(resolve=>{let n=0;const check=()=>{const v=document.querySelector('[component-name="video-hero"]')?.shadowRoot?.querySelector('video');if((v&&v.readyState>=2)||++n>=25){resolve();return;}setTimeout(check,120)};check();});
await Promise.race([Promise.all([loaded,fonts,heroReady,delay(reduced?120:2900)]),delay(6500)]);
if(done)return;
window.scrollTo({top:0,left:0,behavior:'instant'});
if(reduced){await overlay.animate([{opacity:1},{opacity:0}],{duration:180,fill:'forwards'}).finished;}
else{await mark.animate([{opacity:1,transform:'translateY(0)'},{opacity:0,transform:'translateY(-8px)'}],{duration:280,easing:'ease-in',fill:'forwards'}).finished;
overlay.dataset.phase='curtain';await overlay.animate([{clipPath:'inset(0 0 0% 0)'},{clipPath:'inset(0 0 100% 0)'}],{duration:1100,easing:'cubic-bezier(.76,0,.24,1)',fill:'forwards'}).finished;}
}catch(e){console.warn('[Rock Resort signature]',e);}finally{clean();}
}
if(document.body)mount();else{observer=new MutationObserver(mount);observer.observe(root,{childList:true});}
window.addEventListener('pageshow',e=>{if(e.persisted)clean();});
})();
/* Add custom JS code below */
(function () {
var css = `
section.video-hero{position:relative!important;min-height:800px;overflow:hidden;isolation:isolate}
section.video-hero .video-background{position:absolute!important;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
/* الـ gradient زي فيجما */
section.video-hero .overlay{position:absolute!important;inset:0;z-index:1;opacity:1!important;pointer-events:none;
background:linear-gradient(to top,#4b3621 0%,rgba(75,54,33,.5) 50%,rgba(0,0,0,.6) 100%)!important}
/* المحتوى: يمين، وتحت النص شوية زي التصميم */
section.video-hero .content{position:absolute!important;inset:0;z-index:2;display:flex!important;flex-direction:column;
align-items:flex-start!important;justify-content:center!important;text-align:start!important;
padding:130px 70px 0!important;box-sizing:border-box}
section.video-hero .title{font-family:"Thmanyah Serif Text","thmanyah serif text",serif!important;font-weight:700!important;
font-size:clamp(48px,8vw,100px)!important;line-height:.72!important;letter-spacing:-1.8px;color:#fff!important;margin:0 0 76px!important}
section.video-hero .description{font-family:"Thmanyah Serif Text","thmanyah serif text",serif!important;font-weight:400!important;
font-size:clamp(20px,2.5vw,32px)!important;line-height:28px!important;color:rgba(255,255,255,.9)!important;margin:0 0 92px!important}
section.video-hero .cta-button{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;padding:16px 34px!important;
border:2px solid #ffd892!important;border-radius:12px!important;background:transparent!important;color:#ffd892!important;
font-family:"Thmanyah Serif Text","thmanyah serif text",serif!important;font-weight:700!important;font-size:16px!important;line-height:24px!important;
text-decoration:none!important;transition:background .25s ease,color .25s ease}
section.video-hero .cta-button:hover{background:#ffd892!important;color:#4b3621!important}
-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15.5 8.5l-2 5-5 2 2-5z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15.5 8.5l-2 5-5 2 2-5z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat}
/* سهم السكرول */
section.video-hero::before{content:"";position:absolute;left:50%;bottom:52px;z-index:2;width:10px;height:10px;
border-right:2px solid #ffd892;border-bottom:2px solid #ffd892;transform:translateX(-50%) rotate(45deg);
animation:rr-scroll-hint 1.8s ease-in-out infinite}
@keyframes rr-scroll-hint{0%,100%{transform:translateX(-50%) translateY(0) rotate(45deg);opacity:.6}
50%{transform:translateX(-50%) translateY(8px) rotate(45deg);opacity:1}}
@media (max-width:767px){
section.video-hero{min-height:640px}
section.video-hero .content{padding:100px 24px 0!important}
section.video-hero .title{line-height:1!important;margin-bottom:40px!important}
section.video-hero .description{margin-bottom:48px!important}
}`;
function inject() {
var host = document.querySelector('[component-name="video-hero"]');
if (!host || !host.shadowRoot) return false;
if (host.shadowRoot.getElementById('rr-hero-css')) return true;
var s = document.createElement('style');
s.id = 'rr-hero-css';
s.textContent = css;
host.shadowRoot.appendChild(s);
return true;
}
if (!inject()) {
var mo = new MutationObserver(function () { if (inject()) mo.disconnect(); });
mo.observe(document.documentElement, { childList: true, subtree: true });
}
})();
/* ROCK RESORT — GSAP scroll choreography v3: one reveal per content group */
(() => {
'use strict';
if(window.__rrScrollMotion)return;window.__rrScrollMotion=true;
const reduce=matchMedia('(prefers-reduced-motion: reduce)');if(reduce.matches)return;
const pending=new Map(),seen=new WeakSet(),observed=new WeakSet(),active=new Set();
let frame=0,stopped=false;
const mobile=matchMedia('(max-width:767px)').matches;
function reveal(el){
const state=pending.get(el);if(!state)return;
pending.delete(el);el.setAttribute('data-rr-motion','played');
if(reduce.matches){el.style.removeProperty('opacity');return;}
const tween=gsap.to(el,{opacity:state.opacity,duration:mobile?.55:.7,ease:'power2.out',overwrite:'auto',onComplete(){el.style.removeProperty('opacity');active.delete(tween);}});active.add(tween);
}
function check(){frame=0;if(stopped||document.getElementById('rr-signature'))return;
pending.forEach((state,el)=>{if(!el.isConnected){pending.delete(el);return;}
const b=el.getBoundingClientRect();if(b.top0&&b.width>0)reveal(el);
});
}
function schedule(){if(!frame)frame=requestAnimationFrame(check);}
function register(el){
if(seen.has(el)||!el.isConnected)return;seen.add(el);
const css=getComputedStyle(el),b=el.getBoundingClientRect();
if(css.display==='none'||css.visibility==='hidden'||b.width<8||b.height<8)return;
// Existing CSS animations and moving gallery tracks keep their own animation.
if(css.animationName!=='none'||el.closest('.track,.slider-track,.swiper-wrapper,.swiper-slide-duplicate'))return;
// Never hide content that is already visible, or replay elements above the viewport.
if(b.top{
if(el.closest('nav,[role="navigation"],#rr-signature'))return;
if(el.getRootNode()===document&&!el.closest('main,#main-content,footer'))return;
let parent=el.parentElement;
while(parent){if(selected.has(parent))return;parent=parent.parentElement;}
// A text link inside a heading belongs to the heading's single reveal.
if(el.matches('a,button,img')&&el.closest('h1,h2,h3,h4'))return;
if(!selected.has(el)&&el.matches('a')&&el.querySelector('h1,h2,h3,h4,p,img'))return;
register(el);
});
root.querySelectorAll('*').forEach(el=>{if(el.shadowRoot)scan(el.shadowRoot);});
if(!observed.has(root)){
observed.add(root);let timer;
new MutationObserver(records=>{if(records.some(r=>r.addedNodes.length)){clearTimeout(timer);timer=setTimeout(()=>scan(root),250);}}).observe(root,{childList:true,subtree:true});
}
}
function finish(){stopped=true;pending.forEach((_,el)=>el.style.removeProperty('opacity'));pending.clear();active.forEach(t=>t.progress(1));active.clear();}
async function boot(){
try{
if(!window.gsap)await new Promise((resolve,reject)=>{const s=document.createElement('script');s.src='https://cdn.jsdelivr.net/npm/gsap@3.13.0/dist/gsap.min.js';s.onload=resolve;s.onerror=reject;document.head.appendChild(s);});
let ticks=0;const gate=setInterval(()=>{
if(document.getElementById('rr-signature')&&++ticks<80)return;
clearInterval(gate);scan(document);
let rounds=0;const hydration=setInterval(()=>{scan(document);if(++rounds>=10)clearInterval(hydration);},1000);
},150);
window.addEventListener('scroll',schedule,{passive:true});
// Keyboard users can always reveal a focused control immediately.
document.addEventListener('focusin',event=>event.composedPath().forEach(el=>{if(pending.has(el))reveal(el);}),true);
reduce.addEventListener('change',()=>{if(reduce.matches)finish();});
window.addEventListener('pageshow',e=>{if(e.persisted)finish();});
}catch(e){finish();console.warn('Rock Resort motion unavailable; content remains visible.',e);}
}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',boot,{once:true});else boot();
})();
/* Rock Resort: align event CTA to the preceding gallery content edge */
(()=>{ const apply=()=>{ const host=document.querySelector('[component-name="cta-banner"]'), gallery=document.querySelector('[component-name="vertical-mosaic-gallery"]'); if(!host?.shadowRoot||!gallery?.shadowRoot)return; const edge=gallery.shadowRoot.querySelector('.gallery-wrapper');if(!edge)return; const inset=Math.max(0,host.getBoundingClientRect().right-edge.getBoundingClientRect().right);host.style.setProperty('--rr-cta-right-edge',inset+'px');let style=host.shadowRoot.getElementById('rr-cta-edge-align');if(!style){style=document.createElement('style');style.id='rr-cta-edge-align';host.shadowRoot.appendChild(style);}style.textContent='.rr-cta-container{box-sizing:border-box!important;width:100%!important;max-width:none!important;padding-right:var(--rr-cta-right-edge,24px)!important}.rr-cta-text-block{padding:0!important;align-items:flex-end!important;min-width:0!important;max-width:100%!important}.rr-cta-headline,.rr-cta-subtitle{text-align:right!important;white-space:normal!important;max-width:100%!important}@media(min-width:1024px){.rr-cta-logo-wrapper{flex:0 0 36%!important;justify-content:center!important}}@media(max-width:639px){.rr-cta-section{padding-inline:0!important}.rr-cta-container{padding-left:var(--rr-cta-right-edge,24px)!important}.rr-cta-text-block{width:100%!important}.rr-cta-button{align-self:flex-end!important}}';}; const boot=()=>{apply();let n=0;const t=setInterval(()=>{apply();if(++n>=30)clearInterval(t)},500);addEventListener('resize',apply,{passive:true});document.fonts?.ready.then(apply);};if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',boot,{once:true});else boot();})();
/* Rock Resort: review initials and pagination remain connected to editable cards */
(()=>{function apply(){const section=document.querySelector('.s-block--custom-testimonials');if(!section)return;const title=section.querySelector('.s-reviews-header');if(title)title.textContent='آراء عملائنا';const cards=[...section.querySelectorAll('.s-reviews-testimonial')];cards.forEach(card=>{const name=card.querySelector('.s-reviews-testimonial__info h2')?.textContent.trim()||'';const avatar=card.querySelector('.s-reviews-testimonial__avatar');if(avatar&&!avatar.querySelector('.rr-review-initials')){const initials=document.createElement('span');initials.className='rr-review-initials';initials.textContent=name.split(/\s+/).filter(Boolean).slice(0,2).map(s=>s[0]).join('.');avatar.appendChild(initials);}});if(!section.querySelector('.rr-review-dots')){const dots=document.createElement('div');dots.className='rr-review-dots';dots.style.cssText='display:flex;justify-content:center;gap:8px;margin-top:40px;direction:rtl';cards.forEach((card,i)=>{const dot=document.createElement('button');dot.type='button';dot.setAttribute('aria-label','عرض التقييم '+(i+1));dot.style.cssText='height:8px;width:'+(i===0?28:10)+'px;border:0;border-radius:99px;background:'+(i===0?'#7a3c0e':'rgba(122,60,14,.3)')+';padding:0;cursor:pointer';dot.addEventListener('click',()=>{const sw=section.querySelector('.swiper')?.swiper;if(sw)sw.slideTo(i);});dots.appendChild(dot);});section.appendChild(dots);const sw=section.querySelector('.swiper')?.swiper;if(sw)sw.on('slideChange',()=>[...dots.children].forEach((b,i)=>{b.style.width=i===sw.realIndex?'28px':'10px';b.style.background=i===sw.realIndex?'#7a3c0e':'rgba(122,60,14,.3)';}));}}
const boot=()=>{apply();let n=0;const t=setInterval(()=>{apply();if(++n>=20)clearInterval(t)},500);};if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',boot,{once:true});else boot();})();
/* Figma section geometry: decorations do not participate in document flow */
(()=>{const styles={
'about-rock-resort':'.section-container{padding:0 48px!important}.title-wrapper{height:48px;margin-bottom:50px!important}.section-title{line-height:48px!important}.content-wrapper{max-width:1137px!important}.section-content{line-height:37px!important}@media(max-width:767px){.section-container{padding-inline:24px!important}.title-wrapper{height:auto;margin-bottom:32px!important}.section-title{line-height:1.2!important}.section-content{line-height:30px!important}}',
'services-bento':'.rr-services-section{padding:0 48px!important;max-width:1280px;margin:0 auto;box-sizing:border-box}.rr-services-title{line-height:48px!important}.rr-services-header{height:48px;margin-bottom:64px!important}.rr-services-grid{max-width:1184px!important}@media(max-width:767px){.rr-services-section{padding:0 24px!important}.rr-services-header{height:auto;margin-bottom:40px!important}.rr-services-title{line-height:1.2!important}}',
'vertical-mosaic-gallery':'.section-container{padding:0 48px!important;max-width:1280px;box-sizing:border-box;--gallery-height:692px!important}.header{height:48px;margin-bottom:64px!important}.title{font-size:48px!important;line-height:48px!important;isolation:isolate}.title::after{top:35px!important;bottom:auto!important;left:50%!important;transform:translateX(-50%)!important;width:312px!important;height:26px!important;background:rgba(164,86,9,.11)!important;opacity:1!important;z-index:-1!important}@media(max-width:767px){.section-container{padding:0 24px!important;--gallery-height:600px!important}.header{height:auto;margin-bottom:40px!important}.title{font-size:32px!important;line-height:1.2!important}.title::after{top:24.5px!important;width:218.4px!important;height:18.2px!important}}',
'cta-banner':'.rr-cta-section{min-height:396px!important}@media(max-width:639px){.rr-cta-section{min-height:0!important}}',
'trust-map':'.s-block-trust-map{padding:0!important}.s-block-trust-map__wrapper.container{max-width:1280px!important;padding:0 48px!important;gap:64px!important}.s-block-trust-map__title{height:48px!important;line-height:48px!important}.s-block-trust-map__iframe{height:500px!important}@media(max-width:767px){.s-block-trust-map__wrapper.container{padding:0 24px!important;gap:40px!important}.s-block-trust-map__title{height:auto!important;line-height:1.2!important}.s-block-trust-map__iframe{height:360px!important}}'
};function apply(){for(const [name,css]of Object.entries(styles)){document.querySelectorAll('[component-name="'+name+'"]').forEach(host=>{if(!host.shadowRoot)return;let s=host.shadowRoot.getElementById('rr-figma-spacing');if(!s){s=document.createElement('style');s.id='rr-figma-spacing';host.shadowRoot.appendChild(s);}if(s.textContent!==css)s.textContent=css;});}}function boot(){apply();let n=0;const t=setInterval(()=>{apply();if(++n>=30)clearInterval(t)},500);}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',boot,{once:true});else boot();})();
/* One-time SVG stroke drawing. Decorative only; no layout shifts. */
(()=>{if(window.__rrMountainInk)return;window.__rrMountainInk=true;const reduce=matchMedia('(prefers-reduced-motion: reduce)'),animations=new Set();const source=atob('PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9Ijg3MS45MTEiIGhlaWdodD0iNDAwLjMwMSIgdmlld0JveD0iMCAwIDg3MS45MTEgNDAwLjMwMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTM2MC4yNzMgMTU2LjY1MkMzNjEuMTM0IDE1MC42MTYgMzYyLjEzNyAxNDMuODQ4IDM2My4xMzMgMTM3LjA4QzM2Ni4xMDQgMTE2Ljc3NSAzNjkuMDY4IDk2LjQ2MjQgMzY5LjA2OCA5Ni40NjI0TDM5Ni44MyA3Ni41OTU3TDM5Ny4wMDUgNzYuODY2NUw0MzEuMzk1IDEzMy4yMDJDNDI3LjgyNiAxMzguNTI5IDQxOC4xMzkgMTUzLjA0NSA0MDYuMjQ2IDE3MC43MjJDNDAyLjI2MyAxNzYuNjIyIDM5OC4wNTcgMTgyLjg0OSAzOTMuNzQ3IDE4OS4yMjdDMzc0LjEwMyAyMTAuOTQ5IDM2NC4zMiAyMzguMzk2IDM0NC4xOTcgMjU5LjE3OEMzNjEuMDE0IDI0NS4yNjcgMzc3Ljg0NyAyMzEuMzQ5IDM5Mi43ODMgMjE1LjY4NkMzOTguNjQ2IDIxMC4yNTYgNDA0LjI3OCAyMDUuMDMyIDQwOS4xOTMgMjAwLjQ1NEM0MTkuMDE2IDE5MS4zMzcgNDI1Ljk0NiAxODQuODk1IDQyNS45NDYgMTg0Ljg5NUw0ODIuNTg2IDIzMC4yMjZDNDgyLjU4NiAyMzAuMjI2IDQ4NC4wNjcgMTkxLjg5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Mjc5LjE3OCAxODUuMzE3IDI2OC4zNiAyMDcuNDA1QzI2Ni41NjcgMjExLjA4NCAyNjQuNjc5IDIxNC45MzggMjYyLjcyIDIxOC45MjdDMjUxLjU5OSAyMzAuMDM1IDI1NS4yODcgMjQ3LjAzNSAyNDMuOTY3IDI1Ny4yMTlDMjQxLjgzMiAyNjEuNTc1IDIzOS42OTcgMjY1Ljk2MiAyMzcuNTcgMjcwLjI4NkMyMTguNDQ0IDMwOS4zMzQgMjAxLjA1MyAzNDQuODQgMjAxLjA1MyAzNDQuODRDMjAxLjA1MyAzNDQuODQgMjIwLjE4IDMyNC4zNjggMjQ1LjA1MSAyOTcuNzU3QzI0OC42MDMgMjkzLjkzNSAyNTIuMjQ0IDI5MC4wNDkgMjU1Ljg2MSAyODYuMTU1QzI2NS45MjIgMjczLjI0IDI3NS45NTEgMjU5Ljg3OSAyODYuODY1IDI0Ny4zOTNDMjkwLjQ5IDI0My4yMTMgMjk0LjIzNCAyMzkuMTQ0IDI5OC4xMzcgMjM1LjExNUMzMTIuNTk2IDIwNS4xNiAzNjAuMTYyIDE5NC4xMzIgMzYwLjI3MyAxNTYuNjUyWiIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZT0iIzdBM0MwRSIvPgo8L3N2Zz4K');const io='IntersectionObserver'in window?new IntersectionObserver(entries=>{for(const entry of entries){if(!entry.isIntersecting||scrollY<16||document.getElementById("rr-signature"))continue;const el=entry.target;io.unobserve(el);if(el.dataset.inkPlayed)continue;el.dataset.inkPlayed='true';for(const path of el.querySelectorAll('path')){if(reduce.matches){path.style.strokeDashoffset='0';continue;}const length=Number(path.dataset.inkLength);const a=path.animate([{strokeDashoffset:String(length)},{strokeDashoffset:'0'}],{duration:3400,easing:'cubic-bezier(.3,.05,.35,1)',fill:'forwards'});animations.add(a);a.finished.then(()=>{path.style.strokeDashoffset='0';a.cancel();animations.delete(a);}).catch(()=>{});}}},{threshold:0.08,rootMargin:'0px 0px -12% 0px'}):null;
function add(parent){if(!parent||parent.querySelector(':scope > .rr-mountain-ink'))return;const doc=new DOMParser().parseFromString(source,'image/svg+xml');const svg=doc.documentElement;if(svg.nodeName!=='svg')return;const layer=document.createElement('div');layer.className='rr-mountain-ink';layer.setAttribute('aria-hidden','true');layer.appendChild(document.importNode(svg,true));const paths=layer.querySelectorAll('path');parent.appendChild(layer);try{paths.forEach(p=>{const length=p.getTotalLength();p.dataset.inkLength=length;p.style.strokeDasharray=length+' '+length;p.style.strokeDashoffset=io&&!reduce.matches?String(length):'0';});parent.classList.add('rr-mountain-ready');if(io&&!reduce.matches)io.observe(layer);else layer.dataset.inkPlayed='true';}catch(e){layer.remove();parent.classList.remove('rr-mountain-ready');}}
function scan(){add(document.querySelector('.s-block--bundle-services-bento'));add(document.querySelector('.s-block--custom-testimonials'));}function boot(){scan();let n=0;const timer=setInterval(()=>{scan();if(++n>=30)clearInterval(timer)},500);}reduce.addEventListener('change',()=>{if(!reduce.matches)return;io?.disconnect();animations.forEach(a=>a.finish());document.querySelectorAll('.rr-mountain-ink path').forEach(p=>p.style.strokeDashoffset='0');});if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',boot,{once:true});else boot();})();
/* Native footer layout: all contact/menu/payment data remains sourced from Salla. */
(()=>{function apply(){const f=document.querySelector('footer.store-footer'),grid=f?.querySelector('.store-footer__inner>.container');if(!grid)return;f.classList.add('rr-footer');grid.classList.add('rr-footer-grid');const cols=[...grid.children].filter(n=>n.tagName==='DIV'&&!n.classList.contains('rr-footer-follow'));if(cols.length<3)return;cols[0].classList.add('rr-footer-brand');cols[1].classList.add('rr-footer-links');cols[2].classList.add('rr-footer-contact');const brandLink=cols[0].querySelector('a'),name=brandLink?.querySelector('h3')?.textContent.trim()||brandLink?.textContent.trim()||'Rock Resort';const cta=document.querySelector('[component-name="cta-banner"]')?.shadowRoot;const source=cta?.querySelector('.rr-cta-logo')?.src||document.querySelector('header img')?.src;if(source&&brandLink){let img=brandLink.querySelector('.rr-footer-logo');if(!img){img=document.createElement('img');img.className='rr-footer-logo';brandLink.prepend(img);}img.src=source;img.alt=name;img.width=122;img.height=97;f.style.setProperty('--rr-footer-logo','url("'+source.replace(/"/g,'')+'")');}let follow=grid.querySelector('.rr-footer-follow');if(!follow){follow=document.createElement('div');follow.className='rr-footer-follow';const h=document.createElement('h3');h.textContent='تابعنا';follow.appendChild(h);const social=cols[0].querySelector('salla-social');if(social)follow.appendChild(social);grid.appendChild(follow);const apps=grid.querySelector('salla-apps-icons');if(apps)follow.appendChild(apps);}const wa=f.querySelector('salla-contacts a[href*="wa.me/"]');if(wa&&!follow.querySelector('.rr-footer-whatsapp')){const a=document.createElement('a');a.className='rr-footer-whatsapp';a.href=wa.href;a.target='_blank';a.rel='noopener noreferrer';a.setAttribute('aria-label','تواصل عبر واتساب');const icon=wa.querySelector('.s-contacts-icon');if(icon)a.appendChild(icon.cloneNode(true));const label=document.createElement('span');label.textContent='واتساب';a.appendChild(label);follow.appendChild(a);}const map=document.querySelector('.s-block--bundle-trust-map');if(map&&!cols[2].querySelector('.rr-footer-location')){if(!map.id)map.id='rr-store-location';const a=document.createElement('a');a.className='rr-footer-location';a.href='#'+map.id;a.textContent='موقعنا على الخريطة';cols[2].appendChild(a);}const bottom=[...f.children].find(e=>e.classList.contains('container'));if(bottom){bottom.classList.add('rr-footer-bottom');const credit=bottom.querySelector('.copyright-text');if(credit&&!credit.querySelector('.rr-footer-copyright')){const line=document.createElement('span');line.className='rr-footer-copyright';line.textContent='© '+new Date().getFullYear()+' '+name+'. جميع الحقوق محفوظة';credit.prepend(line);}}}function boot(){apply();let n=0;const timer=setInterval(()=>{apply();if(++n>=20)clearInterval(timer)},500);}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',boot,{once:true});else boot();})();
/* Icon-only contact links and merchant-provided tourism licensing statement. */
(()=>{const pin='';function apply(){const f=document.querySelector('.rr-footer');if(!f)return;f.querySelectorAll('.s-contacts-item').forEach(a=>{const label=a.href.startsWith('tel:')?'اتصل بنا':'تواصل عبر واتساب';a.title=label;a.setAttribute('aria-label',label);});const map=f.querySelector('.rr-footer-location');if(map&&!map.querySelector('svg')){map.setAttribute('aria-label','موقعنا على الخريطة');map.title='موقعنا على الخريطة';map.innerHTML=pin;}f.querySelectorAll('.rr-footer-whatsapp,.s-social-link').forEach(a=>{if(a.classList.contains('rr-footer-whatsapp'))a.title='واتساب';else a.title=a.getAttribute('aria-label')||a.title||'حساب التواصل الاجتماعي';});const brand=f.querySelector('.rr-footer-brand');if(brand&&!brand.querySelector('.rr-footer-tourism-license')){const p=document.createElement('p');p.className='rr-footer-tourism-license';p.innerHTML='مرخص من وزارة السياحة السعودية';const badge=brand.querySelector('salla-trust-badges');brand.insertBefore(p,badge?.parentElement||null);}}function boot(){apply();let n=0;const t=setInterval(()=>{apply();if(++n>=20)clearInterval(t)},500);}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',boot,{once:true});else boot();})();
/* Labelled contact details; email explicitly approved for this footer. */
(()=>{const svg=(body)=>'';const icons={phone:svg(''),email:svg(''),location:svg('')};function apply(){const f=document.querySelector('.rr-footer'),contact=f?.querySelector('.rr-footer-contact'),follow=f?.querySelector('.rr-footer-follow');if(!contact||!follow)return;let details=contact.querySelector('.rr-footer-contact-details');if(!details){details=document.createElement('div');details.className='rr-footer-contact-details';contact.appendChild(details);}const phone=f.querySelector('salla-contacts a[href^="tel:"]')?.getAttribute('href')||'tel:+966503998282',email=f.querySelector('salla-contacts a[href^="mailto:"]')?.getAttribute('href')||'mailto:rocks.resort.hail@gmail.com',location=f.querySelector('.rr-footer-location')?.getAttribute('href')||'#rr-store-location';const rows=[['phone','رقم الهاتف:',phone.slice(4),phone],['email','البريد الإلكتروني:',email.slice(7),email],['location','الموقع الجغرافي:','حائل، المملكة العربية السعودية',location]];rows.forEach(([key,label,value,href])=>{let row=details.querySelector('[data-contact="'+key+'"]');if(!row){row=document.createElement('a');row.className='rr-footer-contact-row';row.dataset.contact=key;const icon=document.createElement('span');icon.className='rr-footer-detail-icon';icon.innerHTML=icons[key];const words=document.createElement('span');words.className='rr-footer-detail-text';const title=document.createElement('span');title.className='rr-footer-detail-label';title.textContent=label;const text=document.createElement('span');text.className='rr-footer-detail-value';words.append(title,text);row.append(icon,words);details.appendChild(row);}row.href=href;const text=row.querySelector('.rr-footer-detail-value');if(text.textContent!==value)text.textContent=value;});if(!follow.querySelector('.rr-footer-community')){const p=document.createElement('p');p.className='rr-footer-community';p.textContent="انضم إلى مجتمعنا على شبكات التواصل الاجتماعي\nوشاهد أحدث اللقطات الحية والعروض الخاصة.";follow.insertBefore(p,follow.querySelector('salla-social')||follow.querySelector('.rr-footer-whatsapp'));}}function boot(){apply();let n=0;const t=setInterval(()=>{apply();if(++n>=20)clearInterval(t)},500);}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',boot,{once:true});else boot();})();
/* Section anchors and typography; editor content remains editable. */
(()=>{function apply(){const service=document.querySelector('section[component-id="1182025998"]');if(service){service.id='rr-services';service.style.scrollMarginTop='100px';}const host=document.querySelector('[component-name="video-hero"]'),r=host?.shadowRoot;if(r&&!r.getElementById('rr-hero-title-120')){const s=document.createElement('style');s.id='rr-hero-title-120';s.textContent='section.video-hero .title{font-size:120px!important;white-space:nowrap!important;line-height:1.12!important;letter-spacing:-1.8px!important;max-width:100%}@media(max-width:1023px){section.video-hero .title{font-size:clamp(36px,9vw,92px)!important;letter-spacing:-.5px!important}}@media(max-width:767px){section.video-hero .title{font-size:56px!important}}';r.append(s);}const a=r?.querySelector('.cta-button');if(a&&!a.dataset.rrServicesAnchor){a.dataset.rrServicesAnchor='true';a.addEventListener('click',e=>{const target=document.getElementById('rr-services');if(!target)return;e.preventDefault();history.replaceState(null,'','#rr-services');target.scrollIntoView({behavior:matchMedia('(prefers-reduced-motion:reduce)').matches?'instant':'smooth',block:'start'});});}if(location.pathname.endsWith('/page-578967277'))document.body.classList.add('rr-about-page');}
function boot(){apply();let n=0;const t=setInterval(()=>{apply();if(++n>=40)clearInterval(t)},250);}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',boot,{once:true});else boot();})();