
// === UX IMPROVEMENTS ===

// --- Trust Bar: sticky bottom bar with social proof (homepage + listing pages) ---
add_action('wp_footer', function() {
    if (!is_front_page() && !is_singular('listing')) return;
    echo '<div id="boatify-trust-bar"><div class="btb-inner">';
    echo '<span>⭐ <strong>4.9/5</strong> verified reviews</span>';
    echo '<span class="btb-sep">|</span>';
    echo '<span>🚢 <strong>10,000+</strong> trips booked</span>';
    echo '<span class="btb-sep">|</span>';
    echo '<span>🔒 <strong>Secure</strong> instant booking</span>';
    echo '<span class="btb-sep">|</span>';
    echo '<span>📞 <strong>24/7</strong> customer support</span>';
    echo '</div></div>';
}, 100);

add_action('wp_head', function() {
    if (!is_front_page() && !is_singular('listing')) return;
    echo '<style>
#boatify-trust-bar{position:fixed;bottom:0;left:0;right:0;background:#1a3c5e;color:#fff;z-index:9990;padding:10px 20px;text-align:center;font-size:13px;box-shadow:0 -2px 10px rgba(0,0,0,.2);}
.btb-inner{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;}
.btb-sep{opacity:.35;}
body{padding-bottom:50px!important;}
@media(max-width:600px){#boatify-trust-bar{font-size:11px;padding:8px 10px;}}
</style>';
}, 99);

// --- How It Works section: inject on homepage via wp_footer ---
add_action('wp_footer', function() {
    if (!is_front_page()) return;
    echo '<div id="boatify-hiw" style="display:none">
<div class="bhiw-wrap">
<h2 class="bhiw-h">How Boatify Works</h2>
<p class="bhiw-sub">Get on the water in 3 simple steps</p>
<div class="bhiw-steps">
<div class="bhiw-step"><div class="bhiw-ico">🔍</div><h3>1. Search</h3><p>Browse 500+ verified boats across Dubai, Ibiza, Aqaba and beyond.</p></div>
<div class="bhiw-step"><div class="bhiw-ico">📅</div><h3>2. Book Instantly</h3><p>Choose your date and confirm online in minutes. Instant confirmation guaranteed.</p></div>
<div class="bhiw-step"><div class="bhiw-ico">⛵</div><h3>3. Set Sail</h3><p>Meet your captain at the marina. 24/7 support throughout your adventure.</p></div>
</div>
<a href="/find-a-boat/" class="bhiw-cta">Find Your Perfect Boat →</a>
</div></div>';
    echo '<style>
#boatify-hiw{background:#f4f8fc;padding:70px 20px;text-align:center;border-top:1px solid #e0eaf5;}
.bhiw-wrap{max-width:960px;margin:0 auto;}
.bhiw-h{font-size:32px;font-weight:700;color:#1a3c5e;margin-bottom:10px;}
.bhiw-sub{font-size:16px;color:#6b7b8d;margin-bottom:50px;}
.bhiw-steps{display:flex;justify-content:center;gap:30px;flex-wrap:wrap;margin-bottom:40px;}
.bhiw-step{flex:1;min-width:220px;max-width:280px;padding:30px 24px;background:#fff;border-radius:14px;box-shadow:0 4px 20px rgba(0,0,0,.07);}
.bhiw-ico{font-size:42px;margin-bottom:14px;}
.bhiw-step h3{font-size:18px;font-weight:700;color:#1a3c5e;margin-bottom:10px;}
.bhiw-step p{font-size:14px;color:#6b7b8d;line-height:1.65;}
.bhiw-cta{display:inline-block;background:#e8a020;color:#fff;padding:15px 40px;border-radius:50px;font-weight:700;font-size:16px;text-decoration:none;transition:background .2s;}
.bhiw-cta:hover{background:#cf8e18;color:#fff;}
@media(max-width:640px){.bhiw-steps{flex-direction:column;align-items:center;}.bhiw-step{max-width:100%;width:100%;}.bhiw-h{font-size:24px;}}
</style>';
    echo '<script>
document.addEventListener("DOMContentLoaded",function(){
  var hiw=document.getElementById("boatify-hiw");
  if(!hiw) return;
  var secs=document.querySelectorAll(".elementor-section,.e-con");
  if(secs.length>=2){
    var ref=secs[1];
    ref.parentNode.insertBefore(hiw,ref.nextSibling);
  } else {
    var f=document.querySelector("footer,#footer,.footer-wrapper");
    if(f) f.parentNode.insertBefore(hiw,f);
  }
  hiw.style.display="block";
});
</script>';
}, 98);
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//boatifyrentals.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://boatifyrentals.com/post-sitemap.xml</loc>
		<lastmod>2025-03-29T16:34:04+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/page-sitemap.xml</loc>
		<lastmod>2026-05-14T05:22:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/listing-sitemap.xml</loc>
		<lastmod>2026-04-09T13:18:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/product-sitemap.xml</loc>
		<lastmod>2026-04-09T13:18:49+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/docs-sitemap.xml</loc>
		<lastmod>2024-10-03T06:42:30+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/mailpoet_page-sitemap.xml</loc>
		<lastmod>2025-01-29T18:53:40+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/testimonial-sitemap.xml</loc>
		<lastmod>2024-09-08T06:54:50+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/category-sitemap.xml</loc>
		<lastmod>2025-03-29T16:34:04+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/listing_category-sitemap.xml</loc>
		<lastmod>2026-04-09T13:18:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/service_category-sitemap.xml</loc>
		<lastmod>2026-04-09T13:18:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/rental_category-sitemap.xml</loc>
		<lastmod>2025-07-31T16:47:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/classifieds_category-sitemap.xml</loc>
		<lastmod>2024-10-16T19:24:39+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/listing_feature-sitemap.xml</loc>
		<lastmod>2026-01-16T16:15:20+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/region-sitemap.xml</loc>
		<lastmod>2025-07-31T16:47:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://boatifyrentals.com/product_cat-sitemap.xml</loc>
		<lastmod>2026-04-09T13:18:49+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->