/* ========================================================
   FRONTEND MAP STYLES
   Matches your fw-accordion BEM naming conventions
   ======================================================== */

.fw-map {
    position: relative;
    overflow: clip;
    max-width: none !important;
    width: 100%;
}

.fw-map > * {
    height: 100%;
}

@media (min-width: 781px) {
    .fw-map .wp-block-columns {
        max-height: 50dvh;
    }
}

.fw-map .wp-block-column {
    overflow: scroll;
}

.fw-list-container {
    overflow-y: scroll;
    min-height: 100%;
    max-height: 100%;
}

@media (max-width: 781px) {
    .fw-map .fw-map-outer-wrapper {
        aspect-ratio: 1/1;
        height: 100%;
        width: 100%;
    }
}

.fw-map-container {
    width: 100%;
    height: 100%;
    min-height: inherit;
    overflow: hidden;
}

/* Optional: allow full-width blocks to stretch */
.fw-map.alignfull .fw-map-container {
    border-radius: 0;
}

.gm-style-iw-chr {
    display: none !important;
}

.fw-map-infowindow {
    max-width: 240px;
}

.fw-map-infowindow h1,
.fw-map-infowindow h2,
.fw-map-infowindow h3,
.fw-map-infowindow h4,
.fw-map-infowindow h5,
.fw-map-infowindow h6 {
    text-wrap: unset;
}

:root .fw-list-container :where(.is-layout-constrained) > *,
.fw-map-infowindow > :not(:last-child) {
    margin-block-start: 5px;
    margin-block-end: 5px;
}
