@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz@0,14..32;1,14..32&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #000;
    width: 100%;
    overflow-x: hidden;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero-section {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 0;
    margin: 0;
    background: transparent;
}

.hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.copyright-tag-img {
    position: absolute;
    right: 16px;
    bottom: 24px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
    z-index: 5;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
    pointer-events: none;
    white-space: nowrap;
}

/* .copyright-tag---hero {
    margin-bottom: 0 !important;
} */

/* =========================================
   AJUSTE DA ONDA DA IMAGEM HERO
   ========================================= */


/* =========================================
   SEÇÃO DE CONTEÚDO
   ========================================= */

.white-section {
    background-color: #084222;
    width: 100%;
    min-height: 90vh;
    padding: 60px 20px 160px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.text-container {
    width: 100%;
    max-width: 900px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.7;
}

.titulo-principal {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    color: #ffd9a8;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: #f0f0f0;
    margin-bottom: 50px;
}

.text-container h3 {
    font-size: 26px;
    color: #ffd9a8;
    margin-top: 40px;
    padding-bottom: 10px;
}

.text-container p {
    margin-bottom: 10px;
    text-align: justify;
}

.text-container ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style-type: disc;
}

.text-container li {
    margin-bottom: 12px;
}

.text-container strong {
    color: #ffd9a8;
}

/* =========================================
   MAPA
   ========================================= */

#map {
    height: 450px;
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid #ffd9a8;
    margin: 40px auto 20px auto;
    z-index: 1;
    overflow: hidden;
}

/* =========================================
   BUSCA
   ========================================= */

.search-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-group input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 2px solid #ffd9a8;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #084222;
}

.search-group input[type="text"]:focus {
    outline: none;
    border-color: #ffffff;
}

.search-group button {
    padding: 12px 22px;
    background-color: #ffd9a8;
    color: #084222;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    transition: background 0.3s, transform 0.2s;
    font-family: 'Inter', sans-serif;
}

.search-group button:hover {
    background-color: #f5c989;
    transform: scale(1.03);
}

/* =========================================
   CONTROLES
   ========================================= */

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.controls p {
    color: #084222;
    font-size: 16px;
    margin-bottom: 5px;
    text-align: left;
}

.buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.controls button {
    padding: 10px 18px;
    background-color: #084222;
    color: #ffd9a8;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s, transform 0.2s;
    font-family: 'Inter', sans-serif;
}

.controls button:hover {
    background-color: #052c16;
    transform: scale(1.03);
}

/* =========================================
   PAINEL DE ROTA DO LEAFLET
   ========================================= */

.leaflet-routing-container {
    display: block !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 3px solid #084222 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65) !important;
    padding: 12px !important;
    font-family: 'Inter', sans-serif !important;
    max-height: 280px;
    overflow-y: auto;
    z-index: 9999 !important;
}

.leaflet-routing-container,
.leaflet-routing-container * {
    color: #000000 !important;
    text-shadow: none !important;
}

.leaflet-routing-container h2,
.leaflet-routing-container h3 {
    color: #084222 !important;
    font-weight: 900 !important;
}

.leaflet-routing-alt {
    background: #ffffff !important;
    color: #000000 !important;
    border-top: 2px solid #084222 !important;
}

.leaflet-routing-alt h2,
.leaflet-routing-alt h3 {
    color: #084222 !important;
}

.leaflet-routing-alt table {
    background: #ffffff !important;
    color: #000000 !important;
    width: 100% !important;
}

.leaflet-routing-alt table tbody tr {
    background: #ffffff !important;
    color: #000000 !important;
}

.leaflet-routing-alt table tbody tr:hover {
    background: #ffd9a8 !important;
}

.leaflet-routing-alt table tbody tr td {
    background: transparent !important;
    color: #000000 !important;
    padding: 7px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.leaflet-routing-alt-minimized {
    background: #ffffff !important;
    color: #000000 !important;
}

.leaflet-routing-alt-summary,
.leaflet-routing-alt-summary h2,
.leaflet-routing-alt-summary h3 {
    background: #084222 !important;
    color: #ffd9a8 !important;
    padding: 8px !important;
    border-radius: 6px !important;
    font-weight: 900 !important;
}

/* =========================================
   POPUPS E CONTROLES DO MAPA
   ========================================= */

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #ffffff !important;
    color: #000000 !important;
}

.leaflet-popup-content {
    color: #000000 !important;
    font-weight: 700 !important;
}

.leaflet-tooltip {
    background: #084222 !important;
    color: #ffd9a8 !important;
    border: 1px solid #ffd9a8 !important;
    font-weight: 800 !important;
}

.leaflet-control-zoom a,
.leaflet-control-attribution {
    color: #084222 !important;
    font-weight: 800 !important;
}

.leaflet-control-attribution a {
    color: #000000 !important;
    font-weight: 800 !important;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .hero-section {
        height: 100vh;
        min-height: 100vh;
        max-height: none;
        padding-top: 0;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .onda-hero .wave-separator {
        margin-top: -25px !important;
    }

    .copyright-tag-img {
        font-size: 10px;
        bottom: 12px;
        right: 8px;
        max-width: 90%;
        white-space: normal;
        text-align: right;
    }

    .white-section {
        padding: 40px 16px 70px;
        min-height: auto;
    }

    .text-container {
        font-size: 16px;
        line-height: 1.7;
    }

    .titulo-principal {
        font-size: 30px;
        line-height: 1.2;
    }

    .subtitulo {
        font-size: 17px;
        margin-bottom: 25px;
    }

    .text-container h3 {
        font-size: 22px;
        margin-top: 28px;
    }

    .text-container p,
    .text-container li {
        font-size: 16px;
        text-align: left;
    }

    #map {
        height: 320px;
        margin-top: 25px;
    }

    .controls {
        padding: 18px;
        gap: 12px;
    }

    .controls button,
    .search-group button {
        width: 100%;
        padding: 14px;
    }

    .buttons-group,
    .search-group {
        flex-direction: column;
    }

    .search-group input[type="text"] {
        min-width: 0;
        width: 100%;
    }

    .controls button:hover,
    .search-group button:hover {
        transform: none;
    }

    .leaflet-routing-container {
        max-height: 220px;
        font-size: 13px !important;
    }

    .leaflet-routing-alt table tbody tr td {
        font-size: 13px !important;
    }
}

/* =========================================
   PAINEL RESUMO DA ROTA
   ========================================= */

.painel-resumo {
    color: #000000 !important;
    font-weight: 700;
    text-shadow: none !important;
}

.painel-resumo p {
    color: #000000 !important;
    margin: 4px 0;
    font-weight: 700;
}

.painel-resumo strong {
    color: #000000 !important;
    font-weight: 800;
}