/* Estilos Base para o HTML e o Corpo */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;

}

/* Estilo do Mapa */
#map {
    height: 100%;
    width: 100%;
}


/* Estilos de `dl`, `ol`, `ul` */
dl, ol, ul {
    margin-top: 0px;
    margin-bottom: 0px;
}

/* Estilos do Rodapé do Modal */
.modal-footer {
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* Estilos Gerais do Modal */
.modal-dialog {
    /* Bootstrap padrão para centralização horizontal */
    margin: 1.75rem auto; 
}

/* Aplica o max-width para desktop */
@media (min-width: 868px) { 
    .modal-dialog {
        max-width: 780px; /* 50% da largura da tela no desktop */
    }
}

/* Aplica o max-width para desktop */
@media (max-width: 868px) { 
    .modal-dialog {
        max-width: 95%; /* 50% da largura da tela no desktop */
		max-height: 95%;

		
    }
	  .modal-content {
     	bottom: 10px; /* Fica 10px do rodapé em mobile */
		
    }
}

/* NOVO: Regras para .modal-bottom aplicadas APENAS em telas menores (até 767.98px) */
@media (max-width: 767.98px) {
    .modal.fade .modal-bottom {
        position: fixed;
        top: auto;
        bottom: 10px; /* Fica 10px do rodapé em mobile */
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px); /* Ajusta a largura para mobile com um pequeno padding */
        max-width: none; /* Remove o max-width para telas pequenas */
    }

    /* Ajusta a animação de entrada/saída para vir de baixo em mobile */
    .modal.fade.show .modal-bottom {
        transform: translate(-50%, 0); 
    }

    .modal.fade:not(.show) .modal-bottom {
        transform: translate(-50%, 100vh); 
    }
}

/* Estilo do Conteúdo do Modal */
.modal-content {
    background: #F8F8F8 !important;
}

/* Estilos dos itens linkados */
.item-link {
    padding: 10px;
    border: 1px solid #B1F8F5;
    display: flex;
    align-items: center;
    width: 100%;
    transition: background-color 0.3s ease;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    border-radius: 12px;
    box-shadow: 0px -3px 31px -7px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Hover para itens linkados e detalhes de local */
.item-link:hover, .local-detalhe-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Estilos de Checkbox */
input[type="checkbox"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Estilos de Labels nos Controles */
#controls label {
    color: #212529;
}

/* Estilos de Transição de Modal */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.fade.show ~ .modal-backdrop {
    transition: opacity 0.3s ease-out;
}

/* Estilos do popup-img e modal-img */
.popup-img {
    height: 80px;
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}
.modal-img {
    flex: 1 1 calc(33.33% - 10px); /* até 3 por linha no mobile */
    max-width: calc(33.33% - 10px);
    max-height: 150px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    object-fit: cover;
}
@media (min-width: 1024px) {
    .modal-img {
        flex: 1 1 calc(20% - 10px); /* 5 por linha */
        max-width: calc(20% - 10px);
    }
}

/* Estilos para o overlay de carregamento */
#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}
#loading-overlay p {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

/* Estilos base para garantir consistência */

dados-acao-mobile-app {
    
    color: #343a40;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* padding: 5px; */
    /* max-width: 700px; */
    /* margin: 0px auto; */ /* 10px para cima e para baixo, 'auto' para centralizar horizontalmente */
}

/* Estilo Base para Todos os "Cards" de Informação */
.acao-item-app {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 5px 10px;
    display: flex;
    margin-bottom: 10px;
    flex-direction: column;
    flex-grow: 1;
}




/* Contêiner específico para o par Status e Prioridade */
.acao-pair-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Itens de "Metade da Largura" dentro do wrapper */
.acao-pair-wrapper .acao-item-app {
    flex: 1 1 calc(50% - 5px);
    min-width: 120px;
}

/* Estilo para os Labels (Títulos dos Campos) - GERAL */
.acao-label-app {
    font-weight: 600;
    color: #6a748a;
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

/* Centraliza apenas os labels dentro de .acao-pair-wrapper */
.acao-pair-wrapper .acao-label-app {
    justify-content: center;
}

/* Ícones dentro dos Labels */
.acao-label-app .bi {
    font-size: 1rem !important;
    margin-right: 6px;
    color: #4a90e2;
}

/* Estilo para os Valores dos Campos */
.acao-value-app {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}

/* Estilo para Valores que Têm Ícones */
.acao-value-app.acao-value-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* Ícones de Status/Prioridade/Data dentro dos Valores */
.status-icon,
.value-icon {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Estilos para Listas de Locais */
.acao-list-locais {
    margin-top: 5px;
    padding-left: 0;
    list-style: none;
}

.acao-list-locais li {
    padding: 4px 0;
}

.acao-list-locais a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.2s ease-in-out;
}

.acao-list-locais a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Ícones específicos da lista de locais */
.acao-list-locais .bi-geo-alt {
    font-size: 0.9rem;
    margin-right: 6px;
    color: #6c757d;
}

.acao-list-locais .status-icon-small {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    flex-shrink: 0;
}

.acao-list-locais .bi-geo-alt-fill {
    font-size: 0.8rem;
    margin-left: 5px;
    color: #28a745;
}

/* Media Queries para Responsividade (ajustes para telas maiores) */
@media (min-width: 768px) {
    .dados-acao-mobile-app {
        padding: 0px;
    }
    .acao-item-app {
        padding: 15px 20px;
    }
}

/* Sobrescreve a altura do modal se necessário, mas para centralizar o Bootstrap precisa de 100% */
/* Removi o !important pois o bootstrap usa flex para centralizar, e o height:98% pode causar problemas */
/* Se seu modal não estiver centralizando verticalmente no desktop, verifique se o .modal tem display:flex e align-items:center */
/* A classe .modal é gerada pelo Bootstrap e já deveria ter isso por padrão */
.modal {
    /* height: 98%; */ /* Descomente e ajuste se houver problemas de layout, mas normalmente não é necessário */
}


/* Estilos dos Controles e Seleção de Cidade */
#controls {
    position: absolute;
    top: 90px;
    left: 10px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 10;
}

#city-select-container {
    position: absolute;
    top: 90px;
    left: 185px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 10;
    display: block;
    max-width: 200px;
}

/* Estilo do Select de Cidade */
#city-select {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    color: #333;
}
.texto1{
	font-size:50px;
}



/* novas adicionando CSS */

	
    .marker-label-balloon {
            background-color: rgba(255, 255, 255, 0.8);
            padding: 5px 10px;
            border-radius: 10px;
			font-size:10px !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transform: translateY(-30px);
			
    }
   .marker-label-balloon-large {
            background-color: rgba(255, 255, 255, 0.8);
            padding: 5px 10px;
            border-radius: 10px;
			font-size:10px !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transform: translateY(-50px);
		
    }

    #floating-controls {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    }

    .floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    }

    .floating-btn:hover {
    background-color: #0056b3;
    }

/* Alterações aqui: Adicionando animação CSS */
.controls-container {
    position: fixed;
    top: 80px;
    left: 80px;
    z-index: 999;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Estado inicial para a animação */
    transform: translateX(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out, visibility 0.4s ease-out;
    width: 270px;
    max-width: 270px;
}

.controls-container.show {
    /* Estado final para a animação */
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.controls-container > div:first-child {
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 60px);
    margin-bottom: 0 !important;
}
#tutorial-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out;
}

.close-btn:hover {
    background-color: #f0f0f0;
}

    .close-btn {
        position: absolute;
        top: 5px;
        right: 5px;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #666;
        padding: 5px;
        border-radius: 50%;
        transition: background-color 0.2s ease-in-out;
    }

    .close-btn:hover {
        background-color: #f0f0f0;
    }

    /* Estilo geral para o container do checkbox personalizado */
    .custom-checkbox {
        display: flex;
        align-items: center;
        position: relative;
        padding-left: 35px;
        margin-bottom: 12px;
        cursor: pointer;
        font-size: 14px;
        user-select: none;
        line-height: 1.2;
    }

    /* Esconde o checkbox padrão do navegador */
    .custom-checkbox input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    /* Estilo do checkmark (o quadrado do checkbox) */
    .checkmark {
        position: absolute;
        top: 0;
        left: 0;
        height: 20px;
        width: 20px;
        border-radius: 4px;
        border: 1px solid #ccc;
        background-color: #eee;
        transition: all 0.2s ease-in-out;
    }

    /* Estilos de cor para os checkmarks */
    .checkmark.checkbox-green {
        background-color: #4CAF50;
        border-color: #3e8e41;
    }
    .checkmark.checkbox-blue {
        background-color: #2196F3;
        border-color: #0b7dda;
    }
    .checkmark.checkbox-orange {
        background-color: #FF9800;
        border-color: #e68a00;
    }
    .checkmark.checkbox-black {
        background-color: #333;
        border-color: #111;
    }

    /* Efeito de hover no checkmark */
    .custom-checkbox:hover input ~ .checkmark {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    }

    /* Cor de fundo quando o checkbox está selecionado */
    .custom-checkbox input:checked ~ .checkmark.checkbox-green {
        background-color: #45a049;
    }
    .custom-checkbox input:checked ~ .checkmark.checkbox-blue {
        background-color: #0c82de;
    }
    .custom-checkbox input:checked ~ .checkmark.checkbox-orange {
        background-color: #f58400;
    }
    .custom-checkbox input:checked ~ .checkmark.checkbox-black {
        background-color: #000;
    }

    /* Cria o ícone de 'visto' quando o checkbox está selecionado */
    .checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

    /* Estilo e posição do ícone de 'visto' */
    .custom-checkbox input:checked ~ .checkmark:after {
        content: "\2713";
        display: block;
        color: white;
        font-size: 16px;
        font-weight: bold;
        left: 3px;
        top: 0px;
    }

    /* Estilos para o texto ao lado do checkbox */
    .custom-checkbox > span {
        margin-left: 5px;
    }


    /* ESTILOS ADICIONADOS PARA AS MARGENS DO MAPA */
    #map-container {
        position: absolute;
        top: 0px;
        right: 0px;
        bottom: 0px;
        left: 0px;
    }

    #map {
        height: 100%;
        width: 100%;
    }
    /* FIM DOS ESTILOS ADICIONADOS */