/* Parent overlays stay above both Leaflet layers and the map iframe. */
.building-page #map {
    position: relative;
}
[data-map-search] {
    position: absolute;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
    direction: ltr;
}
.rtl [data-map-search] {
    direction: rtl;
}
[data-map-search] [hidden] {
    display: none !important;
}
.search-map-status,
.search-map-card-panel {
    position: absolute;
    background: #fff;
    color: #333;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    pointer-events: auto;
    padding: 10px;
    font-size: 14px;
}
.search-map-status {
    inset-block-start: 12px;
    inset-inline: 12px;
    margin-inline: auto;
    width: max-content;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    text-align: center;
}
@media screen and (min-width: 831px) {
    body.map-view-enabled:not(.is-map-expanded) .search-map-status {
        inset-block-start: auto;
        inset-block-end: 12px;
    }
}
.search-map-card-panel {
    inset-block-end: 72px;
    inset-inline-start: 12px;
    width: min(320px, calc(100% - 24px));
    max-height: calc(100% - 100px);
    overflow: auto;
    padding-block-start: 32px;
}
[data-map-search] button {
    height: auto;
    line-height: 1.4;
    padding: 4px 10px;
    font-size: 13px;
}
[data-map-close] {
    position: absolute;
    inset-block-start: 4px;
    inset-inline-end: 4px;
}
[data-map-cards] a {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 0;
    margin-block-end: 10px;
}
[data-map-cards] img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 4px;
}
[data-map-cards] span,
[data-map-cards] strong {
    display: block;
    margin-block-start: 4px;
}
.search-map-icon {
    width: auto;
    height: auto;
    background: transparent;
    border: 0;
}
.search-map-icon button {
    height: auto;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}
#map .search-map-object,
#map .search-map-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1976bd;
    background: #fff;
    color: #164969;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
#map .search-map-cluster {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6ecc39;
    border-color: #b5e28c;
    color: #fff;
}
#map .search-map-cluster.is-medium {
    background: #f0c20c;
    border-color: #f1d357;
}
#map .search-map-cluster.is-large {
    background: #f18017;
    border-color: #fd9c73;
}
#map .search-map-object {
    transform: translate(-50%, -50%);
}
#map .search-map-object.is-highlighted,
#map .search-map-highlight {
    background: #ffe783;
    border-color: #b07800;
}
