/* styles.css */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Roboto Mono', monospace;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

.legend {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  max-width: 240px;
  z-index: 2;
}
.legend .dropdown {
  margin-bottom: 8px;
}
.legend select {
  width: 100%;
  padding: 4px 6px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #aaa;
  background: #fff;
}
.legend h4 {
  margin: 6px 0 4px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.legend hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 8px 0;
}
.legend .item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.legend .swatch {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border: 1px solid #999;
}

/* Loading indicator */
.loading-indicator {
  display: flex;
  align-items: center;
  margin: 10px 0;
  color: #666;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Search bar styling */
#search-container {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.9);
  padding: 4px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
}
#search-container input {
  width: 100px;
  margin-right: 4px;
}
#search-container button {
  cursor: pointer;
}