/*
 * Live map page (/map). Colors come from the site theme variables.
 */

.lp-live-map-path {
  margin-bottom: 10px;
  color: var(--lp-muted);
  font-family: var(--lp-font-display);
  letter-spacing: .04em;
}

.lp-live-map-path [aria-current] {
  color: var(--lp-heading);
}

.lp-live-map-others {
  float: right;
  font-family: var(--lp-font-body);
  font-size: .85rem;
  letter-spacing: 0;
}

.lp-live-map-others a + a {
  margin-left: 12px;
}

.lp-live-map-others strong {
  color: var(--lp-frost);
}

.lp-live-map-frame {
  position: relative;
  aspect-ratio: 1002 / 668;
  overflow: hidden;
  border: 1px solid var(--lp-border-strong);
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  user-select: none;
}

.lp-live-map-frame.is-clickable {
  cursor: pointer;
}

.lp-live-map-image {
  display: block;
  width: 100%;
  height: 100%;
}

.lp-live-map-regions,
.lp-live-map-dots {
  position: absolute;
  inset: 0;
}

.lp-live-map-regions {
  pointer-events: none;
}

.lp-live-map-hover {
  position: absolute;
  border: 2px solid var(--lp-frost);
  border-radius: 6px;
  background: rgba(127, 224, 255, .1);
  box-shadow: 0 0 12px var(--lp-frost-glow);
}

.lp-live-map-hover.has-glow {
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-size: 100% 100%;
  box-shadow: none;
}

.lp-live-map-hover::after {
  content: attr(data-name);
  position: absolute;
  top: 4px;
  left: 6px;
  color: #fff;
  font-size: .8rem;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
}

.lp-live-map-label {
  position: absolute;
  transform: translate(-50%, 4px);
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(5, 7, 13, .78);
  color: var(--lp-heading);
  font-size: .8rem;
  white-space: nowrap;
  pointer-events: auto;
}

.lp-live-map-label strong {
  color: var(--lp-frost);
}

.lp-live-map-label:hover {
  color: #fff;
  text-decoration: none;
}

.lp-live-map-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.lp-live-map-dot.is-alliance {
  background: #3f8cff;
  box-shadow: 0 0 6px #3f8cff;
}

.lp-live-map-dot.is-horde {
  background: #e2443b;
  box-shadow: 0 0 6px #e2443b;
}

.lp-live-map-dot:hover {
  z-index: 1;
  transform: scale(1.4);
}

.lp-live-map-status {
  margin-top: 8px;
}

.lp-live-map-heading {
  margin: 0 0 10px;
  color: var(--lp-heading);
  font-family: var(--lp-font-display);
  font-size: 1.1rem;
}

.lp-live-map-heading:not(:first-child) {
  margin-top: 24px;
}

.lp-live-map-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-live-map-side li + li {
  margin-top: 8px;
}

.lp-live-map-side li ul {
  margin: 6px 0 0 12px;
}

.lp-live-map-who {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
}
