.wa-map,
.wa-map * {
  box-sizing: border-box;
}

.wa-map {
  --wa-red: #be2418;
  --wa-red-bright: #e43b2f;
  --wa-paper: #ffffff;
  --wa-muted: #bbc0c6;
  --wa-line: rgba(255, 255, 255, 0.13);
  position: relative;
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  min-height: 650px;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  color: var(--wa-paper);
  background:
    radial-gradient(circle at 78% 12%, rgba(190, 36, 24, 0.25), transparent 32%),
    radial-gradient(circle at 8% 88%, rgba(190, 36, 24, 0.1), transparent 30%),
    linear-gradient(135deg, #181a1e 0%, #22252a 52%, #15171a 100%);
  border-top: 5px solid var(--wa-red);
  font-family: Lato, Arial, sans-serif;
  line-height: 1.45;
}

.wa-map::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

.wa-map__ambient {
  position: absolute;
  top: -210px;
  right: -160px;
  z-index: -1;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(228, 59, 47, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(228, 59, 47, 0.03), 0 0 0 122px rgba(228, 59, 47, 0.018);
}

.wa-map__header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100% - 64px, 1280px);
  margin: 0 auto;
  padding: 24px 0 14px;
}

.wa-map__heading {
  min-width: 0;
  max-width: 560px;
}

.wa-map__eyebrow,
.wa-map__intro,
.wa-map__detail p,
.wa-map__location-title {
  margin: 0;
}

.wa-map__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e1e3e6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wa-map__eyebrow span {
  flex: 0 0 auto;
  width: 28px;
  height: 3px;
  background: var(--wa-red-bright);
}

.wa-map__intro {
  margin-top: 8px;
  color: var(--wa-muted);
  font-size: 14px;
  line-height: 1.45;
}

.wa-map__view-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--wa-line);
  border-radius: 999px;
}

.wa-map .wa-map__view-button {
  min-width: 84px;
  min-height: 40px;
  margin: 0;
  padding: 8px 17px;
  color: #c9cdd1;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.wa-map .wa-map__view-button:hover {
  color: var(--wa-paper);
  background: rgba(255, 255, 255, 0.08);
}

.wa-map .wa-map__view-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.84);
  outline-offset: 2px;
}

.wa-map .wa-map__view-button.is-active {
  color: var(--wa-paper);
  background: var(--wa-red);
  box-shadow: 0 6px 22px rgba(190, 36, 24, 0.34);
}

.wa-map__stage {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 1380px);
  height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border-top: 1px solid var(--wa-line);
}

.wa-map__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.wa-map__sphere {
  fill: rgba(255, 255, 255, 0.018);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.wa-map__graticule {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 0.7;
}

.wa-map__country {
  fill: #35393f;
  stroke: #1c1f23;
  stroke-width: 0.65;
  vector-effect: non-scaling-stroke;
  transition: fill 220ms ease, opacity 220ms ease;
}

.wa-map__country.is-europe {
  fill: #6a7078;
  stroke: rgba(255, 255, 255, 0.25);
}

.wa-map__country.is-europe.is-peripheral {
  fill: #454a50;
  stroke: rgba(255, 255, 255, 0.14);
}

.wa-map__country.is-germany {
  fill: var(--wa-red);
  stroke: #ff786d;
  stroke-width: 1.25;
}

.wa-map__route {
  fill: none;
  stroke: rgba(228, 59, 47, 0.58);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-dasharray: 5 8;
  vector-effect: non-scaling-stroke;
  animation: wa-map-route-flow 3s linear infinite;
}

.wa-map__focus-dot {
  fill: #ffffff;
  stroke: var(--wa-red);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.wa-map__focus-ring {
  fill: none;
  stroke: rgba(228, 59, 47, 0.52);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  animation: wa-map-focus-ring 2.8s ease-out infinite;
}

.wa-map__hub-halo {
  fill: rgba(190, 36, 24, 0.16);
  stroke: rgba(228, 59, 47, 0.72);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  animation: wa-map-hub-pulse 2.4s ease-out infinite;
}

.wa-map__hub {
  fill: var(--wa-red-bright);
  stroke: #ffffff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.wa-map__hub-label {
  fill: #ffffff;
  paint-order: stroke;
  stroke: rgba(23, 25, 28, 0.96);
  stroke-linejoin: round;
  stroke-width: 4px;
  font-family: Lato, Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  pointer-events: none;
}

.wa-map__detail {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  width: min(340px, calc(100% - 40px));
  padding: 21px;
  color: var(--wa-paper);
  background: rgba(22, 24, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--wa-red);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.wa-map__detail-label {
  margin-bottom: 10px !important;
  color: var(--wa-red-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wa-map__detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.wa-map__location-title {
  margin-bottom: 3px !important;
  color: var(--wa-paper);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.wa-map__detail-row p:not(.wa-map__location-title),
.wa-map__detail-note {
  color: var(--wa-muted);
  font-size: 13px;
  line-height: 1.45;
}

.wa-map__detail-note {
  margin-top: 13px !important;
  padding-top: 12px;
  border-top: 1px solid var(--wa-line);
}

.wa-map__detail-code {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--wa-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.wa-map__legend {
  position: absolute;
  bottom: 32px;
  left: 28px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #c1c5ca;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wa-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wa-map__legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.wa-map__legend-hub {
  background: var(--wa-red-bright);
  box-shadow: 0 0 0 3px rgba(228, 59, 47, 0.2);
}

.wa-map__legend-focus {
  background: #ffffff;
  border: 2px solid var(--wa-red);
}

.wa-map__brand-mark {
  position: absolute;
  top: 47%;
  left: 50%;
  z-index: -1;
  color: rgba(255, 255, 255, 0.022);
  font-size: clamp(72px, 14vw, 190px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  user-select: none;
}

.wa-map__brand-mark span {
  color: rgba(190, 36, 24, 0.09);
}

.wa-map__loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #cbd0d5;
  background: #1a1c20;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.wa-map__loading span:first-child {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--wa-red-bright);
  border-radius: 50%;
  animation: wa-map-spin 800ms linear infinite;
}

.wa-map__loading.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.wa-map__loading.is-error {
  color: #ffffff;
  background: var(--wa-red);
}

.wa-map__loading.is-error span:first-child {
  display: none;
}

@keyframes wa-map-route-flow {
  to { stroke-dashoffset: -52; }
}

@keyframes wa-map-focus-ring {
  0% { r: 7px; opacity: 0.82; }
  100% { r: 16px; opacity: 0; }
}

@keyframes wa-map-hub-pulse {
  0% { r: 14px; opacity: 0.88; }
  100% { r: 32px; opacity: 0; }
}

@keyframes wa-map-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .wa-map {
    min-height: 700px;
  }

  .wa-map__header {
    width: min(100% - 40px, 760px);
    gap: 22px;
    padding-top: 22px;
  }

  .wa-map__stage {
    width: 100%;
    height: 590px;
  }

  .wa-map__detail {
    right: 20px;
    bottom: 20px;
  }

  .wa-map__legend {
    bottom: 24px;
    left: 20px;
    max-width: 210px;
  }
}

@media (max-width: 640px) {
  .wa-map {
    min-height: 740px;
    border-top-width: 4px;
  }

  .wa-map__header {
    display: block;
    width: calc(100% - 32px);
    padding: 18px 0 10px;
  }

  .wa-map__eyebrow {
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .wa-map__eyebrow span {
    width: 22px;
    height: 2px;
  }

  .wa-map__intro {
    margin-top: 7px;
    font-size: 13px;
  }

  .wa-map__view-switch {
    margin-top: 14px;
  }

  .wa-map .wa-map__view-button {
    min-width: 76px;
    min-height: 42px;
    padding: 8px 15px;
    font-size: 11px;
  }

  .wa-map__stage {
    height: 590px;
  }

  .wa-map__legend {
    top: 16px;
    bottom: auto;
    left: 16px;
    gap: 12px;
    font-size: 10px;
  }

  .wa-map__detail {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    padding: 17px;
  }

  .wa-map__location-title {
    font-size: 22px;
  }

  .wa-map__detail-note {
    margin-top: 10px !important;
    padding-top: 10px;
  }
}

@media (max-width: 380px) {
  .wa-map {
    min-height: 715px;
  }

  .wa-map__header {
    width: calc(100% - 24px);
    padding-top: 16px;
  }

  .wa-map__intro {
    font-size: 12px;
  }

  .wa-map__stage {
    height: 570px;
  }

  .wa-map__legend span {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-map *,
  .wa-map *::before,
  .wa-map *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
