(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5340],{99478:function(e,t,s){Promise.resolve().then(s.bind(s,11098))},11098:function(e,t,s){"use strict";s.d(t,{default:function(){return eB}});var a=s(57437),r=s(2265),i=s(75183),l=s(98012),n=s(45796),o=s(76153),c=s(91120),d=s(38704),m=s(81475),x=s(26225),h=s.n(x),g=e=>{let{name:t,description:s,image:r,region:x,tags:g,best_season:u,known_for:p}=e,b=s.length>180?"".concat(s.substring(0,180),"..."):s,f="Visit ".concat(t," - Explore ").concat(x),y=s.substring(0,160);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(h(),{children:[(0,a.jsx)("title",{children:f}),(0,a.jsx)("meta",{name:"description",content:y}),(0,a.jsx)("meta",{property:"og:title",content:f}),(0,a.jsx)("meta",{property:"og:description",content:y}),(0,a.jsx)("meta",{property:"og:image",content:r}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:f}),(0,a.jsx)("meta",{name:"twitter:description",content:y}),(0,a.jsx)("meta",{name:"twitter:image",content:r})]}),(0,a.jsxs)("div",{className:"relative h-[90vh] min-h-[600px] md:min-h-[700px] overflow-hidden",children:[(0,a.jsx)(i.E.div,{initial:{scale:1.1},animate:{scale:1.05,y:[0,-10,0]},transition:{scale:{duration:10},y:{repeat:1/0,duration:20}},className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:"url(".concat(r,")")}}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/70 via-black/50 to-black/80"}),(0,a.jsx)("div",{className:"absolute inset-0 flex flex-col justify-end",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-6 lg:px-8 pb-20 md:pb-32",children:[(0,a.jsxs)(i.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3,duration:.6},className:"inline-flex items-center bg-white/20 backdrop-blur-md text-white text-sm font-medium px-4 py-1.5 rounded-full mb-4 border border-white/10",children:[(0,a.jsx)(l.Z,{size:16,className:"mr-2"}),x]}),(0,a.jsx)(i.E.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5,duration:.6},className:"text-5xl sm:text-6xl md:text-7xl font-bold text-white mb-4 md:mb-6 tracking-tight",children:t}),(0,a.jsx)(i.E.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7,duration:.6},className:"text-xl md:text-2xl text-white/90 max-w-3xl mb-8 md:mb-10 leading-relaxed",children:b}),(0,a.jsxs)(i.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8,duration:.6},className:"grid grid-cols-1 sm:grid-cols-3 gap-4 max-w-4xl mb-8 md:mb-10",children:[(0,a.jsxs)("div",{className:"bg-white/10 backdrop-blur-md rounded-xl px-5 py-4 border border-white/20 flex items-center group hover:bg-white/15 transition-all",children:[(0,a.jsx)("div",{className:"bg-blue-500/30 rounded-lg p-2 mr-3 group-hover:bg-blue-500/40 transition-all",children:(0,a.jsx)(n.Z,{size:20,className:"text-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-white/70 text-sm",children:"Region"}),(0,a.jsx)("p",{className:"text-white font-medium",children:x})]})]}),(0,a.jsxs)("div",{className:"bg-white/10 backdrop-blur-md rounded-xl px-5 py-4 border border-white/20 flex items-center group hover:bg-white/15 transition-all",children:[(0,a.jsx)("div",{className:"bg-amber-500/30 rounded-lg p-2 mr-3 group-hover:bg-amber-500/40 transition-all",children:(0,a.jsx)(o.Z,{size:20,className:"text-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-white/70 text-sm",children:"Best Season"}),(0,a.jsx)("p",{className:"text-white font-medium",children:u})]})]}),(0,a.jsxs)("div",{className:"bg-white/10 backdrop-blur-md rounded-xl px-5 py-4 border border-white/20 flex items-center group hover:bg-white/15 transition-all",children:[(0,a.jsx)("div",{className:"bg-green-500/30 rounded-lg p-2 mr-3 group-hover:bg-green-500/40 transition-all",children:(0,a.jsx)(c.Z,{size:20,className:"text-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-white/70 text-sm",children:"Known For"}),(0,a.jsx)("p",{className:"text-white font-medium",children:p})]})]})]}),g&&g.length>0&&(0,a.jsx)(i.E.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.9,duration:.6},className:"flex flex-wrap gap-2 mb-8",children:g.map((e,t)=>(0,a.jsx)("span",{className:"inline-flex items-center bg-white/10 backdrop-blur-md text-white text-sm px-3 py-1.5 rounded-full border border-white/20 hover:bg-white/20 transition-colors",style:{animationDelay:"".concat(.1*t,"s")},children:e.name},e.id))}),(0,a.jsxs)(i.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1.1,duration:.6},className:"flex flex-wrap gap-4",children:[(0,a.jsxs)("button",{onClick:()=>{let e=document.getElementById("overview");e&&e.scrollIntoView({behavior:"smooth"})},className:"bg-white hover:bg-gray-100 text-gray-900 px-6 py-3 rounded-xl font-medium shadow-lg transition-all flex items-center group",children:[(0,a.jsx)(d.Z,{size:18,className:"mr-2 group-hover:rotate-12 transition-transform"}),"Explore City Guide"]}),(0,a.jsxs)("button",{onClick:()=>{let e=document.getElementById("essentials");e&&e.scrollIntoView({behavior:"smooth"})},className:"bg-transparent border border-white text-white hover:bg-white/10 px-6 py-3 rounded-xl font-medium transition-colors flex items-center group",children:[(0,a.jsx)(m.Z,{size:18,className:"mr-2 group-hover:rotate-12 transition-transform"}),"Plan Your Trip"]})]})]})}),(0,a.jsxs)(i.E.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.5,duration:.8},className:"absolute bottom-8 left-1/2 transform -translate-x-1/2 flex flex-col items-center",children:[(0,a.jsx)("span",{className:"text-white/70 text-sm mb-2 backdrop-blur-sm bg-black/20 px-3 py-1 rounded-full",children:"Scroll to explore"}),(0,a.jsx)("div",{className:"w-6 h-10 border-2 border-white/50 rounded-full flex justify-center",children:(0,a.jsx)(i.E.div,{animate:{y:[0,12,0],opacity:[.8,.2,.8]},transition:{repeat:1/0,duration:1.5},className:"w-1.5 h-1.5 bg-white rounded-full mt-2"})})]})]})]})},u=s(48614),p=s(87294),b=s(82306),f=s(54585),y=s(99342),v=s(25824),j=s(76848),N=e=>{let{activeSection:t,isScrolled:s,setActiveSection:r,navItems:l}=e,n=e=>{var t;r(e),null===(t=document.getElementById(e))||void 0===t||t.scrollIntoView({behavior:"smooth",block:"start"})},o=e=>{switch(e){case"overview":return(0,a.jsx)(p.Z,{size:16});case"experiences":return(0,a.jsx)(b.Z,{size:16});case"costs":return(0,a.jsx)(f.Z,{size:16});case"essentials":return(0,a.jsx)(y.Z,{size:16});case"insights":return(0,a.jsx)(c.Z,{size:16});case"nearby":return(0,a.jsx)(v.Z,{size:16});default:return(0,a.jsx)(j.Z,{size:16})}};return(0,a.jsx)("div",{className:"sticky top-0 z-50 w-full transition-all duration-300 backdrop-blur-md ".concat(s?"bg-white/95 shadow-md py-3 border-b border-gray-100":"bg-transparent py-5"),children:(0,a.jsx)("div",{className:"max-w-7xl mx-auto px-4 lg:px-8",children:(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)(u.M,{children:s&&(0,a.jsxs)(i.E.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.3},className:"font-bold text-lg flex items-center",children:[(0,a.jsx)("span",{className:"bg-blue-600 text-white p-1 rounded-md mr-2",children:(0,a.jsx)(p.Z,{size:20})}),(0,a.jsx)("span",{className:"bg-gradient-to-r from-blue-600 to-indigo-500 text-transparent bg-clip-text",children:"Explore Cities"})]})}),(0,a.jsx)("nav",{className:"".concat(s?"ml-auto":"mx-auto"),children:(0,a.jsx)("ul",{className:"flex space-x-1 md:space-x-2",children:l.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)("button",{onClick:()=>n(e.id),className:"relative px-3 py-2 text-sm md:text-base font-medium rounded-lg transition-colors flex items-center gap-1 ".concat(t===e.id?s?"text-blue-600 bg-blue-50":"text-white bg-white/20 backdrop-blur-sm":s?"text-gray-700 hover:text-blue-600 hover:bg-blue-50/50":"text-white/80 hover:text-white hover:bg-white/10"),children:[(0,a.jsx)("span",{className:"mr-1.5",children:o(e.id)}),e.label,t===e.id&&(0,a.jsx)(i.E.div,{layoutId:"activeSection",className:"absolute bottom-0 left-0 right-0 h-0.5 ".concat(s?"bg-blue-600":"bg-white"),initial:!1,transition:{type:"spring",stiffness:500,damping:30}})]})},e.id))})}),(0,a.jsx)(u.M,{children:s&&(0,a.jsx)(i.E.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.3},className:"hidden md:block",children:(0,a.jsx)("button",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 text-white px-5 py-2.5 rounded-lg text-sm font-medium transition shadow-md hover:shadow-lg",children:"Plan Your Trip"})})})]})})})},w=s(66904),_=s(91230),k=s(43284),C=s(16994),A=s(63390),z=s(25518),Z=e=>{var t,s;let{city:r}=e,n={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6}}},o=((null===(t=r.long_description)||void 0===t?void 0:t.split("\n\n"))||[]).map((e,t)=>(0,a.jsx)("p",{className:"mb-6 text-gray-700 leading-relaxed",children:e},t));return(0,a.jsxs)(i.E.div,{variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-100px"},className:"my-16 md:my-24",id:"overview",children:[(0,a.jsxs)(i.E.div,{variants:n,className:"mb-12 text-center",children:[(0,a.jsxs)("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 inline-flex items-center gap-3",children:[(0,a.jsx)("span",{className:"bg-blue-600/10 p-2 rounded-lg",children:(0,a.jsx)(w.Z,{size:24,className:"text-blue-600"})}),"Discover ",r.name]}),(0,a.jsx)("div",{className:"w-24 h-1.5 bg-gradient-to-r from-blue-600 to-indigo-600 mx-auto mt-4 rounded-full"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12",children:[(0,a.jsx)(i.E.div,{variants:n,className:"lg:col-span-2",children:(0,a.jsxs)("div",{className:"flex flex-col h-full",children:[(0,a.jsxs)("div",{className:"prose prose-lg max-w-none flex-grow",children:[o.length>0&&(0,a.jsx)("div",{className:"mb-6 text-gray-700 leading-relaxed",children:(()=>{let e=o[0],t="string"==typeof e?e:e.props&&"string"==typeof e.props.children?e.props.children:"";return t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"float-left text-6xl font-serif mr-3 mt-1 text-blue-600",children:t.charAt(0)}),(0,a.jsx)("p",{children:t.substring(1)})]}):e})()}),o.slice(1).map((e,t)=>(0,a.jsx)("p",{className:"mb-6 text-gray-700 leading-relaxed",children:e},t))]}),r.official_website&&(0,a.jsxs)("a",{href:r.official_website,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center mt-auto mb-6 text-blue-600 hover:text-blue-800 font-medium group bg-blue-50 px-4 py-2 rounded-lg hover:bg-blue-100 transition-colors",children:[(0,a.jsx)(d.Z,{size:18,className:"mr-2 group-hover:rotate-12 transition-transform"}),"Visit the official website",(0,a.jsx)(_.Z,{size:16,className:"ml-2 group-hover:translate-x-1 transition-transform"})]})]})}),(0,a.jsx)(i.E.div,{variants:n,children:(0,a.jsxs)("div",{className:"bg-gradient-to-br from-white to-gray-50 rounded-2xl p-8 border border-gray-100 shadow-md h-full",children:[(0,a.jsxs)("h3",{className:"text-xl font-semibold text-gray-900 mb-8 flex items-center",children:[(0,a.jsx)(k.Z,{size:20,className:"text-blue-600 mr-2"}),"City Highlights"]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("div",{className:"bg-blue-50 rounded-lg p-3 border border-blue-100 shadow-sm",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"bg-blue-100 p-1.5 rounded-lg mr-2.5",children:(0,a.jsx)(l.Z,{size:16,className:"text-blue-600"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-medium text-gray-500",children:"Location"}),(0,a.jsx)("p",{className:"text-gray-900 font-bold text-base",children:r.region})]}),(0,a.jsx)("div",{className:"ml-auto",children:(0,a.jsx)("div",{className:"flex items-center justify-center bg-blue-600/10 px-2 py-0.5 rounded-full",children:(0,a.jsx)("span",{className:"text-blue-700 text-xs font-medium",children:r.region})})})]})}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsxs)("div",{className:"bg-purple-50 rounded-lg p-3 border border-purple-100 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex items-center mb-1.5",children:[(0,a.jsx)("div",{className:"bg-purple-100 p-1.5 rounded-lg mr-2.5",children:(0,a.jsx)(m.Z,{size:16,className:"text-purple-600"})}),(0,a.jsx)("p",{className:"text-xs font-medium text-gray-500",children:"Stay Duration"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("p",{className:"text-gray-900 font-bold text-lg flex items-baseline",children:[null!==(s=r.recommended_stay_length)&&void 0!==s?s:"N/A",(0,a.jsx)("span",{className:"text-sm font-medium ml-1",children:r.recommended_stay_length?"days":""})]}),(0,a.jsx)("div",{className:"relative w-10 h-10 mr-0.5",children:(0,a.jsxs)("svg",{viewBox:"0 0 36 36",className:"w-full h-full",children:[(0,a.jsx)("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"#E9D5FF",strokeWidth:"3",strokeDasharray:"100, 100"}),(0,a.jsx)("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"#9333EA",strokeWidth:"3",strokeDasharray:"".concat(r.recommended_stay_length?Math.min(10*r.recommended_stay_length,100):0,", 100"),strokeLinecap:"round"})]})})]})]}),(0,a.jsxs)("div",{className:"bg-green-50 rounded-lg p-3 border border-green-100 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex items-center mb-1.5",children:[(0,a.jsx)("div",{className:"bg-green-100 p-1.5 rounded-lg mr-2.5",children:(0,a.jsx)(C.Z,{size:16,className:"text-green-600"})}),(0,a.jsx)("p",{className:"text-xs font-medium text-gray-500",children:"Population"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("p",{className:"text-gray-900 font-bold text-lg flex items-baseline",children:[null!=r.population?(r.population/1e6).toFixed(1):"N/A",(0,a.jsx)("span",{className:"text-sm font-medium ml-1",children:r.population?"M":""})]}),(0,a.jsx)("div",{className:"relative w-10 h-10 mr-0.5",children:(0,a.jsxs)("svg",{viewBox:"0 0 36 36",className:"w-full h-full",children:[(0,a.jsx)("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"#DCFCE7",strokeWidth:"3",strokeDasharray:"100, 100"}),(0,a.jsx)("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"#16A34A",strokeWidth:"3",strokeDasharray:"".concat(r.population?r.population<1e5?20:r.population<5e5?40:r.population<1e6?60:r.population<5e6?80:100:0,", 100"),strokeLinecap:"round"})]})})]})]})]}),(0,a.jsxs)("div",{className:"bg-amber-50 rounded-lg p-3 border border-amber-100 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex items-center mb-1.5",children:[(0,a.jsx)("div",{className:"bg-amber-100 p-1.5 rounded-lg mr-2.5",children:(0,a.jsx)(A.Z,{size:16,className:"text-amber-600"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-medium text-gray-500",children:"Affordability"}),(0,a.jsx)("p",{className:"text-gray-900 font-bold text-base capitalize",children:r.affordability||"N/A"})]})]}),(0,a.jsxs)("div",{className:"mt-1",children:[(0,a.jsx)("div",{className:"h-1.5 w-full bg-amber-100 rounded-full overflow-hidden",children:(0,a.jsx)("div",{className:"h-full bg-amber-500 rounded-full ".concat(r.affordability?"budget"===r.affordability.toLowerCase()?"w-1/5":"affordable"===r.affordability.toLowerCase()?"w-2/5":"moderate"===r.affordability.toLowerCase()?"w-3/5":"expensive"===r.affordability.toLowerCase()?"w-4/5":"w-full":"w-0")})}),(0,a.jsxs)("div",{className:"flex justify-between mt-1 text-xs text-gray-500",children:[(0,a.jsx)("span",{className:"text-2xs",children:"Budget"}),(0,a.jsx)("span",{className:"text-2xs",children:"Affordable"}),(0,a.jsx)("span",{className:"text-2xs",children:"Moderate"}),(0,a.jsx)("span",{className:"text-2xs",children:"Expensive"}),(0,a.jsx)("span",{className:"text-2xs",children:"Luxury"})]})]})]})]}),r.travel_seasons&&r.travel_seasons.length>0&&(0,a.jsxs)("div",{className:"mt-8 mb-2",children:[(0,a.jsxs)("h4",{className:"text-base font-semibold text-gray-900 mb-3 flex items-center",children:[(0,a.jsx)(z.Z,{size:18,className:"text-blue-600 mr-2"}),"Best Time to Visit"]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:r.travel_seasons.map((e,t)=>(0,a.jsx)("span",{className:"inline-flex items-center bg-white border border-gray-200 rounded-full px-4 py-1.5 text-sm text-gray-700 shadow-sm hover:bg-blue-50 hover:border-blue-200 transition-colors cursor-pointer",children:e},t))})]}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsxs)("button",{className:"w-full bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 text-white font-medium py-3.5 rounded-xl transition shadow-md hover:shadow-lg flex items-center justify-center group",children:[(0,a.jsx)(m.Z,{size:18,className:"mr-2 group-hover:rotate-12 transition-transform"}),"Plan Your Trip",(0,a.jsx)(_.Z,{size:18,className:"ml-2 group-hover:translate-x-1 transition-transform"})]})})]})})]})]})},E=s(93529),S=s(99049),I=s(24786),F=s(49812),B=s(23818),T=s(26563),D=s(86383),L=s(41121),V=s(6275);let M={activities:{},accommodations:{},restaurants:{},timestamps:{}},O=(e,t)=>{let s=new Date().toISOString();console.log("[DEBUG ".concat(s,"] ").concat(e)),void 0!==t&&console.log(t)},P=(e,t)=>{let s=new Date().toISOString();console.error("[ERROR ".concat(s,"] ").concat(e)),console.error(t)};function R(e){return e?("string"==typeof e&&(e=parseFloat(e)),e<=15)?"€":e<=50?"€€":e<=100?"€€€":"€€€€":"Free"}function U(e){return O("Mapping activity to experience:",e),{id:e.id,name:e.name,description:e.description||"",image_url:e.image_url||e.image||"",type:"activity",price:"string"==typeof e.price?parseFloat(e.price):e.price,price_level:R("string"==typeof e.price?parseFloat(e.price):e.price),duration_minutes:e.duration_minutes,duration:function(e){if(!e)return"Variable";if(e<60)return"".concat(e," mins");{let t=Math.floor(e/60),s=e%60;return 0===s?1===t?"1 hour":"".concat(t," hours"):"".concat(t,"h ").concat(s,"m")}}(e.duration_minutes),link:e.link,affiliate_link:e.affiliate_link,location:e.location||"City Center",rating:e.rating||parseFloat((1*Math.random()+4).toFixed(1))}}function $(e){O("Mapping accommodation to experience:",e);let t="hostel"===e.accommodation_type&&e.hostel_type?"".concat(e.hostel_type.charAt(0).toUpperCase()+e.hostel_type.slice(1)," Hostel"):e.accommodation_category||(e.accommodation_type?e.accommodation_type.charAt(0).toUpperCase()+e.accommodation_type.slice(1):"Hotel");return{id:e.id,name:e.name,description:e.description||"",image_url:e.image_url||e.image||"",type:"accommodation",accommodation_type:t,hostel_type:e.hostel_type,price_per_night:"string"==typeof e.price_per_night?parseFloat(e.price_per_night):e.price_per_night||50,price_level:R("string"==typeof e.price_per_night?parseFloat(e.price_per_night):e.price_per_night),location:e.location||"City Center",rating:e.rating||parseFloat((1*Math.random()+4).toFixed(1))}}function H(e){return O("Mapping restaurant to experience:",e),{id:e.id,name:e.name,description:e.description||"",image_url:e.image_url||e.image||"",type:"restaurant",cuisine:e.cuisine||"Local Cuisine",price_level:e.price_level||R(e.price_level),affiliate_link:e.affiliate_link,location:e.location||"City Center",rating:e.rating||parseFloat((1*Math.random()+4).toFixed(1))}}async function Y(e){O("fetchCityActivities called with cityId=".concat(e));let t="activities-".concat(e);if(M.activities[e]&&(0,V.isCacheValid)(t))return O("Using cached activities for city ID ".concat(e)),M.activities[e];try{O("Making API request to /trip/cities/".concat(e,"/activities/recommended/"));let s=await L.Z.get("/trip/cities/".concat(e,"/activities/recommended/"));O("Activities API response received:",{status:s.status,dataType:typeof s.data,isArray:Array.isArray(s.data),dataKeys:s.data?Object.keys(s.data):[],dataLength:Array.isArray(s.data)?s.data.length:"N/A"});let a=Array.isArray(s.data)?s.data:[];O("Processing ".concat(a.length," activities from response"));let r=a.map(U);return M.activities[e]=r,M.timestamps[t]=Date.now(),r}catch(a){P("Failed to fetch activities for city ID ".concat(e,":"),a),O("Generating fallback activity data for testing");let s=[{id:1001,name:"City Walking Tour",description:"Explore the city's main attractions on foot with a knowledgeable guide.",image_url:"",type:"activity",duration:"3 hours",price:25,price_level:"€€",location:"City Center",rating:4.5},{id:1002,name:"Local Food Tasting",description:"Sample the city's best local foods on this guided culinary adventure.",image_url:"",type:"activity",duration:"2 hours",price:35,price_level:"€€",location:"Old Town",rating:4.7}];return M.activities[e]=s,M.timestamps[t]=Date.now(),s}}async function G(e){O("fetchCityAccommodations called with cityId=".concat(e));let t="accommodations-".concat(e);if(M.accommodations[e]&&(0,V.isCacheValid)(t))return O("Using cached accommodations for city ID ".concat(e)),M.accommodations[e];try{let s="/trip/cities/".concat(e,"/accommodations/minimal/");O("Making API request to ".concat(s));let a=await L.Z.get(s);O("Accommodations API response received:",{status:a.status,dataType:typeof a.data,isArray:Array.isArray(a.data),dataKeys:a.data?Object.keys(a.data):[],dataLength:Array.isArray(a.data)?a.data.length:"N/A"});let r=[];Array.isArray(a.data)?r=a.data:a.data&&a.data.results&&Array.isArray(a.data.results)&&(r=a.data.results),O("Processing ".concat(r.length," accommodations from response"));let i=r.map($);return M.accommodations[e]=i,M.timestamps[t]=Date.now(),i}catch(a){P("Failed to fetch accommodations for city ID ".concat(e,":"),a),O("Generating fallback accommodation data for testing");let s=[{id:1001,name:"Central City Hotel",description:"Comfortable hotel in the heart of the city with modern amenities.",image_url:"",type:"accommodation",accommodation_type:"Hotel",price_per_night:75,price_level:"€€",location:"City Center",rating:4.5},{id:1002,name:"Backpackers Hostel",description:"Affordable hostel with private and shared rooms for budget travelers.",image_url:"",type:"accommodation",accommodation_type:"Party Hostel",hostel_type:"Party",price_per_night:25,price_level:"€",location:"Downtown",rating:4.2},{id:1003,name:"Luxury Apartments",description:"Self-catering apartments with full kitchen and luxury amenities.",image_url:"",type:"accommodation",accommodation_type:"Apartment",price_per_night:120,price_level:"€€€",location:"Marina",rating:4.8}];return M.accommodations[e]=s,M.timestamps[t]=Date.now(),s}}async function W(e){O("fetchCityRestaurants called with cityId=".concat(e));let t="restaurants-".concat(e);if(M.restaurants[e]&&(0,V.isCacheValid)(t))return O("Using cached restaurants for city ID ".concat(e)),M.restaurants[e];try{let s="/trip/cities/".concat(e,"/restaurants");O("Making API request to ".concat(s));let a=await L.Z.get(s);O("Restaurants API response received:",{status:a.status,dataType:typeof a.data,isArray:Array.isArray(a.data),dataKeys:a.data?Object.keys(a.data):[],dataLength:Array.isArray(a.data)?a.data.length:"N/A"});let r=[];Array.isArray(a.data)?r=a.data:a.data&&a.data.results&&Array.isArray(a.data.results)&&(r=a.data.results),O("Processing ".concat(r.length," restaurants from response"));let i=r.map(H);return M.restaurants[e]=i,M.timestamps[t]=Date.now(),i}catch(a){P("Failed to fetch restaurants for city ID ".concat(e,":"),a),O("Generating fallback restaurant data for testing");let s=[{id:2001,name:"Local Cuisine Restaurant",description:"Authentic local dishes prepared with traditional recipes.",image_url:"",type:"restaurant",cuisine:"Local Cuisine",price_level:"€€",location:"City Center",rating:4.5},{id:2002,name:"Waterfront Seafood",description:"Fresh seafood with beautiful views of the water.",image_url:"",type:"restaurant",cuisine:"Seafood",price_level:"€€€",location:"Marina",rating:4.6},{id:2003,name:"Cozy Caf\xe9",description:"Relaxed caf\xe9 with great coffee and pastries.",image_url:"",type:"restaurant",cuisine:"Caf\xe9",price_level:"€",location:"Old Town",rating:4.3},{id:2004,name:"Tapas Bar",description:"Traditional tapas bar with a wide selection of Spanish classics.",image_url:"",type:"restaurant",cuisine:"Spanish",price_level:"€€",location:"Gothic Quarter",rating:4.7}];return M.restaurants[e]=s,M.timestamps[t]=Date.now(),s}}var q={fetchExperiencesByType:async function(e,t){O("fetchExperiencesByType called with cityId=".concat(e,", type=").concat(t));try{if("activity"===t)return O("Fetching activities for city ".concat(e)),Y(e);if("accommodation"===t)return O("Fetching accommodations for city ".concat(e)),G(e);if("restaurant"===t)return O("Fetching restaurants for city ".concat(e)),W(e);return O("Invalid type '".concat(t,"', returning empty array")),[]}catch(e){return P("Error in fetchExperiencesByType for type ".concat(t,":"),e),[]}},saveFavorites:function(e){O("saveFavorites called with ".concat(e.length," IDs"));try{localStorage.setItem("cityExperienceFavorites",JSON.stringify(e)),O("Favorites saved to localStorage")}catch(e){P("Error saving favorites to localStorage",e)}},loadFavorites:function(){O("loadFavorites called");try{let e=localStorage.getItem("cityExperienceFavorites");if(!e)return O("No favorites found in localStorage, returning empty array"),[];let t=JSON.parse(e);return O("Loaded ".concat(t.length," favorites from localStorage")),t}catch(e){return P("Error loading favorites from localStorage",e),[]}}},K=s(82521),J=e=>{let{experience:t,activeTab:s,isFavorite:r,onToggleFavorite:i,onViewDetails:n}=e,o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",c=(()=>{switch(s){case"activity":return{primary:"text-blue-600",bg:"bg-blue-600",hover:"hover:text-blue-800",light:"bg-blue-50",border:"border-blue-200",hover_bg:"hover:bg-blue-100",gradient:"from-blue-600 to-indigo-600"};case"accommodation":return{primary:"text-emerald-600",bg:"bg-emerald-600",hover:"hover:text-emerald-800",light:"bg-emerald-50",border:"border-emerald-200",hover_bg:"hover:bg-emerald-100",gradient:"from-emerald-600 to-teal-600"};case"restaurant":return{primary:"text-amber-600",bg:"bg-amber-600",hover:"hover:text-amber-800",light:"bg-amber-50",border:"border-amber-200",hover_bg:"hover:bg-amber-100",gradient:"from-amber-600 to-orange-600"}}})(),d="accommodation"===s?{icon:(0,a.jsx)(S.Z,{size:16,className:c.primary}),text:t.accommodation_type}:"restaurant"===s?{icon:(0,a.jsx)(I.Z,{size:16,className:c.primary}),text:t.cuisine}:{icon:(0,a.jsx)(m.Z,{size:16,className:c.primary}),text:"Activity"};return(0,a.jsxs)("div",{className:"bg-white rounded-xl overflow-hidden shadow-md border border-gray-100 hover:shadow-lg transition-all group h-full flex flex-col",children:[(0,a.jsxs)("div",{className:"relative h-56 overflow-hidden bg-gray-200",children:[(0,a.jsx)("img",{src:t.image_url||o,alt:t.name,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105",onError:e=>{let s=e.target;s.src!==o&&(console.log("Image error for ".concat(t.name,", using placeholder")),s.src=o)}}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent opacity-60 group-hover:opacity-70 transition-opacity"}),(0,a.jsxs)("div",{className:"absolute top-3 right-3 flex items-center bg-white/80 backdrop-blur-sm rounded-full px-3 py-1 text-sm font-medium text-gray-800 shadow-sm",children:[(0,a.jsx)(f.Z,{size:14,className:c.primary+" mr-1"}),(()=>{if("accommodation"===s){let e=t.price_per_night;return"$".concat(e,"/night")}return t.price_level})()]}),(0,a.jsx)("button",{onClick:e=>{e.preventDefault(),i(t.id)},className:"absolute top-3 left-3 p-2 bg-white/80 backdrop-blur-sm rounded-full hover:bg-white transition-colors shadow-sm","aria-label":r?"Remove from favorites":"Add to favorites",children:(0,a.jsx)(D.Z,{size:18,className:r?"text-red-500 fill-red-500":"text-gray-500"})}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 right-0 p-4",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center bg-white/20 backdrop-blur-sm px-2 py-1 rounded-full",children:[(()=>{switch(s){case"activity":return(0,a.jsx)(E.Z,{size:18,className:c.primary});case"accommodation":return(0,a.jsx)(S.Z,{size:18,className:c.primary});case"restaurant":return(0,a.jsx)(I.Z,{size:18,className:c.primary})}})(),(0,a.jsx)("span",{className:"text-xs ml-1 text-white font-medium",children:s})]}),(0,a.jsxs)("div",{className:"flex items-center bg-white/20 backdrop-blur-sm px-2 py-1 rounded-full",children:[(0,a.jsx)(T.Z,{size:14,className:"text-amber-400"}),(0,a.jsx)("span",{className:"text-xs font-medium ml-1 text-white",children:t.rating?"string"==typeof t.rating?t.rating:t.rating.toFixed(1):"4.5"})]})]})})]}),(0,a.jsxs)("div",{className:"p-5 flex-grow flex flex-col",children:[(0,a.jsx)("h3",{className:"text-xl font-bold text-gray-900 mb-2 group-hover:text-indigo-600 transition-colors",children:t.name}),(0,a.jsxs)("div",{className:"flex items-start mb-3",children:[(0,a.jsx)(l.Z,{size:16,className:"text-gray-500 mr-1.5 mt-0.5 flex-shrink-0"}),(0,a.jsx)("span",{className:"text-sm text-gray-500",children:t.location||"City Center"})]}),(0,a.jsx)("p",{className:"text-gray-600 mb-4 line-clamp-3 flex-grow text-sm",children:t.description}),(0,a.jsxs)("div",{className:"flex items-center text-sm text-gray-700 mb-4 bg-gray-50 px-3 py-2 rounded-lg",children:[d.icon,(0,a.jsx)("span",{className:"ml-2",children:d.text})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-auto pt-3 border-t border-gray-100",children:[(0,a.jsxs)("button",{className:"flex items-center ".concat(c.primary," ").concat(c.hover," font-medium text-sm ").concat(c.light," px-3 py-2 rounded-lg ").concat(c.hover_bg," group"),onClick:()=>n(t),children:["View Details",(0,a.jsx)(_.Z,{size:16,className:"ml-1 group-hover:translate-x-1 transition-transform"})]}),r&&(0,a.jsxs)("span",{className:"text-xs text-red-500 flex items-center",children:[(0,a.jsx)(D.Z,{size:14,className:"mr-1 fill-red-500"}),"Saved"]})]})]})]})};let Q=(e,t)=>{if(!e.affiliate_link)return console.log("[DEBUG] No affiliate link available for: ".concat(e.name)),alert("Sorry, booking link is not available for this experience."),!1;if(window.gtag){let t={event_category:"Affiliate",event_label:e.name,experience_id:e.id,experience_type:e.type||"unknown",value:1};window.gtag("event","affiliate_link_click",t)}return window.open(e.affiliate_link,"_blank","noopener,noreferrer"),console.log("[DEBUG] Affiliate link clicked for: ".concat(e.name)),t&&t("affiliate_link_click",{experienceId:e.id,experienceName:e.name,experienceType:e.type}),!0};var X=e=>{let{experiences:t,activeTab:s,favorites:r,toggleFavorite:l,showAllExperiences:n,setShowAllExperiences:o,currentSlide:c,setCurrentSlide:d,itemsToShow:m}=e,x={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6}}},h=n?t:t.slice(c,Math.min(c+m,t.length)),g=e=>{let s;if("next"===e){let e=t.length-m;s=Math.min(c+m,e>0?e:0)}else s=Math.max(c-m,0);d(s)},u=!n&&c+m0,b=e=>{Q(e)},f=(()=>{switch(s){case"activity":return{primary:"text-blue-600",bg:"bg-blue-600",hover:"hover:text-blue-800",light:"bg-blue-50",border:"border-blue-200",hover_bg:"hover:bg-blue-100",gradient:"from-blue-600 to-indigo-600"};case"accommodation":return{primary:"text-emerald-600",bg:"bg-emerald-600",hover:"hover:text-emerald-800",light:"bg-emerald-50",border:"border-emerald-200",hover_bg:"hover:bg-emerald-100",gradient:"from-emerald-600 to-teal-600"};case"restaurant":return{primary:"text-amber-600",bg:"bg-amber-600",hover:"hover:text-amber-800",light:"bg-amber-50",border:"border-amber-200",hover_bg:"hover:bg-amber-100",gradient:"from-amber-600 to-orange-600"}}})();return(0,a.jsxs)("div",{className:"experience-grid",children:[!n&&t.length>m&&(0,a.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,a.jsxs)("span",{className:"text-sm text-gray-600 bg-white px-3 py-1.5 rounded-lg shadow-sm border border-gray-100",children:["Showing ",c+1,"-",Math.min(c+m,t.length)," of"," ",t.length," ","activity"===s?"Activities":"accommodation"===s?"Accommodations":"Restaurants"]}),(0,a.jsxs)("div",{className:"flex space-x-2",children:[(0,a.jsx)("button",{onClick:()=>g("prev"),disabled:!p,className:"p-2.5 rounded-lg shadow-sm transition-all flex items-center justify-center ".concat(p?"".concat(f.light," ").concat(f.primary," ").concat(f.hover," ").concat(f.border," border"):"bg-gray-100 text-gray-400 cursor-not-allowed border border-gray-200"),"aria-label":"Previous items",children:(0,a.jsx)(K.Z,{size:20})}),(0,a.jsx)("button",{onClick:()=>g("next"),disabled:!u,className:"p-2.5 rounded-lg shadow-sm transition-all flex items-center justify-center ".concat(u?"".concat(f.light," ").concat(f.primary," ").concat(f.hover," ").concat(f.border," border"):"bg-gray-100 text-gray-400 cursor-not-allowed border border-gray-200"),"aria-label":"Next items",children:(0,a.jsx)(j.Z,{size:20})})]})]}),(0,a.jsx)("div",{className:n?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8":"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:h.map(e=>(0,a.jsx)(i.E.div,{variants:x,children:(0,a.jsx)(J,{experience:e,activeTab:s,isFavorite:r.includes(e.id),onToggleFavorite:l,onViewDetails:b})},e.id))}),t.length>m&&(0,a.jsx)(i.E.div,{variants:x,className:"mt-10 text-center",children:(0,a.jsx)("button",{onClick:()=>o(!n),className:"inline-flex items-center justify-center px-6 py-3 rounded-xl transition-all bg-gradient-to-r ".concat(f.gradient," text-white shadow-md hover:shadow-lg"),children:n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(K.Z,{size:18,className:"mr-2"}),"Show Less"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.Z,{size:18,className:"mr-2"}),"See All"," ","activity"===s?"Activities":"accommodation"===s?"Accommodations":"Restaurants",(0,a.jsx)(_.Z,{size:18,className:"ml-2 group-hover:translate-x-1 transition-transform"})]})})})]})},ee=e=>{let{cityId:t}=e,[s,n]=(0,r.useState)("activity"),[o,c]=(0,r.useState)([]),[d,m]=(0,r.useState)(!0),[x,h]=(0,r.useState)([]),[g,u]=(0,r.useState)(!1),[p,b]=(0,r.useState)(""),[y,v]=(0,r.useState)([]),[j,N]=(0,r.useState)(null),[w,k]=(0,r.useState)(null),[C,A]=(0,r.useState)([]),[z,Z]=(0,r.useState)([]),[L,V]=(0,r.useState)([]),[M,O]=(0,r.useState)([]),[P,R]=(0,r.useState)([]),[U,$]=(0,r.useState)(null),[H,Y]=(0,r.useState)(!1),[G,W]=(0,r.useState)(0),K=e=>{console.log("[DEBUG] CityExperiences: ".concat(e))},J=()=>{b(""),v([]),N(null),k(null),A([]),Z([]),W(0)},ee=(0,r.useCallback)(e=>{K("Tab change from ".concat(s," to ").concat(e)),s!==e&&(n(e),c([]),m(!0),$(null),J(),u(!1),Y(!1))},[s]);(0,r.useEffect)(()=>{let e=!0;return K("Fetching experiences for cityId=".concat(t,", tab=").concat(s)),m(!0),$(null),q.fetchExperiencesByType(t,s).then(t=>{e&&((K("Fetched ".concat(t.length," ").concat(s," experiences")),"activity"===s)?V([...new Set(t.map(e=>e.price_level))].filter(Boolean)):"accommodation"===s?(O([...new Set(t.map(e=>e.accommodation_type))].filter(Boolean)),V(["$","$$","$$$","$$$$"])):"restaurant"===s&&(R([...new Set(t.map(e=>e.cuisine))].filter(Boolean)),V([...new Set(t.map(e=>e.price_level))].filter(Boolean))),c(t),m(!1))}).catch(t=>{e&&(console.error("Error fetching ".concat(s,":"),t),$("Failed to load ".concat(s," data. Please try again.")),c([]),m(!1))}),()=>{e=!1}},[t,s]),(0,r.useEffect)(()=>{h(q.loadFavorites())},[]),(0,r.useEffect)(()=>{q.saveFavorites(x)},[x]);let et=(0,r.useCallback)(e=>{h(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),es=e=>j?[...e].sort((e,t)=>{let a,r;return"accommodation"===s?(a=e.price_per_night,r=t.price_per_night):(a=(e.price_level||"$").length,r=(t.price_level||"$").length),"low_to_high"===j?a-r:r-a}):e,ea=r.useMemo(()=>{let e=o.filter(e=>e.name.toLowerCase().includes(p.toLowerCase())||e.description&&e.description.toLowerCase().includes(p.toLowerCase())||e.location&&e.location.toLowerCase().includes(p.toLowerCase()));return y.length>0&&(e=e.filter(e=>{if("restaurant"===s){let t=e.price_level;return void 0!==t&&y.includes(t)}if("accommodation"===s){let t=e.price_per_night,s="";return s=t<=50?"$":t<=100?"$$":t<=200?"$$$":"$$$$",y.includes(s)}let t=e.price_level;return void 0!==t&&y.includes(t)})),null!==w&&(e=e.filter(e=>void 0!==e.rating&&("string"==typeof e.rating?parseFloat(e.rating):e.rating)>=w)),"accommodation"===s&&C.length>0&&(e=e.filter(e=>C.includes(e.accommodation_type))),"restaurant"===s&&z.length>0&&(e=e.filter(e=>z.includes(e.cuisine))),es(e)},[o,p,y,w,s,C,z,j]),er={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6}}},ei=e=>{Q(e)},el="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";return(0,a.jsxs)(i.E.div,{variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:"hidden",animate:"visible",className:"city-experiences-container",children:[(0,a.jsxs)(i.E.div,{variants:er,className:"mb-12 text-center",children:[(0,a.jsx)("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900",children:"Explore Experiences"}),(0,a.jsx)("div",{className:"w-20 h-1 bg-blue-600 mx-auto mt-4"})]}),(0,a.jsx)(i.E.div,{variants:er,className:"flex justify-center mb-8",children:(0,a.jsxs)("div",{className:"inline-flex bg-gray-100 p-1 rounded-xl",children:[(0,a.jsx)("button",{onClick:()=>ee("activity"),className:"px-6 py-2.5 rounded-lg text-sm font-medium transition-all ".concat("activity"===s?"bg-white text-blue-600 shadow-sm":"text-gray-600 hover:text-gray-900"),children:"Activities"}),(0,a.jsx)("button",{onClick:()=>ee("accommodation"),className:"px-6 py-2.5 rounded-lg text-sm font-medium transition-all ".concat("accommodation"===s?"bg-white text-blue-600 shadow-sm":"text-gray-600 hover:text-gray-900"),children:"Accommodations"}),(0,a.jsx)("button",{onClick:()=>ee("restaurant"),className:"px-6 py-2.5 rounded-lg text-sm font-medium transition-all ".concat("restaurant"===s?"bg-white text-blue-600 shadow-sm":"text-gray-600 hover:text-gray-900"),children:"Restaurants"})]})}),!d&&!U&&o.length>0&&(0,a.jsxs)(i.E.div,{variants:er,className:"mb-8",children:[(0,a.jsxs)("div",{className:"flex flex-wrap gap-4 items-center justify-between",children:[(0,a.jsxs)("div",{className:"relative flex-grow max-w-md",children:[(0,a.jsx)("div",{className:"absolute inset-y-0 left-3 flex items-center pointer-events-none",children:(0,a.jsx)(B.Z,{size:18,className:"text-gray-400"})}),(0,a.jsx)("input",{type:"text",value:p,onChange:e=>{b(e.target.value),W(0),Y(!1)},placeholder:"Search ".concat(s,"s..."),className:"w-full pl-10 pr-4 py-2.5 border border-gray-200 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors"})]}),(0,a.jsxs)("button",{onClick:()=>u(!g),className:"flex items-center space-x-2 px-4 py-2.5 bg-gray-100 hover:bg-gray-200 rounded-lg text-gray-700 transition-colors",children:[(()=>{switch(s){case"activity":return(0,a.jsx)(E.Z,{size:18});case"accommodation":return(0,a.jsx)(S.Z,{size:18});case"restaurant":return(0,a.jsx)(I.Z,{size:18});default:return(0,a.jsx)(F.Z,{size:18})}})(),(0,a.jsx)("span",{children:"Filters"}),(y.length>0||null!==w||C.length>0||z.length>0||null!==j)&&(0,a.jsx)("span",{className:"inline-flex items-center justify-center w-5 h-5 text-xs text-white bg-blue-600 rounded-full",children:y.length+(null!==w?1:0)+C.length+z.length+(null!==j?1:0)})]})]}),g&&(0,a.jsxs)(i.E.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mt-4 p-6 bg-gray-50 rounded-lg border border-gray-200",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("h4",{className:"text-sm font-semibold text-gray-700 mb-3",children:["Price ","accommodation"===s?"Range":"Level"]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:L.map(e=>(0,a.jsx)("button",{onClick:()=>{v(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),W(0)},className:"px-3 py-1.5 text-sm rounded-lg transition-colors ".concat(y.includes(e)?"bg-blue-600 text-white":"bg-white border border-gray-200 text-gray-700 hover:bg-gray-100"),children:e},e))}),(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsx)("h4",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Sort by Price"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("button",{onClick:()=>{N("low_to_high"===j?null:"low_to_high"),W(0)},className:"px-3 py-1.5 text-sm rounded-lg transition-colors flex items-center ".concat("low_to_high"===j?"bg-blue-600 text-white":"bg-white border border-gray-200 text-gray-700 hover:bg-gray-100"),children:[(0,a.jsx)(f.Z,{size:14,className:"mr-1"}),"Low to High"]}),(0,a.jsxs)("button",{onClick:()=>{N("high_to_low"===j?null:"high_to_low"),W(0)},className:"px-3 py-1.5 text-sm rounded-lg transition-colors flex items-center ".concat("high_to_low"===j?"bg-blue-600 text-white":"bg-white border border-gray-200 text-gray-700 hover:bg-gray-100"),children:[(0,a.jsx)(f.Z,{size:14,className:"mr-1"}),"High to Low"]})]})]})]}),(0,a.jsxs)("div",{children:["accommodation"===s&&M.length>0&&(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("h4",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Accommodation Type"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:M.map(e=>(0,a.jsx)("button",{onClick:()=>{A(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),W(0)},className:"px-3 py-1.5 text-sm rounded-lg transition-colors ".concat(C.includes(e)?"bg-blue-600 text-white":"bg-white border border-gray-200 text-gray-700 hover:bg-gray-100"),children:e},e))})]}),"restaurant"===s&&P.length>0&&(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("h4",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Cuisine"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:P.map(e=>(0,a.jsx)("button",{onClick:()=>{Z(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),W(0)},className:"px-3 py-1.5 text-sm rounded-lg transition-colors ".concat(z.includes(e)?"bg-blue-600 text-white":"bg-white border border-gray-200 text-gray-700 hover:bg-gray-100"),children:e},e))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Minimum Rating"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:[4,4.5,4.8].map(e=>(0,a.jsxs)("button",{onClick:()=>{k(w===e?null:e),W(0)},className:"flex items-center px-3 py-1.5 text-sm rounded-lg transition-colors ".concat(w===e?"bg-blue-600 text-white":"bg-white border border-gray-200 text-gray-700 hover:bg-gray-100"),children:[(0,a.jsx)(T.Z,{size:14,className:w===e?"text-white mr-1.5":"text-amber-400 mr-1.5"}),e,"+"]},e))})]})]})]}),(y.length>0||null!==w||C.length>0||z.length>0||null!==j||p)&&(0,a.jsx)("button",{onClick:J,className:"mt-4 text-sm text-blue-600 hover:text-blue-800 font-medium",children:"Clear all filters"})]})]}),U&&(0,a.jsxs)("div",{className:"bg-red-50 border border-red-200 text-red-800 p-4 rounded-lg mb-8",children:[(0,a.jsx)("p",{children:U}),(0,a.jsx)("button",{onClick:()=>{$(null),m(!0),q.fetchExperiencesByType(t,s).then(e=>{c(e),m(!1)}).catch(()=>{$("Failed to load ".concat(s," data. Please try again.")),m(!1)})},className:"mt-2 text-sm font-medium text-red-800 hover:text-red-900",children:"Retry"})]}),d&&(0,a.jsxs)("div",{className:"flex justify-center items-center py-16",children:[(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-blue-600"}),(0,a.jsxs)("span",{className:"ml-4 text-gray-600",children:["Loading ",s,"s..."]})]}),!d&&!U&&ea.length>0&&(0,a.jsx)(X,{experiences:ea,activeTab:s,favorites:x,toggleFavorite:et,showAllExperiences:H,setShowAllExperiences:Y,currentSlide:G,setCurrentSlide:W,itemsToShow:6}),!d&&!U&&o.length>0&&0===ea.length&&(0,a.jsxs)("div",{className:"text-center py-16 bg-gray-50 rounded-xl border border-gray-200",children:[(0,a.jsx)("div",{className:"inline-flex justify-center items-center w-16 h-16 bg-gray-100 rounded-full mb-4",children:(0,a.jsx)(B.Z,{size:32,className:"text-gray-400"})}),(0,a.jsx)("h3",{className:"text-xl font-medium text-gray-900 mb-2",children:"No results found"}),(0,a.jsx)("p",{className:"text-gray-500 max-w-md mx-auto",children:p||y.length>0||null!==w||C.length>0||z.length>0||null!==j?"Try adjusting your filters or search query to find what you're looking for.":"No ".concat(s,"s found matching your criteria.")}),(p||y.length>0||null!==w||C.length>0||z.length>0||null!==j)&&(0,a.jsx)("button",{onClick:J,className:"mt-4 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Clear Filters"})]}),!d&&!U&&0===o.length&&(0,a.jsxs)("div",{className:"text-center py-16 bg-gray-50 rounded-xl border border-gray-200",children:[(0,a.jsx)("div",{className:"inline-flex justify-center items-center w-16 h-16 bg-gray-100 rounded-full mb-4",children:(0,a.jsx)(B.Z,{size:32,className:"text-gray-400"})}),(0,a.jsxs)("h3",{className:"text-xl font-medium text-gray-900 mb-2",children:["No ",s,"s available"]}),(0,a.jsxs)("p",{className:"text-gray-500 max-w-md mx-auto",children:["We couldn't find any ",s,"s for this city at the moment."]})]}),!d&&x.length>0&&o.some(e=>x.includes(e.id))&&(0,a.jsxs)(i.E.div,{variants:er,className:"mt-16 pt-16 border-t border-gray-200",children:[(0,a.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-8",children:"Your Saved Experiences"}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6",children:[o.filter(e=>x.includes(e.id)).slice(0,4).map(e=>(0,a.jsxs)("div",{className:"bg-white rounded-lg overflow-hidden shadow-sm border border-gray-100 hover:shadow-md transition-shadow group",children:[(0,a.jsxs)("div",{className:"relative h-36 overflow-hidden bg-gray-200",children:[(0,a.jsx)("img",{src:e.image_url||el,alt:e.name,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",onError:e=>{let t=e.target;t.src!==el&&(t.src=el)}}),(0,a.jsx)("button",{onClick:()=>et(e.id),className:"absolute top-2 right-2 p-1.5 bg-white/90 backdrop-blur-sm rounded-full hover:bg-white transition-colors",children:(0,a.jsx)(D.Z,{size:16,className:"text-red-500 fill-red-500"})})]}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsxs)("div",{className:"flex items-center mb-1",children:[(0,a.jsx)("span",{className:"text-xs text-gray-500 capitalize",children:e.type}),(0,a.jsxs)("div",{className:"ml-auto flex items-center",children:[(0,a.jsx)(T.Z,{size:14,className:"text-amber-400"}),(0,a.jsx)("span",{className:"text-xs font-medium ml-1",children:e.rating?"string"==typeof e.rating?e.rating:e.rating.toFixed(1):"4.5"})]})]}),(0,a.jsx)("h4",{className:"font-medium text-gray-900 mb-1",children:e.name}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,a.jsxs)("span",{className:"text-xs text-gray-500 flex items-start",children:[(0,a.jsx)(l.Z,{size:12,className:"mr-1 mt-0.5"}),e.location||"City Center"]}),(0,a.jsxs)("button",{onClick:()=>ei(e),className:"text-xs text-blue-600 hover:text-blue-800 font-medium flex items-center",children:["Details",(0,a.jsx)(_.Z,{size:12,className:"ml-1"})]})]})]})]},e.id)),x.length>4&&(0,a.jsxs)("div",{className:"bg-gray-50 rounded-lg border border-gray-200 p-6 flex flex-col items-center justify-center text-center hover:bg-gray-100 transition-colors",children:[(0,a.jsxs)("span",{className:"text-gray-700 mb-2",children:["You have ",x.length-4," more saved experiences"]}),(0,a.jsx)("button",{className:"text-blue-600 hover:text-blue-800 font-medium text-sm",children:"View All Saved"})]})]})]})]})},et=s(9401),es=s(99125),ea=s(75585),er=s(47969),ei=s(3289),el=e=>{let{city:t,className:s=""}=e,[l,n]=(0,r.useState)(new Set);if(!t.typical_costs)return null;let o="string"==typeof t.typical_costs?JSON.parse(t.typical_costs):t.typical_costs,c=Object.keys(o).length>0;if(!c)return null;let d={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6}}},m=e=>{switch(e.toLowerCase()){case"food_and_drink":case"food":case"meals":return(0,a.jsx)(I.Z,{size:20});case"drinks":case"coffee":case"beverages":return(0,a.jsx)(b.Z,{size:20});case"transportation":case"transit":return(0,a.jsx)(et.Z,{size:20});case"accommodation":case"lodging":case"hotels":return(0,a.jsx)(S.Z,{size:20});case"activities":case"attractions":case"entertainment":return(0,a.jsx)(es.Z,{size:20});case"shopping":case"souvenirs":case"other_expenses":return(0,a.jsx)(ea.Z,{size:20});default:return(0,a.jsx)(f.Z,{size:20})}},x=e=>e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),h=e=>"".concat(e.currency||"€"," ").concat(e.price.toFixed(2)),g=e=>{let t=new Set(l);t.has(e)?t.delete(e):t.add(e),n(t)},u=e=>{let t=e.toLowerCase();return t.includes("food")||t.includes("drink")?{bg:"bg-red-100",text:"text-red-600"}:t.includes("transport")||t.includes("transit")?{bg:"bg-indigo-100",text:"text-indigo-600"}:t.includes("accommodation")||t.includes("hotel")||t.includes("lodging")?{bg:"bg-amber-100",text:"text-amber-600"}:t.includes("activities")||t.includes("attraction")?{bg:"bg-purple-100",text:"text-purple-600"}:t.includes("shopping")||t.includes("souvenir")?{bg:"bg-emerald-100",text:"text-emerald-600"}:t.includes("other")||t.includes("expense")?{bg:"bg-green-100",text:"text-green-600"}:{bg:"bg-blue-100",text:"text-blue-600"}};return(0,a.jsxs)(i.E.div,{variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-100px"},className:"bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden ".concat(s),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-100",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"bg-green-100 p-3 rounded-lg",children:(0,a.jsx)(f.Z,{size:24,className:"text-green-600"})}),(0,a.jsxs)("h3",{className:"text-xl font-bold ml-4",children:["Typical Costs in ",t.name]})]}),(0,a.jsx)("button",{onClick:()=>{l.size===Object.keys(o).length?n(new Set):n(new Set(Object.keys(o)))},className:"flex items-center text-sm gap-1 bg-gray-100 hover:bg-gray-200 text-gray-700 px-3 py-1.5 rounded-lg transition-colors",children:l.size===Object.keys(o).length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(er.Z,{size:18}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Collapse All"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ei.Z,{size:18}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Expand All"})]})})]}),(0,a.jsxs)("div",{className:"p-6",children:[c?(0,a.jsx)("div",{className:"space-y-4",children:Object.entries(o).map(e=>{let[t,s]=e;if(!s)return null;let{bg:r,text:n}=u(t),o=l.has(t);return(0,a.jsxs)(i.E.div,{variants:d,className:"border border-gray-200 rounded-lg overflow-hidden shadow-sm",children:[(0,a.jsxs)("button",{onClick:()=>g(t),className:"w-full flex items-center justify-between p-4 bg-white hover:bg-gray-50 transition-colors duration-200",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"p-2 rounded-full mr-3 ".concat(r," ").concat(n),children:m(t)}),(0,a.jsx)("span",{className:"font-medium text-gray-900",children:x(t)})]}),(0,a.jsx)("div",{className:"".concat(n),children:o?(0,a.jsx)(er.Z,{size:20}):(0,a.jsx)(ei.Z,{size:20})})]}),o&&(0,a.jsx)(i.E.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"p-4 bg-gray-50 border-t border-gray-200",children:(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:Object.entries(s).map((e,t)=>{let[s,r]=e;return(0,a.jsxs)("div",{className:"bg-white rounded-lg overflow-hidden border border-gray-100 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center p-3",children:[(0,a.jsx)("span",{className:"font-medium text-gray-800",children:x(s)}),(0,a.jsx)("span",{className:"text-lg font-bold text-green-600",children:h(r)})]}),r.notes&&(0,a.jsxs)("div",{className:"p-3 flex items-start text-sm text-gray-600 border-t border-gray-100 bg-gray-50",children:[(0,a.jsx)(y.Z,{size:16,className:"text-gray-400 mr-2 mt-0.5 flex-shrink-0"}),(0,a.jsx)("span",{children:r.notes})]})]},t)})})})]},t)})}):(0,a.jsx)("p",{className:"text-gray-500",children:"Cost information is not available for this city."}),(0,a.jsx)(i.E.div,{variants:d,className:"mt-6 bg-blue-50 p-4 rounded-lg",children:(0,a.jsxs)("p",{className:"text-sm text-blue-700",children:[(0,a.jsx)("span",{className:"font-medium",children:"Note:"})," These prices are approximate and may vary depending on season, location, and your personal preferences."]})})]})]})},en=e=>{var t,s,r,l;let{city:n}=e;if(!n.typical_costs)return null;let o={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6}}};if(!(Object.keys("string"==typeof n.typical_costs?JSON.parse(n.typical_costs):n.typical_costs).length>0))return null;let c=!!n.affordability,d=(null===(t=n.affordability)||void 0===t?void 0:t.toLowerCase())||"moderate";return(0,a.jsxs)(i.E.div,{variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-100px"},className:"my-16 md:my-24",id:"costs",children:[(0,a.jsxs)(i.E.div,{variants:o,className:"mb-12 text-center",children:[(0,a.jsxs)("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 inline-flex items-center gap-3 justify-center",children:[(0,a.jsx)("span",{className:"bg-green-600/10 p-2 rounded-lg",children:(0,a.jsx)(f.Z,{size:24,className:"text-green-600"})}),"Travel Costs in ",n.name]}),(0,a.jsx)("div",{className:"w-24 h-1.5 bg-gradient-to-r from-green-600 to-teal-600 mx-auto mt-4 rounded-full"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12",children:[(0,a.jsx)(i.E.div,{variants:o,className:"lg:col-span-1",children:(0,a.jsxs)("div",{className:"bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden h-full",children:[(0,a.jsxs)("div",{className:"flex items-center p-6 border-b border-gray-100",children:[(0,a.jsx)("div",{className:"bg-green-100 p-3 rounded-lg",children:(0,a.jsx)(w.Z,{size:24,className:"text-green-600"})}),(0,a.jsx)("h3",{className:"text-xl font-bold ml-4",children:"Cost Overview"})]}),(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsxs)("p",{className:"text-gray-700 mb-6",children:[n.name," ",(()=>{switch(d){case"budget":return"is generally quite affordable for travelers, with many budget accommodation options and inexpensive local food.";case"affordable":return"offers good value for money, with reasonable prices for accommodation, food, and activities.";case"moderate":return"has moderate costs, with a mix of affordable options and some premium experiences.";case"expensive":return"can be relatively expensive, especially in tourist areas and popular districts.";case"luxury":return"is among the more expensive city destinations, with high costs for accommodation, dining, and experiences.";default:return"has varying costs depending on the district, season, and your preferences."}})()]}),c&&(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsxs)("div",{className:"flex justify-between mb-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-700",children:"Affordability"}),(0,a.jsx)("span",{className:"text-sm font-medium text-green-600 capitalize",children:d})]}),(0,a.jsx)("div",{className:"h-2 w-full bg-gray-200 rounded-full overflow-hidden",children:(0,a.jsx)("div",{className:"h-full bg-green-500 rounded-full ".concat({budget:"w-1/5",affordable:"w-2/5",moderate:"w-3/5",expensive:"w-4/5",luxury:"w-full"}[d]||"w-3/5")})}),(0,a.jsxs)("div",{className:"flex justify-between mt-1 text-xs text-gray-500",children:[(0,a.jsx)("span",{children:"Budget"}),(0,a.jsx)("span",{children:"Affordable"}),(0,a.jsx)("span",{children:"Moderate"}),(0,a.jsx)("span",{children:"Expensive"}),(0,a.jsx)("span",{children:"Luxury"})]})]}),(0,a.jsxs)("div",{className:"bg-blue-50 p-4 rounded-lg mb-6",children:[(0,a.jsx)("h4",{className:"font-medium text-blue-700 mb-2",children:"Money-Saving Tips"}),(0,a.jsx)("ul",{className:"space-y-2 text-sm text-gray-700",children:(null===(s=n.currency_info)||void 0===s?void 0:s.tips)&&n.currency_info.tips.length>0?n.currency_info.tips.slice(0,4).map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start",children:[(0,a.jsx)("span",{className:"text-blue-500 mr-2",children:"•"}),e]},t)):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("li",{className:"flex items-start",children:[(0,a.jsx)("span",{className:"text-blue-500 mr-2",children:"•"}),"Visit popular attractions early in the morning or during weekdays"]}),(0,a.jsxs)("li",{className:"flex items-start",children:[(0,a.jsx)("span",{className:"text-blue-500 mr-2",children:"•"}),"Use public transportation or walk instead of taxis"]}),(0,a.jsxs)("li",{className:"flex items-start",children:[(0,a.jsx)("span",{className:"text-blue-500 mr-2",children:"•"}),"Consider staying in neighborhoods just outside the center"]}),(0,a.jsxs)("li",{className:"flex items-start",children:[(0,a.jsx)("span",{className:"text-blue-500 mr-2",children:"•"}),"Look for lunch specials and eat at local restaurants"]})]})})]}),n.currency&&(0,a.jsxs)("div",{className:"bg-green-50 p-4 rounded-lg",children:[(0,a.jsx)("h4",{className:"font-medium text-green-700 mb-2",children:"Currency Information"}),(0,a.jsxs)("p",{className:"text-sm text-gray-700 mb-2",children:[(0,a.jsx)("span",{className:"font-medium",children:"Currency:"})," ",n.currency,(null===(r=n.currency_info)||void 0===r?void 0:r.symbol)?" (".concat(n.currency_info.symbol,")"):""]}),(null===(l=n.currency_info)||void 0===l?void 0:l.atm_info)&&(0,a.jsx)("p",{className:"text-sm text-gray-700",children:n.currency_info.atm_info})]})]})]})}),(0,a.jsx)(i.E.div,{variants:o,className:"lg:col-span-2",children:(0,a.jsx)(el,{city:n,className:"h-full"})})]})]})},eo=s(75980),ec=s(24287),ed=s(25361),em=s(74376),ex=s(84037),eh=s(87928),eg=s(28560),eu=s(4303),ep=s(10046),eb=s(5341),ef=s(66314),ey=s(19143),ev=s(37826),ej=s(12032),eN=e=>{let{city:t,travelAdvisoryUrl:s}=e,[l,n]=(0,r.useState)(!1),[o,d]=(0,r.useState)(!1),[m,x]=(0,r.useState)(!1),[h,g]=(0,r.useState)(null),[u,p]=(0,r.useState)(!1),[b,v]=(0,r.useState)("transportation"),j={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6}}},N=t.currency_info?"string"==typeof t.currency_info?JSON.parse(t.currency_info):t.currency_info:null,k=(0,r.useCallback)(async()=>{if(null==N?void 0:N.code){p(!0);try{let e=(await L.Z.get("/exchange-rates/".concat(N.code,"/"))).data;e.success&&g({usd:e.rates.USD,gbp:e.rates.GBP,jpy:e.rates.JPY,update_date:e.updated_at,isLive:e.is_fresh})}catch(e){console.error("Error fetching exchange rates:",e)}finally{p(!1)}}},[null==N?void 0:N.code]);(0,r.useEffect)(()=>{(null==N?void 0:N.code)&&k()},[null==N?void 0:N.code,k]);let C=e=>e?e.includes("\n-")||e.includes("\n•")?e.split("\n\n").map((e,t)=>{if(!(e.includes("\n-")||e.includes("\n•")))return(0,a.jsx)("p",{className:"mb-4 text-gray-700 leading-relaxed last:mb-0",children:e},t);{let[s,...r]=e.split("\n");return(0,a.jsxs)("div",{className:"mb-6 last:mb-0",children:[s&&(0,a.jsx)("h4",{className:"font-medium text-gray-900 mb-3",children:s}),(0,a.jsx)("ul",{className:"space-y-3",children:r.map((e,t)=>{let s=e.replace(/^[-•]\s*/,"").trim();return s?(0,a.jsxs)("li",{className:"flex items-start rounded-lg p-2 hover:bg-gray-50 transition-colors",children:[(0,a.jsx)("span",{className:"text-blue-600 mr-2 mt-0.5",children:(0,a.jsx)(eo.Z,{size:16})}),(0,a.jsx)("span",{className:"text-gray-700",children:s})]},t):null})})]},t)}}):e.split("\n\n").map((e,t)=>(0,a.jsx)("p",{className:"mb-4 text-gray-700 leading-relaxed last:mb-0",children:e},t)):null,z=t.useful_phrases?"string"==typeof t.useful_phrases?JSON.parse(t.useful_phrases):t.useful_phrases:null,Z=(null==z?void 0:z.phrases)?m?z.phrases:z.phrases.slice(0,4):[],E=(null==N?void 0:N.payment_methods)?o?N.payment_methods:N.payment_methods.slice(0,3):[],S=(null==N?void 0:N.tips)?l?N.tips:N.tips.slice(0,3):[],I=e=>{switch(e){case"high":return(0,a.jsx)(ec.Z,{size:16,className:"text-green-600"});case"medium":return(0,a.jsx)(ed.Z,{size:16,className:"text-amber-600"});case"low":return(0,a.jsx)(em.Z,{size:16,className:"text-red-600"});default:return(0,a.jsx)(y.Z,{size:16,className:"text-blue-600"})}},F=e=>{switch(e){case"credit_cards":return(0,a.jsx)(A.Z,{size:16,className:"text-blue-600"});case"debit_cards":return(0,a.jsx)(A.Z,{size:16,className:"text-purple-600"});case"cash":return(0,a.jsx)(f.Z,{size:16,className:"text-green-600"});case"mobile_payments":return(0,a.jsx)(ex.Z,{size:16,className:"text-indigo-600"});case"traveler_checks":return(0,a.jsx)(eh.Z,{size:16,className:"text-amber-600"});default:return(0,a.jsx)(eg.Z,{size:16,className:"text-gray-600"})}},B=[{id:"transportation",label:"Transportation",icon:(0,a.jsx)(eu.Z,{size:18})},{id:"accommodation",label:"Accommodation",icon:(0,a.jsx)(c.Z,{size:18})},{id:"currency",label:"Currency",icon:(0,a.jsx)(ep.Z,{size:18})},{id:"language",label:"Language",icon:(0,a.jsx)(eb.Z,{size:18})}];return(0,a.jsxs)(i.E.div,{variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-100px"},id:"essentials",className:"scroll-mt-24",children:[(0,a.jsxs)(i.E.div,{variants:j,className:"mb-12 text-center",children:[(0,a.jsxs)("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 inline-flex items-center gap-3 justify-center",children:[(0,a.jsx)("span",{className:"bg-blue-600/10 p-2 rounded-lg",children:(0,a.jsx)(w.Z,{size:24,className:"text-blue-600"})}),"Travel Essentials"]}),(0,a.jsx)("div",{className:"w-24 h-1.5 bg-gradient-to-r from-blue-600 to-indigo-600 mx-auto mt-4 rounded-full"})]}),(0,a.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,a.jsx)(i.E.div,{variants:j,className:"mb-8 flex justify-center",children:(0,a.jsx)("div",{className:"inline-flex bg-gray-100 p-1.5 rounded-xl",children:B.map(e=>(0,a.jsxs)("button",{onClick:()=>v(e.id),className:"px-5 py-2.5 rounded-lg text-sm font-medium transition-all flex items-center ".concat(b===e.id?"bg-white text-blue-600 shadow-sm":"text-gray-600 hover:text-gray-900"),children:[(0,a.jsx)("span",{className:"mr-2",children:e.icon}),e.label]},e.id))})}),(0,a.jsx)(i.E.div,{variants:{hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:100,damping:15}},hover:{y:-5,boxShadow:"0 10px 25px -5px rgba(0, 0, 0, 0.1)",transition:{type:"spring",stiffness:300,damping:15}}},whileHover:"hover",className:"bg-white rounded-2xl overflow-hidden shadow-md border border-gray-100",children:(()=>{switch(b){case"transportation":return(0,a.jsx)("div",{className:"p-6 md:p-8",children:(0,a.jsx)("div",{className:"prose max-w-none",children:C(t.transportation||"Transportation information not available.")})});case"accommodation":return(0,a.jsx)("div",{className:"p-6 md:p-8",children:(0,a.jsx)("div",{className:"prose max-w-none",children:C(t.accommodation||"Accommodation information not available.")})});case"currency":return(0,a.jsxs)("div",{className:"p-6 md:p-8",children:[(0,a.jsx)("div",{className:"mb-6 flex items-start",children:(0,a.jsxs)("div",{className:"bg-amber-50 p-6 rounded-xl w-full shadow-sm border border-amber-100",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h4",{className:"font-semibold text-gray-900 text-lg",children:(null==N?void 0:N.name)||t.currency||"Local Currency"}),(null==N?void 0:N.symbol)&&(0,a.jsx)("span",{className:"text-3xl font-bold text-amber-600",children:N.symbol})]}),(null==N?void 0:N.code)&&(0,a.jsxs)("p",{className:"text-sm text-gray-600 mb-3",children:["Currency code:"," ",(0,a.jsx)("span",{className:"font-semibold",children:N.code})]}),h&&(0,a.jsxs)("div",{className:"mt-4 pt-4 border-t border-amber-200",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsxs)("p",{className:"text-sm font-medium text-gray-700 flex items-center",children:["Exchange Rates",h.isLive&&(0,a.jsx)("span",{className:"text-green-600 text-xs ml-2 bg-green-100 px-2 py-0.5 rounded-full",children:"Live"})]}),(0,a.jsxs)("button",{onClick:k,disabled:u,className:"text-blue-600 hover:text-blue-800 text-xs flex items-center bg-white px-2 py-1 rounded-md shadow-sm hover:shadow transition-all",children:[u?(0,a.jsx)(ef.Z,{size:12,className:"mr-1 animate-spin"}):(0,a.jsx)(ef.Z,{size:12,className:"mr-1"}),"Refresh"]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,a.jsxs)("div",{className:"text-center p-3 bg-white rounded-lg shadow-sm border border-gray-100",children:[(0,a.jsx)("p",{className:"text-xs text-gray-500 mb-1",children:"USD"}),(0,a.jsxs)("p",{className:"font-semibold text-lg",children:["$",h.usd.toFixed(2)]})]}),(0,a.jsxs)("div",{className:"text-center p-3 bg-white rounded-lg shadow-sm border border-gray-100",children:[(0,a.jsx)("p",{className:"text-xs text-gray-500 mb-1",children:"GBP"}),(0,a.jsxs)("p",{className:"font-semibold text-lg",children:["\xa3",h.gbp.toFixed(2)]})]}),(0,a.jsxs)("div",{className:"text-center p-3 bg-white rounded-lg shadow-sm border border-gray-100",children:[(0,a.jsx)("p",{className:"text-xs text-gray-500 mb-1",children:"JPY"}),(0,a.jsxs)("p",{className:"font-semibold text-lg",children:["\xa5",Math.round(h.jpy)]})]})]}),(0,a.jsxs)("p",{className:"text-xs text-gray-500 mt-3 text-center",children:["Rates as of ",h.update_date]})]}),!h&&(null==N?void 0:N.code)&&!u&&(0,a.jsx)("div",{className:"mt-4 pt-4 border-t border-amber-200",children:(0,a.jsxs)("button",{onClick:k,className:"w-full py-3 px-4 bg-blue-50 hover:bg-blue-100 text-blue-600 text-sm font-medium rounded-lg flex items-center justify-center shadow-sm",children:[(0,a.jsx)(ef.Z,{size:14,className:"mr-2"}),"Load Exchange Rates"]})}),u&&!h&&(0,a.jsx)("div",{className:"mt-4 pt-4 border-t border-amber-200",children:(0,a.jsxs)("div",{className:"flex justify-center items-center py-6",children:[(0,a.jsx)(ef.Z,{size:20,className:"animate-spin text-amber-600 mr-3"}),(0,a.jsx)("span",{className:"text-sm text-gray-600",children:"Loading exchange rates..."})]})})]})}),(null==N?void 0:N.payment_methods)&&N.payment_methods.length>0&&(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsxs)("h4",{className:"font-medium text-gray-900 mb-4 flex items-center",children:[(0,a.jsx)(A.Z,{size:18,className:"text-blue-600 mr-2"}),"Payment Methods"]}),(0,a.jsx)("div",{className:"space-y-3 bg-gray-50 p-4 rounded-xl",children:E.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-start bg-white border border-gray-100 p-4 rounded-lg shadow-sm hover:shadow-md transition-shadow",children:[(0,a.jsx)("div",{className:"mt-1 mr-3",children:F(e.type)}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"font-medium text-gray-800",children:e.type.replace("_"," ").replace(/\b\w/g,e=>e.toUpperCase())}),(0,a.jsxs)("span",{className:"flex items-center px-2 py-0.5 rounded-md",style:{backgroundColor:"high"===e.acceptance?"#dcfce7":"medium"===e.acceptance?"#fef9c3":"#fee2e2",color:"high"===e.acceptance?"#166534":"medium"===e.acceptance?"#854d0e":"#b91c1c"},children:[I(e.acceptance),(0,a.jsx)("span",{className:"text-xs ml-1 font-medium",children:e.acceptance.charAt(0).toUpperCase()+e.acceptance.slice(1)})]})]}),(0,a.jsx)("p",{className:"text-sm text-gray-600 mt-2",children:e.notes})]})]},t))}),N.payment_methods.length>3&&(0,a.jsxs)("button",{onClick:()=>d(!o),className:"text-blue-600 hover:text-blue-800 text-sm font-medium mt-4 flex items-center",children:[o?"Show less":"Show all payment methods",(0,a.jsx)(ey.Z,{size:14,className:"ml-1"})]})]}),(null==N?void 0:N.atm_info)&&(0,a.jsxs)("div",{className:"mb-6 bg-blue-50 p-5 rounded-xl border border-blue-100 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex items-center mb-3",children:[(0,a.jsx)(ev.Z,{size:18,className:"text-blue-600 mr-2"}),(0,a.jsx)("h4",{className:"font-medium text-gray-900",children:"ATM Information"})]}),(0,a.jsx)("p",{className:"text-gray-700",children:N.atm_info})]}),(null==N?void 0:N.tips)&&N.tips.length>0?(0,a.jsxs)("div",{children:[(0,a.jsxs)("h4",{className:"font-medium text-gray-900 mb-4 flex items-center",children:[(0,a.jsx)(eo.Z,{size:18,className:"text-amber-600 mr-2"}),"Money Tips"]}),(0,a.jsx)("ul",{className:"space-y-3 bg-amber-50 p-4 rounded-xl border border-amber-100",children:S.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start bg-white p-3 rounded-lg shadow-sm",children:[(0,a.jsx)("span",{className:"text-amber-600 mr-2 mt-0.5",children:(0,a.jsx)(y.Z,{size:16})}),(0,a.jsx)("span",{className:"text-gray-700",children:e})]},t))}),N.tips.length>3&&(0,a.jsxs)("button",{onClick:()=>n(!l),className:"text-blue-600 hover:text-blue-800 text-sm font-medium mt-3 flex items-center",children:[l?"Show less":"Show all ".concat(N.tips.length," tips"),(0,a.jsx)(ey.Z,{size:14,className:"ml-1"})]})]}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("h4",{className:"font-medium text-gray-900 mb-3 flex items-center",children:[(0,a.jsx)(eo.Z,{size:18,className:"text-amber-600 mr-2"}),"Money Tips"]}),(0,a.jsxs)("ul",{className:"space-y-3 bg-amber-50 p-4 rounded-xl border border-amber-100",children:[(0,a.jsxs)("li",{className:"flex items-start bg-white p-3 rounded-lg shadow-sm",children:[(0,a.jsx)("span",{className:"text-amber-600 mr-2 mt-0.5",children:(0,a.jsx)(y.Z,{size:16})}),(0,a.jsx)("span",{className:"text-gray-700",children:"Major credit cards are widely accepted in most establishments."})]}),(0,a.jsxs)("li",{className:"flex items-start bg-white p-3 rounded-lg shadow-sm",children:[(0,a.jsx)("span",{className:"text-amber-600 mr-2 mt-0.5",children:(0,a.jsx)(y.Z,{size:16})}),(0,a.jsx)("span",{className:"text-gray-700",children:"ATMs are readily available throughout the city."})]}),(0,a.jsxs)("li",{className:"flex items-start bg-white p-3 rounded-lg shadow-sm",children:[(0,a.jsx)("span",{className:"text-amber-600 mr-2 mt-0.5",children:(0,a.jsx)(y.Z,{size:16})}),(0,a.jsx)("span",{className:"text-gray-700",children:"It's advisable to carry some cash for small purchases and local markets."})]})]})]})]});case"language":return(0,a.jsxs)("div",{className:"p-6 md:p-8",children:[(0,a.jsx)("div",{className:"bg-gradient-to-br from-white to-indigo-50 p-6 rounded-xl shadow-sm mb-6 border border-indigo-100",children:(0,a.jsx)("p",{className:"text-gray-800 leading-relaxed",children:t.language||"Language information not available."})}),(null==z?void 0:z.language_notes)&&(0,a.jsx)("div",{className:"bg-blue-50 p-5 rounded-xl mb-6 border border-blue-100 shadow-sm",children:(0,a.jsxs)("div",{className:"flex items-start",children:[(0,a.jsx)("div",{className:"mt-1 mr-3 bg-blue-100 p-2 rounded-lg",children:(0,a.jsx)(y.Z,{size:18,className:"text-blue-600"})}),(0,a.jsx)("p",{className:"text-gray-700",children:z.language_notes})]})}),(0,a.jsxs)("div",{className:"bg-indigo-50 p-6 rounded-xl border border-indigo-100 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex items-center mb-4",children:[(0,a.jsx)("div",{className:"bg-indigo-100 p-2 rounded-lg mr-3",children:(0,a.jsx)(eb.Z,{size:18,className:"text-indigo-600"})}),(0,a.jsx)("h4",{className:"font-medium text-gray-900",children:"Essential Phrases"})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:Z.length>0?Z.map((e,t)=>(0,a.jsxs)("div",{className:"bg-white p-4 rounded-lg shadow-sm border border-gray-100 hover:shadow-md transition-shadow",children:[(0,a.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:e.english}),(0,a.jsx)("p",{className:"font-medium text-lg",children:e.local}),e.pronunciation&&(0,a.jsx)("p",{className:"text-xs text-indigo-600 italic mt-2 bg-indigo-50 p-2 rounded-md inline-block",children:e.pronunciation})]},t)):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"bg-white p-4 rounded-lg shadow-sm border border-gray-100",children:[(0,a.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:"Hello"}),(0,a.jsx)("p",{className:"font-medium text-lg",children:"Hello"})]}),(0,a.jsxs)("div",{className:"bg-white p-4 rounded-lg shadow-sm border border-gray-100",children:[(0,a.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:"Thank you"}),(0,a.jsx)("p",{className:"font-medium text-lg",children:"Thank you"})]}),(0,a.jsxs)("div",{className:"bg-white p-4 rounded-lg shadow-sm border border-gray-100",children:[(0,a.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:"Please"}),(0,a.jsx)("p",{className:"font-medium text-lg",children:"Please"})]}),(0,a.jsxs)("div",{className:"bg-white p-4 rounded-lg shadow-sm border border-gray-100",children:[(0,a.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:"Yes/No"}),(0,a.jsx)("p",{className:"font-medium text-lg",children:"Yes/No"})]})]})}),(null==z?void 0:z.phrases)&&z.phrases.length>4&&(0,a.jsxs)("button",{onClick:()=>x(!m),className:"mt-5 text-indigo-600 hover:text-indigo-800 font-medium flex items-center p-2 px-4 bg-indigo-50 rounded-lg shadow-sm hover:bg-indigo-100 transition-colors",children:[m?(0,a.jsx)(a.Fragment,{children:"Show less phrases"}):(0,a.jsx)(a.Fragment,{children:"View more phrases"}),(0,a.jsx)(_.Z,{size:14,className:"ml-1 transition-transform group-hover:translate-x-1"})]})]})]});default:return(0,a.jsx)("div",{children:"Select a tab to view content"})}})()}),s&&(0,a.jsx)(i.E.div,{variants:j,className:"mt-8",children:(0,a.jsx)("div",{className:"bg-gradient-to-r from-amber-50 to-orange-50 border border-amber-200 rounded-xl p-6 shadow-sm",children:(0,a.jsxs)("div",{className:"flex items-start",children:[(0,a.jsx)("div",{className:"bg-amber-100 p-3 rounded-xl mr-4 shadow-sm",children:(0,a.jsx)(ej.Z,{size:24,className:"text-amber-600"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-3",children:"Travel Advisory"}),(0,a.jsx)("p",{className:"text-gray-700 mb-4 leading-relaxed",children:"Before traveling, we recommend checking the latest travel advisories and safety information. Stay informed about local conditions."}),(0,a.jsxs)("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-blue-600 hover:text-blue-800 font-medium text-sm bg-white px-4 py-2 rounded-lg shadow-sm hover:shadow transition-all",children:["View Official Travel Advisory",(0,a.jsx)(ey.Z,{size:16,className:"ml-2"})]})]})]})})})]})]})},ew=s(33145),e_=s(13147),ek=s(24295),eC=s(10595),eA=s(57238),ez=s(90745),eZ=s(67541),eE=s(44986),eS=e=>{let{food:t,history:s,culture:l,travelSeasons:o,foodImageUrl:c,historyImageUrl:m,cultureImageUrl:x,seasonsImageUrl:h,foodExperiences:g,historicalSites:p}=e,[f,y]=(0,r.useState)("food"),[v,N]=(0,r.useState)(!1);(0,r.useEffect)(()=>(v?document.body.style.overflow="hidden":document.body.style.overflow="auto",()=>{document.body.style.overflow="auto"}),[v]);let _={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6}}},k=e=>e?e.replace(/\r\n/g,"\n").split("\n\n").map((e,t)=>{if(!e.trim())return null;if(e.trim().includes("- ")){let s=e.split("\n").filter(e=>e.trim().startsWith("- ")).map(e=>e.trim().substring(2).trim());if(s.length>0)return(0,a.jsx)("ul",{className:"list-disc pl-5 mb-4 space-y-2",children:s.map((e,t)=>(0,a.jsx)("li",{className:"text-gray-700",children:e},t))},t)}return(0,a.jsx)("p",{className:"mb-5 text-gray-700 leading-relaxed last:mb-0",children:e},t)}).filter(Boolean):(0,a.jsx)("p",{className:"text-gray-500",children:"Information not available."}),C=()=>{switch(f){case"food":default:return c||"https://images.unsplash.com/photo-1576867757603-05b134ebc379?q=80&w=1920&auto=format&fit=crop";case"history":return m||"https://images.unsplash.com/photo-1588953936179-d2a4734c5490?q=80&w=1920&auto=format&fit=crop";case"culture":return x||"https://images.unsplash.com/photo-1551279880-032b33d652df?q=80&w=1920&auto=format&fit=crop";case"seasons":return h||"https://images.unsplash.com/photo-1448518184296-a22facb4446f?q=80&w=1920&auto=format&fit=crop"}},A=[{id:"food",label:"Food",icon:(0,a.jsx)(I.Z,{size:18}),activeColor:"text-red-600",activeBg:"bg-red-50",activeBorder:"border-red-200"},{id:"history",label:"History",icon:(0,a.jsx)(eZ.Z,{size:18}),activeColor:"text-amber-600",activeBg:"bg-amber-50",activeBorder:"border-amber-200"},{id:"culture",label:"Culture",icon:(0,a.jsx)(d.Z,{size:18}),activeColor:"text-blue-600",activeBg:"bg-blue-50",activeBorder:"border-blue-200"}];return o&&o.length>0&&A.push({id:"seasons",label:"Seasons",icon:(0,a.jsx)(e_.Z,{size:18}),activeColor:"text-green-600",activeBg:"bg-green-50",activeBorder:"border-green-200"}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.M,{children:v&&(0,a.jsx)(i.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80",onClick:()=>N(!1),children:(0,a.jsxs)(i.E.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},transition:{type:"spring",stiffness:300,damping:30},className:"relative max-w-screen-xl max-h-screen p-4",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("button",{className:"absolute top-4 right-4 p-2 rounded-full bg-black/40 hover:bg-black/60 text-white z-10 transition-colors",onClick:()=>N(!1),children:(0,a.jsx)(eE.Z,{size:24})}),(0,a.jsx)(ew.default,{src:C(),alt:"".concat(f," visual"),width:1920,height:1080,className:"max-w-full max-h-[90vh] object-contain rounded-lg shadow-2xl"})]})})}),(0,a.jsxs)(i.E.div,{variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-100px"},id:"insights",className:"scroll-mt-24",children:[(0,a.jsxs)(i.E.div,{variants:_,className:"mb-12 text-center",children:[(0,a.jsxs)("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 inline-flex items-center gap-3 justify-center",children:[(0,a.jsx)("span",{className:"bg-blue-600/10 p-2 rounded-lg",children:(0,a.jsx)(w.Z,{size:24,className:"text-blue-600"})}),"Local Insights"]}),(0,a.jsx)("div",{className:"w-24 h-1.5 bg-gradient-to-r from-blue-600 to-indigo-600 mx-auto mt-4 rounded-full"})]}),(0,a.jsx)(i.E.div,{variants:_,className:"flex flex-wrap justify-center mb-10 gap-2",children:A.map(e=>(0,a.jsxs)("button",{onClick:()=>y(e.id),className:"flex items-center px-5 py-2.5 rounded-xl text-sm font-medium transition-all ".concat(f===e.id?"".concat(e.activeBg," ").concat(e.activeColor," border ").concat(e.activeBorder," shadow-sm"):"text-gray-600 hover:text-gray-900 hover:bg-gray-50 border border-transparent"),children:[(0,a.jsx)("span",{className:"mr-2",children:e.icon}),e.label]},e.id))}),(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8",children:[(0,a.jsx)(i.E.div,{variants:_,className:"order-2 lg:order-1 lg:flex-basis-3/5 lg:flex-grow",children:(0,a.jsx)("div",{className:"bg-white rounded-2xl shadow-md border border-gray-100 overflow-hidden h-full",children:(()=>{switch(f){case"food":return(0,a.jsxs)("div",{className:"p-8",children:[(0,a.jsxs)("div",{className:"flex items-center mb-6",children:[(0,a.jsx)("div",{className:"bg-red-100 p-3 rounded-xl shadow-sm mr-4",children:(0,a.jsx)(b.Z,{size:24,className:"text-red-600"})}),(0,a.jsx)("h3",{className:"text-2xl font-bold text-gray-900",children:"Culinary Delights"})]}),(0,a.jsx)("div",{className:"prose max-w-none",children:k(t)}),g&&g.length>0&&(0,a.jsxs)("div",{className:"mt-8 pt-8 border-t border-gray-200",children:[(0,a.jsx)("h4",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Local Food Experiences"}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:g.slice(0,4).map(e=>(0,a.jsxs)("div",{className:"bg-white rounded-xl p-4 border border-gray-100 shadow-sm hover:shadow-md transition-shadow group",children:[(0,a.jsx)("h5",{className:"font-semibold text-gray-900 mb-2 group-hover:text-red-600 transition-colors",children:e.title}),(0,a.jsx)("p",{className:"text-sm text-gray-600 line-clamp-2",children:e.description}),(0,a.jsxs)("button",{className:"mt-3 text-sm text-red-600 font-medium flex items-center",children:["Learn more",(0,a.jsx)(j.Z,{size:16,className:"ml-1 group-hover:translate-x-1 transition-transform"})]})]},e.id))})]})]});case"history":return(0,a.jsxs)("div",{className:"p-8",children:[(0,a.jsxs)("div",{className:"flex items-center mb-6",children:[(0,a.jsx)("div",{className:"bg-amber-100 p-3 rounded-xl shadow-sm mr-4",children:(0,a.jsx)(n.Z,{size:24,className:"text-amber-600"})}),(0,a.jsx)("h3",{className:"text-2xl font-bold text-gray-900",children:"Historical Heritage"})]}),(0,a.jsx)("div",{className:"prose max-w-none",children:k(s)}),p&&p.length>0&&(0,a.jsxs)("div",{className:"mt-8 pt-8 border-t border-gray-200",children:[(0,a.jsx)("h4",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Must-Visit Historical Sites"}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:p.slice(0,4).map(e=>(0,a.jsxs)("div",{className:"bg-white rounded-xl p-4 border border-gray-100 shadow-sm hover:shadow-md transition-shadow group",children:[(0,a.jsx)("h5",{className:"font-semibold text-gray-900 mb-2 group-hover:text-amber-600 transition-colors",children:e.title}),(0,a.jsx)("p",{className:"text-sm text-gray-600 line-clamp-2",children:e.description}),(0,a.jsxs)("button",{className:"mt-3 text-sm text-amber-600 font-medium flex items-center",children:["Discover",(0,a.jsx)(j.Z,{size:16,className:"ml-1 group-hover:translate-x-1 transition-transform"})]})]},e.id))})]})]});case"culture":return(0,a.jsxs)("div",{className:"p-8",children:[(0,a.jsxs)("div",{className:"flex items-center mb-6",children:[(0,a.jsx)("div",{className:"bg-blue-100 p-3 rounded-xl shadow-sm mr-4",children:(0,a.jsx)(d.Z,{size:24,className:"text-blue-600"})}),(0,a.jsx)("h3",{className:"text-2xl font-bold text-gray-900",children:"Cultural Experience"})]}),(0,a.jsx)("div",{className:"prose max-w-none",children:k(l)})]});case"seasons":return(0,a.jsxs)("div",{className:"p-8",children:[(0,a.jsxs)("div",{className:"flex items-center mb-6",children:[(0,a.jsx)("div",{className:"bg-green-100 p-3 rounded-xl shadow-sm mr-4",children:(0,a.jsx)(e_.Z,{size:24,className:"text-green-600"})}),(0,a.jsx)("h3",{className:"text-2xl font-bold text-gray-900",children:"Best Times to Visit"})]}),(0,a.jsx)("div",{className:"prose max-w-none mb-8",children:k(o?o.join("\n\n"):null)}),o&&o.length>0&&(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:o.map((e,t)=>{var s;let r=e.match(/^([A-Za-z]+)\s+\(([^)]+)\)/),i=r?r[1]:e.split(" ")[0],l=r?r[2]:null===(s=e.split(" ")[1])||void 0===s?void 0:s.replace(/[()]/g,""),n=(e=>{let t=e.toLowerCase();return t.includes("spring")?{bg:"bg-green-50",border:"border-green-200",shadow:"shadow-green-100",text:"text-green-800",gradient:"from-green-50 to-emerald-50",icon:(0,a.jsx)(ek.Z,{size:20,className:"text-green-600"})}:t.includes("summer")?{bg:"bg-amber-50",border:"border-amber-200",shadow:"shadow-amber-100",text:"text-amber-800",gradient:"from-amber-50 to-yellow-50",icon:(0,a.jsx)(eC.Z,{size:20,className:"text-amber-600"})}:t.includes("autumn")||t.includes("fall")?{bg:"bg-orange-50",border:"border-orange-200",shadow:"shadow-orange-100",text:"text-orange-800",gradient:"from-orange-50 to-red-50",icon:(0,a.jsx)(eA.Z,{size:20,className:"text-orange-600"})}:t.includes("winter")?{bg:"bg-blue-50",border:"border-blue-200",shadow:"shadow-blue-100",text:"text-blue-800",gradient:"from-blue-50 to-indigo-50",icon:(0,a.jsx)(ez.Z,{size:20,className:"text-blue-600"})}:{bg:"bg-gray-50",border:"border-gray-200",shadow:"shadow-gray-100",text:"text-gray-800",gradient:"from-gray-50 to-slate-50",icon:(0,a.jsx)(e_.Z,{size:20,className:"text-gray-600"})}})(i);return(0,a.jsxs)("div",{className:"bg-gradient-to-br ".concat(n.gradient," ").concat(n.border," border rounded-xl p-6 shadow-sm hover:shadow-md transition-shadow"),children:[(0,a.jsxs)("div",{className:"flex items-center mb-3",children:[(0,a.jsx)("div",{className:"bg-white p-2 rounded-lg shadow-sm mr-3",children:n.icon}),(0,a.jsx)("h4",{className:"font-semibold ".concat(n.text," text-lg"),children:i})]}),(0,a.jsx)("p",{className:"text-gray-700",children:l}),(0,a.jsx)("div",{className:"mt-3 pt-3 border-t border-gray-200",children:(0,a.jsxs)("p",{className:"text-sm text-gray-600",children:["Spring"===i&&"Mild temperatures with blooming flowers and fewer crowds.","Summer"===i&&"Warm weather perfect for outdoor activities and long days.",("Fall"===i||"Autumn"===i)&&"Beautiful foliage with comfortable temperatures and harvest festivals.","Winter"===i&&"Cooler temperatures with festive celebrations and less tourism."]})})]},t)})})]});default:return(0,a.jsx)("p",{children:"Select a tab to view content"})}})()})}),(0,a.jsx)(i.E.div,{variants:_,className:"order-1 lg:order-2 lg:flex-basis-2/5 lg:flex-shrink-0 lg:w-2/5",children:(0,a.jsxs)("div",{className:"h-72 md:h-96 lg:h-auto rounded-2xl overflow-hidden shadow-md border border-gray-100 relative group",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/0 via-black/0 to-black/60 z-10 opacity-80 group-hover:opacity-100 transition-opacity pointer-events-none"}),(0,a.jsx)("div",{className:"w-full h-full relative cursor-pointer",onClick:()=>N(!0),children:(0,a.jsx)(ew.default,{src:C(),alt:"".concat(f," visual"),fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:"object-cover transition-transform duration-1000 group-hover:scale-105"})}),(0,a.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-6 z-20 pointer-events-none",children:[(0,a.jsxs)("h3",{className:"text-white text-xl font-bold mb-2",children:["food"===f&&"Local Cuisine","history"===f&&"Historical Heritage","culture"===f&&"Cultural Experience","seasons"===f&&"Seasonal Highlights"]}),(0,a.jsxs)("p",{className:"text-white/80 text-sm",children:["food"===f&&"Discover authentic flavors and culinary traditions","history"===f&&"Explore centuries of fascinating history","culture"===f&&"Immerse yourself in local traditions and customs","seasons"===f&&"Find the perfect time for your visit"]})]})]})})]})]})]})},eI=s(14452),eF=e=>{var t;let{nearbyCities:s,links:r}=e,n={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6}}};console.log("CityNearby Props:",{nearbyCitiesCount:(null==s?void 0:s.length)||0,sampleNearbyCity:(null==s?void 0:s[0])?{id:s[0].id,name:s[0].name,hasImage:!!s[0].image_url,imageUrl:(null===(t=s[0].image_url)||void 0===t?void 0:t.substring(0,50))||"No image",distanceKm:s[0].distance_km}:"No nearby cities"});let o=(null==r?void 0:r.reduce((e,t)=>{let s=e[t.link_type]||[];return s.push(t),e[t.link_type]=s,e},{}))||{};return(0,a.jsxs)(i.E.div,{variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-100px"},children:[(0,a.jsxs)(i.E.div,{variants:n,className:"mb-12 text-center",children:[(0,a.jsx)("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900",children:"Explore Beyond"}),(0,a.jsx)("div",{className:"w-20 h-1 bg-blue-600 mx-auto mt-4"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[(0,a.jsxs)(i.E.div,{variants:n,className:"lg:col-span-2 bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden",children:[(0,a.jsx)("div",{className:"p-6 border-b border-gray-100",children:(0,a.jsx)("h3",{className:"text-xl font-bold text-gray-900",children:"Nearby Destinations"})}),(0,a.jsxs)("div",{className:"p-6",children:[s&&s.length>0?(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:s.map(e=>(0,a.jsxs)("div",{className:"group bg-white rounded-lg overflow-hidden hover:shadow-md transition border border-gray-200",children:[(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)("div",{className:"h-40 bg-cover bg-center",style:{backgroundImage:"url(".concat(e.image_url||"https://source.unsplash.com/random/600x400/?".concat(e.name.toLowerCase(),",city"),")")}})}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsxs)("div",{className:"flex items-center mb-2",children:[(0,a.jsx)(l.Z,{size:14,className:"mr-1 text-blue-600"}),(0,a.jsx)("span",{className:"text-xs font-medium text-blue-600 uppercase tracking-wider",children:e.distance_km?"".concat(e.distance_km," km away"):e.relation_type_display?e.relation_type_display:"Nearby destination"})]}),(0,a.jsx)("h4",{className:"text-lg font-bold text-gray-900 mb-2",children:e.name}),e.description&&(0,a.jsx)("p",{className:"text-sm text-gray-600 mb-3 line-clamp-2",children:e.description}),(0,a.jsxs)("a",{href:"/cities/".concat(e.slug||e.id),className:"inline-flex items-center text-sm font-medium text-blue-600 group-hover:text-blue-800 transition-colors",children:["Explore",(0,a.jsx)(_.Z,{size:16,className:"ml-1 group-hover:ml-2 transition-all"})]})]})]},e.id))}):(0,a.jsxs)("div",{className:"p-6 text-center",children:[(0,a.jsx)("p",{className:"text-gray-500",children:"No nearby cities information available."}),(0,a.jsxs)("button",{className:"mt-4 inline-flex items-center px-4 py-2 text-sm font-medium text-blue-600 border border-blue-600 rounded-lg hover:bg-blue-50 transition-colors",children:["Explore All Destinations",(0,a.jsx)(_.Z,{size:16,className:"ml-2"})]})]}),s&&s.length>4&&(0,a.jsx)("div",{className:"mt-6 text-center",children:(0,a.jsxs)("button",{className:"inline-flex items-center px-4 py-2 text-sm font-medium text-blue-600 border border-blue-600 rounded-lg hover:bg-blue-50 transition-colors",children:["View More Nearby Destinations",(0,a.jsx)(_.Z,{size:16,className:"ml-2"})]})})]})]}),(0,a.jsxs)(i.E.div,{variants:n,className:"bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden",children:[(0,a.jsx)("div",{className:"p-6 border-b border-gray-100",children:(0,a.jsx)("h3",{className:"text-xl font-bold text-gray-900",children:"Useful Resources"})}),(0,a.jsxs)("div",{className:"p-6",children:[r&&r.length>0?(0,a.jsxs)("div",{className:"space-y-8",children:[(null==o?void 0:o.official)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-base font-semibold text-gray-900 mb-3",children:"Official"}),(0,a.jsx)("ul",{className:"space-y-3",children:o.official.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"group flex items-start hover:bg-blue-50 p-2 -mx-2 rounded-lg transition-colors",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h5",{className:"font-medium text-gray-900 group-hover:text-blue-700 transition-colors",children:e.title}),(0,a.jsx)("p",{className:"text-sm text-gray-600 mt-0.5",children:e.description})]}),(0,a.jsx)(eI.Z,{size:16,className:"text-gray-400 group-hover:text-blue-600 mt-1 transition-colors"})]})},e.id))})]}),(null==o?void 0:o.attraction)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-base font-semibold text-gray-900 mb-3",children:"Attractions"}),(0,a.jsx)("ul",{className:"space-y-3",children:o.attraction.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"group flex items-start hover:bg-blue-50 p-2 -mx-2 rounded-lg transition-colors",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h5",{className:"font-medium text-gray-900 group-hover:text-blue-700 transition-colors",children:e.title}),(0,a.jsx)("p",{className:"text-sm text-gray-600 mt-0.5",children:e.description})]}),(0,a.jsx)(eI.Z,{size:16,className:"text-gray-400 group-hover:text-blue-600 mt-1 transition-colors"})]})},e.id))})]}),(null==o?void 0:o.transport)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-base font-semibold text-gray-900 mb-3",children:"Transportation"}),(0,a.jsx)("ul",{className:"space-y-3",children:o.transport.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"group flex items-start hover:bg-blue-50 p-2 -mx-2 rounded-lg transition-colors",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h5",{className:"font-medium text-gray-900 group-hover:text-blue-700 transition-colors",children:e.title}),(0,a.jsx)("p",{className:"text-sm text-gray-600 mt-0.5",children:e.description})]}),(0,a.jsx)(eI.Z,{size:16,className:"text-gray-400 group-hover:text-blue-600 mt-1 transition-colors"})]})},e.id))})]}),Object.entries(o).filter(e=>{let[t]=e;return!["official","attraction","transport"].includes(t)}).map(e=>{let[t,s]=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-base font-semibold text-gray-900 mb-3 capitalize",children:t}),(0,a.jsx)("ul",{className:"space-y-3",children:s.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"group flex items-start hover:bg-blue-50 p-2 -mx-2 rounded-lg transition-colors",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h5",{className:"font-medium text-gray-900 group-hover:text-blue-700 transition-colors",children:e.title}),(0,a.jsx)("p",{className:"text-sm text-gray-600 mt-0.5",children:e.description})]}),(0,a.jsx)(eI.Z,{size:16,className:"text-gray-400 group-hover:text-blue-600 mt-1 transition-colors"})]})},e.id))})]},t)})]}):(0,a.jsx)("p",{className:"text-gray-500 text-center",children:"No useful links available."}),(0,a.jsxs)("div",{className:"mt-8 pt-8 border-t border-gray-200",children:[(0,a.jsx)("h4",{className:"text-base font-semibold text-gray-900 mb-3",children:"Community Tips"}),(0,a.jsxs)("div",{className:"bg-indigo-50 rounded-lg p-4",children:[(0,a.jsx)("p",{className:"text-indigo-700 text-sm mb-3",children:"Get insider tips from fellow travelers who have visited this destination."}),(0,a.jsxs)("button",{className:"inline-flex items-center text-sm font-medium text-indigo-600 hover:text-indigo-800 transition-colors",children:["View Community Tips",(0,a.jsx)(_.Z,{size:16,className:"ml-1"})]})]})]})]})]})]})]})};function eB(e){var t,s,i,l,n,o,c,d,m,x,h;let{city:u,nearbyCities:p}=e,[b,f]=(0,r.useState)("overview"),[y,v]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=()=>{v(window.scrollY>100),document.querySelectorAll("section[id]").forEach(e=>{let t=e.offsetTop;window.scrollY>=t-100&&f(e.getAttribute("id")||"overview")})};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]);let j=(null==u?void 0:u.name)||"City Name",w=(null==u?void 0:u.short_description)||"",_=(null==u?void 0:u.image_url)||"",k=(null==u?void 0:u.region)||"",C=(null==u?void 0:u.tags)||[],A=(null==u?void 0:u.best_season)||"Year Round",z=(null==u?void 0:u.known_for)||"",E="string"==typeof(null==u?void 0:u.id)?parseInt(u.id,10):(null==u?void 0:u.id)||0,S=(null==u?void 0:u.links)||[],I=!!u.typical_costs,F=[{id:"overview",label:"Overview"},{id:"experiences",label:"Experiences"},...I?[{id:"costs",label:"Costs"}]:[],{id:"essentials",label:"Essentials"},{id:"insights",label:"Insights"},...p.length>0?[{id:"nearby",label:"Nearby"}]:[]];return(0,a.jsxs)("div",{className:"min-h-screen bg-white text-gray-900",children:[(0,a.jsx)(g,{name:j,description:w,image:_,region:k,tags:C,best_season:A,known_for:z}),(0,a.jsx)(N,{activeSection:b,isScrolled:y,setActiveSection:f,navItems:F}),(0,a.jsxs)("main",{className:"max-w-7xl mx-auto px-6 lg:px-8 py-12 space-y-24",children:[(0,a.jsx)("section",{id:"overview",className:"scroll-mt-24",children:(0,a.jsx)(Z,{city:u})}),(0,a.jsx)("section",{id:"experiences",className:"scroll-mt-24",children:(0,a.jsx)(ee,{cityId:E})}),I&&(0,a.jsx)("section",{id:"costs",className:"scroll-mt-24",children:(0,a.jsx)(en,{city:u})}),(0,a.jsx)("section",{id:"essentials",className:"scroll-mt-24",children:(0,a.jsx)(eN,{city:u,travelAdvisoryUrl:null!==(t=u.travel_advisory_url)&&void 0!==t?t:null})}),(0,a.jsx)("section",{id:"insights",className:"scroll-mt-24",children:(0,a.jsx)(eS,{food:null!==(s=u.food_description)&&void 0!==s?s:null,history:null!==(i=u.history_description)&&void 0!==i?i:null,culture:null!==(l=u.culture)&&void 0!==l?l:"",travelSeasons:null!==(n=u.travel_seasons)&&void 0!==n?n:[],foodImageUrl:null!==(o=u.food_image_url)&&void 0!==o?o:null,historyImageUrl:null!==(c=u.history_image_url)&&void 0!==c?c:null,cultureImageUrl:null!==(d=u.culture_image_url)&&void 0!==d?d:null,seasonsImageUrl:null!==(m=u.seasons_image_url)&&void 0!==m?m:null,foodExperiences:null!==(x=u.food_experiences)&&void 0!==x?x:[],historicalSites:null!==(h=u.historical_sites)&&void 0!==h?h:[]})}),p.length>0&&(0,a.jsx)("section",{id:"nearby",className:"scroll-mt-24",children:(0,a.jsx)(eF,{nearbyCities:p,links:S})})]}),(0,a.jsx)("footer",{className:"bg-gray-50 py-16 mt-24",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"text-xl font-semibold mb-4",children:["Explore ",j]}),(0,a.jsxs)("ul",{className:"space-y-2",children:[(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:"#overview",onClick:e=>{e.preventDefault();let t=document.getElementById("overview");t&&t.scrollIntoView({behavior:"smooth"}),f("overview")},className:"text-blue-600 hover:text-blue-800",children:"City Overview"})}),(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:"#experiences",onClick:e=>{e.preventDefault();let t=document.getElementById("experiences");t&&t.scrollIntoView({behavior:"smooth"}),f("experiences")},className:"text-blue-600 hover:text-blue-800",children:"Things to Do"})}),I&&(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:"#costs",onClick:e=>{e.preventDefault();let t=document.getElementById("costs");t&&t.scrollIntoView({behavior:"smooth"}),f("costs")},className:"text-blue-600 hover:text-blue-800",children:"Travel Costs"})}),(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:"#essentials",onClick:e=>{e.preventDefault();let t=document.getElementById("essentials");t&&t.scrollIntoView({behavior:"smooth"}),f("essentials")},className:"text-blue-600 hover:text-blue-800",children:"Travel Essentials"})}),(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:"#insights",onClick:e=>{e.preventDefault();let t=document.getElementById("insights");t&&t.scrollIntoView({behavior:"smooth"}),f("insights")},className:"text-blue-600 hover:text-blue-800",children:"Local Insights"})})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-xl font-semibold mb-4",children:"Official Resources"}),(0,a.jsxs)("ul",{className:"space-y-2",children:[null==S?void 0:S.filter(e=>"official"===e.link_type).map(e=>(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800",children:e.title})},e.id)),u.official_website&&(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:u.official_website,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800",children:"Official City Website"})})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-xl font-semibold mb-4",children:"Travel Planning"}),(0,a.jsxs)("ul",{className:"space-y-2",children:[(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:"#insights",onClick:e=>{e.preventDefault();let t=document.getElementById("insights");t&&t.scrollIntoView({behavior:"smooth"}),f("insights")},className:"text-blue-600 hover:text-blue-800",children:"Best Time to Visit"})}),I&&(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:"#costs",onClick:e=>{e.preventDefault();let t=document.getElementById("costs");t&&t.scrollIntoView({behavior:"smooth"}),f("costs")},className:"text-blue-600 hover:text-blue-800",children:"Travel Budget"})}),(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:"#experiences",onClick:e=>{e.preventDefault();let t=document.getElementById("experiences");t&&t.scrollIntoView({behavior:"smooth"}),f("experiences")},className:"text-blue-600 hover:text-blue-800",children:"Travel Guide"})})]})]})]}),(0,a.jsx)("div",{className:"mt-12 pt-8 border-t border-gray-200 text-center text-gray-500",children:(0,a.jsx)("p",{children:"All information is provided for general reference only. Please verify details before planning your trip."})})]})})]})}}},function(e){e.O(0,[3464,5183,3145,7028,7078,6706,2971,2117,1744],function(){return e(e.s=99478)}),_N_E=e.O()}]);