/* ================================================
   CHARTS DROGAS AGUAS RESIDUALES - CSS
   ================================================ */

* {
    box-sizing: border-box;
}

/* ------------------------------------------------
   MAPA
   ------------------------------------------------ */

#div-container-mapa-drogas {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

#container-mapa-drogas {
    width: 100%;
    position: relative;
}

#container-zoom-buttons-drogas {
    display: flex;
    flex-direction: column;
    position: absolute;
    gap: 5px;
    bottom: 10px;
    left: calc(100% - 35px);
    z-index: 3;
    height: fit-content;
}

#container-zoom-buttons-drogas button {
    width: 35px;
    height: 35px;
    font-size: 30px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Encode Sans", sans-serif;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
    outline: none;
    border: 0;
    box-sizing: border-box;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 25px;
    color: #555555 !important;
    padding: 0;
}

#container-zoom-buttons-drogas button img {
    width: 25px;
}

#container-zoom-buttons-drogas button:focus {
    outline: none;
}

#container-zoom-buttons-drogas button,
a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#container-legend-mapa-drogas {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.92);
    padding: 12px 8px 8px 8px;
    border-radius: 5px;
    z-index: 3;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    top: 5px;
    left: 5px;
    min-width: 170px;
}

.legend-drogas-aguas {
    font-family: "Encode Sans", sans-serif;
    font-size: 12px;
}

/* Botones de sustancias */
#container-botones-sustancias {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    font-family: "Encode Sans", sans-serif;
}

.boton-sustancia {
    padding: 5px 10px;
    border-radius: 20px;
    border: 1.5px solid #ccc;
    background-color: #ffffff;
    font-family: "Encode Sans", sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    color: #444;
    white-space: nowrap;
}

.boton-sustancia:hover {
    border-color: #888;
    background-color: #f5f5f5;
}

.boton-sustancia.activo {
    background-color: #222;
    color: #fff;
    border-color: #222;
}

/* Buscador */
.container-buscador-ciudades-drogas {
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 10;
}

.search-ciudades-drogas-contenedor input {
    width: 100%;
    padding-left: 40px;
    border: 1px solid #d9d9d9;
    height: 35px;
    padding: 10px 10px 10px 40px;
    font-family: "Encode Sans", sans-serif;
    font-size: 14px;
    background-color: #ffffff;
    color: rgba(0, 0, 0, 0.75);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 5px;
}

.input-icon-wrapper-drogas {
    position: relative;
    width: 200px;
}

.input-icon-wrapper-drogas svg {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

#suggestions-search-results-drogas {
    background-color: rgba(255, 255, 255, 1);
    border-radius: 4px;
    list-style: none;
    margin: 0;
    padding: 0px 5px;
    position: absolute;
    z-index: 1000;
    overflow: hidden;
    font-size: 14px;
    width: 200px;
    font-family: "Encode Sans", sans-serif;
}

#suggestions-search-results-drogas li {
    border-bottom: 1px solid #c5c5c5;
    vertical-align: middle;
    align-items: center;
    text-align: left;
    height: 30px;
    line-height: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Labels mapa */
.labels-mapa-drogas {
    font-family: "Encode Sans", sans-serif;
    pointer-events: none;
    fill: #000;
    stroke: none;
    font-weight: 400;
    font-size: 11px;
}

/* ------------------------------------------------
   BEESWARM
   ------------------------------------------------ */

.contenedor-beewarm-drogas {
    width: 100%;
}

.beewarm-drogas {
    width: 100%;
}

.beewarm-drogas text {
    font-size: 12px;
    font-family: "Encode Sans", sans-serif;
}

.beewarm-drogas .eje-horizontal-beewarm-drogas path {
    stroke-width: 0;
}

.beewarm-drogas .eje-horizontal-beewarm-drogas text {
    fill: #939393;
}

.beewarm-drogas .eje-horizontal-beewarm-drogas line {
    stroke: #c5c5c5;
}

.beewarm-drogas .eje-vertical-beewarm-drogas path {
    stroke-width: 0;
}

.beewarm-drogas .eje-vertical-beewarm-drogas text {
    fill: #222;
    font-weight: 600;
}

.beewarm-drogas .eje-vertical-beewarm-drogas line {
    stroke: none;
}

.circle-ciudad-drogas {
    cursor: pointer;
}

/* ------------------------------------------------
   TOOLTIP
   ------------------------------------------------ */

.tooltip-drogas-aguas {
    position: absolute;
    z-index: 10;
    visibility: hidden;
    color: black;
    padding: 8px;
    background-color: white;
    border-radius: 0px;
    font-size: 12px;
    pointer-events: none;
    font-family: "Encode Sans", sans-serif;
    box-shadow: 0 2px 2px 0 #ccc;
    border: 1px solid #ccc;
    margin-left: 2px;
    line-height: 1.5;
}

/* ------------------------------------------------
   RESPONSIVE
   ------------------------------------------------ */

@media (max-width: 600px) {
    #container-mapa-drogas {
        width: 100%;
        overflow: scroll;
        overflow-y: hidden;
        position: relative;
    }

    #container-zoom-buttons-drogas {
        position: absolute;
        gap: 5px;
        bottom: 5px;
        right: 5px;
        left: auto;
        z-index: 3;
        top: auto;
    }

    #container-legend-mapa-drogas {
        position: relative;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        box-shadow: none;
        gap: 10px 5px;
        padding: 0px;
        order: 2;
    }

    #container-botones-sustancias {
        justify-content: center;
    }

    .boton-sustancia {
        font-size: 11px;
        padding: 4px 8px;
    }

    div#container-mapa-drogas::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
}
