@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap');
/****** BASE ******/
.adene-atlas-pobreza-container .leaflet-control-zoom{
    display: none !important;
}


.adene-atlas-pobreza-container{
        width: 100%;
    margin: 0px;
    max-width: 100%;
}
.adene-atlas-pobreza-container {
    margin: 20px 0;
    font-family: Arial, sans-serif;
    position: relative;
}
.adene-atlas-map-controls {
    top: 10px;
    left: 10px;
    position: absolute;
    z-index: 9999;
    /* display: flex; */
    width: 360px;
    padding: 20px;
    /* flex-direction: column; */
    align-items: flex-start;
    /* gap: 20px; */
    max-width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(28, 89, 245, 0.10);
    background: #FAFAFA;
    box-shadow: -10px 30px 80px 0px rgba(15, 15, 135, 0.20);
}
.adene-atlas-map-controls h3{
    font-size: 15px;
    display: none !important;
}

.region-button{
    display: inline-block;
    padding: 8px 20px !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 50px !important;
    background: #C8C8C8 !important;
    color: #FFF !important;
    /* brand/regular */
    font-family: "Sofia Sans", sans-serif !important;
    font-size: 14px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: normal;
    flex-direction: row;
    flex-wrap: nowrap;
    border: none;
    margin-bottom: 10px;
}

.region-button.active,
.adene-atlas-button:hover{
    border-radius: 50px !important;
    background: var(--brand-azul-claro, #1C59F5) !important;
}
.adene-atlas-select{
    display: flex;
    width: 100%;
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
    border-radius: 100px;
    border: 1px solid var(--brand-preto, #000);
    color: var(--brand-preto, #000);
    /* brand/regular */
    font-family: "Sofia Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 10px;
    background: #FAFAFA;
}
#adene-atlas-map {
    border: 0px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}
.adene-atlas-map-legend {
    padding: 0px;
    background: transparent;
    border: 0px solid #ddd;
    border-radius: 4px;
}
.adene-atlas-map-legend h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--brand-preto, #000);
/* brand/bold */
    font-family: "Sofia Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border: 1px solid #ddd;
}
#adene-atlas-info-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 300px;
    display: none;
}
#adene-atlas-info-panel h3 {
   color: var(--brand-preto, #000);
    /* brand/bold */
    font-family: "Sofia Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
#adene-atlas-info-panel p {
    margin: 5px 0;
    color: #666;
}
#adene-atlas-info-panel ul {
    margin: 5px 0;
    padding-left: 20px;
}
#adene-atlas-info-panel li {
    margin-bottom: 3px;
}
/* Estilo para mensagem de erro */
.map-error {
    padding: 20px;
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    color: #d32f2f;
    text-align: center;
    margin: 10px 0;
}
.legend-label{
    color: var(--brand-preto, #000);
    /* brand/regular */
    font-family: "Sofia Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
/* Ajustes para o mapa com MapTiler */
#adene-atlas-map {
    background-color: #f5f5f5; /* Cor de fundo enquanto carrega */
}
/* Estilo para camadas personalizadas */
.water-area {
    fill-opacity: 0.7;
}
.boundary {
    stroke-width: 1px;
}
div.leaflet-popup-content-wrapper{
    background-color: #0F0F87;
    color: white;
    padding: 10px;
    border-radius: 9px;
    text-align: center;
}
div.leaflet-popup-tip{
    background-color: #0F0F87;
}
div.leaflet-popup-content {
    margin: 6px 20px 6px 20px;
}
.leaflet-container a.leaflet-popup-close-button span{
    color: white;
}
#adene-atlas-map .leaflet-popup-close-button{
    display: none;
}
#adene-atlas-map-info-box{
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}
.adene-atlas-map-extra{
    display: flex;
    width: 343px;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    border-radius: 20px;
    border: 1px solid rgba(28, 89, 245, 0.10);
    background: #FAFAFA;
    /* drop shadow/blue */
    box-shadow: -10px 30px 80px 0px rgba(15, 15, 135, 0.15);
}
.adn-title{
    color: var(--brand-preto, #000);
    /* brand/bold */
    font-family: "Sofia Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 70%;
    max-width: 70%;
    display: inline-block;
}
.adn-value{
    display: flex;
    padding: 8px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    background: var(--brand-azul-claro, #1C59F5);
    color: #FFF;
    /* brand/bold */
    font-family: "Sofia Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 80%;
    display: inline-block;
    margin-bottom: 20px;
}
.adn-title-2{
   color: var(--brand-azul-escuro, #0F0F87);
    /* brand/bold */
   font-family: "Sofia Sans";
   font-size: 16px;
   font-style: normal;
   font-weight: 400;
   line-height: normal;
   margin-bottom: 4px;
}
.adn-title-sub-2{
   color: var(--brand-azul-escuro, #0F0F87);
    /* brand/bold */
   font-family: "Sofia Sans";
   font-size: 15px;
   font-style: normal;
   font-weight: 400;
   line-height: normal;
   margin-bottom: 4px; 
}
.botoes-nacionais{
    display: none;
    max-height: 140px;
    overflow-y: auto;
}
.botoes-nacionais .adene-atlas-pop-map{
    background: #C8C8C8;
    border-radius: 8px;
    padding: 6px 10px;
    color: white;
    font-size: 15px;
    margin-bottom: 10px;
    font-family: "Sofia Sans", sans-serif !important;
    cursor: pointer;
}
.botoes-nacionais .adene-atlas-pop-map.ativo{
    background: #0F0F87;
}
.adn-my-foto img{
        max-width: 100%;
    margin-bottom: 4px;
    width: 100%;
    object-fit: cover;
    height: 130px;
    object-position: top;
}
.adn-desc-2{
    color: var(--brand-preto, #000);
    /* brand/regular */
    font-family: "Sofia Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.adene-atlas-pobreza-container *, 
.adene-atlas-pobreza-container *::before, 
.adene-atlas-pobreza-container *::after {
    box-sizing: border-box;
}


@media only screen and (max-width: 821px){
    .adene-atlas-map-controls{
        position: relative;
        width: 199%;
        top: -60px;
        left: 0px;
    }
    #adene-atlas-map{
        height: 60vh !important;
    }
    .adn-title {
        width: 60%;
        max-width: 60%;
    }
}
@media only screen and (max-width: 450px){
    #adene-atlas-map-info-box{
        top: 5px;
        right: 5px;
        width: calc(100% - 10px);
    }
    #adene-atlas-map{
        height: 70vh !important;
    }
    .adn-value {
        padding: 7px 14px;
        font-size: 14px;
    }
    .adn-title-2 {
        font-size: 14px;
    }
    .adn-desc-2 {
        font-size: 12px;
    }
    .region-button {
        padding: 6px 14px;
        font-size: 13px;
    }
    .adene-atlas-select {
        padding: 7px 14px;
        font-size: 13px;
    }
}


