<?php require_once __DIR__ . '/includes/auth.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Gallery - Oldage Home</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <?php include 'includes/header.php'; ?>

    <section class="hero-section" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 50vh;">
        <div class="container">
            <div class="row">
                <div class="col text-center">
                    <h1 class="display-4 fw-bold text-white mb-4">Our Gallery</h1>
                    <p class="lead text-white">Take a virtual tour of Oldage Home and see our beautiful facilities</p>
                </div>
            </div>
        </div>
    </section>

    <section class="py-5">
        <div class="container">
            <div class="row mb-4">
                <div class="col">
                    <ul class="nav nav-pills justify-content-center" id="galleryTabs" role="tablist">
                        <li class="nav-item" role="presentation">
                            <button class="nav-link active" id="all-tab" data-bs-toggle="pill" data-bs-target="#all" type="button" role="tab">All</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link" id="rooms-tab" data-bs-toggle="pill" data-bs-target="#rooms" type="button" role="tab">Rooms</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link" id="facilities-tab" data-bs-toggle="pill" data-bs-target="#facilities" type="button" role="tab">Facilities</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link" id="activities-tab" data-bs-toggle="pill" data-bs-target="#activities" type="button" role="tab">Activities</button>
                        </li>
                    </ul>
                </div>
            </div>

            <div class="tab-content" id="galleryTabContent">
                <div class="tab-pane fade show active" id="all" role="tabpanel">
                    <div class="row g-4">
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/gallery1.jpg" alt="Comfortable room" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Comfortable+Room'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/gallery2.jpg" alt="Dining area" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Dining+Area'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/gallery3.jpg" alt="Garden" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Garden'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/gallery4.jpg" alt="Activity room" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Activity+Room'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/gallery5.jpg" alt="Library" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Library'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/gallery6.jpg" alt="Recreational area" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Recreational+Area'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/gallery7.jpg" alt="Medical facility" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Medical+Facility'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/gallery8.jpg" alt="Group activity" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Group+Activity'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/gallery9.jpg" alt="Outdoor space" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Outdoor+Space'">
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade" id="rooms" role="tabpanel">
                    <div class="row g-4">
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/room1.jpg" alt="Private room" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Private+Room'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/room2.jpg" alt="Semi-private room" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Semi-Private+Room'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/room3.jpg" alt="Room amenities" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Room+Amenities'">
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade" id="facilities" role="tabpanel">
                    <div class="row g-4">
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/dining-hall.jpg" alt="Dining hall" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Dining+Hall'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/gym.jpg" alt="Exercise facility" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Exercise+Facility'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/medical-center.jpg" alt="Medical center" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Medical+Center'">
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade" id="activities" role="tabpanel">
                    <div class="row g-4">
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/arts-crafts.jpg" alt="Arts and crafts" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Arts+and+Crafts'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/music.jpg" alt="Music session" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Music+Session'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/outdoor-activity.jpg" alt="Outdoor activity" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Outdoor+Activity'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/group-activity.jpg" alt="Group activity" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Group+Activity'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/senior-gathering.jpg" alt="Senior gathering" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Senior+Gathering'">
                        </div>
                        <div class="col-md-6 col-lg-4 gallery-item">
                            <img src="images/care-moment.jpg" alt="Care moment" class="img-fluid" onerror="this.src='https://via.placeholder.com/400x300?text=Care+Moment'">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <section class="bg-light py-5">
        <div class="container">
            <div class="row text-center">
                <div class="col">
                    <h2 class="fw-bold mb-4">Virtual Tour</h2>
                    <p class="mb-4">Experience Oldage Home through our interactive virtual tour</p>
                    <a href="#" class="btn btn-primary btn-lg">Start Virtual Tour</a>
                </div>
            </div>
        </div>
    </section>

    <?php include 'includes/footer.php'; ?>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script src="js/main.js"></script>
</body>
</html>
