html,
body {
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: sans-serif;
    font-size: small;
    overflow: hidden;
    font: 10pt 'Helvetica Neue', Arial, Helvetica, sans-serif;
}

#map {
    position: relative;
    width: 100%;
    height: 100%;
    font: 10pt 'Helvetica Neue', Arial, Helvetica, sans-serif;
}

#info {
    z-index: 10000;
    opacity: 1;
    position: fixed;
    bottom: 245px;
    right: 10px;
    margin: 0;
    background: rgb(113, 22, 16, 0.7);
    color: white;
    border: 0;
    transition: opacity 100ms ease-in;
}

#leyendasDiv {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 10px;
}

#leyendasDiv h5 {
    margin: 0;
    font-size: 13pt;
}


/* ======== Banner de la UNI  ================ */

#banner {
    padding: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    background-color: rgb(113, 22, 16);
}

.logo-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding-right: 10px;
}

#banner .banner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: white;
}

#banner .banner-text-til {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    color: white;
}

#banner .banner-text-sub {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    color: rgb(223, 223, 223);
}

.headerDivider {
    border-left: 1px solid #fafafa34;
    border-right: 1px solid #ffffff67;
    height: 50px;
}

.navlinks {
    width: 80%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

#banner a {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: white;
    font-size: 12px;
}

/* =========================================== */


.map .ol-custom-overviewmap,
.map .ol-custom-overviewmap.ol-uncollapsible {
    position: fixed;
    bottom: 30px;
    left: auto;
    right: 10px;
    top: auto;
}

.map .ol-custom-overviewmap button,
.map .ol-custom-overviewmap.ol-uncollapsible button {
    visibility: hidden;
}

.map .ol-custom-overviewmap:not(.ol-collapsed) {
    border: 1px solid rgb(113, 22, 16, 0.4);
}

.map .ol-custom-overviewmap .ol-overviewmap-map {
    border: none;
    width: 200px;
    height: 200px;
}

.map .ol-custom-overviewmap .ol-overviewmap-box {
    border: 1.5px solid rgba(160, 11, 11, 0.712);
}

.map .ol-custom-overviewmap:not(.ol-collapsed) button {
    bottom: 0;
    left: auto;
    right: 0;
    top: auto;
}


#map .ol-zoom {
    top: 0.5em;
    left: 58px;
    font-size: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

#map .ol-zoom .ol-zoom-in {
    font-size: 20px;
    color: rgb(113, 22, 16, 0.6);
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
}

#map .ol-zoom .ol-zoom-out {
    font-size: 20px;
    color: rgb(113, 22, 16, 0.6);
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 0 0 5px 5px;
}

#map .ol-zoomslider {
    top: 10px;
    left: auto;
    right: 50px;
    width: 200px;
    height: 31px;
    padding: 0;
    border-radius: 5px;
    background-color: rgba(125, 0, 0, 0.2);
}

#map .ol-zoomslider button {
    height: 29px;
    width: 15px;
}

.ol-control button:hover,
.ol-control button:focus {
    outline: 1px solid rgb(184, 184, 184);
    color: rgb(184, 184, 184);
}

#fullScreenControl {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

#geolocalizar {
    position: absolute;
    top: 50px;
    right: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

#centrarMapa {
    position: absolute;
    top: 90px;
    right: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

#miniMapa {
    position: fixed;
    bottom: 30px;
    right: 10px;
    background-color: white;
    border-radius: 5px;
    z-index: 9999;
}

#buscardireccion {
    position: absolute;
    top: 130px;
    right: 10px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

#centrarMapa button,
#geolocalizar button,
#fullScreenControl button,
#miniMapa button,
#buscardireccion button {
    font-size: 20px;
    color: rgb(113, 22, 16, 0.6);
    border: none;
    background: none;
    cursor: pointer;
}

.cuadro-busqueda {
    position: absolute;
    top: 133px;
    right: 50px;
    padding: 5px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: none;
}

#direccionInput {
    border: none;
    background: none;
    outline: none;
    float: left;
    padding: 0;
    color: black;
    line-height: 20px;
    width: 250px;
    border-bottom: 0.5px solid rgba(119, 119, 119, 0.712);
}

#coordenadas {
    position: fixed;
    font-size: 13px;
    background-color: rgba(125, 0, 0, 0.6);
    color: white;
    padding: 3px;
    border-radius: 2px;
    right: 10px;
    bottom: 2px;
    z-index: 9998;
}

#legend {
    z-index: 10000;
    opacity: 1;
    position: fixed;
    bottom: 235px;
    right: 10px;
    width: 200px;
    max-width: 200px;
    overflow-x: auto;
    white-space: nowrap;
}

.legend-color {
    display: inline-block;
    width: 100%;
    height: 20px;
    border-radius: 5px;
}

#entries {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#legend-title{
    margin: 0;
}

.label {
    flex-grow: 1;
    text-align: center;
    padding: 5px;
    font-weight: 500;
    color: #1b1b1b;
}


.ol-scale-line {
    top: 10px;
    left: 45%;
    height: 13px;
}

/*==== Loading Spinner (Renderizado) ====*/

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner:after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border-radius: 50%;
    border: 5px solid rgba(180, 180, 180, 0.6);
    border-top-color: rgba(125, 0, 0, 0.6);
    animation: spinner 0.6s linear infinite;
}

.layer-switcher {
    position: initial;
}