/* Shared layout corrections, loaded after page and operational styles. */
.egp-theme main{min-width:0}
.egp-theme main :is(section,article,aside,header,form,.e-con,.elementor-widget,.elementor-widget-container){min-width:0}
.egp-theme :is(main,footer) :is(p,h1,h2,h3,h4,dd,label,a){overflow-wrap:anywhere}
.egp-theme main :is(input,select,textarea){max-width:100%;min-width:0;box-sizing:border-box}
.egp-theme main :is(.egp-btn,.elementor-button){height:auto;min-height:44px;white-space:normal;line-height:1.5;padding-block:12px}
.egp-theme :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #b28555;outline-offset:4px}
.egp-theme :is(.egp-global-header,.egp-global-footer,.egp-footer-redesign) :is(h2,h3){line-height:1.2}
.egp-global-header__bar{grid-template-columns:minmax(170px,205px) minmax(0,1fr) auto;gap:24px}
.egp-global-header__brand{min-width:0}
.egp-global-header__brand .custom-logo{max-width:min(200px,100%);object-fit:contain}
.egp-primary-menu{gap:clamp(16px,1.8vw,28px)}
.egp-global-header__utilities{gap:16px;min-width:0}
.egp-header-action{min-height:44px}
.egp-header-cta{padding-inline:18px;line-height:1.4;text-transform:none;font-size:13px;letter-spacing:0}
.egp-header-account{position:relative;min-width:0}
.egp-header-account summary{display:flex;align-items:center;gap:9px;min-height:44px;cursor:pointer;list-style:none;color:#fff;font-size:13px}
.egp-header-account summary::-webkit-details-marker{display:none}
.egp-account-avatar{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid #c99b67;border-radius:50%;background:#28405b;color:#fff;font-weight:700}
.egp-header-account summary>.egp-icon{width:14px;transform:rotate(90deg)}
.egp-header-account[open] summary>.egp-icon{transform:rotate(-90deg)}
.egp-account-dropdown{position:absolute;right:0;top:calc(100% + 12px);z-index:940;width:min(280px,calc(100vw - 30px));padding:12px;background:#fff;color:#102b51;border:1px solid #ddd8d0;border-radius:8px;box-shadow:0 16px 45px #03183230}
.egp-account-dropdown p{margin:0 0 8px;padding:8px 10px 12px;border-bottom:1px solid #eee7dd;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.egp-account-dropdown a{display:block;padding:11px 10px;color:#102b51;line-height:1.5;font-size:14px;border-radius:4px}
.egp-account-dropdown a:hover{background:#f8f6f2}
.egp-mega-menu{top:calc(100% - 1px);width:min(1280px,calc(100vw - 48px));max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain}
.is-condensed .egp-mega-menu{top:calc(100% - 1px)}
.egp-mega-menu__surface{grid-template-columns:minmax(0,.85fr) minmax(0,1.7fr) minmax(0,.85fr);min-height:0}
.egp-mega-menu__intro,.egp-mega-menu__promo{padding:28px;min-width:0}
.egp-mega-menu__groups{padding:28px 24px;gap:20px;min-width:0}
.egp-mega-menu__group+div{padding-left:20px}
.egp-mega-menu h2{font-size:clamp(28px,2.5vw,38px);line-height:1.15;overflow-wrap:anywhere}
.egp-mega-menu__group strong{line-height:1.4}
.egp-mega-menu__group small{line-height:1.5}
.egp-mega-menu__bottom{flex-wrap:wrap}
.egp-search-overlay{overflow:auto;padding-bottom:32px}
.egp-search-overlay form{gap:10px;flex-wrap:wrap}
.egp-search-overlay label{min-width:0;flex-basis:220px}
.egp-footer-redesign__main>.egp-shell>*{min-width:0;overflow-wrap:anywhere}
.egp-footer-redesign__insights>.egp-shell{grid-template-columns:minmax(0,1.05fr) minmax(0,1.15fr) minmax(0,1.2fr)}
.egp-footer-redesign__legal ul{flex-wrap:wrap;row-gap:10px}
.egp-customer-account{width:min(620px,100%);margin:0 auto}
.egp-customer-account header{margin-bottom:28px}
.egp-customer-account h1{font:500 clamp(34px,5vw,52px)/1.2 var(--egp-serif);margin:12px 0}
.egp-customer-account h2{font:500 30px/1.3 var(--egp-serif);margin:0 0 20px}
.egp-customer-account nav,.egp-account-actions{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}
.egp-customer-account nav a{padding:10px 16px;border-bottom:2px solid transparent;color:#102b51}
.egp-customer-account nav a[aria-current]{border-color:#b28555;background:#f8f6f2}
.egp-account-card{padding:32px;border:1px solid #ddd8d0;border-radius:8px;background:#fff}
.egp-customer-account label{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-size:15px;line-height:1.6}
.egp-customer-account input:not([type=checkbox]):not([type=radio]){width:100%;padding:12px 14px;min-height:48px;border:1px solid #bdc8d1;border-radius:4px;font:inherit}
.egp-customer-account fieldset{border:1px solid #ddd8d0;padding:12px 18px;border-radius:4px;margin:20px 0}
.egp-customer-account .egp-account-choice{flex-direction:row;align-items:center;gap:10px}
.egp-customer-account .egp-account-choice input{width:18px;height:18px;flex:0 0 18px}
.egp-account-notice{padding:18px;background:#f8f6f2;border-left:3px solid #b28555;line-height:1.6}
.egp-customer-account [hidden]{display:none!important}
.egp-workspace__grid{grid-template-columns:minmax(0,1.35fr) minmax(0,.8fr)}
.egp-workspace :is(.egp-buyer-briefs__heading,.egp-buyer-form__top,.egp-buyer-form__actions,.egp-matches__heading,.egp-property-workspace__heading){flex-wrap:wrap;gap:16px}
.egp-workspace :is(.egp-buyer-brief-list__title,.egp-property-workspace__actions,.egp-matches__actions){flex-wrap:wrap;gap:10px}
.egp-workspace :is(.egp-buyer-brief-list__edit,.egp-workspace-module__action){white-space:normal;line-height:1.5}
.egp-workspace :is(input,select,textarea){max-width:100%;min-width:0}
.egp-workspace :is(button,.egp-buyer-briefs__button){height:auto;min-height:44px;white-space:normal;line-height:1.5}
.egp-workspace :is(h2,h3,h4,p,small,label,dd){overflow-wrap:anywhere}
@media(max-width:1280px){
 :root{--egp-header-h:72px}
 .egp-global-header__bar{grid-template-columns:minmax(0,1fr) auto;gap:16px}
 .egp-global-header__nav{display:none}
 .egp-global-header__utilities>.egp-header-action{display:inline-flex}
 .egp-global-header__utilities>.egp-header-auth{display:inline-flex}
 .egp-mobile-menu-toggle{display:grid;flex:0 0 44px}
 .egp-global-header.is-condensed{height:72px}
 .egp-mobile-drawer .egp-mega-menu{max-height:none;overflow:visible;top:auto}
 .egp-mobile-drawer .egp-mega-menu__surface{display:block}
 .egp-mobile-drawer .egp-mega-menu__groups{display:block;padding:0 5px 14px}
 .egp-mobile-drawer .egp-mega-menu__group strong{font-size:14px;line-height:1.5}
 .egp-mobile-drawer .egp-mega-menu__group a{min-height:44px}
 .egp-mobile-drawer__nav{min-height:0;overscroll-behavior:contain}
 .egp-mobile-drawer>.egp-header-cta{margin-top:12px;min-height:44px}
 .egp-agent-profile__hero{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
 .egp-contact-page .egp-contact-main__grid,.egp-contact-page .egp-contact-office__grid{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:40px}
 .egp-property-search__layout{grid-template-columns:minmax(0,.55fr) minmax(0,1.3fr)}
 .egp-footer-redesign__insights>.egp-shell{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media(max-width:1024px){
 .egp-workspace__grid{grid-template-columns:minmax(0,1fr)}
 .egp-matches__reverse form{grid-template-columns:minmax(0,1fr)}
 .egp-contact-page .egp-contact-main__grid,.egp-contact-page .egp-contact-office__grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:782px){
 .egp-global-header__utilities{gap:8px}
 .egp-global-header__utilities>.egp-header-action{display:none}
 .egp-account-label{display:none}
 .egp-global-header__brand .custom-logo{max-width:160px;max-height:48px}
 .egp-header-auth{padding-inline:12px;min-height:42px;font-size:12px}
 .egp-header-auth span{display:none}
 .egp-mobile-drawer{padding-top:calc(20px + env(safe-area-inset-top));padding-bottom:calc(20px + env(safe-area-inset-bottom));height:100dvh}
 .egp-workspace__agent{max-width:100%;min-width:0}
 .egp-property-search__layout,.egp-agent-profile__hero{grid-template-columns:minmax(0,1fr)}
 .egp-footer-redesign__insights>.egp-shell{grid-template-columns:minmax(0,1fr)}
 .egp-search-result{grid-template-columns:minmax(0,1fr)}
 .egp-search-overlay__panel{padding:40px 22px 24px}
 .egp-account-card{padding:24px 20px}
}
@media(max-width:380px){.egp-wordmark{font-size:8px;gap:6px;letter-spacing:.12em}.egp-wordmark__mark{width:22px}.egp-global-header__bar{gap:8px}.egp-global-header__brand .custom-logo{max-width:130px}.egp-account-actions>*{width:100%}}
@media(prefers-reduced-motion:reduce){.egp-theme *,html{scroll-behavior:auto!important}}

.egp-workspace-account{margin-left:auto;flex:0 0 auto;z-index:50}
.egp-workspace-account summary{color:var(--egp-dashboard-text);padding:8px 0}
.egp-workspace-account .egp-account-dropdown{top:100%}
.egp-workspace__topbar>.egp-workspace-account{min-width:0}
@media(max-width:600px){.egp-workspace__topbar{gap:12px;padding:16px}.egp-workspace__topbar>div{flex:1;min-width:0}.egp-workspace__topbar h1{font-size:26px}.egp-workspace-account summary{gap:5px}}
