/* Shared floating WhatsApp quick action for Hilltop public pages. */
.hilltop-whatsapp-cta {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 95;
  display: grid;
  width: 56px;
  height: 56px;
  padding: 5px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(13, 27, 42, 0.14);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(13, 27, 42, 0.2), 0 2px 7px rgba(13, 27, 42, 0.12);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}

.hilltop-whatsapp-cta img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hilltop-whatsapp-cta[data-state="intro"] {
  animation: hilltop-whatsapp-edge-peek 2200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hilltop-whatsapp-cta[data-state="idle"] {
  opacity: 0.35;
  transform: translate3d(13px, 0, 0);
}

.hilltop-whatsapp-cta[data-state="active"],
.hilltop-whatsapp-cta[data-state="interaction"],
.hilltop-whatsapp-cta:is(:focus-visible, :active) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hilltop-whatsapp-cta:focus-visible {
  box-shadow: 0 10px 26px rgba(13, 27, 42, 0.24), 0 3px 9px rgba(13, 27, 42, 0.14);
}

@media (hover: hover) {
  .hilltop-whatsapp-cta:hover {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    box-shadow: 0 10px 26px rgba(13, 27, 42, 0.24), 0 3px 9px rgba(13, 27, 42, 0.14);
  }
}

.hilltop-whatsapp-cta:focus-visible {
  outline: 3px solid #4a5e3a;
  outline-offset: 4px;
}

@keyframes hilltop-whatsapp-edge-peek {
  0%, 12%, 100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  31% {
    opacity: 1;
    transform: translate3d(30px, 0, 0);
  }
  50% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  69% {
    opacity: 1;
    transform: translate3d(24px, 0, 0);
  }
  86% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 767px) {
  .hilltop-whatsapp-cta {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
  }

  .property-details-page .hilltop-whatsapp-cta {
    bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hilltop-whatsapp-cta,
  .hilltop-whatsapp-cta[data-state="intro"] {
    animation: none;
    transition: opacity 160ms ease, box-shadow 160ms ease;
  }

  .hilltop-whatsapp-cta[data-state="idle"] {
    transform: none;
  }
}
