/* ═══════════════════════════════════════════════════════════
   MY REALTORS PRO THEME — "Modern Coastal" design system
   Vibrant blue-teal gradients, bright white surfaces, rounded
   corners, soft glow shadows, smooth animated interactions.
   Poppins display + Inter UI. Expert Portal explicitly excluded.
═══════════════════════════════════════════════════════════ */
:root{
  --gold:var(--mrt-primary,#d97706);--gold-d:var(--mrt-primary-dark,#b45309);
  --navy:#0a1f44;--navy2:#123166;
  --text:#0f172a;--muted:#5b6472;--border:#e2e6ed;
  --bg:#f7f9fc;--white:#fff;
  --shadow:0 2px 12px rgba(10,31,68,.08);--shadow-h:0 14px 34px rgba(10,31,68,.16);
  --header-h:84px;--topbar-h:38px;--mobile-nav-h:64px;
  --r:12px;--r-sm:8px;--r-pill:999px;
  --font-head:'Poppins',-apple-system,sans-serif;
  --font-body:'Inter',-apple-system,sans-serif;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font-body);color:var(--text);background:var(--bg);line-height:1.65;min-height:100vh}
h1,h2,h3,h4,h5,h6{font-family:var(--font-head);font-weight:800;letter-spacing:-.01em}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}

/* ── Page shell ── */
.mrt-page{display:flex;flex-direction:column;min-height:100vh;position:relative;isolation:isolate}
.mrt-content{flex:1;padding-top:var(--header-h);position:relative;z-index:1}

/* ══════════════════════════ TOP CONTACT BAR ══════════════════════════ */
.mrt-topbar{background:var(--navy);height:var(--topbar-h);display:none}
.mrt-topbar-inner{max-width:1280px;margin:0 auto;padding:0 32px;height:100%;display:flex;align-items:center;justify-content:space-between;gap:20px}
.mrt-topbar-left{display:flex;gap:24px}
.mrt-topbar-item{font-size:12px;color:#cbd5e1;text-decoration:none;display:flex;align-items:center;gap:7px;font-weight:600;transition:.2s}
.mrt-topbar-item:hover{color:#93c5fd}
.mrt-topbar-right{display:flex;gap:6px}
.mrt-topbar-right a{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#cbd5e1;transition:.2s}
.mrt-topbar-right a:hover{background:var(--gold);color:#fff}

/* ══════════════════════════ HEADER ══════════════════════════ */
.mrt-header{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;z-index:9000;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);transition:box-shadow .25s}
.mrt-header.scrolled{box-shadow:var(--shadow)}
.mrt-header-inner{max-width:1280px;margin:0 auto;padding:0 32px;height:84px;display:flex;align-items:center;gap:24px}

/* Brand */
.mrt-brand{display:flex;align-items:center;gap:12px;flex-shrink:0;min-width:0}
.mrt-logo{height:42px;width:auto;object-fit:contain;flex-shrink:0}
.mrt-brand-text{display:flex;flex-direction:column;min-width:0}
.mrt-brand-name{font-family:var(--font-head);font-size:19px;font-weight:800;color:var(--text);letter-spacing:-.01em;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mrt-brand-tag{font-size:10.5px;color:var(--muted);font-weight:600;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Desktop nav */
.mrt-nav{flex:1;overflow:hidden}
.mrt-nav-list{list-style:none;display:flex;align-items:center;gap:2px}
.mrt-nav-item{flex-shrink:0}
.mrt-nav-link{display:flex;align-items:center;gap:6px;padding:10px 16px;border-radius:var(--r-pill);font-size:13.5px;font-weight:700;color:var(--text);opacity:.7;transition:.2s;white-space:nowrap}
.mrt-nav-link:hover,.mrt-nav-item.is-active .mrt-nav-link{opacity:1;background:var(--bg);color:var(--gold-d)}
.mrt-nav-icon{font-size:15px}

/* Header right */
.mrt-header-right{display:flex;align-items:center;gap:14px;flex-shrink:0}
.mrt-header-cta{display:flex;align-items:center;gap:8px;padding:11px 22px;border-radius:var(--r-pill);background:var(--gold);color:#fff;font-size:13px;font-weight:700;transition:.25s;white-space:nowrap;box-shadow:0 6px 16px rgba(37,99,235,.3)}
.mrt-header-cta:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(37,99,235,.4)}
.mrt-header-cta-icon{flex-shrink:0}

/* Hamburger */
.mrt-hamburger{display:none;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:42px;height:42px;padding:0;background:var(--bg);border:none;border-radius:var(--r-sm);cursor:pointer;flex-shrink:0;transition:.2s}
.mrt-hamburger:hover{background:var(--border)}
.mrt-ham-bar{display:block;width:19px;height:2px;background:var(--text);border-radius:2px;transition:transform .25s,opacity .25s}
.mrt-hamburger.is-open .mrt-ham-bar:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.mrt-hamburger.is-open .mrt-ham-bar:nth-child(2){opacity:0}
.mrt-hamburger.is-open .mrt-ham-bar:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* Mobile drawer */
.mrt-mobile-drawer{position:absolute;top:100%;left:0;right:0;z-index:8999;background:var(--white);border-bottom:1px solid var(--border);box-shadow:var(--shadow-h);overflow:hidden;max-height:0;visibility:hidden;transition:max-height .35s cubic-bezier(.4,0,.2,1),opacity .25s,visibility 0s linear .35s;opacity:0;pointer-events:none}
.mrt-mobile-drawer.is-open{max-height:600px;opacity:1;visibility:visible;pointer-events:auto;transition:max-height .35s cubic-bezier(.4,0,.2,1),opacity .25s,visibility 0s linear 0s}
.mrt-mobile-drawer-inner{padding:16px 24px 28px}
.mrt-mobile-nav-list{list-style:none;display:flex;flex-direction:column;gap:2px}
.mrt-mobile-nav-link{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:var(--r-sm);font-size:15px;font-weight:700;color:var(--text);transition:.2s}
.mrt-mobile-nav-link:hover,.mrt-mobile-nav-link.is-active{background:var(--bg);color:var(--gold-d)}
.mrt-mobile-nav-icon{font-size:18px}
.mrt-mobile-contact{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mrt-mobile-contact-item{display:flex;align-items:center;gap:8px;padding:13px 16px;border-radius:var(--r-sm);font-size:13px;font-weight:700;background:var(--bg);color:var(--text);transition:.2s}
.mrt-mobile-contact-item:hover{background:var(--border)}
.mrt-mobile-contact-call{grid-column:1/-1;background:var(--gold);color:#fff;justify-content:center;font-size:14px}

@media(min-width:1024px){
  .mrt-topbar{display:block}
  .mrt-content{padding-top:calc(var(--header-h) + var(--topbar-h))}
}

/* ══════════════════════════ MAIN LAYOUT ══════════════════════════ */
.mrt-main-wrap{max-width:1280px;margin:0 auto;padding:48px 32px;display:grid;gap:32px}
.mrt-main-wrap.mrt-has-sidebar.mrt-sidebar-right{grid-template-columns:1fr 320px}
.mrt-main-wrap.mrt-has-sidebar.mrt-sidebar-left{grid-template-columns:320px 1fr}
.mrt-main-wrap.mrt-has-sidebar.mrt-sidebar-left .mrt-sidebar{order:-1}
.mrt-fullbleed-page{margin:0;padding:0}

/* Page hero */
.mrt-page-hero{background:var(--navy);color:#fff;padding:52px 0;position:relative;overflow:hidden}
.mrt-page-hero::before{content:'';position:absolute;top:-50%;right:-10%;width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,rgba(37,99,235,.3),transparent 65%)}
.mrt-page-hero-inner{max-width:1280px;margin:0 auto;padding:0 32px;position:relative;z-index:1}
.mrt-page-title{font-size:clamp(24px,4vw,36px);font-weight:800;margin-bottom:8px}
.mrt-breadcrumbs{font-size:12px;color:#cbd5e1}
.mrt-breadcrumbs a{color:#cbd5e1;transition:.2s}
.mrt-breadcrumbs a:hover{color:#93c5fd}

/* Page content */
.mrt-page-content{background:var(--white);border-radius:var(--r);padding:40px;box-shadow:var(--shadow)}
.mrt-page-content h1,.mrt-page-content h2,.mrt-page-content h3{margin:22px 0 12px}
.mrt-page-content p{margin-bottom:16px;line-height:1.85}
.mrt-page-content a{color:var(--gold-d);text-decoration:underline}

/* ══════════════════════════ SIDEBAR ══════════════════════════ */
.mrt-sidebar{display:flex;flex-direction:column;gap:20px}
.mrt-widget{background:var(--white);border-radius:var(--r);padding:26px;box-shadow:var(--shadow)}
.mrt-widget-title{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.mrt-sidebar-search{display:flex;gap:8px}
.mrt-sidebar-search-input{flex:1;padding:11px 14px;border:1.5px solid var(--border);border-radius:var(--r-pill);font-size:13px;outline:none;transition:.2s}
.mrt-sidebar-search-input:focus{border-color:var(--gold)}
.mrt-sidebar-search-btn{padding:11px 16px;background:var(--gold);color:#fff;border:none;border-radius:var(--r-pill);cursor:pointer;font-size:13px}
.mrt-sidebar-contact-text{font-size:13px;color:var(--muted);margin-bottom:16px;line-height:1.7}
.mrt-sidebar-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 16px;border-radius:var(--r-pill);font-size:13px;font-weight:700;margin-bottom:10px;transition:.2s;background:var(--bg);color:var(--text)}
.mrt-sidebar-btn:hover{background:var(--gold);color:#fff;transform:translateY(-2px)}
.mrt-sidebar-links{list-style:none;display:flex;flex-direction:column;gap:2px}
.mrt-sidebar-links a{display:block;padding:10px 12px;border-radius:var(--r-sm);font-size:13px;font-weight:600;transition:.2s}
.mrt-sidebar-links a:hover{background:var(--bg);color:var(--gold-d)}

/* ══════════════════════════ FOOTER ══════════════════════════ */
.mrt-footer{background:var(--navy);color:#cbd5e1}
.mrt-footer-inner{max-width:1280px;margin:0 auto;padding:64px 32px 40px}
.mrt-footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:40px}
.mrt-footer-logo{height:36px;filter:brightness(0) invert(1);margin-bottom:14px}
.mrt-footer-name{font-family:var(--font-head);font-size:21px;font-weight:800;color:#fff;margin-bottom:8px}
.mrt-footer-tagline{font-size:12px;color:#93c5fd;margin-bottom:14px;font-weight:600}
.mrt-footer-about{font-size:13px;line-height:1.85;color:#94a3b8;max-width:280px}
.mrt-footer-socials{display:flex;gap:8px;margin-top:20px}
.mrt-footer-social{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;font-size:13px;color:#cbd5e1;transition:.2s}
.mrt-footer-social:hover{background:var(--gold);color:#fff;transform:translateY(-3px)}
.mrt-footer-col-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#fff;margin-bottom:18px}
.mrt-footer-links{list-style:none;display:flex;flex-direction:column;gap:12px}
.mrt-footer-links a{font-size:13px;color:#94a3b8;transition:.2s}
.mrt-footer-links a:hover{color:#93c5fd}
.mrt-footer-contact-list{list-style:none;display:flex;flex-direction:column;gap:14px}
.mrt-footer-contact-list li,.mrt-footer-contact-list a{font-size:13px;color:#94a3b8;line-height:1.6}
.mrt-footer-contact-list a:hover{color:#93c5fd}
.mrt-footer-widget-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#fff;margin-bottom:14px}
.mrt-footer-widget a{color:#94a3b8}
.mrt-footer-widget a:hover{color:#93c5fd}
.mrt-footer-banks{background:rgba(255,255,255,.04);border-top:1px solid rgba(255,255,255,.08)}
.mrt-footer-banks-inner{max-width:1280px;margin:0 auto;padding:20px 32px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.mrt-footer-banks-label{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8fa3c2;flex-shrink:0}
.mrt-footer-banks-list{display:flex;gap:10px;flex-wrap:wrap}
.mrt-footer-bank-chip{font-size:12px;font-weight:600;color:#c7d0e0;background:rgba(255,255,255,.06);padding:6px 14px;border-radius:var(--r-pill)}
.mrt-footer-bar{border-top:1px solid rgba(255,255,255,.08);padding:20px 32px}
.mrt-footer-bar-inner{max-width:1280px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:11.5px;color:#64748b}
.mrt-footer-nav{list-style:none;display:flex;gap:20px}
.mrt-footer-nav a{font-size:11.5px;color:#64748b;transition:.2s}
.mrt-footer-nav a:hover{color:#93c5fd}

/* ══════════════════════════ MOBILE BOTTOM NAV ══════════════════════════ */
.mrt-mobile-bottom-nav{display:none;position:fixed;bottom:0;left:0;right:0;z-index:8998;height:var(--mobile-nav-h);background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-top:1px solid var(--border)}
.has-mobile-nav{padding-bottom:var(--mobile-nav-h)}
.mrt-bottom-nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);padding:6px 4px;transition:.2s}
.mrt-bottom-nav-item.active,.mrt-bottom-nav-item:hover{color:var(--gold-d)}
.mrt-bottom-nav-icon{font-size:19px;line-height:1;transition:.2s}
.mrt-bottom-nav-item.active .mrt-bottom-nav-icon{transform:scale(1.15)}
.mrt-bottom-nav-label{font-size:9.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}

/* ══════════════════════════ 404 ══════════════════════════ */
.mrt-404{display:flex;align-items:center;justify-content:center;min-height:60vh;padding:40px 20px}
.mrt-404-inner{text-align:center;max-width:480px}
.mrt-404-num{font-family:var(--font-head);font-size:clamp(80px,15vw,140px);font-weight:800;background:var(--gold);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1}
.mrt-404-title{font-size:clamp(22px,3vw,30px);font-weight:800;margin:14px 0 10px}
.mrt-404-sub{color:var(--muted);font-size:15px;margin:10px 0 32px;line-height:1.7}
.mrt-404-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.mrt-btn-primary,.mrt-btn-outline{font-size:14px;font-weight:700;padding:15px 28px;border-radius:var(--r-pill);transition:.25s}
.mrt-btn-primary{background:var(--gold);color:#fff;box-shadow:0 8px 20px rgba(37,99,235,.3)}
.mrt-btn-primary:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(37,99,235,.4)}
.mrt-btn-outline{border:2px solid var(--gold);color:var(--gold-d)}
.mrt-btn-outline:hover{background:var(--gold);color:#fff;border-color:transparent;transform:translateY(-3px)}

/* ══════════════════════════ POSTS ══════════════════════════ */
.mrt-post{background:var(--white);border-radius:var(--r);padding:28px;margin-bottom:20px;box-shadow:var(--shadow);transition:transform .3s,box-shadow .3s}
.mrt-post:hover{transform:translateY(-4px);box-shadow:var(--shadow-h)}
.mrt-post-title{font-size:20px;font-weight:800;margin-bottom:8px}
.mrt-post-title a:hover{color:var(--gold-d)}
.mrt-post-meta{font-size:12px;color:var(--muted);margin-bottom:12px}
.mrt-post-excerpt{font-size:14px;color:var(--muted);line-height:1.8}
.mrt-no-posts{color:var(--muted);font-size:14px;text-align:center;padding:60px}

/* ══════════════════════════ PORTAL — untouched, chrome hidden only ══════════════════════════ */
.bp-portal-page .mrt-header,.bp-portal-page .mrt-footer,.bp-portal-page .mrt-mobile-bottom-nav{display:none!important}
.bp-portal-page #mrt-page{display:block;min-height:unset}
.bp-portal-page #mrt-content{padding-top:0!important;flex:unset}
.bp-portal-page .mrt-fullbleed-page{margin:0;padding:0;width:100%;min-height:0}
.bp-portal-page #bp-portal-root{position:fixed;inset:0;z-index:99999;overflow:auto;background:var(--p-bg,#070b14)}

/* ══════════════════════════ RESPONSIVE ══════════════════════════ */
@media(max-width:1023px){
  .mrt-nav{display:none}
  .mrt-hamburger{display:flex}
  .mrt-header-cta{padding:11px;width:42px;height:42px;justify-content:center}
  .mrt-header-cta-text{display:none}
  .mrt-content{padding-top:84px}
  .mrt-footer-grid{grid-template-columns:1fr 1fr;gap:32px}
}
@media(max-width:767px){
  .mrt-header-inner{height:64px;padding:0 20px;gap:12px}
  .mrt-header-cta{display:none}
  .mrt-logo{height:32px}
  .mrt-brand-name{font-size:16px}
  .mrt-brand-tag{display:none}
  .mrt-content{padding-top:64px}
  .mrt-mobile-bottom-nav{display:flex}
  .mrt-mobile-contact{grid-template-columns:1fr}
  .mrt-main-wrap.mrt-has-sidebar{grid-template-columns:1fr}
  .mrt-sidebar{order:99}
  .mrt-main-wrap{padding:24px 20px}
  .mrt-footer-grid{grid-template-columns:1fr;gap:28px}
  .mrt-footer-inner{padding:48px 20px 28px}
  .mrt-page-content{padding:24px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
