.atfire-deployment-map {
  --atfire-bg: #ffffff;
  --atfire-country: #d9d9d9;
  --atfire-stroke: #ffffff;
  --atfire-highlight: rgb(250, 219, 81);
  --atfire-highlight-hover: rgb(226, 194, 46);
  --atfire-black: #111111;
  --atfire-tooltip-bg: rgba(24, 24, 24, 0.96);
  --atfire-tooltip-text: #ffffff;
  --atfire-button-bg: rgba(255, 255, 255, 0.95);
  --atfire-button-border: rgba(0, 0, 0, 0.12);
  --atfire-button-text: #111111;
  --atfire-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);

  position: relative;
  isolation: isolate;
  min-height: 420px;
  overflow: hidden;
  background: var(--atfire-bg);
  font-family: Calibri, "Segoe UI", Arial, Helvetica, sans-serif;
}

.atfire-deployment-map *,
.atfire-deployment-map *::before,
.atfire-deployment-map *::after {
  box-sizing: border-box;
}

.atfire-deployment-map svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--atfire-bg);
  cursor: grab;
  touch-action: none;
}

.atfire-deployment-map svg:active {
  cursor: grabbing;
}

.atfire-deployment-map .atfire-map-country {
  fill: var(--atfire-country);
  stroke: var(--atfire-stroke);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  transition: fill 0.15s ease-in-out;
}

.atfire-deployment-map .atfire-map-country.is-active {
  fill: var(--atfire-highlight);
  cursor: pointer;
}

.atfire-deployment-map .atfire-map-country.is-active:hover,
.atfire-deployment-map .atfire-map-country.is-active:focus {
  fill: var(--atfire-highlight-hover);
}

.atfire-deployment-map .atfire-map-controls {
  position: absolute;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.atfire-deployment-map .atfire-map-controls button {
  width: clamp(44px, 4vw, 54px);
  height: clamp(44px, 4vw, 54px);
  border: 1px solid var(--atfire-button-border);
  border-radius: 12px;
  background: var(--atfire-button-bg);
  color: var(--atfire-button-text);
  font-family: Calibri, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--atfire-shadow);
  backdrop-filter: blur(6px);
}

.atfire-deployment-map .atfire-map-tooltip {
  position: absolute;
  display: none;
  z-index: 80;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--atfire-tooltip-bg);
  color: var(--atfire-tooltip-text);
  box-shadow: var(--atfire-shadow);
  font-size: 14px;
  line-height: 1.3;
  pointer-events: none;
  white-space: nowrap;
}

.atfire-deployment-map .atfire-map-info-card {
  position: absolute;
  display: none;
  z-index: 9999;
  width: min(560px, calc(100% - 28px));
  padding: clamp(22px, 2.2vw, 32px);
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: #222222;
  box-shadow: var(--atfire-shadow);
  backdrop-filter: blur(8px);
}


.atfire-deployment-map .atfire-map-info-card.is-open {
  display: block !important;
  pointer-events: auto;
  z-index: 9999;
}

.atfire-deployment-map .atfire-map-info-card h2 {
  margin: 0 44px 22px 0;
  color: var(--atfire-black);
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.15;
  font-weight: 700;
}

.atfire-deployment-map .atfire-map-info-card .atfire-entry-title {
  margin: 0 0 14px 0;
  color: var(--atfire-black);
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.2;
  font-weight: 700;
}

.atfire-deployment-map .atfire-map-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--atfire-black);
  font-family: Calibri, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 28px;
  cursor: pointer;
  padding: 0;
}

.atfire-deployment-map .atfire-map-info-card .atfire-period,
.atfire-deployment-map .atfire-map-info-card .atfire-text {
  margin: 0 0 18px 0;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.35;
}

.atfire-deployment-map .atfire-map-info-card .atfire-text {
  margin-bottom: 22px;
}

.atfire-deployment-map .atfire-map-info-card .atfire-card-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  margin: 0 0 22px 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.atfire-deployment-map .atfire-map-info-card .atfire-entry + .atfire-entry {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.atfire-deployment-map .atfire-map-info-card a.atfire-more {
  display: inline-block;
  padding: 12px 28px;
  background: var(--atfire-black);
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.atfire-map-germany-magnifier-layer {
  pointer-events: auto;
}

.atfire-map-germany-magnifier-connector {
  stroke: rgba(0, 0, 0, 0.28);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.atfire-map-germany-magnifier-bg {
  fill: rgba(255, 255, 255, 0.98);
  stroke: rgba(0, 0, 0, 0.14);
  stroke-width: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.atfire-map-germany-magnifier-shape {
  fill: var(--atfire-highlight);
  stroke: var(--atfire-stroke);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.atfire-map-germany-poi {
  fill: #111111;
  stroke: #ffffff;
  stroke-width: 2;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
}

.atfire-map-germany-poi:hover,
.atfire-map-germany-poi:focus {
  fill: var(--atfire-highlight-hover);
}

.atfire-map-germany-close-x {
  fill: var(--atfire-black);
  font-family: Calibri, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 700;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: central;
}

.atfire-map-germany-close-hitbox {
  fill: transparent;
  cursor: pointer;
}

.atfire-deployment-map .atfire-map-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #222222;
  font-size: 15px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.atfire-deployment-map .atfire-map-status.is-hidden {
  display: none;
}

@media (max-width: 700px) {
  .atfire-deployment-map {
    min-height: 520px;
  }

  .atfire-deployment-map .atfire-map-info-card {
    padding: 22px;
  }


  .atfire-deployment-map .atfire-map-info-card h2 {
    margin-bottom: 18px;
  }

  .atfire-deployment-map .atfire-map-info-card .atfire-period,
  .atfire-deployment-map .atfire-map-info-card .atfire-text {
    font-size: 17px;
  }

  .atfire-deployment-map .atfire-map-info-card a.atfire-more {
    width: 100%;
    text-align: center;
  }

  .atfire-deployment-map .atfire-map-info-card .atfire-card-image {
    max-height: 180px;
  }

  .atfire-deployment-map .atfire-map-controls {
    right: 12px;
    bottom: 12px;
  }
}

@media (min-width: 1800px) {
  .atfire-deployment-map .atfire-map-info-card {
    width: 640px;
  }

  .atfire-deployment-map .atfire-map-info-card .atfire-card-image {
    max-height: 320px;
  }
}

.atfire-deployment-map .atfire-map-debug-panel {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 10000;
  width: min(420px, calc(100% - 24px));
  max-height: min(360px, calc(100% - 24px));
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  box-shadow: var(--atfire-shadow);
  font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: left;
}

.atfire-deployment-map .atfire-map-debug-panel strong {
  display: inline-block;
  margin: 0 10px 8px 0;
  font-weight: 700;
}

.atfire-deployment-map .atfire-map-debug-panel button {
  padding: 4px 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  cursor: pointer;
}

.atfire-deployment-map .atfire-map-debug-panel pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 1.0.20: Status messages must never block interaction with the map. */
.atfire-deployment-map .atfire-map-status {
  pointer-events: none;
}
