/* BlueForest Hirosaki - 危険箇所マップ(danger-map)専用スタイル */

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.map-legend label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.legend-dot.accident { background: #c4687a; }
.legend-dot.complex  { background: #c9a84c; }
.legend-dot.oneway   { background: #5b7fa8; }
.legend-dot.school   { background: #4a8c6a; }

#danger-map {
  height: 480px;
  border-radius: 6px;
  margin-bottom: 1rem;
}
#danger-map .leaflet-popup-content {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Modern theme integration / failsafes */
.road-danger-map-page #danger-map,
#danger-map {
  width: 100%;
  min-height: 480px;
  background: #e9efed;
  overflow: hidden;
}
.danger-map-error {
  display: grid;
  place-items: center;
  padding: 2rem;
}
.danger-map-error-message {
  max-width: 34rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(19,37,43,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  color: #445153;
  text-align: center;
}
@media (max-width: 640px) {
  .road-danger-map-page #danger-map,
  #danger-map {
    height: 62vh;
    min-height: 420px;
    max-height: 620px;
  }
}
