* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f0f4f8;
  font-family: 'Patrick Hand', cursive;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}


#map {
  width: 100vw;
  height: 100vh;
}

#map svg {
  display: block;
}

/* Country paths */
.country {
  stroke: #333;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  cursor: default;
  transition: opacity 0.15s;
}

.country:hover {
  opacity: 0.85;
}

/* Ocean labels */
.ocean-text {
  font-family: 'Patrick Hand', cursive;
  font-style: italic;
  fill: #4a7aab;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  opacity: 0.7;
}

/* SVG label text */
.label-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 13px;
  fill: #333;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

/* SVG label background rect */
.label-bg {
  fill: #FFF8E1;
  stroke: #333;
  stroke-width: 2;
  rx: 10;
  ry: 10;
  pointer-events: none;
}

/* REDACTED label */
.redacted-bg {
  fill: #FFF8E1;
  stroke: #333;
  stroke-width: 2;
  rx: 10;
  ry: 10;
  pointer-events: none;
}

.redacted-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 13px;
  fill: #333;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  letter-spacing: 1px;
}

/* Small-country dots */
.dot-marker {
  fill: #FFF8E1;
  stroke: #333;
  stroke-width: 2;
  cursor: pointer;
  transition: r 0.15s;
}

.dot-marker:hover {
  r: 7;
}

/* Hover tooltip for dots */
.hover-label {
  position: fixed;
  font-family: 'Patrick Hand', cursive;
  font-size: 14px;
  color: #333;
  background: #FFF8E1;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 3px 10px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.12);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s;
}

.hover-label.visible {
  opacity: 1;
}

/* Info button */
#info-btn {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 200;
  width: 32px;
  height: 32px;
  background: #FFF8E1;
  border: 2px solid #333;
  border-radius: 10px;
  font-family: 'Patrick Hand', cursive;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.12);
}

.info-tooltip {
  position: absolute;
  bottom: 40px;
  left: 0;
  font-family: 'Patrick Hand', cursive;
  font-size: 14px;
  color: #333;
  background: #FFF8E1;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 4px 12px;
  white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#info-btn:hover .info-tooltip,
#info-btn.pinned .info-tooltip {
  opacity: 1;
  pointer-events: auto;
}

.info-tooltip a {
  color: #333;
  text-decoration: underline;
}

.info-tooltip a:hover {
  color: #666;
}

/* Controls bar */
#controls {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

#controls .hint {
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  color: #666;
  background: rgba(255,255,255,0.85);
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 4px 16px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  #controls .hint {
    font-size: 11px;
    padding: 3px 10px;
  }
}
