@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");

.map-container {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: "Noto Sans", Tahoma, Verdana, sans-serif;
  position: relative;
}
#map {
  width: 100%;
  height: 100%;
}

.map-overlay {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  max-height: 80vh;
  overflow-y: auto;
  transition: all 0.3s ease;
  font-size: 14px;
}

.collapsed {
  padding: 5px;
  max-height: 30px;
  max-width: 30px;
  overflow: hidden;
}

.toggle-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 10px;
}

.toggle-button::after {
  content: "X";
  font-size: 12px;
  color: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 5px;
}

.toggle-img {
  display: none;
}

.toggle-img img {
  height: 20px;
}

.collapsed .toggle-img {
  display: block;
}

#legend {
  top: 225px;
  left: 10px;
  width: 285px;
}

.legend-section {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}
.legend-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
  font-size: 14px;
}
.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.legend-color {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 3px;
  border: 1px solid #555;
}
.legend-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border: 1px solid #555;
}
.region-1 {
  background-color: #e74c3c;
}
.region-2 {
  background-color: #3498db;
}
.region-3 {
  background-color: #2ecc71;
}
.region-4 {
  background-color: #f39c12;
}
.region-5 {
  background-color: #9b59b6;
}
.region-6 {
  background-color: #1abc9c;
}
.region-7 {
  background-color: #34495e;
}
.region-8 {
  background-color: #d35400;
}

#layers {
  top: 110px;
  left: 10px;
  width: 200px;
}

.popup-content {
  max-width: 300px;
}

.popup-content h3 {
  margin-top: 0;
  color: #1a5fb4;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.popup-content p {
  margin: 6px 0;
  line-height: 1.4;
}
