body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.map-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 10px 20px;
  box-sizing: border-box;
}

h3,
h4 {
  text-align: center;
}

h3 {
  margin: 0 0 6px 0;
  font-size: 24px;
  line-height: 1.2;
}

h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: normal;
  color: #555;
}

.map-container {
  position: relative;
  width: 100%;
  height: 600px;
}

#map {
  width: 100%;
  height: 100%;
}

.source-note {
  margin-top: 8px;
  font-size: 14px;
  color: #000;
}

.map-credit {
  margin-top: 8px;
  font-size: 12px;
  color: #000;
}

.legend {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  padding: 10px;
  font-family: sans-serif;
  font-size: 13px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  z-index: 10;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.legend-color {
  width: 12px;
  height: 12px;
  margin-right: 6px;
}

.legend-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.year-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.year-toggle button {
  border: 1px solid #999;
  background: #fff;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}

.year-toggle button.active {
  background: #111;
  color: #fff;
}

.tooltip {
  font-size: 13px;
  line-height: 1.4;
}