    <!-- Footer -->
    <footer class="footer">
        <div class="container">
            <div class="footer-grid">
                <div class="footer-col">
                    <?php if (($settings['logo_type'] ?? 'image') === 'text'): ?>
                        <?php $textLogo = $settings['text_logo'] ?? 'Traveler'; ?>
                        <?php $textLogoFont = $settings['text_logo_font'] ?? 'Playfair Display'; ?>
                        <?php $textLogoSize = $settings['text_logo_size'] ?? '24'; ?>
                        <?php $textLogoColor = $settings['text_logo_color'] ?? '#FF6B35'; ?>
                        <span class="brand-text text-logo" style="font-family: '<?= htmlspecialchars($textLogoFont, ENT_QUOTES, 'UTF-8') ?>', serif; font-size: <?= htmlspecialchars($textLogoSize, ENT_QUOTES, 'UTF-8') ?>px; color: <?= htmlspecialchars($textLogoColor, ENT_QUOTES, 'UTF-8') ?>;">
                            <?= htmlspecialchars($textLogo, ENT_QUOTES, 'UTF-8') ?>
                        </span>
                    <?php else: ?>
                        <?php $logoImage = $settings['site_logo'] ?? ''; ?>
                        <?php if (!empty($logoImage) && file_exists(UPLOAD_PATH . 'general/' . $logoImage)): ?>
                            <img src="<?= htmlspecialchars(UPLOAD_URL . 'general/' . $logoImage, ENT_QUOTES, 'UTF-8') ?>" alt="<?= htmlspecialchars($settings['site_name'] ?? 'Logo', ENT_QUOTES, 'UTF-8') ?>" style="max-height:50px; margin-bottom:15px;">
                        <?php else: ?>
                            <span class="brand-text">Travel<span>er</span></span>
                        <?php endif; ?>
                    <?php endif; ?>
                    <p>Discover the world's most amazing destinations with our carefully curated tour packages. We make your travel dreams come true with unforgettable experiences.</p>
                    <div class="footer-social">
                        <a href="#"><i class="fab fa-facebook-f"></i></a>
                        <a href="#"><i class="fab fa-twitter"></i></a>
                        <a href="#"><i class="fab fa-instagram"></i></a>
                        <a href="#"><i class="fab fa-youtube"></i></a>
                    </div>
                </div>
                
                <div class="footer-col">
                    <h4>Quick Links</h4>
                    <ul class="footer-links">
                        <li><a href="<?= BASE_URL ?>"><i class="fas fa-chevron-right"></i> Home</a></li>
                        <li><a href="<?= BASE_URL ?>packages.php"><i class="fas fa-chevron-right"></i> Tour Packages</a></li>
                        <li><a href="<?= BASE_URL ?>places.php"><i class="fas fa-chevron-right"></i> Destinations</a></li>
                        <li><a href="<?= BASE_URL ?>about.php"><i class="fas fa-chevron-right"></i> About Us</a></li>
                        <li><a href="<?= BASE_URL ?>contact.php"><i class="fas fa-chevron-right"></i> Contact Us</a></li>
                    </ul>
                </div>
                
                <div class="footer-col">
                    <h4>Top Destinations</h4>
                    <ul class="footer-links">
                        <li><a href="<?= BASE_URL ?>place.php?slug=goa"><i class="fas fa-chevron-right"></i> Goa</a></li>
                        <li><a href="<?= BASE_URL ?>place.php?slug=manali"><i class="fas fa-chevron-right"></i> Manali</a></li>
                        <li><a href="<?= BASE_URL ?>place.php?slug=kerala"><i class="fas fa-chevron-right"></i> Kerala</a></li>
                        <li><a href="<?= BASE_URL ?>place.php?slug=rajasthan"><i class="fas fa-chevron-right"></i> Rajasthan</a></li>
                        <li><a href="<?= BASE_URL ?>place.php?slug=ladakh"><i class="fas fa-chevron-right"></i> Ladakh</a></li>
                    </ul>
                </div>
                
                <div class="footer-col">
                    <h4>Contact Info</h4>
                    <ul class="footer-contact">
                        <li>
                            <i class="fas fa-map-marker-alt"></i>
                            <span><?= htmlspecialchars($settings['site_address'] ?? '123 Travel Street, Mumbai, India', ENT_QUOTES, 'UTF-8') ?></span>
                        </li>
                        <li>
                            <i class="fas fa-phone"></i>
                            <span><?= htmlspecialchars($settings['site_phone'] ?? '+91 98765 43210', ENT_QUOTES, 'UTF-8') ?></span>
                        </li>
                        <li>
                            <i class="fas fa-envelope"></i>
                            <span><?= htmlspecialchars($settings['site_email'] ?? 'info@traveler.com', ENT_QUOTES, 'UTF-8') ?></span>
                        </li>
                    </ul>
                </div>
            </div>
            
            <div class="footer-bottom">
                <p>&copy; <?= date('Y') ?> <?= htmlspecialchars($settings['site_name'] ?? 'Traveler', ENT_QUOTES, 'UTF-8') ?>. All Rights Reserved. Designed by <a href="https://nearbymade.in" target="_blank" rel="noopener noreferrer">NearbyMade</a></p>
            </div>
        </div>
    </footer>

    <!-- WhatsApp Floating Button -->
    <?php $whatsapp = $settings['whatsapp_number'] ?? ''; ?>
    <?php if ($whatsapp): ?>
        <a href="https://wa.me/<?= preg_replace('/[^0-9]/', '', $whatsapp) ?>" target="_blank" class="whatsapp-float" title="Chat on WhatsApp">
            <i class="fab fa-whatsapp"></i>
        </a>
    <?php endif; ?>

    <!-- Back to Top Button -->
    <button class="back-to-top" title="Back to Top">
        <i class="fas fa-arrow-up"></i>
    </button>

    <!-- JavaScript -->
    <script src="<?= BASE_URL ?>assets/js/main.js"></script>
    
    <?php if (isset($extraJS)): ?>
        <?php foreach ($extraJS as $js): ?>
            <script src="<?= $js ?>"></script>
        <?php endforeach; ?>
    <?php endif; ?>
</body>
</html>
