/* ============================================================
   CONTENEDOR DEL MAPA
   ============================================================ */

#map-container {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}
#map-container svg {
  width: 100%;
  height: auto;
  max-height: 88vh;
  cursor: grab;
}
#map-container svg:active { cursor: grabbing; }

/* ============================================================
   ELEMENTOS INTERNOS DEL SVG
   ============================================================ */

.export-clip-rect {
  stroke: #2563eb;
  stroke-width: 2;
  stroke-dasharray: 6,4;
  fill: none;
  pointer-events: none;
  opacity: 0.8;
}

.st-marker { pointer-events: auto; cursor: pointer; }
.st-callout { pointer-events: auto; cursor: pointer; }
.st-callout line { pointer-events: none; }
.has-marker { opacity: 0; pointer-events: auto; }

/* ============================================================
   PAÍSES PINTADOS
   ============================================================ */

.pais-pintado {
  transition: fill 0.3s ease, stroke 0.2s ease, stroke-width 0.2s ease;
  cursor: pointer;
}
.pais-pintado:hover {
  filter: brightness(0.9);
  stroke-width: 2px !important;
  stroke: #000 !important;
}

/* ============================================================
   POLÍGONOS QUE YA TIENEN PUNTO/CALLOUT
   Se ocultan visualmente porque el marcador los representa.
   ============================================================ */

.has-marker {
  opacity: 0;
  pointer-events: none;
}