.sb-locations-map {
  --sb-teal: #4f868e;
  --sb-text: #333333;
  --sb-muted: #666666;
  --sb-panel: #ffffff;
  --sb-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  width: 100%;
}

.sb-locations-map__frame {
  position: relative;
  width: 100%;
  min-height: 560px;
  height: clamp(520px, 70vh, 760px);
  overflow: hidden;
  background: #ececec;
}

.sb-locations-map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sb-locations-map__sidebar {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: min(280px, calc(100% - 48px));
  max-height: calc(100% - 48px);
  overflow: auto;
  padding: 22px 24px;
  background: var(--sb-panel);
  box-shadow: var(--sb-shadow);
}

.sb-locations-map__state + .sb-locations-map__state {
  margin-top: 10px;
}

.sb-locations-map__search-summary {
  margin: 0 0 14px !important;
  color: var(--sb-muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.sb-locations-map__search-summary strong {
  color: var(--sb-text);
  font-weight: 700;
}

.sb-locations-map__distance {
  color: var(--sb-teal);
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}

.sb-locations-map__state-title {
  margin: 0 0 2px;
  color: var(--sb-teal);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.sb-locations-map__location-list {
  margin: 0 0 0;
  padding: 0 0 0 1.1rem;
  list-style: disc;
}

.sb-locations-map__location-list li {
  margin: 0;
  padding: 0;
  line-height: 1.35;
  color: var(--sb-muted);
}

.sb-locations-map__sidebar h4,
.sb-locations-map__sidebar ul,
.sb-locations-map__sidebar li,
.sb-locations-map__sidebar p {
  margin-top: 0;
  margin-bottom: 0;
}

.sb-location-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sb-text);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.sb-location-link:hover {
  color: var(--sb-teal);
}

.sb-location-link.is-active,
.et_pb_module .sb-location-link.is-active {
  color: var(--sb-teal);
  font-weight: 700;
}

.sb-locations-map__filters {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.sb-locations-map__filter-item {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.sb-locations-map__filter-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  z-index: 3;
  box-sizing: border-box;
  min-width: 138px;
  padding: 8px 16px;
  background: #fff;
  border: 2px solid var(--sb-teal);
  color: var(--sb-teal);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.sb-locations-map__filter-tip::before,
.sb-locations-map__filter-tip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  transform: translateY(-50%);
}

.sb-locations-map__filter-tip::before {
  right: -12px;
  border-width: 10px 0 10px 12px;
  border-color: transparent transparent transparent var(--sb-teal);
}

.sb-locations-map__filter-tip::after {
  right: -9px;
  border-width: 8px 0 8px 10px;
  border-color: transparent transparent transparent #fff;
}

.sb-locations-map__filter-item:hover .sb-locations-map__filter-tip,
.sb-locations-map__filter-item:focus-within .sb-locations-map__filter-tip {
  opacity: 1;
  visibility: visible;
}

.sb-locations-map__filter {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.sb-locations-map__filter img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.sb-locations-map__filter:hover,
.sb-locations-map__filter.is-active {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.sb-locations-map__filter:not(.is-active) {
  opacity: 0.92;
}

.sb-locations-map__empty,
.sb-locations-map__error {
  margin: 0;
  color: var(--sb-muted);
  font-size: 0.95rem;
}

.sb-locations-map__spinner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--sb-muted);
  font-size: 0.9rem;
}

.sb-locations-map__spinner[hidden] {
  display: none;
}

.sb-locations-map__spinner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sb-teal);
  animation: sb-map-pulse 1s ease-in-out infinite;
}

@keyframes sb-map-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.sb-locations-map .sb-location-pinbox__title a {
  color: inherit;
  text-decoration: none;
}

.sb-locations-map .sb-location-pinbox__title a:hover {
  color: inherit;
  text-decoration: underline;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 782px) {
  .sb-locations-map__frame {
    min-height: 640px;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .sb-locations-map__canvas {
    position: relative;
    min-height: 360px;
    height: 360px;
  }

  .sb-locations-map__sidebar {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-height: none;
    box-shadow: none;
    border-top: 1px solid #e5e5e5;
  }

  .sb-locations-map__filters {
    top: 12px;
    right: 12px;
    gap: 8px;
  }

  .sb-locations-map__filter,
  .sb-locations-map__filter img {
    width: 46px;
    height: 46px;
  }
}
