.bim-map,
.bim-admin {
    --bim-ink: #174b40;
    --bim-accent: #227b63;
    --bim-soft: #e8f5ed;
    --bim-line: #cfdfd6;
    box-sizing: border-box;
    color: var(--bim-ink)
}

.bim-map [hidden],
.bim-admin [hidden] {
    display: none !important
}

.bim-map {
    width: 100%;
    max-width: 1440px;
    margin: 30px auto;
    font-family: inherit
}

.bim-map .bim-title {
    font-size: clamp(22px, 2.2vw, 40px);
    margin: 0 0 10px;
    color: var(--bim-ink);
    text-align: center;
}

.bim-map button,
.bim-admin .bim-pin {
    font: inherit;
    cursor: pointer
}

.bim-map button:focus-visible,
.bim-map a:focus-visible,
.bim-viewport:focus-visible,
.bim-admin .bim-pin:focus-visible {
    outline: 3px solid #b76014;
    outline-offset: 4px
}

.bim-filters {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-inline: 15px;
    scrollbar-width: none;
    margin-bottom: 10px;
}

.bim-filters button {
    flex: none;
    white-space: nowrap;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff;
    color: var(--bim-ink);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.bim-filters button[aria-pressed=true] {
    background: var(--bim-ink);
    border-color: var(--bim-ink);
    color: #fff
}

.bim-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 30%);
    gap: 1.5rem;
    align-items: start
}

.bim-map-area {
    position: relative;
    min-width: 0;
    position: sticky;
    max-width: calc(100% - 30px);
    margin-inline: auto;
    top: 24px
}

.bim-viewport {
    width: 100%;
    overflow: auto;
    border-radius: 20px;
    background: var(--bim-soft);
    overscroll-behavior: contain
}

.bim-stage {
    position: relative;
    width: 100%;
    isolation: isolate;
    line-height: 0;
    overflow: hidden;
}

.bim-stage>.bim-base {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    margin: 0;
    border: 0;
    user-select: none
}

.bim-pins {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.bim-pin {
    position: absolute;
    display: block;
    width: var(--bim-width);
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
    max-width: none;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    line-height: 1;
    pointer-events: auto;
    touch-action: manipulation;
    color: var(--bim-ink);
    z-index: 1
}

.bim-pin>img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    margin: 0;
    border: 0;
    pointer-events: none;
    filter: drop-shadow(0 2px 2px #174b4022)
}

.bim-pin-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--bim-ink);
    color: #fff;
    border: 2px solid #fff;
    font-size: clamp(8px, 1vw, 18px);
    box-shadow: 0 2px 6px #174b4044
}

.bim-number {
    position: absolute;
    left: var(--bim-nx);
    top: var(--bim-ny);
    transform: translate(-50%, -50%);
    min-width: 1.65em;
    height: 1.65em;
    padding: 0 .2em;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--bim-ink);
    border: 1px solid var(--bim-ink);
    border-radius: 50%;
    font: 700 clamp(9px, 1vw, 13px)/1 system-ui;
    pointer-events: none
}

.bim-pin.is-highlighted,
.bim-pin:focus-visible {
    z-index: 3;
    filter: drop-shadow(0 0 5px #d07c18)
}

.bim-pin.is-highlighted .bim-number {
    background: var(--bim-ink);
    color: #fff
}

.bim-logo {
    position: absolute;
    transform: translate(-50%, -50%);
    height: auto;
    pointer-events: none
}

.bim-sidebar {
    min-width: 0;
    max-height: 70vh;
    background: #fff;
    border: 1px solid var(--bim-line);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.bim-panel-heading {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bim-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: none
}

.bim-panel-heading h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--bim-ink)
}

.bim-list-content {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.2rem;
    scrollbar-width: thin
}

.bim-group+.bim-group {
    margin-top: 1.6rem
}

.bim-group h3 {
    font-size: 1.1rem;
    margin: 0 0 .75rem;
    color: var(--bim-ink)
}

.bim-group-description,
.bim-item p {
    font-size: .85rem;
    line-height: 1.6;
    white-space: pre-line;
    color: #4b625a;
    margin: .4rem 0 .7rem
}

.bim-item {
    padding: .65rem;
    border-radius: 10px;
    border-bottom: 1px solid var(--bim-line);
    overflow-wrap: anywhere
}

.bim-item.is-highlighted {
    background: var(--bim-soft)
}

.bim-item button {
    display: flex;
    gap: 7px;
    align-items: center;
    text-align: left;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bim-ink);
    font-weight: 600;
    width: 100%;
    font-size: 12px;
}

.bim-list-number {
    display: grid;
    place-items: center;
    flex: none;
    min-width: 26px;
    height: 26px;
    padding: 0 5px;
    border-radius: 50%;
    background: var(--bim-ink);
    color: #fff;
    font-size: .75rem
}

.bim-item a {
    font-size: .8rem;
    color: var(--bim-accent);
    text-decoration: underline;
    display: none;
}

.bim-item.is-highlighted a {
    display: block;
    padding: 0 35px;
}

.bim-map .bim-open,
.bim-map .bim-close {
    display: none;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #A4AFA9;
    width: 33px;
    height: 33px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0
}

.bim-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap
}

@media(max-width:1023px) and (min-width:769px) {
    .bim-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: .75rem
    }
}

@media(max-width:768px) {
    .bim-layout {
        display: block
    }

    .bim-map-area {
        position: relative;
        top: auto
    }

    .bim-map .bim-open {
        display: flex;
        position: absolute;
        right: 14px;
        top: 14px;
        z-index: 5;
    }

    /* Figma 527:82536: compact list and a separate close/scroll column. */
    .bim-map .bim-sidebar,
    .bim-map .bim-sidebar button {
        font-family: Quicksand, sans-serif;
    }

    .bim-map .bim-sidebar {
        display: none;
        position: absolute;
        box-sizing: border-box;
        width: min(298px, calc(100% - 50px));
        max-width: none;
        height: 360px;
        max-height: calc(100dvh - 48px);
        padding: 18px 24px;
        z-index: 10;
        box-shadow: 0 0 30px 0 #C4D9CE;
        border: 0;
        border-radius: 17px;
        background: #F3F7F5;
        top: 0;
        right: 25px;
    }

    .bim-map.is-open .bim-sidebar {
        display: flex
    }

    .bim-map .bim-close {
        display: flex;
        position: absolute;
        top: 18px;
        right: 24px;
        width: 19px;
        height: 19px;
        border-radius: 0;
        background: transparent;
        font-size: 0;
        z-index: 2;
    }

    .bim-map .bim-close::before,
    .bim-map .bim-close::after {
        content: "";
        position: absolute;
        width: 19.708px;
        height: 19.708px;
        background: url("close-line.svg") center / contain no-repeat;
        pointer-events: none;
    }

    .bim-map .bim-close::after {
        background-image: url("close-line-rotated.svg");
        transform: rotate(90deg);
    }

    .bim-map .bim-list-content {
        box-sizing: border-box;
        flex: 1 1 auto;
        min-height: 0;
        width: calc(100% - 7.5px);
        padding: 0 17.5px 0 0;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: auto;
        scrollbar-color: #1F4D49 #BCCECB;
    }

    .bim-map .bim-list-content::-webkit-scrollbar {
        width: 4px;
    }

    .bim-map .bim-list-content::-webkit-scrollbar-track {
        margin-top: 32px;
        background: linear-gradient(to right, transparent 1.5px, #BCCECB 1.5px, #BCCECB 2.5px, transparent 2.5px);
    }

    .bim-map .bim-list-content::-webkit-scrollbar-thumb {
        background: #1F4D49;
        border-radius: 26px;
    }

    .bim-map .bim-sidebar.has-more::after {
        content: "";
        position: absolute;
        left: 24px;
        right: 53px;
        bottom: 18px;
        height: 59.352px;
        background: linear-gradient(180deg, #f3f7f500, #F3F7F5);
        pointer-events: none;
    }

    .bim-map .bim-group {
        padding: 0 0 12px;
        border-bottom: .761px solid #C4CBC7;
    }

    .bim-map .bim-group+.bim-group {
        margin-top: 8px;
    }

    .bim-map .bim-group h3 {
        margin: 0 0 6px;
        color: #0D2B28;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.5;
    }

    .bim-map .bim-item {
        padding: 0;
        border: 0;
        border-radius: 4px;
    }

    .bim-map .bim-item.is-highlighted {
        padding: 4px;
    }

    .bim-item a {
        font-size: 10px;
        text-decoration: none;
    }

    .bim-item.is-highlighted a{
        padding: 0 27px;
    }

    .bim-map .bim-item+.bim-item {
        margin-top: 6px;
    }

    .bim-map .bim-item button {
        align-items: flex-start;
        gap: 7.5px;
        color: #202F28;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.5;
    }

    .bim-map .bim-list-number {
        box-sizing: border-box;
        width: 18px;
        min-width: 18px;
        height: 18px;
        padding: 0;
        border-radius: 30px;
        background: #D0E2D9;
        color: #385346;
        font-size: 10.653px;
        font-weight: 500;
        line-height: 1.44;
    }

    .bim-map .bim-group-description,
    .bim-map .bim-item p {
        margin: 0 0 6px;
        color: #969696;
        font-size: 10px;
        font-weight: 500;
        line-height: 1.4;
    }

    .bim-map .bim-item p {
        margin: 3px 0 0;
    }

    .bim-map .bim-pin {
        width: calc(var(--bim-width) * var(--bim-scale))
    }

    .bim-map[data-mobile=pan] .bim-stage {
        width: calc(100% * var(--bim-mobile-zoom))
    }

    .bim-map .bim-viewport {
        border-radius: 10px
    }

    .bim-map.is-open .bim-open {
        visibility: hidden
    }
}

/* Desktop reference: Figma 506:41802. Content and artwork remain managed in WordPress. */
@media(min-width:769px) {
    .bim-map {
        --bim-ink: #0d2b28;
        --bim-accent: #385346;
        --bim-soft: #d0e2d9;
        --bim-line: #c4cbc7;
        --bim-surface: #f3f7f5;
        width: calc(100% - 50px);
        max-width: 1310px;
        margin: 0 auto;
        padding: 90px 0;
    }

    .bim-map .bim-title {
        max-width: 900px;
        margin: 0 auto 10px;
        text-align: center;
        letter-spacing: normal
    }

    .bim-map .bim-filters {
        justify-content: center;
        gap: 8px;
        margin: 0 0 30px;
        padding: 0;
        overflow: visible;
        flex-wrap: wrap
    }

    .bim-map .bim-filters button {
        height: 37px;
        min-height: 37px;
        padding: 0 15px;
        border: 1px solid #fff;
        border-radius: 8px;
        background: #fff;
        color: var(--bim-ink);
        font-size: 12px;
        line-height: 1;
        font-weight: 500;
        box-shadow: none;
        border: 1px solid transparent;
    }

    .bim-map .bim-filters button:hover {
        border-radius: 9.081px;
        border-color: #B4BFBA;
        background: #FFF;
    }

    .bim-map .bim-filters button[aria-pressed=true] {
        border-color: var(--bim-ink);
        background: var(--bim-ink);
        color: #d9d9d9;
        font-weight: 700
    }

    .bim-map .bim-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 20px
    }

    .bim-map .bim-viewport {
        border-radius: 30px;
        overflow: hidden;
        background: #dff6ea
    }

    .bim-map .bim-sidebar {
        position: relative;
        width: calc(100% + 34px);
        height: var(--bim-stage-height, 600px);
        max-height: none;
        border: 0;
        border-radius: 0;
        background: transparent;
        overflow: hidden
    }

    .bim-map .bim-panel-heading {
        display: none
    }

    .bim-map .bim-list-content {
        height: 100%;
        padding: 40px 30px 0 0;
        scrollbar-width: auto;
    }

    .bim-map .bim-list-content::-webkit-scrollbar {
        width: 4px
    }

    .bim-map .bim-list-content::-webkit-scrollbar-track {
        background: linear-gradient(to right,
                transparent 1.5px,
                #BCCECB 1.5px,
                #BCCECB 2.5px,
                transparent 1.5px);
    }

    .bim-map .bim-list-content::-webkit-scrollbar-thumb {
        background: #1F4D49;
        border-radius: 10px;
    }

    .bim-map .bim-sidebar.has-more::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 34px;
        height: 78px;
        background: linear-gradient(180deg, transparent, var(--bim-surface));
        pointer-events: none
    }

    .bim-map .bim-group {
        padding: 0 0 20px;
        border-bottom: 1px solid var(--bim-line)
    }

    .bim-map .bim-group+.bim-group {
        margin-top: 16px
    }

    .bim-map .bim-group h3 {
        margin: 0 0 6px;
        color: var(--bim-ink);
        font-size: clamp(14px, 1.2vw, 22px);
        font-weight: 700;
        line-height: 1.5;
        letter-spacing: normal
    }

    .bim-map .bim-group-description,
    .bim-map .bim-item p {
        margin: 0 0 8px;
        color: #969696;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
        text-wrap: balance;
    }

    .bim-map .bim-item {
        padding: 0;
        border: 0;
        border-radius: 4px;
        transition: all .2s;
    }

    .bim-map .bim-item+.bim-item {
        margin-top: 8px
    }

    .bim-map .bim-item button {
        align-items: center;
        gap: 10px;
        min-height: 24px;
        margin: 0;
        padding: 0;
        color: #202f28;
        font-size: clamp(12px, 1.2vw, 16px);
        font-weight: 600;
        line-height: 1.5
    }

    .bim-map .bim-item p {
        margin: 6px 0 0
    }

    .bim-map .bim-list-number {
        width: 24px;
        min-width: 24px;
        height: 24px;
        padding: 0;
        border-radius: 40px;
        background: #d0e2d9;
        color: #385346;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.44
    }

    .bim-map .bim-number {
        width: 24px;
        min-width: 24px;
        height: 24px;
        padding: 0;
        border: 0;
        border-radius: 40px;
        background: #fff;
        color: #385346;
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.44
    }

    .bim-map .bim-pin>img {
        filter: none
    }

    .bim-map .bim-pin.is-highlighted {
        filter: drop-shadow(0 0 5px #38534688)
    }

    .bim-map .bim-pin.is-highlighted .bim-number {
        background: var(--bim-ink);
        color: #fff
    }

    .bim-map .bim-item.is-highlighted {
        background: #d0e2d966;
        padding: .65rem;
    }
}

@media(min-width:769px) and (max-width:1100px) {
    .bim-map {
        width: calc(100% - 48px);
        padding: 60px 0
    }

    .bim-map .bim-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 24px
    }

    .bim-map .bim-sidebar {
        width: 100%
    }

    .bim-map .bim-list-content {
        padding: 20px 14px 0 0
    }

    .bim-map .bim-sidebar.has-more::after {
        right: 18px
    }
}
/* Chromium/WebKit: let the gradient track and thumb styles take precedence. */
@supports selector(::-webkit-scrollbar) {
    @media (max-width: 768px) {
        .bim-map .bim-list-content {
            scrollbar-color: auto;
        }
    }
}
@media (max-width: 768px) {
    /* Keep the close icon above an opaque cover for the start of the scrollbar. */
    .bim-map .bim-close {
        box-sizing: border-box;
        height: 32px;
        padding-bottom: 13px;
        background: #F3F7F5;
    }

    .bim-map .bim-close::before,
    .bim-map .bim-close::after {
        top: 0;
        left: 0;
    }
}