.mm-project-map-v2 {
  --mm-map-accent: #27409A;
  --mm-map-accent-dark: #1B2A63;
  --mm-map-land: #E9ECF2;
  --mm-map-land-active: #8FA2CE;
  --mm-map-border: #cfd5dc;
  --mm-map-ink: #17212b;
  --mm-map-surface: #fff;
  position: relative;
  width: 100%;
  color: var(--mm-map-ink);
}

.mm-project-map-v2 *,
.mm-project-map-v2 *::before,
.mm-project-map-v2 *::after {
  box-sizing: border-box;
}

.mm-map-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--mm-map-border);
  border-radius: 4px;
  background: var(--mm-map-surface);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.mm-map-stage:active {
  cursor: grabbing;
}

.mm-map-stage:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--mm-map-accent) 45%, transparent);
  outline-offset: 3px;
}

.mm-map-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.mm-map-state {
  fill: var(--mm-map-land);
  stroke: #fff;
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}

.mm-map-state.is-active {
  fill: var(--mm-map-land-active);
}

.mm-map-marker,
.mm-map-vi-marker {
  cursor: pointer;
}

.mm-map-marker__halo,
.mm-map-vi-marker__halo {
  fill: var(--mm-map-accent);
  opacity: 0;
  pointer-events: none;
}

.mm-map-marker:hover .mm-map-marker__halo,
.mm-map-marker:focus-visible .mm-map-marker__halo,
.mm-map-marker.is-active .mm-map-marker__halo,
.mm-map-vi-marker:hover .mm-map-vi-marker__halo,
.mm-map-vi-marker:focus-visible .mm-map-vi-marker__halo,
.mm-map-vi-marker.is-active .mm-map-vi-marker__halo {
  opacity: 0.2;
}

.mm-map-marker__dot,
.mm-map-vi-marker__dot {
  fill: var(--mm-map-accent);
  stroke: #fff;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.mm-map-marker.is-active .mm-map-marker__dot,
.mm-map-vi-marker.is-active .mm-map-vi-marker__dot {
  fill: var(--mm-map-accent-dark);
}


.mm-map-marker__label,
.mm-map-vi-marker__label {
  fill: #fff;
  font-family: inherit;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.mm-map-marker__hit,
.mm-map-vi-marker__hit {
  fill: transparent;
}

.mm-map-marker:focus,
.mm-map-vi-marker:focus {
  outline: none;
}

.mm-map-marker:focus-visible .mm-map-marker__dot,
.mm-map-vi-marker:focus-visible .mm-map-vi-marker__dot {
  stroke: var(--mm-map-ink);
  stroke-width: 4;
}

.mm-map-leader-line {
  stroke: var(--mm-map-accent-dark);
  stroke-width: 1.5;
  opacity: 0.65;
  vector-effect: non-scaling-stroke;
}

.mm-map-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.mm-map-control {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 5px 10px;
  border: 1px solid var(--mm-map-border);
  border-radius: 3px;
  background: #fff;
  color: var(--mm-map-ink);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.mm-map-control--reset {
  min-width: 64px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mm-map-control:hover {
  border-color: var(--mm-map-accent);
  color: var(--mm-map-accent-dark);
}

.mm-map-control:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--mm-map-accent) 45%, transparent);
  outline-offset: 2px;
}

.mm-map-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mm-map-zoom-label {
  min-width: 48px;
  margin-left: 4px;
  color: #5e6873;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.mm-map-help {
  margin: 10px 2px 0;
  color: #5e6873;
  font-size: 0.8rem;
  line-height: 1.45;
}

.mm-map-vi-inset {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(31%, 190px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mm-map-vi-inset[hidden] {
  display: none;
}

.mm-map-vi-inset svg {
  display: block;
  width: 100%;
  height: auto;
}

.mm-map-vi-label {
  display: block;
  margin-bottom: 2px;
  color: #5e6873;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mm-map-vi-states .mm-map-state {
  fill: var(--mm-map-land-active);
}

.mm-project-map-card[hidden] {
  display: none !important;
}


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

@media (max-width: 600px) {
  .mm-map-svg {
    min-height: 0;
  }

  .mm-map-control {
    min-width: 44px;
    min-height: 44px;
  }

  .mm-map-vi-inset {
    right: 7px;
    bottom: 7px;
    width: 34%;
  }

  .mm-map-help {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-project-map-v2 * {
    scroll-behavior: auto !important;
  }
}


.mm-map-true-location { fill: var(--mm-map-accent); pointer-events: none; }
.mm-map-leader-lines { pointer-events: none; }
