.mm-re-search,
.mm-re-results,
.mm-re-landing,
.mm-re-single {
    box-sizing: border-box;
    color: #17202a;
    font-family: inherit;
    margin: 0 auto 24px;
    max-width: 1180px;
    width: 100%;
}

.mm-re-search {
    background: #ffffff;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    padding: 18px;
}

.mm-re-search__row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 12px;
}

.mm-re-search__row--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    margin-bottom: 0;
}

.mm-re-search label,
.mm-re-filters label {
    display: grid;
    font-size: 14px;
    gap: 6px;
}

.mm-re-search span,
.mm-re-filters span {
    color: #50616d;
    font-size: 13px;
}

.mm-re-search input,
.mm-re-search select,
.mm-re-filters input,
.mm-re-results__bar select {
    border: 1px solid #c9d5dc;
    border-radius: 6px;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.mm-re-button {
    align-items: center;
    background: #146c5f;
    border: 1px solid #146c5f;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    text-decoration: none;
}

.mm-re-button:hover {
    background: #0f554b;
    color: #ffffff;
}

.mm-re-button--ghost {
    background: #ffffff;
    color: #146c5f;
}

.mm-re-results {
    display: grid;
    gap: 22px;
    grid-template-columns: 260px 1fr;
}

.mm-re-filters {
    align-self: start;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.mm-re-filters h2,
.mm-re-ai-summary h2,
.mm-re-faq h2 {
    font-size: 18px;
    margin: 0 0 6px;
}

.mm-re-results__bar {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mm-re-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    opacity: 1;
    transition: opacity 0.18s ease;
}

.mm-re-grid.is-loading {
    opacity: 0.45;
}

.mm-re-card {
    background: #ffffff;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    display: grid;
    overflow: hidden;
}

.mm-re-card__image {
    aspect-ratio: 16 / 10;
    background: #eef3f4;
    color: #65737c;
    display: grid;
    place-items: center;
    position: relative;
    text-decoration: none;
}

.mm-re-card__image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mm-re-card__image mark {
    background: #f5c84c;
    border-radius: 999px;
    color: #17202a;
    font-size: 12px;
    font-weight: 700;
    left: 10px;
    padding: 5px 9px;
    position: absolute;
    top: 10px;
}

.mm-re-card__body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.mm-re-card__price {
    font-size: 21px;
    font-weight: 800;
    margin: 0;
}

.mm-re-card__expenses,
.mm-re-card__location {
    color: #50616d;
    font-size: 14px;
    margin: 0;
}

.mm-re-card h3 {
    font-size: 18px;
    line-height: 1.25;
    margin: 0;
}

.mm-re-card h3 a {
    color: #17202a;
    text-decoration: none;
}

.mm-re-card__facts {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 4px 0;
}

.mm-re-card__facts div {
    background: #f5f8f9;
    border-radius: 6px;
    padding: 8px;
}

.mm-re-card__facts dt {
    color: #65737c;
    font-size: 11px;
}

.mm-re-card__facts dd {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.mm-re-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.mm-re-load-more {
    margin-top: 18px;
}

.mm-re-empty {
    background: #f5f8f9;
    border-radius: 8px;
    margin: 0;
    padding: 18px;
}

.mm-re-breadcrumbs {
    color: #65737c;
    font-size: 14px;
    margin: 16px 0;
}

.mm-re-landing h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    margin: 0 0 12px;
}

.mm-re-intro,
.mm-re-ai-summary,
.mm-re-faq {
    margin-bottom: 20px;
}

.mm-re-ai-summary,
.mm-re-faq details,
.mm-re-map__placeholder {
    background: #f5f8f9;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    padding: 16px;
}

.mm-re-faq {
    display: grid;
    gap: 10px;
}

.mm-re-map__placeholder {
    min-height: 320px;
}

.mm-re-admin-grid {
    display: grid;
    gap: 10px 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-re-single-page {
    background: #f4f7f8;
    box-sizing: border-box;
    color: #17202a;
    font-family: inherit;
    left: 50%;
    margin: 0 0 0 -50vw !important;
    max-width: none !important;
    min-height: 100vh;
    padding: 24px 0 48px !important;
    position: relative;
    right: 50%;
    width: 100vw !important;
}

body.single-propiedad .site,
body.single-propiedad .site-content,
body.single-propiedad .content-area,
body.single-propiedad .entry-content,
body.single-propiedad .wp-site-blocks,
body.single-propiedad .wp-block-post-content {
    max-width: none !important;
    overflow: visible !important;
}

.mm-re-single-page *,
.mm-re-single-page *::before,
.mm-re-single-page *::after {
    box-sizing: border-box;
}

.mm-re-single {
    margin: 0 auto !important;
    max-width: 1180px !important;
    padding: 0 18px !important;
    width: 100% !important;
}

.mm-re-single__breadcrumbs {
    align-items: center;
    color: #65737c;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px;
    margin: 0 0 18px;
}

.mm-re-single__breadcrumbs a {
    color: #146c5f;
    text-decoration: none;
}

.mm-re-single__hero-grid {
    display: grid !important;
    gap: 22px;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.45fr);
    margin-bottom: 24px;
    width: 100%;
}

.mm-re-single__copy {
    align-self: end;
    display: grid;
    gap: 12px;
    min-width: 0;
}

.mm-re-single__eyebrow {
    color: #146c5f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.mm-re-single__copy h1 {
    color: #17202a;
    font-size: clamp(30px, 4.8vw, 58px);
    font-weight: 850;
    line-height: 1.02;
    margin: 0;
    max-width: 760px;
    overflow-wrap: anywhere;
}

.mm-re-single__location {
    color: #50616d;
    font-size: 17px;
    margin: 0;
}

.mm-re-single__price-row {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.mm-re-single__price-row strong {
    color: #17202a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.mm-re-single__price-row span {
    color: #65737c;
    font-size: 15px;
}

.mm-re-single__gallery {
    display: grid !important;
    gap: 8px;
    grid-template-columns: 1.45fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(150px, 230px));
    min-height: 360px;
}

.mm-re-single__gallery a,
.mm-re-single__gallery-empty {
    background: #dce6ea;
    border-radius: 8px;
    display: block;
    min-width: 0;
    overflow: hidden;
}

.mm-re-single__gallery a.is-main {
    grid-row: span 2;
}

.mm-re-single__gallery img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    width: 100%;
}

.mm-re-single__gallery a:hover img {
    transform: scale(1.03);
}

.mm-re-single__gallery-empty {
    color: #50616d;
    display: grid;
    grid-column: 1 / -1;
    min-height: 360px;
    padding: 28px;
    place-items: center;
    text-align: center;
}

.mm-re-single__layout {
    align-items: start;
    display: grid !important;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 360px;
    width: 100%;
}

.mm-re-single__main {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.mm-re-single__facts {
    background: #ffffff;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
}

.mm-re-single__facts div {
    background: #ffffff;
    display: grid;
    gap: 6px;
    min-height: 84px;
    padding: 16px;
}

.mm-re-single__facts span {
    color: #65737c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mm-re-single__facts strong {
    color: #17202a;
    font-size: 20px;
    line-height: 1.15;
}

.mm-re-single__section,
.mm-re-contact-card {
    background: #ffffff;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    padding: 22px;
}

.mm-re-single__section h2 {
    color: #17202a;
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 14px;
}

.mm-re-single__content {
    color: #2b3842;
    font-size: 16px;
    line-height: 1.7;
}

.mm-re-single__content > *:first-child {
    margin-top: 0;
}

.mm-re-single__content > *:last-child {
    margin-bottom: 0;
}

.mm-re-single__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mm-re-single__chips span {
    background: #eef5f3;
    border: 1px solid #cde0dc;
    border-radius: 999px;
    color: #146c5f;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
}

.mm-re-single__media-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mm-re-single__media-links h2 {
    flex-basis: 100%;
}

.mm-re-single__aside {
    position: sticky;
    top: 24px;
    width: 100%;
}

.mm-re-contact-card {
    box-shadow: 0 18px 46px rgba(23, 32, 42, 0.12);
    display: grid;
    gap: 16px;
}

.mm-re-contact-card__agent {
    align-items: center;
    display: flex;
    gap: 12px;
}

.mm-re-contact-card__avatar {
    background: #146c5f;
    border-radius: 999px;
    color: #ffffff;
    display: grid;
    flex: 0 0 58px;
    font-size: 24px;
    font-weight: 800;
    height: 58px;
    overflow: hidden;
    place-items: center;
    width: 58px;
}

.mm-re-contact-card__avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mm-re-contact-card__agent strong,
.mm-re-contact-card__agent span {
    display: block;
}

.mm-re-contact-card__agent strong {
    color: #17202a;
    font-size: 17px;
}

.mm-re-contact-card__agent span,
.mm-re-contact-card p {
    color: #65737c;
    font-size: 14px;
    margin: 0;
}

.mm-re-button--whatsapp {
    background: #1fa855;
    border-color: #1fa855;
}

.mm-re-button--whatsapp:hover {
    background: #168744;
}

.mm-re-contact-card__form {
    display: grid;
    gap: 10px;
}

.mm-re-contact-card__form input,
.mm-re-contact-card__form textarea {
    border: 1px solid #c9d5dc;
    border-radius: 6px;
    font: inherit;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.mm-re-contact-card__form textarea {
    min-height: 96px;
    resize: vertical;
}

.mm-re-related-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-re-admin-media-preview,
.mm-re-admin-gallery-preview {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
    min-height: 38px;
}

.mm-re-admin-media-preview img,
.mm-re-admin-gallery-preview img,
.mm-re-admin-thumb {
    border-radius: 6px;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

@media (max-width: 900px) {
    .mm-re-search__row,
    .mm-re-search__row--compact,
    .mm-re-results,
    .mm-re-grid {
        grid-template-columns: 1fr;
    }

    .mm-re-results__bar {
        align-items: stretch;
        flex-direction: column;
    }

    .mm-re-single-page {
        padding: 18px 14px 36px;
    }

    .mm-re-single__hero-grid,
    .mm-re-single__layout {
        grid-template-columns: 1fr;
    }

    .mm-re-single__gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 140px 140px;
        min-height: 540px;
    }

    .mm-re-single__gallery a.is-main {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .mm-re-single__aside {
        position: static;
    }

    .mm-re-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .mm-re-card__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mm-re-card__actions {
        flex-direction: column;
    }

    .mm-re-single__copy h1 {
        font-size: 32px;
    }

    .mm-re-single__gallery {
        display: flex;
        gap: 8px;
        min-height: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .mm-re-single__gallery a,
    .mm-re-single__gallery-empty {
        aspect-ratio: 4 / 3;
        flex: 0 0 86%;
        min-height: 0;
        scroll-snap-align: start;
    }

    .mm-re-single__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mm-re-single__section,
    .mm-re-contact-card {
        padding: 16px;
    }
}
