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

/* Control panel for layer toggles */
#menu {
    position: absolute;
    top: 90px;
    left: 10px;
    max-height: calc(100vh - 130px);
    overflow-y: scroll;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    //font-family: sans-serif;
    font-size: 16px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 4;
}

#menu label {
    display: block;
    cursor: pointer;
}

/* Slope legend */
#slope-legend {
    position: absolute;
    bottom: 35px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    //font-family: sans-serif;
    font-size: 16px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

#slope-legend div.color-box {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

/* Control panel for custom tools */
#toolsMenu {
    position: absolute;
    //top: 90px;
    //right: 60px;
    top: 90px;
    left: 170px;
    //max-height: calc(100vh - 130px);
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

/* Zoom level warning div */
#zoomLevelWarningDiv {
    position: absolute;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    bottom: 50px;
    width: max-content;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    box-shadow:
        /* Goldenrod halo */
        0 0 0 2px rgba(218, 165, 32, 0.9),
        /* depth */
        0 2px 8px rgba(0, 0, 0, 0.35);
    z-index: 3;
}

/* Measure distance div */
#measureDistanceDiv {
    position: absolute;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    bottom: 25px;
    width: max-content;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    box-shadow:
        /* Goldenrod halo */
        0 0 0 2px rgba(218, 165, 32, 0.9),
        /* depth */
        0 2px 8px rgba(0, 0, 0, 0.35);
    z-index: 3;
}

.maplibregl-ctrl-scale {
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    font-size: 14px;        /* bigger text */
    font-weight: bold;
    line-height: 20px;
    padding: 6px 10px;      /* more spacing */
    background-color: #ffffff;
}

@media (min-width: 768px) {
  .show-md {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }
}
