* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
}

body {
    background: none;
    background-color: white;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    background-image: url("../assets/Canions_Geoparque-blur.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    max-width: 1000px;
}

.anon-alert {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    width: 90%;
    margin-top: 5rem;
    max-width: 18.75rem;
    background-color: #f9fbe7;
    border: 0.125rem solid #cddc39;
    padding: 0.8rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.50rem rgba(0, 0, 0, 0.1);
    font-family: "Poppins", sans-serif;
    text-align: left;
    animation: fadeInDown 0.5s ease-out;
}

.anon-alert p {
    font-size: 0.9rem;
    color: #3B7A57;
    margin: 0 0 0.6rem 0;
    font-weight: 500;
    line-height: 1.3;
}

.anon-alert strong {
    display: block;
    margin-top: 0.2rem;
}

.anon-btn {
    display: inline-block;
    background-color: #3B7A57;
    color: white;
    padding: 0.5rem 0.9rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.anon-btn:hover {
    background-color: #2e6248;
}

/* Animação suave na entrada */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo para telas maiores */
@media (min-width: 600px) {
    .anon-alert {
        top: 1.5rem;
        right: 1.5rem;
        padding: 1rem;
        font-size: 1rem;
    }

    .anon-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.1rem;
    }
}

.close-alert {
    position: absolute;
    top: 6px;
    right: 10px;
    background: transparent;
    border: none;
    color: #3B7A57;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-alert:hover {
    color: #1e3d2f;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 0.8rem 0rem 0.8rem;
    text-align: center;
    color: white;
    margin-top: 30px;
    /* Para afastar do header fixo */
}

.section-div {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 0.75rem;
}

#busca {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0rem 0rem 0.8rem 0rem;
}

.busca-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0rem 0rem 3.5rem 0rem;
}

.search-wrapper {
    position: relative;
    width: 100%;
    /* margin: 1rem 0 3rem 0; */
}

#input-busca {
    width: 100%;
    padding: 1rem;
    color: black;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.85rem;
}

.search-icon-btn {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #555;
    font-size: 1.2rem;
}

.search-icon-btn:hover {
    color: #000;
}

/* 
.section-div input {
    width: 100%;
    padding: 0.75rem;
    color: black;
    margin: 1rem 0 3rem 0;
    border: none;
    border-radius: 0.75rem;
} */

.all-info-div {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    /* align-items: center; */
    /* gap: 1rem; */
}

.info-div {
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.info-small {
    color: white;
    font-size: 0.8rem;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: floatDown 2s infinite ease-in-out;
    z-index: 3;
    cursor: pointer;
}

@keyframes floatDown {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.8;
    }
}

/* Seção abaixo da primeira dobra */
.conteudo {
    width: 100%;
    /* background-color: #f5f5f5; */
    /* padding: 0.5rem; */
    text-align: left;
    padding: 0.875rem;
    border-radius: 1rem;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    /* margin-top: 1rem; */
    line-height: 1.8;
    font-size: 1rem;
    color: #333;;
}

.conteudo h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c7a7b;
}

.conteudo-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.conteudo p {
    max-width: 100%;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: justify;
}

.municipio {
    color: #2c7a7b;
    font-weight: 600;
}

.geoparque-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background-color: #2c7a7b;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 400px;
    /* margin: 1rem auto 0 auto; */
}

.geoparque-btn:hover {
    background-color: #225e61;
}


.explore-section {
    /* background-color: #f0fdfa; */
    padding: 2rem 0.875rem;
    text-align: center;
    border-radius: 1rem;
    margin-top: 2rem;
    color: #333
}

.explore-title {
    font-size: 2rem;
    color: #2c7a7b;
    margin-bottom: 0.5rem;
}

.explore-subtitle {
    font-size: 1rem;
    color: #333;
    margin-bottom: 2rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.explore-card {
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.explore-card:hover {
    background-color: #f0fdfa;
    transform: translateY(-5px);
    border-color: #2c7a7b;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.explore-card i {
    font-size: 2rem;
    color: #2c7a7b;
    margin-bottom: 0.5rem;
}

.explore-card h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: #2c7a7b;
}

.explore-card p {
    font-size: 0.95rem;
    color: #4a5568;
}

#map {
    max-width: 900px;
    /* Limita largura para não ficar gigante na tela grande */
    height: 480px;
    margin: 30px auto;
    /* Centraliza horizontalmente e dá margem em cima/baixo */
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(0, 70, 50, 0.15);
    border: 2px solid #2a7a65;
    background: linear-gradient(135deg, #e3f6f5, #c1e7e3);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

#map:hover {
    box-shadow: 0 12px 40px rgba(0, 70, 50, 0.3);
}

.map-section {
    margin-top: 1rem;
}

.map-section .explore-title,
.map-section .explore-subtitle {
    text-align: center;
}

.ctr{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

/* Popup do Leaflet */
.leaflet-popup-content-wrapper {
    background: #ffffffee;
    /* Branco com leve transparência */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 70, 50, 0.2);
    padding: 20px 25px;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1b3a34;
    max-width: 280px;
    line-height: 1.5;
    backdrop-filter: saturate(180%) blur(10px);
    border: 1.5px solid #2a7a65;
    user-select: none;
}

/* Conteúdo do popup */
.leaflet-popup-content {
    margin: 0;
}

.leaflet-popup-content h3 {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #0e4a3b;
    text-transform: capitalize;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.leaflet-popup-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #3a5a50;
}

/* Botão no popup */
.leaflet-popup-content .button-link {
    display: inline-block;
    background-color: #2a7a65;
    color: #e3f6f5;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(42, 122, 101, 0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    user-select: none;
    border: none;
}

.leaflet-popup-content .button-link:hover {
    background-color: #1c5b45;
    box-shadow: 0 8px 25px rgba(28, 91, 69, 0.6);
    text-decoration: none;
}

/* Ponteira do popup */
.leaflet-popup-tip {
    background: #ffffffee;
    filter: drop-shadow(0 4px 6px rgba(0, 70, 50, 0.15));
    border-left: 1.5px solid #2a7a65;
    border-bottom: 1.5px solid #2a7a65;
    transform: rotate(45deg);
}

.leaflet-control-container {
    position: relative;
    z-index: 500;
}

.how-to-use{
    width: 100%;
    padding: 0.875rem;
}

.section-header {
    text-align: center;
    
}

.section-header h2 {
    font-size: 2rem;
    margin-top: 4rem;
    color: #2c7a7b;
}

.section-header p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.flow-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.flow-step {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.flow-step.animate {
    transform: translateY(0);
    opacity: 1;
}

.flow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.8s;
}

.flow-step:hover::before {
    left: 100%;
}

.flow-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(79, 172, 254, 0.3);
    position: relative;
}

.step-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    opacity: 0;
    transform: scale(1.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.step-description {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(238, 90, 82, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    color: #2d3748;
}

.feature-card:hover {
    background: #f1f5f9;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .flow-container {
        grid-template-columns: 1fr;
    }

    .how-to-use {
        padding: 0 1rem;
    }
}

/* Animação de entrada sequencial */
.flow-step:nth-child(1) {
    animation-delay: 0.1s;
}

.flow-step:nth-child(2) {
    animation-delay: 0.2s;
}

.flow-step:nth-child(3) {
    animation-delay: 0.3s;
}

.flow-step:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsividade */
@media (max-width: 768px) {
    #map {
        max-width: 95%;
        height: 360px;
        border-radius: 16px;
    }

    .leaflet-popup-content-wrapper {
        max-width: 240px;
        padding: 16px 20px;
        border-radius: 14px;
    }

    .leaflet-popup-content h3 {
        font-size: 1.1rem;
    }

    .leaflet-popup-content .button-link {
        font-size: 0.95rem;
        padding: 8px 20px;
    }
}

/*-----------------------------MEDIA QUERIES---------------------------*/
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    #busca {
        font-size: 2rem;
    }


    .search-wrapper {
        padding: 0rem 8rem;
    }

    #input-busca {
        width: 100%;
        padding: 1rem;
        color: black;
        border: none;
        border-radius: 0.75rem;
        font-size: 0.85rem;
    }

    .search-icon-btn {
        position: absolute;
        top: 50%;
        right: 9rem;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        color: #555;
        font-size: 1.2rem;
    }

    .search-icon-btn:hover {
        color: #000;
    }

    .all-info-div {
        width: 100%;
        display: flex;
        justify-content: space-evenly;
        /* gap: 1rem; */
    }

    .info-div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info {
        font-size: 2rem;
        font-weight: bold;
        color: white;
    }

    .info-small {
        color: white;
        font-size: 1.6rem;
    }

    .quem-somos-titulo {
        text-align: left;
    }

    .quem-somos-p {
        text-align: center;
    }

    .geoparque-btn {
        margin: 0 auto;
    }
}


@media (min-width: 1024px) {
    .conteudo-wrapper, .section-header {
        max-width: 60%;
        margin: 0 auto;
    }

    .quem-somos-titulo {
        text-align: center;
    }

    .quem-somos-p {
        text-align: center;
    }

    .geoparque-btn {
        margin: 0 auto;
    }
}