@extends('layouts.app')

@section('title', 'Bardan Boutique Hotel - More Than A Hotel...An Experience')

@section('content')
<!-- Hero Section -->
<section class="relative h-screen flex items-center justify-center overflow-hidden -mt-20">
    <!-- Background Image -->
    <div class="absolute inset-0 z-0">
        <div class="swiper hero-swiper h-full">
            <div class="swiper-wrapper">
                <div class="swiper-slide">
                    <img src="https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1920&h=1080&fit=crop&q=80" alt="Hotel Exterior" class="w-full h-full object-cover">
                </div>
                <div class="swiper-slide">
                    <img src="https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?w=1920&h=1080&fit=crop&q=80" alt="Luxury Room" class="w-full h-full object-cover">
                </div>
                <div class="swiper-slide">
                    <img src="https://images.unsplash.com/photo-1578683010236-d716f9a3f461?w=1920&h=1080&fit=crop&q=80" alt="Hotel Lobby" class="w-full h-full object-cover">
                </div>
            </div>
            <div class="swiper-pagination"></div>
            <div class="swiper-button-prev"></div>
            <div class="swiper-button-next"></div>
        </div>
    </div>
    <div class="hero-overlay"></div>
    
    <!-- Hero Content -->
    <div class="relative z-10 container-custom text-center text-white px-4" data-aos="fade-up">
        <h1 class="text-5xl md:text-7xl font-display font-bold mb-6 text-shadow-lg animate-fade-in-up">
             Bardan Boutique Hotel
        </h1>
        <p class="text-xl md:text-3xl font-serif mb-8 text-shadow animate-fade-in-up" style="animation-delay: 0.2s;">
            More Than A Hotel...An Experience
        </p>
        <p class="text-lg md:text-xl mb-10 max-w-2xl mx-auto animate-fade-in-up" style="animation-delay: 0.4s;">
            Centrally located at Battisputali, Gaushala, within walking distance from the Holy Temple of Pashupatinath
        </p>
        <div class="flex flex-col sm:flex-row gap-4 justify-center animate-fade-in-up" style="animation-delay: 0.6s;">
            <a href="{{ route('rooms.index') }}" class="btn btn-primary text-lg px-8 py-4">
                <span>Explore Rooms</span>
                <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8l4 4m0 0l-4 4m4-4H3"/>
                </svg>
            </a>
            <a href="#booking" class="btn btn-outline bg-white/10 backdrop-blur-sm text-white border-white hover:bg-white hover:text-primary-600 text-lg px-8 py-4">
                Book Your Stay
            </a>
        </div>
    </div>
    
    <!-- Scroll Indicator -->
    <div class="absolute bottom-8 left-1/2 transform -translate-x-1/2 z-10 animate-bounce-slow">
        <svg class="w-8 h-8 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3"/>
        </svg>
    </div>
</section>

<!-- Quick Booking Widget -->
<section id="booking" class="relative -mt-20 z-20">
    <div class="container-custom">
        <div class="bg-white rounded-2xl shadow-2xl p-6 md:p-8" data-aos="fade-up">
            <h3 class="text-2xl font-display font-bold mb-6 text-center">Check Availability</h3>
            <form class="grid grid-cols-1 md:grid-cols-5 gap-4" onsubmit="event.preventDefault(); checkAvailability();">
                <div>
                    <label for="check_in" class="form-label">Check In</label>
                    <input type="date" id="check_in" name="check_in" class="form-input" required>
                </div>
                <div>
                    <label for="check_out" class="form-label">Check Out</label>
                    <input type="date" id="check_out" name="check_out" class="form-input" required>
                </div>
                <div>
                    <label for="adults" class="form-label">Adults</label>
                    <select id="adults" name="adults" class="form-input">
                        <option value="1">1 Adult</option>
                        <option value="2" selected>2 Adults</option>
                        <option value="3">3 Adults</option>
                        <option value="4">4 Adults</option>
                    </select>
                </div>
                <div>
                    <label for="children" class="form-label">Children</label>
                    <select id="children" name="children" class="form-input">
                        <option value="0" selected>0 Children</option>
                        <option value="1">1 Child</option>
                        <option value="2">2 Children</option>
                        <option value="3">3 Children</option>
                    </select>
                </div>
                <div class="flex items-end">
                    <button type="submit" class="btn btn-primary w-full">
                        Check Availability
                    </button>
                </div>
            </form>
            <div id="availability-results" class="grid grid-cols-1 md:grid-cols-3 gap-6 mt-8"></div>
        </div>
    </div>
</section>

<!-- Welcome Section -->
<section class="py-20">
    <div class="container-custom">
        <div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
            <div data-aos="fade-right">
                <span class="section-badge">Welcome</span>
                <h2 class="section-title">About Hotel Bardan Boutique</h2>
                <div class="divider mb-6"></div>
                <p class="text-lg text-gray-600 mb-6 leading-relaxed">
                    Hotel Bardan Boutique is a boutique family hotel centrally located at Battisputali, Gaushala, 
                    at walking distance from the Holy Temple of Lord Pashupatinath, a World Heritage Site, and around 
                    1.5 km away from Tribhuwan International Airport.
                </p>
                <p class="text-lg text-gray-600 mb-6 leading-relaxed">
                    This hotel's motto is to serve our prestigious and valued guests with a smile in a homely environment 
                    to make them feel at home away from their homes. This hotel is managed by a group of professionals 
                    with 15 years of experience in the Hospitality sector.
                </p>
                <a href="{{ route('about') }}" class="btn btn-primary">
                    Learn More
                    <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8l4 4m0 0l-4 4m4-4H3"/>
                    </svg>
                </a>
            </div>
            <div data-aos="fade-left">
                <div class="grid grid-cols-2 gap-4">
                    <img src="https://images.unsplash.com/photo-1564501049412-61c2a3083791?w=400&h=500&fit=crop&q=80" 
                         alt="Hotel Interior" class="rounded-lg shadow-lg w-full h-64 object-cover">
                    <img src="https://images.unsplash.com/photo-1578683010236-d716f9a3f461?w=400&h=500&fit=crop&q=80" 
                         alt="Hotel Lobby" class="rounded-lg shadow-lg w-full h-64 object-cover mt-8">
                    <img src="https://images.unsplash.com/photo-1631049307264-da0ec9d70304?w=400&h=500&fit=crop&q=80" 
                         alt="Hotel Room" class="rounded-lg shadow-lg w-full h-64 object-cover -mt-8">
                    <img src="https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?w=400&h=500&fit=crop&q=80" 
                         alt="Hotel Amenities" class="rounded-lg shadow-lg w-full h-64 object-cover">
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Featured Rooms -->
<section class="py-20 bg-gray-50">
    <div class="container-custom">
        <div class="text-center mb-12" data-aos="fade-up">
            <span class="section-badge">Accommodations</span>
            <h2 class="section-title">Boutique Rooms</h2>
            <div class="divider mb-4"></div>
            <p class="section-subtitle">Experience luxury and comfort in our beautifully designed rooms</p>
        </div>
        
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
            @foreach($featuredRooms as $index => $room)
            <div class="card card-hover" data-aos="fade-up" data-aos-delay="{{ $index * 100 }}">
                <div class="relative overflow-hidden h-64">
                    <img src="{{ $room->image }}" 
                         alt="{{ $room->name }}" 
                         class="w-full h-full object-cover transform transition-transform duration-500 hover:scale-110">
                    <div class="image-overlay"></div>
                    <div class="absolute top-4 right-4 bg-primary-600 text-white px-4 py-2 rounded-full font-bold">
                        NPR {{ number_format($room->price_per_night) }}/night
                    </div>
                </div>
                <div class="p-6">
                    <h3 class="text-2xl font-display font-bold mb-2">{{ $room->name }}</h3>
                    <p class="text-gray-600 mb-4">{{ $room->short_description }}</p>
                    <div class="flex items-center gap-4 text-sm text-gray-500 mb-4">
                        <span class="flex items-center gap-1">
                            <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"/>
                            </svg>
                            {{ $room->max_adults }} Adults
                        </span>
                        <span class="flex items-center gap-1">
                            <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"/>
                            </svg>
                            {{ $room->room_size }}
                        </span>
                    </div>
                    <a href="{{ route('rooms.show', $room->slug) }}" class="btn btn-outline w-full">
                        View Details
                    </a>
                </div>
            </div>
            @endforeach
        </div>
        
        <div class="text-center mt-12" data-aos="fade-up">
            <a href="{{ route('rooms.index') }}" class="btn btn-primary text-lg">
                View All Rooms
                <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8l4 4m0 0l-4 4m4-4H3"/>
                </svg>
            </a>
        </div>
    </div>
</section>

<!-- Services -->
<section class="py-20">
    <div class="container-custom">
        <div class="text-center mb-12" data-aos="fade-up">
            <span class="section-badge">What We Offer</span>
            <h2 class="section-title">Our Services</h2>
            <div class="divider mb-4"></div>
            <p class="section-subtitle">Enjoy world-class amenities and services during your stay</p>
        </div>
        
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
            @foreach($services as $index => $service)
            <div class="text-center group" data-aos="fade-up" data-aos-delay="{{ $index * 100 }}">
                <div class="w-20 h-20 bg-gradient-to-br from-primary-100 to-accent-100 rounded-2xl flex items-center justify-center mx-auto mb-4 group-hover:scale-110 transition-transform duration-300">
                    <svg class="w-10 h-10 text-primary-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        @switch($service->icon)
                            @case('wifi')
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.141 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0"/>
                                @break
                            @case('bed')
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"/>
                                @break
                            @case('utensils')
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"/>
                                @break
                            @case('parking')
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 17a2 2 0 11-4 0 2 2 0 014 0zM19 17a2 2 0 11-4 0 2 2 0 014 0z"/>
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16V6a1 1 0 00-1-1H4a1 1 0 00-1 1v10a1 1 0 001 1h1m8-1a1 1 0 01-1 1H9m4-1V8a1 1 0 011-1h2.586a1 1 0 01.707.293l3.414 3.414a1 1 0 01.293.707V16a1 1 0 01-1 1h-1m-4-1a1 1 0 001 1h3M5 17a2 2 0 104 0m-4 0a2 2 0 114 0m6 0a2 2 0 104 0m-4 0a2 2 0 114 0"/>
                                @break
                            @case('plane')
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 19l9 2-9-18-9 18 9-2zm0 0v-8"/>
                                @break
                            @case('shield')
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/>
                                @break
                            @case('bell')
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"/>
                                @break
                            @default
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
                        @endswitch
                    </svg>
                </div>
                <h3 class="text-xl font-display font-bold mb-2">{{ $service->name }}</h3>
                <p class="text-gray-600">{{ $service->description }}</p>
            </div>
            @endforeach
        </div>
    </div>
</section>

<!-- Stats Section -->
<section class="py-20 bg-gradient-to-br from-primary-600 to-accent-600 text-white">
    <div class="container-custom">
        <div class="grid grid-cols-2 md:grid-cols-4 gap-8 text-center">
            <div data-aos="fade-up" data-aos-delay="0">
                <div class="text-5xl font-display font-bold mb-2">
                    <span class="counter" data-target="15">0</span>+
                </div>
                <p class="text-lg">Years Experience</p>
            </div>
            <div data-aos="fade-up" data-aos-delay="100">
                <div class="text-5xl font-display font-bold mb-2">
                    <span class="counter" data-target="5000">0</span>+
                </div>
                <p class="text-lg">Happy Guests</p>
            </div>
            <div data-aos="fade-up" data-aos-delay="200">
                <div class="text-5xl font-display font-bold mb-2">
                    <span class="counter" data-target="25">0</span>+
                </div>
                <p class="text-lg">Luxury Rooms</p>
            </div>
            <div data-aos="fade-up" data-aos-delay="300">
                <div class="text-5xl font-display font-bold mb-2">
                    <span class="counter" data-target="100">0</span>%
                </div>
                <p class="text-lg">Satisfaction</p>
            </div>
        </div>
    </div>
</section>

<!-- Gallery Preview -->
<section class="py-20">
    <div class="container-custom">
        <div class="text-center mb-12" data-aos="fade-up">
            <span class="section-badge">Visual Tour</span>
            <h2 class="section-title">Picture Gallery</h2>
            <div class="divider mb-4"></div>
            <p class="section-subtitle">Explore our beautiful hotel through images</p>
        </div>
        
        <div class="swiper gallery-swiper" style="height: 320px; padding-bottom: 3rem;">
            <div class="swiper-wrapper">
                @foreach($galleryImages as $image)
                <div class="swiper-slide" style="height: 256px;">
                    <div class="relative overflow-hidden rounded-lg group cursor-pointer h-full">
                        <img src="{{ $image->image }}" 
                             alt="{{ $image->title }}" 
                             class="w-full h-full object-cover transform transition-transform duration-500 group-hover:scale-110">
                        <div class="absolute inset-0 bg-gradient-to-t from-black/70 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300">
                            <div class="absolute bottom-4 left-4 text-white">
                                <h4 class="font-bold text-lg">{{ $image->title }}</h4>
                                <p class="text-sm">{{ ucfirst($image->category) }}</p>
                            </div>
                        </div>
                    </div>
                </div>
                @endforeach
            </div>
            <div class="swiper-pagination"></div>
        </div>
        
        <div class="text-center mt-8">
            <a href="{{ route('gallery') }}" class="btn btn-primary text-lg">
                View Full Gallery
                <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8l4 4m0 0l-4 4m4-4H3"/>
                </svg>
            </a>
        </div>
    </div>
</section>

<!-- Nearby Attractions -->
<section class="py-20 bg-gray-50">
    <div class="container-custom">
        <div class="text-center mb-12" data-aos="fade-up">
            <span class="section-badge">Explore</span>
            <h2 class="section-title">Nearest Attractions</h2>
            <div class="divider mb-4"></div>
            <p class="section-subtitle">Discover the cultural heritage sites near our hotel</p>
        </div>
        
        <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
            <div class="card card-hover" data-aos="fade-up" data-aos-delay="0">
                <div class="relative overflow-hidden h-64">
                    <img src="https://images.unsplash.com/photo-1626621341517-bbf3d9990a23?w=600&h=400&fit=crop&q=80" 
                         alt="Pashupatinath Temple" 
                         class="w-full h-full object-cover transform transition-transform duration-500 hover:scale-110">
                    <div class="image-overlay"></div>
                    <div class="absolute top-4 left-4 bg-white text-primary-600 px-4 py-2 rounded-full font-bold text-sm">
                        < 1 km
                    </div>
                </div>
                <div class="p-6">
                    <h3 class="text-2xl font-display font-bold mb-3">Pashupatinath Temple</h3>
                    <p class="text-gray-600 mb-4">
                        One of the most sacred temples for Hindus, dedicated to Lord Shiva. 
                        A UNESCO World Heritage Site on the banks of Bagmati River.
                    </p>
                    <a href="{{ route('pashupatinath') }}" class="btn btn-outline">Learn More</a>
                </div>
            </div>
            
            <div class="card card-hover" data-aos="fade-up" data-aos-delay="100">
                <div class="relative overflow-hidden h-64">
                    <img src="https://images.unsplash.com/photo-1605640840605-14ac1855827b?w=600&h=400&fit=crop&q=80" 
                         alt="Boudhanath Stupa" 
                         class="w-full h-full object-cover transform transition-transform duration-500 hover:scale-110">
                    <div class="image-overlay"></div>
                    <div class="absolute top-4 left-4 bg-white text-primary-600 px-4 py-2 rounded-full font-bold text-sm">
                        3 km
                    </div>
                </div>
                <div class="p-6">
                    <h3 class="text-2xl font-display font-bold mb-3">Boudhanath Stupa</h3>
                    <p class="text-gray-600 mb-4">
                        One of the most imposing landmarks in Kathmandu, this Buddhist stupa is a holy place 
                        for Buddhists all over the world.
                    </p>
                    <a href="{{ route('boudhanath') }}" class="btn btn-outline">Learn More</a>
                </div>
            </div>
            
            <div class="card card-hover" data-aos="fade-up" data-aos-delay="200">
                <div class="relative overflow-hidden h-64">
                    <img src="https://images.unsplash.com/photo-1626621797758-e28c10c9e66e?w=600&h=400&fit=crop&q=80" 
                         alt="Kathmandu Durbar Square" 
                         class="w-full h-full object-cover transform transition-transform duration-500 hover:scale-110">
                    <div class="image-overlay"></div>
                    <div class="absolute top-4 left-4 bg-white text-primary-600 px-4 py-2 rounded-full font-bold text-sm">
                        5 km
                    </div>
                </div>
                <div class="p-6">
                    <h3 class="text-2xl font-display font-bold mb-3">Kathmandu Durbar Square</h3>
                    <p class="text-gray-600 mb-4">
                        The cultural, religious and artistic reflection of Kathmandu. 
                        Home to the living goddess Kumari and ancient palace complex.
                    </p>
                    <a href="{{ route('kathmandu-durbar-square') }}" class="btn btn-outline">Learn More</a>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Call to Action -->
<section class="py-20 bg-gradient-to-r from-primary-600 to-accent-600 text-white">
    <div class="container-custom text-center" data-aos="fade-up">
        <h2 class="text-4xl md:text-5xl font-display font-bold mb-6">Ready to Experience Luxury?</h2>
        <p class="text-xl mb-8 max-w-2xl mx-auto">
            Book your stay at Hotel Bardan Boutique and enjoy world-class hospitality in the heart of Kathmandu
        </p>
        <div class="flex flex-col sm:flex-row gap-4 justify-center">
            <a href="{{ route('rooms.index') }}" class="btn bg-white text-primary-600 hover:bg-gray-100 text-lg px-8 py-4">
                View Rooms & Rates
            </a>
            <a href="{{ route('contact.index') }}" class="btn border-2 border-white text-white hover:bg-white hover:text-primary-600 text-lg px-8 py-4">
                Contact Us
            </a>
        </div>
    </div>
</section>
@endsection

