PageSourceSearch

https://www.rechargetravels.com/assets/NationalParksTours-zTn_Me3C.js

js rechargetravels.com collected 2026-10-04 01:55:16 UTC 30,757 bytes, 1 lines download raw bytes

1import{r as m,j as e,L as U}from"./vendor-react-CoQ2efHx.js";import{a as Se}from"./vendor-helmet-DwKLFpVn.js";import{u as ke,t as Te}from"./zod-B29K8XZW.js";import Ce from"./Header-CxEnHrmQ.js";import Pe from"./Footer-lXBclset.js";import{B as u}from"./button-vmE2UBVJ.js";import{B as k}from"./badge-CiMN7Y77.js";import{C as Le,a as Ae}from"./card-BGraRiCM.js";import{I as f}from"./input-DewPjyty.js";import{L as n}from"./label-Ch7mxSb1.js";import{T as De}from"./textarea-1RUFCq6z.js";import{S as g,a as j,b as N,c as b,d as h}from"./select-Dno-QoKu.js";import{C as H}from"./checkbox-dNF7jXhR.js";import{D as Be,a as Me,b as Ie,c as Ue,d as $e}from"./dialog--nY0Uuh3.js";import{u as Re}from"./use-toast-CzmubobI.js";import{n as T}from"./wildlifeToursData-m3NZ3gFt.js";import{M as z,K as G,N as $,V as J,O as Ve}from"./vendor-firebase-core-BwUfoU1O.js";import{d as Q}from"./firebase-Cw3DQ0SZ.js";import{c as Ee}from"./globalTourBookingService-CISDVVn2.js";import{c as We,j as Oe,d as Ye,m as _e,a as p}from"./ComprehensiveSEO-CBl7q6Xr.js";import W from"./eye-CSAQQM6M.js";import{x as L,M as R,A as K,r as Z,z as Fe,U as qe,a as He,d as X}from"./index-CaMFY_1e.js";import A from"./tree-pine-BUoimuvK.js";import V from"./mountain-BDFExwFR.js";import ze from"./camera-cRBfNAUB.js";import ee from"./loader-circle-C7n-6u99.js";import ae from"./shield-DqoXGW5a.js";import se from"./dollar-sign-BUpZFhEz.js";import Ge from"./sunrise-BklkHaZa.js";import Je from"./sunset-Bib745fm.js";import Qe from"./sun-BjX6qWRC.js";import Ke from"./user-CdN7FATr.js";import{o as Ze,b as te,s as i,e as re,n as E}from"./types-DXzAqgiM.js";import"./vendor-preload-CVfkMyKi.js";import"./search-CHfXYZlT.js";import"./x-DZbkFiYK.js";import"./house-CGfP008H.js";import"./waves-zdeW5z1K.js";import"./tree-palm-CvtE_Up2.js";import"./crown-CSET0yiF.js";import"./phone-Bm2iXiQ7.js";import"./mail-C8AR9FBI.js";import"./RechargeFooter-DAkIsmE1.js";import"./landmark-CJ7dvx6Q.js";import"./facebook-DfaXfUvF.js";import"./instagram-LWMFvqTE.js";import"./twitter-CE_yDTPD.js";import"./linkedin-Bh3fZd12.js";import"./youtube-BGXuNFEx.js";import"./music-2-CqganXHA.js";import"./arrow-up-DxUK5bHa.js";import"./vendor-ui-BzKOoyfV.js";import"./index-6VnU_kr4.js";import"./index-CpG-Qdsq.js";import"./bootstrapFullApp-CMdUvTdo.js";import"./index-7THB8bLP.js";import"./registry-WMa33ww6.js";import"./tools-Dk8nU3iw.js";import"./index-BIvIUAEt.js";import"./chevron-up-BLO4oiY_.js";import"./vendor-firebase-analytics-B2VZ2fvb.js";import"./vendor-firebase-auth-BxW_oINq.js";import"./inputValidation-D13_61_9.js";const ie="nationalparks_tours",Xe=async l=>{try{let x=z(G(Q,ie),$("is_active","==",!0),J("created_at","desc"));return l&&l!=="all"&&(x=z(G(Q,ie),$("is_active","==",!0),$("category","==",l),J("created_at","desc"))),(await Ve(x)).docs.map(w=>({id:w.id,...w.data()}))}catch{return[]}},ea=i().min(8,"Please enter a valid phone number").regex(/^[+]?[\d\s\-()]+$/,"Please enter a valid phone number"),aa=l=>{const x=new Date(l);if(Number.isNaN(x.getTime()))return!1;const y=new Date;return y.setHours(0,0,0,0),x>=y},sa=Ze({tourId:i().min(1,"Please select a tour"),tourTitle:i().min(1),parkName:i().min(1),firstName:i().min(2,"First name must be at least 2 characters"),lastName:i().min(2,"Last name must be at least 2 characters"),email:i().email("Please enter a valid email"),phone:ea,whatsappNumber:i().optional(),nationality:i().min(2,"Please select your nationality"),travelDate:i().min(1,"Please select a travel date").refine(l=>!l||aa(l),{message:"Travel date must be in the future"}),safariTime:re(["morning","afternoon","fullday"]),adults:E().min(1,"At least 1 adult required").max(15),children:E().min(0).max(10),infants:E().min(0).max(5),vehicleType:re(["shared","private"]),includeGuide:te(),pickupLocation:i().min(2,"Pickup location is required"),dropoffLocation:i().optional(),hotelName:i().optional(),specialRequests:i().max(500,"Special requests too long").optional(),dietaryRequirements:i().max(200,"Dietary requirements too long").optional(),agreeToTerms:te().refine(l=>l===!0,"You must agree to terms")}),ta=["United States","United Kingdom","Canada","Australia","Germany","France","Netherlands","Belgium","Switzerland","Austria","Italy","Spain","India","China","Japan","South Korea","Singapore","Malaysia","Thailand","Indonesia","Philippines","Vietnam","New Zealand","South Africa","Brazil","Mexico","Russia","UAE","Saudi Arabia","Sri Lanka","Other"].sort(),ra=[{value:"all",label:"All Parks",icon:A},{value:"yala",label:"Yala National Park",icon:W},{value:"udawalawe",label:"Udawalawe",icon:V},{value:"wilpattu",label:"Wilpattu",icon:A},{value:"minneriya",label:"Minneriya",icon:V}
1,{value:"bundala",label:"Bundala",icon:ze},{value:"horton-plains",label:"Horton Plains",icon:V},{value:"sinharaja",label:"Sinharaja",icon:A}],ps=()=>{const{toast:l}=Re(),[,x]=m.useState([]),[y,w]=m.useState(!0),[c,le]=m.useState("all"),[ne,D]=m.useState(!1),[r,oe]=m.useState(null),[O,Y]=m.useState(!1),[C,ce]=m.useState(0),{register:d,handleSubmit:de,watch:v,setValue:o,reset:me,formState:{errors:t}}=ke({resolver:Te(sa),defaultValues:{tourId:"",tourTitle:"",parkName:"",adults:2,children:0,infants:0,safariTime:"morning",vehicleType:"shared",includeGuide:!0,agreeToTerms:!1}}),B=v("adults"),M=v("children"),_=v("vehicleType"),I=v("includeGuide"),F=v("safariTime");m.useEffect(()=>{(async()=>{w(!0);try{const s=await Xe(c==="all"?void 0:c);x(s)}catch{}finally{w(!1)}})()},[c]),m.useEffect(()=>{if(!r)return;const a="fees"in r?r.fees.entrance_fee+r.fees.jeep_hire:r.price||85;let s=a*(B||0);s+=a*(M||0)*.5,_==="private"&&(s+=50),I&&(s+=25),F==="fullday"&&(s*=1.5),ce(Math.round(s))},[B,M,_,I,F,r]);const he=()=>{const a=new Date;return a.setDate(a.getDate()+1),a.toISOString().split("T")[0]},q=a=>a.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)+/g,"").slice(0,80),xe=a=>a?a.toLowerCase().replace(/[^a-z0-9]+/g,"-"):"sri-lanka",pe=a=>{const s=a.trim().match(/^\+\d{1,4}/);return s?s[0]:"+94"},ue=a=>a==="afternoon"?"14:00":"06:00",fe=a=>[a.specialRequests?`Notes: ${a.specialRequests}`:null,a.dietaryRequirements?`Dietary: ${a.dietaryRequirements}`:null,`Safari time: ${a.safariTime}`,`Vehicle: ${a.vehicleType}`,`Guide: ${a.includeGuide?"Yes":"No"}`,a.hotelName?`Hotel: ${a.hotelName}`:null,a.dropoffLocation?`Drop-off: ${a.dropoffLocation}`:null].filter(Boolean).join(" | "),ge=a=>{oe(a);const s="slug"in a?a.name:a.parkName||a.title,S="slug"in a?`${a.name} Safari Experience`:a.title;o("tourId","slug"in a?a.id:a.id||"",{shouldValidate:!0}),o("tourTitle",S,{shouldValidate:!0}),o("parkName",s,{shouldValidate:!0}),D(!0)},je=async a=>{Y(!0);try{if(!r){l({title:"Select a safari first",description:"Please choose a national park before submitting your booking.",variant:"destructive"});return}const s=a.adults+a.children*.5,S=s>0?Math.round(C/s):void 0,ye=c==="all"?"wildlife":c,we="slug"in r?r.province:r.province||r.location,P=await Ee({tourId:a.tourId||q(a.tourTitle),tourTitle:a.tourTitle,tourSlug:q(a.tourTitle),tourCategory:ye,tourRegion:xe(we),tourDuration:{days:1,nights:0},tourPriceUSD:S,travelDate:a.travelDate,startTime:ue(a.safariTime),travellers:{adults:a.adults,children:a.children,infants:a.infants},contact:{firstName:a.firstName,lastName:a.lastName,email:a.email,phone:a.phone,countryCode:pe(a.phone),nationality:a.nationality},pickupLocation:a.pickupLocation,pickupAddress:a.hotelName,dropoffLocation:a.dropoffLocation,specialRequests:fe(a),paymentMethod:"cash_deal",totalAmountUSD:C,currency:"USD",source:"wildtours-parks"});if(!P.success)throw new Error(P.message||"Unable to submit booking.");const ve=P.bookingReference||P.bookingId||"Pending";l({title:"Safari Booked Successfully!",description:`Your booking reference is ${ve}. We'll confirm shortly.`,duration:6e3}),D(!1),me()}catch{l({title:"Error",description:"Something went wrong. Please try again or contact us directly.",variant:"destructive"})}finally{Y(!1)}},Ne=c==="all"?T:T.filter(a=>a.slug.toLowerCase().includes(c.toLowerCase())||a.name.toLowerCase().includes(c.toLowerCase())),be={"@context":"https://schema.org","@type":"TouristAttraction",name:"Sri Lanka National Parks Safari Tours",description:"Book wildlife safari tours at Yala, Udawalawe, Wilpattu, Minneriya and more Sri Lanka national parks. See leopards, elephants, and exotic birds.",image:"https://images.unsplash.com/photo-1549366021-9f761d040a94?w=1200",offers:T.map(a=>({"@type":"Offer",name:`${a.name} Safari`,price:a.fees.entrance_fee+a.fees.jeep_hire,priceCurrency:"USD",availability:"InStock"}))};return e.jsxs(e.Fragment,{children:[e.jsxs(Se,{children:[e.jsx("title",{children:"National Parks Safari Sri Lanka | From $65 | Yala, Udawalawe, Wilpattu"}),e.jsx("meta",{name:"description",content:"Safari from $65/person. Yala leopards, Udawalawe elephants, Wilpattu wilderness. Expert guides, 4x4 jeeps. 24/7 booking. Price match guarantee. Book online now!"}),e.jsx("meta",{name:"keywords",content:"Sri Lanka safari, Yala national park, Udawalawe elephants, Wilpattu leopards, Minneriya gathering, book safari online"}),e.jsx("meta",{property:"og:title",content:"National Parks Safari Sri Lanka | From $65"}),e.jsx("meta",{property:"og:description",content:"Yala leopards, Udawalawe elephants. Expert guides. Safari from $65. Book now!"}),e.jsx("meta",{property:"og:image",content:"https://images.unsplash.com/photo-1549366021-9f761d040a94?w=1200"}),e.jsx("meta",{property:"og:url",content:"https://www.rechargetravels.com/tours/wildtours/parks"}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:locale",content:"en_US"}),e.jsx("meta",{property:"og:site_name",content:"Recharge Travels"}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("link",{rel:"canonical",href:"https://www.rechargetravels.com/tours/wildtours/parks"}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(be)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(We([{name:"Home",url:p.url},{name:"Tours",url:`${p.url}/tours`},{name:"Wildlife Tours",url:`${p.url}/tours/wildtours`},{name:"National Parks",url:`${p.url}/tours/wildtours/parks`}]))}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(Oe())}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(Ye("How to Book a Safari in Sri Lanka","Complete guide to booking a wildlife safari at Sri Lanka national parks including Yala, Udawalawe, Wilpattu, and Minneriya.",[{name:"Choose Your Park",text:"Select from Yala (best for leopards), Udawalawe (elephants), Wilpattu (pristine wilderness), Minneriya (elephant gathering), or Bundala (birds)."},{name:"Select Safari Time",text:"Morning safaris (5:30 AM) offer best wildlife sightings. Afternoon safaris (2:00 PM) have great light. Full-d
1ay includes lunch."},{name:"Book Online or Call",text:"Use the booking form above or call Recharge Travels at +94 77 772 1999. WhatsApp available for instant confirmation."},{name:"Choose Your Vehicle",text:"Private jeep ($50+ surcharge) for flexibility, or shared safari for budget-friendly option. All jeeps are 4x4 with experienced trackers."},{name:"Confirm & Prepare",text:"Receive email confirmation with itinerary. Bring binoculars, camera, hat, sunscreen, and neutral-colored clothing."}],{totalTime:"PT6H",estimatedCost:"65"}))}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(_e("https://www.rechargetravels.com/tours/wildtours/parks",["h1",".hero-description",".safari-intro"]))}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage","@id":"https://www.rechargetravels.com/tours/wildtours/parks#collection",name:"Sri Lanka National Parks Safari Tours",description:"Browse and book wildlife safari tours at all major Sri Lanka national parks. Yala, Udawalawe, Wilpattu, Minneriya, Bundala safaris available.",url:"https://www.rechargetravels.com/tours/wildtours/parks",image:"https://images.unsplash.com/photo-1549366021-9f761d040a94?w=1200",mainEntity:{"@type":"ItemList",itemListElement:T.map((a,s)=>({"@type":"ListItem",position:s+1,item:{"@type":"TouristTrip",name:`${a.name} Safari`,description:a.description,image:a.image,offers:{"@type":"Offer",price:a.fees.entrance_fee+a.fees.jeep_hire,priceCurrency:"USD",availability:"https://schema.org/InStock"},touristType:"Wildlife Tourism"}}))},provider:{"@type":"TravelAgency",name:p.name,url:p.url,telephone:p.phone},aggregateRating:{"@type":"AggregateRating",ratingValue:4.8,reviewCount:847,bestRating:5,worstRating:1}})}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What is the best national park for leopard sighting in Sri Lanka?",acceptedAnswer:{"@type":"Answer",text:"Yala National Park has the highest density of leopards in the world. Block 1 offers the best sightings, especially during morning safaris (5:30 AM). Book early as Yala has daily visitor limits."}},{"@type":"Question",name:"When is the best time for safari in Sri Lanka?",acceptedAnswer:{"@type":"Answer",text:"The dry season (February-October) is best for wildlife viewing. Morning safaris (5:30-10:00 AM) offer optimal conditions. The Minneriya elephant gathering is spectacular from July to October."}},{"@type":"Question",name:"How much does a safari cost in Sri Lanka?",acceptedAnswer:{"@type":"Answer",text:"Safari costs vary by park. Expect $65-150 per person including entrance fees, jeep hire, and tracker. Private jeeps cost more but offer flexibility. Contact Recharge Travels at +94 77 772 1999 for best rates."}},{"@type":"Question",name:"What should I bring on a safari in Sri Lanka?",acceptedAnswer:{"@type":"Answer",text:"Essential items: binoculars, camera with zoom lens, hat, sunscreen, insect repellent, water, and neutral-colored clothing. Early morning can be cool, so bring a light jacket."}}]})})]}),e.jsx(Ce,{}),e.jsxs("section",{className:"relative min-h-[70vh] overflow-hidden bg-gradient-to-br from-emerald-900 via-green-800 to-teal-900",children:[e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1549366021-9f761d040a94?w=1920",alt:"Sri Lanka Safari",className:"w-full h-full object-cover opacity-30"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
1parent to-transparent"})]}),e.jsx("div",{className:"relative z-10 container mx-auto px-4 py-24 flex items-center min-h-[70vh]",children:e.jsxs("div",{className:"max-w-4xl",children:[e.jsxs(k,{className:"mb-4 bg-amber-500/90 text-white border-0",children:[e.jsx(W,{className:"w-4 h-4 mr-2"}),"Wildlife Safari Tours"]}),e.jsxs("h1",{className:"text-5xl md:text-7xl font-playfair font-bold text-white mb-6",children:["Sri Lanka National Parks",e.jsx("span",{className:"block text-amber-400",children:"Safari Adventures"})]}),e.jsx("p",{className:"text-xl md:text-2xl text-white/90 mb-8 max-w-2xl font-montserrat",children:"Experience world-class wildlife at Yala, Udawalawe, Wilpattu & more. Book your safari online with instant confirmation."}),e.jsxs("div",{className:"flex flex-wrap gap-6 mb-8",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-lg px-6 py-3",children:[e.jsxs("div",{className:"text-3xl font-bold text-amber-400",children:[T.length,"+"]}),e.jsx("div",{className:"text-white/80 text-sm",children:"National Parks"})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-lg px-6 py-3",children:[e.jsx("div",{className:"text-3xl font-bold text-amber-400",children:"100+"}),e.jsx("div",{className:"text-white/80 text-sm",children:"Wildlife Species"})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-lg px-6 py-3",children:[e.jsx("div",{className:"text-3xl font-bold text-amber-400",children:"4.8/5"}),e.jsx("div",{className:"text-white/80 text-sm",children:"Customer Rating"})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-lg px-6 py-3",children:[e.jsx("div",{className:"text-3xl font-bold text-amber-400",children:"24/7"}),e.jsx("div",{className:"text-white/80 text-sm",children:"Support"})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-4",children:[e.jsxs(u,{size:"lg",onClick:()=>document.getElementById("parks-grid")?.scrollIntoView({behavior:"smooth"}),className:"bg-amber-500 hover:bg-amber-600 text-black font-semibold px-8 py-6 text-lg rounded-full",children:[e.jsx(L,{className:"w-5 h-5 mr-2"}),"Book Safari Now"]}),e.jsx(u,{size:"lg",variant:"outline",className:"border-white text-white hover:bg-white hover:text-gray-900 px-8 py-6 text-lg rounded-full",asChild:!0,children:e.jsxs("a",{href:"https://wa.me/94777721999?text=Hi! I want to book a safari tour",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(R,{className:"w-5 h-5 mr-2"}),"WhatsApp Us"]})})]})]})})]}),e.jsx("section",{className:"py-8 bg-gradient-to-b from-emerald-50 to-white sticky top-0 z-40 shadow-sm",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"flex flex-wrap gap-3 justify-center",children:ra.map(a=>{const s=a.icon;return e.jsxs(u,{variant:c===a.value?"default":"outline",onClick:()=>
1le(a.value),className:`rounded-full ${c===a.value?"bg-emerald-600 hover:bg-emerald-700":"border-emerald-200 hover:bg-emerald-50"}`,children:[e.jsx(s,{className:"w-4 h-4 mr-2"}),a.label]},a.value)})})})}),e.jsx("section",{id:"parks-grid",className:"py-16 bg-white",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-4xl font-playfair font-bold text-gray-900 mb-4",children:"Choose Your Safari Destination"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:'Each park offers unique wildlife experiences. Click "Book Safari" to reserve your spot.'})]}),y?e.jsx("div",{className:"flex justify-center py-16",children:e.jsx(ee,{className:"w-8 h-8 animate-spin text-emerald-600"})}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:Ne.map(a=>e.jsxs(Le,{className:"overflow-hidden hover:shadow-2xl transition-all duration-300 group border-2 border-transparent hover:border-emerald-200",children:[e.jsxs("div",{className:"relative h-56 overflow-hidden",children:[e.jsx("img",{src:a.images[0],alt:a.name,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
1parent to-transparent"}),e.jsxs("div",{className:"absolute top-4 left-4 flex gap-2",children:[e.jsx(k,{className:"bg-emerald-700 text-white",children:a.classification}),a.featured&&e.jsxs(k,{className:"bg-amber-700 text-white",children:[e.jsx(K,{className:"w-3 h-3 mr-1"}),"Featured"]})]}),e.jsx("div",{className:"absolute bottom-4 right-4",children:e.jsxs(k,{className:"bg-white text-emerald-700 text-lg font-bold px-4 py-2",children:["From $",a.fees.entrance_fee+a.fees.jeep_hire]})}),e.jsxs("div",{className:"absolute bottom-4 left-4 text-white flex items-center",children:[e.jsx(Z,{className:"w-4 h-4 mr-1"}),a.province]})]}),e.jsxs(Ae,{className:"p-6",children:[e.jsx("h3",{className:"text-2xl font-playfair font-bold text-gray-900 mb-2",children:a.name}),e.jsx("p",{className:"text-gray-600 mb-4 line-clamp-2",children:a.description}),e.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:a.attractions.slice(0,4).map((s,S)=>e.jsx(k,{variant:"secondary",className:"capitalize",children:s},S))}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-6 text-sm",children:[e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(Fe,{className:"w-4 h-4 mr-2 text-emerald-600"}),a.operatingHours.split(" - ")[0]]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(Z,{className:"w-4 h-4 mr-2 text-emerald-600"}),a.location.distanceFromColombo,"km"]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(L,{className:"w-4 h-4 mr-2 text-emerald-600"}),a.bestTimeToVisit.split(" ")[0]]}),e.jsxs("div",{className:"flex items-center text-amber-600 font-medium",children:[e.jsx(K,{className:"w-4 h-4 mr-2 fill-amber-400"}),a.featured?"Top Rated":"Popular"]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsxs(u,{className:"flex-1 bg-emerald-600 hover:bg-emerald-700",onClick:()=>ge(a),children:[e.jsx(L,{className:"w-4 h-4 mr-2"}),"Book Safari"]}),e.jsx(u,{variant:"outline",className:"border-emerald-200",asChild:!0,children:e.jsx(U,{to:`/tours/wildtours/parks/${a.slug}`,children:e.jsx(W,{className:"w-4 h-4"})})})]})]})]},a.id))})]})}),e.jsx("section",{className:"py-16 bg-gradient-to-r from-emerald-600 to-teal-600 text-white",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("div",{className:"text-center mb-12",children:e.jsx("h2",{className:"text-4xl font-playfair font-bold mb-4",children:"Why Book Your Safari With Us?"})}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(ae,{className:"w-8 h-8"})}),e.jsx("h3",{className:"font-bold mb-2",children:"Secure Booking"}),e.jsx("p",{className:"text-white/80 text-sm",children:"Safe & encrypted payments"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(se,{className:"w-8 h-8"})}),e.jsx("h3",{className:"font-bold mb-2",children:"Best Price"}),e.jsx("p",{className:"text-white/80 text-sm",children:"Price match guarantee"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(qe,{className:"w-8 h-8"})}),e.jsx("h3",{className:"font-bold mb-2",children:"Expert Guides"}),e.jsx("p",{className:"text-white/80 text-sm",children:"Certified wildlife experts"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(R,{className:"w-8 h-8"})}),e.jsx("h3",{className:"font-bold mb-2",children:"24/7 Support"}),e.jsx("p",{className:"text-white/80 text-sm",children:"WhatsApp assistance"})]})]})]})}),e.jsx(Be,{open:ne,onOpenChange:D,children:e.jsxs(Me,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[e.jsxs(Ie,{children:[e.jsxs(Ue,{className:"text-2xl font-playfair flex items-center gap-2",children:[e.jsx(A,{className:"w-6 h-6 text-emerald-600"}
1),"Book Safari - ",r&&("slug"in r?r.name:r.title)]}),e.jsx($e,{children:"Complete your booking details below. All fields marked * are required."})]}),e.jsxs("form",{onSubmit:de(je),className:"space-y-6 mt-4",children:[e.jsx("input",{type:"hidden",...d("tourId")}),e.jsx("input",{type:"hidden",...d("tourTitle")}),e.jsx("input",{type:"hidden",...d("parkName")}),e.jsx("div",{className:"bg-gradient-to-r from-emerald-50 to-teal-50 rounded-xl p-4 border border-emerald-100",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Estimated Total"}),e.jsxs("p",{className:"text-3xl font-bold text-emerald-600",children:["$",C,e.jsx("span",{className:"text-sm font-normal text-gray-500 ml-1",children:"USD"})]})]}),e.jsxs("div",{className:"text-right text-sm text-gray-600",children:[e.jsxs("p",{children:["Adults: ",B||0]}),e.jsxs("p",{children:["Children: ",M||0]})]})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("h3",{className:"font-semibold text-gray-900 flex items-center gap-2",children:[e.jsx(L,{className:"w-5 h-5 text-emerald-600"}),"Safari Details"]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(n,{htmlFor:"safari-travel-date",children:"Travel Date *"}),e.jsx(f,{id:"safari-travel-date",type:"date",min:he(),...d("travelDate"),className:t.travelDate?"border-red-500":""}),t.travelDate&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:t.travelDate.message})]}),e.jsxs("div",{children:[e.jsx(n,{children:"Safari Time *"}),e.jsxs(g,{defaultValue:"morning",onValueChange:a=>o("safariTime",a),children:[e.jsx(j,{children:e.jsx(N,{})}),e.jsxs(b,{children:[e.jsx(h,{value:"morning",children:e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4"})," Morning (6AM-12PM)"]})}),e.jsx(h,{value:"afternoon",children:e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(Je,{className:"w-4 h-4"})," Afternoon (2PM-6PM)"]})}),e.jsx(h,{value:"fullday",children:e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(Qe,{className:"w-4 h-4"})," Full Day (+50%)"]})})]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsx(n,{children:"Adults *"}),e.jsxs(g,{defaultValue:"2",onValueChange:a=>o("adults",parseInt(a)),children:[e.jsx(j,{children:e.jsx(N,{})}),e.jsx(b,{children:[1,2,3,4,5,6,7,8,9,10].map(a=>e.jsx(h,{value:a.toString(),children:a},a))})]})]}),e.jsxs("div",{children:[e.jsx(n,{children:"Children (5-12)"}),e.jsxs(g,{defaultValue:"0",onValueChange:a=>o("children",parseInt(a)),children:[e.jsx(j,{children:e.jsx(N,{})}),e.jsx(b,{children:[0,1,2,3,4,5].map(a=>e.jsx(h,{value:a.toString(),children:a},a))})]})]}),e.jsxs("div",{children:[e.jsx(n,{children:"Infants (0-4)"}),e.jsxs(g,{defaultValue:"0",onValueChange:a=>o("infants",parseInt(a)),children:[e.jsx(j,{children:e.jsx(N,{})}),e.jsx(b,{children:[0,1,2,3].map(a=>e.jsx(h,{value:a.toString(),children:a},a))})]})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("h3",{className:"font-semibold text-gray-900 flex items-center gap-2",children:[e.jsx(He,{className:"w-5 h-5 text-emerald-600"}),"Vehicle & Guide Options"]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(n,{children:"Vehicle Type *"}),e.jsxs(g,{defaultValue:"shared",onValueChange:a=>o("vehicleType",a),children:[e.jsx(j,{children:e.jsx(N,{})}),e.jsxs(b,{children:[e.jsx(h,{value:"shared",children:"Shared Jeep"}),e.jsx(h,{value:"private",children:"Private Jeep (+$50)"})]})]})]}),e.jsx("div",{className:"flex items-end",children:e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-3 border rounded-lg hover:bg-gray-50",children:[e.jsx(H,{checked:I,onCheckedChange:a=>o("includeGuide",a)}),e.jsx("span",{children:"Expert Guide (+$25)"})]})})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("h3",{className:"font-semibold text-gray-900 flex items-center gap-2",children:[e.jsx(Ke,{className:"w-5 h-5 text-emerald-600"}),"Personal Details"]}
1),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(n,{children:"First Name *"}),e.jsx(f,{...d("firstName"),placeholder:"John",className:t.firstName?"border-red-500":""}),t.firstName&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:t.firstName.message})]}),e.jsxs("div",{children:[e.jsx(n,{children:"Last Name *"}),e.jsx(f,{...d("lastName"),placeholder:"Doe",className:t.lastName?"border-red-500":""}),t.lastName&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:t.lastName.message})]})]}),e.jsxs("div",{children:[e.jsx(n,{children:"Email Address *"}),e.jsx(f,{type:"email",...d("email"),placeholder:"[email protected]",className:t.email?"border-red-500":""}),t.email&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:t.email.message})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(n,{children:"Phone / WhatsApp *"}),e.jsx(f,{...d("phone"),placeholder:"+1 234 567 8900",className:t.phone?"border-red-500":""}),t.phone&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:t.phone.message})]}),e.jsxs("div",{children:[e.jsx(n,{children:"Nationality *"}),e.jsxs(g,{onValueChange:a=>o("nationality",a),children:[e.jsx(j,{className:t.nationality?"border-red-500":"",children:e.jsx(N,{placeholder:"Select country"})}),e.jsx(b,{children:ta.map(a=>e.jsx(h,{value:a,children:a},a))})]}),t.nationality&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:t.nationality.message})]})]}),e.jsxs("div",{children:[e.jsx(n,{children:"Pickup Location / Hotel Name *"}),e.jsx(f,{...d("pickupLocation"),placeholder:"e.g., Cinnamon Wild Yala, Tissamaharama",className:t.pickupLocation?"border-red-500":""}),t.pickupLocation&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:t.pickupLocation.message})]}),e.jsxs("div",{children:[e.jsx(n,{children:"Special Requests"}),e.jsx(De,{...d("specialRequests"),placeholder:"Any special requirements, dietary needs, accessibility needs...",rows:3})]})]}),e.jsxs("div",{className:"space-y-3 pt-4 border-t",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(H,{id:"terms",onCheckedChange:a=>o("agreeToTerms",a)}),e.jsxs("label",{htmlFor:"terms",className:"text-sm text-gray-600 leading-tight",children:["I agree to the"," ",e.jsx(U,{to:"/terms",className:"text-emerald-600 hover:underline",children:"Terms & Conditions"})," ","and"," ",e.jsx(U,{to:"/privacy",className:"text-emerald-600 hover:underline",children:"Cancellation Policy"})]})]}),t.agreeToTerms&&e.jsx("p",{className:"text-red-500 text-xs",children:t.agreeToTerms.message})]}),e.jsx(u,{type:"submit",disabled:O,className:"w-full bg-gradient-to-r from-emerald-600 to-teal-600 hover:from-emerald-700 hover:to-teal-700 text-white py-6 text-lg font-semibold",children:O?e.jsxs(e.Fragment,{children:[e.jsx(ee,{className:"w-5 h-5 mr-2 animate-spin"}),"Processing..."]}):e.jsxs(e.Fragment,{children:[e.jsx(X,{className:"w-5 h-5 mr-2"}),"Confirm Safari Booking - $",C]})}),e.jsxs("div",{className:"flex items-center justify-center gap-4 pt-4 text-xs text-gray-500",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ae,{className:"w-4 h-4 text-emerald-600"}),"Secure Booking"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(se,{className:"w-4 h-4 text-emerald-600"}),"Best Price"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(X,{className:"w-4 h-4 text-emerald-600"}),"Instant Confirmation"]})]}),e.jsxs("div",{className:"text-center pt-4 border-t",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Need help with your booking?"}),e.jsxs("a",{href:"https://wa.me/94777721999?text=Hi, I need help booking a safari",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-green-600 hover:text-green-700 font-medium",children:[e.jsx(R,{className:"w-5 h-5"}),"Chat on WhatsApp"]})]})]})]})}),e.jsx(Pe,{})]})};export{ps 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.