

svg {
  width: 100%;
  height: auto;
  max-height: 600px;
}

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

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

.country:hover {
  fill: #ff8c42;
  stroke: #333;
  stroke-width: 1.5;

  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

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

.info-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-panel h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.info-panel p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
}

.legend {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 30px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.legend-color.highlighted {
  background: #ff6b35;
}

.legend-color.default {
  background: #e9ecef;
}

/* Tooltip styling */
.tooltip {
  position: absolute;
  white-space: pre-line; /* allow line breaks */
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tooltip.show {
  opacity: 1;
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .legend {
    flex-direction: column;
    gap: 15px;
  }
}
