/**
 * HCH results-map price pills and marker cards (gmaps-kit 1.3).
 * Presentation only: paints the saved card price onto map markers and
 * opens a listing card. It does not change titles, meta, H1, URLs,
 * canonicals, robots, phones, prices, booking, payments, or the database.
 * Off when the main kill switch is on, or with uploads/hch-gmaps/PILLS_OFF
 * / define('HCH_GMAPS_PILLS_OFF') / ?hch_gmaps_pills_off=1.
 */
.hch-gmaps-pills-layer,
.hch-gmaps-pills-layer * {
  box-sizing: border-box;
}
.hch-gmaps-pills-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.hch-gmaps-pill {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 4px));
  background: #fff;
  color: #111;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  padding: 5px 10px;
  font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 4px 10px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}
.hch-gmaps-pill:hover,
.hch-gmaps-pill.is-hover {
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 6px 14px rgba(0, 0, 0, 0.1);
}
.hch-gmaps-pill.is-hover,
.hch-gmaps-pill.is-active,
.hch-gmaps-pill:focus-visible {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
  outline: none;
}
.hch-gmaps-pill.is-active {
  z-index: 4;
  transform: translate(-50%, calc(-100% - 4px)) scale(1.06);
}
.hch-gmaps-pill.is-neutral {
  font-weight: 600;
  color: #111;
}
.hch-gmaps-pill.is-neutral.is-active,
.hch-gmaps-pill.is-neutral.is-hover,
.hch-gmaps-pill.is-neutral:focus-visible {
  color: #fff;
}
.hch-gmaps-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 300px;
  max-width: min(300px, calc(100vw - 24px));
  background: #fff;
  color: #111;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  pointer-events: auto;
  z-index: 6;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.hch-gmaps-card-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
  padding: 0;
}
.hch-gmaps-card-x:hover,
.hch-gmaps-card-x:focus-visible {
  background: #f3f4f6;
  outline: none;
}
.hch-gmaps-card-photo {
  display: block;
  width: 100%;
  height: 150px;
  background: #e5e7eb;
  overflow: hidden;
}
.hch-gmaps-card-photo img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.hch-gmaps-card-body {
  padding: 12px 14px 14px;
}
.hch-gmaps-card-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 4px;
  padding-right: 8px;
}
.hch-gmaps-card-sub {
  color: #4b5563;
  font-size: 13px;
  margin: 0 0 6px;
}
.hch-gmaps-card-price {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 10px;
}
.hch-gmaps-card-units {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  max-height: 132px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.hch-gmaps-card-units li {
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
}
.hch-gmaps-card-units li:last-child {
  border-bottom: 0;
}
.hch-gmaps-card-units a,
.hch-gmaps-card-units button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: #fff;
  border: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.hch-gmaps-card-units a:hover,
.hch-gmaps-card-units button:hover,
.hch-gmaps-card-units .is-current a,
.hch-gmaps-card-units .is-current button {
  background: #eff6ff;
}
.hch-gmaps-card-unit-meta {
  color: #4b5563;
  font-size: 12px;
}
.hch-gmaps-card-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #b881fc;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 8px;
}
.hch-gmaps-card-btn:hover,
.hch-gmaps-card-btn:focus-visible {
  filter: brightness(0.96);
  outline: none;
}
@media (max-width: 991px) {
  .hch-gmaps-pill {
    padding: 4px 8px;
    font-size: 12px;
  }
  .hch-gmaps-card {
    width: 260px;
  }
  .hch-gmaps-card-photo,
  .hch-gmaps-card-photo img {
    height: 120px;
  }
}
