diff --git a/src/pages/DestinationDetail.tsx b/src/pages/DestinationDetail.tsx new file mode 100644 index 0000000..793b4bf --- /dev/null +++ b/src/pages/DestinationDetail.tsx @@ -0,0 +1,182 @@ +import { useState } from "react"; +import { Link } from "react-router-dom"; +import { Button } from "@/components/ui/button"; +import { Card, CardContent } from "@/components/ui/card"; +import { Badge } from "@/components/ui/badge"; +import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion"; +import { Check, Star, Quote, ArrowLeft, X, ChevronLeft, ChevronRight } from "lucide-react"; +import { toast } from "sonner"; +import { useSaasMutation } from "@/hooks/use-tygarun"; +import Header from "@/components/Header"; +import Footer from "@/components/Footer"; + +const gallery = [ + { gradient: "from-blue-600/50 to-cyan-400/30", label: "Scenic coastline" }, + { gradient: "from-emerald-600/50 to-teal-400/30", label: "Lush landscapes" }, + { gradient: "from-amber-600/50 to-orange-400/30", label: "Cultural heritage" }, + { gradient: "from-purple-600/50 to-violet-400/30", label: "Local cuisine" }, +]; + +const highlights = [ + "Sacred temple visits with local guides", "Rice terrace trekking in Tegallalang", "Snorkeling in crystal-clear waters", + "Traditional Balinese cooking class", "Sunset at Tanah Lot Temple", "Spa and wellness retreat day", +]; + +const itinerary = [ + { day: "Day 1", title: "Arrival & Seminyak Beach", desc: "Arrive at Ngurah Rai Airport, private transfer to your luxury beachfront villa. Evening welcome dinner with traditional Balinese dance performance." }, + { day: "Day 2", title: "Ubud Cultural Exploration", desc: "Visit the Sacred Monkey Forest, explore Ubud Palace, walk through Tegallalang rice terraces, and enjoy a Balinese cooking class with a local family." }, + { day: "Day 3", title: "Temple Tour & Waterfalls", desc: "Discover the majestic Tirta Empul water temple, hike to Tegenungan waterfall, and experience a traditional purification ceremony." }, + { day: "Day 4", title: "Nusa Penida Island Adventure", desc: "Speed boat to Nusa Penida. Visit Kelingking Beach, snorkel with manta rays at Crystal Bay, and explore the stunning Angel Billabong natural pool." }, + { day: "Day 5", title: "Uluwatu & Farewell Dinner", desc: "Morning spa treatment, afternoon visit to Uluwatu Temple perched on dramatic sea cliffs. Farewell seafood dinner at Jimbaran Bay as the sun sets." }, +]; + +const reviews = [ + { name: "Emma Rodriguez", text: "The itinerary was perfectly balanced between adventure and relaxation. Our guide was incredibly knowledgeable about local customs and hidden gems.", rating: 5 }, + { name: "David Chen", text: "Exceeded every expectation. The Nusa Penida day trip was the highlight of our trip. Swimming with manta rays was absolutely unforgettable.", rating: 5 }, + { name: "Lisa Andersson", text: "Great value for the price. Hotels were beautiful, food was amazing, and the whole trip was seamlessly organized from start to finish.", rating: 4 }, +]; + +export default function DestinationDetailPage() { + const [lightbox, setLightbox] = useState(null); + const { mutate: createBooking, loading: booking } = useSaasMutation("scheduling", "/bookings"); + + const handleBook = async () => { + try { + await createBooking({ destination: "Bali", price: "\$899", type: "trip" }); + toast.success("Booking request submitted! Our team will contact you within 24 hours."); + } catch (err) { + toast.error("Could not submit booking. Please try again."); + } + }; + + return ( +
+
+ + {/* ── HERO ── */} +
+
+
+
+
+ + Indonesia +

Bali

+

Tropical paradise where ancient temples meet pristine beaches and vibrant culture.

+
+
+ + {/* ── GALLERY ── */} +
+
+
+ {gallery.map((g, i) => ( + + ))} +
+
+
+ + {/* Lightbox */} + {lightbox !== null && ( +
+ + +
+ {gallery[lightbox].label} +
+ +
+ )} + +
+
+
+ {/* ── OVERVIEW ── */} +
+

Overview

+

Bali captivates visitors with its lush rice terraces, sacred temples, world-class surfing, and warm Balinese hospitality. From the cultural heart of Ubud to the stunning cliffs of Uluwatu, every corner of this island offers something extraordinary. Whether you seek adventure, relaxation, or spiritual renewal, Bali delivers an unforgettable experience.

+

Highlights

+
+ {highlights.map((h, i) => ( +
+ + {h} +
+ ))} +
+
+ + {/* ── ITINERARY ── */} +
+

Sample Itinerary

+ + {itinerary.map((item, i) => ( + + + + {item.day} + {item.title} + + + {item.desc} + + ))} + +
+ + {/* ── REVIEWS ── */} +
+

Traveler Reviews

+
+ {reviews.map((r, i) => ( + + +
+ {[...Array(r.rating)].map((_, j) => )} +
+

{r.text}

+
{r.name}
+
+
+ ))} +
+
+
+ + {/* ── PRICING CARD ── */} +
+ + +
Starting from
+
\$899
+
per person
+

Package Includes

+
    + {["5 nights luxury accommodation", "Daily breakfast and 3 dinners", "All transfers and transportation", "Professional English-speaking guide", "All entrance fees and activities"].map((item, i) => ( +
  • + + {item} +
  • + ))} +
+ +

Free cancellation up to 48 hours

+
+
+
+
+
+ +
+ ); +} \ No newline at end of file