.hwp-locations {
  box-sizing: border-box;
}
.hwp-locations * {
  box-sizing: inherit;
}
.hwp-locations--with-map {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .hwp-locations--with-map {
    grid-template-columns: 1fr;
  }
}
.hwp-locations__map {
  width: 100%;
  min-height: 360px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}
.hwp-locations__sidebar {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
  max-height: 480px;
  overflow: auto;
}
.hwp-locations__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hwp-locations__item {
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
}
.hwp-locations__item:hover {
  background: #f3f3f3;
}
.hwp-locations__item.is-active {
  border-color: #000;
  background: #fff;
}
.hwp-locations__item-name {
  font-weight: 600;
  margin-bottom: 4px;
}
.hwp-locations__item-address {
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
}
.hwp-locations__item-actions .button {
  display: inline-block;
  padding: 4px 8px;
  background: var(--wp--preset--color--primary, #2271b1);
  border: 1px solid var(--wp--preset--color--primary, #2271b1);
  color: var(--wp--custom--button--text-color, #fff);
  border-radius: 4px;
  text-decoration: none;
}
.hwp-locations__item-actions .button:hover,
.hwp-locations__item-actions .button:focus {
  filter: brightness(0.92);
}
.hwp-locations--list .hwp-locations__sidebar {
  display: none;
}

/* InfoWindow content styling */
.hwp-infowindow {
  position: relative;
  max-width: 280px;
  padding-right: 22px; /* room for close */
}
.hwp-infowindow__title {
  margin-bottom: 4px;
}
.hwp-infowindow__title strong {
  font-weight: 600;
}
.hwp-infowindow__address {
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
}
.hwp-infowindow__actions .button {
  display: inline-block;
  padding: 4px 8px;
  background: var(--wp--preset--color--primary, #2271b1);
  border: 1px solid var(--wp--preset--color--primary, #2271b1);
  color: var(--wp--custom--button--text-color, #fff);
  border-radius: 4px;
  text-decoration: none;
}
.hwp-infowindow__actions .button:hover,
.hwp-infowindow__actions .button:focus {
  filter: brightness(0.92);
}

.hwp-infowindow__close {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  line-height: 18px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-size: 16px;
  cursor: pointer;
}
.hwp-infowindow__close:hover,
.hwp-infowindow__close:focus {
  background: #f3f3f3;
}

/* Hide Google Maps default InfoWindow close within our component */
.hwp-locations .gm-ui-hover-effect {
  display: none !important;
}
