/* ===================================================================
   Side gutters on tablet and mobile (<= 1023px): every page, header and
   footer keeps content exactly 20px from the screen's left and right edge.

   How: no container adds side padding/margin of its own, except the
   container that directly holds the content (widgets, or a bordered box
   such as the listing details box), which gets --gutter-m on both sides.
   Containers inside that one add nothing, so nesting never stacks up.
   Full-width backgrounds (hero, bands, footer) still reach the edges,
   because they sit on containers that hold no widgets directly.
   Cards (loop items) keep their own inner padding; the grid that holds
   them sits on the 20px line like any other widget.
   =================================================================== */
@media (max-width: 1023px) {
    :root {
        --gutter-m: 20px;
        --hero-bottom-m: 32px;   /* banner text above the hero's bottom edge (tablet) */
        --hero-slider-m: 560px;  /* home slider height (tablet) */
        --sec-space: 3rem;       /* section spacing (§7, §8) */
    }

    /* 1. no side spacing from layout containers or their boxed inner wrapper */
    .e-con:not(.e-loop-item, .e-loop-item .e-con) {
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .e-con:not(.e-loop-item, .e-loop-item .e-con) > .e-con-inner {
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 2. the container that holds the content: 20px each side (only the outermost one) */
    .e-con:not(.e-loop-item, .e-loop-item .e-con, [data-elementor-type="header"] > .e-parent, [class*="bm-hero-slider"]):has(> .elementor-widget, > .e-con-inner > .elementor-widget, > [class*="bm-details-box"], > .e-con-inner > [class*="bm-details-box"], > [class*="bm-yodel-box"], > .e-con-inner > [class*="bm-yodel-box"]):not(.e-con:not([data-elementor-type="header"] > .e-parent, [class*="bm-hero-slider"]):has(> .elementor-widget, > .e-con-inner > .elementor-widget) .e-con) {
        padding-left: var(--gutter-m) !important;
        padding-right: var(--gutter-m) !important;
    }

    /* header: its outer container only holds a zero-height script (HTML widget) next to the blue bar,
       so it is skipped above; the blue bar stays full width and the logo column gets the 20px.
       The fixed mobile menu button sits on the same line. */
    [data-elementor-type="header"] .bm-mobile-nav {
        right: var(--gutter-m) !important;
        left: auto !important;
    }

    /* 3. bordered / white boxes keep the same 20px inside */
    .e-con[class*="bm-details-box"],
    .e-con[class*="bm-yodel-box"] {
        padding-left: var(--gutter-m) !important;
        padding-right: var(--gutter-m) !important;
    }

    /* 4. widgets never add their own side offset */
    .elementor-widget:not(.e-loop-item *) {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .elementor-widget:not(.e-loop-item *) > .elementor-widget-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* footer CTA row (guide | savings + sign-up): its two columns are % widths that leave
       ~20px empty on the right at tablet-landscape; let them share the full row */
    [data-elementor-type="footer"] [data-id="f23cf79"] > .e-con {
        flex: 1 1 0 !important;
        width: auto !important;
    }

    /* home hero pause/play button sits on the same 20px line */
    .bm-html-3b237 {
        right: var(--gutter-m) !important;
    }

    /* 6. page banner: breadcrumb + title sit at the bottom of the hero on every page, same distance.
       Listing pages (.bm-listing-hero, 600px on desktop) get the page banner's height here,
       like the HTML site (.hero-slide 40vh tablet / 30vh mobile). It is a minimum, not a fixed
       height: long listing names (3-4 lines) make the banner taller instead of running off its top. */
    .bm-listing-hero:is(#bm-sec, .bm-listing-hero) {
        height: auto !important;
        min-height: 40vh !important;
        justify-content: flex-end !important;
    }
    .bm-listing-hero > [class*="bm-hero-content"]:is(#bm-sec, [class*="bm-hero-content"]) {
        position: relative !important;
        padding-top: var(--sp32, 2rem) !important;
    }
    :is(.bm-page-hero, .bm-listing-hero) > [class*="bm-hero-content"] {
        position: absolute !important;
        inset: auto 0 0 0 !important;
        height: auto !important;
        padding-top: 0 !important;
        padding-bottom: var(--hero-bottom-m, 28px) !important;
    }
    :is(.bm-page-hero, .bm-listing-hero) > [class*="bm-hero-content"] > .e-con-inner {
        justify-content: flex-end !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    :is(.bm-page-hero, .bm-listing-hero) h1.elementor-heading-title {
        padding-top: var(--sp8) !important;
    }

    /* featured listing cards are 95% wide on desktop (hover grows them to 98%): full width here */
    .bm-featured-card,
    .bm-featured-card:hover {
        width: 100% !important;
        max-width: none !important;
    }

    /* home hero slider: slides run edge to edge (the pause button is a widget in the same
       container, so it is skipped above); slide text keeps the 20px; lower height on tablet/mobile */
    .bm-hero-slides .swiper-slide-inner {
        padding-left: var(--gutter-m) !important;
        padding-right: var(--gutter-m) !important;
    }
    .bm-hero-slides,
    .bm-hero-slides .elementor-slides-wrapper,
    .bm-hero-slides .swiper-wrapper,
    .bm-hero-slides .swiper-slide {
        height: var(--hero-slider-m, 560px) !important;
    }

    /* header: logo, search and menu button on one line. At the top of the page the two buttons
       ride with the header (centred on the logo); once the condensed bar shows (html.bm-scrolled,
       theme.js) they stay fixed, centred in that 72px bar. */
    [data-elementor-type="header"] .bm-mobile-nav.bm-mobile-nav,
    [data-elementor-type="header"] .bm-mobile-search-btn {
        position: absolute !important;
        top: 38px !important;
        z-index: 800;
    }
    html.bm-scrolled [data-elementor-type="header"] .bm-mobile-nav.bm-mobile-nav,
    html.bm-scrolled [data-elementor-type="header"] .bm-mobile-search-btn {
        position: fixed !important;
        top: 21px !important;
    }
    [data-elementor-type="header"] .bm-mobile-search-btn {
        right: calc(var(--gutter-m) + 30px + 18px) !important;
        width: auto;
    }
    .bm-mobile-search-btn a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        color: var(--white);
    }
    /* white on the blue bar on hover too (the global link hover is teal) */
    .bm-mobile-search-btn a:hover {
        color: var(--white);
    }
    /* open menu: links underline on hover / keyboard focus, as on live */
    [data-elementor-type="header"] .bm-mobile-nav .elementor-nav-menu--dropdown a.elementor-item:hover,
    [data-elementor-type="header"] .bm-mobile-nav .elementor-nav-menu--dropdown a.elementor-item:focus-visible {
        text-decoration: underline;
        text-underline-offset: .2em;
        text-decoration-thickness: 2px;
    }
    .bm-mobile-search-btn a:focus-visible {
        outline: 3px solid var(--yellow-400);
        outline-offset: 3px;
        border-radius: 3px;
    }
    .bm-mobile-search-btn svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }
    /* search lives next to the menu button now, not in the list */
    [data-elementor-type="header"] .bm-mobile-nav .bm-mobile-search {
        display: none !important;
    }
    /* the open menu starts under the visible header (--bm-nav-top, theme.js) and scrolls
       inside itself when the screen is short */
    [data-elementor-type="header"] .bm-mobile-nav.bm-mobile-nav .elementor-nav-menu--dropdown.elementor-nav-menu--dropdown {
        top: var(--bm-nav-top, 100px) !important;
    }
    [data-elementor-type="header"] .bm-mobile-nav.bm-mobile-nav .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown.elementor-nav-menu--dropdown {
        max-height: calc(100vh - var(--bm-nav-top, 100px)) !important;
        max-height: calc(100dvh - var(--bm-nav-top, 100px)) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }

    /* footer call-to-action (guide | savings | sign-up): even 40px between the three groups,
       guide cover at a sensible size, icons never overlap */
    [data-elementor-type="footer"] [data-id="888a200"],
    [data-elementor-type="footer"] [data-id="1c1f418"] {
        margin-top: 2.5rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    [data-elementor-type="footer"] [data-id="1c93e12"],
    [data-elementor-type="footer"] [data-id="af8d644"] {
        flex: 1 1 0 !important;    /* text takes the rest of the row next to the 96px icon */
        width: auto !important;
        padding-top: 0 !important;
    }
    [data-elementor-type="footer"] [data-id="f5b4ff3"],
    [data-elementor-type="footer"] [data-id="45c26a4"] {
        padding-bottom: 0 !important;
    }
    [data-elementor-type="footer"] [data-id="4a2e953"],
    [data-elementor-type="footer"] [data-id="814d299"] {
        flex: 0 0 96px !important;
        width: 96px !important;
    }
    [data-elementor-type="footer"] [data-id="3f534d3"] img,
    [data-elementor-type="footer"] [data-id="64f0048"] img {
        width: auto !important;
        max-width: 80px !important;
        height: auto !important;
    }

    /* footer logo: centred at 267px, as on live (QA #34, 2026-10-16; it had been moved to the
       left line of Contact / Hours at 200px) */
    [data-elementor-type="footer"] [data-id="1b2c43c"] {
        text-align: center !important;
        justify-content: center !important;
    }
    [data-elementor-type="footer"] [data-id="1b2c43c"] img {
        width: 267px !important;
        max-width: 100% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* condensed (scrolled) bar: small logo on the 20px left line, not centred */
    .bm-scroll-bar .elementor-nav-menu.elementor-nav-menu {
        margin-left: 0 !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        justify-content: flex-start !important;
    }
    .bm-scroll-bar .bm-scroll-logo .elementor-item.elementor-item {
        margin-left: 0 !important;
    }
    /* open menu covers the whole screen under the header; the page behind does not scroll */
    [data-elementor-type="header"] .bm-mobile-nav.bm-mobile-nav .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown.elementor-nav-menu--dropdown {
        height: calc(100vh - var(--bm-nav-top, 100px)) !important;
        height: calc(100dvh - var(--bm-nav-top, 100px)) !important;
    }
    html:has(.bm-mobile-nav .elementor-menu-toggle.elementor-active) {
        overflow: hidden;
    }

    /* 5. nothing may push the page wider than the screen */
    body {
        overflow-x: clip;   /* last guard (decorative shapes, fixed-size images); clip, not hidden, so sticky still works */
    }
    .elementor-heading-title {
        overflow-wrap: break-word;   /* one long word in a title must wrap, not widen the page */
    }
    .elementor-widget-image img {
        max-width: 100% !important;   /* desktop overlap images (width > 100%) stay inside the 20px gutters */
        vertical-align: top;          /* no inline baseline gap (8px) under images */
    }
    .elementor-widget-text-editor a {
        overflow-wrap: anywhere;   /* long URLs in content */
    }
    .elementor-widget-text-editor p:has(> a[href^="#nameJump"]) {
        overflow-wrap: anywhere;   /* membership directory A-Z row (links joined by &nbsp;) */
    }
    .bm-wysiwyg .threeColumns ul {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 639px) {
    :root {
        --hero-bottom-m: 24px;   /* mobile */
        --hero-slider-m: 480px;
    }
    .bm-listing-hero:is(#bm-sec, .bm-listing-hero) {
        min-height: 30vh !important;
    }
    /* footer: guide cover above its text, not under it */
    [data-elementor-type="footer"] [data-id="f5b4ff3"] {
        height: auto !important;
        padding-bottom: 1.5rem !important;
    }
    [data-elementor-type="footer"] [data-id="dc81abd"],
    [data-elementor-type="footer"] [data-id="dc81abd"] img {
        width: 220px !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .bm-wysiwyg .threeColumns ul {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   Section spacing on every screen size (moved out of the tablet/mobile block
   2026-10-08, bugs.pdf: one source of vertical space, no margin + padding
   doubling). --sec-space: 4rem on desktop (the site's section gap), 3rem on
   tablet/mobile (set in the block above).
   =================================================================== */
@media (min-width: 1024px) {
    :root {
        --sec-space: 4rem;
    }
}

/* 7. space between the banner and the first content: always --sec-space (3rem).
   The block after the hero gives the 32px; everything on its first-child line
   (body > row > sidebar/first section > heading ...) adds no top space of its own.
   Only layout boxes and widgets are touched, never what is inside a widget (buttons, forms). */
:is(.bm-page-hero, [class*="bm-hero-slider"]) + .e-con {
    padding-top: var(--sec-space) !important;
    margin-top: 0 !important;
}
:is(.bm-page-hero, [class*="bm-hero-slider"]) + .e-con > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, :is(.bm-page-hero, [class*="bm-hero-slider"]) + .e-con > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, :is(.bm-page-hero, [class*="bm-hero-slider"]) + .e-con > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, :is(.bm-page-hero, [class*="bm-hero-slider"]) + .e-con > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, :is(.bm-page-hero, [class*="bm-hero-slider"]) + .e-con > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, :is(.bm-page-hero, [class*="bm-hero-slider"]) + .e-con > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, :is(.bm-page-hero, [class*="bm-hero-slider"]) + .e-con > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 8. section spacing (theme.js tagSections): sections never add their own top/bottom space;
      the box (.bm-sec-box) gets --sec-space, and nothing on the first/last-child line inside it
      adds more. :is(#bm-sec, …) lifts specificity above the chain rules below and in §7. */
.bm-sec:is(#bm-sec, .bm-sec) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, .bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, .bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, .bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, .bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, .bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, .bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, .bm-sec--bg > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child, .bm-sec--bg > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child, .bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child, .bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child, .bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child, .bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child, .bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child, .bm-sec-box > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child, .bm-sec--bg > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child, .bm-sec--bg > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child > :is(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .elementor):last-child {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
/* plain sections: 3rem above (sections in a row are 3rem apart) */
.bm-sec--plain .bm-sec-box:is(#bm-sec, .bm-sec-box),
.bm-sec--plain.bm-sec-box:is(#bm-sec, .bm-sec-box) {
    padding-top: var(--sec-space) !important;
}
/* first section of a page body: the banner/body already gave 3rem */
.bm-sec--plain.bm-sec--first.bm-sec--in-body.bm-sec-box:is(#bm-sec, .bm-sec-box),
[class*="bm-hero-slider"] + .bm-sec--plain.bm-sec-box:is(#bm-sec, .bm-sec-box) {
    padding-top: 0 !important;
}
/* last section of a page without a template body (home): 3rem before the footer */
.bm-sec--plain.bm-sec--last:not(.bm-sec--in-body).bm-sec-box:is(#bm-sec, .bm-sec-box) {
    padding-bottom: var(--sec-space) !important;
}
/* sections with a background: 3rem inside, top and bottom; 3rem of white after a plain section */
.bm-sec--bg .bm-sec-box:is(#bm-sec, .bm-sec-box),
.bm-sec--bg.bm-sec-box:is(#bm-sec, .bm-sec-box) {
    padding-top: var(--sec-space) !important;
    padding-bottom: var(--sec-space) !important;
}
.bm-sec--bg.bm-sec--after-plain:is(#bm-sec, .bm-sec) {
    margin-top: var(--sec-space) !important;
}
/* content.css trims the first/last margin inside a text block via .elementor-widget-container,
   which Elementor 4's lighter markup no longer prints; same trim for the new markup */
.bm-sec .elementor-widget-text-editor > :first-child,
.bm-sec .elementor-widget-text-editor > .elementor-widget-container > :first-child {
    margin-top: 0 !important;
}
.bm-sec .elementor-widget-text-editor > :last-child,
.bm-sec .elementor-widget-text-editor > .elementor-widget-container > :last-child {
    margin-bottom: 0 !important;
}

/* inside a section, blocks are spaced by the container gap only: the boxed-width wrapper
   and menu widgets add no top/bottom padding of their own (they doubled it to 64-80px) */
.bm-sec .e-con-inner,
.bm-sec .elementor-widget-nav-menu {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.bm-sec [data-id="21a3bb4"] {
    margin-top: 2rem !important;      /* Things to Do: intro text -> category tiles (was 4rem) */
}
.bm-sec .elementor-widget-nav-menu:not(:last-child) {
    margin-bottom: 2rem !important;   /* same 2rem the headings/buttons use between blocks */
}

/* home: Yodel events box keeps 20px inside (layout rule 1 would zero it) */
.bm-yodel-box-b8f53:is(#bm-sec, .bm-yodel-box-b8f53) {
    padding-left: var(--gutter-m) !important;
    padding-right: var(--gutter-m) !important;
}

/* the page body (block after the banner) closes with the same 3rem */
:is(.bm-page-hero, [class*="bm-hero-slider"]) + .e-con:not(.bm-sec) {
    padding-bottom: var(--sec-space) !important;
}


/* sidebar pages, every width: the content column adds no bottom space of its own (it had 64px,
   on top of the body's --sec-space, so the next section was ~120px away instead of 48/64px) */
[class*="bm-sidebar"] ~ .e-con {
    padding-bottom: 0 !important;
}

/* desktop sidebar pages: the content column starts level with the sidebar. The body gives the
   space under the banner; the column next to the sidebar adds none of its own (it had
   padding-top: var(--space-section), which pushed the content 64px below the side menu). */
@media (min-width: 1024px) {
    [class*="bm-sidebar"] ~ .e-con {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* when the first section of a page body has a background band (category pages: Featured
   Attractions), the band starts right under the banner - no white strip above it; the band's
   own 3rem/4rem inside spacing is the space */
:is(.bm-page-hero, [class*="bm-hero-slider"]) + .e-con:has(.bm-sec--first.bm-sec--bg.bm-sec--in-body):not(:has([class*="bm-sidebar"])):is(#bm-sec, .e-con) {
    padding-top: 0 !important;
}

/* tablet/mobile: the grey listings band runs edge to edge; its cards stay on the 20px line */
@media (max-width: 1023px) {
    .bm-listings-band:is(#bm-sec, .bm-listings-band) {
        width: calc(100% + 2 * var(--gutter-m)) !important;
        max-width: none !important;
        margin-left: calc(-1 * var(--gutter-m)) !important;
        margin-right: calc(-1 * var(--gutter-m)) !important;
        padding-left: var(--gutter-m) !important;
        padding-right: var(--gutter-m) !important;
    }
}

/* category pages: the filter tabs belong to the listings below them - 1.5rem to the grey band, not a full section gap */
.bm-filter.bm-sec + .bm-listings-band.bm-sec--bg:is(#bm-sec, .bm-sec) {
    margin-top: 1.5rem !important;
}

/* small desktop (1024–1199px): the boxed width (1120px) is wider than the screen, so full-width
   pages (art trail, events, category pages …) had text on the screen edge. Their page sections
   keep at least 20px each side; sections with more padding of their own keep it. */
@media (min-width: 1024px) and (max-width: 1199px) {
    .bm-main-bg > .elementor-widget-theme-post-content [data-elementor-type="wp-page"] > .e-con {
        padding-left: max(20px, var(--padding-left, 0px)) !important;
        padding-right: max(20px, var(--padding-right, 0px)) !important;
    }
}

/* footer CTA (848–1023px): the yellow line over savings / sign-up keeps 48px below the guide row, as on live */
@media (min-width: 848px) and (max-width: 1023px) {
    [data-elementor-type="footer"] [data-id="f23cf79"] {
        margin-top: 3rem !important;
    }
}

/* phones: the hero slider button keeps its arrow on the label's line */
@media (max-width: 479px) {
    .bm-slides-a379a .elementor-slide-button {
        padding-left: var(--sp16) !important;
        padding-right: var(--sp16) !important;
        white-space: nowrap;
    }
}

/* home "Boundless Opportunities" category menu (500px on tablet): centred with align-self,
   because rule 4 above zeroes the widget's auto side margins */
@media (max-width: 1023px) {
    .bm-nav-menu-926b8.elementor-widget {
        align-self: center !important;
    }
}
