.seo-map {
  position: relative;
  width: 100%;
  height: 100%;
  background: #eef1f4;
  box-sizing: border-box;
  padding: 12px 16px;
  font: 14px/1.4 sans-serif;
  display: flex;
  flex-direction: column;
}

.seo-map .seo-header {
  flex: 0 0 auto;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seo-map .seo-title { margin: 0; font-size: 20px; font-weight: 500; color: #333; }

.seo-map .seo-toggle {
  display: inline-flex;
  gap: 2px;
  background: #f0f0f0;
  border-radius: 7px;
  padding: 3px;
}

.seo-map .seo-toggle-btn {
  border: none;
  background: none;
  padding: 6px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  border-radius: 5px;
  cursor: pointer;
}

.seo-map .seo-toggle-btn.active { background: #16324f; color: #fff; }

.seo-map .seo-stage { position: relative; flex: 1 1 auto; min-height: 0; }

.seo-map .seo-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.seo-map .seo-view.active { opacity: 1; pointer-events: auto; }

.seo-map .seo-view svg { width: 100%; height: 100%; display: block; }

.seo-map .seo-region { fill: #e9e9e9; stroke: #fff; stroke-width: 1px; }
.seo-map .seo-dot { fill-opacity: 0.85; stroke: #fff; stroke-width: 0.75px; }

.seo-map .seo-stat {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #16324f;
  font-variant-numeric: tabular-nums;
}

.seo-map .seo-country { stroke: #fff; stroke-width: 0.5px; }
.seo-map .seo-country.highlight { stroke: #e07b39; stroke-width: 2px; }

.seo-map .seo-legend {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 13px;
  color: #444;
  max-width: 320px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 8px 12px;
}
