/* ========================================== */
/* CONFIGURAÇÃO GLOBAL */
/* ========================================== */

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
}


/* ========================================== */
/* HEADER */
/* ========================================== */

header {

    position: relative;
    background: #0c4b33;
    padding: 18px 25px;
    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

}

/* Título central */

.titulo-central {

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;

}

header h1 {

    margin: 0;
    font-size: 23px;
    font-weight: 550;

}

header p {

    margin: 0;
    font-size: 14px;
    opacity: 0.85;

}

/* Logo */

.logo-dea {

    height: 45px;

}


/* ========================================== */
/* BOTÕES */
/* ========================================== */

.btn-observatorio,
.btn-contribua {

    background: white;
    color: #0f5b34;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.25s;

}

.btn-observatorio:hover,
.btn-contribua:hover {

    background: #e6e6e6;

}


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

#map {

    width: 100%;
    height: calc(100vh - 160px);
    min-height: 420px;

}


/* ========================================== */
/* ROSA DOS VENTOS */
/* ========================================== */

.rosa-dos-ventos {

    position: absolute;
    bottom: 90px;
    right: 25px;
    width: 190px;
    opacity: 0.75;
    z-index: 1000;

}


/* ========================================== */
/* LEGENDA */
/* ========================================== */

.legenda {

    position: absolute;
    bottom: 90px;
    left: 20px;
    background: white;
    padding: 12px;
    font-size: 12px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
    z-index: 1000;

}

.legenda h4 {

    margin-top: 0;
    margin-bottom: 6px;

}


/* Ícone pontos DEA */

.legenda-icon.dea {

    width: 14px;
    height: 14px;
    background: #d90429;
    border-radius: 50%;
    border: 2px solid white;
    display: inline-block;
    margin-right: 6px;

}


/* Ícone pontos colaborativos */

.legenda-icon.publico {

    width: 14px;
    height: 14px;
    background: #0077b6;
    border-radius: 50%;
    border: 2px solid white;
    display: inline-block;
    margin-right: 6px;

}


/* Ícone sede municipal */

.legenda-icon.sede {

    width: 14px;
    height: 14px;
    background: black;
    border-radius: 50%;
    border: 2px solid white;
    display: inline-block;
    margin-right: 6px;

}


/* ========================================== */
/* RODAPÉ */
/* ========================================== */

footer {

    background: #0c4b33;
    color: white;
    padding: 15px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 13px;

}

.footer-center {

    text-align: center;

}


/* ========================================== */
/* POPUP CONTRIBUIÇÃO */
/* ========================================== */

.popupAviso {

    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
    z-index: 2000;

}

.popupContent {

    background: white;
    padding: 25px;
    max-width: 450px;
    border-radius: 8px;

}

.popupContent h3 {

    margin-top: 0;

}

.popupContent button {

    margin-right: 8px;
    padding: 6px 12px;
    border: none;
    background: #0f5b34;
    color: white;
    border-radius: 4px;
    cursor: pointer;

}

.popupContent button:hover {

    background: #135f3b;

}


/* ========================================== */
/* NORTE GEOGRÁFICO */
/* ========================================== */

.north-arrow {

    background: white;
    padding: 6px 10px;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);

}


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

@media (max-width: 768px) {


/* HEADER */

header {

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 15px;

}

.titulo-central {

    position: static;
    transform: none;

}

header h1 {

    font-size: 18px;

}

.logo-dea {

    height: 35px;

}


/* MAPA */

#map {

    height: calc(100vh - 190px);

}


/* LEGENDA */

.legenda {

    font-size: 11px;
    padding: 8px;
    bottom: 70px;
    max-width: 220px;

}


/* ROSA DOS VENTOS */

.rosa-dos-ventos {

    width: 120px;
    bottom: 70px;

}


/* RODAPÉ */

footer {

    flex-direction: column;
    text-align: center;
    gap: 8px;

}


/* POPUP */

.popupContent {

    width: 90%;
    max-width: 90%;

}

}
