/**
 * Hospitality page data layer.
 *
 * Same pattern as homepage & safl: bundled defaults with
 * Strapi merge-over-defaults when enabled.
 */

import { fetchSingle, getMediaUrl } from "@/lib/strapi/client"
import { isStrapiEnabled } from "@/lib/strapi/config"
import { titleCase } from "@/lib/api/casing"
import { normalizeCmsLink } from "@/lib/api/links"
import type {
  HospitalityData,
  HospitalityHeroSlideData,
  HospitalityResortData,
  HospitalityRestaurantData,
  HospitalityImpactStatData,
  HospitalityCountryData,
  StrapiMedia,
} from "@/lib/strapi/types"

/* ------------------------------------------------------------------ */
/*  Internal defaults shape                                            */
/*  The bundled fallback keeps countries (name + image) and their      */
/*  resort/restaurant groups separate for easy authoring; they are     */
/*  merged into the public HospitalityData shape in getHospitalityData.*/
/* ------------------------------------------------------------------ */

type HospitalityDefaults = Omit<HospitalityData, "globalPresence"> & {
  globalPresence: {
    badge: string
    badgeIcon: string
    ctaLabel: string
    ctaHref?: string
    countries: { name: string; image: string }[]
    countryResorts: {
      countryName: string
      resorts: HospitalityResortData[]
      restaurants?: HospitalityRestaurantData[]
    }[]
  }
}

/* ------------------------------------------------------------------ */
/*  Bundled defaults (current hardcoded content)                      */
/* ------------------------------------------------------------------ */

export const hospitalityDefaults: HospitalityDefaults = {
  hero: {
    slides: [
      {
        image: "/assets/hospitality/HERO SECTION/MGM Beach resort-Chennai-Indiajpeg.jpeg",
        title: "MGM Beach Resort",
        subtitle: "Stunning aerial views of our beachfront property",
      },
      {
        image: "/assets/hospitality/HERO SECTION/MGM Whispering Winds-Yelagiri-India.jpg",
        title: "MGM Whispering Winds",
        subtitle: "Nestled in the serene hills of Yelagiri",
      },
      {
        image: "/assets/hospitality/HERO SECTION/Grand Muthu Runaway Bay Club Caribbean-Salem-Jamaica.jpg",
        title: "Grand Muthu Runaway Bay Club",
        subtitle: "Caribbean luxury in Salem, Jamaica",
      },
      {
        image: "/assets/hospitality/HERO SECTION/Gran Muthu Habana-Havana-Cuba.jpg",
        title: "Gran Muthu Habana",
        subtitle: "Elegant hospitality in Havana, Cuba",
      },
      {
        image: "/assets/hospitality/HERO SECTION/Grand Muthu Golf Plaza Hotel & Spa-Santa Cruz de Tenerife -Spain.jpg",
        title: "Grand Muthu Golf Plaza Hotel & Spa",
        subtitle: "World-class luxury in Santa Cruz de Tenerife, Spain",
      },
      {
        image: "/assets/home/Gellary/Muthu Clubé Praia Da Oura-Albufeira-Portugal.jpg",
        title: "Muthu Clubé Praia Da Oura",
        subtitle: "A lively beach club resort steps from Praia da Oura, Albufeira, Portugal",
      },
    ],
  },
  about: {
    badge: "About MGM Hotels & Resorts",
    badgeIcon: "/assets/leaders/sparkle-icon.svg",
    watermarkText: "Hotels And Resorts",
    decorativeImage: "/assets/hospitality/decorative-flower.svg",
    paragraphs: [
      "The MGM Group of Companies has earned a trusted position in the hospitality industry through its premium brand, MGM Hotels and Resorts, where comfort, elegance, and heartfelt service come together to create memorable stays. Since opening its first hotel in 1991, the group has steadily expanded across South India, establishing distinctive properties along the Coromandel Coast and in key destinations like  Bengaluru, the Silicon Valley of India.",
      "With over 250 rooms across its premium properties in India, each hotel is thoughtfully designed to reflect the essence of its location while offering modern comforts and genuine hospitality. From beachfront resorts with stunning ocean views to business hotels in vibrant cities and signature retreats rooted in local culture, MGM Hotels and Resorts caters to families, leisure travellers, professionals, and international guests alike.",
      "Extending its legacy beyond India, the group operates internationally as MG Muthu Hotels, with a growing presence in Spain, Portugal, Cuba, Kenya, the United Kingdom, and France. The brand now encompasses over 50 hotels and more than 8,000 rooms worldwide, delivering exceptional hospitality experiences across diverse and scenic destinations.",
      "With a strong focus on guest satisfaction, sustainability, and meaningful travel experiences, MGM Hotels and Resorts continues to redefine hospitality. The brand remains committed to balancing comfort, culture, and care, ensuring every guest leaves with lasting memories. Its expanding global footprint reflects its vision of becoming a trusted symbol of warmth, quality, and world-class hospitality.",
    ],
  },
  globalPresence: {
    badge: "Our Global Presence",
    badgeIcon: "/assets/leaders/sparkle-icon.svg",
    ctaLabel: "Inquire here",
    ctaHref: "#global-presence",
    countries: [
      { name: "India", image: "/assets/flags/india-map.png" },
      { name: "Spain", image: "/assets/hospitality/map-spain.png" },
      { name: "France", image: "/assets/hospitality/map-france.png" },
      { name: "Cuba", image: "/assets/hospitality/map-cuba.png" },
      { name: "England", image: "/assets/flags/England.webp" },
      { name: "Jamaica", image: "/assets/flags/Jamaica.png" },
      { name: "Kenya", image: "/assets/flags/Kenya.svg" },
      { name: "Portugal", image: "/assets/flags/Portugal.svg" },
      { name: "Scotland", image: "/assets/flags/scotland.png" },
      { name: "Tanzania", image: "/assets/flags/Tanzania.png" },
    ],
    countryResorts: [
      {
        countryName: "India",
        restaurants: [
          {
            name: "Song of the Sea",
            location: "MGM Beach Resort, Muttukadu, ECR",
            description: "Located within MGM Beach Resort in Muttukadu, ECR, Song of the Sea is a buffet-style, multi-cuisine restaurant offering a scenic sea-view dining experience. Guests can enjoy a wide variety of dishes while taking in the ocean breeze and lively entertainment, making every meal truly memorable.",
            image: "/uploads/Song_of_the_Sea_a0b64888d7.jpg",
          },
          {
            name: "Sea Crest - Southern Sojourn",
            location: "MGM Beach Resort, Muttukadu, ECR",
            description: "Situated within the premises of MGM Beach Resort, Sea Crest offers the perfect dining experience by the beach. Known for its authentic South Indian flavours, the restaurant features a diverse menu that showcases South Indian, Kerala, Andhra, Seafood, and Chettinad cuisines.",
            image: "/uploads/Sea_crest_dfeff97a0d.jpg",
          },
          {
            name: "MEGA BITE",
            location: "MGM Mark Whitefield, Bengaluru",
            description: "Celebrate a burst of flavours at Mega Bite, the multi-cuisine restaurant at MGM Mark Whitefield - Bengaluru, perfectly suited for corporate guests. The restaurant offers a wide range of dishes and also provides outdoor catering services along with corporate packed lunches.",
            image: "/uploads/Mark_whitefield_b32aee5221.webp",
          },
          {
            name: "The Checkered Bar",
            location: "MGM Mark Whitefield, Bengaluru",
            description: "One of the best bars in Whitefield, The Checkered Bar offers a range of alcoholic beverages. You can pick your desired choice from the a la carte menu and spend a good time recharging yourself.",
            image: "/uploads/The_checkerd_bar_7428570d24.webp",
          },
          {
            name: "Virundu",
            location: "MGM Whispering Winds & MGM Vailankanni Residency",
            description: "Found at both MGM Whispering Winds and MGM Vailankanni Residency, this multi-cuisine restaurant offers an exceptional dining experience with a diverse menu featuring global flavours. It promises to satisfy every palate, making it the perfect place to enjoy a delicious and memorable meal.",
            image: "/uploads/Virundu_c39e293a8f.webp",
          },
          {
            name: "Shree Virundu Veg Restaurant",
            location: "MGM Whispering Meadows, Yelagiri",
            description: "Shree Virundu is the vegetarian restaurant attached to MGM Whispering Meadows, Yelagiri. It specializes in authentic South Indian cuisine and is known as one of the best vegetarian restaurants in Yelagiri, offering fresh, flavourful dishes in a pleasant dining atmosphere.",
            image: "/uploads/Virundu_yelagiri_bb6ab18ca8.webp",
          },
          {
            name: "EZR Pizzeria",
            location: "MGM Beach Resort, Muttukadu, ECR",
            description: "EZR Pizzeria is the pizza restaurant located in MGM Beach Resort. It offers a delightful sea-view dining experience, where guests can enjoy freshly made pizzas while taking in the scenic beauty and soothing sound of the waves.",
            image: "/uploads/EZR_Pizzeria_714f8c68fb.webp",
          },
          {
            name: "Barra da Paz",
            location: "MGM Vailankanni Residency",
            description: "Barra Da Paz at MGM Vailankanni Residency is a premium bar offering signature cocktails, refreshing mocktails, and a warm, elegant ambience. Inspired by Velankanni's calm coastal charm, it's the perfect place to relax and unwind.",
            image: "/uploads/Barra_da_paz_226bc6e9fe.webp",
          },
        ],
        resorts: [
          {
            name: "MGM Beach Resorts in Muttukadu",
            location: "ECR, Chennai",
            description: "serene beachfront retreat located along the scenic East Coast Road (ECR) in Chennai. Surrounded by lush greenery and the Bay of Bengal, it offers a peaceful and refresing stay experience. Guests can enjoy well-appointed rooms, a clean swimming pool, and a variety of dining options at Sea Crest – Southern Sojourn, Song of the Sea, and EZR Pizzeria.",
            image: "/assets/indiahotelimage/MGM Beach Resorts-Chennai-India.webp",
            url: "https://www.mgm-hotels.com/mgm-beach-resort-muthukadu-chennai/",
          },
          {
            name: "MGM Mark Whiteﬁeld",
            location: "Bangalore",
            description: "Located in Bengaluru’s vibrant Whitefield, MGM Mark Whitefield is a perfect stay option for corporate guests and business travellers. The hotel features 76 comfortable rooms, a multi-cuisine restaurant, Mega Bite, and The Checkered Bar for a relaxed evening experience. With a grand banquet hall and well-equipped boardrooms, it’s ideal for meetings, conferences, and events.",
            image: "/assets/indiahotelimage/MGM Mark Whitefield-Bangalore-India.webp",
            url: "https://www.mgm-hotels.com/mgm-mark-whitefield-bangalore/",
          },
          {
            name: "MGM Vailankanni Residency",
            location: "Velankanni",
            description: "Set in the heart of Vailankanni, near the famous Basilica of Our Lady of Good Health, MGM Vailankanni Residency offers a peaceful and comfortable stay in a serene pilgrim destination. The resort features elegant rooms, villas, and suites, along with a multi-cuisine restaurant Virundu and the lively Barra da Paz. Guests can relax by the pool, enjoy indoor and outdoor activities, or host gatherings in the spacious lawns. Ideal for pilgrims, families, and leisure travellers.",
            image: "/assets/indiahotelimage/MGM Vailankanni-Velankanni-India.webp",
            url: "https://www.mgm-hotels.com/vailankanni-residency/",
          },
          {
            name: "MGM Whispering Winds",
            location: "Yelagiri",
            description: "Nestled in the serene hills of Yelagiri, MGM Whispering Wind’s offers a perfect escape surrounded by nature’s beauty. The resort features elegant cottages, a relaxing spa, swimming pool, and a multi-cuisine restaurant. Guests can enjoy indoor and outdoor games, a kids’ play area, and in-room dining. Spacious banquet halls and lush lawns make it ideal for weddings and events.",
            image: "/assets/indiahotelimage/MGM Wispering winds-Yelagiri-India.webp",
            url: "https://www.mgm-hotels.com/mgm-whispering-winds-yelagiri/",
          },
          {
            name: "MGM Whispering Meadows",
            location: "Yelagiri",
            description: "a perfect blend of comfort and natural charm. The resort features well-appointed rooms, elegant banquet spaces, and a pure vegetarian dining experience, Shree Virundu Veg Restaurant, serving delightful cuisine. Guests can enjoy a range of leisure activities, including indoor and outdoor games, in-room dining, and family-friendly experiences. Ideal for vacations, corporate stays, and events.",
            image: "/assets/indiahotelimage/MGM whispering meadows-Yelagiri-India.webp",
            url: "https://www.mgm-hotels.com/mgm-whispering-meadows-yelagiri/",
          },
          {
            name: "MGM Whispering Nest",
            location: "Yelagiri",
            description: "a serene boutique-style stay in the heart of Yelagiri, surrounded by lush greenery and mountain views. Guests can choose from spacious villas with private terraces, modern amenities, and elegant interiors. The resort provides access to fun activities, indoor and outdoor games, and nearby attractions. Perfect for families, couples, and nature lovers .",
            image: "/assets/indiahotelimage/MGM Wispering Nest-Yelagiri-India.webp",
            url: "https://www.mgm-hotels.com/whispering-nest-yelagiri/",
          },
        ],
      },
      {
        countryName: "Portugal",
        resorts: [
          {
            name: "Muthu Clube Praia da Oura",
            location: "Albufeira",
            description: "Muthu Clube Praia da Oura located along the beautiful Algarve coast in Albufeira, offers a relaxing beachfront stay with stunning ocean views and easy access to Praia da Oura beach. The resort features comfortable accommodations, multiple dining options, swimming pools, and modern amenities for a pleasant holiday experience. Ideal for families, couples, and leisure travellers, it provides the perfect blend of comfort, entertainment, and seaside relaxation in Portugal.",
            image: "/assets/Portugal/Muthu Clube Praia Da Oura-Albufeira-Portugal.webp",
            url: "",
          },
          {
            name: "Muthu Oura Praia Hotel",
            location: "Albufeira",
            description: "Muthu Oura Praia Hotel is a modern 4-star hotel located in the lively heart of Albufeira, close to beaches, shopping areas, and popular entertainment spots. Offering spacious accommodations, modern amenities, an outdoor pool, fitness facilities, and access to sister resort services, the hotel is an ideal choice for families, couples, and leisure travellers seeking a comfortable Algarve holiday experience. With warm hospitality and a vibrant atmosphere, the hotel ensures a relaxing and memorable stay in Portugal’s scenic coastal destination.",
            image: "/assets/Portugal/Muthu Oura Praia Hotel-Albufeira-Portugal.webp",
            url: "",
          },
          {
            name: "Muthu Balaia Sol",
            location: "Albufeira",
            description: "Muthu Balaia Sol surrounded by lush greenery and traditional Portuguese charm in Albufeira, offers a relaxing and comfortable stay close to beaches, golf courses, nightlife, and the historic city centre. The hotel features spacious fully-equipped apartments with modern amenities, making it an ideal choice for families, couples, and leisure travellers seeking a peaceful Algarve getaway.",
            image: "/assets/Portugal/Muthu Balai Sol-Albufeira-Portugal.webp",
            url: "",
          },
          {
            name: "Grand Muthu Oura View Beach Club",
            location: "Albufeira",
            description: "Grand Muthu Oura View Beach Club Hotel located along the shores of Oura Beach in Albufeira, offers a luxurious beachfront stay with stunning Atlantic Ocean views and modern comforts. The resort features spacious accommodations, multiple dining experiences, swimming pools, a spa, fitness facilities, and direct beach access for a relaxing holiday experience. Guests can also enjoy speciality restaurants, bars, recreational activities, and nearby golf courses, making it an ideal destination for families, couples, and leisure travellers on Portugal’s Algarve coast.",
            image: "/assets/Portugal/Grand Muthu Oura View Beach Club-Albufeira-Portugal.webp",
            url: "",
          },
          {
            name: "Grand Muthu Forte do Vale",
            location: "Albufeira",
            description: "Grand Muthu Forte do Vale set close to Albufeira’s beautiful beaches and the historic Old Town, offers a luxurious 5-star stay with modern comfort and leisure experiences. The resort features spacious accommodations, an outdoor swimming pool, health club, beauty salon, shops, and a range of recreational facilities for guests of all ages. With easy access to restaurants, bars, and shopping areas, Grand Muthu Forte do Vale is an ideal destination for families, couples, and leisure travellers seeking a relaxing and enjoyable holiday in Algarve.",
            image: "/assets/Portugal/Grand Muthu Forte do Vale-Albufeira-Portugal.webp",
            url: "",
          },
          {
            name: "Grand Muthu Forte da Oura",
            location: "Albufeira",
            description: "Grand Muthu Forte Da Oura situated in the vibrant tourist centre of Albufeira and just steps from Oura Beach, offers a relaxing 5-star holiday experience by the Algarve coast. The hotel features spacious accommodations, multiple dining experiences, recreational activities, and modern amenities designed for comfort and leisure. Guests can enjoy access to speciality restaurants, buffet dining, coffee shops, bars, and entertainment options across nearby MGM Muthu Hotels. Ideal for families, couples, and holiday travellers, Grand Muthu Forte Da Oura combines comfort, hospitality, and seaside charm for a memorable Algarve getaway.",
            image: "/assets/Portugal/Grand Muthu Forte Da Oura-Albufeira-Portugal.webp",
            url: "",
          },
          {
            name: "Monicca Collection Suites & Residences",
            location: "Albufeira",
            description: "Monicca Collection Suites & Residences situated in the vibrant coastal town of Albufeira, offers a stylish and comfortable stay experience with modern suites and serviced residences designed for relaxation and convenience. Featuring contemporary accommodations, premium amenities, swimming pools, dining options, and easy access to beaches, shopping, and entertainment areas, the property is ideal for families, couples, and leisure travellers seeking a refreshing Algarve getaway.",
            image: "/assets/Portugal/Monicca Collection Suites & Residences-Albufeira-Portugal.webp",
            url: "",
          },
          {
            name: "Monicca Collection Oura View Suites",
            location: "Albufeira",
            description: "Monicca Collection Oura View Suites situated along the scenic Algarve coast, offers elegant suites with stunning views of the Atlantic Ocean and the resort’s swimming pool. Guests can enjoy stylish accommodations, premium amenities, dining experiences, wellness facilities, and access to the extensive leisure services of Grand Muthu Oura View Beach Club. With swimming pools, spa facilities, restaurants, bars, and nearby beach activities, the property is ideal for families, couples, and leisure travellers seeking a relaxing and luxurious stay in Albufeira.",
            image: "/assets/Portugal/Monicca Collection Oura View Suites-Albufeira-Portugal.webp",
            url: "",
          },
          {
            name: "Muthu Raga Madeira Hotel",
            location: "Madeira",
            description: "Muthu Raga Madeira Hotel situated on the beautiful island of Madeira, offers stunning views of the Atlantic Ocean and surrounding mountains for a relaxing island getaway. The hotel features comfortable rooms with modern amenities, a restaurant serving local and international cuisine, a bar, and wellness facilities for a pleasant stay experience. Located near the popular Lido swimming pools, shops, cafés, and attractions, Muthu Raga Madeira Hotel is ideal for business and leisure travellers seeking comfort, convenience, and the natural beauty of Madeira.",
            image: "/assets/Portugal/Muthu Raga Madeira-Madeira-Portugal.webp",
            url: "",
          },
          {
            name: "Sunrise Beach Villa",
            location: "Albufeira by Delilah Collection Luxury Stays",
            description: "Sunrise Beach Villa situated near Albufeira’s golden coastline, offers a comfortable and stylish stay with contemporary villas and modern studios designed for families, groups, couples, and solo travellers. Featuring fully equipped kitchens, spacious living areas, modern amenities, and a relaxing atmosphere, the property provides the perfect blend of privacy and convenience. With beaches, restaurants, and nightlife just minutes away, Sunrise Beach Villa delivers a peaceful Algarve getaway with the comforts of home.",
            image: "/assets/Portugal/Sunrise beach Villa - Delilah Collection Luxury Stays-Albufeira, Portugal.webp",
            url: "",
          },
          {
            name: "Sunflower Apartments by Delilah Collection",
            location: "Portugal",
            description: "Sunflower Apartments by Delilah Collection offers 15 comfortable one-bedroom apartments designed for families and leisure travellers seeking a relaxing stay in Albufeira. Each apartment features a fully equipped kitchen, private bathroom, balcony, and modern amenities, with select units offering beautiful sea or city views. Guests can unwind on exclusive sundecks overlooking the coastline and enjoy a peaceful stay experience with convenient services and easy access to nearby attractions.",
            image: "/assets/Portugal/Sunflower Villa - Delilah Collection Luxury Stays-Albufeira-Portugal.webp",
            url: "",
          },
          {
            name: "Villa Simoes",
            location: "Albufeira by Delilah Collection Luxury Stays",
            description: "Villa Simoes nestled in the heart of Albufeira, offers a peaceful stay experience with tastefully designed two-bedroom apartments inspired by authentic Portuguese charm. Featuring spacious living areas, modern amenities, and beautiful sea views, the property is ideal for families, couples, and groups seeking comfort and relaxation. With convenient parking and the flexibility to book individual apartments or the entire villa, Villa Simoes provides a comfortable coastal getaway in one of Algarve’s most popular destinations.",
            image: "/assets/Portugal/Villa Simoes - Delilah Collection Luxury Stays-Albufeira-Portugal.webp",
            url: "",
          },
          {
            name: "Villa das Buganvilias",
            location: "Albufeira by Delilah Collection Luxury Stays",
            description: "Villa das Buganvilias tucked away in a peaceful location in Albufeira, offers a comfortable and private stay experience ideal for families and long holiday retreats. The villa features four spacious bedrooms, a fully equipped kitchen, modern amenities, and a large outdoor patio perfect for dining and relaxation. With easy access to beaches, shopping areas, and local attractions, Villa das Buganvilias provides a relaxing Algarve getaway with the comforts of home.",
            image: "/assets/Portugal/Villa das Buganvilias - Delilah Collection Luxury Stays-Albufeira-Portugal.webp",
            url: "",
          },
        ],
      },
      {
        countryName: "Spain",
        resorts: [
          {
            name: "Grand Muthu Golf Plaza Hotel & Spa",
            location: "Tenerife",
            description: "Grand Muthu Golf Plaza Hotel & Spa is a 5-star retreat in Tenerife’s Golf Sur, offering scenic sea views and a pleasant year-round climate. Located near Amarilla Golf and Golf del Sur, and close to San Miguel harbour, it’s ideal for a relaxed getaway. The hotel features spacious studios and apartments with balconies, outdoor pools, a spa, dining options, and a bar for a comfortable stay.",
            image: "/assets/spain/Grand Muthu Golf Plaza Hotel & Spa-Santa Cruz de Tenerife-Spain.webp",
            url: "",
          },
          {
            name: "Muthu La Perla Tenerife",
            location: "Spain",
            description: "Muthu La Perla Tenerife is located in the heart of Puerto de la Cruz, offering a peaceful island retreat with easy access to local attractions. Close to Jardín, Martiánez, and Muelle beaches, guests can experience the unique volcanic black sand coastline. With comfortable rooms, modern facilities, and attentive service, it serves as a convenient base for travellers looking to explore the vibrant charm of Tenerife.",
            image: "/assets/spain/Muthu La Perla Tenerife Hotel-Santa Cruz de Tenerife-Spain.webp",
            url: "",
          },
          {
            name: "Muthu Royal Park Albatros",
            location: "Tenerife",
            description: "Muthu Royal Park Albatros is a charming resort in South Tenerife, located just 100 metres from the ocean and set beside 27 holes of championship golf with a scenic mountain backdrop. Nestled in a peaceful residential area, it offers self-catering apartments arranged around a large outdoor pool with a cascading waterfall and tropical gardens. A great choice for golf lovers, families, and couples seeking a relaxed stay.",
            image: "/assets/spain/Muthu Royal Park Albatros-Santa Cruz de Tenerife-Spain.webp",
            url: "",
          },
          {
            name: "Muthu Infiniti Beach Resort",
            location: "Almeria",
            description: "Muthu Infiniti Beach Resort is a village-style getaway located just 200 metres from Playazo de Vera Beach. The resort offers bright, air-conditioned apartments with modern kitchens, overlooking two large outdoor pools or landscaped gardens. Guests can enjoy access to nearby golf courses, including Marina Golf Mojacar, along with attractions like Garrucha fishing port and Mini Hollywood Theme Park. Ideal for families and leisure travellers, it ensures a relaxed coastal stay.",
            image: "/assets/spain/Muthu Infiniti Beach Resort-Almeria-Spain.webp",
            url: "",
          },
        ],
      },
      {
        countryName: "England",
        resorts: [
          {
            name: "Muthu Belstead Brook Hotel",
            location: "Ipswich",
            description: "Muthu Belstead Brook Hotel is set in suburban Ipswich, built around a historic 16th-century hunting lodge with expansive landscaped gardens. Just a short drive from the town centre, it offers traditionally styled non-smoking rooms with modern comforts. Guests can enjoy a leisure club featuring an indoor pool, sauna, steam room, gym, and spa treatments. The Manor Restaurant serves locally inspired cuisine, making it a relaxing stay with easy access to Suffolk’s countryside and London links.",
            image: "/assets/England/Muthu Belstead Brook Hotel-Ipswich-England.webp",
            url: "",
          },
          {
            name: "Muthu Clumber Park Hotel & Spa",
            location: "Nottinghamshire",
            description: "Muthu Clumber Park Hotel & Spa is set in the scenic Nottinghamshire countryside, close to Clumber Park and Sherwood Forest, with easy access to the A1 and M1. Surrounded by nature, it offers a peaceful retreat with spacious rooms, a spa, indoor pool, and gym. Ideal for leisure and business stays, the hotel also features conference facilities and wedding services. Selected rooms are pet-friendly for small and medium-sized dogs.",
            image: "/assets/England/Muthu Clumber Park-Nottinghamshire-England.webp",
            url: "",
          },
          {
            name: "Muthu Westcliff Hotel",
            location: "(Near London Southend Airport)",
            description: "Muthu Westcliff Hotel, built in 1891, overlooks the Thames Estuary and Cliff Gardens in Southend-on-Sea. Centrally located near key attractions, it offers 55 rooms including suites with sea views and Jacuzzi options. Ideal for weddings, events, and business stays, the hotel features banqueting spaces for up to 225 guests and versatile meeting rooms. With easy access to theatres, casinos, and London transport links, it ensures a convenient seaside stay.",
            image: "/assets/England/Muthu Westcliff Hotel-Westcliff-on-Sea-England.webp",
            url: "",
          },
        ],
      },
      {
        countryName: "Scotland",
        resorts: [
          {
            name: "Muthu Glasgow River Hotel",
            location: "Scotland",
            description: "Muthu Glasgow River Hotel is a recently refurbished riverside property set along the banks of the River Clyde near Glasgow. Located in Erskine, it offers convenient access to Glasgow Airport and the city’s key attractions. Guests can unwind in comfortable rooms with scenic river views, and enjoy dining at the on-site restaurant and bar, featuring modern amenities and event spaces. A practical base for both leisure and business stays.",
            image: "/assets/Scotland/Muthu Glasgow River Hotel-Glasgow-Scotland.webp",
            url: "",
          },
          {
            name: "Muthu Queens Hotel",
            location: "Oban",
            description: "Muthu Queens Hotel is a landmark 4-star property in Oban, offering stunning views over the bay. Set in a historic Category B listed building with distinctive Victorian architecture, it blends heritage charm with modern comforts. Located on the Esplanade, it provides easy access to local attractions, the town centre, and the ferry port. Ideal for leisure travellers, it serves as a perfect base to explore Oban and Scotland’s scenic west coast.",
            image: "/assets/Scotland/Muthu Queens Hotel-Oban-Scotland.webp",
            url: "",
          },
          {
            name: "Muthu Oban Regent Hotel",
            location: "Scotland",
            description: "Muthu Oban Regent Hotel is a newly refurbished property showcasing elegant 1930s Art Deco design in the heart of Oban. Located at the head of the north pier, it offers easy access to shops, ferry terminals, and island cruises. Guests can relax in stylish rooms and suites with views of Oban Bay, and enjoy global cuisine at the Saltburn Restaurant. A convenient choice for exploring the town and its surroundings.",
            image: "/assets/Scotland/Muthu Oban Regent Hotel-Oban-Scotland.webp",
            url: "",
          },
          {
            name: "Muthu Alexandra Hotel",
            location: "Oban",
            description: "Alexandra Hotel is a charming Victorian property set in one of Oban’s finest locations, offering sweeping views of Oban Bay and the Inner Hebrides. Ideally positioned near the town centre, it provides easy access to local attractions and scenic coastal walks to Ganavan Beach. The hotel features renovated interiors that retain original character, with glass-fronted spaces to enjoy the views. Guests can also spot sunsets, seabirds, and seals, making it a memorable coastal stay.",
            image: "/assets/Scotland/Muthu Alexandra Hotel-Oban-Scotland.webp",
            url: "",
          },
          {
            name: "Muthu Newton Hotel",
            location: "Nairn (Near Inverness Airport)",
            description: "Muthu Newton Hotel is set within 21 acres of landscaped gardens near Inverness, offering views of the Moray Firth and Black Isle. Located beside Nairn Golf Course, it’s ideal for golf lovers and a relaxing Highland escape. The hotel features 63 comfortable rooms, a well-regarded restaurant, and easy access to Inverness Airport and transport links. It’s a convenient base to explore nearby attractions like Loch Ness, Cawdor Castle, and scenic coastal walks.",
            image: "/assets/Scotland/Muthu Newton Hotel-Nairn-Scotland.webp",
            url: "",
          },
          {
            name: "Muthu Ben Doran Hotel",
            location: "Tyndrum",
            description: "Muthu Ben Doran Hotel is set within a private seven-acre garden on the edge of Loch Lomond National Park, offering stunning mountain views. Surrounded by alpine forests, it features spacious rooms and elevated dining and lounge areas designed to showcase the landscape. With landscaped lawns, lily ponds, and vibrant seasonal gardens, it provides a peaceful retreat. Ideal for nature lovers, it’s perfect for hiking, fishing, or relaxing in scenic surroundings.",
            image: "/assets/Scotland/Muthu Ben Doran Hotel-Tyndrum-Scotland.webp",
            url: "",
          },
          {
            name: "Muthu Fort William Hotel",
            location: "Scotland",
            description: "Muthu Fort William Hotel is set amidst the scenic beauty of Ben Nevis and Loch Linnhe, offering a comfortable stay surrounded by lush landscapes. Centrally located, it is close to the train station, West Highland Museum, and key attractions, with easy access to hiking and outdoor activities. The hotel features well-appointed rooms, a restaurant, and a bar, making it a convenient base for exploring the Highlands.",
            image: "/assets/Scotland/Muthu Fort William-Fort William-Scotland.webp",
            url: "",
          },
          {
            name: "Muthu Dalmally Hotel",
            location: "Scotland",
            description: "The Muthu Dalmally Hotel is set within three acres of landscaped gardens in the heart of Strathorchy, offering stunning mountain views. Located in Dalmally village, it provides easy access to the natural and cultural attractions of Argyll and Bute. The hotel features spacious, well-appointed rooms and a charming conservatory lounge filled with greenery. Surrounded by rich wildlife and close to the River Orchy, it’s an ideal retreat for nature lovers and peaceful getaways.",
            image: "/assets/Scotland/Muthu Dalmally Hotel-Tyndrum-Scotland.webp",
            url: "",
          },
          {
            name: "Muthu Royal Hotel",
            location: "Tyndrum",
            description: "The Muthu Royal Hotel is set in the mountain village of Tyndrum, surrounded by four acres of sheltered gardens with stunning views. Known for its rich wildlife and seasonal floral beauty, it offers spacious, well-furnished rooms with modern comforts. Guests can enjoy scenic views from the conservatory-style dining room overlooking lawns and lily ponds. Located along the famous West Highland Way, it’s ideal for walkers and nature lovers seeking a peaceful Highland retreat.",
            image: "/assets/Scotland/Muthu Royal Hotel-Tyndrum-Scotland.webp",
            url: "",
          },
        ],
      },
      {
        countryName: "Kenya",
        resorts: [
          {
            name: "Muthu Sovereign Suites & Spa",
            location: "Limuru Road, Nairobi",
            description: "Muthu Sovereign Suites & Spa is a colonial-style retreat set on six acres of lush greenery in Limuru, surrounded by tea and flower farms. Featuring 32 rooms, it blends heritage charm with modern suites for a comfortable stay. Conveniently located near Nairobi and major airports, it offers easy access to attractions like Karura Forest, Kiambethu Tea Farm, and Nairobi National Park. Ideal for leisure travellers, it provides a peaceful escape with a touch of elegance.",
            image: "/assets/Kenya/Muthu Sovereign Suites & Spa-Nairobi-Kenya.webp",
            url: "",
          },
          {
            name: "Muthu Lake Naivasha Country Club",
            location: "Naivasha",
            description: "Muthu Lake Naivasha Country Club is a heritage resort set on 55 acres along the scenic Rift Valley, just an hour from Nairobi. Dating back to the 1930s, it offers a range of accommodations, a swimming pool, and fine dining. Located near Crescent Island, it provides easy access to wildlife and attractions like Hell’s Gate and Lake Nakuru. Ideal for leisure and business stays, it promises a memorable lakeside retreat.",
            image: "/assets/Kenya/Muthu Lake Naivasha Country Club-Naivasha-Kenya.webp",
            url: "",
          },
          {
            name: "Muthu Mara River Lodge",
            location: "Kenya",
            description: "Muthu Mara River Lodge is set along the banks of the Mara River in the Maasai Mara, offering an immersive safari experience surrounded by rich wildlife. Inspired by traditional Maasai architecture, it features river-facing rooms with views of hippos and crocodiles. Guests can enjoy curated game drives, local cultural experiences, and quality dining. Ideal for nature and wildlife enthusiasts, it delivers a memorable stay in one of Kenya’s most iconic landscapes.",
            image: "/assets/Kenya/Muthu Mara River Lodge-Aitong-Kenya.webp",
            url: "",
          },
          {
            name: "Muthu Keekorok Lodge",
            location: "Maasai Mara",
            description: "Muthu Keekorok Lodge is a historic safari retreat established in 1965, set in the heart of the Maasai Mara. Surrounded by vast plains, it offers close encounters with wildlife including zebras and hippos. Known for its eco-friendly approach, the lodge blends heritage charm with immersive safari experiences. Located near key reserve gates and Keekorok Airstrip, it provides convenient access for travellers seeking an authentic and memorable wildlife stay.",
            image: "/assets/Kenya/Muthu Keekorok Lodge-Maasai Mara-Kenya.webp",
            url: "",
          },
          {
            name: "Mara Hot Air Balloon Safari",
            location: "Kenya",
            description: "The Hot Air Balloon Safari in Maasai Mara offers a unique way to experience the region’s scenic landscapes and rich wildlife. Floating above the plains at sunrise, guests can enjoy breathtaking views and the sounds of nature below. Established in 2012, this experience is enhanced with professional service and a signature champagne breakfast. Ideal for nature lovers, it promises a memorable and once-in-a-lifetime safari adventure.",
            image: "/assets/Kenya/Mara Wildlife Balloon Adventure-Maasai Mara-Kenya.webp",
            url: "",
          },
          {
            name: "Muthu Kiboko Luxury Camp",
            location: "Lake Naivasha",
            description: "Muthu Kiboko Luxury Camp is set along the scenic shores of Lake Naivasha, offering a serene retreat in Kenya’s Rift Valley, just a short drive from Nairobi. This modern tented camp features elegantly designed accommodations with private seating and en-suite bathrooms, blending comfort with nature. Guests can enjoy activities like bird watching, boat rides, and guided walks, making it ideal for a relaxing and immersive nature getaway.",
            image: "/assets/Scotland/Muthu Fort William-Fort William-Scotland.webp",
            url: "",
          },
        ],
      },
      {
        countryName: "Cuba",
        resorts: [
          {
            name: "Gran Muthu Habana Tower",
            location: "Habana",
            description: "Gran Muthu Habana Tower situated along the scenic Caribbean coastline, offers a modern 5-star stay experience with panoramic ocean and city views in Havana. The hotel features spacious contemporary rooms, versatile event spaces, meeting facilities, a fitness centre, and premium dining experiences including a panoramic restaurant overlooking the city. With easy access to Old Havana, Miramar Business Centre, and key commercial districts, Gran Muthu Habana Tower is ideal for business and leisure travellers seeking comfort, convenience, and a memorable stay in Cuba.",
            image: "/assets/Cuba/Gran Muthu Habana Tower-Havana-Cuba.webp",
            url: "",
          },
          {
            name: "Gran Muthu Habana",
            location: "Habana",
            description: "Gran Muthu Habana Hotel situated in a prestigious residential area of Havana, offers a luxurious 5-star stay with stunning Caribbean Sea views and easy access to the city’s cultural attractions. The hotel features modern rooms, restaurants, bars, swimming pools, spa facilities, event spaces, and a sea-facing terrace for a relaxing stay experience. Located near Havana’s Fifth Avenue and the Miramar Trade Centre, Gran Muthu Habana Hotel is ideal for business and leisure travellers seeking comfort and convenience in the heart of Havana.",
            image: "/assets/Cuba/Gran Muthu Habana-Havana-Cuba.webp",
            url: "",
          },
          {
            name: "Gran Muthu Ensenada",
            location: "Holguin",
            description: "Gran Muthu Ensenada Hotel set along one of Holguín’s beautiful beaches, offers a luxurious 5-star beachfront stay designed for families and couples seeking relaxation and entertainment. The resort features spacious ocean-view rooms, multiple specialty restaurants, bars, wellness facilities, a kids club, theatre, gym, spa, and modern event spaces for a complete holiday experience. Guests can also explore nearby attractions including Guardalavaca Beach, Cayo Bariay, and the Dolphinarium. Combining comfort, leisure, and warm hospitality, Gran Muthu Ensenada Hotel provides a memorable getaway in Eastern Cuba.",
            image: "/assets/Cuba/Gran Muthu Ensenada-Holguin-Cuba.webp",
            url: "",
          },
          {
            name: "Gran Muthu Almirante Beach Hotel",
            location: "Holguín",
            description: "Gran Muthu Almirante Beach Hotel situated in the popular beach destination of Guardalavaca, offers a luxurious stay experience with comfortable accommodations and stunning views of the Cuban coastline. The resort features restaurants, bars, a rooftop lounge, spa, gym, kids water park, games area, and non-motorized water sports for guests of all ages. With spacious banquet and conference facilities, private wellness experiences, and modern leisure amenities, Gran Muthu Almirante Beach Hotel is ideal for family vacations, weddings, events, and relaxing beachfront holidays in Cuba.",
            image: "/assets/Cuba/Gran Muthu Almirante Beach Hotel-Holguin-Cuba.webp",
            url: "",
          },
          {
            name: "Muthu Segundo Frente",
            location: "Santiago de Cuba",
            description: "Muthu Segundo Frente Hotel nestled in the scenic Sierra Cristal mountains of Santiago de Cuba, offers a peaceful 4-star stay surrounded by natural beauty and historical significance. The hotel provides comfortable accommodations and easy access to hiking trails, horseback riding, and cultural landmarks including the Segundo Frente Oriental Frank País Mausoleum. Ideal for nature lovers and leisure travellers, Muthu Segundo Frente Hotel combines relaxation, outdoor adventure, and Cuba’s rich historical heritage.",
            image: "/assets/Cuba/Muthu Segundo Frente-Santiago de Cuba-Cuba.webp",
            url: "",
          },
          {
            name: "Grand Muthu Cayo Guillermo",
            location: "Cayo Guillermo",
            description: "Grand Muthu Cayo Guillermo situated in the beautiful Jardines del Rey archipelago near Playa Pilar, offers a modern all-inclusive beachfront stay surrounded by crystal-clear waters and tropical gardens. The resort features spacious accommodations, multiple swimming pools including an infinity pool overlooking the ocean, family-friendly activities, a kids club with waterpark, and a variety of entertainment experiences for guests of all ages. Ideal for families, couples, and leisure travellers, Grand Muthu Cayo Guillermo provides a relaxing Caribbean getaway close to stunning beaches, coral reefs, and natural attractions.",
            image: "/assets/Cuba/Grand Muthu Cayo Guillermo-Cayo Guillermo-Cuba.webp",
            url: "",
          },
          {
            name: "Gran Muthu Imperial Hotel",
            location: "Cayo Guillermo",
            description: "Gran Muthu Imperial overlooking the white-sand shores of Cayo Guillermo, offers a relaxing all-inclusive beachfront stay designed for families and leisure travellers. The resort features spacious accommodations, multiple swimming pools including an infinity pool, restaurants serving international cuisine, bars, live entertainment, and a variety of recreational activities. Guests can also enjoy water sports, beachside relaxation, sports facilities, and family-friendly experiences, making Gran Muthu Imperial an ideal Caribbean getaway filled with comfort, entertainment, and coastal charm.",
            image: "/assets/Cuba/Gran Muthu Imperial-Cayo Guillermo-Cuba.webp",
            url: "",
          },
          {
            name: "Gran Muthu Rainbow Hotel",
            location: "Cayo Guillermo",
            description: "Gran Muthu Rainbow Hotel situated on Punta Playuelas in Cayo Guillermo, offers an exclusive 5-star all-inclusive adults-only stay experience surrounded by the natural beauty of the Caribbean. Designed as an LGBT-friendly resort for guests above 18 years, the hotel features elegant accommodations, restaurants, cafés, entertainment programs, games areas, and personalized hospitality in a vibrant and relaxing atmosphere. Guests can also enjoy nearby water sports, shopping areas, live shows, and Cuban cultural experiences, making Gran Muthu Rainbow Hotel an ideal destination for a memorable tropical getaway.",
            image: "/assets/Cuba/Gran Muthu Rainbow-Cayo Guillermo-Cuba.webp",
            url: "",
          },
          {
            name: "Gran Muthu Cayo Santa Maria",
            location: "Villa Clara",
            description: "Gran Muthu Cayo Santa María overlooking the Caribbean Sea in a beautiful biosphere reserve, offers a luxurious all-inclusive 5-star stay with villa-style accommodations and modern comforts. The resort features spacious pool areas, beachfront activities, swim-up bars, water sports, and relaxing leisure experiences for guests of all ages. With scenic seaside venues for weddings and honeymoon celebrations, Gran Muthu Cayo Santa María is an ideal destination for romantic getaways, family vacations, and memorable beach holidays in Cuba.",
            image: "/assets/Cuba/Gran Muthu Cayo Santa Maria-Villa Clara-Cuba.webp",
            url: "",
          },
          {
            name: "Muthu Lincoln Hotel",
            location: "Habana",
            description: "Muthu Lincoln Hotel situated in the heart of Havana near the famous Malecón, offers a comfortable stay experience in a historic building dating back to 1926. Showcasing classic colonial-style architecture with elegant arches and traditional charm, the hotel combines heritage, comfort, and convenient access to Havana’s cultural and city attractions for business and leisure travellers.",
            image: "/assets/Cuba/Muthu Lincoln Hotel-Centro Habana-Cuba.webp",
            url: "",
          },
          {
            name: "Muthu Las Tunas Hotel",
            location: "Las Tunas",
            description: "Muthu Las Tunas Playa Covarrubias situated along the beautiful north coast of Las Tunas, offers a relaxing all-inclusive beachfront stay surrounded by white sand beaches and crystal-clear waters. The resort features comfortable accommodations, multiple restaurants and bars, swimming pools, fitness facilities, entertainment programs, and a variety of water sports and diving experiences near one of Cuba’s important coral reef systems. Ideal for families, couples, and leisure travellers, Muthu Las Tunas Playa Covarrubias combines tropical charm, recreation, and warm hospitality for a memorable Caribbean getaway.",
            image: "/assets/Scotland/Muthu Queens Hotel-Oban-Scotland.webp",
            url: "",
          },
          {
            name: "Muthu Colonial Hotel",
            location: "Cayo Coco",
            description: "Muthu Colonial Hotel situated in the beautiful destination of Cayo Coco, offers a relaxing 4-star all-inclusive stay surrounded by tropical charm and colonial-inspired architecture. The hotel features comfortable accommodations, swimming pools, a private beach area, fitness facilities, tennis courts, restaurants, and family-friendly leisure experiences. Located near a stunning beach ideal for snorkelling and water activities, Muthu Colonial Hotel is perfect for families, couples, and leisure travellers seeking a peaceful Caribbean getaway in the heart of Cuba.",
            image: "/assets/Cuba/Muthu Colonial Hotel-Cayo Coco-Cuba.webp",
            url: "",
          },
          {
            name: "Muthu Playa Varadero",
            location: "Matanzas",
            description: "Muthu Playa Varadero situated along Varadero’s famous white-sand beaches, offers a relaxing beachfront stay for families, couples, and leisure travellers. The resort features comfortable accommodations, swimming pools, dining options, live entertainment, kids’ activities, and water sports including sailing, kayaking, snorkelling, and windsurfing. With easy access to the Varadero Golf Club and beautiful ocean views, Muthu Playa Varadero provides a memorable Caribbean holiday experience.",
            image: "/assets/Portugal/Muthu Raga Madeira-Madeira-Portugal.webp",
            url: "",
          },
        ],
      },
      {
        countryName: "Jamaica",
        resorts: [
          {
            name: "Grand Muthu Runaway Bay Club Caribbean",
            location: "Jamaica",
            description: "Grand Muthu Runaway Bay is a beachfront resort on Jamaica’s scenic northern coast, set amidst lush gardens. Conveniently located near major airports, it offers a relaxed stay with multiple dining options, pools for adults and children, and daily activities. Close to attractions like Green Grotto Caves and Dunn’s River Falls, it’s an ideal choice for a comfortable and enjoyable coastal getaway.",
            image: "/assets/jamaica/Grand Muthu Runaway Bay Club Caribbean-Salem-Jamaica.webp",
            url: "",
          },
          {
            name: "Muthu Crystal Cove Montego Bay - No Content Available",
            location: "Jamaica",
            description: "Muthu Diamond Lagoon Montego Bay - No Content Available",
            image: "/assets/hospitality/HERO SECTION/MGM Beach resort-Chennai-Indiajpeg.jpeg",
            url: "",
          },
        ],
      },
      {
        countryName: "France",
        resorts: [
          {
            name: "Muthu Hôtel des Ambassadeurs",
            location: "Lourdes",
            description: "Muthu Hôtel des Ambassadeurs situated in the spiritual town of Lourdes, offers a comfortable stay experience in a magnificent historic building with its own unique heritage and charm. Combining elegant architecture, warm hospitality, and convenient access to the town’s famous attractions, the hotel is ideal for pilgrims, families, and leisure travellers visiting Lourdes.",
            image: "/assets/france/Muthu Ambassadeur-Lourdes-France.webp",
            url: "",
          },
        ],
      },
      {
        countryName: "Tanzania",
        resorts: [
          {
            name: "Grand Muthu Pongwe by Monicca Collection",
            location: "Zanzibar",
            description: "Grand Muthu Pongwe by Monicca Collection is an upcoming beachfront resort located on Zanzibar’s serene east coast in Pongwe. Part of the Monicca Collection by MGM Muthu Hotels, it offers a peaceful island retreat with scenic ocean views and contemporary comforts. Guests can expect comfortable accommodation, curated dining experiences, and easy access to pristine white-sand beaches. A relaxing choice for those seeking a tranquil tropical escape.",
            image: "/assets/jamaica/Grand Muthu Runaway Bay Club Caribbean-Salem-Jamaica.webp",
            url: "",
          },
          {
            name: "Muthu Pongwe Beach",
            location: "Zanzibar",
            description: "Muthu Pongwe Beach is a beachfront resort set along Zanzibar’s peaceful east coast, offering a serene escape by the Indian Ocean. Surrounded by swaying palms and white-sand shores, it provides comfortable accommodation with scenic sea views. Guests can enjoy relaxed dining and easy access to nearby coastal attractions. A perfect choice for travelers seeking a calm and rejuvenating tropical getaway.",
            image: "/assets/spain/Muthu Infiniti Beach Resort-Almeria-Spain.webp",
            url: "",
          },
        ],
      },
    ],
  },
  impact: {
    badge: "Our Impact in Numbers",
    badgeIcon: "/assets/leaders/sparkle-icon.svg",
    description: "A snapshot of the scale, reach, and progress we've built over decades of purpose-driven growth.",
    stats: [
      {
        number: "30+",
        label: "Years of Excellence",
        description: "Redefining Hospitality",
        vector: "/assets/hospitality/stats-vector-1.svg",
      },
      {
        number: "30+",
        label: "Locations Worldwide",
        description: "Across India, Europe, Africa & the Caribbean",
        vector: "/assets/hospitality/stats-vector-2.svg",
      },
      {
        number: "64+",
        label: "Premium Properties Worldwide",
        description: "From Beachfront Resorts to Hilltop Retreats",
        vector: "/assets/hospitality/stats-vector-3.svg",
      },
      {
        number: "190+",
        label: "Signature Restaurants",
        description: "Across the Globe",
        vector: "/assets/hospitality/stats-vector-3.svg",
      },
      {
        number: "17+",
        label: "Spas & Health Clubs",
        description: "Across the World",
        vector: "/assets/hospitality/stats-vector-3.svg",
      },
      {
        number: "43",
        label: "Wedding Venues",
        description: "Located in Different Countries Worldwide",
        vector: "/assets/hospitality/stats-vector-3.svg",
      },
      {
        number: "16,000+",
        label: "Rooms Worldwide",
        description: "Offering Comfort, Luxury & Cultural Charm",
        vector: "/assets/hospitality/stats-vector-3.svg",
      },
    ],
  },
  inquiry: {
    image: "/assets/hospitality/enquiry-img.jpg",
    heading: "Inquire here",
    fullNamePlaceholder: "Full Name",
    emailPlaceholder: "Email ID",
    enquiryTypePlaceholder: "Enquiry Type",
    enquiryTypes: ["Booking", "Event", "General"],
    messagePlaceholder: "Your message...",
    ctaLabel: "Send Message",
    ctaHref: "",
  },
}

/* ------------------------------------------------------------------ */
/*  Helpers                                                           */
/* ------------------------------------------------------------------ */

type AnyRec = Record<string, unknown>

function str(val: unknown, fallback = ""): string {
  if (typeof val === "string") return val.trim() !== "" ? val : fallback
  if (typeof val === "number") return String(val)
  return fallback
}

function media(val: unknown): string {
  return getMediaUrl(val as StrapiMedia | null | undefined)
}

function withFallback<T>(value: T[] | undefined | null, fallback: T[]): T[] {
  return value && value.length > 0 ? value : fallback
}

function norm(value: string): string {
  return value.trim().toLowerCase()
}

function findFallbackCountry(countries: HospitalityCountryData[], name: string) {
  const key = norm(name)
  return countries.find((country) => norm(country.name) === key)
}

function findFallbackResort(country: HospitalityCountryData | undefined, name: string) {
  const key = norm(name)
  return country?.resorts.find((resort) => norm(resort.name) === key)
}

function findFallbackRestaurant(country: HospitalityCountryData | undefined, name: string) {
  const key = norm(name)
  return country?.restaurants.find((restaurant) => norm(restaurant.name) === key)
}

/** Merge each country's resort group into the country itself. */
function mergeCountries(d: HospitalityDefaults): HospitalityCountryData[] {
  return d.globalPresence.countryResorts.map((group) => ({
    name: group.countryName,
    image:
      d.globalPresence.countries.find((c) => c.name === group.countryName)
        ?.image || "",
    resorts: group.resorts,
    restaurants: group.restaurants || [],
  }))
}

/** Build the public HospitalityData shape from the internal defaults. */
function buildDefaults(d: HospitalityDefaults): HospitalityData {
  return {
    hero: d.hero,
    about: d.about,
    globalPresence: {
      badge: d.globalPresence.badge,
      badgeIcon: d.globalPresence.badgeIcon,
      ctaLabel: d.globalPresence.ctaLabel,
      ctaHref: d.globalPresence.ctaHref,
      countries: mergeCountries(d),
    },
    impact: d.impact,
    inquiry: d.inquiry,
  }
}

/* ------------------------------------------------------------------ */
/*  Public API                                                        */
/* ------------------------------------------------------------------ */

export async function getHospitalityData(): Promise<HospitalityData> {
  const d = hospitalityDefaults
  const fallbackCountries = mergeCountries(d)

  if (!isStrapiEnabled) return buildDefaults(d)

  const entry = await fetchSingle<AnyRec>("hospitality")

  if (!entry) return buildDefaults(d)

  const hero = (entry.hero as AnyRec | undefined) ?? {}
  const about = (entry.about as AnyRec | undefined) ?? {}
  const globalPresence = (entry.globalPresence as AnyRec | undefined) ?? {}
  const impactWrapper = (entry.impact as AnyRec | undefined) ?? {}
  const inquiry = (entry.inquiry as AnyRec | undefined) ?? {}

  const heroRows = (hero.slides as AnyRec[] | undefined) ?? []
  const countryRows = (globalPresence.countries as AnyRec[] | undefined) ?? []
  const statRows = (impactWrapper.stats as AnyRec[] | undefined) ?? []

  const aboutParagraphRows = (about.paragraphs as AnyRec[] | undefined) ?? []

  return {
    hero: {
      slides: withFallback(
        heroRows.map((row, i) => {
          const fb = d.hero.slides[i] ?? d.hero.slides[0]
          return {
            image: media(row.image_3x2) || str(row.imageUrl) || fb?.image || "",
            title: str(row.title, fb?.title || ""),
            subtitle: str(row.subtitle, fb?.subtitle || ""),
          }
        }).filter((slide) => slide.image),
        d.hero.slides,
      ),
    },
    about: {
      badge: str(about.badge, d.about.badge),
      badgeIcon: d.about.badgeIcon,
      watermarkText: titleCase(str(about.watermarkText, d.about.watermarkText)),
      decorativeImage: d.about.decorativeImage,
      paragraphs: withFallback(aboutParagraphRows.map((row) => str(row.text)), d.about.paragraphs),
    },
    globalPresence: {
      badge: str(globalPresence.badge, d.globalPresence.badge),
      badgeIcon: d.globalPresence.badgeIcon,
      ctaLabel: str(globalPresence.ctaButtonText, d.globalPresence.ctaLabel),
      ctaHref: normalizeCmsLink(globalPresence.ctaButtonLink, d.globalPresence.ctaHref),
      countries: withFallback(
        countryRows.map((row) => {
          const name = str(row.name)
          const fbCountry = findFallbackCountry(fallbackCountries, name)
          return {
            name: name || fbCountry?.name || "",
            image: media(row.image_1x1) || str(row.imageUrl) || fbCountry?.image || "",
            resorts: withFallback(
              ((row.resorts as AnyRec[] | undefined) ?? []).map((r) => {
                const resortName = str(r.name)
                const fb = findFallbackResort(fbCountry, resortName)
                return {
                  name: resortName || fb?.name || "",
                  location: str(r.location, fb?.location || ""),
                  description: str(r.description, fb?.description || ""),
                  image: media(r.image_6x5) || str(r.imageUrl) || fb?.image || "",
                  url: str(r.url, fb?.url || ""),
                }
              }).filter((resort) => resort.name && resort.image),
              fbCountry?.resorts || [],
            ),
            restaurants: withFallback(
              ((row.restaurants as AnyRec[] | undefined) ?? []).map((r) => {
                const restaurantName = str(r.name)
                const fb = findFallbackRestaurant(fbCountry, restaurantName)
                return {
                  name: restaurantName || fb?.name || "",
                  location: str(r.location, fb?.location || ""),
                  description: str(r.description, fb?.description || ""),
                  image: media(r.image_6x5) || str(r.imageUrl) || fb?.image || "",
                }
              }).filter((restaurant) => restaurant.name && restaurant.image),
              fbCountry?.restaurants || [],
            ),
          }
        }).filter((country) => country.name && country.image),
        fallbackCountries,
      ),
    },
    impact: {
      badge: str(impactWrapper.badge, d.impact.badge),
      badgeIcon: d.impact.badgeIcon,
      description: str(impactWrapper.description, d.impact.description),
      stats: statRows.map((row) => ({
        number: str(row.number),
        label: str(row.label),
        description: str(row.description),
        vector: media(row.vector_1x1),
      })),
    },
    inquiry: {
      image: media(inquiry.image_1x1) || d.inquiry.image,
      heading: str(inquiry.heading, d.inquiry.heading),
      fullNamePlaceholder: str(inquiry.fullNamePlaceholder, d.inquiry.fullNamePlaceholder),
      emailPlaceholder: str(inquiry.emailPlaceholder, d.inquiry.emailPlaceholder),
      enquiryTypePlaceholder: str(inquiry.enquiryTypePlaceholder, d.inquiry.enquiryTypePlaceholder),
      enquiryTypes: withFallback(
        ((inquiry.enquiryTypes as AnyRec[]) ?? []).map((r) => str(r.label)),
        d.inquiry.enquiryTypes,
      ),
      messagePlaceholder: str(inquiry.messagePlaceholder, d.inquiry.messagePlaceholder),
      ctaLabel: str(inquiry.ctaButtonText, d.inquiry.ctaLabel),
      ctaHref: normalizeCmsLink(inquiry.ctaButtonLink, d.inquiry.ctaHref),
    },
  }
}
