/* === JMG Custom Styles === */

/* Accent color override */
:root {
  --wp--preset--color--accent: #289de9;
  --jmg-overlay: rgba(0,0,0,.5);
  --jmg-overlay-dark: rgba(0,0,0,.8);
  --jmg-text-dark: #333;
  --jmg-text-muted: #aaa;
  --jmg-border: #eee;
  --jmg-bg-light: #f8f8f8;
  --jmg-blue: #289de9;
  --jmg-blue-hover: #3ca5ea;
  --jmg-green: #55a555;
  --jmg-red: #ce4541;
}

/* Headings — Compass Sans (font family name has a space) */
h1, h2, h3, h4 {
  font-family: "Compass Sans", Georgia, serif;
  font-weight: 400;
  letter-spacing: 1px;
}

/* Links: inherit the surrounding text color, no underline; underline on hover/focus */
a,
a:visited {
  color: inherit;
  text-decoration: none;
}
a:hover,
a:focus-visible {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Footer links — underline that slides in on hover */
footer a:not(.wp-block-social-link-anchor) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s ease;
}
footer a:not(.wp-block-social-link-anchor):hover,
footer a:not(.wp-block-social-link-anchor):focus-visible {
  background-size: 100% 1px;
  text-decoration: none;
}
/* Buttons keep their own colors */
.wp-block-button__link:hover { text-decoration: none; }

/* Hero overlay for Cover blocks */
.jmg-hero-overlay .wp-block-cover__background {
  background-color: rgba(0,0,0,.5) !important;
}

/* Button styles */
.wp-block-button__link {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 0;
  padding: 14px 32px;
  transition: opacity .3s;
}
.wp-block-button__link:hover {
  opacity: 0.85;
}

/* Outline button variant */
.is-style-outline .wp-block-button__link {
  border: 2px solid currentColor;
  background: transparent;
}

/* Section spacing */
.jmg-section {
  padding: 80px 0;
}
.jmg-section-sm {
  padding: 48px 0;
}

/* As Seen In logo bar */
.jmg-logo-bar img {
  max-height: 40px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity .3s;
}
.jmg-logo-bar img:hover {
  opacity: 1;
  filter: none;
}

/* Testimonial carousel */
.jmg-testimonial-carousel {
  position: relative;
  width: 100%;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.jmg-tc-inner {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  align-items: center;
}
.jmg-tc-left {
  flex: 0 0 300px;
  padding-right: 60px;
  border-right: 1px solid rgba(255,255,255,0.4);
}
.jmg-tc-left h2 {
  font-family: "Compass Sans", Georgia, serif;
  color: #fff;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0 0 32px;
}
.jmg-tc-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.jmg-tc-nav button {
  background: none;
  border: none;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity .2s;
}
.jmg-tc-nav button:hover { opacity: 1; }
.jmg-tc-nav span {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}
.jmg-tc-right {
  flex: 1;
  padding-left: 60px;
}
.jmg-tc-quote { display: none; }
.jmg-tc-quote.active { display: block; }
.jmg-tc-quote p {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 20px;
}
.jmg-tc-attribution {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.jmg-tc-viewall a {
  display: inline-block;
  background: #fff;
  color: #000 !important;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  text-decoration: none !important;
  transition: opacity .2s;
}
.jmg-tc-viewall a:hover { opacity: 0.85; }

/* Neighborhood cards */
.jmg-neighborhood-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.jmg-neighborhood-card img {
  transition: opacity .3s;
}
.jmg-neighborhood-card:hover img {
  opacity: .8;
}

/* Mobile header: logo left, burger right, nothing else */
@media (max-width: 599px) {
  .jmg-header {
    min-height: 100px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    justify-content: space-between !important;
  }
  .jmg-header .wp-block-jetpack-contact-info { display: none !important; }
  .jmg-header .wp-block-site-logo { flex: 0 1 auto !important; }
  .jmg-header .wp-block-site-logo img { width: 237px !important; max-width: 65vw; height: auto; }
  .jmg-header .wp-block-navigation__responsive-container-open svg { width: 32px; height: 32px; }
}

/* Footer styling — white background */
.jmg-footer {
  background: #fff;
  color: #1e1e1e;
}
.jmg-footer a {
  color: #1e1e1e;
  text-decoration: none;
}
.jmg-footer a:hover {
  opacity: 0.6;
}

/* DRE number styling */
.jmg-dre {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.jmg-animate {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .jmg-section { padding: 48px 0; }
  .wp-block-button__link { padding: 12px 24px; }
  .jmg-tc-inner {
    flex-direction: column;
    padding: 48px 24px;
  }
  .jmg-tc-left {
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-right: 0;
    padding-bottom: 32px;
    margin-bottom: 32px;
    width: 100%;
  }
  .jmg-tc-right { padding-left: 0; }
}

/* Accessibility: links inside body text are underlined (WCAG 1.4.1) */
.wp-block-post-content p a,
.wp-block-post-content li a,
.wp-block-post-content td a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.wp-block-post-content p a:hover,
.wp-block-post-content li a:hover,
.wp-block-post-content td a:hover,
.wp-block-post-content p a:focus-visible,
.wp-block-post-content li a:focus-visible {
  text-decoration-thickness: 2px;
}


/* ── Header layout: desktop = top menu + phone + burger; tablet/phone (≤1180px, where the full menu and full-size logo no longer fit on one row) = logo + burger only ── */
.jmg-header .jmg-nav-burger { margin-left: 20px; flex: 0 0 auto; }
.jmg-header .jmg-nav-primary .wp-block-navigation__container { flex-wrap: nowrap !important; }
.jmg-header .jmg-nav-primary .wp-block-navigation-item { white-space: nowrap; }
.jmg-header .wp-block-site-logo { flex-shrink: 0 !important; } /* the menu gives way to the burger, never the logo */
@media (max-width: 1180px) {
  .jmg-header .jmg-nav-primary,
  .jmg-header .wp-block-jetpack-contact-info { display: none !important; }
  .jmg-header { justify-content: space-between !important; padding-left: 15px !important; padding-right: 15px !important; }
  .jmg-header .wp-block-site-logo { flex: 0 1 auto !important; }
}

/* ── Burger side menu: white 400px panel from the right, centered Compass Sans links ── */
.jmg-nav-burger .wp-block-navigation__responsive-container.is-menu-open {
  left: auto !important; right: 0 !important; width: 400px; max-width: 100vw;
  background: #ffffff !important; color: #000000 !important;
  box-shadow: -4px 0 24px rgba(0,0,0,.15); padding: 24px 32px !important;
}
.jmg-nav-burger .is-menu-open .wp-block-navigation__responsive-container-content { align-items: center !important; padding-top: 48px !important; }
.jmg-nav-burger .is-menu-open .wp-block-navigation__container { align-items: center !important; gap: 0 !important; width: 100%; }
.jmg-nav-burger .is-menu-open .wp-block-navigation-item { width: 100%; align-items: center !important; text-align: center; border-bottom: 1px solid #eeeeee; padding: 10px 0; }
.jmg-nav-burger .is-menu-open .wp-block-navigation-item .wp-block-navigation-item { border-bottom: 0; padding: 4px 0; }
.jmg-nav-burger .is-menu-open .wp-block-navigation-item__content {
  font-family: "Compass Sans", sans-serif !important; font-size: 21px !important; line-height: 28px;
  text-transform: none !important; letter-spacing: .5px !important; color: #000000 !important;
}
.jmg-nav-burger .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 17px !important; }
.jmg-nav-burger .is-menu-open .wp-block-navigation__responsive-container-close { color: #000000 !important; top: 24px; right: 24px; }


/* =====================================================================
   LOFTY IDX — styles for the Lofty shortcodes
   (Lives here, not in per-block "Additional CSS": WordPress mangles
   comments / multi-line selectors in block CSS.)
   ===================================================================== */

/* ── Featured / Sold listing GRID cards ── */
.lofty-feature-listing-grid { display: flex !important; flex-direction: column !important; align-items: center !important; max-width: 1300px; margin: 0 auto; }
.lofty-feature-listing-grid .lofty-grid-house-list { width: 100% !important; display: flex !important; flex-wrap: wrap !important; gap: 30px !important; justify-content: center; }
.lofty-feature-listing-grid .lofty-house-card-grid {
  width: calc(33.333% - 20px) !important; display: flex !important; flex-direction: column !important;
  border-radius: 0 !important; overflow: hidden !important; box-sizing: border-box !important; background: #000 !important; position: relative;
}
/* Photo — 1.94:1 */
.lofty-feature-listing-grid .lofty-house-img-grid { position: relative !important; width: 100% !important; aspect-ratio: 1.94 / 1 !important; height: auto !important; min-height: 0 !important; overflow: hidden !important; flex-shrink: 0 !important; }
.lofty-feature-listing-grid .lofty-house-img-grid a { display: block !important; position: absolute !important; inset: 0 !important; }
.lofty-feature-listing-grid .lofty-house-img-grid img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; filter: none !important; transform: none !important; transition: opacity .35s ease !important; }
/* Hover: photo washes out + black VIEW PROPERTY button */
.lofty-feature-listing-grid .lofty-house-img-grid .img-mask { display: block !important; position: absolute !important; inset: 0 !important; background: rgba(255,255,255,0) !important; transition: background .35s ease !important; z-index: 2 !important; pointer-events: none !important; }
.lofty-feature-listing-grid .lofty-house-card-grid:hover .lofty-house-img-grid img { opacity: .55 !important; }
.lofty-feature-listing-grid .lofty-house-card-grid:hover .lofty-house-img-grid .img-mask { background: rgba(255,255,255,.35) !important; }
.lofty-feature-listing-grid .lofty-house-img-grid::after {
  content: "VIEW PROPERTY"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #000; color: #fff; font-family: "Inter", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1.5px;
  padding: 22px 46px; white-space: nowrap; opacity: 0; transition: opacity .35s ease; z-index: 3; pointer-events: none;
}
.lofty-feature-listing-grid .lofty-house-card-grid:hover .lofty-house-img-grid::after { opacity: 1; }
/* Lofty extras we don't show */
.lofty-feature-listing-grid .lofty-house-mask-grid,
.lofty-feature-listing-grid .lofty_iconfont,
.lofty-feature-listing-grid .lofty-house-id,
.lofty-feature-listing-grid .lofty-mls-info-grid .lofty-mls-logo { display: none !important; }
/* Listing credit ("Listed by … of …") under the price */
.lofty-feature-listing-grid .lofty-mls-info-grid { order: 4 !important; display: flex !important; justify-content: center !important; margin: 12px 0 0 !important; }
.lofty-feature-listing-grid .lofty-mls-info-grid, .lofty-feature-listing-grid .lofty-mls-info-grid * { color: rgba(255,255,255,.75) !important; font-family: "Inter", sans-serif !important; font-size: 12px !important; letter-spacing: .5px !important; text-align: center !important; }
/* Black info panel under the photo, centered (35px 15px) */
.lofty-feature-listing-grid .lofty-house-info-grid {
  position: static !important; inset: auto !important; background: #000 !important; color: #fff !important;
  padding: 35px 15px !important; display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; flex: 1 !important;
}
.lofty-feature-listing-grid .jmg-street { order: 0; margin: 0 0 6px !important; color: #fff; font-family: "Compass Sans", sans-serif; font-size: 21px; font-weight: 400; line-height: 31.5px; letter-spacing: 1px; }
.lofty-feature-listing-grid .lofty-feature-address,
.lofty-feature-listing-grid .lofty-feature-address a {
  order: 1 !important; display: block !important; margin: 0 0 7px !important; color: #fff !important; text-decoration: none !important;
  font-family: "Inter", sans-serif !important; font-size: 14px !important; font-weight: 700 !important; line-height: 23.8px !important; letter-spacing: 1px !important; text-transform: uppercase !important;
}
.lofty-feature-listing-grid .lofty-house-base {
  order: 2 !important; margin: 0 0 7px !important; color: #fff !important;
  font-family: "Inter", sans-serif !important; font-size: 14px !important; font-weight: 700 !important; line-height: 23.8px !important; letter-spacing: 1px !important; text-transform: uppercase !important;
}
.lofty-feature-listing-grid .lofty-house-base span { color: #fff !important; }
.lofty-feature-listing-grid .lofty-house-base span + span::before { content: " | " !important; color: #fff !important; margin: 0 2px !important; }
.lofty-feature-listing-grid .lofty-house-price {
  order: 3 !important; position: static !important; inset: auto !important; background: transparent !important; padding: 0 !important; margin: 0 !important; z-index: auto !important; color: #fff !important;
  font-family: "Inter", sans-serif !important; font-size: 17px !important; font-weight: 700 !important; line-height: 23.8px !important; letter-spacing: 1px !important;
}
/* VIEW ALL button — black, 250 x 58 */
.lofty-feature-listing-grid .lofty-more {
  width: 250px !important; height: 58px !important; display: flex !important; align-items: center !important; justify-content: center !important;
  align-self: center !important; margin: 50px auto 0 !important; padding: 0 !important; border: 2px solid #000 !important; border-radius: 0 !important;
  background: #000 !important; color: #fff !important; cursor: pointer !important;
  font-family: "Inter", sans-serif !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 1.5px !important; text-transform: uppercase !important;
  transition: background .25s ease, color .25s ease !important;
}
.lofty-feature-listing-grid .lofty-more:hover { background: #fff !important; color: #000 !important; }
@media (max-width: 900px) { .lofty-feature-listing-grid .lofty-house-card-grid { width: calc(50% - 15px) !important; } }
@media (max-width: 600px) { .lofty-feature-listing-grid .lofty-house-card-grid { width: 100% !important; } }

/* ── HOME VALUATION widget — step 1 styled as a full-width band ── */
.lofty-home-valuation-content { position: relative !important; min-height: 532px !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: flex-start !important; text-align: left !important; padding: 80px max(24px, calc((100% - 1216px) / 2)) !important; box-sizing: border-box !important; }
.lofty-home-valuation-content .lofty-home-valuation-bg { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; z-index: 0 !important; }
.lofty-home-valuation-content .img-mask { position: absolute !important; inset: 0 !important; background: rgba(0,0,0,.45) !important; z-index: 1 !important; }
.lofty-home-valuation-content > *:not(.lofty-home-valuation-bg):not(.img-mask) { position: relative; z-index: 2; }
/* No step tracker on the first step */
.lofty-home-valuation-content .step-progress { display: none !important; }
.lofty-home-valuation-content > .title { color: #fff !important; font-family: "Compass Sans", sans-serif !important; font-size: 43px !important; font-weight: 400 !important; line-height: 1.3 !important; letter-spacing: 1px !important; margin: 0 0 24px !important; max-width: none !important; text-align: left !important; }
.lofty-home-valuation-content > .desc { color: #fff !important; font-family: "Inter", sans-serif !important; font-size: 14px !important; letter-spacing: 1px !important; margin: 0 0 40px !important; text-align: left !important; }
.lofty-home-valuation-step1 { width: 100% !important; max-width: 1105px !important; }
.lofty-home-valuation-step1 .address-body { display: flex !important; align-items: stretch !important; gap: 0 !important; height: auto !important; padding: 0 !important; background: transparent !important; }
.lofty-home-valuation-step1 .address-input-container { flex: 1 !important; background: #fff !important; position: relative; }
.lofty-home-valuation-step1 .address-input { width: 100% !important; height: 58px !important; border: 0 !important; outline: none; padding: 0 20px !important; background: #fff !important; color: #000 !important; font-family: "Inter", sans-serif !important; font-size: 16px !important; box-sizing: border-box !important; }
.lofty-home-valuation-step1 .shu-line { display: none !important; }
.lofty-home-valuation-step1 .unit-input { width: 90px !important; height: 58px !important; border: 0 !important; border-left: 1px solid #ddd !important; padding: 0 14px !important; background: #fff !important; font-family: "Inter", sans-serif !important; font-size: 16px !important; }
.lofty-home-valuation-step1 .lofty-next-btn {
  width: 350px !important; height: 58px !important; flex-shrink: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important;
  background: #000 !important; color: #fff !important; border: 2px solid #000 !important; border-radius: 0 !important; cursor: pointer !important;
  font-family: "Inter", sans-serif !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 1.5px !important; text-transform: uppercase !important;
}
.lofty-home-valuation-step1 .lofty-next-btn:hover { background: #fff !important; color: #000 !important; }
@media (max-width: 781px) {
  .lofty-home-valuation-content > .title { font-size: 32px !important; }
  .lofty-home-valuation-step1 .address-body { flex-wrap: wrap !important; }
  .lofty-home-valuation-step1 .lofty-next-btn { width: 100% !important; margin-top: 12px !important; }
}


/* ── SOLD / Past Transactions (lofty_idx_sold_listing) — black-panel cards ── */
.jmg-lofty-sold .lofty-listing-page > div:not(.lofty-result-listing):not(input) { display: none !important; } /* search bar + count hidden */
.jmg-lofty-sold .lofty-listing { display: flex !important; flex-wrap: wrap !important; gap: 30px !important; justify-content: center !important; }
.jmg-lofty-sold .lofty-house-item { width: calc(50% - 15px) !important; margin: 0 !important; display: flex !important; flex-direction: column !important; background: #000 !important; color: #fff !important; text-align: center !important; padding: 0 0 35px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.jmg-lofty-sold .lofty-house-img { position: relative !important; width: 100% !important; height: auto !important; aspect-ratio: 1.94 / 1 !important; margin: 0 0 35px !important; overflow: hidden !important; }
.jmg-lofty-sold .lofty-house-img a, .jmg-lofty-sold .lofty-house-img img { display: block; width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 0 !important; }
.jmg-lofty-sold .lofty-img-counts, .jmg-lofty-sold .lofty-house-mls-id, .jmg-lofty-sold .lofty-mls-info,
.jmg-lofty-sold .lofty-house-initial-price, .jmg-lofty-sold .lofty-trend-rate { display: none !important; }
/* "Sold on date" tag → black SOLD badge, top-right  */
.jmg-lofty-sold .lofty-status-tag, .jmg-lofty-sold .lofty-listing-page .lofty-status-tag, .jmg-lofty-sold .lofty-house-item .lofty-status-tag { position: absolute !important; top: 0 !important; right: 0 !important; left: auto !important; bottom: auto !important; font-size: 0 !important; background: #000 !important; border-radius: 0 !important; padding: 4px 35px !important; line-height: 23.8px !important; }
.jmg-lofty-sold .lofty-status-tag::after, .jmg-lofty-sold .lofty-listing-page .lofty-status-tag::after { content: "Sold" !important; font-family: "Inter", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.jmg-lofty-sold .lofty-house-item .jmg-street { order: 1; margin: 0 15px 6px !important; color: #fff; font-family: "Compass Sans", sans-serif; font-size: 21px; line-height: 31.5px; letter-spacing: 1px; }
.jmg-lofty-sold .lofty-item-address { order: 2 !important; margin: 0 15px 7px !important; }
.jmg-lofty-sold .lofty-item-address a, .jmg-lofty-sold .lofty-item-detail, .jmg-lofty-sold .lofty-item-detail span {
  color: #fff !important; text-decoration: none !important; font-family: "Inter", sans-serif !important; font-size: 14px !important; font-weight: 700 !important; line-height: 23.8px !important; letter-spacing: 1px !important; text-transform: uppercase !important;
}
.jmg-lofty-sold .lofty-item-detail { order: 3 !important; margin: 0 15px 7px !important; display: block !important; }
.jmg-lofty-sold .lofty-item-detail span + span::before { content: " | "; }
.jmg-lofty-sold .lofty-item-price { order: 4 !important; margin: 0 15px !important; }
.jmg-lofty-sold .lofty-item-price, .jmg-lofty-sold .lofty-item-price span { color: #fff !important; font-family: "Inter", sans-serif !important; font-size: 17px !important; font-weight: 700 !important; letter-spacing: 1px !important; }
/* Hover: whole card under a white veil + black VIEW PROPERTY button; no photo zoom */
.jmg-lofty-sold .lofty-house-item { position: relative !important; }
.jmg-lofty-sold .lofty-house-item::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.75); opacity: 0; transition: opacity .2s linear; z-index: 4; pointer-events: none; }
.jmg-lofty-sold .lofty-house-item::after { content: "VIEW PROPERTY"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 232px; height: 58px; display: flex; align-items: center; justify-content: center; background: #000; color: #fff; font-family: "Inter", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; opacity: 0; transition: opacity .2s linear; z-index: 5; pointer-events: none; }
.jmg-lofty-sold .lofty-house-item:hover::before, .jmg-lofty-sold .lofty-house-item:hover::after,
.jmg-lofty-sold .lofty-house-item:focus-within::before, .jmg-lofty-sold .lofty-house-item:focus-within::after { opacity: 1; }
.jmg-lofty-sold .lofty-house-img img, .jmg-lofty-sold .lofty-house-item .lofty-house-img:hover img, .jmg-lofty-sold .lofty-house-item:hover .lofty-house-img img { transform: none !important; opacity: 1 !important; transition: none !important; }
@media (max-width: 600px) { .jmg-lofty-sold .lofty-house-item { width: 100% !important; } }

.jmg-lofty-sold .lofty-item-detail, .jmg-lofty-sold .lofty-item-price, .jmg-lofty-sold .lofty-item-address { text-align: center !important; justify-content: center !important; display: flex !important; flex-wrap: wrap; }


/* Manual listing (our high-res photos) replaces its MLS twin: the card script flags the MLS duplicate */
.lofty-house-card-grid[data-jmg-duplicate], .lofty-house-item[data-jmg-duplicate] { display: none !important; }


/* ── Header: centered content area, 100px tall, 300px logo (desktop) ── */
@media (min-width: 1181px) {
  .jmg-header { min-height: 100px !important; box-sizing: border-box !important; padding-left: max(24px, calc((100% - 1410px) / 2)) !important; padding-right: max(24px, calc((100% - 1410px) / 2)) !important; }
  .jmg-header .wp-block-site-logo img { width: 300px !important; height: auto !important; }
}
/* Menu + phone: same type (Inter 15px, 1.5px letter-spacing) */
.jmg-header .jmg-nav-primary .wp-block-navigation-item__content,
.jmg-header .jmg-nav-primary a { font-size: 15px !important; }
.jmg-header .wp-block-navigation a,
.jmg-header .wp-block-navigation-item__content { letter-spacing: 1.5px !important; }
.jmg-header .wp-block-jetpack-contact-info,
.jmg-header .wp-block-jetpack-contact-info a,
.jmg-header .wp-block-jetpack-phone,
.jmg-header .wp-block-jetpack-phone a { font-family: "Inter", sans-serif !important; font-size: 15px !important; letter-spacing: 1.5px !important; line-height: 1.4 !important; }
/* Menu button: larger tap area (52 x 57) and wider lines */
.jmg-header .jmg-nav-burger .wp-block-navigation__responsive-container-open { width: 52px !important; height: 57px !important; padding: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.jmg-header .jmg-nav-burger .wp-block-navigation__responsive-container-open svg { width: 32px !important; height: 32px !important; transform: scaleX(1.4); }

/* ── Buttons: colors invert on hover (filled ↔ outline), 0.2s ── */
.wp-block-button__link { transition: background-color .2s ease, color .2s ease, border-color .2s ease !important; }
.wp-block-button__link:hover, .wp-block-button__link:focus-visible { opacity: 1 !important; }
.jm-outline-btn .wp-block-button__link:hover, .jm-outline-btn .wp-block-button__link:focus-visible { background-color: #000 !important; color: #fff !important; border-color: #000 !important; }
.jm-view-all-btn .wp-block-button__link:hover, .jm-view-all-btn .wp-block-button__link:focus-visible { background-color: transparent !important; color: #000 !important; border-color: #000 !important; }
.jm-hero-btn .wp-block-button__link:hover, .jm-hero-btn .wp-block-button__link:focus-visible { background-color: #fff !important; color: #000 !important; border-color: #fff !important; }

/* ── Sold badge: 32px tall, text centered in the box ── */
.jmg-lofty-sold .lofty-status-tag, .jmg-lofty-sold .lofty-listing-page .lofty-status-tag, .jmg-lofty-sold .lofty-house-item .lofty-status-tag { display: flex !important; align-items: center !important; justify-content: center !important; height: 32px !important; width: auto !important; min-width: 0 !important; letter-spacing: 0 !important; padding: 0 35px !important; line-height: 1 !important; box-sizing: border-box !important; }
.jmg-lofty-sold .lofty-status-tag::after, .jmg-lofty-sold .lofty-listing-page .lofty-status-tag::after { line-height: 1 !important; letter-spacing: 1px !important; }

/* ── Home valuation: address and unit fields match (square, white, divider line) ── */
.lofty-home-valuation-step1 .address-input, .lofty-home-valuation-step1 .unit-input { border-radius: 0 !important; }
.lofty-home-valuation-step1 .unit-input { background: #fff !important; color: #000 !important; border: 0 !important; border-left: 1px solid #ddd !important; font-family: "Inter", sans-serif !important; }


/* ── Quick search bar (Featured Properties): square white field + black button, like the home valuation bar ── */
.jmg-quick-search .lofty-search-input { height: 58px !important; border-radius: 0 !important; background: #fff !important; color: #000 !important; border: 1px solid #000 !important; padding: 0 20px !important; font-family: "Inter", sans-serif !important; font-size: 16px !important; letter-spacing: .5px !important; box-sizing: border-box !important; }
.jmg-quick-search .lofty-search-input::placeholder { color: #6b6b6b !important; }
.jmg-quick-search .lofty-search-input:focus { outline: 2px solid #000 !important; outline-offset: 2px !important; }
.jmg-quick-search .lofty-btn { height: 58px !important; min-width: 180px !important; padding: 0 46px !important; border-radius: 0 !important; background: #000 !important; color: #fff !important; border: 2px solid #000 !important; font-family: "Inter", sans-serif !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 1.5px !important; text-transform: uppercase !important; cursor: pointer !important; transition: background-color .2s ease, color .2s ease !important; }
.jmg-quick-search .lofty-btn:hover, .jmg-quick-search .lofty-btn:focus-visible { background: transparent !important; color: #000 !important; }

/* ── Home hero: content starts where the header logo starts (same 1410px content area) ── */
@media (min-width: 1181px) {
  .wp-block-cover .wp-block-group.alignfull:has(.jm-hero-content) { padding-left: max(24px, calc((100% - 1410px) / 2)) !important; padding-right: max(24px, calc((100% - 1410px) / 2)) !important; }
  .wp-block-cover .wp-block-group.alignfull:has(.jm-hero-content) .wp-block-group.alignwide { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
}
@media (max-width: 1180px) {
  .wp-block-cover .wp-block-group.alignfull:has(.jm-hero-content) { padding-left: 15px !important; padding-right: 15px !important; }
  .wp-block-cover .wp-block-group.alignfull:has(.jm-hero-content) .wp-block-group.alignwide { margin-left: 0 !important; margin-right: 0 !important; }
}

/* ── Home valuation: both fields' placeholder text in Inter, same gray; bolder subheading ── */
.lofty-home-valuation-step1 .address-input::placeholder,
.lofty-home-valuation-step1 .unit-input::placeholder { font-family: "Inter", sans-serif !important; font-size: 16px !important; letter-spacing: 1px !important; color: #6b6b6b !important; opacity: 1 !important; }
.lofty-home-valuation-step1 .address-input, .lofty-home-valuation-step1 .unit-input { font-family: "Inter", sans-serif !important; font-size: 16px !important; letter-spacing: 1px !important; }
.lofty-home-valuation-content > .desc { font-size: 17px !important; font-weight: 600 !important; letter-spacing: 1px !important; }

/* ── Areas of Expertise on phones: one full-width tile at a time ── */
@media (max-width: 600px) {
  .jm-areas { gap: 20px !important; }
  .jm-area { flex: 0 0 100% !important; max-width: none !important; }
}

/* ── Home Featured Listings: centered heading, four cards in one row (two on tablet, one on phone), 250 x 58 View All ── */
.jmg-home-featured > .wp-block-heading { max-width: 1300px !important; margin-left: auto !important; margin-right: auto !important; text-align: center !important; }
/* Cards keep one size (four across at full width); narrower screens wrap them onto centered rows */
.jmg-home-featured .lofty-feature-listing-grid .lofty-house-card-grid { width: 302px !important; max-width: 100% !important; flex: 0 0 auto !important; }
/* When four don't fit, two per row (2 + 2 rather than 3 + 1), then one per row on phones */
@media (max-width: 1360px) { .jmg-home-featured .lofty-feature-listing-grid .lofty-grid-house-list { max-width: 634px !important; } }
.jmg-home-featured .jm-view-all-btn .wp-block-button__link, .jmg-home-featured a.jm-view-all-btn { min-width: 250px !important; box-sizing: border-box !important; text-align: center !important; }

/* ── Search page filter bar: square white fields, black borders, black button (same look as the valuation bar) ── */
.lofty-listing-search { align-items: stretch !important; }
.lofty-listing-search .lofty-search-suggestion { height: 58px !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; background: #fff !important; border: 1px solid #000 !important; border-radius: 0 !important; box-sizing: border-box !important; display: flex !important; align-items: center !important; }
.lofty-listing-search .lofty-input-tags { display: flex !important; align-items: center !important; height: 56px !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; margin: 0 !important; overflow: hidden; }
.lofty-listing-search .lofty-search-input { height: 56px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #000 !important; padding: 0 12px !important; box-shadow: none !important; font-family: "Inter", sans-serif !important; font-size: 16px !important; letter-spacing: 1px !important; }
.lofty-listing-search .lofty-search-input::placeholder { font-family: "Inter", sans-serif !important; color: #6b6b6b !important; letter-spacing: 1px !important; opacity: 1 !important; }
.lofty-listing-search .lofty-search-input:focus { outline: none !important; }
.lofty-listing-search .lofty-search-suggestion:focus-within { outline: 2px solid #000 !important; outline-offset: 2px !important; }
.lofty-listing-search .lofty-filter-block { height: 58px !important; background: #fff !important; border: 1px solid #000 !important; border-radius: 0 !important; box-sizing: border-box !important; display: flex !important; align-items: center !important; }
.lofty-listing-search .lofty-filter-block .trigger, .lofty-listing-search .lofty-filter-block .lofty-show-name { font-family: "Inter", sans-serif !important; font-size: 15px !important; letter-spacing: 1px !important; color: #000 !important; }
.lofty-listing-search .lofty-filter-block .trigger { display: flex !important; align-items: center !important; }
.lofty-listing-search .lofty-filter-block:hover, .lofty-listing-search .lofty-filter-block:focus-within { background: #f5f5f5 !important; }
.lofty-listing-search .save-search.lofty-btn { height: 58px !important; min-width: 180px !important; padding: 0 30px !important; border-radius: 0 !important; background: #000 !important; color: #fff !important; border: 2px solid #000 !important; font-family: "Inter", sans-serif !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 1.5px !important; text-transform: uppercase !important; cursor: pointer !important; transition: background-color .2s ease, color .2s ease !important; }
.lofty-listing-search .save-search.lofty-btn:hover, .lofty-listing-search .save-search.lofty-btn:focus-visible { background: #fff !important; color: #000 !important; }
/* Lofty picks the full-width filter bar when the page loads wide; if the window then narrows (e.g. a tablet turned to portrait) the
   location box takes its own row and the filters wrap beneath it instead of running off the page */
@media (max-width: 1023px) {
  .lofty-listing-search { flex-wrap: wrap !important; row-gap: 12px !important; }
  .lofty-listing-search .lofty-search-suggestion { flex: 1 1 100% !important; max-width: 100% !important; margin-right: 0 !important; }
  .lofty-listing-search .lofty-multi-filter { flex-wrap: wrap !important; max-width: 100% !important; row-gap: 12px !important; margin-left: 0 !important; }
}
.lofty-sort-filter, .lofty-sort-filter * { font-family: "Inter", sans-serif !important; letter-spacing: .5px !important; }
.lofty-sort-filter { border-radius: 0 !important; }

/* ── Featured listing cards: address, price and listing credit only ── */
.lofty-feature-listing-grid .jmg-street,
.lofty-feature-listing-grid .lofty-house-base { display: none !important; }
/* Full photo (no crop) with the black panel beneath; tighter address-to-price spacing */
.lofty-feature-listing-grid .lofty-house-img-grid { aspect-ratio: auto !important; height: auto !important; }
.lofty-feature-listing-grid .lofty-house-img-grid a { position: relative !important; inset: auto !important; }
.lofty-feature-listing-grid .lofty-house-img-grid img { position: static !important; display: block !important; height: auto !important; object-fit: contain !important; }
.lofty-feature-listing-grid .lofty-feature-address { margin: 0 0 4px !important; }
.lofty-feature-listing-grid .lofty-feature-address a { margin: 0 !important; }
.lofty-feature-listing-grid .lofty-mls-info-grid { position: static !important; }
.lofty-feature-listing-grid .lofty-house-info-grid { flex: none !important; padding-bottom: 0 !important; }
.lofty-feature-listing-grid .lofty-mls-info-grid { margin: 0 !important; padding: 10px 15px 35px !important; background: #000 !important; }

/* ── Burger menu: parents only on desktop (the top bar shows their children); on tablet/phone the burger is the only menu, so children stay listed ── */
@media (min-width: 1181px) {
  .jmg-nav-burger .wp-block-navigation__submenu-container,
  .jmg-nav-burger .wp-block-navigation__submenu-icon { display: none !important; }
}

/* Team page cards: on hover the photo fades, a black frame draws around it (offset 20px) and a Learn More button appears */
.jmg-team-card .wp-block-image { position: relative; background: #ccc; }
.jmg-team-card .wp-block-image a { display: block; }
.jmg-team-card .wp-block-image img { display: block; transition: opacity .3s ease; }
@media (hover: hover) and (min-width: 769px) {
  .jmg-team-card .wp-block-image::before,
  .jmg-team-card .wp-block-image::after { content: ""; position: absolute; width: 0; height: 0; border: 2px solid transparent; pointer-events: none; z-index: 2; }
  .jmg-team-card .wp-block-image::before { top: 20px; left: 20px; }
  .jmg-team-card .wp-block-image::after { bottom: -20px; right: -20px; }
  .jmg-team-card:hover .wp-block-image img { opacity: .5; }
  .jmg-team-card:hover .wp-block-image::before,
  .jmg-team-card:hover .wp-block-image::after { width: 100%; height: 100%; }
  .jmg-team-card:hover .wp-block-image::before { border-top-color: #000; border-right-color: #000; transition: width .25s ease-out, height .25s ease-out .25s; }
  .jmg-team-card:hover .wp-block-image::after { border-bottom-color: #000; border-left-color: #000; transition: width .25s ease-out .5s, height .25s ease-out .75s, border-color .01s ease-out .5s; }
  .jmg-team-card .wp-block-image a::after { content: "Learn More"; position: absolute; left: calc(50% + 20px); bottom: 50px; transform: translateX(-50%); z-index: 3; background: #000; color: #fff; padding: 20px 46px; font-family: "Inter", sans-serif; font-size: 14px; font-weight: 700; line-height: 14px; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .3s ease; }
  .jmg-team-card:hover .wp-block-image a::after { opacity: 1; }
}

/* Agent page social icons (same look as the footer icons): black circles with white icons that invert on hover; Zillow shown as its logo image */
.jmg-agent-socials .wp-social-link { width: 36px; height: 36px; margin: 0; background: #000 !important; border: 2px solid #000; border-radius: 50%; }
.jmg-agent-socials .wp-social-link a { width: 100%; height: 100%; padding: 0; display: flex; align-items: center; justify-content: center; color: #fff !important; }
.jmg-agent-socials .wp-social-link svg { width: 18px; height: 18px; }
.jmg-agent-socials .wp-social-link svg, .jmg-agent-socials .wp-social-link svg * { fill: #fff; }
.jmg-agent-socials .wp-social-link:hover { background: #fff !important; border-color: #000; transform: none; }
.jmg-agent-socials .wp-social-link:hover a { color: #000 !important; }
.jmg-agent-socials .wp-social-link:hover svg, .jmg-agent-socials .wp-social-link:hover svg * { fill: #000; }
.jmg-agent-socials .zillow-link svg { display: none; }
.jmg-agent-socials .zillow-link a::before { content: ""; display: block; width: 18px; height: 18px; background: url(/wp-content/uploads/2026/06/ZI12TOB-e1781307130989.png) center/contain no-repeat; }
.jmg-agent-socials .zillow-link:hover a::before { background-image: url(/wp-content/uploads/2026/06/ZI12TOB-1.png); }

/* Footer type: body text in Compass Sans; contact details 14px uppercase, licence lines and disclaimer 16px */
footer .wp-block-jetpack-contact-info p,
footer .wp-block-jetpack-contact-info a,
footer .wp-block-jetpack-contact-info .wp-block-jetpack-address,
footer .wp-block-jetpack-contact-info .wp-block-jetpack-address * { font-family: "Compass Sans", "Inter", sans-serif; font-size: 14px !important; line-height: 22.4px; letter-spacing: 1.5px; text-transform: uppercase; }
footer h4.wp-block-heading { font-size: 21px !important; }
footer .wp-block-column.is-vertically-aligned-center > p { font-family: "Compass Sans", "Inter", sans-serif; font-size: 16px !important; line-height: 25.6px !important; letter-spacing: 1px; }
footer p, footer li, footer .wp-block-jetpack-contact-info a, footer p a { font-family: "Compass Sans", "Inter", sans-serif !important; }
footer img[alt="Compass"] { width: 186px; height: auto; }

/* Agent pages: detail labels like the brand agent pages (17px bold uppercase), values 16px */
.jmg-agent-detail strong { font-size: 17px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.jmg-agent-detail a { color: inherit; text-decoration: none; }
.jmg-agent-detail a:hover { text-decoration: underline; }

/* Page hero titles: 70px on desktop like the brand pages */
@media (min-width: 1025px) {
  .wp-block-cover h1.wp-block-post-title { font-size: 70px !important; line-height: 87.5px !important; }
}

/* Global type (brand settings): primary font Compass Sans for headings, secondary font Inter for body text.
   Desktop heading sizes h1 70 / h2 43 / h3 30 / h4 21 / h5 17 / h6 16px. Blocks with their own size keep it. */
:root {
  --global-primary-font-family: "Compass Sans", sans-serif;
  --global-secondary-font-family: "Inter", sans-serif;
  --global-body-font-family: "Compass Sans", "Inter", sans-serif;
}
/* Body text in Compass Sans, falling back to Inter if Compass Sans doesn't load. Buttons, form fields and small
   uppercase labels keep their own font. */
body { font-family: var(--global-body-font-family); font-size: 16px; }
:is(p, li, blockquote, cite, figcaption, address, dd, dt, td, th),
:is(p, li, blockquote, cite, figcaption, address, dd, dt, td, th).has-inter-font-family,
.jmg-reviews__text, .jmg-reviews__text p, .jmg-ig-cap { font-family: var(--global-body-font-family) !important; }
h1, h2, h3, h4, h5, h6 { font-family: var(--global-primary-font-family); font-weight: 400; letter-spacing: 1px; }
@media (min-width: 1025px) {
  h1 { font-size: 70px; line-height: 1.25; }
  h2 { font-size: 43px; line-height: 1.3; }
  h3 { font-size: 30px; line-height: 1.3; }
  h4 { font-size: 21px; line-height: 1.5; }
  h5 { font-size: 17px; line-height: 1.5; }
  h6 { font-size: 16px; line-height: 1.5; }
}

/* Home hero (brand layout): full screen; logo, two-line intro and two 250px buttons sit 100px above the bottom */
.header-cover:has(.jm-hero-content) { min-height: 100vh !important; }
.header-cover .wp-block-group.alignfull:has(.jm-hero-content) { min-height: 100vh !important; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 100px !important; box-sizing: border-box; }
.jm-hero-content .wp-block-image { margin: 0 0 56px !important; }
.jm-hero-content p { font-size: 16px; line-height: 25.6px !important; letter-spacing: 1px !important; }
.jm-hero-content .wp-block-buttons { margin-top: 24px !important; gap: 23px; }
.jm-hero-content .wp-block-button__link { width: 250px; box-sizing: border-box; text-align: center; padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 767px) {
  .header-cover .wp-block-group.alignfull:has(.jm-hero-content) { padding-bottom: 60px !important; }
  .jm-hero-content .wp-block-buttons { flex-wrap: wrap !important; }
}

/* Home "Your Goals" text column: 24px from the paragraph to the buttons, so the text block centres like the brand page */
.jm-vp .wp-block-column > .wp-block-buttons { margin-top: 0 !important; }

/* Home Valuation page: the valuation block is the top of the page (photo banner under the header), like the brand page */
.jmg-valuation-hero .lofty-home-valuation-content { min-height: 536px !important; justify-content: flex-start !important; padding: 224px max(24px, calc((100% - 1300px) / 2)) 0 !important; } /* lines up with the 1300px body column */
.jmg-valuation-hero .lofty-home-valuation-content .desc { font-size: 14px !important; margin-bottom: 0 !important; }
.jmg-valuation-hero .lofty-home-valuation-step1 { width: 100% !important; max-width: 1450px; margin-top: 21px !important; }
.jmg-valuation-hero .address-body { width: 100% !important; }
.jmg-valuation-hero .address-input-container { flex: 1 1 auto !important; min-width: 0; }
.jmg-valuation-hero .address-input { width: 100% !important; }
.jmg-valuation-hero .lofty-next-btn { width: 352px !important; flex: 0 0 352px; }
@media (max-width: 767px) { .jmg-valuation-hero .lofty-home-valuation-content { padding: 140px 24px 40px !important; } .jmg-valuation-hero .lofty-next-btn { width: 100% !important; flex-basis: 100%; } }

/* No zoom on hover anywhere: tiles and cards only fade */
:is(a, [class*="card"], [class*="tile"], .jm-area, figure):hover img { transform: none !important; }

/* Text inputs use the body font (Compass Sans, Inter fallback) everywhere */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea, select,
input::placeholder, textarea::placeholder { font-family: var(--global-body-font-family) !important; }

/* Photo tiles (Home "Explore Our Services", Contact quick links): brand gallery cards. On hover the bottom gradient
   deepens to a dark wash, the title rises and a faint underline appears beneath it. No zoom. */
.jm-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1300px; margin: 0 auto; }
.jm-service-card { position: relative; display: block; aspect-ratio: 1; overflow: hidden; text-decoration: none; }
.jm-service-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none !important; }
.jm-services .jm-service-card::after { display: none !important; }
.jm-services .jm-service-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background-color: transparent !important; background-image: linear-gradient(rgba(0,0,0,0) 76.6%, #000); opacity: .6; transition: background-color .3s; }
.jm-services .jm-service-card:hover::before { background-color: #000 !important; }
.jm-services .jm-service-card__label { position: absolute; left: 15px; right: 15px; bottom: 20px; z-index: 2; text-align: left; color: #fff; font-family: "Compass Sans", "Inter", sans-serif; font-size: 30px; line-height: 39px; letter-spacing: 1px; transition: transform .3s; }
.jm-services .jm-service-card__label::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; border-bottom: 1px solid #fff; opacity: 0; transition: .3s; }
.jm-services .jm-service-card:hover .jm-service-card__label { transform: translateY(-51px) !important; }
.jm-services .jm-service-card:hover .jm-service-card__label::after { opacity: .3; transform: translateY(20px); }
@media (max-width: 781px) { .jm-services { grid-template-columns: 1fr; max-width: 424px; } .jm-services .jm-service-card__label { font-size: 26px; } }

/* ── New Listings rows (neighborhood pages): every photo cropped to the same 3:2 frame so the cards line up ── */
.jmg-new-listings .lofty-feature-listing-grid .lofty-house-img-grid { aspect-ratio: 3 / 2 !important; }
.jmg-new-listings .lofty-feature-listing-grid .lofty-house-img-grid a { position: absolute !important; inset: 0 !important; }
.jmg-new-listings .lofty-feature-listing-grid .lofty-house-img-grid img { position: absolute !important; inset: 0 !important; height: 100% !important; object-fit: cover !important; }
.jmg-new-listings .lofty-feature-listing-grid .lofty-house-info-grid { justify-content: flex-start !important; }

/* Sections waiting on content (e.g. a market report still to be made in Lofty): editors see them, visitors don't */
body:not(.logged-in) .jmg-editor-only { display: none !important; }

/* Archive and search pages have no hero: leave room for the fixed header above the page title. */
body.archive .wp-site-blocks > main,
body.search .wp-site-blocks > main { padding-top: 80px; }