﻿
body, html {
    height: 100%;
    margin: 0;
    background-color: #f0f0f0; /* Exemplo de cor de fundo */
}

/* Estilizando o container de busca */
.search-container {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    width: 95%;
    /*max-width: 400px;  Define um limite de largura */
    position: absolute; /* Para controlar a posição */
    top: 30px; /* Define a posição ao topo */
    left: 50%; /* Centraliza horizontalmente */
    transform: translateX(-50%); /* Ajusta a posição para o centro exato */
    z-index: 2000; /* Garante que ele fique acima de outros elementos */
    visibility: hidden;
}

.location-icon {
    font-size: 20px;
    color: black;
    padding-right: 8px;
}

.search-box {
    flex-grow: 1;
}

    .search-box .label {
        font-size: 12px;
        font-weight: bold;
        display: block;
        color: black;
    }

    .search-box input {
        border: none;
        outline: none;
        font-size: 14px;
        color: gray;
        width: 100%;
    }

        .search-box input::placeholder {
            color: lightgray;
        }

.search-btn {
    background-color: #22c55e; /* Cor verde */
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

    .search-btn i {
        color: white;
        font-size: 18px;
    }
/*
    .search-btn:hover {
        background-color: #1d9e4a;
    }*/



/* Estilos comuns a todos os botões */
.normal-btn {
    background-color: white; /* Cor de fundo branca */
    border: none;
    border-radius: 50%; /* Botão circular */
    width: 50px; /* Largura do botão */
    height: 50px; /* Altura do botão */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para destaque */
    transition: background-color 0.4s ease; /* Suave transição no hover */
    position: fixed;
    right: 20px; /* Posição fixa à direita */
    z-index: 1000; /* Garante que o botão fique acima de outros elementos */
    visibility: hidden;
}



.icon-green i {
    color: #22c55e; /* Cor verde */
    font-size: 24px;
}

/* Ícones 2 e 3 com cor preta */
.icon-black i {
    color: black; /* Cor preta */
    font-size: 24px;
}

/* Classe que altera o estilo quando o botão é clicado */
.clicked {
    background-color: #22c55e; /* Cor de fundo verde ao clicar */
}

    /* Altera a cor do ícone quando o botão é clicado */
    .clicked i {
        color: white; /* Muda a cor do ícone para verde */
    }

/* Posições específicas dos botões */
.btn-pos-1 {
    bottom: 03%; /* Botão na parte inferior, 20px da borda */
}

.btn-pos-2 {
    bottom: 40%; /* Botão mais acima, 80px da borda */
}

.btn-pos-3 {
    bottom: 50%; /* Botão ainda mais acima, 140px da borda */
}

.btn-pos-4 {
    bottom: 60%; /* Botão ainda mais acima, 140px da borda */
}


.suggestions {
    position: absolute;
    background-color: white;    
    max-height: 150px;
    overflow-y: auto;
    width: 80%;
    z-index: 1000;
}

    .suggestions div {
        padding: 8px;
        cursor: pointer;
    }

        .suggestions div:hover {
            background-color: #f0f0f0;
        }

.button-container {
    /*position: relative;
    display: flex;
    align-items: center;
    gap: 10px;*/ /* Espaço entre o botão e o SVG */
    position: relative; /* Define o contexto de posicionamento */
    display: flex;
    align-items: center;
    justify-content: center;
}

#loadingSpinner {
    display: none; 
    position: absolute;
    top: 50%; /* Centraliza verticalmente */
    left: 50%; /* Centraliza horizontalmente */    
    transform: translate(-50%, -50%); /* Ajusta para ficar no centro do botão */
    z-index: 0; /* Coloca o spinner atrás do botão */
}

    #loadingSpinner svg {
        width: 3.25em;
        transform-origin: center;
        animation: rotate4 2s linear infinite;
    }

#nivelzoomSpinner {
    display: none;
    position: absolute;
    top: 50%; /* Centraliza verticalmente */
    left: 50%; /* Centraliza horizontalmente */
    transform: translate(-50%, -50%); /* Ajusta para ficar no centro do botão */
    z-index: 0; /* Coloca o spinner atrás do botão */
}

    #nivelzoomSpinner svg {
        width: 3.25em;
        transform-origin: center;
/*        animation: rotate4 2s linear infinite;*/
    }

/*
svg {
    width: 3.25em;
    transform-origin: center;
    animation: rotate4 2s linear infinite;
}*/

circle {
    fill: none;
    /*stroke: hsl(214, 97%, 59%);*/
    stroke: hsl(262, 100%, 30%);
    stroke-width: 5;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash4 1.5s ease-in-out infinite;
}

@keyframes rotate4 {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash4 {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dashoffset: -125px;
    }
}

@keyframes fadeBlink {
    0% {
        opacity: 1;
    }
    /* Totalmente visível */
    50% {
        opacity: 0.2;
    }
    /* Quase transparente */
    100% {
        opacity: 1;
    }
    /* De volta ao normal */
}

.lbl-carregando {
    animation: fadeBlink 1.5s infinite; /* Executa continuamente */
    display: none;
    position: absolute;
    top: 155px; /* Ajuste conforme necessário */
    left: 10%; /* Recua 10% da tela na esquerda */
    width: 80%; /* Mantém 10% de recuo dos dois lados */
    background-color: white;
    color: black;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
    white-space: normal;
    word-wrap: break-word;
}

.lbl-niveldezoom {
    /*animation: fadeBlink 1.5s infinite;*/ /* Executa continuamente */
    display: none;
    position: absolute;
    top: 155px; /* Ajuste conforme necessário */
    left: 10%; /* Recua 10% da tela na esquerda */
    width: 80%; /* Mantém 10% de recuo dos dois lados */
    background-color: white;
    color: black;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
    white-space: normal;
    word-wrap: break-word;
}


.lbl-lenta {
    animation: fadeBlink 1.5s infinite; /* Executa continuamente */
    display: none;
    position: absolute;
    top: 200px; /* Ajuste conforme necessário */
    left: 10%; /* Recua 10% da tela na esquerda */
    width: 80%; /* Mantém 10% de recuo dos dois lados */
    background-color: white;
    color: black;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
    white-space: normal;
    word-wrap: break-word;
}

/*--------------*/

/* Contêiner fixo no topo com rolagem horizontal */
.filter-container {
    visibility: hidden;
    display: none;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: nowrap;
    max-width: 90vw;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    background-color: transparent; /* Fundo transparente */
    border-radius: 10px;
    box-shadow: none; /* Remove a sombra */
    scrollbar-width: none; /* Oculta barra de rolagem no Firefox */
    -ms-overflow-style: none; /* Oculta barra no IE/Edge */
    z-index: 1000;
}

    /* Oculta a barra de rolagem em navegadores WebKit (Chrome, Safari) */
    .filter-container::-webkit-scrollbar {
        display: none;
    }

/* Botões de filtro */
.filter-button {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    flex-shrink: 0; /* Impede que os botões diminuam de tamanho */
}

    .filter-button i {
        margin-right: 5px;
    }

    /*.filter-button:hover {
        background-color: #e2e6ea;
    }*/

    /* Estilo quando ativo */
    .filter-button.active {
        background-color: #22c55e !important; /* Cor escura para indicar que está ativo */
        color: white !important; /* Garante que o texto fique branco */
        border-color: #22c55e !important; /* Alinha a borda com a cor de fundo */
    }

/* Responsividade */
@media (max-width: 600px) {
    .filter-button {
        font-size: 14px;
        padding: 6px 12px;
    }
}

.swal2-container {
    z-index: 99999 !important;
}


