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

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

#btnPanel {
    position: absolute;

    top: 5px;
    left: 10px;
    border-radius: 50%;
    /* margin-left: 8px; */

    z-index: 1001;

    width: 36px;
    height: 36px;

    border: 1px solid #555;
    border-radius: 6px;

    background: rgba(25,30,35,0.95);
    color: white;

    font-size: 20px;

    cursor: pointer;

    touch-action: manipulation;
    pointer-events: auto;
}

#panelFiltros {
    position: absolute;
    top: 40px;
    left: 50px;
    z-index: 1000;

    width: 290px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 12px;

    background: rgba(25,30,35,0.95);

    color: #E8E8E8;

    border: 1px solid #4A4F57;
    border-radius: 8px;

    box-shadow: 0 0 12px rgba(0,0,0,0.6);

    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;

    transition: transform .25s ease;
}

#panelFiltros.oculto {
    /* display: none; */
    transform: translateX(-110%);
}

#panelFiltros label {
    display: flex;
    align-items: center;
    gap: 8px;

    cursor: pointer;
}

#txtBuscar {

    width: 100%;
    box-sizing: border-box;

    padding: 6px;

    background: #1C2024;
    color: #F0F0F0;

    border: 1px solid #555;
    border-radius: 4px;
}

#txtBuscar:focus {

    outline: none;
    border-color: #00BFFF;
}

#cmbProvincia {

    padding: 5px;

    background: #1C2024;
    color: white;

    border: 1px solid #555;
    border-radius: 4px;
}

#btnMedir {

    padding: 8px;

    background: #2E6DA4;
    color: white;

    border: none;
    border-radius: 4px;

    cursor: pointer;

    transition: background 0.2s;
}

#btnMedir.activo {
    background: #B22222;
}

#btnMedir:hover {

    background: #3E7DB4;
}

input[type=checkbox] {
    accent-color: #00BFFF;
}

.etiquetaMedicionTexto {

    display: inline-block;
    padding: 2px 5px;
    background: rgba(255,255,210,0.95);
    border: 1px solid #444;
    border-radius: 3px;
    font-family: Consolas, monospace;
    font-size: 11px;
    font-weight: bold;
    color: #111;
    text-align: center;
    white-space: nowrap;
}

#distanciaTotal {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #555;
    font-weight: bold;
    color: #FFD54F;
}

@media (max-width: 768px) {

    #panelFiltros {
        left: 10px;
        right: 10px;
        top: 10px;

        width: auto;

        font-size: 16px;
    }

}

/* Espacios aereos */
.etiquetaEspacio {

    color: #ffffff;

    font-family: sans-serif;
    font-size: 12px;
    font-weight: bold;

    text-align: center;

    text-shadow:
        0 0 3px black,
        0 0 6px black;

    white-space: nowrap;

    pointer-events: none;

}