/* Ordinary adjacent modules share one map, without a composition wrapper. */
.home .cms-testimonials-standalone:has(+ .cms-form-section),
.home .cms-testimonials-standalone:has(+ .cms-contact-module > .contact-container){position:relative;z-index:1}
.home .cms-testimonials-standalone + :is(.cms-form-section,.cms-contact-module:has(> .contact-container)){position:relative;isolation:isolate;background:none}
.home .cms-testimonials-standalone + :is(.cms-form-section,.cms-contact-module:has(> .contact-container))::before{content:"";position:absolute;inset:-360px 0 0;background:url('/themes/landrise/images/brunswick-map-blue.jpg') left center/cover no-repeat;z-index:-1;pointer-events:none}

/* Legacy contact panels wrap their map section; keep that surface transparent too. */
.home .cms-testimonials-standalone + .cms-contact-module > .contact-container{background:none!important;margin-top:0!important}
@media (min-width:576px){.home .cms-testimonials-standalone + :is(.cms-form-section,.cms-contact-module:has(> .contact-container))::before{top:calc(-1 * var(--lr-panel-half-height, 280px))}}

/* Elsewhere, neighboring sections own their backgrounds and meet behind the box.
   Reserved padding balances the negative margins without moving their content. */
[data-lr-panel-bridge][style]{position:relative;z-index:1;background:transparent!important;margin-top:calc(-1 * var(--lr-panel-upper,0px));margin-bottom:calc(-1 * var(--lr-panel-lower,0px))}
.lr-floating-before[style]{padding-bottom:calc(max(24px,var(--lr-panel-base-bottom,0px)) + var(--lr-panel-upper,0px))!important}
.lr-floating-after[style]{margin-top:0!important;padding-top:calc(max(24px,var(--lr-panel-base-top,0px)) + var(--lr-panel-lower,0px))!important}

/* Normalize only floating hosts participating in the measured composition. */
[data-lr-floating-box]{position:relative!important;left:auto!important;transform:none!important;margin-inline:auto}
.lr-floating-reservation{padding-bottom:0!important}
[data-lr-panel-bridge].lr-floating-neighbor-gap{padding-top:40px}
