.anchor-location-map {
  display: grid;
  gap: 12px;
  width: 100%;
}

.anchor-location-maps-index {
  display: grid;
  gap: clamp(24px, 5vw, 48px);
}

.anchor-location-map-title {
  margin: 0;
}

.anchor-location-map-description {
  margin: 0;
  color: color-mix(in srgb, var(--text, #1f2937) 76%, transparent);
}

.anchor-location-map-stage,
.location-map-admin-stage {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 58vh, 560px);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #eef2f7;
}

.anchor-location-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.anchor-location-map-legend:empty {
  display: none;
}

.anchor-location-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--heading, #1f2937);
}

.anchor-location-map-marker {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.anchor-location-map-marker i {
  font-size: 15px;
  line-height: 1;
}

.anchor-location-map-marker-image img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.anchor-location-map-div-icon {
  background: transparent;
  border: 0;
}

.anchor-location-map-popup {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.anchor-location-map-popup strong {
  color: #111827;
}

.anchor-location-map-popup span {
  color: #475569;
  font-weight: 700;
}

.anchor-location-map-popup p {
  margin: 4px 0 0;
}

.location-maps-admin-layout .page-list-panel .chip {
  margin-top: 12px;
}

.location-map-admin-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.location-map-admin-stage {
  min-height: 560px;
}

.location-map-admin-tools {
  display: grid;
  gap: 12px;
}

.location-map-marker-form {
  padding-top: 4px;
}

.location-map-marker-status {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 600;
  display: none;
  max-width: min(520px, calc(100% - 28px));
  padding: 8px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
  pointer-events: none;
  text-align: center;
}

.location-map-marker-status[data-tone] {
  display: block;
}

.location-map-marker-status[data-tone="success"] {
  border-color: rgba(4, 120, 87, 0.22);
  color: #047857;
}

.location-map-marker-status[data-tone="error"] {
  border-color: rgba(185, 28, 28, 0.24);
  color: #b91c1c;
}

.location-map-marker-editor > summary {
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
}

.location-map-marker-editor > summary .helper-text {
  font-weight: 600;
}

@media (max-width: 980px) {
  .location-map-admin-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-map-admin-stage {
    min-height: 420px;
  }
}

@media (max-width: 700px) {
  .anchor-location-map-stage {
    min-height: 340px;
  }

  .anchor-location-map-legend {
    gap: 8px;
  }

  .anchor-location-map-legend-item {
    font-size: 0.88rem;
  }
}
