/* Interactive World Map Styles */

.r84-map-container svg {
  width: 100%;
  height: auto;
}

.country {
  fill: #e9ecef;
  stroke: #fff;
  stroke-width: 0.5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.country.highlighted {
  fill: #FF7D00;
  stroke: #fff;
  stroke-width: 1;
}

.country:hover {
  fill: #FF9D2F;
  stroke: #333;
  stroke-width: 1.5;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.country.highlighted:hover {
  fill: #E66C00;
}

/* Tooltip */
#r84-map-tooltip {
  position: fixed;
  white-space: pre-line;
  background: rgba(10, 35, 66, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Legend */
.r84-map-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  gap: 24px;
  flex-wrap: wrap;
}

.r84-map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.r84-map-legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #ccc;
  flex-shrink: 0;
}

.r84-map-legend-swatch.highlighted {
  background: #FF7D00;
  border-color: #FF7D00;
}

.r84-map-legend-swatch.default {
  background: #e9ecef;
}

@media (max-width: 768px) {
  .r84-map-legend {
    gap: 16px;
  }
}
