.map-responsive {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
}

#map { height: 500px; border-radius: 10px; }
        .info-box { background: #f9f9f9; padding: 15px; border-radius: 5px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); }
        .info-box h4 { margin-top: 0; }
        .filter-tags { margin-bottom: 15px; }
        .filter-tag { display: inline-block; background: #007bff; color: white; padding: 5px 10px; border-radius: 15px; margin-right: 5px; cursor: pointer; transition: opacity 0.3s ease-in-out; }
        .filter-tag:hover { opacity: 0.7; }
        .hidden { opacity: 0; transform: scale(0.9); transition: opacity 0.3s ease, transform 0.3s ease; }
        .visible { opacity: 1; transform: scale(1); }

h1 {
    margin-bottom: 30px;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#suggestions {
    position: absolute;
    z-index: 1000;
    background: white;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

#preset-locations {
    margin-top: 20px;
}

#filter-container {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    background: #007bff;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeIn 0.3s ease-out forwards;
    transition: all 0.3s ease-in-out;
}

.filter-tag:hover {
    background: #0056b3;
}

.filter-tag.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Estilo para los selectores */
select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    background: #fff;
}

/* Efecto al pasar el mouse sobre los selectores */
select:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

/* Animación para la opción seleccionada */
@keyframes highlightOption {
    0% { background-color: #007bff; color: white; }
    100% { background-color: white; color: black; }
}

select:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
}

/* Efecto cuando se selecciona una opción */
select option:checked {
    animation: highlightOption 0.5s ease-in-out;
}

/* Animación para la apertura del selector */
select::-webkit-details-marker {
    transition: transform 0.3s ease-in-out;
}

div#info-unidad h4 {
    border-bottom: 2px solid #eb510d;
    font-weight: bold;
    color: #002c48;
    padding: 10px;
}

div#info-unidad strong {
    border-bottom: 1px dashed #ccc;
    display: block;
    width: 100%;
} 

@media (max-width: 390px) {

    section.mapas_geolocalizacion {
    margin-top: 20%;
}
    .row.mapa {
    margin: 100px 0 0 0;
    overflow: hidden;
    border-radius: 2px;
    padding: 15px 2px 2px 2px;
    background: linear-gradient(to bottom, rgba(242, 242, 242, 1) 0%, rgba(255, 255, 255, 1) 100%);
 }
}


@media (max-width: 430px) {
    
    section.mapas_geolocalizacion {
    margin-top: 20%;
}
  
}

#mapa-unidad {
    margin-top: -12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
        #info-unidad {
            background: #f9f9f9;
            padding: 15px;
            border-radius: 5px;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        }
        #map {
            height: 400px;
            border-radius: 10px;
        }
        .unidad-list {
            margin-top: 10px;
            padding: 10px;
            background: #f8f8f8;
            border-radius: 5px;
        }
        .unidad-list ul {
            list-style-type: none;
            padding: 0;
        }
        .unidad-list li {
            font-size: 0.9em;
            padding: 10px;
            border-bottom: 1px solid #ddd;
            cursor: pointer;
            transition: background 0.3s ease;
        }
        .unidad-list li:hover {
            background: none;
        }
        .unidad-list li.active {
            background: #007bff;
            color: white;
            font-weight: bold;
        }
        .filter-tags {
            margin-top: 10px;
        }
       .filter-tag {
    display: inline-block;
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 0.8em;
}

.filter-tag-reset {
    box-shadow: 0px 0px 20px 6px #eee;
    background: #FFFFFF;
    overflow: hidden;
    margin: 0px;
    padding: 15px;
    border-radius: 15px;
}

        .selector-mapa {
    /*overflow: hidden;*/
    padding: 1% 0% 0% 0%;
    margin: 1% 0% 0% 0%;
    border-top: 5px solid #f5f5f5;
    
}

.horarios-atencion {
    padding: 7% 0% 7% 0%;
}

a#reset-filters {
    font-size: 0.8em;
    text-decoration: underline;
    cursor: pointer;
    color: #eb510d;
    text-transform: uppercase;
    font-weight: bold;
}


.selector_filtro select#region, .selector_filtro select#comuna {
    border: 2px solid #706f6f;
    background: #fff;
    border-radius: 8px;
    height: 50px;
    font-size: medium;
}

h4 strong {
    font-family: "Roboto";
    margin: 0% 0% 14% 0%;
    color: #337ab7;
    padding: 7px;
}

div#unidad-list h4 strong {
    color: #706f6f;
    border-bottom: none;
}

h4.titulo_filtro {
    /* display: block; */
    /* margin: 5px; */
    /* float: left; */
    width: 100%;
}

.selector_filtro {
    margin-top: 0%;
}
.col-md-12.filtros_uso{
box-shadow: 0px 0px 20px 6px #eee;
    background: #FFFFFF;
    overflow: hidden;
    margin: 30px 0 15px 0;
    padding: 15px;
    border-radius: 15px;
}

div#unidad-list ul li a {
    display: block;
    color: #eb510d;
}

div#unidad-list ul li .glyphicon {
    font-size: 1.6em;
    color: #337ab7;
    margin: 7% 4% 4% 2%;
    display: block;
    float: left;
}

div#unidad-list ul li .glyphicon:hover {
    font-size: 1.6em;
    color: #337ab7;
    margin: 7% 4% 4% 2%;
    display: block;
    float: left;
    color: #eb510d;
}

.ico_map {
     overflow: hidden;
    /* background: red; */
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 0 0 -20px;
}

.ico_map > img {
    width: 60px;
}




.nearest-unit {
    background-color: #ffeb3b;
    border-left: 5px solid #ff9800;
    padding: 10px;
    margin-bottom: 10px;
}