/* BREMLS Header 1.0.1 – RealHomes 4.4.x (modern design, header variation one) */
:root{--bh-accent:#ff7a1a;--bh-accent-d:#e8650a;--bh-blue:#0a6fb5;--bh-sky:#1cb2ff;--bh-ink:#1a2a4a;--bh-h:72px}
/* 415px overflow at 390: slick carousel track (rhea featured properties) pokes out. clip keeps sticky/fixed working */
html,body{overflow-x:clip;max-width:100%}
.slick-list,.rhea-featured-properties-carousel,.elementor-section,.e-con{overflow-x:clip}

/* ---------- Fixed white header (both RealHomes headers) ---------- */
.rh_mod_sticky_header{display:none!important} /* theme's separate scroll clone is replaced */
body .rh_temp_header_large_screens,body .rh_temp_header_responsive_view{position:fixed!important;top:0;left:0;right:0;z-index:9990;background:#fff!important;box-shadow:0 2px 12px rgba(0,0,0,.12)}
body.admin-bar .rh_temp_header_large_screens,body.admin-bar .rh_temp_header_responsive_view{top:32px}
@media (max-width:782px){body.admin-bar .rh_temp_header_large_screens,body.admin-bar .rh_temp_header_responsive_view{top:46px}}
body.bremls-header-on{padding-top:var(--bh-h)!important}

/* ---------- Desktop ---------- */
.rh_temp_header_large_screens .rh_header__wrap{display:flex;align-items:center;gap:24px;min-height:72px;padding:6px 24px!important;max-width:1280px;margin:0 auto;position:static}
.rh_temp_header_large_screens .rh_logo_inner img{max-height:56px;width:auto}
.rh_temp_header_large_screens .rh_menu{flex:1;display:flex;align-items:center;justify-content:space-between}
.rh_temp_header_large_screens .rh_menu__main{display:flex;align-items:center;justify-content:center;gap:4px}
.rh_temp_header_large_screens .rh_menu__main>li>a{color:var(--bh-ink)!important;font-weight:500;font-size:15px;padding:12px 14px!important;border-radius:6px}
.rh_temp_header_large_screens .rh_menu__main>li:hover>a{background:#eef7ff;color:var(--bh-blue)!important}
.rh_menu__main>li.menu-smart-search>a{color:var(--bh-blue)!important}
.rh_menu__main>li.menu-smart-search>a:before{content:"🔍 "}
.rh_temp_header_large_screens{--bh-pos:relative}
.rh_temp_header_large_screens .rh_header__wrap,.rh_temp_header_large_screens .rh_menu,.rh_temp_header_large_screens nav.main-menu,.rh_temp_header_large_screens .rh_menu__main>li.mega-menu{position:static!important}
/* mega menu */
.rh_menu__main>li.mega-menu>.sub-menu{position:absolute!important;left:0!important;right:0!important;top:100%!important;width:auto!important;min-width:0!important;margin:0!important;padding:24px max(24px,calc((100% - 1100px)/2))!important;background:#fff!important;border-top:3px solid var(--bh-sky);box-shadow:0 12px 30px rgba(0,0,0,.15);grid-template-columns:repeat(3,1fr);gap:32px;display:none!important;opacity:1!important;visibility:visible!important;transform:none!important}
.rh_menu__main>li.mega-menu:hover>.sub-menu,.rh_menu__main>li.mega-menu:focus-within>.sub-menu,.rh_menu__main>li.mega-menu.bh-open>.sub-menu{display:grid!important}
.rh_menu__main li.mega-col{position:static!important;border:0!important;background:none!important}
.rh_menu__main li.mega-col>a{pointer-events:none;font-size:13px!important;letter-spacing:.08em;text-transform:uppercase;color:var(--bh-blue)!important;font-weight:700;padding:0 0 8px!important;background:none!important}
.rh_menu__main li.mega-col>a:after,.rh_menu__main li.mega-col>.rh_menu__indicator{display:none!important}
.rh_menu__main li.mega-col>.sub-menu{position:static!important;display:block!important;opacity:1!important;visibility:visible!important;box-shadow:none!important;background:none!important;border:0!important;padding:0!important;margin:0!important;width:auto!important;min-width:0!important;transform:none!important;left:auto!important}
.rh_menu__main li.mega-col>.sub-menu>li{border:0!important;background:none!important}
.rh_menu__main li.mega-col>.sub-menu>li>a{padding:5px 0!important;color:#333!important;font-size:14px;background:none!important;white-space:normal}
.rh_menu__main li.mega-col>.sub-menu>li>a:hover{color:var(--bh-blue)!important}
li.mega-view-all>a{font-weight:600!important;color:var(--bh-blue)!important;margin-top:6px}
li.menu-book>a{background:#fff7e6!important;border-radius:8px;font-weight:600}
/* CTA */
.rh_menu__main>li.menu-cta>a,.rh_menu__responsive>li.menu-cta>a,a.bh-cta-mobile{background:var(--bh-accent)!important;color:#fff!important;font-weight:600!important;border-radius:999px!important;padding:10px 20px!important;box-shadow:0 4px 12px rgba(255,122,26,.35);white-space:nowrap;line-height:1.2}
.rh_menu__main>li.menu-cta>a:hover,a.bh-cta-mobile:hover{background:var(--bh-accent-d)!important}
.rh_menu__main>li.menu-cta{margin-left:12px}
/* Log in as text link */
body:not(.logged-in) .rh_menu__user_profile{display:none!important}
.rh_menu__user{display:flex;align-items:center;gap:10px}
.rh_menu__user_submit a.rh-btn{background:none!important;border:0!important;box-shadow:none!important;color:var(--bh-ink)!important;padding:4px 2px!important;font-size:14px!important;font-weight:500;text-transform:none!important;min-height:0!important;height:auto!important}
.rh_menu__user_submit a.rh-btn:hover{text-decoration:underline;color:var(--bh-blue)!important}

/* ---------- Mobile / responsive header (<1140px) ---------- */
.rh_temp_header_responsive_view .rh_header__wrap{display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:flex-start;gap:8px;min-height:60px;padding:6px 12px!important;flex-direction:row!important}
.rh_temp_header_responsive_view .rh_logo{margin:0!important;padding:0!important;text-align:left!important;flex:0 0 auto;width:auto!important}
.rh_temp_header_responsive_view .rh_logo_inner{justify-content:flex-start!important;padding:0!important}
.rh_temp_header_responsive_view .rh_logo_inner img{max-height:44px!important;width:auto!important}
.rh_temp_header_responsive_view .rh_menu{display:flex!important;align-items:center;margin-left:auto!important;gap:10px;width:auto!important;padding:0!important;flex-direction:row-reverse}
.rh_temp_header_responsive_view .rh_menu__user{order:0;margin:0!important;padding:0!important}
.rh_temp_header_responsive_view .rh_menu__user_submit a.rh-btn{font-size:13px!important}
.rh_temp_header_responsive_view nav.main-menu{display:flex;align-items:center;gap:10px;position:static!important}
a.bh-cta-mobile{padding:9px 14px!important;font-size:14px!important;text-decoration:none}
.rh_temp_header_responsive_view .hamburger-inner,.rh_temp_header_responsive_view .hamburger-inner:before,.rh_temp_header_responsive_view .hamburger-inner:after{background-color:var(--bh-ink)!important}
.rh_temp_header_responsive_view .rh_menu__hamburger{padding:6px!important;margin:0!important}
.rh_menu__responsive>li.menu-cta{display:none!important}
/* panel */
.rh_temp_header_responsive_view .rh_menu__responsive{display:none!important;position:fixed!important;left:0;right:0;top:var(--bh-h);bottom:0;max-height:none;overflow-y:auto;background:#fff!important;margin:0!important;padding:0 0 40px!important;z-index:9991;box-shadow:0 10px 20px rgba(0,0,0,.15);width:auto!important;transform:none!important;opacity:1!important;visibility:visible!important}
body.bh-menu-open .rh_temp_header_responsive_view .rh_menu__responsive{display:block!important}
.rh_menu__responsive li{position:relative;border-bottom:1px solid #eee;background:none!important}
.rh_menu__responsive li li{border:0}
.rh_menu__responsive li>a{display:block;padding:14px 56px 14px 18px!important;color:var(--bh-ink)!important;font-size:16px;background:none!important}
.rh_menu__responsive li li>a{padding:8px 18px 8px 30px!important;font-size:15px;color:#333!important}
.rh_menu__responsive li li li>a{padding-left:42px!important}
.rh_menu__responsive li.mega-col>a{text-transform:uppercase;font-size:13px!important;letter-spacing:.08em;color:var(--bh-blue)!important;font-weight:700}
.rh_menu__responsive .sub-menu{display:none!important;position:static!important;background:#f7fbff!important;box-shadow:none!important;opacity:1!important;visibility:visible!important;transform:none!important;padding:0 0 8px!important;margin:0!important;width:auto!important}
.rh_menu__responsive li.bh-open>.sub-menu{display:block!important}
.rh_menu__responsive li.mega-col>.sub-menu{display:block!important;background:none!important}
.rh_menu__responsive .rh_menu__indicator,.rh_menu__responsive .rh_menu__toggle{display:none!important}
button.bh-acc{position:absolute;right:0;top:0;width:52px;height:50px;border:0;background:none;color:var(--bh-blue);font-size:14px;cursor:pointer;transition:transform .2s}
li.bh-open>button.bh-acc{transform:rotate(180deg)}
@media (min-width:1140px){a.bh-cta-mobile{display:none!important}}
#get-matched{scroll-margin-top:calc(var(--bh-h) + 10px)}

/* ---- layout hardening (tested against RealHomes 4.4.2 markup) ---- */
.rh_temp_header_large_screens .rh_logo{flex:0 0 auto!important;width:auto!important;margin:0!important}
.rh_temp_header_large_screens .rh_menu{flex:1 1 auto!important;min-width:0}
.rh_temp_header_large_screens nav.main-menu{flex:1 1 auto;display:flex;justify-content:center}
.rh_temp_header_large_screens .rh_menu__main{flex-wrap:nowrap!important;white-space:nowrap}
.rh_menu__main>li.mega-menu>.sub-menu{position:fixed!important;top:var(--bh-h)!important}
body.admin-bar .rh_menu__main>li.mega-menu>.sub-menu{top:calc(var(--bh-h) + 32px)!important}
.rh_menu__main li.mega-col,.rh_menu__main li.mega-col>.sub-menu>li{display:block!important;width:auto!important;float:none!important}
.rh_menu__main li.mega-col>a{display:block!important;width:100%}
.rh_menu__main li.mega-col>.sub-menu>li>a{display:block!important}
.rh_menu__user_submit,.rh_menu__user_submit a.rh-btn{background:none!important;background-color:transparent!important}
.rh_menu__user_submit a.rh-btn:before,.rh_menu__user_submit a.rh-btn:after{display:none!important}
.rh_menu__user_submit a.rh-btn{color:var(--bh-ink)!important}
/* mobile row: logo | Log in | Get Matched | hamburger */
.rh_temp_header_responsive_view nav.main-menu{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;width:auto!important;margin:0!important;padding:0!important}
.rh_temp_header_responsive_view nav.main-menu>div[class*="-container"]{width:0!important;height:0!important;overflow:visible}
.rh_temp_header_responsive_view .rh_menu{flex-wrap:nowrap!important}
.rh_temp_header_responsive_view .rh_logo_inner a{display:block;max-width:90px;overflow:hidden}
/* specificity boosts over the site's Customizer CSS (which uses !important) */
html body header .rh_menu__user .rh_menu__user_submit a.rh-btn.rh-btn-primary{background:none!important;background-color:transparent!important;color:var(--bh-ink)!important;border:0!important;box-shadow:none!important}
html body header.rh_temp_header_responsive_view .hamburger-inner,html body header.rh_temp_header_responsive_view .hamburger-inner:before,html body header.rh_temp_header_responsive_view .hamburger-inner:after{background-color:var(--bh-ink)!important;height:2px!important}
html body header.rh_temp_header_large_screens .rh_menu__main>li>a{background:none!important;color:var(--bh-ink)!important}
html body header.rh_temp_header_large_screens .rh_menu__main>li:hover>a,html body header.rh_temp_header_large_screens .rh_menu__main>li:focus-within>a{background:#eef7ff!important;color:var(--bh-blue)!important}
html body header .rh_menu__main>li.menu-smart-search>a{color:var(--bh-blue)!important}
html body header .rh_menu__main>li.menu-cta>a,html body header .rh_menu__main>li.menu-cta:hover>a{background:var(--bh-accent)!important;color:#fff!important}
html body header .rh_menu__main>li.menu-cta:hover>a{background:var(--bh-accent-d)!important}
html body header .rh_menu__main li.mega-col>.sub-menu>li>a:hover{background:none!important;color:var(--bh-blue)!important}
html body header.rh_temp_header_responsive_view .rh_menu{flex-direction:row!important}
html body header.rh_temp_header_responsive_view .rh_menu__user{order:-1}
html body header.rh_header.rh_header_responsive.rh_temp_header_responsive_view .rh_menu__hamburger .hamburger-inner,html body header.rh_header.rh_header_responsive.rh_temp_header_responsive_view .rh_menu__hamburger .hamburger-inner::before,html body header.rh_header.rh_header_responsive.rh_temp_header_responsive_view .rh_menu__hamburger .hamburger-inner::after{background-color:var(--bh-ink)!important}

/* ===== 1.0.1: stop extra header content (logged-in user/dashboard widgets etc.) from wrapping into a second row ===== */
html body header.rh_header .rh_header__wrap{flex-wrap:nowrap!important}
html body header.rh_temp_header_large_screens .rh_header__wrap{justify-content:flex-start!important;max-width:1280px!important;width:100%!important}
/* only logo + menu belong in the bar; anything else the theme/plugins inject into the wrap is hidden */
html body header.rh_header .rh_header__wrap>*:not(.rh_logo):not(.rh_menu){display:none!important}
/* mobile-only user widget that RealHomes puts inside the logo for logged-in users */
html body header.rh_header .rh_logo .user_menu_wrapper{display:none!important}
/* user dashboard modal: never visible unless the theme opens it */
html body header .rh_menu__user_profile:not(.open-login) .rh_modal,html body header .rh_menu__user_profile:not(.open-login) .rh_modal *{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
/* hide the theme's active-item underline on the CTA */
html body header .rh_menu__main>li.menu-cta>a:after,html body header .rh_menu__main>li.menu-cta>a:before{display:none!important}
html body header .rh_menu__main>li.menu-cta>a{text-decoration:none!important;border-bottom:0!important}
/* debug overlay (?bremls-debug=1) */
.bh-debug-box{outline:2px dashed #e11d48!important;position:relative}
.bh-debug-label{position:absolute;z-index:100000;background:#e11d48;color:#fff;font:11px/1.3 monospace;padding:2px 4px;max-width:420px;word-break:break-all;pointer-events:none}
