@keyframes covspin {
    to {
        transform: rotate(360deg)
    }
}

#cov-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none
}

#cov-overlay.remove {
    display: none !important
}

.coverage-widget {
    margin: 50px 0 80px
}

#cov-overlay .cov-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(2px)
}

#cov-overlay .cov-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    width: min(75vw, 440px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    text-align: center
}

.cov-modal>span {
    font-size: 16px;
    font-weight: 300;
}

.cov-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 4px solid #e5e7eb;
    border-top-color: #003d3f;
    animation: covspin .9s linear infinite
}

.cov-row {
    display: flex;
    gap: 8px;
    align-items: center
}

.cov-map-results {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    justify-content: space-between;
    height: 615px;
    position: relative
}

.cov-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto auto;
    gap: 12px;
    margin-top: 12px
}

.cov-primary,
.cov-secondary {
    color: #fff;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: 45px;
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 46px;
    gap: 10px;
    transition: all .2s
}

.cov-primary {
    background: linear-gradient(92deg, #003a3c .37%, #006d70 100%);
    padding: 10px 25px
}

.cov-secondary {
    background-color: #191919;
    padding: 10px 30px
}

.cov-secondary:hover {
    background-color: #e5e5e5;
    color: #191919
}

.cov-primary::after,
.cov-secondary::before {
    content: "";
    width: 12px;
    height: 18px;
    background-image: url(./icon/icon-location.svg);
    background-repeat: no-repeat;
    background-size: contain
}

.cov-primary::after {
    height: 12px;
    background-image: url(./icon/icon-arrow.svg);
    background-size: cover;
    background-position: right;
    transition: all .2s
}

.cov-primary:hover::after {
    width: 20px
}

.cov-switch {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 18px 0
}

.cov-link {
    background: 0 0;
    border: 0;
    color: #2271b1;
    cursor: pointer;
    padding: 0
}

.cov-count,
.cov-cp {
    color: #000;
    font-size: 14px
}

.cov-count {
    font-weight: 700;
    margin-right: 25px
}

.cov-cp {
    margin: 0 0 13px;
    font-weight: 300;
    flex: 0 0 100%
}

.cov-cp>a {
    font-weight: 600;
    text-decoration: underline
}

.cov-cp.mobile {
    display: none;
}

.cov-results {
    display: none;
    overflow-y: auto;
    height: 615px;
    position: relative
}

.cov-results-header {
    position: absolute;
    top: -35px;
    right: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 30%;
    display: none
}

.cov-results-header:has(~.cov-results.hide),
.cov-results-header:has(~.cov-results.show) {
    display: flex
}

.cov-results-text {
    color: #191919;
    font-size: 16px;
    font-weight: 700
}

.cov-results.show {
    display: block;
    padding-right: 23px
}

.cov-filters-icon,
.cov-results.hide {
    display: none
}

.cov-results::-webkit-scrollbar {
    width: 5px
}

.cov-results::-webkit-scrollbar-track {
    border-radius: 10px;
    background: linear-gradient(to right, transparent 0, transparent 48%, #bababa 48%, #bababa 52%, transparent 52%, transparent 100%)
}

.cov-results::-webkit-scrollbar-thumb {
    background: #191919;
    width: 5px;
    height: 140px;
    border-radius: 5px
}

#cov-toggle-results {
    color: #4e4e4e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer
}

.cov-card,
.cov-no-results {
    border-radius: 20px;
    background-color: #e2e2e2
}

.cov-card {
    border: 1px solid #e5e7eb;
    padding: 20px 25px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 5px;
}

.cov-card-address {
    grid-column: span 2;
}

.cov-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    border: 0;
    padding: 0 130px;
    margin-bottom: 0
}

.cov-no-results-text {
    color: #000;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%
}

.cov-no-results-small {
    color: #484848;
    font-size: 12px;
    font-weight: 400;
    margin: 7px 0 15px
}

.cov-card h3,
.cov-meta-text {
    color: #000;
    font-size: 15px;
    font-weight: 500
}

.cov-card h3 {
    line-height: 140%
}

.cov-card-address>span,
.cov-meta-text>span {
    color: #595959;
    font-size: 11px;
    font-weight: 400
}

.cov-meta-text {
    display: flex;
    gap: 4px;
    align-items: center;
    line-height: 1.3;
}

.cov-meta {
    display: flex;
    gap: 5px 12px;
    flex-wrap: wrap;
    grid-row: 2;
    margin-top: 12px
}

.cov-actions {
    grid-row: span 2;
    align-self: flex-end
}

.cov-map-wrap {
    flex: 1 0 66%;
    height: 100%;
    position: relative;
    border-radius: 30px;
    overflow: hidden
}

.cov-map {
    width: 100%;
    height: 100%
}

.cov-actions .cov-small {
    font-size: 15px;
    font-weight: 400;
    gap: 7px;
    padding: 11px 20px;
    border-radius: 45px;
    background-color: #f0f0f0;
    cursor: pointer
}

.cov-actions .cov-small::before {
    content: "";
    width: 14px;
    height: 18px;
    background-image: url(./icon/icon-ver-mapa.svg);
    background-repeat: no-repeat;
    background-size: contain
}

.cov-legend {
    display: flex
}

.cov-actions .cov-small,
.cov-legend-icon {
    color: #000;
    display: flex;
    align-items: center
}

.cov-legend-icon {
    font-size: 14px;
    font-weight: 300;
    gap: 6px
}

.cov-legend-icon:not(:last-child) {
    margin-right: 13px;
    padding-right: 13px;
    border-right: 1px solid #adadad
}

.cov-legend-icon::before {
    content: "";
    aspect-ratio: 1;
    width: 24px;
    border-radius: 50%;
    background-size: contain;
    background-repeat: no-repeat
}

.cov-legend-icon.with-coverage::before {
    background-image: url(./icon/icon-com-cobertura.svg)
}

.cov-legend-icon.no-coverage::before {
    background-image: url(./icon/icon-sem-cobertura.svg)
}

.cov-legend-icon.under-build::before {
    background-image: url(./icon/icon-em-construcao.svg)
}

.cov-legend-icon.need-analysis::before {
    background-image: url(./icon/icon-requer-analise.svg)
}

.cov-row>.cov-label-search {
    left: 45px
}

.cov-row>.cov-label-search:has(~.cov-input-search:not(:placeholder-shown)) {
    top: -10px;
    color: #191919;
    font-size: 9px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: .18px;
    text-transform: uppercase;
    border-radius: 5px;
    background-color: #e9e9e9;
    padding: 3px 6px;
    transform: translateY(0)
}

.cov-row>.cov-input-search:focus {
    background-blend-mode: difference
}

.cov-row>.cov-input-search {
    background-image: url(./icon/icon-search.svg);
    background-size: 24px;
    background-position: 12px;
    background-repeat: no-repeat;
    padding-left: 45px;
    height: 46px;
    border: none !important;
}

.cov-input.input-group>input[type=text] {
    border: none;
}

.cov-row>.cov-label-search,
.cov-input.input-group>label {
    color: #595959;
    font-size: 15px;
    font-weight: 300;
}

.cov-openmarker {
    max-width: 300px;
    padding: 0 20px 10px
}

.cov-openmarker-status {
    color: #191919;
    font-size: 18px;
    position: absolute;
    top: 16px;
    left: 30px;
    font-weight: 700
}

.cov-openmarker-address {
    color: #595959;
    font-size: 13px;
    font-weight: 400;
    line-height: 155%
}

.cov-openmarker-wrapper {
    margin-bottom: 15px
}

.select2-container--default .select2-selection--single {
    border: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    background-repeat: no-repeat;
    background-image: url(./icon/icon-select2.svg);
    height: 23.5px;
    width: 23.5px;
    top: 12px;
    right: 8px
}

.cov-icon-legend {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

@media (max-width:1680px) {
    .cov-actions .cov-small {
        font-size: 13px;
        padding: 10px 16px;
    }

    .cov-card h3,
    .cov-meta-text {
        font-size: 13px;
    }

    .cov-results-text {
        font-size: 14px;
    }

    .cov-results-header {
        right: 25px;
    }
}

@media (max-width: 1500px) {
    .cov-actions .cov-small::before {
        width: 12px;
        height: 14px;
    }

    .cov-card {
        padding: 18px;
    }
}

@media (max-width: 1376px) {
    .cov-results-header {
        right: 0;
        top: -38px;
    }

    .cov-results-header:has(~.cov-results.hide) {
        position: absolute;
        z-index: 1;
        background-color: #f0f0f0;
        width: 340px;
        padding: 15px;
        top: -52px;
        right: 0;
        border-radius: 100px;
    }

    .cov-switch {
        justify-content: space-between;
    }

    .cov-cp {
        flex: auto;
    }

    .cov-card {
        grid-template-columns: 100%;
    }

    .cov-meta {
        margin: 10px 0;
    }

    .cov-card-address {
        grid-column: auto;
    }

    .cov-actions {
        grid-row: auto;
    }

    .cov-count.results {
        margin-right: 0;
    }

    .cov-legend {
        flex: 1 0 100%;
    }

}

@media (max-width: 1180px) {
    .cov-map-wrap {
        flex: 1 0 58%;
    }

    .cov-map-results {
        height: 560px;
    }

    .cov-results {
        height: 560px;
    }
}

@media (max-width:1080px) {
    .cov-filters {
        grid-template-columns: 1fr 1fr 1fr
    }

    .cov-legend-icon::before {
        width: 20px;
    }

    .cov-card h3,
    .cov-meta-text,
    .cov-legend-icon {
        font-size: 12px
    }

    .cov-primary,
    .cov-secondary {
        font-size: 14px
    }

    .cov-secondary {
        padding: 10px 20px
    }

    .cov-results-header {
        width: fit-content;
        gap: 12px;
    }

    .cov-results.show {
        padding-right: 15px;
    }

    .cov-map-wrap {
        flex: 1 0 65%;
    }
}

@media (max-width:1024px) {
    .cov-results-header {
        position: relative;
        top: 0;
        transition: all .2s;
    }

    .cov-results-header {
        margin-bottom: 12px;
    }

    .cov-results-text,
    #cov-toggle-results {
        font-size: 12px;
    }

    .cov-results-header:has(~.cov-results.hide) {
        top: 10px;
        right: 90px;
    }

    .cov-results {
        height: 520px;
    }
}

@media (max-width:820px) {

    .cov-filters {
        grid-template-columns: repeat(6, 1fr)
    }

    .cov-filters>* {
        grid-column: span 2
    }

    .cov-filters>button {
        grid-column: span 3
    }

    .cov-primary,
    .cov-secondary {
        justify-content: center
    }

    .cov-input.input-group>label,
    .cov-row.input-group>label {
        top: 12px;
        font-size: 14px
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 14px
    }

    .select2-container--default .select2-selection--single {
        height: 42px
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        top: 10px
    }

    .cov-map-results {
        display: block;
        height: 100%;
    }

    .cov-map-wrap {
        aspect-ratio: 16 / 9;
    }

    .cov-results-wrapper {
        margin-top: 15px;
    }

    .cov-results-header:has(~.cov-results.hide) {
        position: relative;
        z-index: 1;
        background-color: transparent;
        width: fit-content;
        padding: 0;
        top: 0;
        right: 0;
    }

    .cov-row>.cov-input-search {
        height: 42px;
    }
}

@media (max-width:600px) {
    .cov-icon-legend {
        display: flex;
    }

    .cov-results.show {
        padding-right: 0;
        scrollbar-width: none;
    }

    .cov-results {
        height: 370px;
        position: relative;
    }

    .cov-results::after {
        content: '';
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 90px;
        background: linear-gradient(180deg, rgba(240, 240, 240, 0.00) 0%, #F0F0F0 100%);
        display: block;
        pointer-events: none;
    }

    .cov-row {
        gap: 5px;
    }

    .cov-card {
        padding: 17px;
        grid-template-columns: 1fr auto;
    }

    .cov-actions .cov-small {
        font-size: 15px;
        padding: 9px 15px;
    }

    .cov-actions {
        grid-row: span 2;
    }

    .cov-filters-icon {
        display: block;
        padding: 8px;
        cursor: pointer;
        transform: translateX(4px);
        position: relative;
    }

    .cov-filter-active {
        position: absolute;
        top: 0;
        right: 0;
        height: 12px;
        width: 12px;
        border-radius: 3px;
        color: #FFF;
        text-align: center;
        font-size: 8px;
        font-weight: 700;
        background-color: #005355;
        display: none;
    }

    .cov-card-address>span,
    .cov-meta-text>span,
    .cov-legend-icon {
        font-size: 10
    }

    .cov-legend-icon:not(:last-child) {
        margin-right: 0;
        padding-right: 0;
        border: none;
    }

    .cov-legend-icon::before {
        width: 17px;
    }

    .coverage-widget {
        margin: 0 0 30px 0;
        display: flex;
        flex-direction: column;
    }

    .cov-cp {
        display: none;
    }

    .cov-cp.mobile {
        font-size: 12px;
        display: block;
        margin-left: 20px;
    }

    .cov-map-results {
        order: 0;
    }

    .cov-switch {
        order: 1;
        position: relative;
        margin: 10px 0;
    }

    .cov-results-header {
        justify-content: space-between;
        width: 100%;
    }

    .cov-results-text {
        font-size: 15px;
    }

    #cov-toggle-results {
        font-weight: 300;
    }

    .cov-searchbox {
        order: 2;
    }

    .cov-card h3,
    .cov-meta-text,
    .cov-modal>span {
        font-size: 14px;
    }

    .cov-map-wrap {
        aspect-ratio: unset;
        height: 540px;
    }

    .cov-openmarker {
        padding: 0 10px 10px 10px;
    }

    .cov-openmarker-status {
        font-size: 16px;
        left: 20px;
    }

    .cov-filters {
        grid-template-columns: 100%;
        border-radius: 11px;
        background: linear-gradient(0deg, #F0F0F0 0%, #E2E2E2 100%);
        padding: 14px;
        gap: 6px;
        display: none;
    }

    .cov-filters.open {
        display: grid;
    }

    .cov-row>.cov-label-search {
        left: 14px;
    }

    .cov-row>.cov-input-search {
        background-size: 18px;
        background-position: calc(100% - 12px);
        padding-left: 12px;
    }

    .cov-filters>*,
    .cov-filters>button {
        grid-column: auto
    }

    .cov-legend {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
        border-radius: 8px;
        background-color: #FFF;
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.06);
        flex: 0 0 auto;
        position: absolute;
        z-index: 1;
        top: -5px;
        right: 45px;
        opacity: 0;
        visibility: hidden;
        transition: all .2s;
    }

    .cov-legend::after {
        content: '';
        position: absolute;
        top: 12px;
        right: -10px;
        width: 11px;
        height: 11px;
        background-image: url(./icon/after-polygon.svg);
        background-size: contain;
        background-repeat: no-repeat;
    }

    .cov-icon-legend:hover~.cov-legend {
        visibility: visible;
        opacity: 1;
    }

    .cov-legend-icon {
        white-space: nowrap
    }

    .cov-secondary {
        margin: 12px auto;
    }
}