/* Popup "Activare locatie" pe pagina Default.
   Stil identic cu cel de pe Harta-Clinici (#divPermisiuneLocatie),
   ca sa fie consistent intre cele doua pagini. */

#divPermisiuneLocatie {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 25px 30px;
}

    #divPermisiuneLocatie .second-wrapper {
        background-color: #fdfdfd;
        padding: 20px 30px;
        font-weight: 600;
        display: flex;
        gap: 20px;
        border-radius: 7px;
        position: relative;
        width: 630px;
    }

        #divPermisiuneLocatie .second-wrapper .iconClose {
            background-color: #fff;
            border-radius: 40px;
            box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.25);
            color: #7563F8;
            padding: 8px;
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
            z-index: 1;
        }

    #divPermisiuneLocatie #btnActiveazaLocatie {
        padding: 10px 50px;
        font-size: 16px;
        font-weight: 600;
        background-color: #22AD01;
        color: #fff;
        border: none;
        border-radius: 5px;
        text-transform: uppercase;
        cursor: pointer;
    }

    #divPermisiuneLocatie .permisiuneText {
        color: rgba(80, 89, 108, 0.70);
        font-size: 18px;
        font-weight: 500;
        line-height: normal;
        min-width: 185px;
        text-align: start;
    }

    #divPermisiuneLocatie .rand {
        width: 100%;
        align-items: center;
        gap: 85px;
        position: relative;
    }

    #divPermisiuneLocatie .horizontalLine {
        border-bottom: 1px dashed #A8A8A8;
        width: 100%;
    }

    /* Input "Alege localitate" din popup + dropdown rezultate */
    #divPermisiuneLocatie #txtLocalitateCautareModal {
        width: 100%;
        padding: 10px 15px;
        border: 1px solid #d9dde5;
        border-radius: 5px;
        font-size: 15px;
        outline: none;
        box-sizing: border-box;
    }

    #divPermisiuneLocatie #divLocalitatiGasiteModal {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        width: 100%;
        max-height: 220px;
        overflow-y: auto;
        background-color: #fff;
        border: 1px solid #d9dde5;
        border-radius: 5px;
        box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.12);
        z-index: 10;
    }

        #divPermisiuneLocatie #divLocalitatiGasiteModal .localitate-item {
            padding: 8px 15px;
            cursor: pointer;
            font-weight: 500;
            color: #50596c;
        }

            #divPermisiuneLocatie #divLocalitatiGasiteModal .localitate-item:hover {
                background-color: #f3f4f6;
            }

        #divPermisiuneLocatie #divLocalitatiGasiteModal .fara-localitati {
            padding: 8px 15px;
            color: #8492af;
            font-weight: 500;
        }

/* Overlay de incarcare (dupa ACTIVEAZA, pana se detecteaza localitatea) */
#divLoadingLocatie {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 110;
}

    #divLoadingLocatie .loadingLocatieBox {
        background-color: #fdfdfd;
        padding: 30px 40px;
        border-radius: 7px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    #divLoadingLocatie .loadingLocatieSpinner {
        width: 44px;
        height: 44px;
        border: 4px solid #e6e6e6;
        border-top-color: #7563F8;
        border-radius: 50%;
        animation: spinLoadingLocatie 0.8s linear infinite;
    }

    #divLoadingLocatie .loadingLocatieText {
        color: #50596c;
        font-size: 16px;
        font-weight: 600;
    }

@keyframes spinLoadingLocatie {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    #divPermisiuneLocatie .second-wrapper {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    #divPermisiuneLocatie .rand {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    #divPermisiuneLocatie .permisiuneText {
        min-width: unset;
    }
}
