/* =========================================================
   Bamboo Banks – mobile header fixes + call button
   Loaded on every page. Only affects screens up to 767px wide.
   ========================================================= */
@media (max-width: 767px) {

  /* 1. Hamburger menu: on the home page the menu opened but was
        clipped (hidden) by "overflow: hidden" on the header block. */
  html body .header-nav {
    overflow: visible !important;
    z-index: 998 !important; /* above the banner, below the top bar */
  }
  html body .header-nav .navbar-collapse.in,
  html body .header-nav .navbar-collapse.show {
    position: relative !important;
    z-index: 1001 !important;
    background: #fff !important;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .25);
  }

  /* 2. BOOK NOW floats (fixed) at the top right and sat on the hamburger –
        move it down below the hamburger; the hamburger stays where it is */
  html body .topbar [data-component="button"] {
    top: 122px !important;
  }
  html body .topbar .btn-wide {
    margin-top: 0 !important;
  }
  html body .header-nav .navbar-toggle {
    z-index: 10002 !important;
  }

  /* 3. Logo was too small – make it larger and give it proper spacing */
  html body .yummy .navbar.sbpro-navbar-centered .navbar-header img,
  html body .header-nav .navbar-header img,
  html body #navbar5 .navbar-header img {
    width: 118px !important;
    max-width: 118px !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 0 4px 15px !important;
  }
  html body .header-nav .navbar-header {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  html body .header-nav .navbar-header > div[data-component="image"] {
    margin: 0 !important;
    text-align: left !important;
  }
  html body .header-nav .navbar,
  html body .header-nav .navbar-plain {
    max-height: none !important;
  }
  html body .header-nav#navbar5 {
    padding-bottom: 14px !important;
  }

  /* 4. Amenities: the electric-car icon is a 512px image and blew up
        to half the screen – keep every amenity icon the same size */
  html body .lhAmenitiList { align-items: center; }
  html body .lhAmenitiList > [class*="col-md-2"] {
    flex: 0 0 76px; max-width: 76px; padding-right: 0;
  }
  html body .lhAmenitiList > [class*="col-md-10"] { flex: 1 1 auto; min-width: 0; }
  html body .lhAmenitiList img {
    width: 56px !important; height: 56px !important;
    min-width: 0 !important; min-height: 0 !important;
    object-fit: contain;
  }
  html body .lhAmenitiList h4 { font-size: 17px !important; line-height: 1.35; }

  /* 5. Red "Call" button sits just above WhatsApp, both near the bottom */
  html body #bb-call-button {
    position: fixed;
    right: 14px;
    bottom: 88px;            /* 18px + 56px WhatsApp + 14px gap */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e02424;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(224, 36, 36, .45);
    z-index: 2147483639;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  #bb-call-button svg { width: 26px; height: 26px; fill: #fff; position: relative; z-index: 1; animation: bbRing 2.4s ease-in-out infinite; }
  #bb-call-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #e02424;
    animation: bbPulse 2s ease-out infinite;
  }
  #bb-call-button:active { transform: scale(.94); }
}

/* Call button is mobile only */
@media (min-width: 768px) {
  #bb-call-button { display: none !important; }
}

@keyframes bbPulse {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes bbRing {
  0%, 60%, 100% { transform: rotate(0); }
  65% { transform: rotate(-14deg); }
  70% { transform: rotate(14deg); }
  75% { transform: rotate(-10deg); }
  80% { transform: rotate(10deg); }
  85% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  #bb-call-button::before, #bb-call-button svg { animation: none; }
}

/* Amenities on all screen sizes: make the large electric-car icon match the 64px icons */
.lhAmenitiList img { max-width: 64px; height: auto; object-fit: contain; }

/* ---------- WhatsApp button (all screen sizes) ----------
   Same style as the call button: round, soft pulse, gentle wiggle. */
html body #whatsapp-message {
  position: fixed !important;
  right: 14px !important;
  bottom: 18px !important;
  margin: 0 !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50%;
  background: #25d366 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .45);
  z-index: 2147483639;
  text-decoration: none;
  transform: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s ease, box-shadow .25s ease !important;
}
#whatsapp-message svg { width: 30px; height: 30px; fill: #fff; position: relative; z-index: 1; animation: bbWiggle 3s ease-in-out infinite 1.2s; }
#whatsapp-message::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: bbPulse 2s ease-out infinite 1s;
}
#whatsapp-message:hover { transform: scale(1.08) !important; box-shadow: 0 10px 22px rgba(37, 211, 102, .55); }
#whatsapp-message:active { transform: scale(.94) !important; }
@media (min-width: 768px) {
  html body #whatsapp-message { right: 22px !important; bottom: 24px !important; width: 60px !important; height: 60px !important; }
  #whatsapp-message svg { width: 32px; height: 32px; }
}
@keyframes bbWiggle {
  0%, 70%, 100% { transform: rotate(0) scale(1); }
  74% { transform: rotate(-12deg) scale(1.08); }
  78% { transform: rotate(12deg) scale(1.08); }
  82% { transform: rotate(-8deg) scale(1.05); }
  86% { transform: rotate(6deg) scale(1.03); }
  90% { transform: rotate(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #whatsapp-message::before, #whatsapp-message svg { animation: none; }
}
