
@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap');

/****** BASE ******/


.adene-pobreza-container{
    width: 100%;
    margin: 0px;
    max-width: 100%;
}


.adene-pobreza-container {
    margin: 20px 0;
    font-family: Arial, sans-serif;
    position: relative;
}

.adene-map-controls {
    top: 10px;
    left: 10px;
    position: absolute;
    z-index: 9999;
    /* display: flex; */
    width: 350px;
    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.15);
}
.adene-pop-map{
    /*text-transform: capitalize;*/
}

#adene-map .leaflet-popup-close-button,
#adene-map .leaflet-control-container{
    display: none;
}

button.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: 16px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: normal;
    flex-direction: row;
    flex-wrap: nowrap;
    border: none;
    margin-bottom: 18px;
}

button.region-button.active,
.adene-button:hover{
    border-radius: 50px !important;
    background: var(--brand-azul-claro, #1C59F5) !important;
}
.adene-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: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 10px;
    background-color: #FAFAFA;

    background-image: url(../image/setaSelect.png) !important;
    background-repeat: no-repeat !important;
    background-size: 25px !important;
    background-position: 95% center !important;

      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;

}







#adene-map {
    border: 0px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.adene-map-legend {
    padding: 0px;
    background: transparent;
    border: 0px solid #ddd;
    border-radius: 4px;
}

.adene-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-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-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-info-panel p {
    margin: 5px 0;
    color: #666;
}

#adene-info-panel ul {
    margin: 5px 0;
    padding-left: 20px;
}

#adene-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-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-map-info-box{
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

.adene-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: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    width: 60%;
    max-width: 60%;
    display: inline-block;
}
.adn-extra-global{
    font-family: "Sofia Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: inherit;
    margin-bottom: 0px;
    padding-top: 30px;
}
.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";
    white-space: nowrap;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 40%;
    display: inline-block;
    float: right;
    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: 600;
   line-height: normal;
   margin-bottom: 4px;
}
.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;
    text-align: left;
}
div.adn-extra-1{
    margin-top: 8px;
}
.adn-extra{display: flex;justify-content: space-between;margin-top: 5px;margin-bottom: -2px;}
.adn-extra div:nth-child(1){
    color: var(--brand-azul-escuro, #0F0F87);
    font-family: "Sofia Sans";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 4px;
}
.adn-extra div:nth-child(2){
    padding: 6px 14px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    background: var(--brand-azul-claro, #1C59F5);
    color: #FFF;
    font-family: "Sofia Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: inline-block;
    height: fit-content;
    white-space: nowrap;
}

.adene-pobreza-container *, 
.adene-pobreza-container *::before, 
.adene-pobreza-container *::after {
    box-sizing: border-box;
}

.adene-popup-custom {
    pointer-events: none;
}

.adene-popup-custom .leaflet-popup-close-button {
    pointer-events: auto;
    z-index: 9999;
}
#download-dados{
    
    margin-top: 10px;
    float: right;
    color: var(--brand-preto, #000);
    font-family: "Sofia Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: capitalize;
    background: transparent;
    border: none;
    text-decoration: underline;
}

.adene-map-legend .legend-item:first-child{
    display: none;
}


@media only screen and (max-width: 821px){
    .adene-map-controls{
        position: relative;
        width: 199%;
        top: 0px;
        left: 0px;
    }

    #adene-map{
        height: 60vh !important;
    }

    .adn-title {
        width: 70%;
        max-width: 70%;
    }
}

@media only screen and (max-width: 450px){


    #adene-map-info-box{
        top: 5px;
        right: 5px;
        width: calc(100% - 10px);
        max-height: 200px;
        overflow-y: auto;
        padding-top: 40px;
    }

    .adene-pobreza-container #adene-map-info-box:before{
        content: "x";
        position: absolute;
        right: 0px;
        top: 0px;
        background: #1c59f5;
        width: 30px;
        height: 30px;
        color: white;
        text-align: center;
        border-bottom-left-radius: 50%;
        border-top-left-radius: 0;
        border-bottom-right-radius: 0px;
    }
    #adene-map{
        height: 70vh !important;
    }
    .adn-value {
        padding: 7px 14px;
        font-size: 14px;
    }
    .adn-title-2 {
        font-size: 14px;
    }
    .adn-desc-2 {
        font-size: 12px;
                margin-bottom: 10px;
    }
    .region-button {
        padding: 6px 14px;
        font-size: 13px;
    }
    .adene-select {
        padding: 7px 14px;
        font-size: 13px;
    }
}


