/* ==========================================================================
   0. SELF-HOSTED FONT — Mulish (woff2, latin subset). Files live in the child
      theme /fonts/ folder. Paths are ROOT-RELATIVE (/wp-content/...) on purpose
      so they keep working after the move to InMotion + themunirgroup.ca.
      Weights used by this site: 400 / 600 / 700 / 800 + 400 italic.
   ========================================================================== */
@font-face{font-family:'Mulish';font-style:normal;font-weight:400;font-display:swap;src:url('/wp-content/themes/hello-elementor-child/fonts/mulish-400.woff2') format('woff2');}
@font-face{font-family:'Mulish';font-style:normal;font-weight:600;font-display:swap;src:url('/wp-content/themes/hello-elementor-child/fonts/mulish-600.woff2') format('woff2');}
@font-face{font-family:'Mulish';font-style:normal;font-weight:700;font-display:swap;src:url('/wp-content/themes/hello-elementor-child/fonts/mulish-700.woff2') format('woff2');}
@font-face{font-family:'Mulish';font-style:normal;font-weight:800;font-display:swap;src:url('/wp-content/themes/hello-elementor-child/fonts/mulish-800.woff2') format('woff2');}
@font-face{font-family:'Mulish';font-style:italic;font-weight:400;font-display:swap;src:url('/wp-content/themes/hello-elementor-child/fonts/mulish-italic-400.woff2') format('woff2');}


/* ==========================================================================
   THE MUNIR GROUP — GLOBAL STYLESHEET
   --------------------------------------------------------------------------
   One sheet for every reusable "mg-" component on the site. Load this ONCE,
   site-wide, then paste the STYLE-STRIPPED markup (no <style> block) into each
   Elementor HTML widget. Class names are unchanged, so pages render identically
   the moment this sheet is live.

   HOW TO DEPLOY (pick one):
   • Best for page speed — enqueue as a real, cacheable file:
       upload this file to your child theme (e.g. /wp-content/themes/hello-child/
       munir-global.css) and enqueue it, OR add it via a "custom CSS file" plugin.
       A real .css file is cached by the browser across page loads and can be
       minified; that beats inline CSS.
   • Simplest — Elementor ▸ Site Settings ▸ Custom CSS: paste everything below.
       Works immediately, but Elementor prints it inline in <head> on every page
       (not separately cacheable). Fine to start; move to a file later for speed.

   ROLLOUT ORDER (important): put this sheet live FIRST, confirm one page still
   looks right with its local <style> removed, THEN strip the rest. Don't strip
   pages before this is loaded or you'll briefly have unstyled pages.

   NOTES
   • Tokens reconciled to the most-used values: navy #1b2039, gold-hover #e0a614.
     (Old one-offs #1f2542 / #d89f10 / #1d2236 now resolve to these — the shift
     is visually negligible.) The blog post keeps a darker link gold #b07f08 for
     readable inline links; that override is scoped to .mg-post only.
   • Mulish is expected to be loaded by Elementor's font kit (do NOT @import it
     here). For best Core Web Vitals, set Google Fonts to display:swap and add a
     preconnect to fonts.gstatic.com — or self-host Mulish (ask and I'll add the
     @font-face block + woff2 plan).
   • NOT included yet: the Advantage / contact section (.mg-advantage / .mg-adv-*)
     — it's pending its no-padding + form rework; we'll add it to this sheet then.
   ========================================================================== */


/* ==========================================================================
   1. BRAND TOKENS
   ========================================================================== */
:root {
  --mg-navy:    #1b2039;   /* dark navy — cards, contact card, step badge text bg */
  --mg-heading: #242a48;   /* headings */
  --mg-gold:    #f5b81e;   /* gold — accents, buttons, icons */
  --mg-gold-h:  #e0a614;   /* gold hover + most inline text links */
  --mg-text:    #4d4d57;   /* body copy */
  --mg-font: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}


/* ==========================================================================
   2. BASE — reset + font scope (applies only inside mg- components)
   ========================================================================== */
.mg-expertise, .mg-hero, .mg-featured, .mg-team, .mg-insights, .mg-faq,
.mg-agents, .mg-info, .mg-profile, .mg-fhe, .mg-post {
  font-family: var(--mg-font);
  width: 100%;
}
.mg-expertise *, .mg-hero *, .mg-featured *, .mg-team *, .mg-insights *, .mg-faq *,
.mg-agents *, .mg-info *, .mg-profile *, .mg-fhe *, .mg-post * {
  box-sizing: border-box;
}


/* ==========================================================================
   3. SHARED PATTERNS
   ========================================================================== */

/* Section display headings (Insights / FAQ / Featured / Team / FHE) */
.mg-insights .mg-insights-title,
.mg-faq .mg-faq-title,
.mg-featured .mg-featured-title,
.mg-team .mg-team-title,
.mg-fhe .mg-fhe-title {
  margin: 0;
  color: var(--mg-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(32px, 4.4vw, 48px);
}
.mg-featured .mg-featured-title { margin: 0 0 18px; }
.mg-team .mg-team-title         { margin: 0 0 18px; }
.mg-fhe .mg-fhe-title           { margin: 0 0 24px; }

/* Section intro paragraph (Featured / Team share these) */
.mg-featured .mg-featured-text,
.mg-team .mg-team-text {
  margin: 0;
  color: var(--mg-text);
  font-size: 18px;
  line-height: 1.65;
}
.mg-featured .mg-featured-text a {
  color: var(--mg-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}
.mg-featured .mg-featured-text a:hover { color: var(--mg-gold-h); }

/* Shared keyboard focus ring */
.mg-expertise a:focus-visible, .mg-expertise .mg-play:focus-visible,
.mg-hero a:focus-visible, .mg-featured a:focus-visible, .mg-agents a:focus-visible,
.mg-info a:focus-visible, .mg-profile a:focus-visible, .mg-fhe a:focus-visible,
.mg-post a:focus-visible {
  outline: 3px solid var(--mg-gold);
  outline-offset: 3px;
}


/* ==========================================================================
   4. HOMEPAGE — EXPERTISE SECTION  (.mg-expertise)
   ========================================================================== */
.mg-expertise .mg-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: stretch;
}
.mg-expertise .mg-heading {
  margin: 0 0 24px;
  color: var(--mg-heading);
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.mg-expertise .mg-copy p {
  margin: 0 0 20px;
  color: var(--mg-text);
  font-size: 16.5px;
  line-height: 1.7;
}
.mg-expertise .mg-copy p:last-child { margin-bottom: 0; }

.mg-expertise .mg-video {
  position: relative;
  margin-top: 32px;
  border-radius: 10px;
  overflow: hidden;
  background: #d8dde6;
}
.mg-expertise .mg-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.mg-expertise .mg-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px; height: 84px;
  border: 3px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.mg-expertise .mg-play:hover { background: rgba(0,0,0,0.34); transform: scale(1.06); }
.mg-expertise .mg-play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }

.mg-expertise .mg-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mg-expertise .mg-card {
  flex: 1 1 auto;
  background: var(--mg-navy);
  border-radius: 12px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.mg-expertise .mg-card-icon { flex: 0 0 auto; color: var(--mg-gold); display: flex; }
.mg-expertise .mg-card-icon svg { width: 54px; height: 54px; fill: currentColor; }
.mg-expertise .mg-card-title {
  flex: 1 1 auto;
  color: var(--mg-gold);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.18;
}
.mg-expertise .mg-reg { font-size: 0.5em; vertical-align: super; font-weight: 700; }
.mg-expertise .mg-btn {
  flex: 0 0 auto;
  background: var(--mg-gold);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .2s ease;
}
.mg-expertise .mg-btn:hover { background: var(--mg-gold-h); }

.mg-expertise .mg-social {
  background: var(--mg-navy);
  border-radius: 12px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}
.mg-expertise .mg-social a { color: #fff; display: flex; transition: transform .2s ease, color .2s ease; }
.mg-expertise .mg-social a:hover { color: var(--mg-gold); transform: translateY(-2px); }
.mg-expertise .mg-social svg { width: 27px; height: 27px; fill: currentColor; }

.mg-expertise .mg-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: nowrap;
}
.mg-expertise .mg-logos img { display: block; width: auto !important; height: auto !important; max-width: 47% !important; max-height: 120px !important; }
.mg-expertise .mg-logos img.mg-logo-c21 { max-width: 38% !important; }

@media (max-width: 900px) {
  .mg-expertise .mg-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .mg-expertise .mg-heading { font-size: 30px; }
  .mg-expertise .mg-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 18px;
    align-items: center;
    padding: 24px;
  }
  .mg-expertise .mg-card-icon { grid-column: 1; grid-row: 1; }
  .mg-expertise .mg-card-icon svg { width: 46px; height: 46px; }
  .mg-expertise .mg-card-title { grid-column: 2; grid-row: 1; font-size: 22px; }
  .mg-expertise .mg-btn { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: 60%; text-align: center; }
  .mg-expertise .mg-social { gap: 24px; padding: 22px; }
}


/* ==========================================================================
   5. HOMEPAGE — HERO TEXT BAND  (.mg-hero)
   Content only. The navy background + gold top border live on the Elementor
   SECTION that wraps this widget (bg #1f2542, top border 5px #f5b81e).
   ========================================================================== */
.mg-hero .mg-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.mg-hero .mg-eyebrow {
  margin: 0 0 22px;
  color: var(--mg-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mg-hero .mg-hero-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(38px, 5.2vw, 62px);
}
.mg-hero .mg-hero-text {
  margin: 0 0 34px;
  color: #fff;
  font-size: 19px;
  line-height: 1.55;
}
.mg-hero .mg-hero-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.mg-hero .mg-btn {
  background: var(--mg-gold);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .2s ease;
}
.mg-hero .mg-btn:hover { background: var(--mg-gold-h); }

@media (max-width: 900px) {
  .mg-hero .mg-hero-inner { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 600px) {
  .mg-hero .mg-hero-text { font-size: 17px; }
  .mg-hero .mg-hero-btns { gap: 12px; }
}


/* ==========================================================================
   6. HOMEPAGE — FEATURED / TEAM / INSIGHTS / FAQ HEADINGS
   (display headings + intro paragraphs are in section 3; only extras here)
   ========================================================================== */
@media (max-width: 600px) {
  .mg-featured .mg-featured-text { font-size: 16.5px; }
  .mg-team .mg-team-text { font-size: 16.5px; }
}


/* ==========================================================================
   7. HOMEPAGE — TEAM CARDS  (.mg-agents)
   ========================================================================== */
.mg-agents .mg-agents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.mg-agents .mg-agent {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}
.mg-agents .mg-agent-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: #fff;
  display: block;
  transform-origin: center top;
  transition: transform .35s ease;
}
.mg-agents .mg-agent:hover .mg-agent-photo { transform: scale(1.05); }
.mg-agents .mg-agent-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(245, 184, 30, 0.92);
  padding: 11px 12px 13px;
  text-align: center;
  border-radius: 4px;
  transition: background .2s ease;
}
.mg-agents .mg-agent:hover .mg-agent-label { background: var(--mg-gold); }
.mg-agents .mg-agent-name {
  margin: 0;
  color: var(--mg-navy);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
}
.mg-agents .mg-agent-role {
  margin: 3px 0 0;
  color: var(--mg-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.mg-agents .mg-agents-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.mg-agents .mg-agents-cta a {
  background: var(--mg-navy);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 4px;
  transition: opacity .2s ease;
}
.mg-agents .mg-agents-cta a:hover { opacity: .9; }

@media (max-width: 980px) {
  .mg-agents .mg-agents-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .mg-agents .mg-agents-grid { grid-template-columns: 1fr; }
  .mg-agents .mg-agents-cta { justify-content: center; }
}


/* ==========================================================================
   8. INFORMATIONAL PAGE TEMPLATE  (.mg-info)
   Used by all 14 buyer/seller cluster pages. Per-page differences (the <main>
   copy + which nav item has .is-active) live in the markup, not here.
   ========================================================================== */
.mg-info .mg-info-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "content nav";
  gap: 50px;
  align-items: start;
}
.mg-info .mg-info-main { grid-area: content; min-width: 0; }
.mg-info .mg-info-nav  { grid-area: nav; position: sticky; top: 160px; } /* header height (~128px) + ~32px gap; adjust to your header */

/* Main content */
.mg-info .mg-eyebrow {
  margin: 0 0 14px;
  color: var(--mg-gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mg-info .mg-title {
  margin: 0 0 22px;
  color: var(--mg-heading);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: clamp(32px, 4.4vw, 46px);
}
.mg-info .mg-lead {
  margin: 0 0 28px;
  color: var(--mg-heading);
  font-size: 19px;
  line-height: 1.6;
  font-weight: 600;
}
.mg-info .mg-info-main h2 {
  margin: 38px 0 16px;
  color: var(--mg-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 2.6vw, 28px);
}
.mg-info .mg-info-main p {
  margin: 0 0 18px;
  color: var(--mg-text);
  font-size: 16.5px;
  line-height: 1.75;
}
.mg-info .mg-info-main p strong { color: var(--mg-heading); font-weight: 800; }
.mg-info .mg-info-main p a,
.mg-info .mg-info-main li a {
  color: var(--mg-gold-h);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

/* Challenges list — gold dot markers */
.mg-info .mg-chal { list-style: none; margin: 0 0 18px; padding: 0; }
.mg-info .mg-chal li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--mg-text);
  font-size: 16.5px;
  line-height: 1.6;
}
.mg-info .mg-chal li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mg-gold);
}
.mg-info .mg-chal li strong { color: var(--mg-heading); font-weight: 800; }

/* "How we help" list — gold house icons */
.mg-info .mg-help { list-style: none; margin: 0 0 18px; padding: 0; }
.mg-info .mg-help li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 14px;
  color: var(--mg-text);
  font-size: 16.5px;
  line-height: 1.6;
}
.mg-info .mg-help li svg {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  fill: var(--mg-gold);
  margin-top: 1px;
}

/* Numbered steps timeline (process pages) */
.mg-info .mg-steps { list-style: none; margin: 6px 0 18px; padding: 0; }
.mg-info .mg-steps li {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 26px;
}
.mg-info .mg-steps li:last-child { padding-bottom: 0; }
.mg-info .mg-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 46px;
  bottom: 2px;
  width: 2px;
  background: rgba(245, 184, 30, 0.35);
}
.mg-info .mg-step-num {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--mg-gold);
  color: var(--mg-navy);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.mg-info .mg-step-body { padding-top: 6px; }
.mg-info .mg-step-body h3 {
  margin: 0 0 6px;
  color: var(--mg-heading);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}
.mg-info .mg-step-body p { margin: 0; }

/* Disclaimer / note callout (first-time, mortgages, offers, closing, etc.) */
.mg-info .mg-note {
  margin: 6px 0 18px;
  padding: 14px 18px;
  background: rgba(29, 32, 57, 0.04);
  border-left: 3px solid var(--mg-gold);
  border-radius: 6px;
  color: #5d5d67;
  font-size: 14.5px;
  line-height: 1.6;
}

/* CTA button */
.mg-info .mg-cta {
  display: inline-block;
  margin-top: 14px;
  background: var(--mg-gold);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 4px;
  transition: background .2s ease;
}
.mg-info .mg-cta:hover { background: var(--mg-gold-h); }

/* Section nav card (upper right) */
.mg-info .mg-nav-card {
  background: #f7f8fb;
  border: 1px solid #e8eaf1;
  border-radius: 12px;
  padding: 22px 20px;
}
.mg-info .mg-nav-h {
  margin: 0 0 14px;
  padding: 0 12px;
  color: var(--mg-gold-h);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mg-info .mg-nav-list { list-style: none; margin: 0; padding: 0; }
.mg-info .mg-nav-list li { margin: 0; }
.mg-info .mg-nav-list a {
  display: block;
  padding: 11px 14px;
  border-radius: 7px;
  color: var(--mg-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.mg-info .mg-nav-list a:hover { background: #fff; color: var(--mg-gold-h); }
.mg-info .mg-nav-list a.is-active {
  background: rgba(245, 184, 30, 0.16);
  color: var(--mg-heading);
  font-weight: 800;
  border-left: 3px solid var(--mg-gold);
  padding-left: 11px;
}

@media (max-width: 900px) {
  .mg-info .mg-info-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "nav" "content";
    gap: 30px;
  }
  .mg-info .mg-info-nav { position: static; }
}
@media (max-width: 600px) {
  .mg-info .mg-lead { font-size: 18px; }
  .mg-info .mg-info-main p,
  .mg-info .mg-chal li,
  .mg-info .mg-help li,
  .mg-info .mg-step-body p { font-size: 16px; }
}


/* ==========================================================================
   9. AGENT PROFILE  (.mg-profile)
   Shared by all four agent pages. Photo/name/role/phone/email/bio are markup.
   ========================================================================== */
.mg-profile .mg-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.mg-profile .mg-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  display: block;
  background: #d8dde6;
}
.mg-profile .mg-contact {
  margin-top: 24px;
  background: var(--mg-navy);
  border-radius: 12px;
  padding: 28px 30px;
}
.mg-profile .mg-contact-h {
  margin: 0 0 20px;
  color: var(--mg-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mg-profile .mg-contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.mg-profile .mg-contact-row:last-of-type { margin-bottom: 0; }
.mg-profile .mg-contact-ico {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(245, 184, 30, 0.14);
  color: var(--mg-gold);
  display: flex; align-items: center; justify-content: center;
}
.mg-profile .mg-contact-ico svg { width: 19px; height: 19px; fill: currentColor; }
.mg-profile .mg-contact-text { display: flex; flex-direction: column; min-width: 0; }
.mg-profile .mg-contact-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  margin-bottom: 2px;
}
.mg-profile .mg-contact-text a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  word-break: break-word;
  transition: color .2s ease;
}
.mg-profile .mg-contact-text a:hover { color: var(--mg-gold); }
.mg-profile .mg-cta {
  display: block;
  text-align: center;
  margin-top: 24px;
  background: var(--mg-gold);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 24px;
  border-radius: 4px;
  transition: background .2s ease;
}
.mg-profile .mg-cta:hover { background: var(--mg-gold-h); }
.mg-profile .mg-eyebrow {
  margin: 0 0 14px;
  color: var(--mg-gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mg-profile .mg-name {
  margin: 0 0 26px;
  color: var(--mg-heading);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(34px, 4.6vw, 52px);
}
.mg-profile .mg-bio p {
  margin: 0 0 20px;
  color: var(--mg-text);
  font-size: 17px;
  line-height: 1.75;
}
.mg-profile .mg-bio p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .mg-profile .mg-inner { grid-template-columns: 1fr; gap: 34px; }
  .mg-profile .mg-photo { max-width: 440px; }
}
@media (max-width: 600px) {
  .mg-profile .mg-name { font-size: 32px; }
  .mg-profile .mg-bio p { font-size: 16px; }
  .mg-profile .mg-contact { padding: 24px; }
}


/* ==========================================================================
   10. FREE HOME EVALUATION — INTRO  (.mg-fhe)
   Sits above the Elementor Forms widget.
   ========================================================================== */
.mg-fhe .mg-fhe-lead {
  margin: 0 0 22px;
  color: var(--mg-heading);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600;
}
.mg-fhe .mg-fhe-text {
  margin: 0 0 22px;
  color: var(--mg-text);
  font-size: 17px;
  line-height: 1.75;
}
.mg-fhe .mg-fhe-text strong { color: var(--mg-heading); font-weight: 800; }
.mg-fhe .mg-fhe-sub {
  margin: 34px 0 0;
  color: var(--mg-heading);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.mg-fhe .mg-fhe-sub::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 16px;
  background: var(--mg-gold);
  border-radius: 2px;
}
.mg-fhe .mg-fhe-privacy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(29, 32, 57, 0.04);
  border-left: 3px solid var(--mg-gold);
  border-radius: 6px;
}
.mg-fhe .mg-fhe-privacy svg {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  fill: var(--mg-gold);
  margin-top: 1px;
}
.mg-fhe .mg-fhe-privacy p {
  margin: 0;
  color: #5d5d67;
  font-size: 14.5px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .mg-fhe .mg-fhe-lead { font-size: 18px; }
  .mg-fhe .mg-fhe-text { font-size: 16px; }
}


/* ==========================================================================
   11. BLOG POST  (.mg-post) + RELATED POSTS  (.mg-related)
   ========================================================================== */
.mg-post {
  /* darker link gold for readable inline links on white; scoped to posts */
  --mg-gold-h: #b07f08;
  --mg-text:   #43434d;
}
.mg-post .mg-post-inner { max-width: 760px; margin: 0 auto; }
.mg-post .mg-eyebrow {
  margin: 0 0 12px;
  color: var(--mg-gold-h);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mg-post .mg-title {
  margin: 0 0 8px;
  color: var(--mg-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(30px, 5vw, 44px);
}
.mg-post .mg-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  margin: 22px 0 30px;
}
.mg-post .mg-lead {
  margin: 0 0 26px;
  color: var(--mg-heading);
  font-size: 19.5px;
  line-height: 1.6;
  font-weight: 600;
}
.mg-post h2 {
  margin: 40px 0 14px;
  color: var(--mg-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-size: clamp(23px, 3vw, 30px);
}
.mg-post p {
  margin: 0 0 18px;
  color: var(--mg-text);
  font-size: 17px;
  line-height: 1.8;
}
.mg-post a {
  color: var(--mg-gold-h);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
/* List spacing within posts — keeps the following paragraph from crowding the last bullet */
.mg-post ul,
.mg-post ol {
  margin: 0 0 30px;
  padding-left: 22px;
  color: var(--mg-text);
  font-size: 17px;
  line-height: 1.8;
}
.mg-post li { margin-bottom: 10px; }
.mg-post li:last-child { margin-bottom: 0; }
.mg-post li strong { color: var(--mg-heading); font-weight: 800; }
.mg-post .mg-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 6px 0 24px;
}
.mg-post .mg-solution {
  margin: 22px 0 26px;
  padding: 20px 24px;
  background: rgba(245, 184, 30, 0.08);
  border-left: 4px solid var(--mg-gold);
  border-radius: 8px;
}
.mg-post .mg-sol-label {
  margin: 0 0 12px;
  color: var(--mg-gold-h);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mg-post .mg-solution ul { list-style: none; margin: 0; padding: 0; }
.mg-post .mg-solution li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--mg-text);
  font-size: 16.5px;
  line-height: 1.6;
}
.mg-post .mg-solution li:last-child { margin-bottom: 0; }
.mg-post .mg-solution li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mg-gold);
}
.mg-post .mg-cta-box {
  margin: 38px 0 10px;
  padding: 30px 32px;
  background: var(--mg-navy);
  border-radius: 14px;
  text-align: center;
}
.mg-post .mg-cta-box h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  line-height: 1.25;
}
.mg-post .mg-cta-box p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16.5px;
}
.mg-post .mg-cta-btn {
  display: inline-block;
  background: var(--mg-gold);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 4px;
  transition: background .2s ease;
}
.mg-post .mg-cta-btn:hover { background: var(--mg-gold-h); }

@media (max-width: 600px) {
  .mg-post .mg-lead { font-size: 18px; }
  .mg-post p { font-size: 16.5px; }
  .mg-post .mg-cta-box { padding: 26px 22px; }
}

/* Related posts — add class "mg-related" to the Elementor Posts/Related widget.
   Targets the standard Elementor "Posts" widget markup. If you use a Loop Grid,
   the inner class names differ and these selectors need adjusting. */
.mg-related { font-family: var(--mg-font); }
.mg-related .elementor-post {
  background: #fff;
  border: 1px solid #e8eaf1;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mg-related .elementor-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(29, 32, 57, 0.10);
}
.mg-related .elementor-post__thumbnail { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0; }
.mg-related .elementor-post__thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.mg-related .elementor-post__text { padding: 16px 18px 18px; }
.mg-related .elementor-post__title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.mg-related .elementor-post__title a { color: var(--mg-heading); text-decoration: none; font-weight: 800; }
.mg-related .elementor-post__title a:hover { color: #b07f08; }
.mg-related .elementor-post__meta-data { color: #8a8a93; font-size: 12.5px; margin-bottom: 8px; }
.mg-related .elementor-post__excerpt p { color: #4d4d57; font-size: 14.5px; line-height: 1.6; }
.mg-related .elementor-post__read-more {
  color: #b07f08; font-weight: 700; text-decoration: none;
  letter-spacing: 0.04em; font-size: 14px;
}
.mg-related .elementor-post__read-more:hover { text-decoration: underline; }


/* ==========================================================================
   12. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .mg-expertise *, .mg-hero *, .mg-agents *,
  .mg-info *, .mg-profile *, .mg-post * { transition: none !important; }
}


/* ==========================================================================
   13. LISTING CARD  (.mg-listing-card) — Elementor Loop Item
   --------------------------------------------------------------------------
   Add each mg- class below in the widget's  Advanced ▸ CSS Classes  field.

   STRUCTURE (Loop Item):
     Container .mg-listing-card
       Container .mg-listing-media
         Image   ............ Dynamic: Featured Image
         Heading .mg-listing-badge ...... Dynamic: Post Terms ▸ Listing Status
       Container .mg-listing-body
         Container .mg-listing-row
           Container .mg-listing-info
             Heading .mg-listing-address-1 .. Dynamic: Post Title (street)
             Heading .mg-listing-address-2 .. Dynamic: Post Terms ▸ Listing Area
             Heading .mg-listing-price ...... Dynamic: ACF ▸ Price  (Before: $)
           Icon List .mg-listing-meta ....... items: Beds, Baths (, Sq Ft)
       Button .mg-listing-btn ............... Dynamic link: Post URL

   NOTE: colours are forced with !important so they win over Elementor's own
   widget/global styles. Leave the widget's own text Color unset in Elementor.
   ========================================================================== */
.mg-listing-card, .mg-listing-card * { box-sizing: border-box; }

.mg-listing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e8dcc0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(27, 32, 57, 0.07);
  transition: transform .25s ease, box-shadow .25s ease;
  font-family: var(--mg-font);
}
.mg-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(27, 32, 57, 0.15);
}

/* ---- media + status badge ---- */
.mg-listing-media { position: relative; line-height: 0; }
.mg-listing-media .elementor-widget-image,
.mg-listing-media img { width: 100%; margin: 0; }
.mg-listing-media img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  height: 100%;
  display: block;
}
.mg-listing-badge { position: absolute; top: 0; left: 0; z-index: 2; line-height: 1; }
.mg-listing-badge .elementor-heading-title {
  display: inline-block;
  background: var(--mg-gold);
  color: var(--mg-navy) !important;   /* blue text — high contrast on gold */
  font-family: var(--mg-font);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .7em 1.2em;
  border-radius: 0 0 8px 0;
}

/* ---- body + two-column row ---- */
.mg-listing-body {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  padding: 1.25rem 1.3rem 1.4rem;
}
.mg-listing-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.mg-listing-info { min-width: 0; }
/* kill Elementor's inter-widget gap so the stylesheet controls the spacing */
.mg-listing-info { gap: 0 !important; }
.mg-listing-info > .elementor-widget,
.mg-listing-info > .elementor-element { margin: 0 !important; }

/* street line — navy */
.mg-listing-address-1 .elementor-heading-title {
  margin: 0;
  color: var(--mg-navy) !important;
  font-family: var(--mg-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 1.02rem;
  line-height: 1.2;
}
/* area line (BRANTFORD, ON) — gold, tucked close under the street line */
.mg-listing-address-2 .elementor-heading-title {
  margin: .04rem 0 0;                 /* tight gap under street line */
  color: #b07f08 !important;          /* gold */
  font-family: var(--mg-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .82rem;
}
/* price — navy, bolder + a touch larger */
.mg-listing-price .elementor-heading-title {
  margin: .55rem 0 0;
  color: var(--mg-navy) !important;
  font-family: var(--mg-font);
  font-weight: 800 !important;
  font-size: 1.7rem;
  line-height: 1.1;
}

/* ---- beds / baths / sqft (Icon List) — bigger icons + text ---- */
.mg-listing-meta { flex: 0 0 auto; }
.mg-listing-meta .elementor-icon-list-items {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin: 0;
}
.mg-listing-meta .elementor-icon-list-item { margin: 0 !important; align-items: center; }
.mg-listing-meta .elementor-icon-list-icon { display: flex; }
.mg-listing-meta .elementor-icon-list-icon i { color: #b07f08; font-size: 24px; }
.mg-listing-meta .elementor-icon-list-icon svg { fill: #b07f08; width: 24px; height: 24px; }
.mg-listing-meta .elementor-icon-list-text {
  color: var(--mg-navy) !important;
  font-family: var(--mg-font);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ---- full-width button — taller, larger label ---- */
.mg-listing-btn .elementor-button {
  width: 100%;
  justify-content: center;
  gap: .45em;
  background: var(--mg-gold);
  color: #fff;
  font-family: var(--mg-font);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .9rem;
  border-radius: 0;
  padding: 1.2em 1em;
  transition: background .2s ease;
}
.mg-listing-btn .elementor-button:hover { background: var(--mg-gold-h); color: #fff; }

/* OPTIONAL — warmer "reference" look: swap the badge + button background to a
   muted bronze and keep white text. Uncomment to use.
   .mg-listing-badge .elementor-heading-title { background: #a98b53; color: #fff !important; }
   .mg-listing-btn .elementor-button { background: #a98b53; }
   .mg-listing-btn .elementor-button:hover { background: #957848; }  */

@media (max-width: 380px) {
  .mg-listing-price .elementor-heading-title { font-size: 1.45rem; }
  .mg-listing-meta .elementor-icon-list-text { font-size: .82rem; }
}


/* ==========================================================================
   14. AGENT CARD  (.mg-agent-card) — Single Listing page
   --------------------------------------------------------------------------
   Output by the [munir_agent_card] shortcode (WPCode snippet). Place a
   Shortcode widget on the Single Listing template:  [munir_agent_card]
   No display plugin required; reads the listing's linked Agent via ACF.
   ========================================================================== */
.mg-agent-card { box-sizing: border-box; }
.mg-agent-card * { box-sizing: border-box; }

.mg-agent-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid #e8dcc0;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 2px 12px rgba(27, 32, 57, 0.07);
  font-family: var(--mg-font);
}

/* photo */
.mg-agent-photo { flex: 0 0 auto; line-height: 0; }
.mg-agent-photo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;           /* change to 50% for a circular photo */
  display: block;
}

/* info column */
.mg-agent-info { display: flex; flex-direction: column; min-width: 0; }
.mg-agent-eyebrow {
  margin: 0;
  color: #b07f08;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mg-agent-name {
  margin: .14rem 0 0;
  color: var(--mg-navy);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
}
.mg-agent-title {
  margin: .04rem 0 0;
  color: var(--mg-text);
  font-size: .86rem;
  font-weight: 600;
}

/* action buttons */
.mg-agent-actions { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.mg-agent-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .6em 1.05em;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.mg-agent-actions a.mg-agent-call  { background: var(--mg-navy); color: #fff; }
.mg-agent-actions a.mg-agent-call:hover  { background: #2a3156; color: #fff; }
.mg-agent-actions a.mg-agent-email { background: var(--mg-gold); color: #fff; }
.mg-agent-actions a.mg-agent-email:hover { background: var(--mg-gold-h); color: #fff; }
.mg-agent-actions a svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 420px) {
  .mg-agent-card { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================================
   15. LISTING GALLERY  (.mg-gallery) — Single Listing page
   --------------------------------------------------------------------------
   Output by [munir_listing_gallery]. Featured image + status badge; click
   opens Elementor's lightbox carousel (thumbnail pagination at the bottom).
   Requires Elementor's lightbox enabled (Site Settings ▸ Lightbox).
   ========================================================================== */
.mg-gallery { font-family: var(--mg-font); }

.mg-gallery-hero {
  position: relative;
  display: block;
  line-height: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}
.mg-gallery-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .4s ease;
}
.mg-gallery-hero:hover img { transform: scale(1.03); }

/* status badge, tucked into the top-left corner (like the listing card) */
.mg-gallery-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  background: var(--mg-gold);
  color: var(--mg-navy);
  font-family: var(--mg-font);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6em 1.15em;
  border-radius: 0 0 8px 0;
}

.mg-gallery-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  background: rgba(27, 32, 57, .85);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .45em .85em;
  border-radius: 999px;
}
.mg-gallery-count svg { width: 15px; height: 15px; fill: currentColor; }

.mg-gallery-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ==========================================================================
   16. SINGLE LISTING PAGE  (.mg-sl-*) — Theme Builder Single template
   --------------------------------------------------------------------------
   Add each class in the widget's  Advanced ▸ CSS Classes  field.
   Gallery = Section 15, Agent card = Section 14 (no class needed on those).
   ========================================================================== */

/* Put class mg-sl-main on the MAIN column container. Its gap is zeroed here so
   the per-section margins below control the vertical rhythm exactly. */
.mg-sl-main { gap: 0 !important; }
.mg-sl-title   { margin-top: 26px !important; }  /* space below the image */
.mg-sl-price   { margin-top: 16px !important; }  /* address -> price */
.mg-sl-specs   { margin-top: 18px !important; }  /* price -> specs */
.mg-sl-desc    { margin-top: 22px !important; }  /* specs -> description */
.mg-sl-details { margin-top: 22px !important; }  /* description -> features (matches specs->desc) */
.mg-sl-map     { margin-top: 26px !important; }  /* features -> map */

/* Address / title (Heading) */
.mg-sl-title .elementor-heading-title {
  margin: 0;
  color: var(--mg-navy) !important;
  font-family: var(--mg-font);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 3.4vw, 36px);
}

/* Price (Heading) */
.mg-sl-price .elementor-heading-title {
  margin: 0;
  color: var(--mg-navy) !important;
  font-family: var(--mg-font);
  font-weight: 800 !important;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.1;
}

/* Beds / baths / sqft row (Icon List, horizontal) */
.mg-sl-specs .elementor-icon-list-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}
.mg-sl-specs .elementor-icon-list-item { margin: 0 !important; align-items: center; }
.mg-sl-specs .elementor-icon-list-icon i { color: #b07f08; font-size: 24px; }
.mg-sl-specs .elementor-icon-list-icon svg { fill: #b07f08; width: 24px; height: 24px; }
.mg-sl-specs .elementor-icon-list-text {
  color: var(--mg-navy) !important;
  font-family: var(--mg-font);
  font-weight: 700;
  font-size: 1rem;
}

/* Description (Text Editor) */
.mg-sl-desc, .mg-sl-desc p {
  color: var(--mg-text);
  font-family: var(--mg-font);
  font-size: 17px;
  line-height: 1.75;
}
.mg-sl-desc p { margin: 0 0 16px; }

/* Property details / features (from [munir_listing_details]) — gold label, navy value */
.mg-details { display: flex; flex-direction: column; gap: .55rem; font-family: var(--mg-font); }
.mg-detail { font-size: .98rem; line-height: 1.35; }
.mg-detail-k {
  color: #b07f08;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: .9em;
  margin-right: .45em;
}
.mg-detail-v { color: var(--mg-navy); font-weight: 700; }
.mg-detail-link {
  color: var(--mg-navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(176,127,8,.45);
  transition: color .2s ease, border-color .2s ease;
}
.mg-detail-link:hover { color: #b07f08; border-color: #b07f08; }

/* Map (Google Maps widget) — round the corners */
.mg-sl-map .elementor-widget-container,
.mg-sl-map iframe { border-radius: 14px; overflow: hidden; }
.mg-sl-map iframe { display: block; width: 100%; }

/* ---------- RIGHT COLUMN (sidebar) ---------- */

/* Sidebar wrapper — sticky, offset to clear the fixed header on scroll */
.mg-sl-sidebar {
  position: sticky;
  top: 140px;                 /* raise this if the top still tucks under the menu */
  align-self: flex-start;
}

/* Inquiry form card */
.mg-sl-formcard {
  background: #fff;
  border: 1px solid #e8dcc0;
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 2px 12px rgba(27, 32, 57, .07);
  font-family: var(--mg-font);
}
.mg-sl-formtitle .elementor-heading-title {
  margin: 0 0 .9rem;
  color: var(--mg-navy) !important;
  font-family: var(--mg-font);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
}

/* Elementor form fields + button, branded */
.mg-sl-form .elementor-field-group { margin-bottom: .7rem; }
.mg-sl-form .elementor-field-label {
  color: var(--mg-navy);
  font-family: var(--mg-font);
  font-weight: 700;
  font-size: .82rem;
}
.mg-sl-form .elementor-field.elementor-size-md,
.mg-sl-form textarea,
.mg-sl-form input:not([type=submit]) {
  border: 1px solid #d9dbe4 !important;
  border-radius: 8px !important;
  padding: .7em .85em !important;
  font-family: var(--mg-font) !important;
  color: var(--mg-navy) !important;
  background: #fff !important;
}
.mg-sl-form .elementor-field:focus,
.mg-sl-form textarea:focus,
.mg-sl-form input:not([type=submit]):focus {
  border-color: var(--mg-gold) !important;
  box-shadow: 0 0 0 3px rgba(245, 184, 30, .18) !important;
  outline: none !important;
}
.mg-sl-form .elementor-button[type=submit],
.mg-sl-form .elementor-button {
  width: 100%;
  justify-content: center;
  background: var(--mg-gold);
  color: #fff;
  font-family: var(--mg-font);
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .88rem;
  border-radius: 8px;
  padding: .95em 1em;
  transition: background .2s ease;
}
.mg-sl-form .elementor-button:hover { background: var(--mg-gold-h); color: #fff; }

@media (max-width: 1024px) {
  .mg-sl-sidebar { position: static; top: auto; }
}


/* ==========================================================================
   17. LISTINGS FILTER BAR  (.mg-filterbar / .mg-filters) — Listings page
   --------------------------------------------------------------------------
   Output by [munir_listing_filters]. "Filters" label + three dropdowns
   (Status / Area / Type) + Clear, horizontal on desktop and mobile.
   Each dropdown sizes to its longest option. Filters the listings_all
   Loop Grid via the URL (page reload).
   ========================================================================== */
.mg-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  font-family: var(--mg-font);
}
.mg-filters-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--mg-navy);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mg-filters {
  display: flex;
  flex-wrap: wrap;         /* stays horizontal; wraps to a new row if very tight */
  align-items: center;
  gap: .6rem;
  margin: 0;
}
.mg-filters .mg-filter {
  width: auto;             /* sizes to the longest option */
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231b2039' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7em center;
  background-size: .75em;
  border: 1px solid #d9dbe4;
  border-radius: 8px;
  padding: .55em 2em .55em .85em;   /* room for the arrow + a bit of breathing space */
  font-family: var(--mg-font);
  font-size: .85rem;
  font-weight: 600;
  color: var(--mg-navy);
  cursor: pointer;
}
.mg-filters .mg-filter:focus {
  border-color: var(--mg-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 184, 30, .18);
}
.mg-filter-clear {
  font-family: var(--mg-font);
  font-size: .8rem;
  font-weight: 700;
  color: #b07f08;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .4em .3em;
  white-space: nowrap;
}
.mg-filter-clear:hover { color: var(--mg-navy); }


/* ==========================================================================
   18. PAGE HEADING  (.mg-pagehead) — reusable page intro
   --------------------------------------------------------------------------
   Title + lead + body + optional gold-accent subheading + inline links,
   matching the Free Home Evaluation intro style. Content-only HTML in an
   Elementor HTML widget; sits in the boxed container. Reuse on any page.
   ========================================================================== */
.mg-pagehead { font-family: var(--mg-font); width: 100%; }
.mg-pagehead * { box-sizing: border-box; }

.mg-pagehead .mg-pagehead-title {
  margin: 0 0 20px;
  color: var(--mg-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(32px, 4.4vw, 48px);
}
.mg-pagehead .mg-pagehead-lead {
  margin: 0 0 18px;
  color: var(--mg-heading);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600;
}
.mg-pagehead .mg-pagehead-text {
  margin: 0 0 18px;
  color: var(--mg-text);
  font-size: 17px;
  line-height: 1.75;
}
.mg-pagehead .mg-pagehead-text:last-child { margin-bottom: 0; }

/* Gold-accent subheading (H3), same treatment as the FHE subhead */
.mg-pagehead .mg-pagehead-sub {
  margin: 32px 0 14px;
  color: var(--mg-heading);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.mg-pagehead .mg-pagehead-sub::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 16px;
  background: var(--mg-gold);
  border-radius: 2px;
}

/* Inline links (readable gold on white, matches your content links) */
.mg-pagehead a {
  color: #b07f08;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}
.mg-pagehead a:hover { color: var(--mg-navy); }

@media (max-width: 600px) {
  .mg-pagehead .mg-pagehead-lead { font-size: 18px; }
  .mg-pagehead .mg-pagehead-text { font-size: 16px; }
}


/* ==========================================================================
   13b/15b. LISTING HIGHLIGHT BADGE (.mg-listing-highlight / .mg-gallery-hl)
   Top-RIGHT badge for Listing Highlights (Featured / Open House).
   Navy background, white text — same size/box as the gold Status badge,
   mirrored to the top-right corner.
   ========================================================================== */

/* On the listing CARD (Loop Item). Put class mg-listing-highlight on a Heading
   widget (Dynamic: Post Terms > Listing Highlights) inside .mg-listing-media.
   Box matches .mg-listing-badge exactly (font .9rem, padding .7em 1.2em). */
.mg-listing-highlight {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
}
.mg-listing-highlight .elementor-heading-title {
  display: inline-block;
  background: var(--mg-navy);
  color: #fff;
  font-family: var(--mg-font);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .7em 1.2em;
  border-radius: 0 0 0 8px;   /* mirrors the status badge into the top-right corner */
}
.mg-listing-highlight .elementor-heading-title:empty { display: none; }

/* On the SINGLE listing gallery image — matches .mg-gallery-badge box */
.mg-gallery-hl {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  background: var(--mg-navy);
  color: #fff;
  font-family: var(--mg-font);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6em 1.15em;
  border-radius: 0 0 0 8px;
}


/* ==========================================================================
   19. CTA BUTTON  (.mg-cta) — reusable centered navy button
   --------------------------------------------------------------------------
   Same style as the "Meet Our Team" button (.mg-agents-cta). Content-only
   HTML in an Elementor HTML widget. Reuse anywhere you want that button.
   ========================================================================== */
.mg-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  font-family: var(--mg-font);
}
.mg-cta a {
  display: inline-block;
  background: var(--mg-navy);
  color: #fff;
  text-decoration: none;
  font-family: var(--mg-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 4px;
  transition: opacity .2s ease;
}
.mg-cta a:hover { opacity: .9; }


/* ==========================================================================
   20. LISTINGS HERO  (.mg-lhero) — prominent page hero
   --------------------------------------------------------------------------
   Bold navy hero with gold accent + soft glow. Content-only HTML in an
   Elementor HTML widget at the TOP of the Listings page.
   Optional photo background: add  style="--hero-img:url('...')"  on the
   <section> and a Brantford image shows behind a navy overlay.
   ========================================================================== */
.mg-lhero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  background: linear-gradient(135deg, #171b30 0%, #262c4c 60%, #2f375c 100%);
  padding: clamp(48px, 7vw, 96px) clamp(26px, 5vw, 68px);
  font-family: var(--mg-font);
}
.mg-lhero * { box-sizing: border-box; }

/* optional photo layer (only shows if --hero-img is set), tinted by the navy bg */
.mg-lhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-img, none) center / cover no-repeat;
  opacity: .30;
}
/* soft gold glow, top-right */
.mg-lhero::after {
  content: "";
  position: absolute;
  top: -42%;
  right: -12%;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 30, .16), transparent 62%);
  pointer-events: none;
}

.mg-lhero-inner { max-width: 780px; }

.mg-lhero-eyebrow {
  margin: 0 0 16px;
  color: var(--mg-gold);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.mg-lhero-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-size: clamp(34px, 5.4vw, 58px);
}
.mg-lhero-title::after {
  content: "";
  display: block;
  width: 68px;
  height: 4px;
  margin: 22px 0 0;
  background: var(--mg-gold);
  border-radius: 2px;
}
.mg-lhero-lead {
  margin: 22px 0 0;
  max-width: 660px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.7;
  font-weight: 500;
}

@media (max-width: 600px) {
  .mg-lhero { border-radius: 14px; }
  .mg-lhero::after { width: 320px; height: 320px; }
}
