/* Estilos generales */
body, .container-fluid {
    background-color: #f5f5f5;
}

body {
    display: flex;
    height: 100vh;
    font-family: 'Montserrat', sans-serif;
}

.container-fluid {
    margin: auto;
}

.owl-carousel .item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1rem;
}

#map {
    flex-grow: 1;
    width: 100%;
}

.btn-primary {
    background-color: #5fb709;
    border-color: #5fb709;
}

#GruerosLista2Modal.show {
    display:flex!important;
}

#verGrueroModal.show {
    display:flex!important;
}

.buscarBtn {
    box-shadow: none !important;
    border: none !important;
}

#buscar {
    box-shadow: none !important;
    border: none !important;
}

#divbuscador {
    border-radius: 0.5rem;
    box-shadow: 0 0 0.6rem 0.2rem #cbcbcb;
    background-color: white;
    margin: 1rem;
    height: 2.5rem !important;
    width: 22rem !important;
    z-index: 900;
}

#divbuscador input {
    font-size: 0.8rem;
    height: 100%;
    border-top-right-radius: 0rem;
    border-bottom-right-radius: 0rem;
}

#grueros-list {
    list-style: none;
    margin-left: -2rem;
    overflow-y: scroll;
    height: 70%;
    width: -webkit-fill-available;
    overflow-x: hidden;
}

/* Media Queries */

/* Para pantallas grandes (1200px o más) */
@media (min-width: 1200px) {
    #divbuscador {
        border-radius: 0.5rem !important;
        box-shadow: 0 0 0.6rem 0.2rem #cbcbcb !important;
        background-color: white !important;
        margin: 1rem !important;
        height: 2.9rem !important;
        width: 29rem !important;
        z-index: 900 !important;
    }

    #divbuscador input {
        font-size: 1rem !important;
        height: 100%;
        border-top-right-radius: 0rem;
        border-bottom-right-radius: 0rem;
    }

    #grueros-list {
        width: 29rem !important;
    }

    #grueros-list .distance {
        color: gray;
        margin-top: -0.9rem;
        font-size: 0.9rem !important;
    }

    #grueros-list {
        padding-right: 2.3rem;
    }
}

/* Para pantallas pequeñas (de 0px a 768px) */
@media (max-width: 768px) {
    .leaflet-control-zoom.leaflet-bar.leaflet-control {
    margin-bottom:4rem!important;
}
    #divbuscador {
        border-radius: 0.5rem;
        box-shadow: 0 0 0.6rem 0.2rem #cbcbcb;
        background-color: white;
        z-index: 900;
        width: -webkit-fill-available !important;
        height: 4rem !important;
        margin: 1rem;
    }
    
    #divbuscador input {
        font-size:1rem!important;
    }
    
    #grueros-list2 .font-weight-bold {
        margin-bottom: 0rem;
        text-align: left;
    }
    
    #grueros-list2 .distance {
        text-align: left;
        margin-bottom: 0.3rem;
    }
    
    #grueros-list2 .btn {
        font-size: 1rem!important;
    }
}

/* Para pantallas medianas (de 576px a 1199px) */
@media (min-width: 576px) and (max-width: 1199px) {
    #grueros-list .row {
        width: 15rem;
    }

    #grueros-list {
        width: 25rem !important;
    }

    #grueros-list .font-weight-bold {
        font-size: 0.9rem;
    }

    #grueros-list .distance {
        color: gray;
        margin-top: -1.1rem;
        font-size: 0.8rem;
    }
}

/* Estilos para el scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #5fb709;
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background-color: #e0e0e0;
}

.cursor-pointer {
    cursor:pointer!important;
}

#loginModal {
    font-size:0.9rem;
}

#loginModal .form-control {
    font-size:0.9rem!important;
}

#loginModal .img-div {
    margin-top:1rem;
}

#loginModal h4 {
    margin-top:2rem;
}


.modal-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999999999999; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-fullscreen .modal-dialog {
    max-width: 100%;
    height: 100%;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border-radius: 0;
}

.modal-fullscreen .modal-header,
.modal-fullscreen .modal-body,
.modal-fullscreen .modal-footer {
    padding: 20px;
}

.input-group-text {
    border: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: #5fb709;
    color: white;
    font-size: 0.9rem;
}


.select2-container {
    z-index: 999999999999999!important;
    width: 5rem!important;
}

.select2-selection {
    height: 2.2rem!important;
    border-radius: 0rem!important;
}

.btn-primary {
    background-color:#f44336!important;
    border-color:#f44336!important;
}


.autocomplete-suggestions {
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    background: white;
    width: 100%;
    margin-top:2.9rem;
    z-index: 1000;
}
.autocomplete-suggestion {
    padding: 5px;
    cursor: pointer;
}
.autocomplete-suggestion:hover {
    background: #ddd;
}



