import {
  Sun,
  Star,
  Sunset,
  Sunrise,
  Car,
  Camera,
  UtensilsCrossed,
  Sparkles,
} from "lucide-react";
import type { DayItinerary } from "@/lib/types/packages";

export const cityItineraries: Record<string, DayItinerary[]> = {
  varanasi: [
    {
      day: 1,
      title: "Arrival & Ganga Darshan",
      image: "/placeholder.svg?height=120&width=200",
      destinations: ["Dashashwamedh Ghat", "Kashi Vishwanath Temple"],
      activities: [
        {
          time: "02:00 PM",
          icon: <Sun className="h-4 w-4" />,
          title: "Arrival & Check-in",
        },
        {
          time: "05:00 PM",
          icon: <Star className="h-4 w-4" />,
          title: "Kashi Vishwanath Darshan",
        },
        {
          time: "07:00 PM",
          icon: <Sunset className="h-4 w-4" />,
          title: "Ganga Aarti",
        },
      ],
    },
    {
      day: 2,
      title: "Temple Circuit & Heritage",
      image: "/placeholder.svg?height=120&width=200",
      destinations: ["Sankat Mochan", "Durga Temple", "Tulsi Manas Temple"],
      activities: [
        {
          time: "05:00 AM",
          icon: <Sunrise className="h-4 w-4" />,
          title: "Boat Ride on Ganga",
        },
        {
          time: "09:00 AM",
          icon: <Star className="h-4 w-4" />,
          title: "Temple Visits",
        },
        {
          time: "04:00 PM",
          icon: <Camera className="h-4 w-4" />,
          title: "Heritage Walk",
        },
      ],
    },
    {
      day: 3,
      title: "Sarnath Excursion",
      image: "/placeholder.svg?height=120&width=200",
      destinations: ["Dhamek Stupa", "Sarnath Museum", "Ashoka Pillar"],
      activities: [
        {
          time: "08:00 AM",
          icon: <Car className="h-4 w-4" />,
          title: "Drive to Sarnath",
        },
        {
          time: "10:00 AM",
          icon: <Camera className="h-4 w-4" />,
          title: "Stupa & Museum Visit",
        },
        {
          time: "03:00 PM",
          icon: <Sun className="h-4 w-4" />,
          title: "Return & Leisure",
        },
      ],
    },
    {
      day: 4,
      title: "Departure Day",
      image: "/placeholder.svg?height=120&width=200",
      destinations: ["Final Darshan", "Local Shopping"],
      activities: [
        {
          time: "05:00 AM",
          icon: <Sunrise className="h-4 w-4" />,
          title: "Subah-e-Banaras",
        },
        {
          time: "09:00 AM",
          icon: <UtensilsCrossed className="h-4 w-4" />,
          title: "Breakfast",
        },
        {
          time: "12:00 PM",
          icon: <Car className="h-4 w-4" />,
          title: "Departure",
        },
      ],
    },
  ],
  ayodhya: [
    {
      day: 1,
      title: "Ram Janmabhoomi Darshan",
      image: "/placeholder.svg?height=120&width=200",
      destinations: ["Ram Janmabhoomi", "Hanuman Garhi"],
      activities: [
        {
          time: "12:00 PM",
          icon: <Sun className="h-4 w-4" />,
          title: "Arrival",
        },
        {
          time: "04:00 PM",
          icon: <Star className="h-4 w-4" />,
          title: "Ram Mandir Darshan",
        },
        {
          time: "07:00 PM",
          icon: <Sunset className="h-4 w-4" />,
          title: "Saryu Aarti",
        },
      ],
    },
    {
      day: 2,
      title: "Temple Circuit",
      image: "/placeholder.svg?height=120&width=200",
      destinations: ["Kanak Bhawan", "Nageshwarnath Temple", "Treta Ke Thakur"],
      activities: [
        {
          time: "06:00 AM",
          icon: <Sunrise className="h-4 w-4" />,
          title: "Morning Aarti",
        },
        {
          time: "09:00 AM",
          icon: <Star className="h-4 w-4" />,
          title: "Temple Visits",
        },
        {
          time: "05:00 PM",
          icon: <Camera className="h-4 w-4" />,
          title: "Saryu Ghat Walk",
        },
      ],
    },
    {
      day: 3,
      title: "Heritage & Departure",
      image: "/placeholder.svg?height=120&width=200",
      destinations: ["Ram Ki Paidi", "Local Markets"],
      activities: [
        {
          time: "05:00 AM",
          icon: <Sunrise className="h-4 w-4" />,
          title: "Final Darshan",
        },
        {
          time: "10:00 AM",
          icon: <Sun className="h-4 w-4" />,
          title: "Shopping",
        },
        {
          time: "12:00 PM",
          icon: <Car className="h-4 w-4" />,
          title: "Departure",
        },
      ],
    },
    {
      day: 4,
      title: "Extended Exploration",
      image: "/placeholder.svg?height=120&width=200",
      destinations: ["Nearby Temples", "Cultural Sites"],
      activities: [
        {
          time: "07:00 AM",
          icon: <Sunrise className="h-4 w-4" />,
          title: "Morning Rituals",
        },
        {
          time: "10:00 AM",
          icon: <Sparkles className="h-4 w-4" />,
          title: "Exploration",
        },
        {
          time: "02:00 PM",
          icon: <Car className="h-4 w-4" />,
          title: "Departure",
        },
      ],
    },
  ],
};

export const defaultItinerary: DayItinerary[] = [
  {
    day: 1,
    title: "Arrival & City Tour",
    image: "/placeholder.svg?height=120&width=200",
    destinations: ["Main Temple", "City Center"],
    activities: [
      {
        time: "12:00 PM",
        icon: <Sun className="h-4 w-4" />,
        title: "Arrival & Check-in",
      },
      {
        time: "04:00 PM",
        icon: <Star className="h-4 w-4" />,
        title: "Temple Darshan",
      },
      {
        time: "07:00 PM",
        icon: <Sunset className="h-4 w-4" />,
        title: "Evening Aarti",
      },
    ],
  },
  {
    day: 2,
    title: "Temple Circuit",
    image: "/placeholder.svg?height=120&width=200",
    destinations: ["Sacred Sites", "Heritage Locations"],
    activities: [
      {
        time: "06:00 AM",
        icon: <Sunrise className="h-4 w-4" />,
        title: "Morning Darshan",
      },
      {
        time: "10:00 AM",
        icon: <Camera className="h-4 w-4" />,
        title: "Heritage Walk",
      },
      {
        time: "05:00 PM",
        icon: <Star className="h-4 w-4" />,
        title: "Evening Prayers",
      },
    ],
  },
  {
    day: 3,
    title: "Exploration Day",
    image: "/placeholder.svg?height=120&width=200",
    destinations: ["Local Attractions", "Cultural Sites"],
    activities: [
      {
        time: "08:00 AM",
        icon: <Sun className="h-4 w-4" />,
        title: "Breakfast & Start",
      },
      {
        time: "10:00 AM",
        icon: <Sparkles className="h-4 w-4" />,
        title: "Sightseeing",
      },
      {
        time: "04:00 PM",
        icon: <UtensilsCrossed className="h-4 w-4" />,
        title: "Leisure Time",
      },
    ],
  },
  {
    day: 4,
    title: "Departure Day",
    image: "/placeholder.svg?height=120&width=200",
    destinations: ["Final Darshan", "Departure"],
    activities: [
      {
        time: "06:00 AM",
        icon: <Sunrise className="h-4 w-4" />,
        title: "Morning Prayer",
      },
      {
        time: "09:00 AM",
        icon: <UtensilsCrossed className="h-4 w-4" />,
        title: "Breakfast",
      },
      {
        time: "12:00 PM",
        icon: <Car className="h-4 w-4" />,
        title: "Departure",
      },
    ],
  },
];

export const getItineraryByCity = (cityId: string): DayItinerary[] => {
  return cityItineraries[cityId] || defaultItinerary;
};

export const getItineraryForDays = (
  cityId: string,
  days: number
): DayItinerary[] => {
  const itinerary = getItineraryByCity(cityId);
  return itinerary.slice(0, days);
};
