<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://bestcareservices.co.ke/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-post-2.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-expert-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-knowledge-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-products-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-area-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-area-2.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-listing-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-facility-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-item-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-cleaning-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-posts-brand-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-taxonomies-post_format-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-taxonomies-group-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-taxonomies-product_category-1.xml</loc></sitemap><sitemap><loc>https://bestcareservices.co.ke/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
<!-- BESTCARE CHAT START -->
<style>
@keyframes bc_pulse{0%{transform:scale(1);opacity:.6}100%{transform:scale(2.4);opacity:0}}
@keyframes bc_pop{0%{transform:scale(0);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes bc_bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes bc_slide{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:translateX(0)}}
@keyframes bc_blink{0%,100%{opacity:1}50%{opacity:.4}}

#bc_ring{position:fixed;bottom:20px;left:20px;width:54px;height:54px;border-radius:50%;background:rgba(0,61,165,0.25);z-index:2147483645;pointer-events:none;animation:bc_pulse 2s ease-out infinite}

#bc_btn{position:fixed;bottom:20px;left:20px;width:54px;height:54px;border-radius:50%;background:#003DA5;border:3px solid #E31837;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(0,61,165,0.5);z-index:2147483647;padding:0;margin:0;outline:none;animation:bc_pop 0.5s cubic-bezier(.34,1.56,.64,1) both,bc_bounce 2.5s ease-in-out 1.5s infinite}
#bc_btn svg{width:24px;height:24px;fill:#fff;pointer-events:none}

#bc_tip{position:fixed;bottom:28px;left:86px;background:#003DA5;color:#fff;font-family:Arial,sans-serif;font-size:12px;font-weight:700;padding:9px 14px;border-radius:20px;border:2px solid #E31837;white-space:nowrap;z-index:2147483647;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.2);animation:bc_slide 0.5s ease 0.8s both;line-height:1.4}
#bc_tip::before{content:"";position:absolute;left:-8px;top:50%;transform:translateY(-50%);border:7px solid transparent;border-right-color:#E31837;border-left:none}
#bc_tip::after{content:"";position:absolute;left:-5px;top:50%;transform:translateY(-50%);border:6px solid transparent;border-right-color:#003DA5;border-left:none}
#bc_dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4ade80;margin-right:5px;animation:bc_blink 1.5s infinite;vertical-align:middle}

/* Desktop chat box */
#bc_box{display:none;position:fixed;bottom:84px;left:16px;width:360px;height:540px;border-radius:16px;overflow:hidden;box-shadow:0 8px 40px rgba(0,0,0,.25);z-index:2147483647;background:#fff;flex-direction:column}
#bc_box iframe{width:100%;flex:1;border:none;display:block;max-width:none!important;height:100%}

/* Mobile close button - hidden on desktop */
#bc_close_mobile{display:none;position:fixed;top:0;left:0;right:0;background:#003DA5;color:#fff;font-family:Arial,sans-serif;font-size:14px;font-weight:700;padding:14px 16px;z-index:2147483647;align-items:center;justify-content:space-between;border-bottom:3px solid #E31837}
#bc_close_mobile span{display:flex;align-items:center;gap:8px}
#bc_close_btn{background:rgba(255,255,255,0.2);border:2px solid rgba(255,255,255,0.5);color:#fff;border-radius:20px;padding:6px 16px;font-size:13px;font-weight:700;cursor:pointer;font-family:Arial,sans-serif;display:flex;align-items:center;gap:5px}
#bc_close_btn:active{background:rgba(255,255,255,0.35)}

/* Mobile: full screen */
@media(max-width:600px){
  #bc_box{width:100%!important;height:100%!important;bottom:0!important;left:0!important;border-radius:0!important;top:0!important;flex-direction:column!important}
  #bc_close_mobile{display:flex!important}
  #bc_tip{display:none!important}
  #bc_btn,#bc_ring{bottom:16px!important;left:16px!important}
  #bc_box iframe{height:calc(100% - 51px)!important;margin-top:51px!important}
}
</style>

<div id="bc_ring"></div>

<button id="bc_btn" onclick="bcToggle()" title="Chat with Bestcare · 0709 004 600">
  <svg viewBox="0 0 24 24"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/></svg>
</button>

<div id="bc_tip" onclick="bcToggle()">
  <span id="bc_dot"></span>Need help? Chat with us!<br>
  <span style="font-size:10px;opacity:.85;font-weight:400">⚡ Instant reply · 0709 004 600</span>
</div>

<!-- Mobile close bar - appears at top when chat is open on phone -->
<div id="bc_close_mobile">
  <span>
    <svg viewBox="0 0 24 24" style="width:18px;height:18px;fill:#fff"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/></svg>
    Bestcare Assistant
  </span>
  <button id="bc_close_btn" onclick="bcToggle()">
    <svg viewBox="0 0 24 24" style="width:14px;height:14px;fill:#fff;pointer-events:none"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
    Close
  </button>
</div>

<div id="bc_box">
  <iframe src="https://chat.bestcareservices.co.ke/" title="Bestcare Chat" allow="microphone"></iframe>
</div>

<script>
var bcOpen=false;
function bcToggle(){
  bcOpen=!bcOpen;
  var box=document.getElementById("bc_box");
  var btn=document.getElementById("bc_btn");
  var tip=document.getElementById("bc_tip");
  var ring=document.getElementById("bc_ring");
  var closebar=document.getElementById("bc_close_mobile");
  if(bcOpen){
    box.style.display="block";
    btn.style.animation="none";
    btn.innerHTML='<svg viewBox="0 0 24 24" style="width:22px;height:22px;fill:#fff;pointer-events:none"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>';
    if(tip)tip.style.display="none";
    if(ring){ring.style.animation="none";ring.style.opacity="0";}
    // Show mobile close bar
    if(window.innerWidth<=600&&closebar){
      closebar.style.display="flex";
    }
  }else{
    box.style.display="none";
    if(closebar)closebar.style.display="none";
    btn.innerHTML='<svg viewBox="0 0 24 24" style="width:24px;height:24px;fill:#fff;pointer-events:none"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/></svg>';
    btn.style.animation="bc_bounce 2.5s ease-in-out infinite";
  }
}

var msgs=[
  ["⚡ Instant reply · 0709 004 600","Need help? Chat with us!"],
  ["🛠️ 30+ services available","Book a technician today!"],
  ["📍 Nairobi, Embu & all Kenya","We come to you!"],
  ["💰 Free quotes available","Ask us anything!"],
  ["🚨 Emergency service 24/7","We are always here!"]
];
var mi=0;
setInterval(function(){
  var tip=document.getElementById("bc_tip");
  if(!tip||bcOpen)return;
  mi=(mi+1)%msgs.length;
  tip.innerHTML='<span style="display:inline-block;width:7px;height:7px;border-radius:50%;background:#4ade80;margin-right:5px;animation:bc_blink 1.5s infinite;vertical-align:middle"></span>'+msgs[mi][1]+'<br><span style="font-size:10px;opacity:.85;font-weight:400">'+msgs[mi][0]+'</span>';
  tip.onclick=bcToggle;
},4000);

setTimeout(function(){
  var tip=document.getElementById("bc_tip");
  if(tip&&!bcOpen){
    tip.style.transition="opacity .5s";
    tip.style.opacity="0";
    setTimeout(function(){if(tip)tip.remove();},500);
  }
  var ring=document.getElementById("bc_ring");
  if(ring&&!bcOpen)ring.style.animation="none";
},20000);

document.addEventListener("keydown",function(e){if(e.key==="Escape"&&bcOpen)bcToggle();});
</script>
<!-- BESTCARE CHAT END -->