/* Mapa */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    /* Color claro del borde del spinner */
    border-radius: 50%;
    /* Hacerlo circular */
    border-top: 4px solid var(--secundario);
    /* Color oscuro del borde superior del spinner */
    width: 40px;
    height: 40px;
    animation: spin 0.5s linear infinite;
}

#mapLoadingIndicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#map,
#map_empresas {
    min-height: 350px;
}

/* FILTROS */
.filtros {
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 0px 0px 8px 8px;
}

.filtros summary {
    cursor: pointer;
    font-size: 18px;
    padding: 10px;
    color: var(--blanco);
    border-radius: 8px 8px 0px 0px;
    background-color: var(--secundario);
}

.formulario-filtros {
    padding: 20px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: flex-start;
}

#buscar_placeros,
#buscar_empresas {
    align-self: flex-end;
}

.campo-formulario {
    width: 250px !important;
    display: flex !important;
    flex-direction: column !important;
}

.seleccionable {
    background-color: #fff !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 40px !important;
    font-size: 16px;
    color: var(--negro);
    background-color: var(--blanco) !important;
    border: none !important;
    padding-bottom: 0 !important;
    padding-right: 0 !important;
    border-bottom: 1px solid var(--secundario) !important;
    border-radius: 0 !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    margin: 0 !important;
}

.select2-container--default .select2-dropdown {
    border: none !important;
}

.select2-container--default .select2-results>.select2-results__options {
    &::-webkit-scrollbar {
        width: 5px;
    }

    &::-webkit-scrollbar-track {
        box-shadow: transparent;
        background-color: #eee;
    }

    &::-webkit-scrollbar-thumb {
        background: var(--secundario);
    }
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--secundario) !important;
    color: var(--blanco) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-color: var(--negro) transparent transparent transparent !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--negro) !important;
    top: 5px !important;
}

.select2-container .select2-dropdown .select2-search__field {
    border: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    border-color: var(--secundario) !important;
    background-color: var(--blanco) !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #eee !important;
    color: #666 !important;
}

/* BOTONES */
.button {
    padding: 8px 16px !important;
    border-radius: 200px !important;
    background-color: var(--secundario) !important;
    box-shadow: none !important;
    border: none !important;
    color: var(--blanco) !important;
    cursor: pointer !important;
    /* width: auto !important; */
    font-weight: 600 !important;
    font-size: 14px !important;
}

.button:hover {
    opacity: 0.9;
    box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* CONTENIDO */
#resultsContainer {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    margin: 50px 0;
    gap: 20px;
}

#usuarios_placeros,
#usuarios_empresas {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    gap: 40px;
    justify-content: center;
}

.placero,
.empresa {
    width: calc(50% - 20px);
    display: flex;
    align-items: center;
    flex-flow: row nowrap;
    gap: 20px;
    padding: calc(2%);
    box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

.placero img,
.empresa img {
    width: 125px;
    height: 100px;
    object-fit: cover;
    border-radius: 100%;
}

.placero-info,
.empresa-info {
    display: flex;
    flex-flow: column nowrap;
}

.placero-info h2,
.empresa-info h2 {
    font-size: 22px;
    line-height: 26px;
    font-weight: 400;
    color: var(--secundario);
}

.placero-info p,
.empresa-info p {
    padding-bottom: 0;
}

.placero-info h2 a,
.empresa-info h2 a {
    color: var(--secundario);
}

.placero-info h2 a:hover,
.empresa-info h2 a:hover {
    color: var(--principal);
}

@media only screen and (max-width: 1000px) {

    .campo-formulario {
        width: 100% !important;
    }

    .formulario-filtros {
        gap: 20px;
    }

    #usuarios_placeros {
        padding: 4%;
    }

    .placero,
    .empresa {
        width: 100%;
        justify-content: center;
        padding: calc(4%);
        flex-flow: row wrap;
    }

    .placero-info {
        width: 100%;
    }

    .placero-info h2,
    .empresa-info h2 {
        text-align: center;
    }

}

/* ANIMACIONES */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}