.sfl-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;
}

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

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

.sfl-map .sfl-replay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #16324f;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sfl-map .sfl-replay svg {
  width: 12px;
  height: 12px;
}

.sfl-map .sfl-replay.visible {
  opacity: 1;
  pointer-events: auto;
}

.sfl-map .sfl-replay:hover {
  background: #0f2338;
}

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

.sfl-map .sfl-map-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.sfl-map .sfl-map-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sfl-map .sfl-region {
  fill: #e9e9e9;
  stroke: #fff;
  stroke-width: 1px;
}

.sfl-map .sfl-dot {
  fill-opacity: 0.85;
  stroke: #fff;
  stroke-width: 0.75px;
}

.sfl-map .sfl-legend {
  position: absolute;
  bottom: 14px;
  left: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s, transform 0.5s;
}

.sfl-map .sfl-legend.visible {
  opacity: 1;
  transform: translateY(0);
}

.sfl-map .sfl-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #444;
}

.sfl-map .sfl-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.sfl-map .sfl-connector-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.sfl-map .sfl-connector-svg.visible {
  opacity: 1;
}

.sfl-map .sfl-connector-line {
  stroke: #16324f;
  stroke-width: 1.5px;
  stroke-dasharray: 3 3;
}

.sfl-map .sfl-callout {
  position: absolute;
  right: 100px;
  max-width: 220px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #16324f;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #16324f;
  line-height: 1.35;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.4s, transform 0.4s;
}

.sfl-map .sfl-callout.visible {
  opacity: 1;
  transform: translateX(0);
}

.sfl-map .sfl-stats {
  position: absolute;
  top: 10px;
  right: 4px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.sfl-map .sfl-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.sfl-map .sfl-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: #16324f;
  font-variant-numeric: tabular-nums;
}

.sfl-map .sfl-stat-label {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #999;
}

.sfl-map .sfl-breakdown {
  font-size: 11px;
  color: #666;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
