html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

/* Карта занимает весь экран */
#map {
  width: 100%;
  height: 100vh;
}

/* Легенда */
.legend {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;

  background: white;
  padding: 12px 15px;
  border-radius: 10px;

  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-size: 14px;
}

.legend h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

/* Цветовые индикаторы */
.legend p {
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend span {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 3px;
}

/* Цвета риска */
.red {
  background: red;
}

.orange {
  background: orange;
}

.green {
  background: green;
}