@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root { /*Variáveis contendo informações de cores e tamanhos de fonte*/
    --color-1: #FFFFFF;
    --color-2: #F8F8F8;
    --color-3: #153162;
    --color-4: #00A4E8;
    --color-hover-1: #F0F0F0;
    --color-hover-2: #09214b;
    --color-hover-3: #0083bb;
    --font-size-title: 3rem;
    --font-size-subtitle: 1.5rem;
    --font-size-default: 0.9rem;
}

* {
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-default);
    font-weight: 500;
    color: var(--color-3);
    background-color: var(--color-1);
}
.loader { /*Animação durante o carregamento da página*/
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 2;
    background-color: var(--color-1);
}
.circle {
    width: 30px;
    height: 30px;
    border: 5px solid var(--color-3);
    border-top: 5px solid var(--color-1);
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
header {
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--color-2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    z-index: 1;
}
.navbar { /*Navbar responsiva*/
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-logo {
    width: 180px;
}
.navbar-list {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}
.navbar-item {
    font-weight: 700;
    color: var(--color-3);
    text-decoration: none;
}
.navbar-btn {
    padding: 10px 15px;
    font-weight: 700;
    color: var(--color-1);
    background-color: var(--color-4);
    border-radius: 5px;
    text-decoration: none;
}
.navbar-btn:hover {
    background-color: var(--color-hover-3);
}
.hamburger {
    display: none;
}
.hamburger-btn {
    font-size: 30px;
}
main {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}
#hero { /*Seção 'hero'*/
    width: 100%;
    display: flex;
    justify-content: center;
}
.hero-container {
    margin-top: 7rem;
    padding: 100px;
    width: 95%;
    min-height: 50vh;
    display: flex;
    align-items: end;
    justify-content: end;
    border-radius: 10px;
    background-image: url(../assets/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    position: relative;
    overflow: hidden;
}
.hero-img {
    position: absolute;
    bottom: -400px;
    left: -50px;
    width: 35%;
}
.hero-content {
    display: flex;
    flex-direction: column;
}
.title {
    font-size: var(--font-size-title);
    font-weight: 900;
    color: var(--color-1);
}
.subtitle {
    font-size: var(--font-size-subtitle);
    font-weight: 700;
    color: var(--color-1);
}
#search { /*Seção 'search'*/
    width: 100%;
    display: flex;
    justify-content: center;
}
.search-container {
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}
.subtitle.blue {
    color: var(--color-3);
    font-size: 38px;
}
.search-content {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.search-input {
    padding: 10px 15px;
    width: 40%;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-default);
    font-weight: 500;
    color: var(--color-3);
    outline: none;
    border-radius: 5px;
    background-color: var(--color-2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.search-input::placeholder {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-default);
    font-weight: 400;
    color: #808080;
}
.btn-cus {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    color: var(--color-1);
    background-color: var(--color-3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    height: 40px;
} */
.btn-cus:hover {
    background-color: var(--color-hover-2);
}
.search-map {
    margin-top: 100px;
    width: 60%;
}
#categories {
    margin-bottom: 5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.categories-container {
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}
.categories-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    justify-content: center;
    align-items: center;
}
.categories-item {
    max-width: 475px;
    max-height: 221px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    color: var(--color-1);
    background-color: white;
    box-shadow: 0 2px 5px var(--color-3);
    color: var(--color-3);
    border-radius: 10px;
}
.item-title {
    padding-bottom: 0px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #AAAAAA;
    text-transform: uppercase;
    font-weight: bolder;
    font-size: 24px;
}
.item-value {
    margin-bottom: -25px;
    text-align: center;
    font-size: 24px !important;
    position: relative;
    display: inline-block;
    color: var(--color-3);
    padding: 0px 120px;
    background-color: #f6940a; /* Cor do fundo */
    /* border-radius: 8px; Bordas arredondadas para parecer mais natural */
    /* transform: rotate(-2deg); Leve rotação para parecer feito à mão */
    /* margin: 0 -10px; */
}
/* .categories-item .btn {
    padding: 15px;
    background-color: var(--color-4);
    box-shadow: none;
}
.categories-item .btn:hover {
    background-color: var(--color-hover-3);
} */

.btn-round {
    width: 40px; /* Ajuste a largura */
    height: 40px; /* Ajuste a altura */
    border-radius: 50%; /* Garantir que seja redondo */
}

footer {
    width: 100%;
    display: flex;
    justify-content: center;
    color: var(--color-1);
    background-color: var(--color-3);
}
.footer-container {
    padding: 100px 0;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}
.footer-logo {
    max-width: 25%;
    min-width: 200px;
}
.social-media {
    display: flex;
    align-items: center;
    gap: 20px;
}
.social-media-icon {
    color: var(--color-1);
}
::-webkit-scrollbar {
    width: 10px;
    background-color: var(--color-1);
}
::-webkit-scrollbar-thumb {
    background-color: var(--color-4);
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-hover-3);
}

@media (max-width: 1200px) {
    .hero-img {
        display: none;
    }
    .hero-container {
        justify-content: start;
    }
}
@media (max-width: 1024px) {
    .categories-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .navbar-list {
        padding: 100px 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        position: absolute;
        top: 0;
        left: 0;
        background-color: var(--color-2);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        display: none;
    }
    .navbar-list.active {
        display: flex;
        animation: slide 0.2s ease-in-out;
        z-index: 1;
    }
    @keyframes slide {
        0% {
            top: -300px;
        }
        100% {
            top: 0;
        }
    }
    .navbar-btn {
        display: none;
    }
    .hamburger {
        display: flex;
        align-items: center;
        cursor: pointer;
        z-index: 1;
    }
    .hamburger-btn:nth-child(2) {
        display: none;
    }
    .hamburger.active .hamburger-btn:nth-child(1) {
        display: none;
    }
    .hamburger.active .hamburger-btn:nth-child(2) {
        display: block;
    }
    .hero-container {
        padding: 100px 30px;
        justify-content: center;
    }
    .search-content {
        flex-direction: column;
    }
    .search-input {
        width: 100%;
    }
    .search-map {
        display: none;
    }
    .categories-list {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (max-width: 520px) {
    .title {
        font-size: 2rem;
    }
}

/* svg {
    width: 100%;
    height: auto;
} */
#estado-nome {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}
/* path {
    fill: #c0c0c0;
    stroke: #000;
    stroke-width: 1;
    transition: fill 0.3s ease;
} */
g:hover {
    fill: #ffcc00;
}

.custom-tooltip {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    z-index: 1000;
}


.dropdown-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: 50px;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 30px !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    display: grid;
    padding-left: 4%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: inherit;
    align-items: center;
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 500;
    color: #eee !important;
    letter-spacing: 1px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: transparent;
    border-style: solid;
    border-width: 0px 0px 0 0px;
    height: 50px;
    margin: 0;
    position: absolute;
    top: -1px;
    width: 100px;
    background-image: url("../assets/search.png");
    background-color: var(--color-3);
    background-repeat: no-repeat;
    background-size: auto 38px;
    right: 0;
    left: initial;
    border-radius: 0 30px 30px 0;
    background-position: 16% center;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent;
    border-width: 0 0px 0px 0px;
}
span.select2-dropdown.select2-dropdown--below {
    border-radius: 5px;
    top: 5px;
    font-family: montserrat;
    font-weight: 500;
    color: #333;
    padding: 10px;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
}

/* 
.select2-container--default .select2-selection--single {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #f9f9f9;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    top: 2px;
}

.select2-container--default .select2-results__option {
    padding: 10px;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: #e9ecef;
} */

#search-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 100px; /* Bordas arredondadas */
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

#search-btn:hover {
    background-color: #0056b3;
}

.centered-hr {
    width: 50%; /* Ajuste a largura do hr */
    margin: 0 auto; /* Centraliza o hr horizontalmente */
    border: 1px solid var(--color-3); /* Estilo da linha */
    margin-top: -80px;
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}

.whatsapp-icon {
    margin-top: 15px;
}

/* Estilos para o Pop-up */
/* .popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.popup-content h2 {
    margin-top: 0;
}

.popup-content label {
    display: block;
    margin-top: 10px;
}

.popup-content input,
.popup-content textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
} */

#whatsapp-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

/* Estilo do popup */
.popup {
    position: fixed;
    bottom: 80px;
    right: 20px; /* Alterado para o lado direito */
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.popup-header {
    background-color: #25d366;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.popup-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.popup-body label {
    font-size: 14px;
    color: #444;
    margin-bottom: 5px;
}

.popup-body input,
.popup-body textarea,
.popup-body select {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.btn-enviar {
    background-color: #25d366;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-cancelar {
    background-color: #ff4d4d;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}