.location-map-eyebrow {
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e52421;
}

.location-map-card,
.location-map-panels {
  color: var(--bs-body-color);
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
}

.location-map-card {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.location-map-canvas {
  position: absolute;
  inset: 0;
}

.location-map-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}

.location-map-canvas [data-country],
.location-map-canvas g {
  fill: #c6c6c6;
  stroke: #fcfcfd;
  stroke-width: 2px;
  stroke-linejoin: round;
}

.location-map-canvas [data-country].is-active {
  --lm-color: #bc1818;
  --lm-tone: 70%;
  fill: color-mix(in srgb, var(--lm-color) var(--lm-tone), #fff);
  cursor: pointer;
  transition: fill .15s;
}

.location-map-canvas [data-country].is-active.is-headquarters {
  --lm-color: #e52421;
  --lm-tone: 80%;
}

.location-map-canvas [data-country].is-active:hover,
.location-map-canvas [data-country].is-active:focus {
  --lm-tone: 88%;
  outline: none;
}

.location-map-canvas [data-country].is-active.is-selected,
.location-map-canvas [data-country].is-active.is-selected:hover,
.location-map-canvas [data-country].is-active.is-selected:focus {
  --lm-tone: 100%;
}

.location-map-marker {
  fill: #3a2220;
  stroke: var(--bs-body-bg);
  stroke-width: 2px;
  opacity: .55;
  pointer-events: none;
}

.location-map-marker.is-ring {
  fill: none;
  stroke: #3a2220;
}

[data-bs-theme="dark"] .location-map-marker {
  fill: #fff;
}

[data-bs-theme="dark"] .location-map-marker.is-ring {
  fill: none;
  stroke: #fff;
}

.location-map-marker.is-on {
  opacity: 1;
}

.location-map-marker.is-pin {
  pointer-events: auto;
  cursor: pointer;
}

.location-map-marker.is-pin:hover,
.location-map-marker.is-pin:focus {
  opacity: 1;
  stroke-width: 5px;
  outline: none;
}

.location-map-tip {
  position: absolute;
  z-index: 2;
  min-width: 9rem;
  padding: .5rem .75rem;
  font-size: .875rem;
  color: #1c1f24;
  background: #f4f5f7;
  border-radius: .5rem;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .35);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 1rem));
}

.location-map-tip[hidden] {
  display: none;
}

.location-map-tip strong,
.location-map-tip span {
  display: block;
}

.location-map-tip span:last-child {
  margin-top: .25rem;
  color: #a8231c;
}

.location-map-legend {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: .5rem .875rem;
  color: var(--bs-body-color);
  background: rgba(var(--bs-body-bg-rgb), .88);
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  pointer-events: none;
}

.location-map-legend li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}

.location-map-swatch {
  width: .875rem;
  height: .875rem;
  border-radius: 3px;
  background: #c6c6c6;
}

.location-map-swatch.is-location {
  background: color-mix(in srgb, #bc1818 70%, #fff);
}

.location-map-swatch.is-selected {
  background: #bc1818;
}

.location-map-dot {
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  background: var(--bs-body-color);
}

.location-map-dot.is-headquarters {
  box-shadow: 0 0 0 2px var(--bs-tertiary-bg), 0 0 0 4px var(--bs-body-color);
}

.location-map-panels {
  padding: 1.75rem;
}

.location-map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.location-map-chip {
  min-height: 2.75rem;
  padding: 0 1rem;
  font: inherit;
  color: var(--bs-body-color);
  background: transparent;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.location-map-chip:hover {
  border-color: #bc1818;
}

.location-map-chip[aria-pressed="true"] {
  color: #fff;
  background: #bc1818;
  border-color: #bc1818;
}

.location-map-region[hidden],
.location-map-location[hidden] {
  display: none;
}

/* gap, not sibling margins, so a lone location left after hiding the others has no offset */
.location-map-locations {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-map-location {
  padding: 1.125rem 1.25rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .625rem;
}

.location-map-location h4 {
  margin-bottom: .5rem;
  font-size: 1rem;
}

.location-map-location .badge {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: middle;
}

.location-map-location ul {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.location-map-location ul + ul {
  margin-top: .75rem;
}

.location-map-location ul li {
  padding-left: 0;
}

.location-map-location ul li::before {
  display: none;
}

.location-map-location a {
  color: inherit;
}

@media (max-width: 991.98px) {
  .location-map-stage {
    display: none;
  }
}

@media (min-width: 992px) {
  .location-map.is-ready .location-map-panels {
    position: sticky;
    top: 7rem;
  }
}
