// Top utility bar + main nav with sticky behavior
const TopBar = () => (
Mon – Sat · 10:00 AM – 8:00 PM · Sunday Closed
);
const NAV_PRIVATE = [
{ name: "Hunza & Skardu", sub: "Karakoram · 7 Days" },
{ name: "Naran & Shogran", sub: "KP · 5 Days" },
{ name: "Kalam & Swat", sub: "KP · 5 Days" },
{ name: "Kumrat Valley", sub: "KP · 4 Days" },
{ name: "Murree & Galyat", sub: "PJ · 3 Days" },
{ name: "Azad Kashmir", sub: "AK · 6 Days" },
];
const NAV_INTL = [
{ name: "Europe", sub: "CH · FR · IT · 14 Days" },
{ name: "Türkiye & Cappadocia", sub: "IST · 10 Days" },
{ name: "Dubai & Baku", sub: "DXB · 7 Days" },
{ name: "Thailand & Malaysia", sub: "8 Days" },
{ name: "Indonesia (Bali)", sub: "DPS · 7 Days" },
{ name: "USA & Canada", sub: "12 Days" },
{ name: "Umrah Pilgrimage", sub: "SA · 10–14 Days" },
];
const Dropdown = ({ label, items, sectionId }) => {
const scrollTo = (e) => {
e.preventDefault();
document.getElementById(sectionId)?.scrollIntoView({ behavior: 'smooth', block: 'start' });
};
return (
);
};
const Nav = ({ onPlan, onMenu }) => {
const path = window.location.pathname.replace(/\/+$/, '') || '/';
const isHome = path === '/';
const [solid, setSolid] = React.useState(!isHome);
React.useEffect(() => {
const onScroll = () => setSolid(!isHome || window.scrollY > 60);
onScroll();
window.addEventListener('scroll', onScroll, { passive: true });
return () => window.removeEventListener('scroll', onScroll);
}, [isHome]);
const goTo = (id) => (e) => {
if (isHome) {
e.preventDefault();
document.getElementById(id)?.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
};
return (
);
};
const MobileNav = ({ open, onClose, onPlan }) => (
);
Object.assign(window, { TopBar, Nav, MobileNav });