/* SAFRI — data layer: reads from window.SAFRI_DATA (injected by WordPress/PHP). Falls back to hardcoded defaults so the page still works if SAFRI_DATA is missing. */ const _D = window.SAFRI_DATA || {}; const WA_NUMBER = _D.waNumber || "923391172374"; function waLink(msg){ return `https://wa.me/${WA_NUMBER}?text=${encodeURIComponent(msg)}`; } function openWA(msg){ window.open(waLink(msg), "_blank"); } /* ---------- Stroke icon components ---------- */ const I = ({d, size=22, sw=1.6, fill="none", color="currentColor", extra}) => ( {extra||()} ); const Icons = { plane: p => , car: p => }/>, mountain:p => }/>, kaaba: p => }/>, compass: p => }/>, check: p => , spark: p => , shield: p => }/>, clock: p => }/>, star: p => , pin: p => }/>, phone: p => , mail: p => }/>, wa: ({size=22, color="currentColor"}) => ( ), arrow: p => , cal: p => }/>, users: p => }/>, quote: p => }/>, }; /* ---------- Content arrays — populated from SAFRI_DATA, with hardcoded fallbacks ---------- */ const UMRAH = _D.umrahPackages && _D.umrahPackages.length ? _D.umrahPackages : [ { tier:"Economy", name:"Sukoon Economy", nights:"14 nights", feature:false, pts:["Saudi Umrah visa + insurance","Return flights (PIA / Saudia)","Comfortable hotels near the Haram","Shared AC ground transfers","Ziyarat in Makkah & Madinah","Urdu / English-speaking Muallim"] }, { tier:"Standard", name:"Barakah Standard", nights:"14 nights", feature:true, pts:["Saudi Umrah visa + insurance","Return flights from Lahore / Islamabad","4★ hotels — short walk to the Haram","Private AC transfers","Guided Ziyarat in both cities","Dedicated Muallim + 24/7 group lead","Daily breakfast & dinner"] }, { tier:"Premium", name:"Noor Premium 5★", nights:"12 nights", feature:false, pts:["Priority Saudi visa + insurance","Premium airlines (Emirates / Qatar)","5★ hotels overlooking the Haram","Private SUV transfers","Full guided Ziyarat + historic sites","Personal Muallim concierge","Full board + Zamzam allowance"] }, ]; const TOURS = _D.tours && _D.tours.length ? _D.tours : [ { name:"Hunza Valley", days:"6 days", color:"#186060" }, { name:"Skardu & Shigar", days:"7 days", color:"#00A8F0" }, { name:"Naran Kaghan", days:"4 days", color:"#F04800" }, { name:"Swat & Kalam", days:"4 days", color:"#1FB7AE" }, { name:"Fairy Meadows", days:"5 days", color:"#186060" }, { name:"Neelum Valley", days:"5 days", color:"#00A8F0" }, { name:"Khunjerab Pass", days:"7 days", color:"#F04800" }, { name:"Deosai Plains", days:"6 days", color:"#1FB7AE" }, { name:"Kumrat Valley", days:"5 days", color:"#186060" }, { name:"Chitral & Kalash",days:"8 days", color:"#00A8F0" }, { name:"Gilgit & Astore", days:"6 days", color:"#F04800" }, { name:"Rama Meadows", days:"5 days", color:"#1FB7AE" }, ]; const VEHICLES = _D.vehicles && _D.vehicles.length ? _D.vehicles : [ { name:"City Sedan", seats:4, ex:"Corolla / City class" }, { name:"Premium SUV", seats:6, ex:"Fortuner / Sportage" }, { name:"Land Cruiser", seats:6, ex:"V8 · mountain-graded" }, { name:"Hiace (Grand)", seats:12, ex:"family / group" }, { name:"Coaster", seats:22, ex:"large groups" }, ]; const CITIES = _D.cities && _D.cities.length ? _D.cities : ["Lahore","Islamabad","Karachi","Peshawar","Multan","Faisalabad"]; const WHY = _D.why && _D.why.length ? _D.why : [ { icon:"star", t:"4.9★ across 1,200+ reviews", d:"Years of five-star journeys on Google — booked, guided and delivered by real people in Lahore." }, { icon:"shield", t:"Drivers on payroll, not apps", d:"Background-checked, English-speaking drivers we employ directly — never anonymous freelancers." }, { icon:"mountain",t:"Mountain-graded vehicles", d:"Land Cruisers and 4×4 jeeps built for the Karakoram — the right machine for northern roads." }, { icon:"kaaba", t:"Hotels chosen for the Haram", d:"We pick stays for proximity to the Haram and your comfort — never for referral fees." }, { icon:"phone", t:"24/7 WhatsApp on every trip", d:"One thread, one number, the whole journey. Someone always answers — day or night." }, { icon:"compass",t:"IATA-accredited & PIA-registered", d:"A licensed, registered tour operator — your visa, flights and details handled correctly." }, ]; const STATS = _D.stats && _D.stats.length ? _D.stats : [ { n:"12,000+", l:"travellers since 2018" }, { n:"1,800+", l:"Umrah pilgrims in 2025" }, { n:"4.9★", l:"average Google rating" }, { n:"8 yrs", l:"on the road" }, ]; const STEPS = _D.steps && _D.steps.length ? _D.steps : [ { t:"Tell us the brief", d:"Tap any button or message us on WhatsApp with your dates, group size and dream destination." }, { t:"Get a draft in 24h", d:"A real Lahore-based consultant replies within a day with a tailored itinerary — no obligation." }, { t:"Lock it in", d:"We confirm visas, flights, hotels and vehicles and share the exact package once you're happy." }, { t:"From Safri to Sukoon", d:"Show up and travel. We stay on WhatsApp through the whole journey, 24/7." }, ]; const REVIEWS = _D.reviews && _D.reviews.length ? _D.reviews : [ { name:"Ayesha Khalid", trip:"Premium Umrah · Family of 6", initials:"AK", color:"#186060", text:"Our four-generation family Umrah was flawless. The hotel was a two-minute walk from the Haram and the Muallim never left our side. From Safri to Sukoon is exactly what it felt like." }, { name:"Hamza Tariq", trip:"Hunza & Khunjerab · 7 days", initials:"HT", color:"#F04800", text:"Booked a private Hunza trip on a whim over WhatsApp. The Land Cruiser handled the Karakoram like nothing and our driver knew every viewpoint. Easily the smoothest northern trip I've done." }, { name:"Sana Mirza", trip:"Rent a Car · Lahore", initials:"SM", color:"#00A8F0", text:"Needed an SUV with a driver for a week across Punjab. Fuel and tolls were all sorted, the driver was polite and professional, and there were genuinely no surprises on the bill." }, { name:"Bilal Ahmed", trip:"Custom Honeymoon · Skardu", initials:"BA", color:"#1FB7AE", text:"I shared a one-line brief and got a full honeymoon itinerary back the next morning. They thought of details we hadn't even considered. Responsive on WhatsApp the entire time." }, { name:"Fatima Noor", trip:"Standard Umrah · 2 pilgrims", initials:"FN", color:"#D84800", text:"As first-time pilgrims we were nervous about the visa and logistics. Safri handled every step and explained everything in Urdu. We just had to focus on our ibadah. Allah bless this team." }, ]; Object.assign(window, { WA_NUMBER, waLink, openWA, Icons, UMRAH, TOURS, VEHICLES, CITIES, WHY, STATS, STEPS, REVIEWS });