/*-------------------------------------------*\
! Estilo para seção de blocos 100%
\*-------------------------------------------*/
.election__index {
    background-image: url(../img/CNN_ELEICOES_2024_BG1.png);
    background-size: cover;
    min-width: 100vw;
    padding: 24px;
    background-position: center;
}

.election__content {
    color: var(--clr-cnn-white-1);
    margin: 0 auto;
    border-radius: 16px;
    border: 3.5px solid #002C48;
    background: radial-gradient(278.82% 137.51% at 1.95% 3.59%, rgb(255 255 255 / 35%) 0%, rgb(255 255 255 / 0%) 100%);
    backdrop-filter: blur(21px);
    padding: 0 0 24px;
}

.city__researcher {
    margin-top: 8px;
}

.city__researcher a {
    display: block;
    margin: 0 auto;
    width: 188px;
    margin-top: 24px;
    display: flex;
}

.election__content h2 {
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    margin: 16px 16px 24px;
    text-align: center;
    color: #fafafa;
}

.city__search__container,
.city__researcher,
.search__result__graphics #city__search {
    position: relative;
    z-index: 2;
}

.search__result__graphics .most__searched,
#city__name__trigger {
    display: none;
}

.election__content #city__search {
    padding: 0 16px;
    width: 100%;
    border: none;
    outline: none;
    line-height: 40px;
    color: #fff;
    height: 56px;
    background: #8c8c8c38;
}


.search__result__graphics #city__search {
    height: 48px;
    position: absolute;
    visibility: hidden;
    border: 1px solid #fff;
}

.election__content #city__search::placeholder {
    color: #fff;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

#city-not-found {
    position: absolute;
    z-index: 2;
    padding: 0 16px;
    width: 100%;
    color: #fff;
    line-height: 56px;
    min-height: 56px;
    background: #8c8c8c38;
}

#autocomplete-container {
    position: absolute;
    width: 100%;
    overflow-y: auto;
    scrollbar-color: #D0D0D0 transparent;
    scrollbar-width: thin;
    white-space: -moz-pre-space;
    z-index: 2;
    padding: 0;
    margin: 0;
    max-height: 196px;
    background: #8c8c8c38;
}

#autocomplete-container li {
    cursor: pointer;
    padding: 16px;
    z-index: 2;
}

#autocomplete-container li:hover {
    background: #fafafa;
    color: #282828;
}

.city__search__container::after {
    width: 18px;
    height: 18px;
    background-image: url('../img/search-icon.svg');
    background-repeat: no-repeat;
    right: 16px;
    top: 17px;
    background-size: cover;
}

.most__searched {
    min-height: 156px;
}

.most__searched h3 {
    background: #8c8c8c3b;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    margin: 32px 0px 16px;
    padding: 8px 0;
    border-radius: 0;
    text-align: center;
}

.cities {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 0px;
    padding: 0px;
    flex-flow: wrap;
    gap: 16px;
    list-style: none;
    padding: 0 16px 24px;
}

.cities li {
    text-align: center;
    width: 45%;
    display: block;
    color: #fff;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    cursor: pointer;
}

.cities li:hover {
    text-decoration: underline;
}

.result__graphics,
.city__name__search {
    display: none;
}


/* Css comum para pseudos */
.search__result__graphics .city__name__search::after,
.search__result__graphics .city__researcher picture::after,
.city__search__container::after {
    content: '';
    position: absolute;
    z-index: 2;
    display: block;
}


/*-------------------------------------------*\
! Estilo para grafico aberto
\*-------------------------------------------*/
.search__result__graphics .city__researcher picture {
    position: relative;
}

.search__result__graphics .result__graphics {
    display: block;
    width: 100%;
    height: 525px;
	background-color: var(--clr-cnn-grey-1);
	background-image: url("../../../wp-content/plugins/master_homepage/assets/img/ad-bg.png");
    overflow: auto;
    margin-top: 24px;
}

.search__result__graphics .city__name__search {
    position: relative;
    display: block;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
    line-height: 40px;
    padding: 0 16px;
    cursor: pointer;
}

.search__result__graphics .city__search__container::after {
    top: 62px;
}

.search__result__graphics .city__name__search::after {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    height: 24px;
    top: 8px;
    right: 16px;
    background-image: url(../img/arrow-box.svg);
    width: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: all ease .2s;
}

.search__result__graphics #city__name__trigger:checked~.city__search__container label.city__name__search::after {
    transform: rotate(0deg);
    top: 10px;
}

.search__result__graphics #autocomplete-container {
    backdrop-filter: unset;
    max-height: 208px;
    top: 96px;
    background: unset;
}

.search__result__graphics #city__name__trigger:checked ~ .city__search__container #city__search {
    visibility: visible;
    border: none;
    border-top: 1px solid;
    border-bottom: 1px solid;
    margin-top: 8px;
}

.search__result__graphics #city__name__trigger:checked~.city__search__container {
    overflow: visible;
    background: unset;
}

.search__result__graphics #city__name__trigger:checked~.city__search__container::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 316px;
    border-radius: 4px;
    background: radial-gradient(278.82% 137.51% at 1.95% 3.59%, rgba(106, 106, 106, 0.22) 0%, rgb(19 22 7 / 93%) 100%);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
}

.search__result__graphics .city__search__container {
    overflow: hidden;
    background: #8c8c8c21;
}

.search__result__graphics #city-not-found {
    top: 95px;
    background: unset;
}

@media(max-width: 768px) {
    .cities li:nth-child(odd) {
        text-align: left;
    }

    .cities li:nth-child(even) {
        text-align: right;
    }
}

@media(min-width: 768px){
    .election__index {
        margin-left: -24px;
    }
}


/*-------------------------------------------*\
! Estilo para seção de blocos 70%
\*-------------------------------------------*/
.col__l--9.col--12 .election__index {
    margin-left: -24px;
}

.trigger__hider .most__searched {
    visibility: hidden;
}

@media(min-width: 991px) {
    /*-------------------------------------------*\
    ! Estilo para seção de blocos 100%
    \*-------------------------------------------*/
    .election__index {
        padding: 72px 56px;
        border-radius: 8px;
        min-width: unset;
        margin: 0;
    }

    .election__content {
        padding: 0 56px;
        margin: 0;
        width: 100%;
    }
    
    .city__researcher {
        margin-top: 80px;
    }

    .city__researcher a {
        width: fit-content;
        height: 100%;
    }

    .election__content h2 {
        line-height: 22px;
        padding: 0;
        text-align: left;
        margin: 40px 0 32px;
    }

    .city__search__container {
        padding: 0;
    }

    .city__search__container::after {
        top: 16px;
        right: 16px;
    }

    #autocomplete-container {
        max-height: 206px;
    }
    
    #city-not-found {
        top: 56px;
    }

    .most__searched {
        margin-bottom: 72px;
        min-height: 152px;
    }
    
    .most__searched h3 {
        margin: 40px 0 24px;
        padding: 16px;
        border-radius: 4px;
    }

    .cities {
        gap: 0px 48px;
        margin: 0;
        padding: 0;
    }

    .cities li {
        width: 29%;
        padding-bottom: 16px;
   }

    .cities li:nth-child(1),
    .cities li:nth-child(4),
    .cities li:nth-child(7),
    .cities li:nth-child(10) {
        text-align: left;
    }

    .cities li:nth-child(3),
    .cities li:nth-child(6),
    .cities li:nth-child(9),
    .cities li:nth-child(12) {
        text-align: right;
    } 

    
    /*-------------------------------------------*\
    ! Estilo para grafico aberto
    \*-------------------------------------------*/
    .election__content.search__result__graphics {
        padding: 0 56px 24px; 
    }

    .search__result__graphics .city__researcher {
        margin: 24px 0;
        display: flex;
        align-items: center;
    }

    .search__result__graphics .city__researcher a {
        width: 180px;
        height: 42px;
        cursor: pointer;
        margin: 0;
    }

    .search__result__graphics .city__researcher picture {
        margin-right: 32px;
    }

    .search__result__graphics .city__researcher picture::after {
        width: 1px;
        height: 42px;
        background: #fafafa;
        top: 0px;
        right: -14px;
    }

    .search__result__graphics h2 {
        max-width: 540px;
        margin: 0 24px 0 0;
    }

    .search__result__graphics .city__search__container,
    .search__result__graphics #autocomplete-container {
        min-width: 332px;
        
    }

    .search__result__graphics .city__name__search  {
        border-radius: 4px;
    }

    .search__result__graphics .city__name__search::after {
        bottom: 17px;
    }

    .search__result__graphics #city__search {
        height: 40px;
        top: 53px;
    }

    .search__result__graphics #city-not-found {
        top: 85px;
        background: transparent;
    }

    .search__result__graphics #autocomplete-container {
        max-height: 293px;
        top: 86px;
        max-width: 394px;
        right: 0px;
        background: unset;
        backdrop-filter: unset;
    }
    
    .search__result__graphics .city__search__container{
        border: 4px;
    }

    .search__result__graphics .city__search__container::after {
        right: 17px;
        top: unset;
        bottom: -32px;
        z-index: 1;
    }

    .search__result__graphics .result__graphics {
        height: 525px;
        margin: 0;
    }

    .search__result__graphics #city__name__trigger:checked ~ .city__search__container #city__search {
        margin: -8px 0 0;
    }

    .search__result__graphics #city__name__trigger:checked~.city__search__container::before {
        background: radial-gradient(278.82% 137.51% at 1.95% 3.59%, rgba(106, 106, 106, 0.22) 0%, rgb(19 22 7 / 70%) 100%);
        height: 380px;
    }


    /*-------------------------------------------*\
    ! Estilo para seção de blocos 70%
    \*-------------------------------------------*/
    .col__l--9.col--12 .election__index {
        padding: 48px 32px;
        margin: 0;
    }

    .col__l--9.col--12 .election__content {
        min-height: 498px;
        padding: 0 156px;
    }
    
    .col__l--9.col--12 .search__result__graphics {
        padding: 0 24px;
    }
    
    .col__l--9.col--12 .city__researcher {
        margin-top: 40px;
    }

    .col__l--9.col--12 .election__content h2 {
        margin: 24px 0;
    }

    .col__l--9.col--12 .most__searched {
        margin-bottom: 40px;
    }

    .col__l--9.col--12 .search__result__graphics .result__graphics {
        height: 375px;
        margin: 24px 0;
    }

    .col__l--9.col--12 .search__result__graphics h2 {
        max-width: 388px;
        margin: 0 24px 0 0;
    }
    
    .col__l--9.col--12 .search__result__graphics .city__search__container,
    .col__l--9.col--12 .search__result__graphics #autocomplete-container {
        width: 320px;
        right: 0px;
    }

    .col__l--9.col--12 .cities {
        gap: 0;
        justify-content: space-between;
    }

    .col__l--9.col--12 .search__result__graphics #city__name__trigger:checked ~ .city__search__container #city__search {
        width: 290px;
    }
}
