/** Children 3–12 (age on check-in): RM per child per night; under 3 free (see Booking Step 1). */
export const CHILD_STAY_RM_PER_NIGHT = 250

export const ROOM_TYPES = [
  { type: 'White House Triple', code: 'WHT', units: 14, maxPax: 3, rate: { weekday: 280, weekend: 320 } },
  { type: 'White House Seaview', code: 'WHS', units: 2, maxPax: 2, rate: { weekday: 380, weekend: 430 } },
  { type: 'Timber Triple', code: 'TBT', units: 3, maxPax: 3, rate: { weekday: 260, weekend: 300 } },
  { type: 'Timber Twin (2 single beds)', code: 'TBW', units: 4, maxPax: 3, rate: { weekday: 240, weekend: 280 } },
  { type: 'Timber King', code: 'TBK', units: 5, maxPax: 3, rate: { weekday: 300, weekend: 350 } },
  { type: 'Zenith Quad', code: 'ZNQ', units: 15, maxPax: 4, rate: { weekday: 360, weekend: 420 } },
]

/** Names must match `packages.Name` in the database (pricing API). */
export const PACKAGES_4D3N_ONLY = [
  'SSI Open Water Scuba Diver',
  'PADI Open Water Scuba Diver',
  'SSI EFR & React Right / EFR & Rescue Scuba Diver',
  'PADI EFR & React Right / EFR & Rescue Scuba Diver',
]

/** 3 days 2 nights — exactly 2 nights stay (`durations.Nights = 2`). */
export const PACKAGES_3D2N_ONLY = [
  'SSI Advanced Adventurer / Advanced Open Water Scuba Diver',
  'PADI Advanced Adventurer / Advanced Open Water Scuba Diver',
]

export const PACKAGES = {
  'Free & Easy': { desc: 'Room + Meals', includes: ['Room', 'Breakfast', 'Dinner'] },
  'Scuba Diving': { desc: 'Room + Meals + 3 Dives', includes: ['Room', 'Breakfast', 'Dinner', '3 Fun Dives', 'Boat Fee'] },
  'SSI Open Water Scuba Diver': {
    desc: 'Room + Meals + SSI Open Water Scuba Diver course',
    includes: ['Room', 'Breakfast', 'Dinner', 'SSI Open Water Scuba Diver Course'],
  },
  'PADI Open Water Scuba Diver': {
    desc: 'Room + Meals + PADI Open Water Scuba Diver course',
    includes: ['Room', 'Breakfast', 'Dinner', 'PADI Open Water Scuba Diver Course'],
  },
  'SSI EFR & React Right / EFR & Rescue Scuba Diver': {
    desc: 'Room + Meals + SSI EFR & React Right / EFR & Rescue Scuba Diver (4D3N)',
    includes: ['Room', 'Breakfast', 'Dinner', 'SSI EFR & React Right / EFR & Rescue Scuba Diver'],
  },
  'PADI EFR & React Right / EFR & Rescue Scuba Diver': {
    desc: 'Room + Meals + PADI EFR & React Right / EFR & Rescue Scuba Diver (4D3N)',
    includes: ['Room', 'Breakfast', 'Dinner', 'PADI EFR & React Right / EFR & Rescue Scuba Diver'],
  },
  'SSI Advanced Adventurer / Advanced Open Water Scuba Diver': {
    desc: 'Room + Meals + SSI Advanced Adventurer / Advanced Open Water (3D2N)',
    includes: ['Room', 'Breakfast', 'Dinner', 'SSI Advanced Adventurer / Advanced Open Water Scuba Diver'],
  },
  'PADI Advanced Adventurer / Advanced Open Water Scuba Diver': {
    desc: 'Room + Meals + PADI Advanced Adventurer / Advanced Open Water (3D2N)',
    includes: ['Room', 'Breakfast', 'Dinner', 'PADI Advanced Adventurer / Advanced Open Water Scuba Diver'],
  },
}

export const COURSES = [
  'SSI Open Water', 'SSI Advanced', 'PADI Open Water', 'PADI Advanced',
  'EFR & React Right', 'EFR & Rescue Scuba Diver', 'NITROX Course', 'SIDEMOUNT Course', 'FREEDIVER Course',
]

export const DEPTS = ['Sunset Bar', 'Housekeeping', 'Jetty', 'Kitchen', 'Maintenance', 'Boatman']

export const BAR_MENU = {
  Drinks: [
    { name: 'Tiger Beer', price: 15, emoji: '🍺' }, { name: 'Heineken', price: 16, emoji: '🍺' }, { name: 'Corona', price: 18, emoji: '🍺' },
    { name: 'Cocktail', price: 25, emoji: '🍹' }, { name: 'Mocktail', price: 12, emoji: '🥤' }, { name: 'Coconut Water', price: 8, emoji: '🥥' },
    { name: 'Mineral Water', price: 3, emoji: '💧' }, { name: 'Soft Drink', price: 5, emoji: '🥤' },
  ],
  Food: [
    { name: 'Fish & Chips', price: 22, emoji: '🐟' }, { name: 'Grilled Chicken', price: 25, emoji: '🍗' }, { name: 'Fried Rice', price: 15, emoji: '🍚' },
    { name: 'Pasta', price: 20, emoji: '🍝' }, { name: 'Caesar Salad', price: 18, emoji: '🥗' }, { name: 'Nachos', price: 16, emoji: '🌮' },
  ],
  Snacks: [
    { name: 'Fries', price: 10, emoji: '🍟' }, { name: 'Calamari', price: 18, emoji: '🦑' }, { name: 'Spring Rolls', price: 12, emoji: '🥟' },
  ],
}

export const BOOKING_STEPS = [
  { label: 'Stay Details & Pax' }, { label: 'Package' }, { label: 'Room' }, { label: 'Add-ons' },
  { label: 'Agent / Voucher & Fees' }, { label: 'Summary' }, { label: 'Payment' },
]

export const NAV_ITEMS = [
  { section: 'Main', items: [
    { id: 'dashboard', icon: '📊', label: 'Dashboard' },
    { id: 'booking', icon: '➕', label: 'New Booking' },
    { id: 'bookings-list', icon: '📋', label: 'All Bookings' },
    { id: 'rooms', icon: '🏠', label: 'Room Map' },
    { id: 'guests', icon: '👥', label: 'Guests' },
  ]},
  { section: 'Dive Centre', items: [
    { id: 'dive', icon: '🤿', label: 'Dive Schedule' },
    { id: 'equipment', icon: '🎽', label: 'Equipment' },
    { id: 'instructors', icon: '👨‍🏫', label: 'Instructors' },
  ]},
  { section: 'Operations', items: [
    { id: 'bar', icon: '🍹', label: 'Sunset Bar POS' },
    { id: 'transport', icon: '🚌', label: 'Transport' },
    { id: 'events', icon: '🎉', label: 'Events' },
    { id: 'wallet', icon: '💳', label: 'Guest Wallet' },
  ]},
  { section: 'Finance', items: [
    { id: 'agents', icon: '🤝', label: 'Agents' },
    { id: 'commission', icon: '💰', label: 'Commission' },
    { id: 'reports', icon: '📈', label: 'Reports' },
  ]},
]
