/*
 * MXB Premier MLS Connector compatibility styles.
 *
 * The layout intentionally comes from the active Premier theme's existing
 * property-list/property-details styles. Keep this file limited to MLS-only
 * additions and small fixes that the theme does not know about.
 */

.mxb-premier-mls .mxb-pml-submit button {
    cursor: pointer;
    padding: 0.6em 1.4em;
    border: 0;
    background: #1a1a1a;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mxb-pml-banner {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background: #111111;
}

.mxb-pml-banner canvas {
    display: block;
    width: 100%;
    min-height: 405px;
    background-position: center;
    background-size: cover;
    filter: brightness(0.58);
}

.mxb-pml-banner-copy {
    position: absolute;
    left: 50%;
    top: 54%;
    z-index: 2;
    width: min(1000px, calc(100% - 40px));
    color: #ffffff;
    text-align: center;
    transform: translate(-50%, -50%);
}

.mxb-pml-banner-copy p {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.mxb-pml-banner-copy p:first-child {
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.mxb-pml-banner .mxb-pml-banner-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: 42px !important;
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: 0;
    text-transform: none;
}

.mxb-pml-banner .mxb-pml-banner-copy h1 span {
    display: block;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    white-space: nowrap;
}

.mxb-pml-banner-copy div {
    width: 88px;
    height: 1px;
    margin: 18px auto 15px;
    background: #ffffff;
}

.mxb-pml-banner-copy p:last-child {
    max-width: none;
    margin: 0 auto;
    font-size: 15px;
    white-space: nowrap;
}

.mxb-pml-breadcrumbs.custom-breadcrumbs {
    position: relative;
    top: auto;
    bottom: auto;
    z-index: 4;
    width: 100%;
    margin: 0 !important;
    padding: 10px clamp(20px, 6.25vw, 100px);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    line-height: 1;
    text-transform: uppercase;
    box-sizing: border-box;
}

.mxb-pml-breadcrumbs #breadcrumbs {
    display: block !important;
    margin: 0 !important;
}

.mxb-pml-breadcrumbs a,
.mxb-pml-breadcrumbs a:hover,
.mxb-pml-breadcrumbs a:focus {
    color: inherit;
    text-decoration: none;
}

.mxb-pml-banner .mxb-pml-breadcrumbs.custom-breadcrumbs {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
}

.mxb-pml-detail .mxb-pml-breadcrumbs.custom-breadcrumbs {
    position: absolute;
    top: auto;
    bottom: 7px;
    left: 0;
    padding-top: 5px;
    padding-bottom: 5px;
}

.mxb-premier-mls .ip-property-search-field input[type="number"] {
    width: 100%;
    padding: 0.5em;
    box-sizing: border-box;
}

.mxb-premier-mls .mxb-pml-base-search {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 21px 30px 38px;
    background: #eeeeee;
    box-sizing: border-box;
}

.mxb-premier-mls .mxb-pml-base-field {
    flex: 0 0 auto;
}

.mxb-premier-mls .mxb-pml-base-location {
    width: 260px;
}

.mxb-premier-mls .mxb-pml-base-property {
    width: 170px;
}

.mxb-premier-mls .mxb-pml-base-price {
    width: 170px;
}

.mxb-premier-mls .mxb-pml-base-small {
    width: 82px;
}

.mxb-premier-mls .mxb-pml-base-field label {
    display: block;
    margin: 0 0 4px;
    color: #111111;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.mxb-premier-mls .mxb-pml-base-field input,
.mxb-premier-mls .mxb-pml-base-field select {
    width: 100%;
    height: 38px;
    margin: 0;
    border: 1px solid #cbd0d6;
    border-radius: 3px;
    background-color: #ffffff;
    color: #111111;
    font-size: 14px;
    line-height: 38px;
    box-shadow: none;
    box-sizing: border-box;
}

.mxb-premier-mls .mxb-pml-base-field input {
    padding: 0 13px;
}

.mxb-premier-mls .mxb-pml-base-field select {
    padding: 0 8px;
}

.mxb-premier-mls .mxb-pml-multiselect {
    position: relative;
    width: 100%;
}

.mxb-premier-mls .mxb-pml-multiselect-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 4px 30px 4px 8px;
    border: 1px solid #cbd0d6;
    border-radius: 3px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    line-height: 1;
    text-align: left;
    box-shadow: none;
    cursor: pointer;
    box-sizing: border-box;
}

.mxb-premier-mls .mxb-pml-multiselect-toggle::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #333333;
}

.mxb-premier-mls .mxb-pml-multiselect-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.mxb-premier-mls .mxb-pml-multiselect-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 6px;
    border: 1px solid #cccccc;
    border-radius: 2px;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
}

/* The "×" of a removable token (data-mxb-multiselect="tokens"). */
.mxb-premier-mls .mxb-pml-multiselect-remove {
    display: inline-block;
    padding: 0 2px 0 5px;
}

.mxb-premier-mls .mxb-pml-multiselect-placeholder {
    color: #9ba3af;
    line-height: 28px;
}

.mxb-premier-mls .mxb-pml-multiselect-menu {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 2px);
    z-index: 20;
    width: 100%;
    max-height: 230px;
    overflow: auto;
    border: 1px solid #cbd0d6;
    border-radius: 3px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.mxb-premier-mls .mxb-pml-multiselect.is-open .mxb-pml-multiselect-menu {
    display: block;
}

.mxb-premier-mls .mxb-pml-multiselect-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    color: #111111;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
}

.mxb-premier-mls .mxb-pml-multiselect-option:hover {
    background: #f2f2f2;
}

.mxb-premier-mls .mxb-pml-multiselect-option input {
    width: auto;
    height: auto;
    margin: 0;
}

.mxb-premier-mls .mxb-pml-base-field input::placeholder {
    color: #9ba3af;
    opacity: 1;
}

.mxb-premier-mls .mxb-pml-money-input {
    display: flex;
    width: 100%;
    height: 38px;
}

.mxb-premier-mls .mxb-pml-money-input span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    border: 1px solid #cbd0d6;
    border-right: 0;
    border-radius: 3px 0 0 3px;
    background: #e9ecef;
    color: #1f2933;
    font-size: 14px;
    box-sizing: border-box;
}

.mxb-premier-mls .mxb-pml-money-input input {
    min-width: 0;
    border-radius: 0 3px 3px 0;
}

.mxb-premier-mls .mxb-pml-base-submit {
    flex: 0 0 auto;
    min-width: 80px;
    height: 35px;
    margin: 0 0 3px;
    padding: 0 18px;
    border: 0;
    border-radius: 3px;
    background: #8d8d8d;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
}

.mxb-premier-mls .mxb-pml-base-submit:hover,
.mxb-premier-mls .mxb-pml-base-submit:focus {
    background: #777777;
}

.mxb-premier-mls .ip-property-listings-photo img {
    z-index: 0 !important;
}

.mxb-premier-mls .ip-property-listing-det {
    z-index: 3 !important;
}

.mxb-pml-area-results .ip-property-det-search-listings {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.mxb-pml-area-results .ip-property-listing-group,
.mxb-pml-area-results .group-row,
.mxb-pml-area-results .listings-entries {
    width: 100%;
    box-sizing: border-box;
}

.mxb-pml-area-results .listings-entry {
    flex: 0 0 min(529px, 29.813vw);
    width: min(529px, 29.813vw);
    max-width: 529px;
}

.mxb-premier-mls .mxb-pml-nophoto {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8, #d2d2d2);
}

.mxb-premier-mls .mxb-pml-empty {
    padding: 2rem 0;
    font-style: italic;
}

.mxb-premier-mls .ip-property-pagination li.current a {
    font-weight: 700;
    text-decoration: underline;
}

.mxb-pml-disclosure {
    margin: 2rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.8rem;
    color: #666;
}

.mxb-pml-disclosure p {
    margin: 0.25rem 0;
}

.mxb-pml-carousel {
    position: relative;
    overflow: hidden;
}

.mxb-pml-carousel:not(.slick-initialized) .mxb-pml-slide {
    display: none;
}

.mxb-pml-carousel:not(.slick-initialized) .mxb-pml-slide.is-active {
    display: block;
}

.mxb-pml-detail .mxb-pml-carousel:not(.slick-initialized) {
    display: flex;
    width: 100%;
    gap: 0;
    overflow: hidden;
}

.mxb-pml-detail .mxb-pml-carousel:not(.slick-initialized) .mxb-pml-slide {
    display: block;
    flex: 0 0 100%;
    min-width: 100%;
    transition: transform 0.55s ease;
    will-change: transform;
}

.mxb-pml-carousel .mxb-pml-hero-photo {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: default;
}

.mxb-pml-carousel .mxb-pml-hero-photo canvas {
    display: block;
    width: 100%;
    height: auto;
}

.mxb-pml-carousel .mxb-pml-hero-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mxb-pml-carousel .mxb-pml-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.mxb-pml-carousel .mxb-pml-slide .mxb-pml-hero-photo img {
    height: 100%;
}

.mxb-pml-detail-actions {
    position: relative;
    z-index: 2;
}

/* ---- Detail CTA buttons -------------------------------------------------
 * Visual parity with the theme's .ip-pd-cta / .hp-link buttons. Styles are
 * scoped to .mxb-pml-detail-cta so iHomeFinder and non-MLS pages are never
 * affected. Button chrome (box + hover) is provided here; the orange corner
 * accents are left to the theme's .hp-link pseudo-elements (see below).
 */
.mxb-pml-detail .mxb-pml-detail-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px 54px;
    margin: 42px 0 0;
    padding: 0;
    background: #fff;
}

.mxb-pml-detail .mxb-pml-detail-cta .hp-link {
    position: relative;
    flex: 0 1 calc(50% - 27px);
    width: calc(50% - 27px);
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 18px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.mxb-pml-detail .mxb-pml-detail-cta .hp-link span {
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.mxb-pml-detail .mxb-pml-detail-cta .hp-link:hover,
.mxb-pml-detail .mxb-pml-detail-cta .hp-link:focus {
    color: #d67a1e;
    border-color: #d67a1e;
    outline: none;
}

.mxb-pml-detail .mxb-pml-detail-cta .hp-link:focus-visible {
    outline: 2px solid #d67a1e;
    outline-offset: 2px;
}

/* The orange corner accents are drawn by the theme's own
 * .hp-link em.b-up / em.b-down pseudo-elements. We only keep them click-through
 * and rely on the button being a positioning context (position: relative above)
 * so the theme corners anchor to its edges. We deliberately do NOT redraw the
 * corners here — doing so would double them on the live theme. */
.mxb-pml-detail .mxb-pml-detail-cta .hp-link .b-up,
.mxb-pml-detail .mxb-pml-detail-cta .hp-link .b-down {
    pointer-events: none;
}

.mxb-pml-detail .mxb-pml-detail-cta .mxb-pml-share {
    position: relative;
    flex: 0 1 calc(50% - 27px);
    width: calc(50% - 27px);
}

.mxb-pml-detail .mxb-pml-detail-cta .mxb-pml-share .hp-link {
    flex: 1 1 auto;
    width: 100%;
}

.mxb-pml-detail .mxb-pml-share-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.mxb-pml-detail .mxb-pml-share-list[hidden] {
    display: none;
}

.mxb-pml-detail .mxb-pml-share-list .ip-shar-smi {
    margin: 0;
}

/* Icon buttons using the theme's Agent Image font glyphs — not text labels.
 * They sit inside .ip-pd-cta, so the theme's CTA-button rule
 * (.ip-pd-cta a { margin: 0 clamp(20px, 3.125vw, 55px) 24px 0; max-width: … })
 * reaches them too: ~44px right + 24px bottom margin per icon wrapped the four
 * icons into a 2x2 block on desktop. Reset it so they stay in one row. */
.mxb-pml-detail .mxb-pml-share-list .ip-shar-smi a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    max-width: none;
    height: 42px;
    margin: 0;
    color: #1a1a1a;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
}

.mxb-pml-detail .mxb-pml-share-list .ip-shar-smi a:hover,
.mxb-pml-detail .mxb-pml-share-list .ip-shar-smi a:focus {
    color: #d67a1e;
    outline: none;
}

.mxb-pml-detail .mxb-pml-share-list .ip-shar-smi a:focus-visible {
    outline: 2px solid #d67a1e;
    outline-offset: 2px;
}

/* Visually-hidden accessible label paired with each aria-hidden icon glyph. */
.mxb-pml-detail .mxb-pml-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.mxb-pml-detail .mxb-pml-listing-courtesy {
    width: calc(100% - 40px);
    max-width: 1420px;
    margin: 68px auto 0;
    box-sizing: border-box;
}

.mxb-pml-detail .mxb-pml-listing-courtesy .courtesy-name {
    margin-top: 34px;
}

.mxb-pml-detail .mxb-pml-listing-courtesy .mxb-pml-courtesy-profile {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-top: 34px;
}

.mxb-pml-detail .mxb-pml-listing-courtesy .mxb-pml-courtesy-profile .courtesy-name {
    margin-top: 0;
}

.mxb-pml-detail .mxb-pml-listing-courtesy .courtesy-photo {
    position: relative;
    width: 200px;
    max-width: 100%;
}

.mxb-pml-detail .mxb-pml-listing-courtesy .courtesy-photo canvas {
    display: block;
    width: 100%;
    height: auto;
}

.mxb-pml-detail .mxb-pml-listing-courtesy .courtesy-photo img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.mxb-pml-detail .mxb-pml-listing-courtesy .courtesy-name p {
    margin: 0 0 8px;
}

.mxb-pml-detail .mxb-pml-listing-courtesy .courtesy-name a {
    color: inherit;
    text-decoration: none;
}

.mxb-pml-detail .mxb-pml-listing-courtesy .courtesy-name a:hover,
.mxb-pml-detail .mxb-pml-listing-courtesy .courtesy-name a:focus {
    color: #ff8200;
}

.mxb-pml-detail .mxb-pml-listing-courtesy .mxb-pml-listing-attribution {
    margin-top: 48px;
    color: inherit;
    font-size: 16px;
    line-height: 1.55;
}

.mxb-pml-detail .mxb-pml-listing-courtesy .mxb-pml-listing-attribution p {
    margin: 0 0 8px;
}

@media (max-width: 767px) {
    .mxb-pml-detail .mxb-pml-listing-courtesy .mxb-pml-courtesy-profile {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
}

.mxb-pml-detail-contact {
    position: relative;
    left: 50%;
    width: 100vw;
    min-height: 760px;
    margin: 0 0 0 -50vw;
    padding: 0 !important;
    overflow: hidden;
    background-color: #171717;
    box-sizing: border-box;
    isolation: isolate;
}

.mxb-pml-detail-contact .pd-interested-bg,
.mxb-pml-detail-contact-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mxb-pml-detail-contact .pd-interested-bg canvas,
.mxb-pml-detail-contact-bg canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 760px;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    filter: brightness(0.55);
}

.mxb-pml-detail-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.mxb-pml-detail-contact-inner {
    position: relative;
    z-index: 2;
    width: min(1236px, calc(100% - 60px));
    margin: 0 auto;
    padding: 72px 0 110px;
    box-sizing: border-box;
}

.mxb-pml-detail-contact .mxb-pml-detail-contact-title {
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
}

.mxb-pml-detail-contact .mxb-pml-detail-contact-title::after {
    content: "";
    display: block;
    width: 225px;
    height: 1px;
    margin: 20px auto 0;
    background: #ffffff;
}

.mxb-pml-detail-contact .mxb-pml-detail-contact-title > span {
    display: block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 15px;
}

.mxb-pml-detail-contact .mxb-pml-detail-contact-title h2 {
    margin: 0 auto !important;
    color: #ffffff !important;
    font-size: 50px !important;
    font-weight: 400;
    line-height: 1 !important;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
}

.mxb-pml-detail-contact .mxb-pml-detail-contact-title h2::after {
    display: block;
    content: none;
}

.mxb-pml-detail-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
    gap: 30px;
    align-items: start;
    max-width: 1320px;
    margin: 90px auto 0;
}

.mxb-pml-detail-contact .mxb-pml-detail-map,
.mxb-pml-detail-contact .mxb-pml-detail-map iframe {
    display: block;
    width: 100%;
    height: 335px;
    min-height: 335px;
    border: 0;
}

.mxb-pml-detail-contact .mxb-pml-detail-contact-form {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 0;
    padding: 15px 0 0;
    background: transparent;
    color: #ffffff;
    box-sizing: border-box;
}

.mxb-pml-detail-contact.mxb-pml-detail-contact-nomap {
    min-height: 690px;
}

.mxb-pml-detail-contact.mxb-pml-detail-contact-nomap .mxb-pml-detail-contact-grid {
    grid-template-columns: minmax(0, 610px);
    justify-content: center;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 9px;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-lead-row {
    display: contents;
    min-height: 0;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-lead-field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-lead-field-full {
    grid-column: 1 / -1;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form input[type="text"],
.mxb-pml-detail-contact .mxb-pml-native-lead-form input[type="email"],
.mxb-pml-detail-contact .mxb-pml-native-lead-form input[type="tel"],
.mxb-pml-detail-contact .mxb-pml-native-lead-form textarea {
    display: block;
    width: 100%;
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 0 19px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: #363636;
    font-size: 15px;
    line-height: 50px;
    box-shadow: none;
    box-sizing: border-box;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form input::placeholder,
.mxb-pml-detail-contact .mxb-pml-native-lead-form textarea::placeholder {
    color: #6c6c6c;
    opacity: 1;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form textarea {
    height: 100px;
    min-height: 100px;
    padding-top: 20px;
    line-height: 1.4;
    resize: none;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-captcha,
.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-recaptcha {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 0;
    color: #ffffff;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-captcha {
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
}

.mxb-pml-native-lead-form .mxb-pml-lazy-captcha[hidden] {
    display: none !important;
}

.mxb-pml-detail-contact .mxb-pml-lead-response {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 7px 10px;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row {
    display: flex !important;
    position: relative;
    grid-column: 1 / -1;
    justify-self: center;
    align-items: center;
    justify-content: center;
    flex: 0 0 180px !important;
    width: 180px !important;
    max-width: 180px !important;
    height: 48px !important;
    margin: 24px auto 0 !important;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row em {
    font-style: normal;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row em.b-up {
    position: absolute;
    top: 0;
    left: 0;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row em.b-up::before,
.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row em.b-up::after,
.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row em.b-down::before,
.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row em.b-down::after {
    content: "";
    position: absolute;
    background: #f78000;
    pointer-events: none;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row em.b-up::before {
    right: -27px;
    width: 27px;
    height: 3px;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row em.b-up::after {
    right: -3px;
    width: 3px;
    height: 27px;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row em.b-down {
    position: absolute;
    right: 2px;
    bottom: 27px;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row em.b-down::before {
    left: -27px;
    bottom: -27px;
    width: 27px;
    height: 3px;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row em.b-down::after {
    left: -2px;
    width: 3px;
    height: 27px;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row button[type="submit"],
.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row input[type="submit"] {
    position: relative;
    z-index: 2;
    width: 180px;
    height: 48px;
    padding: 0;
    border: 0;
    border-top: 1px solid #6d6c6b;
    border-bottom: 1px solid #6d6c6b;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 48px;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
    appearance: none;
    transition: all 0.3s ease;
}

.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row:hover input[type="submit"],
.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row:hover button[type="submit"],
.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row input[type="submit"]:hover,
.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row input[type="submit"]:focus,
.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row button[type="submit"]:hover,
.mxb-pml-detail-contact .mxb-pml-native-lead-form .mxb-pml-submit-row button[type="submit"]:focus {
    background: #f78000;
    border-color: #f78000;
    color: #ffffff;
    outline: none;
}

@media (max-width: 767px) {
    .mxb-pml-detail .mxb-pml-detail-cta .hp-link,
    .mxb-pml-detail .mxb-pml-detail-cta .mxb-pml-share {
        width: 100%;
        flex: 1 1 100%;
    }

    .mxb-pml-detail-contact {
        left: auto;
        width: 100%;
        min-height: 0;
        margin: 0;
    }

    .mxb-pml-detail-contact .pd-interested-bg canvas,
    .mxb-pml-detail-contact-bg canvas {
        min-height: 100%;
        background-attachment: scroll !important;
    }

    .mxb-pml-detail-contact-inner {
        width: min(550px, calc(100% - 30px));
        padding: 42px 0 50px;
    }

    .mxb-pml-detail-contact .mxb-pml-detail-contact-title > span {
        font-size: 22px;
    }

    .mxb-pml-detail-contact .mxb-pml-detail-contact-title h2 {
        font-size: 31px;
    }

    .mxb-pml-detail-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-top: 44px;
    }

    .mxb-pml-detail-contact .mxb-pml-native-lead-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mxb-pml-detail-contact .mxb-pml-detail-contact-form {
        padding-top: 0;
    }

    .mxb-pml-detail-contact .mxb-pml-detail-map,
    .mxb-pml-detail-contact .mxb-pml-detail-map iframe {
        height: 300px;
        min-height: 300px;
    }
}

@media (min-width: 768px) and (max-width: 1120px) {
    .mxb-pml-detail-contact {
        min-height: 0;
    }

    .mxb-pml-detail-contact-inner {
        padding-bottom: 68px;
    }

    .mxb-pml-detail-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        max-width: 720px;
        margin: 56px auto 0;
    }

    .mxb-pml-detail-contact .mxb-pml-detail-map {
        order: 2;
    }

    .mxb-pml-detail-contact .mxb-pml-detail-map,
    .mxb-pml-detail-contact .mxb-pml-detail-map iframe {
        height: 335px;
        min-height: 335px;
    }
}

.mxb-pml-modal[hidden] {
    display: none !important;
}

.mxb-pml-modal {
    position: fixed;
    z-index: 2147483646 !important;
    inset: 0;
    display: block;
    padding: 0;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.72);
    box-sizing: border-box;
}

.mxb-pml-modal.is-open:not([hidden]) {
    display: block !important;
}

.mxb-pml-modal-dialog {
    position: relative;
    z-index: 2147483647 !important;
    width: min(886px, 100%);
    margin: auto;
    padding: 46px 74px 48px;
    background: #fff;
    color: #111;
    box-sizing: border-box;
}

.mxb-pml-modal .modal-content,
.mxb-pml-modal .modal-header,
.mxb-pml-modal .modal-body,
.mxb-pml-modal .panel,
.mxb-pml-modal .panel-body {
    background: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
}

.mxb-pml-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 30px;
    line-height: 30px;
    cursor: pointer;
}

.mxb-pml-modal-title {
    margin: 0 0 44px;
    color: #111;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.mxb-pml-modal-address {
    margin: -24px 0 28px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.mxb-pml-save-section {
    margin: 0 0 54px;
    text-align: center;
}

.mxb-pml-save-section:last-child {
    margin-bottom: 0;
}

.mxb-pml-save-section h3 {
    margin: 0 0 28px;
    color: #111;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.mxb-pml-modal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 284px;
    min-height: 68px;
    padding: 18px 28px;
    border: 0;
    background: #20262b;
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
}

.mxb-pml-modal-button:hover,
.mxb-pml-modal-button:focus {
    background: #d67a1e;
    color: #fff;
    outline: none;
}

.mxb-pml-modal-form {
    width: 90%;
    max-width: 735px;
    margin: 32px auto 0;
}

.mxb-pml-modal-form p {
    margin: 0;
}

.mxb-pml-modal-form .wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 16px;
}

.mxb-pml-modal-form .wpcf7-form-control-wrap {
    display: block;
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
}

.mxb-pml-modal-form .wpcf7-form-control-wrap[data-name*="name"],
.mxb-pml-modal-form .wpcf7-form-control-wrap[data-name*="message"],
.mxb-pml-modal-form .wpcf7-form-control-wrap[data-name*="comments"],
.mxb-pml-modal-form .wpcf7-form-control-wrap[data-name*="captcha"],
.mxb-pml-modal-form .wpcf7-form-control-wrap[data-name*="recaptcha"],
.mxb-pml-modal-form .wpcf7-form > p {
    flex-basis: 100%;
}

.mxb-pml-modal-form input:not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="checkbox"]),
.mxb-pml-modal-form textarea,
.mxb-pml-modal-form select {
    appearance: none;
    width: 100%;
    max-width: 100%;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #a5a5a5;
    border-radius: 0;
    background: transparent;
    color: #636363;
    font-size: 15px;
    font-weight: 400;
    line-height: 40px;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
}

.mxb-pml-modal-form textarea {
    height: 100px;
    resize: none;
}

.mxb-pml-modal-form input::placeholder,
.mxb-pml-modal-form textarea::placeholder {
    color: #636363;
    opacity: 1;
}

.mxb-pml-modal-form label {
    display: block;
    margin: 0;
    color: #636363;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

.mxb-pml-modal-form .wpcf7-recaptcha,
.mxb-pml-modal-form .g-recaptcha {
    flex: 1 1 100%;
    margin: 22px auto 0;
}

.mxb-pml-modal-form .wpcf7-recaptcha > div,
.mxb-pml-modal-form .g-recaptcha > div {
    margin: 0 auto;
}

.mxb-pml-modal-disclaimer {
    width: 450px;
    max-width: 90%;
    margin: 30px auto 0;
    color: #111;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
}

.mxb-pml-modal-form input[type="submit"],
.mxb-pml-modal-form button[type="submit"] {
    display: block;
    width: 283px;
    max-width: 100%;
    height: 68px;
    margin: 42px auto 0;
    border: 0;
    border-radius: 0;
    background: #23282d;
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 68px;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mxb-pml-modal-form input[type="submit"]:hover,
.mxb-pml-modal-form input[type="submit"]:focus,
.mxb-pml-modal-form button[type="submit"]:hover,
.mxb-pml-modal-form button[type="submit"]:focus {
    background: #f78000;
    color: #fff;
    outline: none;
}

.mxb-pml-modal-form .wpcf7-spinner {
    display: block;
    margin: 12px auto 0;
}

.mxb-pml-modal-form .wpcf7-response-output {
    flex: 1 1 100%;
    margin: 20px auto 0;
    text-align: center;
}

.mxb-pml-native-lead-form {
    display: flex !important;
    flex-wrap: wrap;
    gap: 24px 16px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    text-align: left !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mxb-pml-native-lead-form .mxb-pml-lead-row {
    display: flex !important;
    flex: 1 1 100%;
    gap: 16px;
    width: 100%;
    min-height: 64px;
    visibility: visible !important;
    opacity: 1 !important;
}

.mxb-pml-native-lead-form .mxb-pml-lead-field {
    display: block !important;
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    text-align: left !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mxb-pml-native-lead-form .mxb-pml-lead-field-full {
    flex: 1 1 100%;
    width: 100%;
}

.mxb-pml-native-lead-form .mxb-pml-lead-field > label,
.mxb-pml-native-lead-form .mxb-pml-lead-field > span {
    position: static;
    display: block !important;
    width: auto;
    height: auto;
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    overflow: visible;
    clip: auto;
    color: #636363;
    font-size: 15px;
    line-height: 1.25;
    text-align: left !important;
    white-space: normal;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Schedule a Showing / Request More Info: the placeholders carry the visible label,
   as in the Interested In form, so the <label>s are visually hidden (screen readers
   still get them). Visible labels over same-text placeholders read every field twice. */
.mxb-pml-modal-form .mxb-pml-native-lead-form .mxb-pml-lead-field > label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.mxb-pml-modal-form .mxb-pml-native-lead-form input[type="text"],
.mxb-pml-modal-form .mxb-pml-native-lead-form input[type="email"],
.mxb-pml-modal-form .mxb-pml-native-lead-form input[type="tel"],
.mxb-pml-modal-form .mxb-pml-native-lead-form textarea {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #a5a5a5 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 15px !important;
    line-height: 40px !important;
    box-shadow: none !important;
}

.mxb-pml-modal-form .mxb-pml-native-lead-form textarea {
    height: 100px !important;
    min-height: 100px !important;
    line-height: 1.4 !important;
    padding-top: 10px !important;
    resize: none !important;
}

.mxb-pml-modal-form .mxb-pml-native-lead-form input::placeholder,
.mxb-pml-modal-form .mxb-pml-native-lead-form textarea::placeholder {
    color: #636363 !important;
    opacity: 1 !important;
}

/* Honeypot. The modal's own input rule (.mxb-pml-modal-form ... input[type="text"],
   position: static !important) outranked a plain class selector and put this field
   on screen as an empty line above First Name; out-rank it explicitly. */
.mxb-pml-native-lead-form .mxb-pml-lead-extra,
.mxb-pml-modal-form .mxb-pml-native-lead-form input.mxb-pml-lead-extra {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.mxb-pml-native-lead-form .mxb-pml-recaptcha,
.mxb-pml-native-lead-form .mxb-pml-captcha {
    display: block !important;
    flex: 0 0 302px !important;
    margin: 30px auto 0;
    width: 302px !important;
    max-width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mxb-pml-native-lead-form .mxb-pml-recaptcha > div {
    margin: 0 auto;
}

.mxb-pml-native-lead-form .mxb-pml-captcha {
    display: flex !important;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    width: 302px !important;
    min-height: 76px !important;
    padding: 14px;
    border: 1px solid #d1d1d1;
    background: #f9f9f9;
    color: #111;
    box-sizing: border-box;
    visibility: visible !important;
    opacity: 1 !important;
}

.mxb-pml-native-lead-form .mxb-pml-captcha::after {
    content: "reCAPTCHA";
    margin-left: auto;
    color: #777;
    font-size: 10px;
    line-height: 1;
}

.mxb-pml-native-lead-form .mxb-pml-captcha input[type="checkbox"] {
    appearance: auto !important;
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    border: 2px solid #555;
    background: #fff;
    box-shadow: none !important;
    flex: 0 0 auto;
    visibility: visible !important;
    opacity: 1 !important;
}

.mxb-pml-native-lead-form .mxb-pml-captcha span {
    color: #111;
    font-size: 15px;
    line-height: 1.2;
}

.mxb-pml-lead-response {
    flex: 1 1 100%;
    width: 100%;
    margin: 20px auto 0;
    padding: 5px 10px;
    border: 2px solid transparent;
    color: #111;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    box-sizing: border-box;
}

.mxb-pml-lead-response.is-success {
    border-color: #2e7d32;
}

.mxb-pml-lead-response.is-error {
    border-color: #d93025;
}

.mxb-pml-native-lead-form .mxb-pml-submit-row {
    display: flex !important;
    flex: 1 1 100% !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 42px auto 0 !important;
    text-align: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mxb-pml-modal-form .mxb-pml-native-lead-form .mxb-pml-submit-row button[type="submit"],
#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .mxb-pml-native-lead-form .mxb-pml-submit-row button[type="submit"] {
    flex: 0 0 auto !important;
    width: 283px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.mxb-pml-modal-form button[disabled],
.mxb-pml-modal-form input[type="submit"][disabled] {
    cursor: wait;
    opacity: 0.72;
}

body.mxb-pml-modal-is-open {
    overflow: hidden;
}

body.mxb-pml-modal-is-open .modal-backdrop {
    display: none !important;
}

body.mxb-pml-modal-is-open .ip-pd-contact-bar,
body.mxb-pml-modal-is-open .ip-pd-fixed-contact,
body.mxb-pml-modal-is-open .ip-pd-floating-contact,
body.mxb-pml-modal-is-open .property-contact-bar,
body.mxb-pml-modal-is-open .property-floating-contact,
body.mxb-pml-modal-is-open .ihf-detail-contact-bar,
body.mxb-pml-modal-is-open .ihf-fixed-contact,
body.mxb-pml-modal-is-open .aios-sticky-header-wrapper,
body.mxb-pml-modal-is-open .aios-sticky-header,
body.mxb-pml-modal-is-open .site-header.is-sticky,
body.mxb-pml-modal-is-open .fixed-header,
body.mxb-pml-modal-is-open .sticky-header {
    display: none !important;
}

/* Match the legacy iHomeFinder detail modal shell while keeping CF7 as the
 * submission engine for MLS Provider listings. */
#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .modal-dialog {
    width: 80%;
    max-width: 887px;
    margin: 100px auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .modal-content {
    padding: 55px 0 60px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .modal-header,
#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .panel-body {
    padding: 0;
    border: 0;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .modal-body {
    padding: 0;
    text-align: center;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .modal-title {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 20px;
    color: #222;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-close {
    top: 7px;
    right: 7px;
    width: 44px;
    height: 44px;
    margin: 0;
    color: #111;
    font-size: 0;
    line-height: 1;
    opacity: 1;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-close span {
    display: none;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-close::before {
    content: "x" !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 30px;
    font-weight: 400;
    line-height: 44px;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-intro {
    width: 90%;
    max-width: 735px;
    margin: 24px auto 0;
    color: #111;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .modal-body .panel {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form {
    width: 90%;
    max-width: 735px;
    margin: 32px auto 0;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form form {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 16px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .wpcf7-form-control-wrap {
    display: block;
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .wpcf7-form-control-wrap[data-name*="message"],
#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .wpcf7-form-control-wrap[data-name*="comments"],
#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .wpcf7-form-control-wrap[data-name*="captcha"],
#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .wpcf7-form-control-wrap[data-name*="recaptcha"],
#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .mxb-pml-modal-submit-row,
#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .mxb-pml-modal-disclaimer {
    flex: 1 1 100%;
    width: 100%;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .wpcf7-recaptcha,
#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .g-recaptcha {
    margin: 30px auto 0;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .ihf-modal-form-disclaimer {
    width: 450px;
    max-width: 100%;
    margin: 30px auto 0;
    float: none;
    color: #111;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form input[type="submit"],
#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form button[type="submit"] {
    margin: 42px auto 0;
    display: block;
    width: 283px;
    max-width: 100%;
    height: 68px;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: #23282d;
    transition: all 0.3s ease;
}

#ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .mxb-pml-native-lead-form .mxb-pml-submit-row button[type="submit"] {
    flex: 0 0 auto !important;
    width: 283px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

@media (max-width: 767px) {
    .mxb-pml-modal {
        padding: 16px;
    }

    .mxb-pml-modal-dialog {
        padding: 42px 22px 34px;
    }

    .mxb-pml-modal-title {
        margin-bottom: 30px;
        font-size: 30px;
    }

    .mxb-pml-save-section h3 {
        font-size: 22px;
    }

    .mxb-pml-modal-button {
        width: 100%;
        min-width: 0;
    }

    .mxb-pml-modal-form .wpcf7-form-control-wrap {
        flex-basis: 100%;
    }

    .mxb-pml-native-lead-form .mxb-pml-lead-row {
        flex-wrap: wrap;
    }

    .mxb-pml-native-lead-form .mxb-pml-lead-field {
        flex-basis: 100%;
    }

    #ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .modal-dialog {
        width: 100%;
        margin: 16px auto;
    }

    #ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .modal-content {
        padding: 42px 0 34px;
    }

    #ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .modal-title {
        font-size: 30px;
    }

    #ihf-main-container.ihf-modal-container .modal.mxb-pml-modal .mxb-pml-modal-form .wpcf7-form-control-wrap {
        flex-basis: 100%;
    }
}

.mxb-pml-oh-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mxb-pml-oh-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.mxb-pml-oh-when {
    font-weight: 600;
}

.mxb-pml-map-canvas {
    width: 100%;
    height: 560px;
    background: #eef1f4;
    border: 1px solid #dde2e7;
}

.mxb-pml-map-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.mxb-pml-map-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
}

.mxb-pml-message {
    text-align: center;
    padding: 4rem 1rem;
}

.mxb-pml-message-inner {
    max-width: 620px;
    margin: 0 auto;
}

.mxb-pml-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7em 1.6em;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 1180px) {
    .mxb-premier-mls .mxb-pml-base-search {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767px) {
    .mxb-pml-banner canvas {
        min-height: 360px;
    }

    .mxb-pml-banner-copy {
        top: 55%;
    }

    .mxb-pml-banner-copy p:first-child {
        font-size: 9px;
        letter-spacing: 2px;
        white-space: normal;
    }

    .mxb-pml-banner .mxb-pml-banner-copy h1 {
        font-size: 36px !important;
    }

    .mxb-pml-banner .mxb-pml-banner-copy h1 span {
        white-space: normal;
    }

    .mxb-pml-banner-copy p:last-child {
        font-size: 14px;
        white-space: normal;
    }

    .mxb-premier-mls .mxb-pml-base-search {
        display: grid;
        grid-template-columns: 1fr;
        padding: 18px 15px 26px;
    }

    .mxb-premier-mls .mxb-pml-base-location,
    .mxb-premier-mls .mxb-pml-base-property,
    .mxb-premier-mls .mxb-pml-base-price,
    .mxb-premier-mls .mxb-pml-base-small,
    .mxb-premier-mls .mxb-pml-base-submit {
        width: 100%;
    }

    .mxb-pml-area-results .listings-entry {
        flex: 0 1 auto;
        width: 100%;
        max-width: 600px;
    }

}

/* ---- Detail action row: video / tour / gallery -------------------------
 * The links sit inside the theme's .ip-property-hdr-btns and inherit its
 * button chrome; we only guarantee spacing/wrap in case the theme CSS is
 * absent, and never restyle non-MLS pages.
 */
.mxb-pml-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- Cinematic video lightbox ------------------------------------------
 * The video, over the shared dark overlay, and nothing else — as production's
 * own video popup opens. The shared modal chrome (white panel, padding, the
 * title bar's rules) is undone here rather than made conditional, because every
 * other modal on the page wants it: a form or a message needs a surface to sit
 * on, a 16:9 player is its own surface and a white border around it just reads
 * as a mistake.
 *
 * The shared rules use !important to survive the theme's own .modal styles, so
 * these have to as well; they are more specific, so they win between the two.
 */
.mxb-pml-video-dialog {
    width: min(960px, 92vw);
    max-width: 960px;
    /* Room above for the close button, which sits over the overlay rather than
       inside a title bar, and breathing space below on a short viewport. */
    margin: 72px auto 48px;
    padding: 0;
    background: transparent;
}

.mxb-pml-modal.mxb-pml-video-modal .modal-content,
.mxb-pml-modal.mxb-pml-video-modal .modal-body {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

/* Over the player's top-right corner, white against the overlay, the way a
   lightbox closes rather than the way a dialog header does. */
.mxb-pml-video-close {
    position: absolute;
    top: -42px;
    right: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
}

.mxb-pml-video-close:hover,
.mxb-pml-video-close:focus {
    color: #fff;
    opacity: 0.75;
}

@media (max-width: 767px) {
    .mxb-pml-video-close {
        top: -38px;
    }
}

.mxb-pml-video-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.mxb-pml-video-frame-wrap .mxb-pml-video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Property detail accordion -----------------------------------------
 * The accordion reuses the theme's ul.accordion CSS (radio + label + .content
 * collapse) verbatim, so no collapse styling is defined here — adding our own
 * .content display rules would fight the theme's max-height transition.
 *
 * The wrapper keeps the theme's horizontal centering: `margin: 0 auto` on
 * .ip-pd-accordion must not be flattened to `0`, or the sections shift left.
 * We only nudge the top margin and restate the theme's max-width/padding as a
 * standalone fallback (identical values, so the theme CSS is never broken).
 */
.mxb-pml-detail-accordion {
    max-width: 1500px;
    margin: 32px auto 0;
    padding: 80px 20px;
    box-sizing: border-box;
}

/* Two-column fact layout: the theme lays each fact out as `label | value` in a
 * flex row inside a 50%-width column, but its rules assume short values — a flex
 * item won't shrink below its content, so a long list value (e.g. "Interior")
 * overflows and collides with the other column. Scoped to our wrapper only, we
 * let the value shrink and wrap inside its own column; typography, alignment and
 * the theme's global .feat-item are untouched, so spacing still matches prod. */
.mxb-pml-detail-accordion .feat-item {
    align-items: flex-start;
}
.mxb-pml-detail-accordion .p-feat-value {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Open house panel (detail pages).
 *
 * The production theme already styles this block as
 * `.ip-property-details-top .listings-open-house`, and the template emits that
 * exact wrapper so the theme's rules apply verbatim — this is a FALLBACK for
 * sibling themes that carry the markup convention but not the stylesheet. Every
 * selector below is deliberately one class less specific than the theme's, so
 * where the theme does style the panel the theme wins and production appearance
 * is unchanged. */
.mxb-pml-open-house {
    background: #EDEDED;
    color: #515151;
    display: block;
    margin: 0 0 50px;
    padding: 20px 25px 18px;
}
.mxb-pml-open-house h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}
.mxb-pml-open-house ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mxb-pml-open-house ul li {
    display: block;
    margin: 15px 0 0;
    padding: 0;
}
.mxb-pml-open-house ul li + li {
    padding-top: 15px;
    border-top: 1px dashed #545454;
}
.mxb-pml-open-house ul li > span {
    display: flex;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}
.mxb-pml-open-house ul li > span + span {
    margin-top: 8px;
}
.mxb-pml-open-house ul li > span > strong {
    width: 115px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* ---- Area page: the theme's Recent News slider ---------------------------
 * The theme gives .ip-area-news no horizontal bound of its own. On the retired
 * page it was bounded by accident: the vendor results markup left its own
 * disclaimer wrapper (max-width 1306px, 20px side padding, centred) open,
 * and the theme's news block landed inside it. The connector's area results
 * close their markup, so without this rule the slider runs edge to edge and
 * the prev/next arrows (floated 30px outside the block) fall off-screen. This
 * is that box (1306px less its 20px gutters), stated deliberately: the
 * arrows are positioned against .ip-area-news itself, so the gutters must be
 * outside it, as they were. */
.ip-area-det-wrap .ip-area-news {
    width: calc(100% - 40px);
    max-width: 1266px;
    margin-left: auto;
    margin-right: auto;
}

/* The area page's MLS disclosure sits in the same box as the retired page's
   disclaimer did: centred, 1306px less its gutters, the theme's muted grey. */
.mxb-pml-area-results .mxb-pml-disclosure {
    width: calc(100% - 40px);
    max-width: 1266px;
    margin: 50px auto 0;
    padding-top: 0;
    border-top: 0;
    color: #595959;
    font-size: 15px;
    line-height: 26px;
    letter-spacing: 0.02em;
    text-align: center;
}
