:root {
    --Especficos-Border-color-border: #e6e9ec;
    --Especficos-Border-color-border-button-disabled: #9d9fa4;
    --Especficos-Text-color-text-title: #333333;
    --Especficos-Text-color-text-brand: #007eae;
    --Especficos-Text-color-text: #666666;
    --Especficos-Background-color-background-highlight-20: #e7e9ec;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
}

#map {
    width: 100%;
    height: calc(100vh - 210px);
}

.iniciative {
    max-height: calc(100vh - 370px);
    overflow-y: auto;
    padding-right: 16px;
}

.iniciative::-webkit-scrollbar,
.filters-container::-webkit-scrollbar,
#region-filter-list::-webkit-scrollbar {
    width: 8px;
    border-radius: 10px;
}

.iniciative::-webkit-scrollbar-track,
.filters-container::-webkit-scrollbar-track,
#region-filter-list::-webkit-scrollbar-track {
    background: var(--Especficos-Border-color-border);
    border-radius: 10px;
}

.iniciative::-webkit-scrollbar-thumb,
.filters-container::-webkit-scrollbar-thumb,
#region-filter-list::-webkit-scrollbar-thumb {
    background: var(--Especficos-Border-color-border-button-disabled);
    border-radius: 10px;
}

.iniciative::-webkit-scrollbar-thumb:hover,
.filters-container::-webkit-scrollbar-thumb:hover,
#region-filter-list::-webkit-scrollbar-thumb:hover {
    background: var(--Especficos-Border-color-border-button-disabled);
}

.iniciative__item {
    display: block;
    border-bottom: 1px solid var(--Especficos-Background-color-background-highlight-20);
    margin-bottom: 16px;
    margin-right: 12px;
}

.iniciative__title {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    color: var(--Especficos-Text-color-text-title);
    margin: 0 !important;
}

.iniciative__subtitle {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    color: var(--Especficos-Text-color-text-brand);
    display: block;
    margin: 4px 0;
}

.iniciative__text {
    color: var(--Especficos-Text-color-text);
    margin: 0 0 12px 0;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.iniciative__stat {
    display: flex;
    align-items: center;
    gap: 8px;

    &:nth-child(n + 3) {
        display: none;
    }
}

.iniciative__stat-number {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    color: var(--Especficos-Text-color-text-title);
}

.iniciative__stat-label {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    color: var(--Especficos-Text-color-text);
}

.iniciative__stat-icon img {
    max-height: 24px;
}

.iniciative__link,
.iniciative__link-detail {
    margin: 12px 0;
    color: var(--Especficos-Text-color-text-brand);
    display: flex;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}

.filter-close__btn {
    margin: 12px 0;
    color: var(--Especficos-Text-color-text-brand);
    display: flex;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    border: 0;
    background: transparent;
    text-decoration: underline;
    display: flex;
    align-items: center;
    padding: 0;
    cursor: pointer;

    svg {
        margin-right: 8px;
    }
}

.iniciative__detail {
    display: none;
}

.iniciative__detail img {
    max-width: 90%;
    display: block;
    margin: 15px 0;
}

.iniciative__item.is-opened {
    border-bottom: 0;
}

.iniciative__item.is-opened .iniciative__text {
    display: block;
    overflow: initial;
}

.iniciative__item.is-opened .iniciative__detail {
    display: block;
}

.iniciative__item.is-opened .iniciative__title {
    font-size: 24px;
    font-weight: 700;
}

.iniciative__item.is-opened .iniciative__subtitle {
    margin: 16px 0;
    font-size: 18px;
    font-weight: 400;
}

.iniciative__item.is-opened .iniciative__stat-number {
    font-size: 18px;
    font-weight: 700;
}

.iniciative__item.is-opened .iniciative__stat-label {
    font-size: 18px;
    font-weight: 400;
}

.iniciative__item.is-opened .iniciative__stat-icon img {
    max-height: 32px;
}

.dy-content__back {
    display: none;
}

.dy-content.is-opened .iniciative__item:not(.is-opened),
.dy-content.is-opened .iniciative__link {
    display: none;
}

.dy-content.is-opened .dy-content__header {
    display: none;
}

.dy-content.is-opened .dy-content__back {
    display: block;
}

.dy-content.is-opened .iniciative {
    max-height: calc(100vh - 120px);
}

.dy-content.is-opened .iniciative__stat:nth-child(n + 3) {
    display: flex;
}

.dy-content__back-link {
    margin: 0 0 24px 0;
    color: var(--Especficos-Text-color-text-brand);
    display: flex;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    gap: 10px;
    align-items: end;
}

.cp-map {
    display: flex;
    width: 100%;
    position: relative;
}

.cp-map__container {
    display: inline-block;
    position: relative;
    width: calc(100% - 380px);
}

.dy-content {
    padding: 24px 16px 24px 24px;
    width: 380px;
    display: inline-block;
}

@media (max-width: 768px) {
    .cp-map__container {
        width: 100% !important;
    }

    .dy-content {
        height: auto;
        padding: 24px 16px;
        width: auto;
    }

    .cp-map {
        flex-direction: column-reverse;
    }

    #map {
        margin-top: 0;
        height: 60vh;
    }

    .controlers {
        position: relative;
    }

    .iniciative {
        max-height: initial !important;
    }
}

.cp-map .controlers {
    margin: 16px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
    gap: 16px;
    display: flex;
}

.cp-map .controlers select {
    font-family: "Open Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    padding: 12px 40px 12px 16px;
    border: 1px solid var(--Especficos-Border-color-border);
    border-radius: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.8633 5.46967C14.1562 5.76256 14.1562 6.23744 13.8633 6.53033L8.53 11.8637C8.23711 12.1566 7.76224 12.1566 7.46934 11.8637L2.13601 6.53033C1.84312 6.23744 1.84312 5.76256 2.13601 5.46967C2.4289 5.17678 2.90378 5.17678 3.19667 5.46967L7.99967 10.2727L12.8027 5.46967C13.0956 5.17678 13.5704 5.17678 13.8633 5.46967Z" fill="%23333333"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    background-color: #ffffff;
    cursor: pointer;
}

.filter-button {
    font-family: "Open Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    padding: 12px 16px;
    border: 1px solid var(--Especficos-Border-color-border);
    border-radius: 12px;
    background-size: 16px;
    background-color: #ffffff;
    cursor: pointer;
}

.cp-map .category {
    margin-bottom: 20px;
}

.dy-content__title {
    color: var(--Especficos-Text-color-text-title);
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    padding: 0;
    margin: 0 0 12px 0 !important;
}

.dy-content__subtitle {
    color: #666666;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    display: block;
    margin-bottom: 16px;
}

.dy-content__subtitle--xs {
    color: #333333 !important;
    margin-bottom: 6px !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 120% !important;
    font-family: 'Open Sans';
}

.dy-content__msg {
    color: #383838;
    font-size: 12px;
    font-style: normal;
    line-height: 16px;
    display: block;
    margin-bottom: 16px;
    background: #fce7ea;
    border-radius: 5px;
    padding: 8px;
}

.cp-map hr {
    border-color: var(--Especficos-Background-color-background-highlight-20);
    margin: 16px 0;
    opacity: 0.2;
    border-width: 1px;
}

.skeleton {
    background: #e0e0e0;
    border-radius: 4px;
    margin: 8px 0;
    animation: pulse 1.5s infinite;
}

.skeleton-title {
    height: 20px;
    width: 60%;
}

.skeleton-subtitle {
    height: 16px;
    width: 40%;
}

.skeleton-text {
    height: 14px;
    width: 100%;
}

@keyframes pulse {
    0% {
        background-color: #e0e0e0;
    }
    50% {
        background-color: #d0d0d0;
    }
    100% {
        background-color: #e0e0e0;
    }
}

.filter-container {
    background-color: white;
    width: 100%;
}

.filter-container label {
    padding: 6px 16px 8px 16px;
    display: block;
}

.filter-container__items {
    display: none;
}

.custom-dropdown input[type="checkbox"],
.custom-dropdown input[type="radio"] {
    height: 0;
    width: 0;
    overflow: hidden;
}

.custom-dropdown input[type="checkbox"] + label,
.custom-dropdown input[type="radio"] + label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    padding-bottom: 3px;
}

.custom-dropdown input[type="checkbox"] + label:before,
.custom-dropdown input[type="radio"] + label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--Especficos-Border-color-border-button-disabled);
    border-radius: 5px;
    background-color: #fff;
    transition: background-color 0.3s;
}

.custom-dropdown input[type="checkbox"]:checked + label:before,
.custom-dropdown input[type="radio"]:checked + label:before {
    background-color: var(--Especficos-Text-color-text-brand);
    border-color: var(--Especficos-Text-color-text-brand);
}

.custom-dropdown input[type="checkbox"]:checked + label:after,
.custom-dropdown input[type="radio"]:checked + label:after {
    content: "\2713";
    position: absolute;
    left: 3px;
    top: 5px;
    color: white;
    font-size: 16px;
}

.filter-button__apply {
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    text-align: center;
    background: var(--Especficos-Text-color-text-brand);
    margin: auto;
    padding: 16px;
    height: 40px;
    max-width: 280px;
    width: 100%;
    border-radius: 999px;
}

.filters-footer {
    background-color: white;
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 6px 0;
}

.filter-container__btn {
    font-family: "Open Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    padding: 12px 40px 12px 0;
    border: 0;
    width: 100%;
    text-align: left;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.8633 5.46967C14.1562 5.76256 14.1562 6.23744 13.8633 6.53033L8.53 11.8637C8.23711 12.1566 7.76224 12.1566 7.46934 11.8637L2.13601 6.53033C1.84312 6.23744 1.84312 5.76256 2.13601 5.46967C2.4289 5.17678 2.90378 5.17678 3.19667 5.46967L7.99967 10.2727L12.8027 5.46967C13.0956 5.17678 13.5704 5.17678 13.8633 5.46967Z" fill="%23333333"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    background-color: #ffffff;
    cursor: pointer;
}

.gmnoprint.gm-style-mtc-bbw {
    display: none;
}

.overlay-map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

#map {
    background-color: #f0f0f0;
}

#countMunicipios {
    color: inherit;
}

#map .gm-control-active > img:nth-child(1) {
    margin: 0;
}

button.gm-control-active.gm-fullscreen-control {
    display: none;
}

.col-xs-12.center-block:has(.cp-map) {
    padding: 0;
}

.gm-style-iw-chr {
    height: 0;
}

.infowindow__title {
    font-size: 18px;
    font-family: "Open Sans";
    color: var(--Especficos-Text-color-text-brand);
    padding-right: 30px;
    margin-bottom: 0;
    padding-top: 4px;
}

.infowindow__path {
    font-size: 14px;
    font-family: "Open Sans";
    margin: 2px 0 12px 0 !important;
    color: var(--Especficos-Text-color-text-title);
    font-style: italic;
    font-weight: 400;
}

.infowindow__iniciatives {
    list-style: disc;
    padding: 0 0 0 18px;
}

.infowindow__iniciatives li span {
    font-size: 14px;
    font-family: "Open Sans";
    color: var(--Especficos-Text-color-text-title);
    font-weight: 400;
}

.infowindow ul {
    color: var(--Especficos-Text-color-text-brand);
}

.infowindow ul li {
    position: relative;
    padding: 0;
}

.infowindow ul li:before {
    content: "";
    height: 6px;
    position: absolute;
    left: -14px;
    top: 10px;
    width: 6px;
    background: var(--Especficos-Text-color-text-brand);
    border-radius: 100%;
}

.gm-style img {
    margin: 0 !important;
}

button.gm-ui-hover-effect {
    outline: none;
}

.gmnoprint.gm-bundled-control.gm-bundled-control-on-bottom .gm-svpc {
    display: none;
}

.yNHHyP-marker-view:has(text) {
    z-index: 2;
}

.iniciative__stat-icon img {
    margin: 0;
}

.iniciative__stat {
    margin-bottom: 8px;
}

aside {
    position: relative;
}

.filters {
    display: none;
    position: absolute;
    background: white;
    padding: 24px 16px 24px 24px;
    top: 0;
    left: 0;
    height: 100%;
    max-height: calc(100vh - 260px);
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.filters-container {
    height: 100%;
    overflow: auto;
    padding-right: 16px;
}

.filter-container.is-opened .filter-container__items {
    display: block;
}

.filter-container__btn {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="16" height="16" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.5303 8.46967C20.8232 8.76256 20.8232 9.23744 20.5303 9.53033L12.5303 17.5303C12.2374 17.8232 11.7626 17.8232 11.4697 17.5303L3.46967 9.53033C3.17678 9.23744 3.17678 8.76256 3.46967 8.46967C3.76256 8.17678 4.23744 8.17678 4.53033 8.46967L12 15.9393L19.4697 8.46967C19.7626 8.17678 20.2374 8.17678 20.5303 8.46967Z" fill="%23333333"/></svg>');
}

.filter-container.is-opened .filter-container__btn {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="16" height="16" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.5303 16.0303C20.8232 15.7374 20.8232 15.2626 20.5303 14.9697L12.5303 6.96967C12.2374 6.67678 11.7626 6.67678 11.4697 6.96967L3.46967 14.9697C3.17678 15.2626 3.17678 15.7374 3.46967 16.0303C3.76256 16.3232 4.23744 16.3232 4.53033 16.0303L12 8.56066L19.4697 16.0303C19.7626 16.3232 20.2374 16.3232 20.5303 16.0303Z" fill="%23333333"/></svg>');
}

.filters.is-opened {
    display: block;
    z-index: 10;
}

.filter-container #region-filter-list div,
#iniciatives-filter-list div,
.filter-item {
    display: flex;
}

.iniciative__company {
    font-size: 12px;
    font-weight: 400;
    background: var(--Especficos-Text-color-text-brand);
    margin-bottom: 14px;
    display: inline-flex;
    padding: 2px 6px;
    color: white;
    border-radius: 4px;
}

.iniciative__company.EM02 {
    background-color: #f4c00f;
    color: #383838;
}

@media (max-width: 768px) {
    .filters,
    .filters-footer {
        width: 100%;
    }

    .filters {
        height: calc(100vh - 116px);
        position: fixed;
        top: 116px;
        max-height: 100vh;
    }

    .filters-container {
        height: 75vh !important;
    }

    .filters-footer {
        bottom: -2px;
        padding: 10px 0;
    }

    .filters.is-sticky {
        top: 73px !important;
        height: calc(100vh - 116px);
    }

    .filters.is-sticky .filters-footer {
        bottom: -45px;
    }
}

.no-scroll {
    overflow: hidden;
    height: 100%;
}

label:has(+ input:focus),
input:focus + label {
    outline: 2px solid #000;
    outline-offset: 1px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
