/*
 * 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;
}

.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-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 .mxb-pml-slide {
    display: none;
}

.mxb-pml-carousel .mxb-pml-slide.is-active {
    display: block;
}

.mxb-pml-detail .mxb-pml-carousel {
    display: flex;
    width: 100%;
    gap: 0;
    overflow: hidden;
}

.mxb-pml-detail .mxb-pml-carousel .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: zoom-in;
}

.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. */
.mxb-pml-detail .mxb-pml-share-list .ip-shar-smi a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    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 {
    max-width: 1510px;
    margin: 78px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

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

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

@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-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;
}

.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;
}

.mxb-pml-native-lead-form .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-gallery-modal[hidden] {
    display: none;
}

.mxb-pml-gallery-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.92);
    box-sizing: border-box;
}

.mxb-pml-gallery-dialog {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
    width: min(1500px, 100%);
    height: min(900px, 100%);
}

.mxb-pml-gallery-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 22px;
    line-height: 38px;
    cursor: pointer;
}

.mxb-pml-gallery-stage {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    margin: 0;
}

.mxb-pml-gallery-stage img {
    display: block;
    width: 100%;
    height: calc(100% - 48px);
    min-height: 0;
    object-fit: contain;
}

.mxb-pml-gallery-stage figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.mxb-pml-gallery-stage [data-mxb-gallery-counter] {
    font-weight: 700;
}

.mxb-pml-gallery-arrow {
    align-self: center;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
}

.mxb-pml-gallery-prev {
    grid-column: 1;
    grid-row: 1;
}

.mxb-pml-gallery-next {
    grid-column: 3;
    grid-row: 1;
}

.mxb-pml-gallery-thumbs {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px 0 8px;
}

.mxb-pml-gallery-thumb {
    flex: 0 0 108px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    background: #111111;
    cursor: pointer;
    opacity: 0.58;
}

.mxb-pml-gallery-thumb.is-active {
    border-color: #ffffff;
    opacity: 1;
}

.mxb-pml-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.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-gallery-modal {
        padding: 14px;
    }

    .mxb-pml-gallery-dialog {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 1fr) auto auto;
        gap: 12px;
    }

    .mxb-pml-gallery-stage {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .mxb-pml-gallery-prev,
    .mxb-pml-gallery-next {
        grid-row: 2;
        width: 100%;
        height: 44px;
        border-radius: 2px;
    }

    .mxb-pml-gallery-prev {
        grid-column: 1;
    }

    .mxb-pml-gallery-next {
        grid-column: 2;
    }

    .mxb-pml-gallery-thumbs {
        grid-row: 3;
    }

    .mxb-pml-gallery-thumb {
        flex-basis: 82px;
        height: 56px;
    }
}
