/*
 Theme Name:   Meta Realty Theme
 Theme URI:    https://rigital.co/
 Description:  This is a child theme built on top of Bricks Builder. Use this child theme to extend Bricks. https://bricksbuilder.io/
 Author:       Jack
 Author URI:   https://rigital.io/
 Template:     bricks
 Version:      0.9.0
 Text Domain:  bricks
*/


/*
 * Shared responsive header guard.
 *
 * Bricks renders the full desktop navigation through 1024px on the main site,
 * where the row is wider than the viewport. Use the existing mobile-menu DOM
 * at compact desktop/tablet widths and keep the control/CTA hit areas separate.
 * This stays in the already-enqueued child-theme stylesheet, so it adds no
 * request or script to the shared critical path.
 */
@media (max-width: 1199px) {
  #brx-header,
  #brx-header .header {
    max-width: 100%;
    min-width: 0;
  }

  #brx-header .header {
    flex-wrap: nowrap !important;
  }

  #brx-header .header__nav-bar-left {
    flex: 1 1 auto;
    flex-basis: auto;
    min-width: 0;
  }

  #brx-header .header__nav-menu-wrapper {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 44px;
    width: auto;
  }

  #brx-header .header__nav-menu {
    align-items: center;
    display: flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    min-width: 44px;
    width: 44px;
  }

  #brx-header .header__nav-menu .bricks-nav-menu-wrapper {
    display: none !important;
  }

  #brx-header .header__nav-menu .bricks-mobile-menu-toggle {
    display: block !important;
    height: 44px;
    min-width: 44px;
    width: 44px;
  }

  #brx-header .header__nav-menu .bricks-mobile-menu-toggle span {
    right: 12px;
  }

  #brx-header .header__nav-menu .bricks-mobile-menu-toggle .bar-top {
    top: 14px;
  }

  #brx-header .header__nav-menu .bricks-mobile-menu-toggle .bar-center {
    top: 21px;
  }

  #brx-header .header__nav-menu .bricks-mobile-menu-toggle .bar-bottom {
    top: 28px;
  }

  #brx-header .nav-buttons {
    flex: 0 0 auto;
    margin-left: 0 !important;
  }

  #brx-header .nav__button {
    min-height: 44px;
    padding-inline: 12px;
  }
}

/*
 * MR-092 main-site visual system (supersedes the unreleased MR-014 slice).
 *
 * The server-owned HTML marker is the primary isolation boundary. The body
 * classes keep this first vertical slice limited to the homepage and project
 * details; mapped agent hosts never receive data-meta-site="main".
 */
html[data-meta-site="main"] :where(body.home, body.single-projects) {
  --mr-color-plum: #1b0e29;
  --mr-color-plum-soft: #3d2956;
  --mr-color-gold: #b69563;
  --mr-color-gold-strong: #8d6d3d;
  --mr-color-gold-light: #eadfcf;
  --mr-color-ivory: #f8f5f1;
  --mr-color-ink: #19131f;
  --mr-color-muted: #62596a;
  --mr-color-line: rgba(27, 14, 41, 0.16);
  --mr-radius-sm: 8px;
  --mr-radius-md: 12px;
  --mr-radius-lg: 18px;
  --mr-shadow-card: 0 14px 34px rgba(27, 14, 41, 0.12);
  --mr-shadow-focus: 0 0 0 4px rgba(182, 149, 99, 0.24);
  color: var(--mr-color-ink);
  line-height: 1.6;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content :where(h1, h2, h3) {
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--mr-color-gold-strong);
  outline-offset: 3px;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) .project-card {
  border: 1px solid rgba(234, 223, 207, 0.22);
  border-radius: var(--mr-radius-md);
  box-shadow: var(--mr-shadow-card);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) .project-card:focus-within {
  box-shadow: var(--mr-shadow-card), var(--mr-shadow-focus);
}

@media (hover: hover) and (pointer: fine) {
  html[data-meta-site="main"] :where(body.home, body.single-projects) .project-card:hover {
    box-shadow: 0 18px 42px rgba(27, 14, 41, 0.18);
    transform: translateY(-3px);
  }
}

html[data-meta-site="main"] :where(body.home, body.single-projects) .project-card__heading {
  color: var(--mr-color-gold-light);
}

html[data-meta-site="main"] :where(body.home, body.single-projects) .project-card .project-card__register-btn {
  background: var(--mr-color-gold);
  border-radius: var(--mr-radius-sm);
  color: var(--mr-color-plum);
  font-weight: 700;
  min-height: 44px;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) .project-card--action-bg .project-card__register-btn {
  background: var(--mr-color-plum);
  color: var(--mr-color-gold-light);
}

html[data-meta-site="main"] :where(body.home, body.single-projects) .meta-lead-form-shell {
  border-color: rgba(182, 149, 99, 0.5);
  border-radius: var(--mr-radius-lg);
  box-shadow: var(--mr-shadow-card);
}

html[data-meta-site="main"] :where(body.home, body.single-projects) .meta-lead-form .meta-lead-form__field :where(input, select, textarea) {
  background: #fff;
  border: 1px solid #7d7383;
  border-radius: var(--mr-radius-sm);
  color: var(--mr-color-ink);
  min-height: 48px;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) .meta-lead-form .meta-lead-form__field :where(input, select, textarea):focus {
  border-color: var(--mr-color-gold-strong);
  box-shadow: var(--mr-shadow-focus);
}

html[data-meta-site="main"] :where(body.home, body.single-projects) .meta-lead-form__submit {
  background: var(--mr-color-gold);
  border-color: #8d6d3d;
  border-radius: var(--mr-radius-sm);
  color: var(--mr-color-plum);
  font-weight: 700;
  min-height: 48px;
}

html[data-meta-site="main"] :where(body.home) .home-search {
  background: #fff;
  border-color: var(--mr-color-gold-strong);
  border-radius: var(--mr-radius-md);
  box-shadow: 0 10px 28px rgba(27, 14, 41, 0.18);
  min-height: 56px;
  overflow: hidden;
}

html[data-meta-site="main"] :where(body.home) .home-search-form__button {
  background: var(--mr-color-gold);
  border-radius: 0;
  color: var(--mr-color-plum);
  font-weight: 700;
  min-height: 54px;
}

html[data-meta-site="main"] :where(body.home) :where(.home-listings-section, .home-precon-section, .home-jl-section) {
  padding-block: clamp(3rem, 6vw, 6rem);
}

html[data-meta-site="main"] :where(body.home) :where(.home-listings-section, .home-jl-section) {
  background: var(--mr-color-ivory);
}

html[data-meta-site="main"] :where(body.single-projects) .precon-top {
  color: var(--mr-color-plum);
  padding-block: 12px;
}

html[data-meta-site="main"] :where(body.single-projects) .precon-top__link {
  align-items: center;
  border-radius: var(--mr-radius-sm);
  display: inline-flex;
  min-height: 44px;
}

html[data-meta-site="main"] :where(body.single-projects) .precon-body {
  background: var(--mr-color-ivory);
}

html[data-meta-site="main"] :where(body.single-projects) .project-hero__cta {
  border-radius: var(--mr-radius-md);
  box-shadow: 0 14px 34px rgba(27, 14, 41, 0.22);
  min-height: 48px;
}

html[data-meta-site="main"] :where(body.single-projects) :where(.precon-description__heading, .precon-facts-amenities__heading) {
  color: var(--mr-color-plum);
}

@media (max-width: 767px) {
  html[data-meta-site="main"] :where(body.home, body.single-projects) .meta-lead-form-shell {
    border-radius: var(--mr-radius-md);
    padding: 24px 18px;
  }

  html[data-meta-site="main"] :where(body.home) :where(.home-listings-section, .home-precon-section, .home-jl-section) {
    padding-block: 3rem;
  }

  html[data-meta-site="main"] :where(body.single-projects) .precon-body {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-meta-site="main"] :where(body.home, body.single-projects) .project-card {
    transition: none;
  }
}

/*
 * MR-118 visible Warm Editorial Modern slice.
 *
 * This layer deliberately changes the first-fold hierarchy on the canonical
 * homepage and project detail while preserving the existing DOM, images,
 * forms, navigation and request topology. It uses only local system faces and
 * CSS surfaces: no font, image, script or other frontend resource is added.
 */
html[data-meta-site="main"] :where(body.home, body.single-projects) {
  --mr-font-display: "Arsenal", "Jost", Arial, sans-serif;
  --mr-font-ui: "Jost", Arial, sans-serif;
  --mr-radius-control: 8px;
  --mr-radius-card: 12px;
  --mr-radius-panel: 18px;
  --mr-space-section: clamp(4.5rem, 8vw, 8.5rem);
  background: var(--mr-color-ivory);
  font-family: var(--mr-font-ui);
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content :where(h1, h2, h3) {
  font-family: var(--mr-font-ui);
  font-weight: 400;
  letter-spacing: -0.035em;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-hero {
  background: var(--mr-color-plum);
  isolation: isolate;
  min-height: clamp(680px, 82vh, 900px);
  overflow: hidden;
  position: relative;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-hero::after {
  background: linear-gradient(90deg, rgba(27, 14, 41, 0.9) 0%, rgba(27, 14, 41, 0.66) 48%, rgba(27, 14, 41, 0.18) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

html[data-meta-site="main"] :where(body.home) #brx-content .homepage__slider {
  inset: 0;
  position: absolute;
  z-index: 1;
}

html[data-meta-site="main"] :where(body.home) #brx-content .homepage__slide-image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-hero__body-wrapper {
  align-items: flex-start;
  justify-content: center;
  margin-inline: auto;
  max-width: 1180px;
  min-height: clamp(680px, 82vh, 900px);
  padding: clamp(6rem, 11vh, 9rem) clamp(1.25rem, 6vw, 6rem) clamp(5rem, 9vh, 7rem);
  position: relative;
  width: 100%;
  z-index: 3;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-hero__heading-wrapper {
  align-items: flex-start;
  border-left: 3px solid var(--mr-color-gold);
  margin-bottom: clamp(2rem, 4vh, 3.5rem);
  max-width: 58rem;
  padding-left: clamp(1.25rem, 2vw, 2rem);
  text-align: left;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-hero__heading {
  color: #fff;
  font-family: var(--mr-font-display);
  font-size: clamp(64px, 7.5vw, 112px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin: 0;
  max-width: 11ch;
  text-align: left;
  text-wrap: balance;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-hero__text {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: 0.02em;
  margin-top: 1.35rem;
  max-width: 42rem;
  text-align: left;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-hero__search-wrapper {
  align-items: flex-start;
  margin: 0;
  max-width: 900px;
  width: 100%;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-search__buttons-wrapper {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.75rem;
  max-width: 30rem;
  width: 100%;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-search__button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--mr-radius-control);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  min-height: 48px;
  padding-inline: 1.4rem;
  text-transform: uppercase;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-search__button-precon {
  background: var(--mr-color-gold);
  border-color: var(--mr-color-gold);
  color: var(--mr-color-plum);
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-search {
  background: #fff;
  border: 0;
  border-radius: var(--mr-radius-panel);
  box-shadow: 0 24px 55px rgba(8, 3, 14, 0.28);
  min-height: 72px;
  overflow: hidden;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-search input[type="search"] {
  color: var(--mr-color-ink);
  font-family: var(--mr-font-ui);
  font-size: clamp(16px, 1.5vw, 19px);
  min-height: 72px;
  padding-inline: 1.25rem;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-search-form__button {
  background: var(--mr-color-gold);
  border-radius: 0;
  color: var(--mr-color-plum);
  font-size: 12px;
  letter-spacing: 0.1em;
  min-height: 72px;
  padding-inline: clamp(1.5rem, 3vw, 2.75rem);
  text-transform: uppercase;
}

html[data-meta-site="main"] :where(body.home) #brx-content .homepage__slide-button {
  background: rgba(27, 14, 41, 0.92);
  border: 1px solid rgba(234, 223, 207, 0.68);
  border-radius: var(--mr-radius-control);
  color: #fff;
  letter-spacing: 0.06em;
  min-height: 48px;
  padding-inline: 1.75rem;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-listings-section {
  background: var(--mr-color-ivory);
  border-top: 1px solid var(--mr-color-line);
  padding-block: var(--mr-space-section);
}

html[data-meta-site="main"] :where(body.home) #brx-content :where(.home-precon-section, .home-jl-section) {
  background: transparent;
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-listings-container {
  max-width: 1180px;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-listings__heading-wrapper {
  align-items: end;
  border-bottom: 1px solid rgba(27, 14, 41, 0.24);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 1rem;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-listings__heading-wrapper h2 {
  color: var(--mr-color-plum);
  font-family: var(--mr-font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

html[data-meta-site="main"] :where(body.home) #brx-content .home-listings__more-text {
  color: var(--mr-color-gold-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding-block: 0.75rem;
  text-transform: uppercase;
}

html[data-meta-site="main"] :where(body.home) #brx-content .project-cards-grid {
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card {
  background: #fff;
  border: 1px solid rgba(27, 14, 41, 0.18);
  border-radius: var(--mr-radius-card);
  box-shadow: 0 20px 45px rgba(27, 14, 41, 0.1);
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__media {
  overflow: hidden;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 300ms ease;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__banner {
  background: var(--mr-color-gold);
  color: var(--mr-color-plum);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__body-wrapper {
  background: #fff;
  color: var(--mr-color-ink);
  padding: clamp(1.4rem, 2.5vw, 2.25rem);
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__heading {
  color: var(--mr-color-plum);
  font-family: var(--mr-font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.05;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content :where(.project-card__address, .project-card__developer, .project-card__project-type) {
  color: var(--mr-color-muted);
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__listed {
  color: var(--mr-color-gold-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__register-btn {
  background: var(--mr-color-plum);
  border: 1px solid var(--mr-color-plum);
  align-items: center;
  border-radius: var(--mr-radius-control);
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  letter-spacing: 0.11em;
  min-height: 48px;
  padding-block: 10px;
  padding-inline: 1.25rem;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card:hover .project-card__image img {
    transform: scale(1.035);
  }
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-top {
  background: var(--mr-color-ivory);
  border-bottom: 1px solid rgba(27, 14, 41, 0.2);
  color: var(--mr-color-plum);
  padding-block: 1rem;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-top-wrapper {
  box-sizing: border-box;
  max-width: 1180px;
  min-width: 0;
  width: calc(100% - 40px);
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-top__links {
  gap: 0.65rem;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-top__link {
  background: transparent;
  border: 1px solid rgba(27, 14, 41, 0.42);
  border-radius: var(--mr-radius-control);
  color: var(--mr-color-plum);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  min-height: 44px;
  padding-inline: 1.35rem;
  text-transform: uppercase;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-top__link-overview {
  background: var(--mr-color-plum);
  border-color: var(--mr-color-plum);
  color: #fff;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-compare__btn {
  background: #fff;
  border: 1px solid rgba(27, 14, 41, 0.22);
  border-radius: var(--mr-radius-control);
  color: var(--mr-color-plum);
  min-height: 44px;
  padding-inline: 1.25rem;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-gallery__wrapper {
  background: var(--mr-color-plum);
  border-bottom: 1px solid rgba(234, 223, 207, 0.28);
  padding: clamp(1rem, 3vw, 2.5rem);
  position: relative;
  width: 100%;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-gallery {
  border: 1px solid rgba(234, 223, 207, 0.38);
  border-radius: var(--mr-radius-lg);
  box-shadow: 0 26px 64px rgba(5, 2, 9, 0.3);
  overflow: hidden;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-hero__cta-wrapper {
  align-items: center;
  display: flex;
  justify-content: center;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-hero__cta {
  background: var(--mr-color-gold);
  border: 1px solid var(--mr-color-gold-light);
  border-radius: var(--mr-radius-control);
  box-shadow: 0 18px 42px rgba(5, 2, 9, 0.35);
  color: var(--mr-color-plum);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  min-height: 60px;
  padding-inline: clamp(1.75rem, 4vw, 3.5rem);
  text-transform: uppercase;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-body {
  background: var(--mr-color-ivory);
  padding-block: var(--mr-space-section);
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-body__wrapper {
  box-sizing: border-box;
  max-width: 1180px;
  min-width: 0;
  width: calc(100% - 40px);
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-body__content-wrapper {
  gap: clamp(2rem, 4vw, 4.5rem);
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-body__title-info-wrapper {
  background: #fff;
  border: 1px solid rgba(27, 14, 41, 0.14);
  border-radius: var(--mr-radius-panel);
  box-shadow: 0 22px 54px rgba(27, 14, 41, 0.09);
  padding: clamp(32px, 4vw, 64px);
  max-width: 100%;
  min-width: 0;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-body__title-info-wrapper > h1 {
  color: var(--mr-color-plum);
  font-family: var(--mr-font-display);
  font-size: clamp(54px, 6.5vw, 88px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.96;
  margin-bottom: 1rem;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-body__title-info-wrapper > h1::before {
  background: var(--mr-color-gold);
  content: "";
  display: block;
  height: 3px;
  margin-bottom: 1.25rem;
  width: 4rem;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-body__top {
  border-top: 1px solid rgba(27, 14, 41, 0.14);
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-top-body__text {
  color: var(--mr-color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .cta-sidebar {
  background: var(--mr-color-plum);
  border: 1px solid rgba(182, 149, 99, 0.7);
  border-radius: var(--mr-radius-panel);
  box-shadow: 0 24px 58px rgba(27, 14, 41, 0.18);
  color: #fff;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .cta-sidebar > h2 {
  color: var(--mr-color-gold-light);
  font-family: var(--mr-font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .cta-sidebar .meta-lead-form-shell {
  background: #fff;
  border: 0;
  box-shadow: none;
  color: var(--mr-color-ink);
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .meta-lead-form__title {
  color: var(--mr-color-plum);
  font-family: var(--mr-font-ui);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.05;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .meta-lead-form__submit {
  background: var(--mr-color-gold);
  border: 1px solid var(--mr-color-gold-strong);
  border-radius: var(--mr-radius-control);
  color: var(--mr-color-plum);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-about {
  gap: clamp(1.5rem, 3vw, 2.5rem);
  min-width: 0;
  width: 100%;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content :where(.precon-description, .project-facts-amenities, .precon-score__section, .projects-nearby) {
  background: #fff;
  border: 1px solid rgba(27, 14, 41, 0.14);
  border-radius: var(--mr-radius-panel);
  padding: clamp(2rem, 4vw, 3.75rem);
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .projects-nearby {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content :where(.projects-nearby-listings, .projects-nearby .splide, .projects-nearby .splide__track) {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .projects-nearby .project-card {
  max-width: 100%;
  min-width: 0;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content :where(.precon-description__heading, .precon-facts-amenities__heading, .projects-nearby > h2) {
  color: var(--mr-color-plum);
  font-family: var(--mr-font-display);
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-key-facts__wrapper {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-key-fact__wrapper {
  border-bottom: 1px solid rgba(27, 14, 41, 0.12);
  padding-block: 1.1rem;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-key-fact__heading {
  color: var(--mr-color-gold-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-key-fact__text {
  color: var(--mr-color-plum);
  font-family: var(--mr-font-ui);
  font-size: 20px;
}

@media (max-width: 767px) {
  html[data-meta-site="main"] :where(body.home) #brx-content .home-hero {
    min-height: 680px;
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .home-hero::after {
    background: linear-gradient(180deg, rgba(27, 14, 41, 0.86) 0%, rgba(27, 14, 41, 0.55) 60%, rgba(27, 14, 41, 0.82) 100%);
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .home-hero__body-wrapper {
    justify-content: flex-end;
    min-height: 680px;
    padding: 80px 20px 64px;
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .home-hero__heading-wrapper {
    margin-bottom: 2rem;
    padding-left: 1rem;
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .home-hero__heading {
    font-size: clamp(54px, 16vw, 76px);
    max-width: 8ch;
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .home-hero__text {
    font-size: 15px;
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .home-search__buttons-wrapper {
    max-width: none;
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .home-search {
    min-height: 64px;
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .home-search input[type="search"] {
    font-size: 14px;
    min-height: 64px;
    padding-inline: 0.8rem;
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .home-search-form__button {
    font-size: 10px;
    min-height: 64px;
    padding-inline: 1rem;
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .homepage__slide-button-wrapper {
    display: none;
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .home-listings-section {
    padding-block: 3.5rem;
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .home-listings__heading-wrapper h2 {
    font-size: 42px;
  }

  html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-top-compare__wrapper {
    display: none;
  }

  html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-top-wrapper {
    width: calc(100% - 32px);
  }

  html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-gallery__wrapper {
    padding: 0;
  }

  html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-gallery {
    border-inline: 0;
    border-radius: 0;
  }

  html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-hero__cta {
    font-size: 11px;
    min-height: 54px;
  }

  html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-body {
    padding: 56px 16px;
  }

  html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-body__wrapper {
    width: 100%;
  }

  html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-body__title-info-wrapper {
    padding: 32px 20px;
  }

  html[data-meta-site="main"] :where(body.single-projects) #brx-content .precon-body__title-info-wrapper > h1 {
    font-size: 52px;
  }

  html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-key-facts__wrapper {
    grid-template-columns: 1fr;
  }

  html[data-meta-site="main"] :where(body.single-projects) #brx-content .project-facts-amenities {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  html[data-meta-site="main"] :where(body.home) #brx-content .home-listings__heading-wrapper {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  html[data-meta-site="main"] :where(body.home) #brx-content .home-listings__more-text {
    align-self: flex-start;
    padding-block: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__image img {
    transition: none;
  }
}

/* MR-517: a compact editorial frame, retaining the deployed MR-181 foundation.
 * Keep every refinement inside the canonical homepage/project boundary.
 * Explicit pixel spacing avoids the builder's 10px-root rem scale mismatch.
 */
html[data-meta-site="main"] :where(body.home, body.single-projects) {
  --mr-color-gold-strong: #806035;
  --mr-shadow-card: 0 8px 24px rgba(27, 14, 41, 0.07);
}

html[data-meta-site="main"] body.home #brx-content .home-hero {
  height: auto;
  min-height: 540px;
  padding: 0;
}

html[data-meta-site="main"] body.home #brx-content .home-hero__body-wrapper {
  height: auto;
  min-height: 540px;
  max-width: 1260px;
  padding: 64px 40px 80px;
  gap: 28px;
  justify-content: center;
}

html[data-meta-site="main"] body.home #brx-content .home-hero__heading-wrapper {
  max-width: 780px;
  padding-left: 24px;
  margin: 0;
  gap: 0;
}

html[data-meta-site="main"] body.home #brx-content .home-hero__heading {
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 1.06;
  max-width: none;
  letter-spacing: -0.035em;
}

html[data-meta-site="main"] body.home #brx-content .home-hero__text {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  margin-top: 18px;
  letter-spacing: 0;
}

html[data-meta-site="main"] body.home #brx-content .home-hero__search-wrapper {
  max-width: 780px;
  gap: 12px;
}

html[data-meta-site="main"] body.home #brx-content .home-search__buttons-wrapper {
  max-width: 280px;
  gap: 8px;
  margin: 0;
}

html[data-meta-site="main"] body.home #brx-content .home-search__button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

html[data-meta-site="main"] body.home #brx-content .home-search {
  min-height: 60px;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(8, 3, 14, 0.18);
}

html[data-meta-site="main"] body.home #brx-content .home-search input[type="search"] {
  min-height: 60px;
  font-size: 16px;
  padding-inline: 12px;
}

html[data-meta-site="main"] body.home #brx-content .home-search-form__button {
  min-height: 60px;
  padding-inline: 24px;
  font-size: 12px;
}

/* Existing recruitment copy remains secondary to the property search. */
html[data-meta-site="main"] body.home #brx-content .home-hero__body-wrapper > .brxe-div {
  align-self: flex-start !important; /* Overrides the builder's centered ID rule. */
  width: auto;
  max-width: 560px;
}

html[data-meta-site="main"] body.home #brx-content .home-hero__body-wrapper > .brxe-div .home-hero__text {
  font-size: 14px;
  margin: 0;
}

html[data-meta-site="main"] body.home #brx-content .homepage__slide-button {
  font-size: 13px;
  min-height: 44px;
  padding: 10px 20px;
}

html[data-meta-site="main"] body.home #brx-content .home-listings-section {
  padding: 0 32px 48px;
}

html[data-meta-site="main"] body.home #brx-content :where(.home-precon-section, .home-jl-section) {
  padding: 56px 0 0;
}

html[data-meta-site="main"] body.home #brx-content .home-listings__heading-wrapper {
  margin-bottom: 28px;
  padding-bottom: 18px;
}

html[data-meta-site="main"] body.home #brx-content .home-listings__heading-wrapper h2 {
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1.1;
}

html[data-meta-site="main"] body.home #brx-content .home-listings__more-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

html[data-meta-site="main"] body.home #brx-content .project-cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card {
  display: flex;
  flex-direction: column;
  box-shadow: var(--mr-shadow-card);
  border-color: var(--mr-color-line);
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content :where(.project-card__media, .project-card__body-wrapper) {
  width: 100%;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__price-wrapper {
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  html[data-meta-site="main"] body.home #brx-content .project-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__body-wrapper {
  padding: 22px;
  gap: 20px;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__heading {
  font-size: 27px;
  line-height: 1.15;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content :where(.project-card__address, .project-card__developer, .project-card__project-type) {
  font-size: 14px;
  line-height: 1.5;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__price {
  color: var(--mr-color-plum);
  font-size: 21px;
  font-weight: 500;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__price--high {
  color: var(--mr-color-muted);
  font-size: 16px;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__listed {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}

html[data-meta-site="main"] :where(body.home, body.single-projects) #brx-content .project-card__register-btn {
  font-size: 12px;
  letter-spacing: 0.05em;
}

html[data-meta-site="main"] body.single-projects #brx-content .project-gallery__wrapper {
  background: var(--mr-color-ivory);
  border: 0;
  padding: 24px 32px 0;
  align-items: center;
}

html[data-meta-site="main"] body.single-projects #brx-content .project-gallery {
  width: 100%;
  max-width: 1180px;
  height: 380px;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

html[data-meta-site="main"] body.single-projects #brx-content .project-gallery .happyfiles-gallery > ul {
  height: 380px !important; /* Builder gallery declares height: 100% !important. */
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px !important;
}

html[data-meta-site="main"] body.single-projects #brx-content .project-gallery .happyfiles-gallery > ul > li {
  min-height: 0 !important;
  height: 100%;
}

html[data-meta-site="main"] body.single-projects #brx-content .project-gallery figure {
  height: 100%;
  min-height: 0;
}

html[data-meta-site="main"] body.single-projects #brx-content .project-hero__cta-wrapper {
  top: auto;
  bottom: 20px;
}

html[data-meta-site="main"] body.single-projects #brx-content .project-hero__cta {
  min-height: 48px;
  padding: 14px 28px;
  box-shadow: 0 4px 16px rgba(27, 14, 41, 0.18);
}

html[data-meta-site="main"] body.single-projects #brx-content .precon-body {
  padding: 32px 32px 64px;
}

html[data-meta-site="main"] body.single-projects #brx-content .precon-body__wrapper {
  width: 100%;
}

html[data-meta-site="main"] body.single-projects #brx-content .precon-body__content-wrapper {
  gap: 32px;
}

html[data-meta-site="main"] body.single-projects #brx-content .precon-body__title-info-wrapper {
  padding: 32px;
  box-shadow: none;
  border-radius: 12px;
}

html[data-meta-site="main"] body.single-projects #brx-content .precon-body__title-info-wrapper > h1 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

html[data-meta-site="main"] body.single-projects #brx-content .precon-top-body__text {
  font-size: 16px;
  line-height: 1.6;
}

html[data-meta-site="main"] body.single-projects #brx-content :where(.precon-description, .project-facts-amenities, .precon-score__section, .projects-nearby) {
  padding: 28px;
  border-radius: 12px;
}

html[data-meta-site="main"] body.single-projects #brx-content :where(.precon-description__heading, .precon-facts-amenities__heading, .projects-nearby > h2) {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 24px;
}

html[data-meta-site="main"] body.single-projects #brx-content .precon-description .brxe-post-content {
  font-size: 16px;
  line-height: 1.75;
}

html[data-meta-site="main"] body.single-projects #brx-content .precon-description .brxe-post-content :where(h2, h3) {
  font-size: 24px;
  line-height: 1.3;
  margin-block: 28px 12px;
}

html[data-meta-site="main"] body.single-projects #brx-content .project-key-facts__wrapper {
  column-gap: 24px;
}

/* Google Maps can retain a desktop-sized static tile after viewport resize. */
html[data-meta-site="main"] body.single-projects #brx-content .project-about .brxe-map {
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

html[data-meta-site="main"] body.single-projects #brx-content .project-key-fact__wrapper {
  padding-block: 16px;
}

html[data-meta-site="main"] body.single-projects #brx-content .project-key-fact__heading {
  font-size: 12px;
  letter-spacing: 0.06em;
}

html[data-meta-site="main"] body.single-projects #brx-content .project-key-fact__text {
  font-size: 17px;
}

html[data-meta-site="main"] body.single-projects #brx-content .cta-sidebar {
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--mr-shadow-card);
}

html[data-meta-site="main"] body.single-projects #brx-content .cta-sidebar > h2 {
  font-size: 28px;
  line-height: 1.15;
}

@media (max-width: 767px) {
  html[data-meta-site="main"] body.home #brx-content .home-hero {
    min-height: 0;
  }

  html[data-meta-site="main"] body.home #brx-content .home-hero__body-wrapper {
    min-height: 520px;
    padding: 48px 20px;
    gap: 24px;
  }

  html[data-meta-site="main"] body.home #brx-content .home-hero__heading-wrapper {
    padding-left: 16px;
  }

  html[data-meta-site="main"] body.home #brx-content .home-hero__text {
    font-size: 16px;
  }

  html[data-meta-site="main"] body.home #brx-content .home-search {
    padding-left: 32px;
  }

  html[data-meta-site="main"] body.home #brx-content .home-search-form__button {
    padding-inline: 14px;
  }

  html[data-meta-site="main"] body.home #brx-content .home-listings-section {
    padding: 0 20px 40px;
  }

  html[data-meta-site="main"] body.home #brx-content .project-cards-grid {
    grid-template-columns: 1fr;
  }

  html[data-meta-site="main"] body.home #brx-content :where(.home-precon-section, .home-jl-section) {
    padding-top: 40px;
  }

  html[data-meta-site="main"] body.single-projects #brx-content .project-gallery__wrapper {
    padding: 16px 16px 0;
  }

  html[data-meta-site="main"] body.single-projects #brx-content :where(.project-gallery, .project-gallery .happyfiles-gallery > ul) {
    height: 280px !important;
  }

  html[data-meta-site="main"] body.single-projects #brx-content .precon-body {
    padding: 24px 16px 48px;
  }

  html[data-meta-site="main"] body.single-projects #brx-content :where(.precon-body__title-info-wrapper, .precon-description, .project-facts-amenities, .precon-score__section, .projects-nearby, .cta-sidebar) {
    padding: 24px 20px;
  }

  html[data-meta-site="main"] body.single-projects #brx-content .precon-body__content-wrapper {
    gap: 24px;
  }
}
