<!-- ======= Footer ======= -->
<footer class="footer">
    <div class="container">
        <div class="row footer-top">
            <?php echo do_shortcode('[newsletter]');?>
            <div class="row">
            <div class="col-12 col-md-4 text-center">
                <h4>Useful links</h4>
                <ul>
                    <li><a href="#">Uganda Packages</a></li>
                    <li><a href="#">Rwanda Packages</a></li>
                    <li><a href="#">Experiences</a></li>
                    <li><a href="#">Design a Trip</a></li>
                </ul>
            </div>
            <div class="col-12 col-md-4 text-center">
                <h4>Location</h4>
                <p>Room no. F 38, 1st Floor</p>
                <p>Kampala Boulevard Building</p>
                <p>Kampala Road, City Centre</p>
                <p>Box 33590, Kampala Uganda</p>
            </div>
            <div class="col-12 col-md-4 text-center">
                <h4>Contacts</h4>
                <p><i class="bi bi-globe"></i> : www.brecosafaris.com</p>
                <p><i class="bi bi-whatsapp"></i> : +266782884933</p>
                <p><i class="bi bi-envelope"></i> : brecosafaris@gmail.com<br>   sales@brecosafaris.com, <br> info@brecosafaris.com</p>
            </div>
        </div>
        </div><!-- Row !-->
        
        <div class="row copyright">
            <div class="col-sm-6">
                Copyright &copy;<?php echo date("Y") ?>  <span><?php bloginfo('name'); ?></span>. All Rights Reserved  
                &nbsp;&nbsp;&nbsp;<small> Designed: <a href="https://www.lwegatech.com" target="_blank" title="LWEGATECH">Lwegatech</a></small>
            </div>
            <div class="col-sm-6 footer-policy"><?php  dynamic_sidebar('footerd');?></div>
        </div> <!-- Row !-->

      <div class="credits">
        <a href="#top" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
      </div>
    </div>
    </footer><!-- End Footer -->
  </main>
	</div><!-- Main Area !-->
</div><!-- Wrapper !-->
<?php wp_footer(); ?>
   


<script>
document.addEventListener('DOMContentLoaded', function() {
    const btnOpenOffcanvasList = document.querySelectorAll('.btn-open-offcanvas');

    btnOpenOffcanvasList.forEach(btn => {
        btn.addEventListener('click', function() {
            const postId = this.getAttribute('data-post-id');
            const offcanvasContent = document.getElementById('offcanvas-content');

            // Use AJAX to fetch post content
            const xhr = new XMLHttpRequest();
            xhr.onreadystatechange = function() {
                if (xhr.readyState === 4 && xhr.status === 200) {
                    offcanvasContent.innerHTML = xhr.responseText;
                }
            };
            xhr.open('GET', '<?php echo admin_url('admin-ajax.php'); ?>?action=get_post_content&post_id=' + postId, true);
            xhr.send();
        });
    });
});
</script>
<script>
        jQuery(document).ready(function($) {
            $('#downloads-table').DataTable({
                // DataTables options here
                "paging": true,
                "searching": true,
                // Add more options as needed
            });
        });
    </script>
<script>
    (function (w, d, s, u) {
    w.gbwawc = {
    url: u,
    options: {
            waId: "+256758948230",
            siteName: "Breco Safaris",
            siteTag: "",
            siteLogo: "https://lwegatech.net/brecosafaris/wp-content/uploads/2025/08/cropped-Breco-Safaris-logo.gif",
            widgetPosition: "RIGHT",
            triggerMessage: "Talk to Us!",
            welcomeMessage: "How can I help you?",
            brandColor: "#25D366",
            messageText: "",
            replyOptions: ['',''],
        },
    };
    var h = d.getElementsByTagName(s)[0],
    j = d.createElement(s);
    j.async = true;
    j.src = u + "/whatsapp-widget.min.js?_=" + Math.random();
    h.parentNode.insertBefore(j, h);
    })(window, document, "script", "https://waw.gallabox.com");
    </script>