<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Booking Confirmation</title>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
        
        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f7fafc;
            margin: 0;
            padding: 0;
        }
        
        .email-container {
            max-width: 600px;
            margin: 0 auto;
            background: #ffffff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .header {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            padding: 30px 20px;
            text-align: center;
            color: white;
        }
        
        .logo {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 10px;
        }
        
        .content {
            padding: 30px;
        }
        
        h1 {
            color: #1e40af;
            font-size: 24px;
            margin-top: 0;
        }
        
        .booking-details {
            background: #f8fafc;
            border-radius: 6px;
            padding: 20px;
            margin: 20px 0;
        }
        
        .detail-row {
            display: flex;
            margin-bottom: 10px;
        }
        
        .detail-label {
            font-weight: 600;
            width: 150px;
            color: #4b5563;
        }
        
        .detail-value {
            flex: 1;
            color: #1f2937;
        }
        
        .cta-button {
            display: inline-block;
            background: #3b82f6;
            color: white !important;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 6px;
            font-weight: 600;
            margin: 20px 0;
            text-align: center;
        }
        
        .footer {
            text-align: center;
            padding: 20px;
            font-size: 12px;
            color: #6b7280;
            background: #f9fafb;
        }
        
        .divider {
            height: 1px;
            background: #e5e7eb;
            margin: 20px 0;
        }
        
        .thank-you {
            font-size: 18px;
            font-weight: 600;
            color: #1e40af;
            margin-bottom: 20px;
        }
        
        .package-image {
            width: 100%;
            border-radius: 6px;
            margin-bottom: 20px;
            height: 200px;
            object-fit: cover;
        }
    </style>
</head>
<body>
    <div class="email-container">
        <div class="header">
            <div class="logo">{{ config('app.name') }}</div>
            <h2>Booking Confirmation</h2>
        </div>
        
        <div class="content">
            <p class="thank-you">Thank you for your booking, {{ $booking->customer_name }}!</p>
            <p>We're excited to help you explore new destinations. Below are your booking details:</p>
            
            <div class="booking-details">
                <div class="detail-row">
                    <div class="detail-label">Booking Reference:</div>
                    <div class="detail-value">{{ $booking->booking_reference }}</div>
                </div>
                <div class="detail-row">
                    <div class="detail-label">Package:</div>
                    <div class="detail-value">{{ $booking->package->name ?? 'Tour Package' }}</div>
                </div>
                <div class="detail-row">
                    <div class="detail-label">Travel Dates:</div>
                    <div class="detail-value">
                        {{ \Carbon\Carbon::parse($booking->start_date)->format('M d, Y') }} - 
                        {{ \Carbon\Carbon::parse($booking->end_date)->format('M d, Y') }}
                    </div>
                </div>
                <div class="detail-row">
                    <div class="detail-label">Travelers:</div>
                    <div class="detail-value">
                        {{ $booking->adults }} Adult(s), {{ $booking->children }} Child(ren)
                    </div>
                </div>
                <div class="detail-row">
                    <div class="detail-label">Total Amount:</div>
                    <div class="detail-value">
                        {{ number_format($booking->total_price, 2) }} {{ $booking->currency }}
                    </div>
                </div>
                <div class="detail-row">
                    <div class="detail-label">Payment Status:</div>
                    <div class="detail-value" style="color: #10b981; font-weight: 600;">
                        Paid 
                    </div>
                </div>
            </div>
            
            <div class="divider"></div>
            
            <h3>What's Next?</h3>
            <p>Our team will contact you within 24 hours to confirm your itinerary and provide additional details about your trip.</p>
            
            <p>If you have any questions or special requests, please don't hesitate to reply to this email or contact our customer support.</p>
            
            <a href="{{ config('app.url') }}/my-bookings" class="cta-button">View Your Booking</a>
            
            <p>We wish you a wonderful journey!</p>
            <p>The {{ config('app.name') }} Team</p>
        </div>
        
        <div class="footer">
            <p>&copy; {{ date('Y') }} {{ config('app.name') }}. All rights reserved.</p>
            <p>
                <a href="{{ config('app.url') }}/terms" style="color: #6b7280; text-decoration: none;">Terms of Service</a> | 
                <a href="{{ config('app.url') }}/privacy" style="color: #6b7280; text-decoration: none;">Privacy Policy</a>
            </p>
            <p>{{ config('app.name') }} | No 45, Kandy road, | Colombo 05</p>
        </div>
    </div>
</body>
</html>