.gp-project-map {
    --gp-project-ocean: #183545;
    --gp-project-ocean-deep: #102b38;
    --gp-project-cream: #f7f0e6;
    --gp-project-yellow: #ffc20e;
    --gp-project-yellow-soft: #ffe476;
    --gp-project-teal: #55c6c9;
    --gp-project-text: #183244;
    --gp-project-shell-width: 1400px;
    --gp-project-content-height: 740px;
    --gp-project-list-width: 414px;
    --gp-project-detail-width: 394px;
    --gp-project-gap: 8px;
    position: relative;
    z-index: 2;
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    color: #fff;
    background: var(--gp-project-ocean);
}

body:not(.fl-builder-edit) .fl-row:has(.gp-project-map) > .fl-row-content-wrap {
    padding-top: 0;
    padding-bottom: 0;
}

body:not(.fl-builder-edit) .fl-module:has(.gp-project-map) > .fl-module-content {
    margin-top: 0;
    margin-bottom: 0;
}

.gp-project-map,
.gp-project-map * {
    box-sizing: border-box;
}

.gp-project-map__inner {
    width: min(var(--gp-project-shell-width), calc(100% - 72px));
    margin: 0 auto;
    padding: clamp(92px, 7vw, 116px) 0 clamp(72px, 6vw, 90px);
}

.gp-project-map__title {
    margin: 0 0 34px;
    color: #fff;
    font-size: clamp(52px, 4.6vw, 72px);
    line-height: 0.95;
    font-weight: 500;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
}

.gp-project-map__title span {
    color: var(--gp-project-yellow-soft);
}

.gp-project-map__controls {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(340px, 460px) minmax(280px, 348px) minmax(250px, 291px) minmax(210px, 255px);
    gap: 12px;
    justify-content: space-between;
    margin: 0 0 12px;
}

.gp-project-map__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    align-items: center;
    min-height: 64px;
    padding: 8px 8px 8px 24px;
    border-radius: 18px;
    background: var(--gp-project-cream);
}

.gp-project-map .gp-project-map__search input[type="search"] {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 0;
    color: var(--gp-project-text);
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    outline: none;
}

.gp-project-map .gp-project-map__search input[type="search"]:focus {
    border: 0;
    box-shadow: none;
}

.gp-project-map .gp-project-map__search input[type="search"]::placeholder {
    color: var(--gp-project-text);
    opacity: 0.8;
}

.gp-project-map__search button,
.gp-project-map__clear,
.gp-project-map__filter-button {
    border: 0;
    color: var(--gp-project-text);
    font: inherit;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
}

.gp-project-map__search button {
    align-self: stretch;
    border-radius: 12px;
    background: var(--gp-project-yellow);
    font-size: 18px;
    letter-spacing: 0;
}

.gp-project-map .gp-project-map__search button:focus,
.gp-project-map .gp-project-map__search button:active {
    border: 0;
    color: var(--gp-project-text);
    background: var(--gp-project-yellow);
    outline: none;
}

.gp-project-map .gp-project-map__search button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.gp-project-map__clear {
    min-height: 64px;
    border-radius: 18px;
    background: linear-gradient(180deg, #66dadd 0%, var(--gp-project-teal) 100%);
}

.gp-project-map__filter {
    position: relative;
}

.gp-project-map__filter-button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 64px;
    padding: 0 28px;
    border-radius: 18px;
    background: var(--gp-project-cream);
    text-align: left;
}

.gp-project-map__filter-button > span:first-child {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

.gp-project-map__filter-button > span:first-child::before,
.gp-project-map__filter-button > span:first-child::after {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: var(--gp-project-yellow);
    content: "";
    transform: translate(-50%, -50%);
}

.gp-project-map__filter-button > span:first-child::after {
    width: 4px;
    height: 28px;
}

.gp-project-map__filter-label {
    min-width: 0;
    flex: 1 1 auto;
}

.gp-project-map__filter-count {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--gp-project-yellow);
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.gp-project-map__filter.is-active .gp-project-map__filter-button {
    box-shadow: inset 0 0 0 3px var(--gp-project-yellow);
}

.gp-project-map__filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 10;
    width: 100%;
    max-height: min(460px, calc(100vh - 180px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

.gp-project-map__filter-menu button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 15px;
    border: 0;
    border-radius: 12px;
    color: var(--gp-project-text);
    background: transparent;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.gp-project-map__filter-menu button + button {
    margin-top: 6px;
}

.gp-project-map__filter-menu button::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 6px;
    box-shadow: inset 0 0 0 2px rgba(24, 50, 68, 0.24);
    color: var(--gp-project-text);
    font-size: 15px;
    line-height: 1;
    content: "";
}

.gp-project-map__filter-menu button[aria-checked="true"]::before {
    background: var(--gp-project-yellow);
    box-shadow: none;
    content: "";
}

.gp-project-map__filter-menu button[aria-checked="true"]::after {
    position: absolute;
    top: 50%;
    left: 26px;
    width: 12px;
    height: 7px;
    border-bottom: 4px solid var(--gp-project-text);
    border-left: 4px solid var(--gp-project-text);
    content: "";
    transform: translate(-50%, -62%) rotate(-45deg);
}

.gp-project-map__filter-menu button:hover,
.gp-project-map__filter-menu button[aria-checked="true"] {
    background: rgba(85, 198, 201, 0.16);
}

.gp-project-map__workspace {
    display: grid;
    grid-template-columns: minmax(0, var(--gp-project-list-width)) minmax(0, 1fr);
    gap: var(--gp-project-gap);
    height: var(--gp-project-content-height);
    min-height: 0;
}

.gp-project-map__list-panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: transparent;
}

.gp-project-map__list-panel::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 150px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(24, 53, 69, 0) 0%, var(--gp-project-ocean) 88%);
    content: "";
}

.gp-project-map__list {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    align-items: start;
    gap: 24px;
    height: 100%;
    max-height: var(--gp-project-content-height);
    overflow-y: auto;
    padding: 0 16px 36px 0;
    scrollbar-color: var(--gp-project-yellow) rgba(255, 255, 255, 0.45);
    scrollbar-width: auto;
}

.gp-project-map__list::-webkit-scrollbar {
    width: 28px;
}

.gp-project-map__list::-webkit-scrollbar-track {
    border-radius: 999px;
    border: 5px solid var(--gp-project-ocean);
    background: #777c7e;
    background-clip: padding-box;
}

.gp-project-map__list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 7px solid transparent;
    background: var(--gp-project-yellow);
    background-clip: content-box;
}

.gp-project-map__list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 20px;
    align-items: center;
    min-height: 172px;
    padding: 6px 6px 6px 14px;
    border-radius: 22px;
    border: 1px solid transparent;
    color: #fff;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gp-project-map__list-item.is-selected,
.gp-project-map__list-item:hover,
.gp-project-map__list-item:focus-visible {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.11);
}

.gp-project-map__list-copy {
    display: grid;
    gap: 13px;
    min-width: 0;
    padding-left: 0;
}

.gp-project-map__list-copy strong {
    color: #fff;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
}

.gp-project-map__list-copy > span:last-child {
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
}

.gp-project-map__list-item img {
    width: 124px;
    height: 158px;
    border-radius: 16px;
    object-fit: cover;
}

.gp-project-map__empty {
    margin: 18px;
    color: #fff;
    font-size: 18px;
}

.gp-project-map__map-panel {
    min-width: 0;
}

.gp-project-map__map {
    position: relative;
    overflow: hidden;
    min-height: var(--gp-project-content-height);
    height: 100%;
    border-radius: 22px;
    background: #e8f3f0;
}

.gp-project-map__leaflet {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: var(--gp-project-content-height);
    background: #e8f3f0;
}

.gp-project-map__marker {
    background: transparent;
    cursor: pointer;
}

.gp-project-map__marker.is-selected {
    z-index: 600 !important;
}

.gp-project-map__project-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    transition: outline-color 160ms ease, transform 160ms ease;
}

.gp-project-map__marker.is-selected .gp-project-map__project-icon {
    outline: 6px solid rgba(255, 255, 255, 0.75);
    outline-offset: 0;
    transform: scale(1.12);
}

.gp-project-map__project-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.gp-project-map__project-icon--energy {
    background: var(--gp-project-yellow);
}

.gp-project-map__project-icon--water {
    background: var(--gp-project-teal);
}

.gp-project-map__cluster {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.84);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.gp-project-map__cluster span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    color: var(--gp-project-text);
}

.gp-project-map__cluster--energy span {
    background: var(--gp-project-yellow);
}

.gp-project-map__cluster--water span {
    background: var(--gp-project-teal);
}

.gp-project-map__cluster--mixed span {
    background: linear-gradient(135deg, var(--gp-project-yellow) 0 48%, var(--gp-project-teal) 52% 100%);
}

.gp-project-map__cluster--medium,
.gp-project-map__cluster--large {
    width: 52px !important;
    height: 52px !important;
    margin-left: -26px !important;
    margin-top: -26px !important;
}

.gp-project-map__cluster--large {
    width: 58px !important;
    height: 58px !important;
    margin-left: -29px !important;
    margin-top: -29px !important;
    font-size: 17px;
}

.gp-project-map .leaflet-container {
    color: var(--gp-project-text);
    background: #e8f3f0;
    font-family: inherit;
}

.gp-project-map .leaflet-bottom.leaflet-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.gp-project-map .leaflet-control-zoom {
    order: 1;
    overflow: hidden;
    margin-bottom: 0;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(16, 43, 56, 0.18);
}

.gp-project-map .leaflet-control-zoom a {
    width: 40px;
    height: 40px;
    border: 0;
    color: var(--gp-project-text);
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    font-size: 24px;
    line-height: 40px;
}

.gp-project-map .leaflet-control-zoom a:hover,
.gp-project-map .leaflet-control-zoom a:focus {
    color: var(--gp-project-text);
    background: #fff;
}

.gp-project-map .leaflet-control-attribution {
    order: 2;
    margin: 0;
    max-width: calc(100vw - 40px);
    padding: 3px 7px;
    border-radius: 8px 0 0 0;
    color: rgba(24, 50, 68, 0.72);
    background: rgba(255, 255, 255, 0.76);
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.gp-project-map .leaflet-control-attribution a {
    color: rgba(24, 50, 68, 0.86);
}

.gp-project-map__detail {
    position: absolute;
    top: 16px;
    left: 18px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: min(var(--gp-project-detail-width), calc(100% - 36px));
    max-height: calc(100% - 32px);
    border-radius: 22px;
    color: var(--gp-project-text);
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 39, 50, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-28px);
    transition: opacity 240ms ease, transform 240ms ease;
    will-change: opacity, transform;
}

.gp-project-map__detail.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.gp-project-map__detail.is-hiding {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-28px);
}

.gp-project-map__detail-image {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: 306px;
    object-fit: cover;
}

.gp-project-map__detail-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 40px 44px 44px;
}

.gp-project-map__detail h3 {
    margin: 0 0 18px;
    color: var(--gp-project-text);
    font-size: 35px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: 0;
}

.gp-project-map__detail-location,
.gp-project-map__detail h4 {
    margin: 0 0 24px;
    color: var(--gp-project-text);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.gp-project-map__detail h4 {
    margin-bottom: 20px;
}

.gp-project-map__detail dl {
    display: grid;
    gap: 10px;
    margin: 0 0 28px;
}

.gp-project-map__detail dl div {
    display: flex;
    gap: 5px;
    font-size: 18px;
    line-height: 1.25;
}

.gp-project-map__detail dt {
    font-weight: 400;
}

.gp-project-map__detail dd {
    margin: 0;
    font-weight: 800;
}

.gp-project-map__detail p:last-child {
    margin: 0;
    color: var(--gp-project-text);
    font-size: 18px;
    line-height: 1.55;
}

.gp-project-map__detail-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--gp-project-ocean-deep);
    cursor: pointer;
}

.gp-project-map .gp-project-map__detail-close:focus,
.gp-project-map .gp-project-map__detail-close:active {
    position: absolute;
    top: 18px;
    right: 18px;
    bottom: auto;
    left: auto;
    border: 0;
    color: #fff;
    background: var(--gp-project-ocean-deep);
    outline: none;
}

.gp-project-map .gp-project-map__detail-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.gp-project-map__detail-close::before,
.gp-project-map__detail-close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: #fff;
    content: "";
}

.gp-project-map__detail-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.gp-project-map__detail-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 1180px) {
    .gp-project-map__controls,
    .gp-project-map__workspace {
        grid-template-columns: 1fr;
    }

    .gp-project-map__list-panel::after {
        display: none;
    }

    .gp-project-map__workspace {
        height: auto;
    }

    .gp-project-map__map-panel {
        order: -1;
    }

    .gp-project-map__map {
        width: 100%;
        min-height: 0;
        max-height: 500px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .gp-project-map__leaflet {
        min-height: 0;
    }

    .gp-project-map__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: calc((150px * 3) + (24px * 2) + 36px);
        overflow-y: auto;
        padding-right: 0;
    }

    .gp-project-map__list-item {
        grid-template-columns: 1fr 110px;
        min-height: 150px;
    }

    .gp-project-map__list-item img {
        width: 110px;
        height: 142px;
    }

    .gp-project-map__detail {
        max-height: calc(100% - 24px);
    }
}

@media (max-width: 768px) {
    .gp-project-map__detail {
        top: 12px;
        left: 12px;
        width: calc(100% - 24px);
    }
}

@media (max-width: 767px) {
    .gp-project-map__inner {
        width: min(100% - 30px, 620px);
        padding: 82px 0 64px;
    }

    .gp-project-map__title {
        margin-bottom: 28px;
        font-size: 42px;
    }

    .gp-project-map__search {
        grid-template-columns: minmax(0, 1fr) minmax(88px, 100px);
        gap: 8px;
        min-height: 0;
        padding: 8px 8px 8px 20px;
    }

    .gp-project-map .gp-project-map__search input[type="search"] {
        min-height: 0;
        padding: 0 6px;
        font-size: 17px;
    }

    .gp-project-map__search button,
    .gp-project-map__clear,
    .gp-project-map__filter-button {
        min-height: 56px;
        font-size: 17px;
    }

    .gp-project-map__filter-button {
        padding: 0 22px;
    }

    .gp-project-map__workspace {
        min-height: 0;
    }

    .gp-project-map__list {
        grid-template-columns: 1fr;
        max-height: calc((150px * 3) + (24px * 2) + (14px * 2));
        overflow-y: auto;
        padding: 14px;
    }

    .gp-project-map__detail-image {
        height: 210px;
    }

    .gp-project-map__detail-body {
        padding: 30px 28px 34px;
    }

    .gp-project-map__detail h3 {
        font-size: 30px;
    }
}
