/*
 * Engagement layer: 3D selection info card + WhatsApp consult bar.
 * Placement is coordinated with the accessibility widget (middle of the left
 * edge) so no floating element ever stacks on another.
 */

/* --- Selection info card (over the 3D stage) -------------------------- */

.hp-select-card {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  display: grid;
  gap: 4px;
  max-width: 230px;
  padding: 14px 16px;
  color: var(--hp-forest-950);
  background: rgba(255, 253, 248, 0.97);
  border: 1px solid var(--hp-mint-200);
  border-radius: 14px;
  box-shadow: var(--hp-shadow-raised);
}

.hp-select-card__eyebrow {
  color: var(--hp-bronze);
  font-size: 0.66rem;
  font-weight: 800;
}

.hp-select-card__name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.hp-select-card__action {
  margin-top: 6px;
  min-height: 38px;
  padding: 7px 12px;
  color: var(--hp-paper);
  background: var(--hp-forest-800);
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 0.18s var(--hp-ease);
}

.hp-select-card__action:hover,
.hp-select-card__action:focus-visible {
  background: var(--hp-forest-950);
}

.hp-select-card__close {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--hp-muted);
  background: none;
  border: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.hp-select-card__close:hover {
  color: var(--hp-rust);
}

/* --- WhatsApp consult bar --------------------------------------------- */

.hp-wa {
  position: fixed;
  z-index: 980;
  bottom: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 18px 8px 12px;
  color: var(--hp-forest-950);
  background: var(--hp-paper);
  border: 1px solid var(--hp-mint-200);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(10, 35, 32, 0.28);
  transition: transform 0.18s var(--hp-ease), box-shadow 0.18s var(--hp-ease);
}

.hp-wa:hover,
.hp-wa:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(10, 35, 32, 0.34);
}

.hp-wa__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  color: #ffffff;
  background: #25d366;
  border-radius: 50%;
}

.hp-wa__icon svg {
  width: 24px;
  height: 24px;
}

.hp-wa__copy {
  display: grid;
  gap: 1px;
  text-align: right;
}

.hp-wa__copy b {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
}

.hp-wa__copy small {
  color: var(--hp-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.hp-wa__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--hp-ivory);
  background: var(--hp-forest-800);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
}

@media (max-width: 680px) {
  .hp-wa {
    right: 50%;
    bottom: 12px;
    max-width: min(92vw, 340px);
    min-height: 52px;
    transform: translateX(50%);
  }

  .hp-wa:hover,
  .hp-wa:focus-visible {
    transform: translateX(50%) translateY(-2px);
  }

  .hp-select-card {
    top: 8px;
    right: 8px;
    max-width: 200px;
    padding: 12px 13px;
  }
}

/* --- Care map: the location index attached to the body ---------------- */

.hp-care-map-block {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(183, 204, 198, 0.24);
  border-radius: var(--hp-radius-md);
  background: rgba(1, 18, 15, 0.5);
}

.hp-care-map-block__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
}

.hp-care-map-block__head span {
  color: var(--hp-bronze-light);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.hp-care-map-block__head p {
  margin: 0;
  color: rgba(242, 249, 246, 0.6);
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: left;
}

.hp-care-map {
  height: 300px;
  direction: ltr; /* Leaflet controls are LTR-designed; popups restore RTL. */
}

.hp-care-map .leaflet-container {
  font-family: var(--hp-font-ui);
}

.hp-map-featured .hp-map-featured__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--hp-ivory);
  background: var(--hp-forest-800);
  border: 3px solid var(--hp-bronze-light);
  border-radius: 50% 50% 50% 6px;
  box-shadow: 0 8px 18px rgba(10, 35, 32, 0.45);
  font-size: 1.05rem;
  font-weight: 800;
  transform: rotate(-8deg);
}

.hp-map-pop {
  display: grid;
  gap: 3px;
  min-width: 150px;
  direction: rtl;
  text-align: right;
  font-family: var(--hp-font-ui);
}

.hp-map-pop strong {
  color: var(--hp-forest-950);
  font-size: 0.92rem;
}

.hp-map-pop em {
  color: var(--hp-forest-700);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
}

.hp-map-pop small {
  color: var(--hp-muted);
  font-size: 0.72rem;
}

.hp-map-pop__badge {
  justify-self: start;
  padding: 2px 8px;
  color: var(--hp-bronze);
  background: rgba(223, 193, 123, 0.18);
  border: 1px solid rgba(158, 117, 43, 0.4);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
}

.hp-map-pop__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.hp-map-pop__actions a {
  padding: 5px 12px;
  color: var(--hp-paper);
  background: var(--hp-forest-800);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.hp-map-pop__disclosure {
  margin-top: 3px;
  color: var(--hp-muted);
  font-size: 0.62rem !important;
}

.hp-map-locate {
  padding: 7px 12px;
  color: var(--hp-forest-950);
  background: var(--hp-paper);
  border: 1px solid var(--hp-mint-200);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(10, 35, 32, 0.2);
  font-family: var(--hp-font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 680px) {
  .hp-care-map {
    height: 240px;
  }
}

.hp-map-lbl {
  padding: 2px 8px;
  color: #12332d;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(35, 90, 81, 0.35);
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(10, 35, 32, 0.18);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  direction: rtl;
}
