/* APE WhatsApp Channel CTA styles - corrected production version */

.apx-wa-premium {
  margin: 34px 0 24px;
}

.apx-wa-premium__card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 34px;
  border-radius: 26px;
  background: linear-gradient(135deg, #052e2b 0%, #064e3b 48%, #0f766e 100%);
  box-shadow: 0 18px 45px rgba(2, 44, 34, .18);
  color: #fff;
}

.apx-wa-premium__card::before {
  content: "";
  position: absolute;
  top: -92px;
  right: -92px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}

.apx-wa-premium__content,
.apx-wa-premium__action {
  position: relative;
  z-index: 1;
}

.apx-wa-premium__content {
  flex: 1 1 auto;
  min-width: 0;
}

.apx-wa-premium__tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.25;
  text-transform: uppercase;
}

.apx-wa-premium h2 {
  margin: 16px 0 10px;
  max-width: 760px;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.08;
  font-weight: 950;
  color: #fff;
}

.apx-wa-premium__lead {
  margin: 0;
  max-width: 860px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.02rem;
  line-height: 1.65;
}

.apx-wa-premium__features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.apx-wa-premium__features span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.apx-wa-premium__action {
  flex: 0 0 300px;
  text-align: center;
}

.apx-wa-premium__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #25d366;
  color: #052e16 !important;
  font-weight: 950;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .26);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.apx-wa-premium__btn:hover,
.apx-wa-premium__btn:focus {
  transform: translateY(-2px);
  background: #39e079;
  color: #052e16 !important;
  box-shadow: 0 16px 34px rgba(37, 211, 102, .34);
}

.apx-wa-premium__note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .74);
  font-weight: 800;
  font-size: .92rem;
}

/* Property detail CTA */
.apx-wa-property {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  border: 1px solid #bbf7d0;
  box-shadow: 0 8px 24px rgba(15, 118, 110, .08);
}

.apx-wa-property__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
}

.apx-wa-property__content {
  flex: 1 1 auto;
  min-width: 0;
}

.apx-wa-property h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #064e3b;
}

.apx-wa-property p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.apx-wa-property__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.apx-wa-property__chips span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d1fae5;
  color: #065f46;
  font-size: .82rem;
  font-weight: 800;
}

.apx-wa-property__action {
  flex: 0 0 auto;
}

.apx-wa-property__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #052e16 !important;
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;
}

.apx-wa-property__btn:hover,
.apx-wa-property__btn:focus {
  background: #39e079;
  color: #052e16 !important;
}

/* Use only this floating pill. Remove/disable any older floating round WhatsApp button. */
.apx-wa-floating {
    position: fixed;
    right: 26px;
    bottom: 145px; /* moved above map/agent icons */
    z-index: 9997;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #25d366;
    color: #052e16 !important;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.apx-wa-floating:hover,
.apx-wa-floating:focus {
  transform: translateY(-2px);
  background: #39e079;
  color: #052e16 !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .26);
}

.apx-wa-floating i {
  font-size: 1.15rem;
}

/* Tablet */
@media (max-width: 991.98px) {
  .apx-wa-premium {
    margin: 28px 0 20px;
  }

  .apx-wa-premium__card {
    padding: 32px 26px;
    gap: 22px;
  }

  .apx-wa-premium__action {
    flex-basis: 260px;
  }

  .apx-wa-premium h2 {
    font-size: clamp(26px, 4.5vw, 38px);
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .apx-wa-premium {
    margin: 24px 8px 18px;
  }

  .apx-wa-premium__card {
    display: block;
    padding: 26px 18px 24px;
    border-radius: 22px;
  }

  .apx-wa-premium__card::before {
    top: -92px;
    right: -122px;
    width: 250px;
    height: 250px;
  }

  .apx-wa-premium__tag {
    padding: 6px 10px;
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: .035em;
  }

  .apx-wa-premium h2 {
    margin-top: 14px;
    font-size: 24px;
    line-height: 1.12;
  }

  .apx-wa-premium__lead {
    font-size: .94rem;
    line-height: 1.6;
  }

  .apx-wa-premium__features {
    gap: 7px;
    margin-top: 18px;
  }

  .apx-wa-premium__features span {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Keep mobile clean: show only first 3 chips */
  .apx-wa-premium__features span:nth-child(n+4) {
    display: none;
  }

  .apx-wa-premium__action {
    margin-top: 20px;
    min-width: 0;
  }

  .apx-wa-premium__btn {
    min-height: 48px;
    padding: 12px 16px;
  }

  .apx-wa-premium__note {
    font-size: .84rem;
  }

  .apx-wa-property {
    display: block;
    text-align: left;
    padding: 18px;
  }

  .apx-wa-property__icon {
    margin-bottom: 12px;
  }

  .apx-wa-property__action {
    margin-top: 14px;
  }

  .apx-wa-property__btn {
    width: 100%;
  }

.apx-wa-floating {
        right: 16px;
        bottom: 135px; /* mobile: keep above map/agent buttons */
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
     .apx-wa-floating span {
        display: none;
    }

    .apx-wa-floating i {
        font-size: 1.25rem;
    }
}

/* Very small phones */
@media (max-width: 380px) {
  .apx-wa-premium h2 {
    font-size: 22px;
  }

  .apx-wa-premium__features span {
    font-size: 10.5px;
    padding: 6px 8px;
  }

  .apx-wa-floating span {
    display: none;
  }

  .apx-wa-floating {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 575.98px){
  .apx-wa-floating{
    right: 12px;
    bottom: 145px;
  }
}