/**
 * LaMilka Tour 0.4.83 — native mobile WhatsApp behavior.
 *
 * - Removes the legacy Click-to-Chat floating handset only on pages that
 *   already provide a native LaMilka WhatsApp control.
 * - Keeps the homepage hero free of floating controls.
 * - Reveals one transparent green outline bubble when the Private Tours
 *   category section first reaches the viewport.
 * - Leaves links, booking actions, content cards and desktop navigation intact.
 */

/* The installed Click-to-Chat widget is the obsolete phone-handset control. */
body.lamilka-home .ht-ctc-chat,
body.lamilka-home #ht-ctc-chat,
body.lamilka-tour-detail .ht-ctc-chat,
body.lamilka-tour-detail #ht-ctc-chat,
body.lamilka-transfers-page .ht-ctc-chat,
body.lamilka-transfers-page #ht-ctc-chat,
body.lamilka-private-tours-page .ht-ctc-chat,
body.lamilka-private-tours-page #ht-ctc-chat,
body.lamilka-aesthetic-page .ht-ctc-chat,
body.lamilka-aesthetic-page #ht-ctc-chat,
body.lamilka-contact-page .ht-ctc-chat,
body.lamilka-contact-page #ht-ctc-chat,
[data-lamilka-suppressed-whatsapp="true"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.lamilka-home-mobile-whatsapp {
  display: none;
}

@media (max-width: 767px) {
  .lamilka-home-mobile-whatsapp {
    position: fixed;
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom) + 16px);
    z-index: 99980;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: transparent;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  }

  .lamilka-home-mobile-whatsapp::before {
    content: "";
    display: block;
    width: 56px;
    height: 56px;
    background: url("../icons/whatsapp-chat-outline-green.png") center / contain no-repeat;
  }

  .lamilka-home-mobile-whatsapp > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .lamilka-home-mobile-whatsapp.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .lamilka-home-mobile-whatsapp:focus-visible {
    outline: 3px solid #0a192f;
    outline-offset: 3px;
  }

  @media (prefers-reduced-motion: reduce) {
    .lamilka-home-mobile-whatsapp {
      transition: none;
    }
  }
}
