html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

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

#mapPolygon {
    height: 90vh;
    width: 100%;
}

.controls {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    z-index: 1000;
}

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

.legend span {
    width: 20px;
    height: 10px;
    display: inline-block;
    margin-right: 5px;
}

.red-line {
    background: red;
}

.blue-line {
    background: blue;
}