﻿/* --- LAYOUT LADO A LADO (LISTA E MAPA) DESKTOP --- */
/* ------ DESKTOP ------ */
.layout-flex {
    display: flex;
    gap: 1rem;
    margin-top: 2em;
}

/* LISTA = 70% */
.lista-container {
    width: 70%;
    height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* MAPA = 30% */
.mapa-container {
    width: 30%;
    height: 100%;
    min-height: 600px;
    border-radius: 8px;
}


.lista-container::-webkit-scrollbar {
    width: 8px;
}

.lista-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

    .lista-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }


/* --- CONTROLE MOBILE --- */
.controle-mobile {
    display: none;
    margin-bottom: 1rem;
}

.btn-toggle-view {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
}

    .btn-toggle-view i {
        font-size: 20px;
    }

/* --- MODO MOBILE --- */
@media (max-width: 992px) {

    .layout-flex {
        display: block;
    }

    .lista-container,
    .mapa-container {
        width: 100%;
    }

    .controle-mobile {
        display: none;
    }

    .mapa-container {
        display: none;
    }
}

/* --- FIM LAYOUT --- */
/*********************/
/*********************/


/*MARCADO ESTILO DO MARCADOR ESTILO DOS MARCADORES AGRUPADOS*/
/*********************/
.marker-red {
    width: 18px;
    height: 18px;
    background-color: #dc3545;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 5px #00000033;
}

.marker-blue {
    width: 18px;
    height: 18px;
    background-color: #2980ff;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 5px #00000033;
}

.marker-cluster-small {
    background-color: rgba(0, 160, 255, 0.6);
}

.marker-cluster-medium {
    background-color: rgba(0, 100, 255, 0.7);
}

.marker-cluster-large {
    background-color: rgba(0, 60, 255, 0.8);
}

.marker-cluster div {
    color: white;
    font-weight: bold;
}


.custom-circle {
    background: transparent !important;
    border: none !important;
}

    .custom-circle .circle {
        width: 21px;
        height: 21px;
        border-radius: 50%;
        background: #2b7be9;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 12px;
        font-weight: bold;
        border: 2px solid white;
        box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    }

/*FIM MARCADORES*/
/*********************/


/*ESTILOS GERAIS - DIV DE FILTRO BOTÕES ETC*/
/*********************/

@media (max-width: 480px) {
    #grupoPesquisaCodigo h3 {
        font-size: 10px;
    }

    #grupoPesquisaCodigo h8 {
        font-size: 10px;
    }

    #btnPesquisar {
        width: 100px !important;
        height: 30px !important;
        font-size: 10px !important;
        padding: 5px !important;
        min-width: unset !important;
    }

    .pesquisarFinal {
        display: block !important;
        width: auto !important;
        margin-top: 10px !important;
        float: none !important;
    }
}

#divPesquisa {
    margin-top: -30px;
    width: 100% !important;
}

.input-group .input-group-append {
    display: flex;
    align-items: center;
}

    .input-group .input-group-append i {
        margin-left: 5px;
        cursor: pointer;
    }

#div_AreaFormacao {
    padding-left: 0;
}

/* Desktop */
@media (min-width: 768px) {
    #div_AreaFormacao {
        padding-left: 15px;
    }
}

.quadro-filtros {
    margin-top: 1.5rem !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

    /* Garante que os itens do grid possam encolher */
    .quadro-filtros > div {
        min-width: 0;
    }

    /* Inputs, selects e botões nunca estouram */
    .quadro-filtros input,
    .quadro-filtros select,
    .quadro-filtros button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

/* Corrige problema clássico do select2 */
.select2-container {
    width: 100% !important;
    max-width: 100%;
}

.select2-selection--single {
    width: 100% !important;
}

/* Tablet */
@media (min-width: 576px) {
    .quadro-filtros {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop 2.2fr 2.2fr minmax(110px, 0.7fr) 1fr; */
@media (min-width: 768px) {
    .quadro-filtros {
        grid-template-columns: 2.2fr 2.2fr 1fr;
        gap: 1rem;
        align-items: end;
    }
}


.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
    display: block;
}

.form-control, select {
    width: 100%;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: #374151;
}

.form-radio-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

    .form-radio-group label {
        margin-left: 0.5rem;
        font-size: 0.875rem;
        color: #374151;
    }

#mapaContainer {
    transition: all 0.3s ease-in-out;
}

#chat {
    z-index: 9999 !important;
}

.select2-container--classic .select2-selection--single {
    height: 2.9rem !important;
}

.select2-search__field {
    width: 350px !important;
}

.mapa-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    pointer-events: none;
}

    .mapa-loading.hidden {
        display: none;
    }

.mapa-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #ddd;
    border-top: 4px solid #555;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.row_principal {
    margin-top: 10px
}

#div_pesquisaPorCodigo {
    margin-bottom: 10px;
    display: none;
}
    
    #div_pesquisaPorCodigo h8 {
        color: #999
    }
    #div_pesquisaPorCodigo #btnPesquisar { 
        float: inline-end
    }

#txtCdVaga {
    width: 50% !important
}

#div_pesquisaPadrao h2 {
    font-size: 1.25rem;
    color: #636363;
}

#div_pesquisaPadrao p {
    color: #838484;
    margin-top: 0.25rem;
}

/*FIM - ESTILOS GERAIS*/
/*********************/
