

/* Painel lateral (sidebar) */
#sidebar-results{
    position: fixed;
    top: 0;
    right: -380px; /* Começa escondido fora da tela */
    width: 350px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    z-index: 1001; /* Garante que fique sobre o mapa */
    transition: right 0.4s ease-in-out; /* Animação de deslize */
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#sidebar-results.active {
    right: 0;
}

.close-sidebar-btn {
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Classe para mostrar o painel */
#sidebar-results.open {
    right: 0; /* Desliza para a posição visível */
}

/* Botão para fechar o painel */
#sidebar-results-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
}

#sidebar-results-close-btn:hover {
    color: #000;
}

/* Estilos para o conteúdo do painel */
#sidebar-results-content h3 {
    margin-top: 20px;
    color: #333;
}

#sidebar-results-content p {
    color: #666;
    line-height: 1.6;
}

/* Indicador de carregamento inicial */
#loading-indicator {
    display: none;
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #888;
}

#sidebar-results input,
#sidebar-results select {
    font-size: 0.9rem;
}

#sidebar-results .btn i {
    margin-right: 4px;
}


/****** DIV PESQUISA DE LICENÇAS *****/


#licenca-results {
    max-height: 360px !important;
    height: 360px !important;
    overflow-y: auto;
}

#licenca-results li {
  cursor: pointer;
}

#licenca-results li:hover {
  background: #f5f5f5;
}

/* export dropdown item hover */
.export-item:hover {
  background:#f0f0f0;
}


/* Container dos grupos */
#layerGroupsContainer .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 20px; /* Espaçamento entre grupos */
}

/* Botão do Accordion (Título do Grupo) */
#layerGroupsContainer .accordion-button {
    padding: 8px 5px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e9ecef; /* Linha discreta */
    border-radius: 0;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: none !important; /* Remove glow do Bootstrap */
}

/* Estado Hover do Botão */
#layerGroupsContainer .accordion-button:hover {
    background-color: #f8f9fa;
}

/* Estado Ativo (Aberto) */
#layerGroupsContainer .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: #000;
    border-bottom: 1px solid #dee2e6; /* Linha um pouco mais escura */
}

/* Remove a seta padrão do Bootstrap */
#layerGroupsContainer .accordion-button::after {
    display: none !important;
}

/* Corpo do Accordion (Lista de camadas) */
#layerGroupsContainer .accordion-body {
    padding: 10px 5px;
}

/* --- Ícone Personalizado (Seta) --- */
.custom-accordion-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    margin-left: auto; /* Empurra para a direita */
    fill: #6c757d; /* Cinza discreto */
}

/* Rotação do ícone quando aberto */
.accordion-button:not(.collapsed) .custom-accordion-icon {
    transform: rotate(180deg);
    fill: #333;
}

/* --- Itens da Lista de Camadas --- */
.layer-row {
    margin-bottom: 0.5rem;
}

.layer-label {
    cursor: pointer;
    margin-left: 8px;
    font-size: 0.9rem;
}

.layer-input {
    cursor: pointer;
}

/* Controles extras (Opacidade/Legenda) */
.layer-controls {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    border-left: 1px solid #dee2e6;
    padding-left: 1rem;
    display: none; /* Oculto por padrão */
}

.layer-controls.active {
    display: block;
}

/* Slider de Opacidade */
.opacity-control {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.opacity-label {
    font-size: 11px;
    min-width: 55px;
    margin-bottom: 0;
    margin-right: 0.5rem;
    color: #6c757d;
}

.opacity-range {
    height: 4px;
}

/* Imagem da Legenda */
.legend-image {
    max-width: 100%;
    margin-top: 5px;
    border: 1px solid #dee2e6;
    padding: 2px;
    border-radius: 4px;
}