/* === Tooltip-Container === */
.vector-map-tooltip {
  position: absolute;
  background: #ffffffee;
  border: 1px solid #ccc;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  pointer-events: none;
  display: none;
  z-index: 9999;
  max-width: 360px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #333;
  white-space: normal;
}

/* === SVG-Wrapper === */
.vector-map-wrapper {
  position: relative;
  width: 100%;
}

.vector-map-wrapper svg {
  width: 100%;
  height: auto;
  display: block;
}

/* === Tooltip-Inhalte === */
.vm-tooltip-title {
  font-size: 16px;
  margin-bottom: 4px;
  color: #222;
}

.vm-tooltip-category-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  background: #666;
}

.vm-tooltip-content {
  font-size: 13px;
  margin-bottom: 6px;
  color: #444;
  line-height: 1.4;
}

/* === Layout mit Bild === */
.vm-tooltip-flex {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.vm-tooltip-image {
  flex-shrink: 0;
  max-width: 80px;
}

.vm-tooltip-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.vm-tooltip-text {
  flex: 1;
  min-width: 0;
}

.vm-map-label {
  font-size: 10px;
  fill: #fff;
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.5);
  stroke-width: 1;
}

.vm-tooltip-inner {
  display: block;
  text-decoration: none;
  color: inherit;
}

.vm-tooltip-inner:hover {
  text-decoration: none;
}

/* === Mobiler Tooltip === */
@media (max-width: 767px) {
  .vector-map-tooltip.vm-tooltip-mobile {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    max-width: 90vw;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    pointer-events: auto;
  }

  .vm-tooltip-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vm-tooltip-image {
    max-width: 100px;
    margin-bottom: 12px;
  }

  .vm-tooltip-image img {
    width: auto;
    height: auto;
    max-height: 80px;
  }

  .vm-tooltip-text {
    min-width: unset;
    width: 100%;
  }
}
