body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 56px;
    height: 100%;
}

body.map-expanded {
    overflow: hidden;
}

section {
    /*padding: 50px;*/
    text-align: center;
}


header {
    background: #02735E;
    color: white;
    padding: 20px;
    text-align: center;
    transition: background 0.3s ease-in-out;
}


header.scrolled {
    background: rgba(32, 122, 9, 0.8) !important;
}

footer {
    background: #02735E;
    color: white;
    text-align: center;
    padding: 20px;
}


nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

a {
    color: #0077cc;

    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #c8f016;
    transition: width 0.3s ease;
}

a:hover {
    color: #005999;
}

a:hover::after {
    width: 100%;
}


#nego {
    box-shadow: 255, 255, 255, 0.2;
    text-align: center;
    padding: 100px 20px;
    color: white;
}

#nego button {
    background: #FFD700;
    color: #333;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
}

#nego button:hover {
    background: #FFC107;
}

#nego h2 {
    color: #02735E;
}

#nego p {
    color: #02735E;
}

#map-container {
    position: relative;
    width: 100%;
    height: 100%;
    /* necessário para o mapa expandido */
    transition: all 0.3s ease;
    z-index: 2;
    overflow: visible !important;
    /* assegure isso */
}

#map {
    height: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: height 0.3s ease;
    background: #f0f0f0;
}

#map.map-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh !important;
    z-index: 9999;
    margin: 0;
    padding: 0;
    border-radius: 0;
    inset: 0;
}

#toggle-map {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#map.map-expanded+#toggle-map {
    position: fixed;
    bottom: 20px;
    right: 20px;
}



.mySwiper {
    min-width: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* não interfere nos cliques */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

.destination-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 100%;
    height: 30vw;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.destination-card:hover .card-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    min-width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(3, 78, 22, 0.6) 20%, rgba(1, 53, 23, 0.2) 60%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.card-content {
    max-width: 100%;
}

.card-title {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 1.8rem;
    margin: 0 0 10px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    max-width: 100%;
}

.card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #ffcc00;
}

.card-description {
    font-size: 1rem;
    line-height: 1.4;
    color: #ddd;
    font-family: 'Segoe UI', sans-serif;
}

.card-address {
    font-size: 1.2rem;
    color: #f3ec8c;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
}

/* Swiper Dots grandes e modernos */
.swiper-pagination-bullets {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
    width: 18px;
    height: 18px;
    border: 2px solid #ffcc00;
}


.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none;
    /* remove o ícone padrão */
    width: 3rem;
    height: 3rem;    
    border-radius: 50%;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L6.707 7l4.647 4.646a.5.5 0 0 1-.708.708l-5-5a.5.5 0 0 1 0-.708l5-5a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L6.707 7l4.647 4.646a.5.5 0 0 1-.708.708l-5-5a.5.5 0 0 1 0-.708l5-5a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

.carousel-control-next-icon {
    transform: rotate(180deg);
}

.carousel-control-prev-icon{
    background: #000;
    right: 0px;
}
.carousel-control-next-icon{
    background: #000;
    left: 0px;
}

.grid-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.card img {
    width: 100%;
    border-radius: 8px;
}

.hover-effect {
    transition: transform 0.4s ease, filter 0.4s ease;
    display: block;
    max-width: 100%;
    border-radius: 8px;
  }
  
  .hover-effect:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
    cursor: pointer;
  }
  

@media (max-width: 767.98px) {
    #atrativos .card {
        width: 100%;
    }
    .card-image {
        height: 60vw;
    }
}

.custom-marker {
    border-radius: 5px;
    cursor: pointer;
}

.atrativo {
    background-size: cover;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.marker {
    background-size: cover;
    width: 61px;
    height: 61px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.4);
}

.marker-default {
    background-image: url('../img/marker-icon.png');
}

.marker-outros {
    background-image: url('../img/marker-icon.png');
}

.marker-alimentacao {
    background-image: url('../img/marker_alimentacao.png');
}

.marker-rafting {
    background-image: url('../img/marker_rafting.png');
}

.marker-caverna {
    background-image: url('../img/marker_caverna.png');
}

.marker-cachoeira {
    background-image: url('../img/marker_cachoeira.png');
}

.marker-trilha {
    background-image: url('../img/marker_trilha.png');
}

.marker-hospedagem {
    background-image: url('../img/marker_hospedagem.png');
}

.marker-campping {
    background-image: url('../img/marker_campping.png');
}

.marker-agencia {
    background-image: url('../img/marker_agencia.png');
}

.marker-rapel {
    background-image: url('../img/marker_rapel.png');
}

.marker-mirante {
    background-image: url('../img/marker_mirante.png');
}

.marker-tirolesa {
    background-image: url('../img/marker_tirolesa.png');
}

.mapboxgl-popup {
    max-width: 500px;
    max-height: 350px;
    font: 12px/20px 'Open Sans', sans-serif;
    border-radius: 10px;
    z-index: inherit;
    z-index: 11;
}

.mapboxgl-popup-content {
    width: 70vh;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    line-height: normal;
    overflow: inherit;
    overflow-y: inherit;
    text-align: center;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.mapboxgl-popup-municipios .mapboxgl-popup {
    max-width: 300px;
    max-height: 150px;
    font: 12px/20px 'Open Sans', sans-serif;
    border-radius: 10px;

}

.mapboxgl-popup-content-municipios .mapboxgl-popup-content {
    width: 40vh;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    line-height: normal;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
}


.mapboxgl-popup-close-button {
    background-color: #333;
    color: rgb(250, 245, 245);
    font-size: medium;
    margin: 0;
    position: absolute;
    top: -10px;
    right: -10px;
    width: 23px;
    height: 23px;
    border-radius: 23px;
    opacity: 1;
    z-index: 10;
}

.mapboxgl-popup-close-button:hover {
    background-color: rgb(199, 192, 192);
    color: rgb(201, 4, 4);
}

.mapboxgl-map.map-expanded {
    width: 100% !important;
    max-width: none;
    height: 80vh;
    /* ou o quanto quiser expandir verticalmente */
    transition: all 0.3s ease;
}

.mapboxgl-map {
    transition: all 0.3s ease;
}


.info-popup {
    line-height: 30px;
    font: 12px/20px 'Open Sans', sans-serif;
}

@media only screen and (max-width: 480px) {
    .mapboxgl-popup-content {
        max-width: 250px;
    }

    .mapboxgl-popup-content div {
        padding: 0em;
    }

    .mapboxgl-popup-content p {
        margin: 0.5em 0.5em;
    }

    .mapboxgl-popup-municipios {
        max-width: 250px;
    }

    .mapboxgl-popup-municipios div {
        padding: 0em;
    }

    .mapboxgl-popup-municipios p {
        margin: 0.5em 0.5em;
    }

    .card-title {
        display: inline-flex;
        border-radius: 8px;
        font-size: 1.8rem;
        margin: 0 0 10px;
        font-weight: 600;
        font-family: 'Segoe UI', sans-serif;
        max-width: 100%;
    }

    .card-title a {
        color: #fff;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .card-title a:hover {
        color: #ffcc00;
    }

    .card-description {
        display: none;
        font-size: 1rem;
        line-height: 1.0;
        color: #ddd;
        font-family: 'Segoe UI', sans-serif;
    }

}


.info-roteiro {
    margin-left: 10px;
    left: 10px;
}

/* Adicione ao seu CSS global */
.mapboxgl-ctrl button {
    cursor: pointer;
    background: #f4f4f4;
    border: none;
    padding: 4px 6px;
    margin: 0 2px;
    font-weight: bold;
}

.mapboxgl-ctrl button:hover {
    background: #ddd;
}



.notify-badge {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    background: linear-gradient(135deg, #e53935, #d32f2f);
    height: 1.8rem;
    min-width: 2rem;
    padding: 0 0.6rem;
    text-align: center;
    line-height: 1.8rem;
    font-size: 0.95rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 10;
    transition: transform 0.2s ease-in-out;
}

.notify-badge:hover {
    transform: scale(1.1);
}

.notify-badge::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    z-index: 1;
    border: solid 6px transparent;
    border-right-color: #d32f2f;
}


.menu-municipios {
    background-color: #fff;
    position: relative;
    z-index: 1;
    top: 150px;
    left: 4px;
    border-radius: 5px;
    width: 170px;
    height: 30px;
    border: 2px solid rgba(107, 105, 105, 0.4);
    padding: 2px 3px 2px 2px;
    font-family: 'Open Sans', sans-serif;
    font-size: small;
}

.star {
    text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
    color: #fff;
}

.star-checked {
    text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
    color: rgba(250, 227, 22);
}


.map-style-switcher {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    padding: 4px;
    font-family: 'Open Sans', sans-serif;
}

.map-style-switcher button {
    background: none;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: background 0.2s;
    border-radius: 4px;
}

.map-style-switcher button:hover {
    background-color: #eee;
}

.map-style-switcher button.active {
    background-color: #ddd;
    font-weight: bold;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.switch-toggle .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch-toggle input:checked+.slider {
    background-color: #1b5a02;
}

.switch-toggle input:checked+.slider:before {
    transform: translateX(24px);
}


/* Estilo do Formulário */
#placeForm .modal-body {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

#placeForm .form-control {
    border-radius: 5px;
    box-shadow: none;
    font-size: 14px;
    padding: 10px;
    border: 1px solid #ddd;
    transition: border 0.3s;
}

#placeForm .form-control:focus {
    border-color: #5c6bc0;
    /* Cor de destaque ao focar no campo */
}

#placeForm label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Estilo dos Checkboxes (Atrativos) */
.form-check {
    font-size: 14px;
    margin-bottom: 10px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 8px;
}

.form-check-label {
    font-size: 14px;
    color: #333;
}

/* Estilo do Botão de Enviar */
#placeForm .btn-primary {
    background-color: #5c6bc0;
    border: none;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.3s;
}

#placeForm .btn-primary:hover {
    background-color: #3e4b8b;
}

/* Estilizando a Barra de Progresso */
.progress {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-top: 15px;
}

#uploadProgress {
    height: 100%;
    background-color: #4caf50;
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
}

/* Estilo do Modal de Recorte */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid #f1f1f1;
    background-color: #f5f5f5;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

#imageToCrop {
    max-width: 100%;
    border-radius: 8px;
    border: 2px solid #ddd;
}

/* Preview da Imagem Recortada */
#croppedPreview {
    max-width: 100%;
    display: none;
    margin-top: 20px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

/* Estilizando os Botões do Modal de Recorte */
#cropAndUploadBtn {
    background-color: #5c6bc0;
    color: #fff;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 8px;
    transition: background-color 0.3s;
    border: none;
}

#cropAndUploadBtn:hover {
    background-color: #3e4b8b;
}

/* Melhorando o Modal de Recorte */
.modal-dialog.modal-lg {
    max-width: 90%;
    margin-top: 50px;
}

#croppedPreview {
    max-width: 100%;
    display: none;
    margin-top: 20px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

#geocoder-wrapper {
    position: absolute;
    top: 10px;
    left: 10%;
    z-index: 3;
    width: 40px;
    max-width: calc(100% - 20px);
    min-height: 40px;
    overflow: visible;
    border-radius: 4px;
    transition: width 0.3s ease;
}


.mapboxgl-ctrl-geocoder {
    width: 100% !important;
    box-sizing: border-box;
}

#geocoder-wrapper:hover {
    width: 300px;
}

#geocoder {
    width: 100%;
    height: 100%;
}

.form-check-input {
    min-width: 50px;
}

.form-check-input:checked {
    background-color: #276908;
}

.atraticve-call {
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.cropper-container {
    max-width: 100% !important;
}

/* Estilo geral da barra de rolagem */
::-webkit-scrollbar {
    width: 8px;
    /* Largura vertical */
    height: 8px;
    /* Altura horizontal */
}

/* Fundo da barra (track) */
::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

/* A parte que se move (thumb) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #888, #555);
    border-radius: 4px;
    transition: background 0.3s ease;
}

/* Ao passar o mouse sobre o thumb */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #666, #444);
}

/* Opcional: setas (não visíveis em todos os sistemas) */
::-webkit-scrollbar-button {
    display: none;
    /* Oculta as setas para um visual mais limpo */
}

/* Firefox - usando scrollbar-color e scrollbar-width */
* {
    scrollbar-width: thin;
    /* Fina */
    scrollbar-color: #06915c #f0f0f0;
    /* thumb / track */
}
