1import{r as c,j as e,L as me}from"./react-vendor-Bj_LWKpD.js";import{g as Ne}from"./lastVerified-BqyR19QC.js";import{t as de,c as we,S as Re,F as Te,M as Se}from"./shared-ui-core-M-8QZkxr.js";import{A as fe}from"./AirportAutocomplete-DWwboikK.js";import{i as Y,C as ye}from"./page-home-Drmq8EWb.js";import{D as Fe,a as Ee,b as Ae,c as _e,d as De}from"./shared-ui-CcKdszy9.js";import{b as Ie,c as Oe,d as Le,a as $e}from"./seoSchemaBuilders-Bv1zWJkp.js";import{E as be}from"./ExpertCallCTA-DjXD_xi4.js";import"./vendor-icons-DF-xUuqq.js";import"./vendor-radix-CA1wS3K3.js";function xe(s,n){if(!s)return e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:72",className:n,children:"--:--"});const i=new Date(s).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),r=i.match(/^(.+?)\s(AM|PM)$/i);return r?e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:77",className:n,children:[r[1]," ",e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:78",style:{fontSize:"0.5em",color:"#4b5563"},children:r[2].toUpperCase()})]}):e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:75",className:n,children:i})}function Ye({origin:s,destination:n,beyondCity:i,hideBeyond:r=!0}){const h=!r&&i;return e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:87",className:"flex items-center gap-0 w-full my-2",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:88",className:"flex flex-col items-center flex-shrink-0",children:e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:89",className:"text-[0.65rem] font-extrabold tracking-wider text-[#1a1f16]",children:s})}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:91",className:"flex-1 flex items-center mx-1",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:92",className:"h-[2px] flex-1 bg-[#e6c757] rounded-full"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:93",className:"w-2.5 h-2.5 rounded-full bg-[#e6c757] border-[2px] border-[#e6c757] flex-shrink-0 relative",children:e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:94",className:"w-1 h-1 rounded-full bg-white absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"})})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:97",className:"flex flex-col items-center flex-shrink-0 relative",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:98",className:"text-[0.65rem] font-extrabold tracking-wider text-[#c9a227]",children:n}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:99",className:"text-[0.4rem] font-bold text-[#e6c757] uppercase tracking-widest",children:"Your stop"})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:101",className:"flex-1 flex items-center mx-1",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:102",className:"h-[1.5px] flex-1 border-t-[1.5px] border-dashed border-[#d1d5db]"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:103",className:"w-2 h-2 rounded-full border-[1.5px] border-[#d1d5db] bg-white flex-shrink-0"})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:105",className:"flex flex-col items-center flex-shrink-0",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:106",className:"text-[0.65rem] font-bold tracking-wider text-[#9ca3af]",children:h?i:"âââ"}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:107",className:"text-[0.38rem] font-semibold text-[#9ca3af] uppercase tracking-widest",children:h?"Ticketed dest":"Undisclosed"})]})]})}function ee({deal:s,isBest:n,currency:i,selected:r,onSelect:h,onBook:m,hideBeyond:a=!0}){const x=i==="INR"?"â¹":"$",u=ge(s),g=u===0?"Non-stop":`${u} stop${u>1?"s":""}`,j=He(s),H=j.length>0?[s.itinerary.legs[0].segments[0].departureAirport,...j,s.actualDestination].join(" â "):"";return e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:125",onClick:h,className:`bg-white rounded-[14px] border-[1.5px] p-4 transition-all cursor-pointer hover:-translate-y-0.5 hover:shadow-[0_8px_24px_rgba(26,31,22,0.06)] ${r?"border-[#e6c757] shadow-[0_0_0_2px_rgba(230,199,87,0.2)] ring-2 ring-[#e6c757]/20":n?"border-l-[4px] border-l-[#e6c757] border-t-[#e8e4dd] border-r-[#e8e4dd] border-b-[#e8e4dd]":"border-[#e8e4dd]"}`,children:[n&&!r&&e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:136",className:"inline-flex items-center gap-1 bg-[#faf4e2] text-[#c9a227] text-[0.5rem] font-extrabold tracking-wider up
1percase py-0.5 px-2 rounded-full mb-2",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:137",className:"text-[0.55rem]",children:"â
"})," Best Deal"]}),r&&e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:141",className:"inline-flex items-center gap-1 bg-[#e6c757] text-[#1a1f16] text-[0.5rem] font-extrabold tracking-wider uppercase py-0.5 px-2 rounded-full mb-2",children:"â Selected"}),e.jsx(Ye,{"data-loc":"client/src/components/HiddenCityResults.tsx:146",origin:s.itinerary.legs[0].segments[0].departureAirport,destination:s.actualDestination,beyondCity:s.beyondCity,hideBeyond:a}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:154",className:"flex items-center gap-2 mt-2 mb-2",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:155",className:"w-6 h-6 rounded-md bg-[#f0eeea] flex items-center justify-center text-[0.5rem] font-extrabold text-[#1a1f16]",children:s.airline}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:158",className:"flex-1",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:159",className:"text-[0.7rem] font-bold text-[#1a1f16]",children:[s.airline," ",s.flightNumber]}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:162",className:"text-[0.55rem] text-[#6b7280]",children:g}),H&&e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:166",className:"text-[0.5rem] text-[#6b7280] mt-0.5 font-medium",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:167",className:"text-[#9ca3af]",children:"Route:"})," ",H]})]})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:174",className:"flex items-center justify-between py-2 border-t border-[#f0eeea]",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:175",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:176",className:"text-[0.85rem] font-bold text-[#1a1f16]",children:xe(s.departureTime,"text-[0.85rem] font-bold text-[#1a1f16]")}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:179",className:"text-[0.5rem] font-semibold text-[#6b7280] uppercase tracking-wider",children:s.itinerary.legs[0].segments[0].departureAirport})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:183",className:"flex flex-col items-center gap-0.5 flex-1 mx-3",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:184",className:"text-[0.48rem] font-semibold text-[#6b7280]",children:s.itinerary.legs[0].duration||""}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:187",className:"w-full h-[1px] bg-[#e8e4dd] relative",children:e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:188",className:"absolute right-0 top-1/2 -translate-y-1/2 w-0 h-0 border-l-[4px] border-l-[#e6c757] border-y-[2px] border-y-transparent"})}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:190",className:"text-[0.45rem] font-bold text-[#e6c757] uppercase tracking-wider",children:g})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:194",className:"text-right",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:195",className:"text-[0.85rem] font-bold text-[#1a1f16]",children:xe(s.arrivalAtDestination,"text-[0.85rem] font-bold text-[#1a1f16]")}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:198",className:"text-[0.5rem] font-semibold text-[#c9a227] uppercase tracking-wider",children:[s.actualDestination," ",e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:199",className:"text-[#e6c757]",children:"â"})]})]})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:205",className:"flex items-end justify-between mt-2 pt-2 border-t border-[#f0eeea]",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:206",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:207",className:"flex items-baseline gap-1.5",children:[e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:208",className:"font-serif text-[1.4rem] font-bold text-[#1a1f16] leading-none tracking-tight",children:[x,s.trickFare.toLocaleStr
1ing()]}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:211",className:"text-[0.5rem] font-semibold text-[#6b7280]",children:"per person"})]}),s.savings>0&&e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:214",className:"flex items-center gap-1.5 mt-1",children:[e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:215",className:"text-[0.5rem] font-extrabold text-[#c9a227] bg-[#faf4e2] py-0.5 px-1.5 rounded-full",children:["Save ",x,s.savings.toLocaleString()]}),e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:218",className:"text-[0.5rem] font-extrabold text-[#3d6b35]",children:[s.savingsPercent,"% off"]})]})]}),e.jsx("button",{"data-loc":"client/src/components/HiddenCityResults.tsx:224",className:"bg-[#e6c757] text-[#1a1f16] text-[0.7rem] md:text-[0.82rem] font-bold py-2.5 px-4 md:py-3 md:px-6 rounded-xl hover:bg-[#d4b445] transition-colors flex-shrink-0 shadow-sm hover:shadow-md",onClick:k=>{k.stopPropagation(),m&&m(s)},children:"Book â"})]})]})}function Ce({directFare:s,returnDirectFare:n,origin:i,destination:r,currency:h,departureDate:m,returnDate:a,cabin:x,pax:u,tripType:g}){const j=h==="INR"?"â¹":"$",H=g==="round_trip"&&n!=null,k=H?s+n:s,T=H?"Round trip fare":"One-way fare",I=()=>{const p=new URLSearchParams;p.set("origin",i),p.set("dest",r),m&&p.set("dep",m),g==="round_trip"&&a&&p.set("ret",a),p.set("type",g==="round_trip"?"round_trip":"one_way"),p.set("cabin",x||"economy"),p.set("adults",String(u||1)),p.set("pax",String(u||1)),window.location.href=`/searching?${p.toString()}`};return e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:259",onClick:I,className:"bg-[#f8f6f1] rounded-[14px] border-[1.5px] border-[#e8e4dd] p-4 mt-4 cursor-pointer hover:border-[#e6c757] hover:shadow-md transition-all group",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:263",className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:264",className:"w-5 h-5 rounded-full bg-[#e8e4dd] flex items-center justify-center text-[0.5rem] font-bold text-[#6b7280]",children:"â"}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:265",className:"text-[0.55rem] font-extrabold tracking-wider uppercase text-[#6b7280]",children:"Direct Flight Comparison"}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:266",className:"ml-auto text-[0.5rem] font-bold text-[#e6c757] opacity-0 group-hover:opacity-100 transition-opacity",children:"Search & Book â"})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:268",className:"flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:269",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:270",className:"text-[0.78rem] font-bold text-[#1a1f16]",children:[i," â ",r]}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:271",className:"text-[0.55rem] text-[#6b7280]",children:"Cheapest direct fare found · Click to search & book"})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:273",className:"text-right",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:274",className:"font-serif text-[1.2rem] font-bold text-[#6b7280] leading-none group-hover:text-[#c9a227] transition-colors",children:[j,k.toLocaleString()]}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:277",className:"text-[0.5rem] text-[#9ca3af] mt-0.5",children:T})]})]})]})}function ge(s){const n=s.itinerary.legs[0].segments;let i=0;for(let r=1;r<=s.deplaneAtSegmentIndex;r++){const h=n[r-1].marketingAirline+n[r-1].flightNumber,m=n[r].marketingAirline+n[r].flightNumber;h!==m&&i++}return i}function He(s){const n=s.itinerary.legs[0].segments,i=[];for(let r=1;r<=s.deplaneAtSegmentIndex;r++){const h=n[r-1].marketingAirline+n[r-1].flightNumber,m=n[r].marketingAirline+n[r].flightNumber;h!==m&&i.push(n[r-1].arrivalAirport)}return i}function je(s){return s.itinerary.legs[0].totalDuration||0}const Be=c.forwardRef(function({isLoading:n,error:i,returnError:r,searchTriggered:h,tripType:m,outboundData:a,returnData:x,totalDeals:u,currency:g,departureDate:j,returnDate:H,cabin:k,pax:T,onRetry:I},p){const{data:S}=de.siteSettings.get.useQuery({key:"hide_beyond_airport"}),f=S?.value!=="false",[O,B]=c.useState("departure"),[A,G]=c.useState("Best"),[v,P]=c.useState(new Set),[N,K]=c.useState(new Set),[Q,L]=c.useState(null),F=c.useMemo(()=>a?.deals||[],[a]),$=c.useMemo(()=>x?.deals||[],[x]),ne=t=>{const l=[...t];switch(A){case"Cheapest":l.sort((d,y)=>d.trickFare-y.trickFare);break;case"Fastest":l.sort((d,y)=>je(d)-je(y));break;case"Earliest":l.sort((d,y)=>{const _=d.departureTime||"9999",E=y.departureTime||"9999";return _.localeCompare(E)});break;case"Best":default:l.sort((d,y)=>y.savingsPercent!==d.savingsPercent?y.savingsPercent-d.savingsPercent:d.trickFare-y.trickFare);break}return l},ie=t=>t.filter(l=>{if(v.size>0){const d=ge(l);if(d===0&&!v.has("nonstop")||d===1&&!v.has("1stop")||d>=2&&!v.has("2plus"))return!1}return!(N.size>0&&!N.has(l.airline))}),w=c.useMemo(()=>ne(ie(F)),[F,A,v,N]),b=c.useMemo(()=>ne(ie($)),[$,A,v,N]),V=c.useMemo(()=>{const t=[...F,...$];let l=0,d=0,y=0;return t.forEach(_=>{const E=ge(_);E===0?l++:E===1?d++:y++}),{nonstop:l,"1stop":d,"2plus":y}},[F,$]),W=c.useMemo(()=>{const t=[...F,...$],l=new Set;return t.forEach(d=>l.add(d.airline)),Array.from(l).sort()},[F,$]),J=t=>{P(l=>{const d=new Set(l);return d.has(t)?d.delete(t):d.add(t),d})},X=t=>{K(l=>{const d=new Set(l);return d.has(t)?d.delete(t):d.add(t),d})},Z=()=>{P(new Set),K(new Set)},M=v.size>0||N.size>0;return e.jsxs("section",{"data-loc":"client/src/components/HiddenCityResults.tsx:446",ref:p,className:"py-6 md:py-10 px-4 md:px-[4vw] bg-[#f8f6f1] flex-1",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:447",className:"max-w-[1200px] mx-auto",children:[n&&e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:450",className:"text-center py-16",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:451",className:"inline-block w-10 h-10 border-3 border-[#e8e4dd] border-t-[#e6c757] rounded-full animate-spin"}),e.jsxs("p",{"data-loc":"client/src/components/HiddenCityResults.tsx:452",className:"text-sm text-[#6b7280] mt-4 font-medium",children:["Searching hidden city fares",m==="round_trip"?" (departure + return)":"","..."]}
1),e.jsx("p",{"data-loc":"client/src/components/HiddenCityResults.tsx:455",className:"text-[0.7rem] text-[#9ca3af] mt-1",children:"This may take 10-30 seconds as we check multiple routes"})]}),i&&!n&&e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:461",className:"text-center py-16",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:462",className:"text-3xl mb-3",children:Y(i.message)?"ð
":"â ï¸"}),e.jsx("h2",{"data-loc":"client/src/components/HiddenCityResults.tsx:463",className:"text-lg font-bold text-[#1a1f16] mb-2",children:Y(i.message)?"Date not yet available":"Search Temporarily Unavailable"}),e.jsx("p",{"data-loc":"client/src/components/HiddenCityResults.tsx:466",className:"text-sm text-[#6b7280] max-w-md mx-auto mb-4",children:(()=>{if(Y(i.message))return i.message;const t=(i.message||"").toLowerCase();return t.includes("unavailable")||t.includes("503")||t.includes("unexpected token")||t.includes("not valid json")||t.includes("timeout")||t.includes("failed to fetch")||t.includes("network")?"Our flight data provider is experiencing a brief outage. This usually resolves within a minute.":"Something went wrong. Please try again."})()}),I&&!Y(i.message)&&e.jsx("button",{"data-loc":"client/src/components/HiddenCityResults.tsx:477",onClick:I,className:"inline-flex items-center gap-2 px-5 py-2.5 bg-[#e6c757] text-[#1a1f16] text-sm font-bold rounded-full hover:bg-[#d4b445] transition-colors",children:"â» Try Again"})]}),!n&&h&&!i&&u===0&&a&&e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:489",className:"text-center py-16",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:490",className:"text-3xl mb-3",children:"âï¸"}),e.jsx("h2",{"data-loc":"client/src/components/HiddenCityResults.tsx:491",className:"text-lg font-bold text-[#1a1f16] mb-2",children:"No Hidden City Deals Found"}),e.jsx("p",{"data-loc":"client/src/components/HiddenCityResults.tsx:492",className:"text-sm text-[#6b7280] max-w-md mx-auto mb-2",children:a.beyondCitiesSearched===0?`We don't have beyond-city mappings for ${a.destination} yet. Try a major hub like JFK, LAX, ORD, LHR, DEL, DXB, or BOM.`:`We searched ${a.beyondCitiesSearched} beyond-city routes but couldn't find deals with at least 10% savings.`}),e.jsxs("p",{"data-loc":"client/src/components/HiddenCityResults.tsx:498",className:"text-[0.65rem] text-[#9ca3af]",children:["Search completed in ",(a.searchDurationMs/1e3).toFixed(1),"s"]}),a.directFare!==null&&(m==="round_trip"&&(!x||x.directFare===null)?null:e.jsx(Ce,{"data-loc":"client/src/components/HiddenCityResults.tsx:504",directFare:a.directFare,returnDirectFare:m==="round_trip"?x?.directFare??null:null,origin:a.origin,destination:a.destination,currency:g,departureDate:j,returnDate:H,cabin:k,pax:T,tripType:m}))]}),!n&&u>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:524",className:"flex flex-col md:flex-row md:items-start md:justify-between gap-3 mb-5",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:525",children:[e.jsxs("h2",{"data-loc":"client/src/components/HiddenCityResults.tsx:526",className:"font-serif text-[1.4rem] md:text-[1.8rem] font-bold text-[#1a1f16] tracking-tight",children:[u," Hidden City Deal",u!==1?"s":""," Found"]}),e.jsxs("p",{"data-loc":"client/src/components/HiddenCityResults.tsx:529",className:"text-[0.72rem] text-[#6b7280] mt-0.5",children:[m==="round_trip"?`Outbound: ${a?.deals?.length??0} deal${(a?.deals?.length??0)!==1?"s":""} · Return: ${x?.deals?.length??0} deal${(x?.deals?.length??0)!==1?"s":""}`:"One Way",a&&` · ${a.beyondCitiesSearched} routes searched · ${(a.searchDurationMs/1e3).toFixed(1)}s`,a?.cached&&e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:534",className:"ml-2 text-[#e6c757]",children:"(cached)"})]})]}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:538",className:"flex items-center gap-1.5 flex-shrink-0",children:["Best","Cheapest","Fastest","Earliest"].map(t=>e.jsx("button",{"data-loc":"client/src/components/HiddenCityResults.tsx:540",onClick:()=>G(t),style:{fontFamily:"'DM Sans', sans-serif",fontSize:"0.85rem",fontWeight:700,padding:"0.55rem 1.4rem",borderRadius:100,border:A===t?"none":"1.5px solid #e8e4dd",background:A===t?"#1a1f16":"#fff",color:A===t?"#fff":"#6b7280",cursor:"pointer",transition:"all 0.2s",whiteSpace:"nowrap"},children:t},t))})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:562",className:"flex flex-wrap items-center gap-2 mb-5",children:[["nonstop","1stop","2plus"].map(t=>
1{const l=t==="nonstop"?"Non-stop":t==="1stop"?"1 Stop":"2+ Stops",d=V[t],y=v.has(t);return e.jsxs("button",{"data-loc":"client/src/components/HiddenCityResults.tsx:569",onClick:()=>J(t),disabled:d===0,className:`text-[0.65rem] font-bold px-3 py-1.5 rounded-full transition-all border ${y?"bg-[#1a1f16] text-[#d4e8c2] border-[#1a1f16]":d===0?"bg-[#f0eeea] text-[#c0c4bb] border-[#e8e4dd] cursor-not-allowed":"bg-white text-[#1a1f16] border-[#e8e4dd] hover:border-[#e6c757]"}`,children:[l," (",d,")"]},t)}),W.length>1&&e.jsxs(e.Fragment,{children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:589",className:"w-[1px] h-5 bg-[#e8e4dd] mx-1"}),W.map(t=>{const l=N.has(t);return e.jsx("button",{"data-loc":"client/src/components/HiddenCityResults.tsx:593",onClick:()=>X(t),className:`text-[0.65rem] font-bold px-3 py-1.5 rounded-full transition-all border ${l?"bg-[#1a1f16] text-[#d4e8c2] border-[#1a1f16]":"bg-white text-[#1a1f16] border-[#e8e4dd] hover:border-[#e6c757]"}`,children:t},t)})]}),M&&e.jsx("button",{"data-loc":"client/src/components/HiddenCityResults.tsx:611",onClick:Z,className:"text-[0.6rem] font-bold text-[#d4b445] hover:text-[#c9a227] bg-transparent border-none cursor-pointer ml-1",children:"Clear all"})]}),m==="round_trip"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:624",className:"lg:hidden flex items-center gap-0 mb-4 bg-[#e6c757] rounded-full p-1.5",children:[e.jsxs("button",{"data-loc":"client/src/components/HiddenCityResults.tsx:625",onClick:()=>B("departure"),className:`flex-1 flex items-center justify-center gap-1.5 py-2.5 px-3 rounded-full text-[0.7rem] font-bold transition-all ${O==="departure"?"bg-white text-[#1a1f16] shadow-sm":"text-[#1a1f16]/70 hover:text-[#1a1f16]"}`,children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:633",children:"â"})," Departure",e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:634",className:`text-[0.55rem] font-semibold ml-0.5 ${O==="departure"?"text-[#d4b445]":"text-[#1a1f16]/70"}`,children:w.length})]}),e.jsxs("button",{"data-loc":"client/src/components/HiddenCityResults.tsx:638",onClick:()=>B("return"),className:`flex-1 flex items-center justify-center gap-1.5 py-2.5 px-3 rounded-full text-[0.7rem] font-bold transition-all ${O==="return"?"bg-white text-[#1a1f16] shadow-sm":"text-[#1a1f16]/70 hover:text-[#1a1f16]"}`,children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:646",children:"â©"})," Return",e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:647",className:`text-[0.55rem] font-semibold ml-0.5 ${O==="return"?"text-[#d4b445]":"text-[#1a1f16]/70"}`,children:b.length})]})]}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:654",className:"lg:hidden overflow-hidden",children:e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:655",className:"flex w-[200%] transition-transform duration-300 ease-in-out",style:{transform:O==="departure"?"translateX(0%)":"translateX(-50%)"},children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:660",className:"w-1/2 flex-shrink-0 min-w-0",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:661",className:"flex items-center gap-2 mb-3 pb-2 border-b border-[#e8e4dd]",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:662",className:"text-[0.6rem] font-extrabold tracking-[0.15em] uppercase text-[#d4b445]",children:"â Departure"}),e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:665",className:"text-[0.6rem] font-bold text-[#1a1f16]",children:[a?.origin," â ",a?.destination]}),e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:668",className:"text-[0.55rem] text-[#6b7280] ml-auto",children:[w.length," deal",w.length!==1?"s":""]})]}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:672",className:"flex flex-col gap-3",children:w.length>0?w.map((t,l)=>e.jsx(ee,{"data-loc":"client/src/components/HiddenCityResults.tsx:675",deal:t,isBest:l===0,currency:g,onBook:L,hideBeyond:f},`out-${l}`)):e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:678",className:"text-center py-8",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:679",className:"text-[0.75rem] text-[#6b7280]",children:"No departure deals available for this route"}),b.length>0&&e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:683",className:"mt-3 bg-[#faf4e2] border border-[#c5e0b4] rounded-xl px-4 py-3",children:[e.jsxs("p",{"data-loc":"client/src/components/HiddenCityResults.tsx:684",className:"text-[0.72rem] font-bold text-[#2d5016]",children:["ð ",b.length," Return deal",b.length!==1?"s":""," available!"]}),e.jsxs("p",{"data-loc":"client/src/components/HiddenCityResults.tsx:687",className:"text-[0.6rem] text-[#c9a227] mt-1",children:["Tap the ",e.jsx("strong",{"data-loc":"client/src/components/HiddenCityResults.tsx:688",children:"Return"})," tab above to view deals for your return flight."]})]})]})})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:697",className:"w-1/2 flex-shrink-0 min-w-0",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:698",className:"flex items-center gap-2 mb-3 pb-2 border-b border-[#e8e4dd]",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:699",className:"text-[0.6rem] font-extrabold tracking-[0.15em] uppercase text-[#d4b445]",children:"â© Return"}),e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:702",className:"text-[0.6rem] font-bold text-[#1a1f16]",children:[x?.origin," â ",x?.destination]}),e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:705",className:"text-[0.55rem] text-[#6b7280] ml-auto",children:[b.length," deal",b.length!==1?"s":""]})]}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:709",className:"flex flex-col gap-3",children:b.length>0?b.map((t,l)=>e.jsx(ee,{"data-loc":"client/src/components/HiddenCityResults.tsx:712",deal:t,isBest:l===0,currency:g,onBook:L,hideBeyond:f},`ret-${l}`)):e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:715",className:"text-center py-8 text-[0.75rem] text-[#6b7280]",children:r&&!x?Y(r.message)?r.message:"Return search unavailable â please try again":"No return deals available for this route"})})]})]})}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:729",className:"hidden lg:grid grid-cols-2 gap-6",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:731",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:732",className:"flex items-center gap-2 mb-3 pb-2 border-b border-[#e8e4dd]",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:733",className:"text-[0.6rem] font-extrabold tracking-[0.15em] uppercase text-[#d4b445]",children:"â Departure"}),e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:736",className:"text-[0.6rem] font-bold text-[#1a1f16]",children:[a?.origin," â ",a?.destination]}),e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:739",className:"text-[0.55rem] text-[#6b7280] ml-auto",children:[w.length," deal",w.length!==1?"s":""]})]}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:743",className:"flex flex-col gap-3",children:w.length>0?w.map((t,l)=>e.jsx(ee,{"data-loc":"client/src/components/HiddenCityResults.tsx:746",deal:t,isBest:l===0,currency:g,onBook:L,hideBeyond:f},`out-${l}`)):e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:749",className:"text-center py-8",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:750",className:"text-[0.75rem] text-[#6b7280]",children:"No departure deals available for this route"}),b.length>0&&e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:754",className:"mt-3 bg-[#faf4e2] border border-[#c5e0b4] rounded-xl px-4 py-3",children:[e.jsxs("p",{"data-loc":"client/src/components/HiddenCityResults.tsx:755",className:"text-[0.72rem] font-bold text-[#2d5016]",children:["ð ",b.length," Return deal",b.length!==1?"s":""," available!"]}),e.jsxs("p",{"data-loc":"client/src/components/HiddenCityResults.tsx:758",className:"text-[0.6rem] text-[#c9a227] mt-1",children:["Check the ",e.jsx("strong",{"data-loc":"client/src/components/HiddenCityResults.tsx:759",children:"Return"})," column to view deals for your return flight."]})]})]})})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:769",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:770",className:"flex items-center gap-2 mb-3 pb-2 border-b border-[#e8e4dd]",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:771",className:"text-[0.6rem] font-extrabold tracking-[0.15em] uppercase text-[#d4b445]",children:"â© Return"}),e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:774",className:"text-[0.6rem] font-bold text-[#1a1f16]",children:[x?.origin," â ",x?.destination]}),e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:777",className:"text-[0.55rem] text-[#6b7280] ml-auto",children:[b.length," deal",b.length!==1?"s":""]})]}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:781",className:"flex flex-col gap-3",children:b.length>0?b.map((t,l)=>e.jsx(ee,{"data-loc":"client/src/components/HiddenCityResults.tsx:784",deal:t,isBest:l===0,currency:g,onBook:L,hideBeyond:f},`ret-${l}`)):e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:787",className:"text-center py-8 text-[0.75rem] text-[#6b7280]",children:r&&!x?Y(r.message)?r.message:"Return search unavailable â please try again":"No return deals available for this route"})})]})]})]}):e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:801",className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:w.length>0?w.map((t,l)=>e.jsx(ee,{"data-loc":"client/src/components/HiddenCityResults.tsx:804",deal:t,isBest:l===0,currency:g,onBook:L,hideBeyond:f},`out-${l}`)):e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:807",className:"text-center py-8 text-[0.75rem] text-[#6b7280] col-span-2",children:"No deals match your filters"})}),a?.directFare!==null&&a?.directFare!==void 0&&(m==="round_trip"&&(!x||x.directFare===null)?null:e.jsx(Ce,{"data-loc":"client/src/components/HiddenCityResults.tsx:818",directFare:a.directFare,returnDirectFare:m==="round_trip"?x?.directFare??null:null,origin:a.origin,destination:a.destination,currency:g,departureDate:j,returnDate:H,cabin:k,pax:T,tripType:m}))]}),!h&&!n&&e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:836",className:"py-4"})]}),e.jsx(Fe,{"data-loc":"client/src/components/HiddenCityResults.tsx:841",open:!!Q,onOpenChange:t=>{t||L(null)},children:e.jsx(Ee,{"data-loc":"client/src/components/HiddenCityResults.tsx:842",className:"max-w-lg p-0 overflow-hidden border-0 rounded-[18px]",children:Q&&(()=>{const t=Q,l=g==="INR"?"â¹":"$",d=t.itinerary.legs[0].segments[0].departureAirport,y=t.itinerary.legs[0].segments[0].departureDateTime?.split("T")[0]||"",_=xe(t.departureTime,"text-[0.7rem] text-[#1a1f16] font-semibold"),E=xe(t.arrivalAtDestination,"text-[0.7rem] text-[#1a1f16] font-semibold"),ae=He(t);return e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:853",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:855",className:"bg-[#1a1f16] px-6 py-4",children:e.jsxs(Ae,{"data-loc":"client/src/components/HiddenCityResults.tsx:856",children:[e.jsx(_e,{"data-loc":"client/src/components/HiddenCityResults.tsx:857",className:"text-white font-serif text-[1.2rem] tracking-tight",children:"Hidden City Deal"}),e.jsxs(De,{"data-loc":"client/src/components/HiddenCityResults.tsx:860",className:"text-[#a8c896] text-[0.7rem] mt-1",children:["We found a cheaper route to ",t.actualDestination]})]})}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:867",className:"px-6 py-5 space-y-4",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:869",className:"bg-[#f8f6f1] rounded-xl p-4 border border-[#e8e4dd]",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:870",className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:871",className:"w-6 h-6 rounded-md bg-[#faf4e2] flex items-center justify-center text-[0.5rem] font-extrabold text-[#c9a227]",children:t.airline}),e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:874",className:"text-[0.75rem] font-bold text-[#1a1f16]",children:[t.airline," ",t.flightNumber]}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:877",className:"text-[0.6rem] text-[#6b7280] ml-auto",children:y})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:881",className:"flex items-center justify-between text-[0.7rem] text-[#1a1f16] font-semibold",children:[e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:882",children:[_," (",d,")"]}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:883",className:"text-[#e6c757]",children:"â"}),e.jsxs("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:884",children:[E," (",t.actualDestination,")"]})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:886",className:"text-[0.55rem] text-[#6b7280] mt-1",children:["Route: ",d,ae.length>0?` â ${ae.join(" â ")}`:""," â ",t.actualDestination," â ",f?"âââ (Undisclosed)":t.beyondCity]})]}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:892",className:"bg-[#faf4e2] rounded-xl p-4 border border-[#c5e0b4]",children:e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:893",className:"flex items-start gap-2",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityResults.tsx:894",className:"text-base mt-0.5",children:"ð¡"}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:895",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:896",className:"text-[0.7rem] font-bold text-[#2d5016] mb-1",children:"How this works"}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:899",className:"text-[0.6rem] text-[#c9a227] leading-relaxed",children:["This flight continues past ",e.jsx("strong",{"data-loc":"client/src/components/HiddenCityResults.tsx:900",children:t.actualDestination}
1)," to an undisclosed city. The ticket is cheaper because of this routing. You simply get off at ",e.jsx("strong",{"data-loc":"client/src/components/HiddenCityResults.tsx:900",children:t.actualDestination})," (your destination) and skip the final leg."]})]})]})}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:907",className:"space-y-2.5",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:908",className:"flex items-start gap-3",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:909",className:"w-5 h-5 rounded-full bg-[#e6c757] text-[#1a1f16] text-[0.55rem] font-bold flex items-center justify-center flex-shrink-0 mt-0.5",children:"1"}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:910",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:911",className:"text-[0.7rem] font-bold text-[#1a1f16]",children:"We handle the booking for you"}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:912",className:"text-[0.58rem] text-[#6b7280]",children:["Click below and we'll find flight ",e.jsxs("strong",{"data-loc":"client/src/components/HiddenCityResults.tsx:912",children:[t.airline," ",t.flightNumber]})," with the correct routing"]})]})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:915",className:"flex items-start gap-3",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:916",className:"w-5 h-5 rounded-full bg-[#e6c757] text-[#1a1f16] text-[0.55rem] font-bold flex items-center justify-center flex-shrink-0 mt-0.5",children:"2"}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:917",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:918",className:"text-[0.7rem] font-bold text-[#1a1f16]",children:"Complete your booking"}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:919",className:"text-[0.58rem] text-[#6b7280]",children:["Book as a ",e.jsx("strong",{"data-loc":"client/src/components/HiddenCityResults.tsx:919",children:"one-way"}
1)," ticket. Expected price: ~",l,t.trickFare]})]})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:922",className:"flex items-start gap-3",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:923",className:"w-5 h-5 rounded-full bg-[#e6c757] text-[#1a1f16] text-[0.55rem] font-bold flex items-center justify-center flex-shrink-0 mt-0.5",children:"3"}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:924",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:925",className:"text-[0.7rem] font-bold text-[#1a1f16]",children:["Deplane at ",t.actualDestination]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:926",className:"text-[0.58rem] text-[#6b7280]",children:["Simply get off at ",t.actualDestination," and skip the final leg. Full route details revealed after payment."]})]})]})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:932",className:"bg-[#f0f4ff] rounded-lg p-3 border border-[#c7d7fe]",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:933",className:"text-[0.55rem] font-bold text-[#3b5998] uppercase tracking-wider mb-1",children:"ð Privacy Note"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:934",className:"text-[0.58rem] text-[#4a5568] leading-relaxed",children:"After payment, your full itinerary details including the ticketed destination will be revealed on your confirmation page."})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:940",className:"bg-[#fef9e7] rounded-lg p-3 border border-[#f5e6a3]",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:941",className:"text-[0.55rem] font-bold text-[#92400e] uppercase tracking-wider mb-1",children:"â ï¸ Remember"}),e.jsxs("ul",{"data-loc":"client/src/components/HiddenCityResults.tsx:942",className:"text-[0.58rem] text-[#78350f] space-y-0.5 list-disc list-inside",children:[e.jsx("li",{"data-loc":"client/src/components/HiddenCityResults.tsx:943",children:"Carry-on luggage only (checked bags go to final destination)"}),e.jsx("li",{"data-loc":"client/src/components/HiddenCityResults.tsx:944",children:"Book as one-way only â do not combine with a return on the same ticket"}),e.jsx("li",{"data-loc":"client/src/components/HiddenCityResults.tsx:945",children:"Do not use frequent flyer number on this booking"})]})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:950",className:"flex items-center justify-between pt-2 border-t border-[#e8e4dd]",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:951",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:952",className:"text-[0.6rem] text-[#6b7280]",children:"Your price"}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:953",className:"font-serif text-[1.3rem] font-bold text-[#1a1f16]",children:[l,t.trickFare.toLocaleString()]}),t.savings>0&&e.jsxs("div",{"data-loc":"client/src/components/HiddenCityResults.tsx:957",className:"text-[0.55rem] text-[#c9a227] font-bold",children:["Save ",l,t.savings.toLocaleString()," (",t.savingsPercent,"% off)"]})]}),e.jsx("button",{"data-loc":"client/src/components/HiddenCityResults.tsx:962",className:"bg-[#e6c757] text-[#1a1f16] text-[0.7rem] font-bold py-2.5 px-5 rounded-xl hover:bg-[#d4b445] transition-colors shadow-sm",onClick:()=>{const q=t.itinerary.legs[0],ce=q.segments.map(R=>({departureAirport:R.departureAirport,arrivalAirport:R.arrivalAirport,departureDateTime:R.departureDateTime,arrivalDateTime:R.arrivalDateTime,marketingAirline:R.marketingAirline,operatingAirline:R.operatingAirline,flightNumber:R.flightNumber,equipment:"",duration:R.duration,bookingClass:R.cabinClass?.charAt(0)||"Y",cabinClass:R.cabinClass||"Economy"})),le={id:`hc-${t.airline}${t.flightNumber}-${Date.now()}`,legs:[{segments:ce,totalDuration:q.totalDuration,stops:q.stops}],totalPrice:t.trickFare,baseFare:Math.round(t.trickFare*.72),taxes:Math.round(t.trickFare*.28),currency:g==="INR"?"INR":"USD",validatingCarrier:t.airline,fareType:"Hidden City",paxCount:1};sessionStorage.setItem("selectedItinerary",JSON.stringify(le));const C=new URLSearchParams;C.set("origin",d),C.set("dest",t.actualDestination),C.set("dep",y),C.set("type","one_way"),C.set("cabin","economy"),C.set("adults","1"),C.set("hc_dest",t.actualDestination),C.set("hc_mode","1"),C.set("hc_origin",d),C.set("hc_savings",String(t.savings)),C.set("hc_savings_pct",String(t.savingsPercent)),C.set("hc_direct_fare",String(t.directFare)),C.set("itinId",le.id),sessionStorage.setItem("searchParams",C.toString()),sessionStorage.setItem("hc_metadata",JSON.stringify({beyondCity:t.beyondCity,actualDestination:t.actualDestination,origin:d,airline:t.airline,flightNumber:t.flightNumber,savings:t.savings,savingsPercent:t.savingsPercent,directFare:t.directFare})),window.location.href=`/booking?${C.toString()}`},children:"Book This Deal â"})]})]})]})})()})})]})});function Pe(){const[s,n]=c.useState("idle"),[i,r]=c.useState(!1),h=c.useRef(null),m=c.useRef(!1),a=c.useRef(null);c.useEffect(()=>{const p=window.matchMedia("(prefers-reduced-motion: reduce)");r(p.matches),p.matches&&n("done");const S=f=>{r(f.matches),f.matches&&n("done")};return p.addEventListener("change",S),()=>p.removeEventListener("change",S)},[]);const x=c.useCallback(()=>
1{if(i){n("done");return}n("idle"),setTimeout(()=>n("flying"),300),setTimeout(()=>n("arrived"),1800),setTimeout(()=>n("done"),2600)},[i]);c.useEffect(()=>{if(i||m.current)return;const p=a.current;if(!p)return;const S=new IntersectionObserver(([f])=>{f.isIntersecting&&!m.current&&(m.current=!0,x(),S.disconnect())},{threshold:.3});return S.observe(p),()=>S.disconnect()},[i,x]);const u=()=>{h.current&&clearTimeout(h.current),x()},g=s==="flying"||s==="arrived"||s==="done",j=s==="arrived"||s==="done",H=s==="arrived"||s==="done",k=s==="done",T=s==="done",I=s==="done";return e.jsxs("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:72",ref:a,className:"bg-white border border-[#ddd8c8] rounded-[18px] p-[22px_22px_18px] shadow-[0_10px_34px_rgba(26,31,22,0.07)] mb-2","aria-label":"Animation showing how hidden city ticketing works: a flight from New York to Orlando with a layover in Atlanta costs $420, but booking the full route and exiting at Atlanta costs only $180, saving 57%.",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:78",className:"flex justify-between items-baseline mb-5 flex-wrap gap-1.5",children:[e.jsxs("span",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:79",className:"font-bold text-[15px] text-[#1a1f16] flex items-center gap-2",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:80",className:i?"":"bulb-glow","aria-hidden":"true",children:"ð¡"}),"How it works"]}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:88",className:"font-mono text-[10.5px] text-[#6f7367] uppercase tracking-[0.08em]",children:"Illustrative example"})]}),!i&&e.jsx("style",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:95",children:` 2 @keyframes bulbGlow { 3 0%, 100% { 4 filter: drop-shadow(0 0 2px rgba(255, 200, 50, 0.3)); 5 transform: translateY(0) scale(1); 6 } 7 50% { 8 filter: drop-shadow(0 0 8px rgba(255, 200, 50, 0.6)) drop-shadow(0 0 16px rgba(255, 200, 50, 0.2)); 9 transform: translateY(-1px) scale(1.05); 10 } 11 } 12 .bulb-glow { 13 display: inline-block; 14 animation: bulbGlow 3s ease-in-out infinite; 15 } 16 `}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:114",className:"relative h-[128px] mx-1 mb-1.5",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:116",className:"absolute top-[46px] left-[9%] right-[50%] h-[3px] bg-[#ddd8c8] rounded-[3px]",children:e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:117",className:"absolute left-0 top-0 h-full rounded-[3px] bg-[#3f6b38]",style:{width:j?"100%":"0%",transition:i?"none":"width 1.5s ease"}})}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:127",className:"absolute top-[46px] left-[50%] right-[9%] h-0 border-t-[3px] border-dashed border-[#ddd8c8]",style:{opacity:I?.35:1,transition:i?"none":"opacity 0.5s"}}),g&&e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:137",className:"absolute top-[38px] text-[19px] z-[3]",style:{left:j?"50%":"9%",transform:"translateX(-50%) rotate(8deg)",transition:i?"none":"left 1.5s ease"},children:"âï¸"}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:150",className:"absolute top-[30px] left-[9%] -translate-x-1/2 text-center w-[96px]",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:151",className:"w-[15px] h-[15px] rounded-full bg-[#3f6b38] border-[3px] border-[#3f6b38] mx-auto mb-2"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:152",className:"font-extrabold text-[14px] tracking-[0.02em] text-[#1a1f16]",children:"NYC"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:153",className:"text-[10.5px] text-[#6f7367] mt-0.5",children:"New York"})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:157",className:"absolute top-[30px] left-[50%] -translate-x-1/2 text-center w-[96px]",children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:158",className:"w-[15px] h-[15px] rounded-full mx-auto mb-2 border-[3px]",style:{borderColor:H?"#e6c757":"#ddd8c8",backgroundColor:H?"#e6c757":"#fff",boxShadow:H?"0 0 0 5px rgba(200,230,86,0.3)":"none",transition:i?"none":"all 0.4s"}}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:167",className:"font-extrabold text-[14px] tracking-[0.02em] text-[#1a1f16]",children:"ATL"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:168",className:"text-[10.5px] text-[#6f7367] mt-0.5",children:"Atlanta"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:170",className:"absolute -top-1 left-1/2 -translate-x-1/2 -translate-y-1.5 bg-[#e6c757] text-[#1a1f16] text-[10.5px] font-extrabold py-[3px] px-[9px] rounded-[20px] whitespace-nowrap",style:{opacity:H?1:0,transition:i?"none":"opacity 0.4s"},children:"â You get off here"})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:182",className:"absolute top-[30px] right-[9%] translate-x-1/2 text-center w-[96px]",style:{opacity:I?.4:1,transition:i?"none":"opacity 0.5s"},children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:189",className:"w-[15px] h-[15px] rounded-full bg-white border-[3px] border-[#ddd8c8] mx-auto mb-2"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:190",className:"font-extrabold text-[14px] tracking-[0.02em] text-[#1a1f16]",children:"ORL"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:191",className:"text-[10.5px] text-[#6f7367] mt-0.5",children:"Orlando"})]}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:195",className:"absolute top-[58px] left-[72%] -translate-x-1/2 font-mono text-[10px] text-[#6f7367] uppercase tracking-[0.06em]",style:{opacity:k?1:0,transition:i?"none":"opacity 0.4s"},children:"Skip this leg"})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:207",className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mt-1.5",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:209",className:"border border-[#e3c4ba] rounded-[13px] p-[14px] bg-[#f1ddd6]",style:{opacity:T?1:0,transform:T?"none":"translateY(8px)",transition:i?"none":"opacity 0.5s, transform 0.5s"},children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:217",className:"text-[11px] text-[#6f7367] mb-1.5 leading-[1.35]",children:"Direct flight NYC â ATL"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:220",className:"text-[25px] font-extrabold text-[#b5523e]",children:"$420"})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:224",className:"border border-[#cfe0bf] rounded-[13px] p-[14px] bg-[#e
166efdc]",style:{opacity:T?1:0,transform:T?"none":"translateY(8px)",transition:i?"none":"opacity 0.5s 0.15s, transform 0.5s 0.15s"},children:[e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:232",className:"text-[11px] text-[#6f7367] mb-1.5 leading-[1.35]",children:"Hidden city: NYC â ORL (exit ATL)"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:235",className:"text-[25px] font-extrabold text-[#3f6b38]",children:"$180"}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:236",className:"inline-block mt-[7px] bg-[#e6c757] text-[#1a1f16] text-[11px] font-extrabold py-[3px] px-2 rounded-[6px]",children:"Save 57%"})]})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:243",className:"flex items-center justify-between mt-4 flex-wrap gap-2",children:[e.jsx("button",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:244",onClick:u,className:"bg-transparent border border-[#ddd8c8] text-[#41463b] font-mono text-[11px] uppercase tracking-[0.08em] py-[7px] px-[13px] rounded-lg cursor-pointer hover:border-[#3f6b38] hover:text-[#3f6b38] transition-colors","aria-label":"Replay animation",children:"â» Replay"}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityAnimation.tsx:251",className:"text-[11px] text-[#6f7367] italic",children:"Fares shown for illustration only"})]})]})}const We="Sometimes a flight through your destination to a further city is cheaper than a direct flight. You simply get off at the layover (your real destination) and skip the last leg.",te={heading:"What is hidden city ticketing?",lead:"Hidden city ticketing â also called skiplagging or throwaway ticketing â is a fare strategy where you book a flight with a connection in your actual destination city, then simply exit at the layover instead of continuing to the ticketed final stop.",example:{label:"Worked example",text:"You want to fly New York â Atlanta. A direct flight costs $420. But a flight New York â Orlando with a connection in Atlanta costs only $180. You book the Orlando flight, get off in Atlanta, and skip the final leg. Same seat, same arrival â 57% less."}},pe={heading:"Why is a longer flight sometimes cheaper?",lead:"Airline pricing doesnât follow the logic youâd expect. A flight that covers more miles can genuinely cost less than a shorter one â and understanding why is the key to hidden city savings.",subsections:[{heading:"Hub pricing",body:"Airlines charge premium fares to and from their hub airports because demand is concentrated there. Flights that merely pass through the hub en route to a smaller city face more competition and are priced lower."},{heading:"Demand, not distance",body:"Airfare is set by demand curves, not by fuel burn. A high-demand short route (like NYC â ATL) can cost more than a low-demand longer route (NYC â ORL via ATL) because fewer people want the final destination."},{heading:"One-way vs round-trip",body:"Hidden city fares only work reliably on one-way tickets or the last leg of a journey. If you skip a segment mid-trip, the airline may cancel all subsequent flights on the same ticket."}]},he={heading:"How Camli finds hidden city flights",intro:"Our proprietary engine does in seconds what would take hours of manual searching. Hereâs the process:",steps:["You enter your real origin and destination â the city you actually want to reach.","Our system generates hundreds of candidate routings that connect through your destination.","We query live airline inventory for each candidate, comparing fares in real time.","Results are filtered for viability: one-way only, no checked-bag conflicts, valid connections.","You see a ranked list of hidden city fares alongside the direct price â savings highlighted instantly."]},ue={heading:"Is hidden city ticketing legal? And is it safe?",lead:"Yes, hidden city ticketing is legal â no law in any country prohibits it. But legal and risk-free are not the same thing. Airlines dislike the practice and have tools to discourage it.",risks:["Checked bags will be routed to the ticketed final destination, not your actual stop. Carry-on only.","Airlines may cancel your remaining itinerary if they detect a skipped segment.","Frequent flyer accounts can be flagged or closed for repeated skiplagging.","Round-trip tickets are risky: skipping the outbound leg often cancels the return.","Airlines occasionally re-route flights, which could bypass your intended exit city.","Some airlines have sued booking platforms (though never individual passengers)."]},oe={heading:"When hidden city ticketing is worth it â and when it isnât",lead:"Hidden city fares arenât for every trip. Hereâs a quick decision framework:",worthIt:["One-way trips with no return flight on the same booking","Savings of 40%+ over the direct fare (worth the trade-offs)","Youâre travelling with carry-on only â no checked luggage","You donât need frequent flyer miles credited for this trip","The connection city is a major hub with reliable schedules"],skipIt:["Round-trip bookings on a single ticket (return will be cancelled)","You need to check bags (theyâll go to the final destination)","Savings are marginal (<20%) â not worth the risk","You fly this route frequently on the same airline (pattern detection)","The connection is tight or the route is prone to re-routing"]},se={heading:"Hidden city vs. Skiplagged",lead:"Skiplagged.com popularised the concept, but itâs not the only option. Hereâs how the two compare:",comparison:[{criterion:"Search scope",camli:"200+ airlines, complex multi-carrier routings",skiplagged:"Limited airline coverage"},{criterion:"Round-trip support",camli:"Separate one-way searches combined safely",skiplagged:"Basic round-trip (higher risk)"},{criterion:"Expert verification",camli:"Every booking reviewed by a live specialist",ski
16plagged:"Self-service only"},{criterion:"Fare types",camli:"Hidden city + direct + consolidator fares",skiplagged:"Hidden city fares only"},{criterion:"Risk warnings",camli:"Route-specific risk flags before booking",skiplagged:"Generic disclaimer"},{criterion:"Support",camli:"Phone + chat with flight experts",skiplagged:"Email only"}],ctaText:"See the full comparison â",ctaHref:"/sites-like-skiplagged"},ke=[{question:"Is hidden city ticketing legal?",answer:"Yes. No law in any country prohibits a passenger from leaving an airport at a connection point. However, it does violate most airlinesâ contracts of carriage, which means they can penalise you (cancel tickets, revoke loyalty status) if they detect the practice."},{question:"Can I check bags on a hidden city ticket?",answer:"No. Checked luggage is tagged to the final ticketed destination and cannot be retrieved at a connection. You must travel carry-on only when using a hidden city fare."},{question:"Will the airline cancel my return flight?",answer:"If your outbound and return are on the same booking, skipping the outboundâs final leg will almost certainly cancel the return. Always book hidden city fares as separate one-way tickets."},{question:"Can airlines ban me for skiplagging?",answer:"Airlines can close your frequent flyer account or refuse future bookings if they identify a pattern. Occasional use on different airlines is lower risk than repeated use on the same carrier."},{question:"Does Camli book the hidden city ticket for me?",answer:"Camliâs search tool surfaces hidden city opportunities so you can compare savings. Our experts can advise on route-specific risks and help you decide whether a hidden city fare is right for your trip."},{question:"What happens if my flight gets re-routed?",answer:"If the airline changes the routing and your connection city is no longer on the path, youâll end up at the ticketed final destination instead. This is rare but possible, especially during irregular operations."},{question:"Is hidden city ticketing the same as skiplagging?",answer:"Yes. Hidden city ticketing, skiplagging, and throwaway ticketing all describe the same strategy: booking a flight with a connection at your real destination and skipping the final leg."}],re={eyebrow:"Go deeper",heading:"The Hidden City playbook",lede:"Our guides cover every angle â from legality and airline-specific rules to advanced savings strategies.",cards:[{tag:"Start here",title:"Hidden City Ticketing Explained â 2026 Guide",teaser:"The complete introduction: what it is, how it works, and who itâs for.",href:"/hidden-city-ticketing-guide"},{tag:"The rules",title:"Is Hidden City Ticketing Legal?",teaser:"Legal status, airline policies, and what happens if youâre caught.",href:"/hidden-city-ticketing-legal"},{tag:"Field guide",title:"Hidden City Ticketing Rules by Airline",teaser:"Airline-by-airline breakdown of enforcement, risk level, and known policies.",href:"/hidden-city-ticketing-rules"},{tag:"The savings",title:"Save Money with Hidden City Ticketing",teaser:"Real-world strategies to maximise savings while minimising risk.",href:"/save-money-hidden-city-ticketing"},{tag:"Alternative",title:"Best Skiplagged Alternatives 2026",teaser:"How Camli and other tools compare to the original skiplagging platform.",href:"/sites-like-skiplagged"},{tag:"Comparison",title:"Skiplagged vs Camli â Honest Comparison",teaser:"Feature-by-feature breakdown: coverage, support, risk tools, and pricing.",href:"/skiplagged-vs-camli"}]},Me=[{href:"/cheap-flights",label:"Cheap Flights"},{href:"/blog/hidden-city-ticketing-explained",label:"How Hidden City Works"},{href:"/sites-like-skiplagged",label:"Skiplagged Alternative"},{href:"/deals",label:"Flight Deals"}];function qe(){return e.jsx("article",{"data-loc":"client/src/components/HiddenCityEducational.tsx:23",className:"bg-[#faf9f6] px-4 md:px-[4vw] pt-6 pb-10 md:pt-8 md:pb-14",children:e.jsxs("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:24",className:"max-w-4xl mx-auto",children:[e.jsx("p",{"data-loc":"client/src/components/HiddenCityEducational.tsx:27",className:"text-center text-[#1a1f16] text-base md:text-lg font-medium leading-[1.7] max-w-2xl mx-auto mt-2 mb-6",children:We}),e.jsx(Pe,{"data-loc":"client/src/components/HiddenCityEducational.tsx:30"}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:33",className:"text-center mt-8 mb-6",children:[e.jsx("h2",{"data-loc":"client/src/components/HiddenCityEducational.tsx:34",className:"text-lg md:text-xl font-semibold text-[#1a1f16] mb-3",children:"Find Hidden City Deals"}),e.jsx("p",{"data-loc":"client/src/components/HiddenCityEducational.tsx:37",className:"text-[#6b7280] text-sm leading-[1.8] max-w-[700px] mx-auto mb-4",children:"Enter your origin and destination above to find hidden city deals. For round trips, we search two separate one-way hidden city fares and combine the savings."})]}),e.jsx(be,{"data-loc":"client/src/components/HiddenCityEducational.tsx:41",airline:"",topic:"hidden city fares",question:"Need help finding a hidden city fare for your route?",ctaSlug:"hidden-city-top"}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:49",className:"flex flex-wrap items-center justify-center gap-x-5 gap-y-2 mt-4 mb-2",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:50",className:"text-[#6b7280] text-[0.78rem]",children:"â Carry-on only"}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:51",className:"text-[#6b7280] text-[0.78rem]",children:"â One-way friendly"}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:52",className:"text-[#6b7280] text-[0.78rem]",children:"â Expert-reviewed routes"})]}),e.jsxs("section",{"data-loc":"client/src/components/HiddenCityEducational.tsx:56",className:"mt-10 mb-10",children:[e.jsx("h2",{"data-loc":"client/src/components/HiddenCityEducational.tsx:57",className:"text-xl font-bold text-[#1a1f16] mb-4",children:te.heading}),e.jsx("p",{"data-loc":"client/src/components/HiddenCityEducational.tsx:60",className:"text-[#41463b] text-[0.95rem] leading-[1.7] mb-4",children:te.lead}),te.example&&e.jsxs("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:64",className:"bg-[#f8f6f1] border border-[#e8e4dd] rounded-xl p-5 mb-2",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:65",className:"text-[0.7rem] font-extrabold tracking-[0.15em] uppercase text-[#c9a227] block mb-2",children:te.example.label}),e.jsx("p",{"data-loc":"client/src/components/HiddenCityEducational.tsx:68",className:"text-[#41463b] text-[0.9rem] leading-[1.7] m-0",children:te.example.text})]})]}),e.jsxs("section",{"data-loc":"client/src/components/HiddenCityEducational.tsx:76",className:"mb-10",children:[e.jsx("h2",{"data-loc":"client/src/components/HiddenCityEducational.tsx:77",className:"text-xl font-bold text-[#1a1f16] mb-4",children:pe.heading}),e.jsx("p",{"data-loc":"client/src/components/HiddenCityEducational.tsx:80",className:"text-[#41463b] text-[0.95rem] leading-[1.7] mb-5",children:pe.lead}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:83",className:"space-y-4",children:pe.subsections.map(s=>e.jsxs("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:85",className:"bg-[#f8f6f1] border border-[#e8e4dd] rounded-xl p-5",children:[e.jsx("h3",{"data-loc":"client/src/components/HiddenCityEducational.tsx:86",className:"text-[1rem] font-bold text-[#1a1f16] mb-2",children:s.heading}),e.jsx("p",{"data-loc":"client/src/components/HiddenCityEducational.tsx:87",className:"text-[#41463b] text-[0.9rem] leading-[1.7] m-0",children:s.body})]},s.heading))})]}),e.jsxs("section",{"data-loc":"client/src/components/HiddenCityEducational.tsx:94",className:"mb-10",children:[e.jsx("h2",{"data-loc":"client/src/components/HiddenCityEducational.tsx:95",className:"text-xl font-bold text-[#1a1f16] mb-4",children:he.heading}),e.jsx("p",{"data-loc":"client/src/components/HiddenCityEducational.tsx:98",className:"text-[#41463b] text-[0.95rem] leading-[1.7] mb-5",children:he.intro}),e.jsx("ol",{"data-loc":"client/src/components/HiddenCityEducational.tsx:101",className:"list-none space-y-3 pl-0",children:he.steps.map((s,n)=>e.jsxs("li",{"data-loc":"client/src/components/HiddenCityEducational.tsx:103",className:"flex gap-3 items-start",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:104",className:"flex-shrink-0 w-7 h-7 rounded-full bg-[#e6efdc] text-[#3f6b38] text-[0.8rem] font-extrabold flex items-center justify-center",children:n+1}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:107",className:"text-[#41463b] text-[0.9rem] leading-[1.6] pt-0.5",children:s})]},n))})]}),e.jsxs("section",{"data-loc":"client/src/components/HiddenCityEducational.tsx:114",className:"mb-10",children:[e.jsx("h2",{"data-loc":"client/src/components/HiddenCityEducational.tsx:115",className:"text-xl font-bold text-[#1a1f16] mb-4",children:ue.heading}),e.jsx("p",{"data-loc":"client/src/components/HiddenCityEducational.tsx:118",className:"text-[#41463b] text-[0.95rem] leading-[1.7] mb-5",children:ue.lead}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:121",className:"bg-[#fef7f0] border border-[#f0d9c4] rounded-xl p-5",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:122",className:"text-[0.7rem] font-extrabold tracking-[0.15em] uppercase text-[#b5523e] block mb-3",children:"Key risks"}),e.jsx("ul",{"data-loc":"client/src/components/HiddenCityEducational.tsx:125",className:"space-y-2.5 pl-0 list-none m-0",children:ue.risks.map((s,n)=>e.jsxs("li",{"data-loc":"client/src/components/HiddenCityEducational.tsx:127",className:"flex gap-2.5 items-start text-[#41463b] text-[0.88rem] leading-[1.6]",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:128",className:"flex-shrink-0 text-[#b5523e] mt-0.5",children:"â "}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:129",children:s})]},n))})]})]}),e.jsxs("section",{"data-loc":"client/src/components/HiddenCityEducational.tsx:137",className:"mb-10",children:[e.jsx("h2",{"data-loc":"client/src/components/HiddenCityEducational.tsx:138",className:"text-xl font-bold text-[#1a1f16] mb-4",children:oe.heading}),e.jsx("p",{"data-loc":"client/src/components/HiddenCityEducational.tsx:141",className:"text-[#41463b] text-[0.95rem] leading-[1.7] mb-5",children:oe.lead}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:144",className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:145",className:"bg-[#e6efdc] border border-[#cfe0bf] rounded-xl p-5",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:14
166",className:"text-[0.7rem] font-extrabold tracking-[0.15em] uppercase text-[#3f6b38] block mb-3",children:"Worth it when"}),e.jsx("ul",{"data-loc":"client/src/components/HiddenCityEducational.tsx:149",className:"space-y-2 pl-0 list-none m-0",children:oe.worthIt.map((s,n)=>e.jsxs("li",{"data-loc":"client/src/components/HiddenCityEducational.tsx:151",className:"flex gap-2 items-start text-[#41463b] text-[0.85rem] leading-[1.5]",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:152",className:"text-[#3f6b38] flex-shrink-0",children:"â"}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:153",children:s})]},n))})]}),e.jsxs("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:158",className:"bg-[#fef7f0] border border-[#f0d9c4] rounded-xl p-5",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:159",className:"text-[0.7rem] font-extrabold tracking-[0.15em] uppercase text-[#b5523e] block mb-3",children:"Skip it when"}),e.jsx("ul",{"data-loc":"client/src/components/HiddenCityEducational.tsx:162",className:"space-y-2 pl-0 list-none m-0",children:oe.skipIt.map((s,n)=>e.jsxs("li",{"data-loc":"client/src/components/HiddenCityEducational.tsx:164",className:"flex gap-2 items-start text-[#41463b] text-[0.85rem] leading-[1.5]",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:165",className:"text-[#b5523e] flex-shrink-0",children:"â"}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:166",children:s})]},n))})]})]})]}),e.jsxs("section",{"data-loc":"client/src/components/HiddenCityEducational.tsx:175",className:"mb-10",children:[e.jsx("h2",{"data-loc":"client/src/components/HiddenCityEducational.tsx:176",className:"text-xl font-bold text-[#1a1f16] mb-4",children:se.heading}),e.jsx("p",{"data-loc":"client/src/components/HiddenCityEducational.tsx:179",className:"text-[#41463b] text-[0.95rem] leading-[1.7] mb-5",children:se.lead}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:182",className:"overflow-x-auto rounded-xl border border-[#e8e4dd]",children:e.jsxs("table",{"data-loc":"client/src/components/HiddenCityEducational.tsx:183",className:"w-full text-[0.85rem]",children:[e.jsx("thead",{"data-loc":"client/src/components/HiddenCityEducational.tsx:184",children:e.jsxs("tr",{"data-loc":"client/src/components/HiddenCityEducational.tsx:185",className:"bg-[#f8f6f1]",children:[e.jsx("th",{"data-loc":"client/src/components/HiddenCityEducational.tsx:186",className:"text-left p-3 font-bold text-[#1a1f16] border-b border-[#e8e4dd]",children:"Criterion"}),e.jsx("th",{"data-loc":"client/src/components/HiddenCityEducational.tsx:187",className:"text-left p-3 font-bold text-[#3f6b38] border-b border-[#e8e4dd]",children:"Camli"}),e.jsx("th",{"data-loc":"client/src/components/HiddenCityEducational.tsx:188",className:"text-left p-3 font-bold text-[#6b7280] border-b border-[#e8e4dd]",children:"Skiplagged"})]})}),e.jsx("tbody",{"data-loc":"client/src/components/HiddenCityEducational.tsx:191",children:se.comparison.map((s,n)=>e.jsxs("tr",{"data-loc":"client/src/components/HiddenCityEducational.tsx:193",className:n%2===0?"bg-white":"bg-[#fafaf8]",children:[e.jsx("td",{"data-loc":"client/src/components/HiddenCityEducational.tsx:194",className:"p-3 text-[#1a1f16] font-medium border-b border-[#e8e4dd]",children:s.criterion}),e.jsx("td",{"data-loc":"client/src/components/HiddenCityEducational.tsx:195",className:"p-3 text-[#41463b] border-b border-[#e8e4dd]",children:s.camli}),e.jsx("td",{"data-loc":"client/src/components/HiddenCityEducational.tsx:196",className:"p-3 text-[#6b7280] border-b border-[#e8e4dd]",children:s.skiplagged})]},n))})]})}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:202",className:"mt-4",children:e.jsx(me,{"data-loc":"client/src/components/HiddenCityEducational.tsx:203",href:se.ctaHref,className:"text-[#3f6b38] font-bold text-[0.9rem] hover:underline",children:se.ctaText})})]}),e.jsxs("section",{"data-loc":"client/src/components/HiddenCityEducational.tsx:210",className:"mb-10",children:[e.jsx("h2",{"data-loc":"client/src/components/HiddenCityEducational.tsx:211",className:"text-xl font-bold text-[#1a1f16] mb-5",children:"Frequently asked questions"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:214",className:"space-y-4",children:ke.map((s,n)=>e.jsxs("details",{"data-loc":"client/src/components/HiddenCityEducational.tsx:216",className:"group bg-[#f8f6f1] border border-[#e8e4dd] rounded-xl overflow-hidden",children:[e.jsxs("summary",{"data-loc":"client/src/components/HiddenCityEducational.tsx:217",className:"cursor-pointer p-4 md:p-5 text-[0.95rem] font-bold text-[#1a1f16] list-none flex items-center justify-between gap-3 [&::-webkit-details-marker]:hidden",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:218",children:s.question}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:219",className:"flex-shrink-0 text-[#6b7280] text-[1.1rem] transition-transform group-open:rotate-45",children:"+"})]}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:221",className:"px-4 md:px-5 pb-4 md:pb-5 text-[#41463b] text-[0.88rem] leading-[1.7]",children:s.answer})]},n))})]}),e.jsxs("section",{"data-loc":"client/src/components/HiddenCityEducational.tsx:230",className:"mb-10",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:231",className:"text-[0.65rem] font-extrabold tracking-[0.2em] uppercase text-[#c9a227] block mb-2",children:re.eyebrow}),e.jsx("h2",{"data-loc":"client/src/components/HiddenCityEducational.tsx:234",className:"text-xl font-bold text-[#1a1f16] mb-2",children:re.heading}),e.jsx("p",{"data-loc":"client/src/components/HiddenCityEducational.tsx:237",className:"text-[#6b7280] text-[0.9rem] leading-[1.6] mb-6",children:re.lede}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:240",className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4",children:re.cards.map(s=>e.jsxs(me,{"data-loc":"client/src/components/HiddenCityEducational.tsx:242",href:s.href,className:"block bg-[#f8f6f1] border border-[#e8e4dd] rounded-xl p-5 hover:border-[#e6c757] hover:shadow-[0_4px_12px_rgba(230,199,87,0.15)] transition-all no-underline group",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:247",className:"text-[0.6rem] font-extrabold tracking-[0.15em] uppercase text-[#c9a227] block mb-2",children:s.tag}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:250",className:"text-[0.95rem] font-bold text-[#1a1f16] block mb-1.5 group-hover:text-[#3f6b38] transition-colors",children:s.title}),e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:253",className:"text-[0.8rem] text-[#6b7280] leading-[1.5] block",children:s.teaser})]},s.href))})]}),e.jsx(be,{"data-loc":"client/src/components/HiddenCityEducational.tsx:262",airline:"",topic:"hidden city fares",question:"Ready to find hidden city savings on your next flight?",ctaSlug:"hidden-city-bottom"}),e.jsxs("nav",{"data-loc":"client/src/components/HiddenCityEducational.tsx:270",className:"mt-8 pt-6 border-t border-[#e8e4dd]","aria-label":"Related pages",children:[e.jsx("span",{"data-loc":"client/src/components/HiddenCityEducational.tsx:271",className:"text-[0.65rem] font-extrabold tracking-[0.2em] uppercase text-[#6b7280] block mb-3",children:"Related"}),e.jsx("div",{"data-loc":"client/src/components/HiddenCityEducational.tsx:274",className:"flex flex-wrap gap-2",children:Me.map(s=>e.jsx(me,{"data-loc":"client/src/components/HiddenCityEducational.tsx:276",href:s.href,className:"text-[0.82rem] text-[#3f6b38] font-medium bg-[#e6efdc] px-3 py-1.5 rounded-lg hover:bg-[#d4e8c2] transition-colors no-u
16nderline",children:s.label},s.href))})]})]})})}function tt(){const[s,n]=c.useState("round_trip"),[i,r]=c.useState(""),[h,m]=c.useState(""),[a,x]=c.useState(""),[u,g]=c.useState(""),[j,H]=c.useState("economy"),[k,T]=c.useState(1),[I,p]=c.useState(!1),[S,f]=c.useState(""),O=c.useRef(null),B=c.useRef(null),A=c.useRef(null),[G,v]=c.useState(!1),[P,N]=c.useState(!1),K=c.useMemo(()=>{const o=new Date;return`${o.getFullYear()}-${String(o.getMonth()+1).padStart(2,"0")}-${String(o.getDate()).padStart(2,"0")}`},[]),Q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],L=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],F=c.useCallback(o=>{if(!o)return{display:"Select date",day:""};const[D,U,z]=o.split("-").map(Number),ve=new Date(D,U-1,z);return{display:`${z} ${Q[U-1]} ${D}`,day:L[ve.getDay()]}},[]),$=c.useCallback(()=>{setTimeout(()=>{O.current?.querySelector("input")?.focus()},50)},[]),ne=c.useCallback(()=>{setTimeout(()=>{N(!1),v(!0)},50)},[]),ie=c.useCallback(o=>{x(o),f(""),v(!1),o&&setTimeout(()=>{s==="round_trip"?N(!0):B.current?.focus()},50)},[s]),w=c.useCallback(o=>{g(o),f(""),N(!1),o&&setTimeout(()=>{B.current?.focus()},50)},[]);de.trickFlights.supportedHubs.useQuery(void 0,{staleTime:300*1e3,refetchOnWindowFocus:!1});const[b,V]=c.useState(null),[W,J]=c.useState(null),X=de.trickFlights.search.useQuery(b,{enabled:!!b,retry:(o,D)=>!Y(D.message)&&o<1,staleTime:300*1e3,refetchOnWindowFocus:!1}),Z=de.trickFlights.search.useQuery(W,{enabled:!!W,retry:(o,D)=>!Y(D.message)&&o<1,staleTime:300*1e3,refetchOnWindowFocus:!1}),M=X.data,t=Z.data,l=X.isLoading&&!!b,d=Z.isLoading&&!!W,y=X.error,_=Z.error,E=l||s==="round_trip"&&d&&!_,ae=y||(s==="round_trip"&&_&&!M?_:null),q=c.useRef(!1);c.useEffect(()=>{if(q.current)return;const o=new URLSearchParams(window.location.search),D=o.get("origin")||"",U=o.get("dest")||"",z=o.get("dep")||"";D&&U&&z&&(q.current=!0,r(D),m(U),x(z),n("one_way"),p(!0),V({origin:D.toUpperCase(),destination:U.toUpperCase(),departureDate:z,cabinClass:j,passengers:{adults:k,children:0,infants:0}}),setTimeout(()=>{A.current?.scrollIntoView({behavior:"smooth",block:"start"})},300))},[]);const ce=async()=>{if(!i||!h||!a){const o=[];i||o.push("origin airport"),h||o.push("destination airport"),a||o.push("departure date"),f(`Please enter ${o.join(", ")}`);return}if(s==="round_trip"&&!u){f("Please enter return date");return}f(""),p(!0),V({origin:i.toUpperCase(),destination:h.toUpperCase(),departureDate:a,cabinClass:j,passengers:{adults:k,children:0,infants:0}}),J(s==="round_trip"?{origin:h.toUpperCase(),destination:i.toUpperCase(),departureDate:u,cabinClass:j,passengers:{adults:k,children:0,infants:0}}:null),setTimeout(()=>{A.current?.scrollIntoView({behavior:"smooth",block:"start"})},300)},le=M?.deals?.[0]?.itinerary?.currency||"USD",C=(M?.deals?.length||0)+(s==="round_trip"&&t?.deals?.length||0),R=c.useMemo(()=>[Ie([{name:"Home",url:"https://camli.com/"},{name:"Hidden City",url:"https://camli.com/hidden-city"}]),Oe({title:"Hidden City Flights | How They Work & the Risks | Camli",description:"Learn how hidden-city flights work, when they can save money, and the risks every traveler should understand before booking.",url:"https://camli.com/hidden-city",imageUrl:null,authorName:"Camli Travel Team",datePublished:"2026-04-17T00:00:00Z",dateModified:Ne("trick-flights"),articleSection:"Travel Hacks"}),Le({name:"How to Search and Book Hidden City Flights",description:"Use Camli's hidden city finder to search for cheaper connecting fares and save up to 60% on airfare by exiting at your layover city.",url:"https://camli.com/hidden-city",totalTime:"PT5M",tool:["Computer or smartphone with internet access"],steps:[{name:"Enter your origin and destination airports",text:"Type your departure city and the hub city you actually want to fly to. Camli will automatically search for connecting itineraries through that hub."},{name:"Select your travel dates",text:"Choose your departure date (and return date for round trips). Hidden city ticketing works best with one-way tickets, but Camli shows savings for both."},{name:"Review hidden city deals",text:"Camli displays connecting fares that are cheaper than direct flights to your destination. Each deal shows the savings amount, airline, and route details."},{name:"Compare with direct flight prices",text:"The direct fare comparison card shows what a regular ticket costs. If the hidden city fare saves $100 or more, it may be worth considering."},{name:"Book a one-way ticket only",text:"Select your preferred deal and book a one-way ticket. Never book round trips with hidden city ticketing â skipping a leg cancels all remaining segments."},{name:"Pack carry-on only and exit at your layover",text:"Bring only carry-on luggage (checked bags go to the final destination). When you land at your connecting city, simply walk out of the airport."}]}),$e(ke)],[]);return e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:518",className:"min-h-screen flex flex-col pb-20 md:pb-0",children:[e.jsx(we,{"data-loc":"client/src/pages/TrickFlights.tsx:519",title:"Hidden City Flights | How They Work & the Risks | Camli",description:"Learn how hidden-city flights work, when they can save money, and the risks every traveler should understand before booking.",canonical:"/hidden-city",ogTitle:"Hidden City Flights | How They Work & the Risks | Camli",ogDescription:"Learn how hidden-city flights work, when they can save money, and the risks every traveler should understand before booking.",ogType:"article",ogImage:"https://media.camli.com/legacy/f494435b9e39eeb284cabe3e-og-tr
16ick-flights-cTm4DVQcxtM2morg5o3DuV.png",imageAlt:"Camli Hidden City Flights â How They Work and the Risks",schema:R}),e.jsx(Re,{"data-loc":"client/src/pages/TrickFlights.tsx:530"}),e.jsxs("section",{"data-loc":"client/src/pages/TrickFlights.tsx:533",className:"bg-[#f8f6f1] px-4 md:px-[4vw] pt-5 md:pt-8 pb-6 md:pb-8 relative",children:[e.jsx("div",{"data-loc":"client/src/pages/TrickFlights.tsx:534",className:"absolute inset-0 pointer-events-none opacity-50",style:{backgroundImage:"radial-gradient(circle, rgba(230,199,87,0.14) 1px, transparent 1px)",backgroundSize:"32px 32px"}}),e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:535",className:"max-w-[1200px] mx-auto relative z-[1]",children:[e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:537",className:"flex items-center gap-2.5 mb-1",children:[e.jsx("span",{"data-loc":"client/src/pages/TrickFlights.tsx:538",className:"w-[18px] h-[2px] bg-[#e6c757] rounded-sm flex-shrink-0"}),e.jsx("span",{"data-loc":"client/src/pages/TrickFlights.tsx:539",className:"text-[0.55rem] md:text-[0.6rem] font-extrabold tracking-[0.2em] uppercase text-[#d4b445]",children:"Hidden City Ticketing"})]}),e.jsxs("h1",{"data-loc":"client/src/pages/TrickFlights.tsx:543",className:"font-serif text-[1.8rem] md:text-[clamp(2rem,3.5vw,3rem)] font-bold leading-[0.95] tracking-tight text-[#1a1f16] mb-2",children:["Hidden City Flights: ",e.jsx("em",{"data-loc":"client/src/pages/TrickFlights.tsx:544",className:"italic text-[#e6c757]",children:"How They Work"}),", When to Use Them & the Risks"]}),e.jsxs("p",{"data-loc":"client/src/pages/TrickFlights.tsx:546",className:"text-[0.78rem] md:text-[0.85rem] text-[#6b7280] leading-[1.6] max-w-[520px] mb-5",children:["Find hidden city deals where booking a flight ",e.jsx("em",{"data-loc":"client/src/pages/TrickFlights.tsx:547",children:"through"})," your destination is cheaper than flying directly there."]}),e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:551",className:"bg-white rounded-[20px] border-[1.5px] border-[#e8e4dd] shadow-[0_4px_8px_rgba(26,31,22,0.05),0_16px_48px_rgba(26,31,22,0.08)] overflow-visible",children:[e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:553",className:"flex items-center justify-between px-3 md:px-5 py-2 bg-[#f0eeea] border-b border-[#e8e4dd] rounded-t-[20px]",children:[e.jsx("div",{"data-loc":"client/src/pages/TrickFlights.tsx:554",className:"flex gap-1",children:[{key:"round_trip",label:"Round Trip"},{key:"one_way",label:"One Way"}].map(o=>e.jsx("button",{"data-loc":"client/src/pages/TrickFlights.tsx:559",onClick:()=>{n(o.key),p(!1),V(null),J(null),f("")},className:`text-[0.62rem] font-bold tracking-wider uppercase px-3 md:px-4 py-1.5 rounded-full transition-all ${s===o.key?"bg-[#1a1f16] text-[#e6c757]":"text-[#6b7280] hover:bg-[#e8e4dc] hover:text-[#1a1f16]"}`,children:o.label},o.key))}),e.jsx("span",{"data-loc":"client/src/pages/TrickFlights.tsx:578",className:"hidden md:inline text-[0.55rem] font-bold tracking-wider uppercase text-[#6b7280]",children:"Carry-On Only"})]}),e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:584",className:"grid grid-cols-1 md:grid-cols-[1.2fr_1.2fr_1fr_1fr_0.8fr_0.6fr_auto] gap-0",children:[e.jsx("div",{"data-loc":"client/src/pages/TrickFlights.tsx:586",className:"p-2.5 md:border-r border-b md:border-b-0 border-[#e8e4dd]",children:e.jsx(fe,{"data-loc":"client/src/pages/TrickFlights.tsx:587",value:i,onChange:o=>{r(o),f("")},onSelect:$,placeholder:"City or airport code",label:"From",helperText:"Type city name or IATA code"})}),e.jsx("div",{"data-loc":"client/src/pages/TrickFlights.tsx:598",ref:O,className:"p-2.5 md:border-r border-b md:border-b-0 border-[#e8e4dd]",children:e.jsx(fe,{"data-loc":"client/src/pages/TrickFlights.tsx:599",value:h,onChange:o=>{m(o),f("")},onSelect:ne,placeholder:"City or airport code",label:"To (Your Real Destination)",helperText:"Where you actually want to go"})}),e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:610",className:`p-2.5 md:border-r border-b md:border-b-0 border-[#e8e4dd] cursor-pointer hover:bg-[rgba(230,199,87,0.07)] transition-colors relative ${G?"bg-[rgba(230,199,87,0.07)]":""}`,onClick:()=>{N(!1),v(!G)},children:[e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:614",className:"text-[0.48rem] font-extrabold tracking-[0.18em] uppercase text-[#d4b445] mb-1 flex items-center gap-1",children:[e.jsxs("svg",{"data-loc":"client/src/pages/TrickFlights.tsx:615",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"#d4b445",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{"data-loc":"client/src/pages/TrickFlights.tsx:616",x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),e.jsx("line",{"data-loc":"client/src/pages/TrickFlights.tsx:616",x1:"16",y1:"2",x2:"16",y2:"6"}),e.jsx("line",{"data-loc":"client/src/pages/TrickFlights.tsx:616",x1:"8",y1:"2",x2:"8",y2:"6"}),e.jsx("line",{"data-loc":"client/src/pages/TrickFlights.tsx:616",x1:"3",y1:"10",x2:"21",y2:"10"})]}),"Depart"]}),e.jsx("div",{"data-loc":"client/src/pages/TrickFlights.tsx:620",className:"text-[0.85rem] font-bold text-[#1a1f16] tracking-tight",children:F(a).display}),e.jsx("div",{"data-loc":"client/src/pages/TrickFlights.tsx:623",className:"text-[0.55rem] text-[#6b7280] mt-0.5",children:F(a).day||"Departure date"}),e.jsx(ye,{"data-loc":"client/src/pages/TrickFlights.tsx:624",value:a,onChange:ie,minDate:K,open:G,onClose:()=>v(!1),label:"Select departure date",align:"left",rangeStart:a,rangeEnd:u,direction:"down"})]}),e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:639",className:`p-2.5 md:border-r border-b md:border-b-0 border-[#e8e4dd] curs
16or-pointer hover:bg-[rgba(230,199,87,0.07)] transition-colors relative ${P?"bg-[rgba(230,199,87,0.07)]":""} ${s!=="round_trip"?"opacity-30 pointer-events-none":""}`,onClick:()=>{s==="round_trip"&&(v(!1),N(!P))},children:[e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:643",className:"text-[0.48rem] font-extrabold tracking-[0.18em] uppercase text-[#d4b445] mb-1 flex items-center gap-1",children:[e.jsxs("svg",{"data-loc":"client/src/pages/TrickFlights.tsx:644",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"#d4b445",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{"data-loc":"client/src/pages/TrickFlights.tsx:645",x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),e.jsx("line",{"data-loc":"client/src/pages/TrickFlights.tsx:645",x1:"16",y1:"2",x2:"16",y2:"6"}),e.jsx("line",{"data-loc":"client/src/pages/TrickFlights.tsx:645",x1:"8",y1:"2",x2:"8",y2:"6"}),e.jsx("line",{"data-loc":"client/src/pages/TrickFlights.tsx:645",x1:"3",y1:"10",x2:"21",y2:"10"})]}),"Return"]}),e.jsx("div",{"data-loc":"client/src/pages/TrickFlights.tsx:649",className:"text-[0.85rem] font-bold text-[#1a1f16] tracking-tight",children:s==="round_trip"?F(u).display:"One way only"}),e.jsx("div",{"data-loc":"client/src/pages/TrickFlights.tsx:652",className:"text-[0.55rem] text-[#6b7280] mt-0.5",children:s==="round_trip"?F(u).day||"Return date":""}),e.jsx(ye,{"data-loc":"client/src/pages/TrickFlights.tsx:653",value:u,onChange:w,minDate:a||K,open:P,onClose:()=>N(!1),label:"Select return date",align:"left",rangeStart:a,rangeEnd:u,direction:"down"})]}),e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:668",className:"grid grid-cols-2 md:contents border-b md:border-b-0 border-[#e8e4dd]",children:[e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:670",className:"p-2.5 md:border-r border-r border-[#e8e4dd] md:border-b-0",children:[e.jsx("label",{"data-loc":"client/src/pages/TrickFlights.tsx:671",className:"text-[0.48rem] font-extrabold tracking-[0.18em] uppercase text-[#d4b445] block mb-1.5",children:"Cabin"}),e.jsxs("select",{"data-loc":"client/src/pages/TrickFlights.tsx:672",value:j,onChange:o=>H(o.target.value),className:"w-full text-[0.78rem] font-bold text-[#1a1f16] bg-[#f8f6f1] border border-[#e8e4dd] rounded-lg px-3 py-2 focus:outline-none focus:border-[#e6c757] focus:ring-2 focus:ring-[#e6c757]/20 transition-all cursor-pointer",children:[e.jsx("option",{"data-loc":"client/src/pages/TrickFlights.tsx:677",value:"economy",children:"Economy"}),e.jsx("option",{"data-loc":"client/src/pages/TrickFlights.tsx:678",value:"premium_economy",children:"Premium Econ"}),e.jsx("option",{"data-loc":"client/src/pages/TrickFlights.tsx:679",value:"business",children:"Business"}),e.jsx("option",{"data-loc":"client/src/pages/TrickFlights.tsx:680",value:"first",children:"First"})]}),e.jsx("div",{"data-loc":"client/src/pages/TrickFlights.tsx:682",className:"text-[0.55rem] text-[#6b7280] mt-1",children:"Class"})]}),e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:686",className:"p-2.5 md:border-r md:border-b-0 border-[#e8e4dd]",children:[e.jsx("label",{"data-loc":"client/src/pages/TrickFlights.tsx:687",className:"text-[0.48rem] font-extrabold tracking-[0.18em] uppercase text-[#d4b445] block mb-1.5",children:"Pax"}),e.jsx("select",{"data-loc":"client/src/pages/TrickFlights.tsx:688",ref:B,value:k,onChange:o=>T(Number(o.target.value)),className:"w-full text-[0.78rem] font-bold text-[#1a1f16] bg-[#f8f6f1] border border-[#e8e4dd] rounded-lg px-3 py-2 focus:outline-none focus:border-[#e6c757] focus:ring-2 focus:ring-[#e6c757]/20 transition-all cursor-pointer",children:[1,2,3,4,5,6,7,8,9].map(o=>e.jsxs("option",{"data-loc":"client/src/pages/TrickFlights.tsx:695",value:o,children:[o," Adult",o>1?"s":""]},o))}),e.jsx("div",{"data-loc":"client/src/pages/TrickFlights.tsx:698",className:"text-[0.55rem] text-[#6b7280] mt-1",children:"Travelers"})]})]}),e.jsxs("button",{"data-loc":"client/src/pages/TrickFlights.tsx:703","data-hc-search-btn":!0,onClick:ce,disabled:E,className:"bg-[#e6c757] flex md:flex-col items-center justify-center gap-2 md:gap-1 px-5 py-3.5 md:py-0 hover:bg-[#d4b445] transition-colors disabled:opacity-50 disabled:cursor-not-allowed rounded-b-[18px] md:rounded-b-none md:rounded-br-[18px]",children:[E?e.jsx("div",{"data-loc":"client/src/pages/TrickFlights.tsx:710",className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):e.jsxs("svg",{"data-loc":"client/src/pages/TrickFlights.tsx:712",viewBox:"0 0 24 24",className:"w-[20px] h-[20px] stroke-white fill-none",strokeWidth:"2.8",strokeLinecap:"round",children:[e.jsx("circle",{"data-loc":"client/src/pages/TrickFlights.tsx:713",cx:"11",cy:"11",r:"7"}),e.jsx("line",{"data-loc":"client/src/pages/TrickFlights.tsx:714",x1:"16.5",y1:"16.5",x2:"22",y2:"22"})]}),e.jsx("span",{"data-loc":"client/src/pages/TrickFlights.tsx:717",className:"text-[0.7rem] md:text-[0.48rem] font-extrabold tracking-[0.18em] uppercase text-white",children:E?"Searching...":"Search Hidden City"})]})]})]}),S&&e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:726",className:"mt-3 text-[0.75rem] font-semibold text-[#dc2626] bg-[#fef2f2] border border-[#fecaca] rounded-xl px-4 py-2.5 flex items-center gap-2",children:[e.jsx("span",{"data-loc":"client/src/pages/TrickFlights.tsx:727",children:"â "})," ",S]}),e.jsxs("div",{"data-loc":"client/src/pages/TrickFlights.tsx:732",className:"mt-4 bg-[#fef3c7]/70 border border-[#f59e0b]/20 rounded-xl px-4 py-2.5 flex items-start gap-2.5",children:[e.jsx("span",{"data-loc":"client/src/pages/TrickFlights.tsx:733",className:"text-sm flex-shrink-0 mt-0.5",children:"â ï¸"}),e.jsxs("p",{"data-loc":"client/src/pages/TrickFlights.tsx:734",className:"text-[0.65rem] text-[#92400e] leading-[1.6] font-medium",children:[e.jsx("strong",{"data-loc":"client/src/pages/TrickFlights.tsx:735",children:"Important:"})," Hidden city flights require carry-on only. Do not use on round trips booked on the same ticket. Airlines may penalise repeat offenders."]})]})]})]}),e.jsx(Be,{"data-loc":"client/src/pages/TrickFlights.tsx:742",ref:A,isLoading:E,error:ae,returnError:_,searchTriggered:I,tripType:s,outboundData:M,returnData:t,totalDeals:C,currency:le,departureDate:a,returnDate:u,cabin:j,pax:k,onRetry:ce}),e.jsx(qe,{"data-loc":"client/src/pages/TrickFlights.tsx:760"}),e.jsx(Te,{"data-loc":"client/src/pages/TrickFlights.tsx:761"}),e.jsx(Se,{"data-loc":"client/src/pages/TrickFlights.tsx:762"})]})}
16export{tt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.