/* MMM Bridge MLS - Frontend Styles
 * Designed for McManus Realty Group.
 *
 * Color tokens:
 *   --mmm-navy        Primary dark, used for overlays, buttons, headings
 *   --mmm-teal        Soft teal-blue for card stat bars, inquire bg
 *   --mmm-cream       Warm cream for CTA section
 *   --mmm-gold        Gold accent
 *   --mmm-line        Subtle border / divider color
 *
 * Revision notes (Phase 3 styling pass):
 *   - Tokens moved to :root so Divi override rules can use them
 *   - Added uppercase transforms to all tracked label text
 *   - Added Divi neutralization layer (section 0)
 *   - Gallery collage now height-driven instead of aspect-ratio-driven
 *   - Overview feature list is two columns on desktop
 *   - Leaflet z-index capped so it cannot punch through the Divi header
 *   - Optional hero variants are at the bottom, commented out
 */

:root {
    --mmm-navy: #1d2c3d;
    --mmm-navy-soft: #2a3d52;
    --mmm-teal: #c5d4dc;
    --mmm-teal-soft: #dde7ed;
    --mmm-cream: #f5f1ea;
    --mmm-gold: #c9a55c;
    --mmm-line: #e5e5e5;
    --mmm-text: #2c3340;
    --mmm-text-muted: #6b7785;
    --mmm-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --mmm-sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===========================================================
   0. DIVI NEUTRALIZATION
   Scoped to body.mmm-single-listing so it cannot leak into
   the rest of the site.
   =========================================================== */
body.mmm-single-listing #page-container #et-boc .et-l .et_builder_inner_content,
body.mmm-single-listing #main-content .container,
body.mmm-single-listing #content-area,
body.mmm-single-listing article.et_pb_post {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Divi's sidebar divider rule shows as a stray vertical line */
body.mmm-single-listing #main-content .container::before {
    display: none;
}

body.mmm-single-listing .entry-content,
body.mmm-single-listing .post-content {
    padding: 0;
}

/* Divi sets line-height: 1.7em on body, which breaks tight label
   and spec spacing */
.mmm-single,
.mmm-grid,
.mmm-browser {
    line-height: 1.5;
}

.mmm-hero__specs,
.mmm-card__bar,
.mmm-btn {
    line-height: 1.2;
}

/* Divi styles inputs at #et-boc .et-l input specificity, which
   beats the plugin's own form rules. Also covers CF7's own
   .wpcf7-form-control class on the same elements.
   (mmm-search-form__select is intentionally NOT included here - it
   has its own fully self-contained background/border in the SEARCH
   FORM section below, and including it here previously forced a
   transparent background via this selector's higher specificity,
   which fought with and won over that section's white background.) */
body.mmm-single-listing .mmm-inquire-form__input,
body.mmm-single-listing .mmm-inquire-form .wpcf7-form-control {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    line-height: 1.4;
}

body.mmm-single-listing .mmm-inquire-form__input,
body.mmm-single-listing .mmm-inquire-form .wpcf7-form-control {
    border: none;
    border-bottom: 1px solid var(--mmm-text-muted);
    padding: 6px 0 8px;
}

/* Divi underlines and borders anchors inside content */
.mmm-gallery__item,
.mmm-card__link {
    text-decoration: none;
    border: none;
}

/* ---------- Resets within plugin output ---------- */
.mmm-single * ,
.mmm-grid * ,
.mmm-browser * ,
.mmm-search-form * ,
.mmm-inquire-form * { box-sizing: border-box; }

/* .mmm-card gets its own reset (not just via the wrapper lists above)
   because [mmm_listing_card] can output a single bare card with no
   .mmm-grid/.mmm-single wrapper around it - without this, theme
   defaults (e.g. Divi's table/box-sizing base styles) leak in only
   in that one context and the card looks different than everywhere
   else it's used. */
.mmm-card,
.mmm-card * { box-sizing: border-box; }
.mmm-card table { border: none; border-collapse: collapse; }
.mmm-card td, .mmm-card th { border: none; padding: 0; }

.mmm-single img,
.mmm-grid img,
.mmm-browser img { max-width: 100%; height: auto; display: block; }

/* ---------- Shared uppercase label treatment ---------- */
.mmm-card__town,
.mmm-card__info,
.mmm-card__cta,
.mmm-card__bar,
.mmm-browser__view,
.mmm-browser__sort-toggle,
.mmm-browser__count,
.mmm-search-form__submit,
.mmm-inquire__eyebrow,
.mmm-inquire-form__label,
.mmm-cta__eyebrow,
.mmm-btn,
.mmm-hero__specs,
.mmm-gallery__count {
    text-transform: uppercase;
}

/* ===========================================================
   1. CARD
   =========================================================== */
.mmm-card {
    position: relative;
    background: #fff;
    overflow: hidden;
    font-family: var(--mmm-sans);
    transition: box-shadow 0.3s ease;
}

.mmm-card.is-map-highlighted {
    box-shadow: 0 0 0 3px var(--mmm-navy);
}

.mmm-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.mmm-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e8eef2;
}

.mmm-card__media img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.mmm-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8eef2 0%, #cdd9e0 100%);
}

/* Hover overlay - slides up over the whole card (photo + bar) */
.mmm-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 55, 125, 0.75);
    color: #fff;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}
.mmm-card:not(:hover) .mmm-card__overlay { transform: translateY(100%); }
.mmm-card:hover .mmm-card__bar { opacity: 0; }
.mmm-card:hover .mmm-card__media img { transform: scale(1.05); }

.mmm-card__overlay-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    padding: 16px;
}

.mmm-card__town {
    color: var(--mmm-navy);
    font-size: clamp(12px, 1.1vw, 15px);
    letter-spacing: 0.1em;
    font-weight: 700;
    padding: 16px;
    background: rgba(255,255,255,0.9);
}

.mmm-card__address {
    font-family: 'Open Sans',Helvetica,Arial,Lucida,sans-serif;
    font-size: clamp(17px, 1.8vw, 24px);
    font-weight: 500;
    line-height: 1.2;
    white-space: pre-line;
    margin: 0 0 16px;
    color: #fff;
}

.mmm-card__info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    font-family: var(--mmm-sans);
    margin-bottom: 16px;
    border: none !important;
}
.mmm-card__info-group {
    display: flex;
    gap: 20px;
    border: none !important;
}
.mmm-card__info-group--divided {
    padding-left: 20px;
    border-left: 1px solid #fff !important;
}
.mmm-card__info-col {
    display: flex;
    flex-direction: column;
    border: none !important;
}
.mmm-card__info-num {
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.mmm-card__info-label {
    font-size: clamp(10px, 0.85vw, 12px);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.3;
}

.mmm-card__remarks {
    font-size: clamp(13px, 1.4vw, 18px);
    line-height: 1.4;
    margin: 0 0 16px;
    color: #fff;
    text-transform: none;
}

.mmm-card__cta {
    display: inline-block;
    font-size: clamp(11px, 0.93vw, 12.13px);
    letter-spacing: 0.18em;
    font-weight: 700;
    color: #fff;
    align-self: flex-start;
}

/* Bottom stat bar - overlays the bottom of the photo, fades on hover */
.mmm-card__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.9);
    color: var(--mmm-navy);
    font-size: 15px;
    letter-spacing: 0.06em;
    font-weight: 600;
    transition: opacity 0.4s ease;
}

.mmm-card__specs {
    display: flex;
    column-gap: 16px;
    row-gap: 2px;
    flex-wrap: wrap;
}

.mmm-card__spec strong {
    font-weight: 700;
    margin-right: 3px;
}

.mmm-card__price {
    font-weight: 700;
    white-space: nowrap;
}

/* Mobile has no reliable hover, so skip the hover mechanic entirely:
   show the info as a static block below the image. Placed at the end
   of this section (after the base rules) on purpose - these selectors
   have the same specificity as the base rules above, so this block
   must come later in source order to actually win the cascade. */
@media (max-width: 900px) {
    .mmm-card:not(:hover) .mmm-card__overlay,
    .mmm-card .mmm-card__overlay {
        position: static;
        transform: none;
    }
    .mmm-card__bar { display: none !important; }
    .mmm-card__overlay-content {
        flex: none;
        justify-content: flex-start;
        padding: 20px;
    }
}

/* ===========================================================
   2. GRID
   =========================================================== */
.mmm-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    margin: 0;
}

.mmm-grid > .mmm-card {
    flex: 0 0 calc(33.333% - 16px);
}

.mmm-grid-cols-1 > .mmm-card { flex-basis: 100%; }
.mmm-grid-cols-2 > .mmm-card { flex-basis: calc(50% - 12px); }
.mmm-grid-cols-3 > .mmm-card { flex-basis: calc(33.333% - 16px); }
.mmm-grid-cols-4 > .mmm-card { flex-basis: calc(25% - 18px); }

@media (max-width: 900px) {
    .mmm-grid-cols-3 > .mmm-card,
    .mmm-grid-cols-4 > .mmm-card { flex-basis: calc(50% - 12px); }
}
@media (max-width: 600px) {
    .mmm-grid > .mmm-card { flex-basis: 100%; }
}

.mmm-no-results {
    padding: 60px 24px;
    text-align: center;
    color: var(--mmm-text-muted);
    font-family: var(--mmm-sans);
}

/* ===========================================================
   3. SEARCH FORM
   Matches the original Divi search bar design exactly (colors,
   spacing, breakpoints) - ported onto the plugin's BEM class names
   (.mmm-search-form__*) so templates/search-form.php didn't need
   to change, and this still gets the shared box-sizing reset /
   Divi input neutralization defined earlier in this file.
   =========================================================== */
.mmm-search-form {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: nowrap;
    padding: 0;
    background: transparent;
    font-family: 'Noto Sans', sans-serif;
}

.mmm-search-form__field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
}

.mmm-search-form__label {
    display: block;
    font-family: 'Noto Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8c7f6a;
    margin-bottom: 5px;
    font-weight: 400;
}

.mmm-search-form__select {
    width: 100%;
    font-family: 'Noto Sans', sans-serif;
    padding: 14px 32px 14px 10px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    color: var(--mmm-text);
    font-size: 13px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23000000' height='18' viewBox='0 0 20 20' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.mmm-search-form__submit {
    font-family: 'Noto Sans', sans-serif;
    background: #303B4F;
    color: #fff;
    padding: 15px 22px;
    border: none;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    font-weight: 400;
    transition: background 0.2s ease, color 0.2s ease;
}
.mmm-search-form__submit:hover {
    background: #DBCFB9;
    color: #000;
}

/* Tablet: 2-column grid, submit spans both. Dropdown panels must be
   constrained to their own field's width here too - at this
   breakpoint each field is only ~50% of the form's width, but
   .mmm-dropdown__panel's default min-width:220px (desktop value) is
   wider than that half-column, so an unconstrained panel (e.g.
   Property Type, whose option labels are long enough to wrap and
   make the panel visually tall) pushes past its own field's right
   edge and can cover the rest of the form/page below it. */
@media (max-width: 1024px) {
    .mmm-search-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        align-items: stretch;
        flex-wrap: wrap;
    }
    .mmm-search-form__field {
        /* .mmm-search-form__field is flex:1 (flex-grow:1 flex-shrink:1
           flex-basis:0%) at the base (desktop, flexbox) rule above.
           Grid ignores flex-grow/shrink, but NOT flex-basis - a
           leftover flex-basis:0% combines with each field's content
           (e.g. a long selected-town name in the toggle button) in a
           way that let one column's intrinsic content width win out
           over the other, instead of the two 1fr tracks splitting
           evenly. Resetting flex here, plus minmax(0, 1fr) above
           instead of a bare 1fr (grid tracks default to
           min-width:auto, sized to fit their content, unless told
           otherwise), makes both columns hold to a true 50/50 split
           regardless of how long any one field's label or selected
           value is. */
        flex: initial;
        min-width: 0;
        width: 100%;
    }
    .mmm-search-form__submit { grid-column: span 2; width: 100%; text-align: center; }
    .mmm-dropdown__panel { min-width: 100%; left: 0; right: 0; }
}

/* Phone: still 2 columns (see 1024px block above for the column
   split itself) - just tighter gap/padding/font-size for the
   narrower width. .mmm-search-form__submit's "grid-column: span 2"
   from the 1024px rule still applies unmodified here (both columns
   still exist, so the span is still valid) - restated explicitly
   below anyway for clarity rather than left silently inherited. */
@media (max-width: 768px) {
    .mmm-search-form { gap: 12px; }
    .mmm-search-form__select { padding: 16px 40px 16px 12px; font-size: 14px; }
    .mmm-search-form__submit {
        grid-column: span 2;
        width: 100%;
        padding: 18px;
    }
}

/* Small mobile: fine-tune label/button sizing only. */
@media (max-width: 480px) {
    .mmm-search-form__label { font-size: 10px; letter-spacing: 1.5px; }
    .mmm-search-form__submit { font-size: 12px; letter-spacing: 1.5px; }
}

/* ---------- Search form dropdowns (Town / Type / Price Min / Price
   Max / Features / Bedrooms) - shared panel chrome for both the
   checkbox (multi-select: Town, Type, Features) and radio
   (single-select: Price Min, Price Max, Bedrooms) variants. Only the
   .mmm-dropdown__box (checkbox) vs .mmm-dropdown__radio (radio)
   indicator differs between the two.

   NOTE ON STACKING CONTEXT: .mmm-dropdown__panel's own z-index only
   ever competes against siblings within its nearest positioned
   ancestor's stacking context. On the live site, the search form
   sits inside its own Divi section (.et_pb_section), which has no
   position/z-index of its own - so the *next* Divi section
   ("Featured Vineyard Homes") was painting on top regardless of how
   high the panel's z-index was set, since there was no ancestor
   stacking context for that z-index to win inside. Forcing
   position:relative + z-index on the Divi section that directly
   wraps the search form (via the shortcode wrapper, see below) gives
   the panel a stacking context that can actually out-rank the
   sections after it. If the plugin's shortcode output ever gets
   wrapped in something other than .et_pb_section by Divi, target
   that wrapper instead - the actual requirement is just "nearest
   ancestor of [data-mmm-dropdown] needs position + a z-index higher
   than sibling sections", not this exact selector. ---------- */
.et_pb_section:has(.mmm-search-form) {
    position: relative;
    z-index: 500;
}

/* Fallback for browsers without :has() support (older Safari/Firefox
   versions, notably) - :has() above already fixed this correctly on
   current browsers, but silently does nothing on older ones with no
   visible error, so this JS-driven fallback covers those. See the
   corresponding bindDropdownSectionStacking() call in frontend.js,
   which adds this class to the actual ancestor Divi section it finds
   at runtime, rather than guessing a fixed selector here that could
   break if Divi's generated class names ever change. */
.mmm-search-form-section-fix {
    position: relative !important;
    z-index: 500 !important;
}

.mmm-dropdown {
    position: relative;
}

.mmm-dropdown__toggle {
    text-align: left;
    cursor: pointer;
}

.mmm-dropdown__toggle-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mmm-dropdown__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 500;
    min-width: 220px;
    background: var(--mmm-teal-soft);
    border: 1px solid var(--mmm-navy);
    box-shadow: 0 8px 24px rgba(29, 44, 61, 0.18);
    padding: 6px 0;
}

.mmm-dropdown__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mmm-navy);
    cursor: pointer;
    user-select: none;
}
.mmm-dropdown__option:hover { background: rgba(29, 44, 61, 0.06); }

.mmm-dropdown__option input[type="checkbox"],
.mmm-dropdown__option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Checkbox indicator (Town / Property Type / Features): filled square + checkmark. */
.mmm-dropdown__box {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border: 1.25px solid var(--mmm-navy);
    background: #fff;
    position: relative;
}
.mmm-dropdown__option input:checked + .mmm-dropdown__box {
    background: var(--mmm-navy);
}
.mmm-dropdown__option input:checked + .mmm-dropdown__box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.mmm-dropdown__option input:focus-visible + .mmm-dropdown__box {
    outline: 2px solid var(--mmm-navy);
    outline-offset: 2px;
}

/* Radio indicator (Price Min / Price Max / Bedrooms): outlined circle + filled dot. */
.mmm-dropdown__radio {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.25px solid var(--mmm-navy);
    background: #fff;
    position: relative;
}
.mmm-dropdown__option input:checked + .mmm-dropdown__radio {
    border-color: #2f6fed;
}
.mmm-dropdown__option input:checked + .mmm-dropdown__radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2f6fed;
    transform: translate(-50%, -50%);
}
.mmm-dropdown__option input:focus-visible + .mmm-dropdown__radio {
    outline: 2px solid var(--mmm-navy);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .mmm-dropdown__panel { min-width: 100%; left: 0; right: 0; }
}

/* ===========================================================
   3b. PROPERTY SEARCH PAGE - BANNER + BUY/RENT TABS
   Used together on the general /search/ page: the banner is placed
   above [mmm_search_form], which now renders both tabs (see
   templates/search-form.php). Namespaced separately from section 3
   above since the banner and tab nav are new page furniture, not
   part of the dropdown/field component itself.
   =========================================================== */
.mmm-search-banner {
    background: var(--mmm-navy);
    padding: 70px max(20px, 4vw);
    text-align: center;
}
.mmm-search-banner__title {
    font-family: var(--mmm-serif);
    font-size: 44px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
@media (max-width: 700px) {
    .mmm-search-banner { padding: 44px 24px; }
    .mmm-search-banner__title { font-size: 28px; }
}

.mmm-search-tabs {
    background: #eaf1ee;
    padding: 12px max(20px, 4vw) 15px;
}

.mmm-search-tabs__inner {
    max-width: 1400px;
    margin: 0 auto;
}

.mmm-search-tabs__nav {
    display: flex;
    justify-content: flex-start;
    gap: 2px;
    margin: 0 0 14px;
}
.mmm-search-tabs__tab {
    font-family: var(--mmm-sans);
    background: transparent;
    border: none;
    padding: 8px 14px 10px;
    font-size: 14px;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: var(--mmm-text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}
.mmm-search-tabs__tab:first-child { padding-left: 0; }
.mmm-search-tabs__tab:hover { color: var(--mmm-navy); }
.mmm-search-tabs__tab.is-active {
    color: var(--mmm-navy);
}

.mmm-search-tabs__panel .mmm-search-form {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===========================================================
   4. BROWSER (neighborhood pages)
   =========================================================== */
.mmm-browser { font-family: var(--mmm-sans); }

.mmm-browser__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-bottom: 1px solid var(--mmm-line);
    margin-bottom: 28px;
}

@media (max-width: 700px) {
    .mmm-browser__toolbar {
        justify-content: center;
        text-align: center;
    }
    .mmm-browser__views {
        justify-content: center;
        width: 100%;
    }
    .mmm-browser__sort {
        margin-left: 0;
    }
    .mmm-browser__count {
        margin-left: 0;
    }
    .mmm-pagination {
        justify-content: center;
        width: 100%;
    }
}

.mmm-browser__views {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.mmm-browser__view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--mmm-text-muted);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.mmm-browser__view:hover { color: var(--mmm-navy); }
.mmm-browser__view.is-active {
    color: var(--mmm-navy);
    border-bottom-color: var(--mmm-gold);
}
.mmm-browser__view svg { width: 14px; height: 14px; opacity: 0.7; }

.mmm-browser__sort {
    margin-left: 12px;
    position: relative;
}

.mmm-browser__sort-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--mmm-text-muted);
    font-size: 11px;
    letter-spacing: 0.14em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 8px 0;
}
.mmm-browser__sort-toggle:hover,
.mmm-browser__sort.is-open .mmm-browser__sort-toggle { color: var(--mmm-navy); }
.mmm-browser__sort-toggle svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.mmm-browser__sort-label { white-space: nowrap; }

.mmm-browser__count {
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: #90B0B1;
    margin-left: 24px;
    white-space: nowrap;
}

.mmm-browser__sort-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    margin: 8px 0 0 !important;
    padding: 8px 0 !important;
    list-style: none !important;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--mmm-line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.mmm-browser__sort.is-open .mmm-browser__sort-menu { display: block; }
.mmm-browser__sort-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 18px !important;
    font-size: 13px;
    text-transform: none;
    color: var(--mmm-text);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.mmm-browser__sort-menu li:hover { background: #f5f6f7; color: var(--mmm-navy); }
.mmm-browser__sort-menu li.is-active {
    color: var(--mmm-navy);
    font-weight: 700;
}

.mmm-browser__body { position: relative; }
.mmm-browser.is-loading .mmm-browser__content { opacity: 0.5; pointer-events: none; transition: opacity 0.15s ease; }

.mmm-browser__map {
    width: 100%;
    height: 600px;
    background: #e8eef2;
    margin-bottom: 24px;
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.mmm-browser--view-split .mmm-browser__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mmm-browser--view-split .mmm-browser__map {
    position: relative;
    height: 500px;
    margin: 0;
}

.mmm-browser--view-split .mmm-browser__grid .mmm-grid > .mmm-card {
    flex-basis: calc(33.333% - 16px);
}

@media (max-width: 900px) {
    .mmm-browser--view-split .mmm-browser__grid .mmm-grid > .mmm-card {
        flex-basis: calc(50% - 12px);
    }
    .mmm-browser--view-split .mmm-browser__map { height: 400px; }
}
@media (max-width: 600px) {
    .mmm-browser--view-split .mmm-browser__grid .mmm-grid > .mmm-card {
        flex-basis: 100%;
    }
}

/* Pagination */
.mmm-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.mmm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    text-align: center;
    text-decoration: none;
    border: none;
    background: transparent;
    color: var(--mmm-text-muted);
    font-size: 13px;
    transition: all 0.2s ease;
}
.mmm-pagination .page-numbers:hover { color: var(--mmm-navy); }
.mmm-pagination .page-numbers.current {
    background: transparent;
    color: var(--mmm-navy);
    font-weight: 700;
}
.mmm-pagination .page-numbers.dots { color: var(--mmm-text-muted); }
.mmm-pagination .prev,
.mmm-pagination .next { font-size: 14px; }

/* ===========================================================
   5. SINGLE LISTING - HERO
   =========================================================== */
.mmm-single { font-family: var(--mmm-sans); color: var(--mmm-text); }
.mmm-hero {
    position: relative;
    width: 100%;
}
.mmm-hero__media {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    background: #cdd9e0;
}
.mmm-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Same fix as .mmm-rental-hero__media::after below (search
       "mmm-rental-hero__media::after" in this file for the full
       reasoning) - the previous gradient here faded to fully
       transparent by just 10% down a 700px hero (~70px), short of
       the transparent header's own unscrolled height, so a bright
       photo could wash the header out. This stays dark through ~22%
       (~150px), then fades out by 45%. */
    background: linear-gradient(
        180deg,
        rgba(20, 26, 36, 0.62) 0%,
        rgba(20, 26, 36, 0.52) 22%,
        rgba(20, 26, 36, 0) 45%
    );
    pointer-events: none;
}
body.mmm-single-listing header.et-l--header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent !important;
}
body.mmm-single-listing #et-main-area {
    margin-top: 0;
}
.mmm-hero__media img {
    width: 100%; 
	height: 100%; 
	object-fit: cover;
}
.mmm-hero__info {
    position: absolute;
    bottom: 0;
    left: max(80px, 8vw);
    background: rgba(27, 57, 107, 0.66);
    color: #fff;
    padding: 36px 48px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    min-width: 0;
    max-width: calc(100% - 8vw);
}
.mmm-hero__left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mmm-hero__address {
    font-family: var(--mmm-sans);
    font-size: 20px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
}
/* The address is the page's <h1> (one per page, for search engines and screen
   readers). Theme heading styles - Divi gives every h1 its own colour, weight
   and bottom padding - would otherwise change how it looks, so restate the
   original appearance. Font size is left to the rules above (and the mobile
   override below). */
.mmm-single h1.mmm-hero__address {
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: var(--mmm-sans);
    font-weight: 400;
    font-style: normal;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: normal;
    text-shadow: none;
}
.mmm-hero__price {
    font-family: var(--mmm-sans);
    font-size: 16px;
    font-weight: 600;
}
.mmm-hero__divider {
    display: none;
}
.mmm-hero__specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.mmm-hero__specs strong {
    font-weight: 700;
    margin-right: 4px;
}
.mmm-hero__line1, .mmm-hero__line2 {
    display: block;
}
@media (max-width: 700px) {
    .mmm-hero__media {
        height: 550px;
    }
    .mmm-hero__info {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        padding: 24px 28px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 24px;
    }
    .mmm-hero__left {
        gap: 8px;
    }
    .mmm-hero__address {
        font-size: 17px;
    }
    .mmm-hero__price {
        font-size: 12px;
    }
    .mmm-hero__specs {
        font-size: 12px;
        gap: 4px;
    }
    .mmm-hero__media img {
        object-position: center center;
    }
}
/* ===========================================================
   6. DESCRIPTION + SECOND PHOTO
   =========================================================== */
.mmm-description {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
    margin: 0;
    padding: 100px max(80px, 8vw);
}
.mmm-description__text {
    font-size: 17px;
    line-height: 1.75;
    color: var(--mmm-text);
    max-height: 600px;
    overflow-y: auto;
    padding-right: 12px;
}
.mmm-description__text p { margin: 0 0 1em; }
.mmm-description__photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
@media (max-width: 900px) {
    .mmm-description {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 80px 24px 40px;
    }
    .mmm-description__photo {
        order: -1;
    }
    .mmm-description__text {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}
/* ===========================================================
   7. OVERVIEW (navy block)
   =========================================================== */
.mmm-overview {
    position: relative;
    width: 100%;
    min-height: 600px;
}

.mmm-overview__photo {
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.mmm-overview__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mmm-overview__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 340px;
    max-width: 40%;
    background: rgba(126, 145, 185, 0.9);
    color: #fff;
    padding: 48px 40px;
    overflow-y: auto;
}

.mmm-overview__title {
    font-family: var(--mmm-serif);
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 16px;
}

.mmm-overview__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mmm-overview__list li {
    padding: 9px 0;
    font-size: 16px;
    color: rgba(255,255,255,0.95);
}

@media (max-width: 900px) {
    .mmm-overview__photo { height: 400px; }
    .mmm-overview__panel {
        position: static;
        width: 100%;
        max-width: none;
        height: auto;
        padding: 32px 24px;
    }
    .mmm-overview__title { font-size: 26px; }
}

/* ===========================================================
   8. GALLERY
   Layout: left column = 2 stacked (50/50). Right column = 1 large
   photo (75% height) over a row of 2 small photos (25% height).
   =========================================================== */
body.mmm-single-listing .mmm-gallery {
    margin: 0;
    padding: 100px max(20px, 4vw);
}

body.mmm-single-listing .mmm-gallery__title {
    font-family: var(--mmm-serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--mmm-navy);
    text-align: center;
    margin: 0 0 36px;
}

/* The collage is height-driven: the grid tracks below give every
   item a definite pixel height, so object-fit: cover on the img
   is what actually produces the collage look. Divi's global
   img { max-width: 100%; height: auto } rule (frontend.css section 0)
   is overridden here with !important since it otherwise collapses
   every item to its natural image height and breaks the grid. */
body.mmm-single-listing .mmm-gallery__grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 12px;
    height: 1000px;
}

body.mmm-single-listing .mmm-gallery__left {
    display: grid;
    grid-template-rows: 2fr 3fr;
    gap: 12px;
    height: 100%;
    min-height: 0;
}

body.mmm-single-listing .mmm-gallery__right {
    display: grid;
    grid-template-rows: 3fr 2fr;
    gap: 12px;
    height: 100%;
    min-height: 0;
}

body.mmm-single-listing .mmm-gallery__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-height: 0;
}

body.mmm-single-listing .mmm-gallery__item {
    display: block;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 0;
}

body.mmm-single-listing .mmm-gallery__item img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

body.mmm-single-listing .mmm-gallery__item:hover img {
    transform: scale(1.06);
}

body.mmm-single-listing .mmm-gallery__hidden { display: none !important; }

body.mmm-single-listing .mmm-gallery__count {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--mmm-text-muted);
}

body.mmm-single-listing .mmm-gallery__title-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

body.mmm-single-listing .mmm-gallery__title-link:hover {
    opacity: 0.7;
}

@media (max-width: 1100px) {
    body.mmm-single-listing .mmm-gallery__grid { height: 480px; }
}
/* All photos stack full-width on mobile, in source order. */
@media (max-width: 700px) {
    body.mmm-single-listing .mmm-gallery__grid {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 12px;
    }
    body.mmm-single-listing .mmm-gallery__left,
    body.mmm-single-listing .mmm-gallery__right,
    body.mmm-single-listing .mmm-gallery__row {
        display: contents;
    }
    body.mmm-single-listing .mmm-gallery__item {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

/* ===========================================================
   9. MAP
   =========================================================== */
.mmm-map-section {
    width: 100%;
    background: #c5d4dc;
    position: relative;
    z-index: 0;
}
.mmm-map {
    width: 100%;
    height: 480px;
    border: 0;
    display: block;
    position: relative;
    z-index: 0;
    isolation: isolate;
}
@media (max-width: 700px) { .mmm-map { height: 320px; } }

/* Leaflet panes sit at z-index 400+ and will punch through a fixed
   Divi header on scroll. Rather than flattening every pane to
   z-index:auto (which also collapsed the popup pane below the
   marker pane, making pin clicks look like they did nothing),
   .mmm-browser__map and .mmm-map (above) get position:relative +
   isolation:isolate so Leaflet's internal stacking (tile < marker <
   popup) stays intact but can never escape above site chrome like
   the header. Both the browser/multi-listing map and the single
   listing page map use Leaflet + OpenStreetMap tiles, no API key
   or Google Maps dependency. */
.leaflet-container { font-family: var(--mmm-sans); }

.mmm-marker-popup {
    width: 220px;
}
.mmm-marker-popup img { width: 100%; height: 130px; object-fit: cover; margin-bottom: 8px; }
.mmm-marker-popup__title { font-family: var(--mmm-serif); font-size: 17px; color: var(--mmm-navy); margin: 0 0 4px; }
.mmm-marker-popup__title--link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}
.mmm-marker-popup__title--link:hover { text-decoration: underline; }
.mmm-marker-popup__directions { margin-top: 4px; }
.mmm-marker-popup__directions a {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--mmm-navy);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--mmm-gold);
    padding-bottom: 2px;
    text-transform: uppercase;
}
.mmm-marker-popup__price { font-weight: 700; color: var(--mmm-navy); font-size: 14px; }
.mmm-marker-popup__link { display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: 0.14em; color: var(--mmm-navy); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--mmm-gold); padding-bottom: 2px; text-transform: uppercase; }

/* ===========================================================
   10. INQUIRE
   =========================================================== */
.mmm-inquire {
    background: #E7F0F7;
}

.mmm-inquire__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 120px;
    padding: 100px max(80px, 8vw);
}

.mmm-inquire__photo img {
    width: 100%;
    height: 840px;
    object-fit: cover;
    display: block;
}

.mmm-inquire__form {
    max-width: 540px;
    width: 100%;
}

.mmm-inquire__eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--mmm-text-muted);
    margin: 0 0 14px;
}

.mmm-inquire__title {
    font-family: 'Cormorant Garamond', var(--mmm-serif);
    font-size: 50px;
    font-weight: 300;
    line-height: 1.2;
    color: #3d3d3d;
    margin: 0 0 32px;
}
.mmm-inquire__title em { font-style: italic; font-weight: 700; }

@media (max-width: 900px) {
    .mmm-inquire__row { grid-template-columns: 1fr; gap: 36px; padding: 80px 24px 40px; }
    .mmm-inquire__photo img { height: 280px; }
    .mmm-inquire__title { font-size: 28px; }
}

/* Form (Contact Form 7) - placeholder-based fields, no <label> elements */
.mmm-inquire-form { font-family: var(--mmm-sans); }
.mmm-inquire-form .wpcf7-form-control-wrap { display: block; }
.mmm-inquire-form p { margin: 0; }
.mmm-inquire-form__field { margin-bottom: 22px; }

.mmm-inquire-form__input::placeholder,
.mmm-inquire-form input.wpcf7-form-control::placeholder,
.mmm-inquire-form textarea.wpcf7-form-control::placeholder {
    font-size: 10px;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--mmm-text-muted);
    text-transform: uppercase;
    opacity: 1;
}

.mmm-inquire-form__input,
.mmm-inquire-form input.wpcf7-form-control:not(.wpcf7-submit),
.mmm-inquire-form textarea.wpcf7-form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--mmm-text-muted);
    padding: 6px 0 8px;
    font-size: 15px;
    color: var(--mmm-text);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}
.mmm-inquire-form__input:focus,
.mmm-inquire-form input.wpcf7-form-control:not(.wpcf7-submit):focus,
.mmm-inquire-form textarea.wpcf7-form-control:focus { border-bottom-color: var(--mmm-navy); }
body.mmm-single-listing .mmm-inquire-form__input:focus,
body.mmm-single-listing .mmm-inquire-form input.wpcf7-form-control:not(.wpcf7-submit):focus,
body.mmm-single-listing .mmm-inquire-form textarea.wpcf7-form-control:focus { border-bottom-color: var(--mmm-navy); }
.mmm-inquire-form__textarea,
.mmm-inquire-form textarea.wpcf7-form-control { resize: vertical; height: 80px; min-height: 60px; }

/* CF7's own inline field error ("this field is required" etc). */
.mmm-inquire-form .wpcf7-not-valid-tip {
    display: block;
    color: #c33;
    font-size: 12px;
    margin-top: 4px;
}

/* CF7 flags invalid inputs with aria-invalid rather than a class. */
.mmm-inquire-form input.wpcf7-form-control[aria-invalid="true"],
.mmm-inquire-form textarea.wpcf7-form-control[aria-invalid="true"] {
    border-bottom-color: #c33;
}

.mmm-inquire-form .mmm-inquire-form__notice {
    font-size: 14px;
    color: var(--mmm-text-muted);
}

/* Submit button reuses the site's existing .mmm-btn / .mmm-btn--primary
   classes directly on CF7's submit tag (class:mmm-btn class:mmm-btn--primary
   in the field tag), so no separate .wpcf7-submit skin is needed here.
   CF7 shows/hides its own .wpcf7-spinner automatically during submit;
   restyle it to match the site's spinner rather than CF7's default. */
.mmm-inquire-form .wpcf7-spinner {
    width: 14px;
    height: 14px;
    margin: 0 0 0 10px;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mmm-spin 0.7s linear infinite;
    vertical-align: middle;
}

/* CF7's overall success/error banner, shown below the fields. */
.mmm-inquire-form .wpcf7-response-output {
    margin: 14px 0 0;
    padding: 0;
    border: none;
    font-size: 14px;
}
.mmm-inquire-form form.sent .wpcf7-response-output { color: #2e7d32; }
.mmm-inquire-form form.failed .wpcf7-response-output,
.mmm-inquire-form form.aborted .wpcf7-response-output,
.mmm-inquire-form form.spam .wpcf7-response-output,
.mmm-inquire-form form.unaccepted .wpcf7-response-output { color: #c33; }

/* CF7's true honeypot add-on markup, if enabled on the form. */
.mmm-inquire-form .wpcf7-honeypot-hp,
.mmm-inquire-form .wpcf7-honeypot {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
}

/* ===========================================================
   11. BUTTONS
   =========================================================== */
.mmm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--mmm-sans);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.mmm-btn--primary {
    background: var(--mmm-navy);
    color: #fff;
    border-color: var(--mmm-navy);
}
.mmm-btn--primary:hover { background: var(--mmm-navy-soft); border-color: var(--mmm-navy-soft); color: #fff; }

.mmm-btn--outline {
    background: transparent;
    color: var(--mmm-navy);
    border-color: var(--mmm-navy);
}
.mmm-btn--outline:hover { background: var(--mmm-navy); color: #fff; }

/* Divi styles .et_pb_button and bare buttons aggressively */
body.mmm-single-listing .mmm-btn {
    border-radius: 0;
    line-height: 1.2;
}
body.mmm-single-listing .mmm-btn::after { display: none !important; }

/* CF7's submit tag renders as a <button class="... et_pb_button
   et_pb_bg_layout_light mmm-btn mmm-btn--primary">, and Divi's own
   .et_pb_button rules override .mmm-btn--primary's background/border/
   text-decoration because Divi's theme stylesheet loads with higher
   specificity. Re-assert the button look at matching specificity. */
body.mmm-single-listing .mmm-inquire-form button.mmm-btn.mmm-btn--primary,
body.mmm-single-listing .mmm-inquire-form button.mmm-btn.mmm-btn--primary.et_pb_button {
    background: #4D5568 !important;
    background-image: none !important;
    color: #fff !important;
    border: 1px solid #4D5568 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    padding: 14px 48px !important;
    min-width: 220px !important;
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
    font-weight: 700 !important;
    font-family: var(--mmm-sans) !important;
    box-shadow: none !important;
}
body.mmm-single-listing .mmm-inquire-form button.mmm-btn.mmm-btn--primary:hover,
body.mmm-single-listing .mmm-inquire-form button.mmm-btn.mmm-btn--primary.et_pb_button:hover {
    background: #3A4050 !important;
    border-color: #3A4050 !important;
    color: #fff !important;
}
body.mmm-single-listing .mmm-inquire-form button.mmm-btn.mmm-btn--primary::after,
body.mmm-single-listing .mmm-inquire-form button.mmm-btn.mmm-btn--primary.et_pb_button::after {
    display: none !important;
}

.mmm-btn__spinner {
    display: none;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mmm-spin 0.7s linear infinite;
}
.mmm-btn.is-loading .mmm-btn__text { opacity: 0.6; }
.mmm-btn.is-loading .mmm-btn__spinner { display: inline-block; }
@keyframes mmm-spin { to { transform: rotate(360deg); } }

/* ===========================================================
   12. RELATED (Continue your search)
   =========================================================== */
.mmm-related {
    padding: 100px max(80px, 8vw);
}

.mmm-related__title {
    font-family: 'Cormorant Garamond', var(--mmm-serif);
    font-size: 50px;
    font-weight: 300;
    line-height: 1.2;
    color: #3d3d3d;
    margin: 0 0 36px;
}
.mmm-related__title em { font-style: italic; font-weight: 700; }

@media (max-width: 900px) {
    .mmm-related { padding: 80px 24px; }
    .mmm-related__title { font-size: 28px; }
}

/* ===========================================================
   13. CTA
   =========================================================== */
.mmm-cta {
    background: #e1decb;
    padding: 100px max(80px, 8vw);
    text-align: center;
}

.mmm-cta__eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: var(--mmm-navy);
    margin: 0 0 18px;
}

.mmm-cta__title {
    font-family: 'Cormorant Garamond', var(--mmm-serif);
    font-size: 50px;
    font-weight: 300;
    color: #3d3d3d;
    line-height: 1.2;
    margin: 0 0 18px;
    max-width: 720px;
    margin-left: auto; margin-right: auto;
}
.mmm-cta__title em { font-style: italic; font-weight: 700; }

.mmm-cta__copy {
    max-width: 580px;
    margin: 0 auto 30px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--mmm-text);
}

.mmm-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* CTA buttons are the closing call-to-action on the page, so they run
   larger than the base .mmm-btn size used elsewhere (e.g. inquire form
   submit). Scoped to .mmm-cta so other .mmm-btn usages are unaffected. */
.mmm-cta .mmm-btn {
    padding: 18px 40px;
    font-size: 12px;
    letter-spacing: 0.2em;
    min-width: 240px;
}

.mmm-cta .mmm-btn--primary {
    background: #303b4f;
    border-color: #303b4f;
    color: #fff;
}
.mmm-cta .mmm-btn--primary:hover {
    background: var(--mmm-navy-soft);
    border-color: var(--mmm-navy-soft);
    color: #fff;
}

.mmm-cta .mmm-btn--outline {
    background: #ffffff;
    border-color: #ffffff;
    color: #303b4f;
}
.mmm-cta .mmm-btn--outline:hover {
    background: transparent;
    border-color: #303b4f;
    color: #303b4f;
}

@media (max-width: 900px) {
    .mmm-cta { padding: 80px 24px; }
    .mmm-cta__title { font-size: 28px; }
    .mmm-cta__copy { font-size: 14px; }
    .mmm-cta__buttons { flex-direction: column; align-items: stretch; gap: 12px; }
    .mmm-cta .mmm-btn { width: 100%; min-width: 0; padding: 16px 28px; }
}

/* ===========================================================
   14. DISCLAIMER
   =========================================================== */
.mmm-disclaimer {
    padding: 20px max(20px, 4vw);
    background: #fff;
    border-top: 1px solid var(--mmm-line);
}
.mmm-disclaimer p {
    max-width: 1240px;
    margin: 0 auto;
    font-size: 11px;
    line-height: 1.6;
    color: var(--mmm-text-muted);
    text-align: center;
}

/* ===========================================================
   15. ACCESSIBILITY
   =========================================================== */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* ===========================================================
   16. OPTIONAL HERO VARIANTS
   Uncomment only if the mockup shows these treatments.
   =========================================================== */

/* 16a. Info card sits fully inside the hero photo instead of
   straddling the bottom edge. */
/*
.mmm-hero__info {
    transform: none;
    bottom: max(20px, 3vw);
}
.mmm-description { padding-top: 80px; }
*/

/* 16b. Price sits inline to the right of the specs instead of
   wrapping onto its own row. */
/*
.mmm-hero__price {
    flex-basis: auto;
    margin-top: 0;
    padding-top: 0;
    padding-left: 36px;
    border-top: none;
    border-left: 1px solid rgba(255,255,255,0.25);
    margin-left: auto;
}
@media (max-width: 700px) {
    .mmm-hero__price {
        flex-basis: 100%;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.25);
        padding-top: 10px;
    }
}
*/

/* ===========================================================
   17. SINGLE RENTAL
   Deliberately independent from sections 0/5-9 above (.mmm-single,
   .mmm-hero, .mmm-gallery, .mmm-overview, .mmm-map-section) - the
   client asked for fully separate rental styling rather than reusing
   sale-listing selectors, so nothing here shares a class name with
   the sale template. Shared *values* (colors, fonts, spacing) still
   come from the :root tokens declared at the top of this file.

   Because of that separation, the Divi-fighting overrides in
   sections 0 and 11 (which are scoped to body.mmm-single-listing)
   do not apply here - 17a below re-declares the same fixes scoped to
   body.mmm-single-rental so Divi/CF7 don't fight the rental page's
   header, buttons, or gallery either.
   =========================================================== */

.mmm-rental { font-family: var(--mmm-sans); color: var(--mmm-text); }

/* ---------- 17a. Divi neutralization (mirrors section 0) ---------- */
body.mmm-single-rental #page-container #et-boc .et-l .et_builder_inner_content,
body.mmm-single-rental #main-content .container,
body.mmm-single-rental #content-area,
body.mmm-single-rental article.et_pb_post {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}
body.mmm-single-rental #main-content .container::before {
    display: none;
}
body.mmm-single-rental .entry-content,
body.mmm-single-rental .post-content {
    padding: 0;
}
.mmm-rental,
.mmm-rental * {
    box-sizing: border-box;
}
.mmm-rental img {
    max-width: 100%;
    height: auto;
    display: block;
}
.mmm-rental-hero__specs,
.mmm-rental-subnav__link,
.mmm-rental-details__label,
.mmm-rental-cta__eyebrow,
.mmm-rental-inquire__eyebrow,
.mmm-rental-gallery__count {
    text-transform: uppercase;
}

/* ---------- 17b. Hero ---------- */
.mmm-rental-hero {
    position: relative;
    width: 100%;
}
.mmm-rental-hero__media {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    background: #cdd9e0;
}
.mmm-rental-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Darkens the top of the hero photo so the transparent Divi header
       (see body.mmm-single-rental header.et-l--header below - same
       position:absolute/transparent-background technique as the sale
       listing template) stays readable over a bright photo (sky, white
       siding, etc.) - matches the same darkening approach Divi's own
       page banners use elsewhere on the site (see the Buy page's hero:
       a background-blend-mode:overlay gradient layered under the logo/
       nav), rather than a from-scratch effect. The previous version of
       this gradient (see the commented-out line above) faded to fully
       transparent by just 10% down the image - on a 700px-tall hero
       that's roughly 70px, well short of the header's own ~129px
       unscrolled height (confirmed live: the "tall" hero-transparent
       header state, before it shrinks to its ~77px sticky state further
       down the page), so a bright photo could wash out the header
       before its own bottom edge. This one stays meaningfully dark
       through about 22% (~150px on a 700px hero), then fades out the
       rest of the way by 45% so the photo reads normally everywhere
       the header isn't.
    */
    background: linear-gradient(
        180deg,
        rgba(20, 26, 36, 0.62) 0%,
        rgba(20, 26, 36, 0.52) 22%,
        rgba(20, 26, 36, 0) 45%
    );
    pointer-events: none;
}
body.mmm-single-rental header.et-l--header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent !important;
}
body.mmm-single-rental #et-main-area {
    margin-top: 0;
}
.mmm-rental-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mmm-rental-hero__info {
    position: absolute;
    bottom: 0;
    left: max(80px, 8vw);
    background: rgba(27, 57, 107, 0.66);
    color: #fff;
    padding: 36px 48px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    min-width: 0;
    max-width: calc(100% - 8vw);
}
.mmm-rental-hero__left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mmm-rental-hero__address {
    font-size: 20px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
}
.mmm-rental-hero__price {
    font-size: 16px;
    font-weight: 600;
}
.mmm-rental-hero__specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.mmm-rental-hero__specs strong { font-weight: 700; margin-right: 4px; }
.mmm-rental-hero__specs li { margin: 0; padding: 0; }
.mmm-rental-hero__line1, .mmm-rental-hero__line2 { display: block; }

@media (max-width: 700px) {
    .mmm-rental-hero__media { height: 550px; }
    .mmm-rental-hero__info {
        left: 0;
        width: 100%;
        max-width: none;
        padding: 24px 28px;
        justify-content: center;
        gap: 24px;
    }
    .mmm-rental-hero__address { font-size: 17px; }
    .mmm-rental-hero__price { font-size: 12px; }
    .mmm-rental-hero__specs { font-size: 12px; gap: 4px; }
}

/* ---------- 17c. Sticky sub-nav ---------- */
.mmm-rental-subnav {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 22px max(20px, 4vw);
    background: #eeefe9;
    border-bottom: 1px solid var(--mmm-line);
    position: sticky;
    /* 77px matches Divi's sticky header height for a logged-out
       visitor (top: 0). When the WordPress admin toolbar is showing
       (body.admin-bar - added by WP itself whenever a logged-in user
       with the toolbar enabled is viewing the front end), Divi's own
       sticky header shifts down to accommodate it (top: 32px, or 46px
       on narrow/mobile screens - WP's own admin-bar breakpoint, see
       the media query below), so this sub-nav needs the same offset
       added or it sticks 32px/46px too high and gets covered by
       Divi's header - exactly the clash this fixes. Only affects
       logged-in staff previewing the site; a real visitor never has
       body.admin-bar and always gets the plain 77px. */
    top: 77px;
    z-index: 1;
}
body.admin-bar .mmm-rental-subnav {
    top: calc(77px + 32px);
}
@media screen and (max-width: 782px) {
    /* WordPress's own admin-bar breakpoint: the toolbar itself grows
       from 32px to 46px tall below this width, and Divi's sticky
       header shifts to match - so this has to switch at the same
       782px point to stay in sync with both. */
    body.admin-bar .mmm-rental-subnav {
        top: calc(77px + 46px);
    }
}
.mmm-rental-subnav__link {
    font-size: 14px;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--mmm-text-muted);
    text-decoration: none;
    padding-bottom: 4px;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.mmm-rental-subnav__link:hover { color: var(--mmm-navy); }
.mmm-rental-subnav__link.is-active {
    color: var(--mmm-navy);
}
@media (max-width: 700px) {
    .mmm-rental-subnav {
        gap: 20px;
        padding: 16px 16px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    .mmm-rental-subnav__link {
        font-size: 12px;
        flex: 0 0 auto;
    }
}

/* ---------- 17d. Description ---------- */
.mmm-rental-description {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    padding: 100px max(80px, 8vw) 60px;
    scroll-margin-top: 70px;
}
.mmm-rental-description__headline {
    font-family: var(--mmm-serif);
    font-size: 50px;
    font-weight: 300;
    color: #3d3d3d;
    margin: 0 0 20px;
    line-height: 60px;
}
.mmm-rental-description__text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--mmm-text);
}
.mmm-rental-description__text p { margin: 0 0 1em; }
.mmm-rental-description__photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
@media (max-width: 900px) {
    .mmm-rental-description {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 24px 20px;
    }
    .mmm-rental-description__photo { order: -1; }
    .mmm-rental-description__headline { font-size: 32px; line-height: 30px; }
}

/* ---------- 17e. Availability calendar ---------- */
.mmm-rental-availability {
    padding: 40px max(20px, 4vw) 80px;
    /* Confirmed via direct live testing (same approach used
       throughout this file for the other sub-nav targets) - 70px (the
       sub-nav's own height) landed the section's visible content
       ~83px underneath the sub-nav once the scrollIntoView
       behavior:'instant' fix (see bindRentalSubnav() in
       assets/js/frontend.js) made the landing position measurable and
       consistent; 'smooth' scrolling had been masking this same
       shortfall by coincidence before that fix. 155px lands cleanly. */
    scroll-margin-top: 155px;
}
.mmm-rental-availability__note {
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--mmm-navy);
    margin: 0 0 30px;
    text-transform: uppercase;
}
.mmm-rental-calendar {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1500px;
    margin: 0 auto;
}
.mmm-rental-calendar__month {
    border-collapse: collapse;
    font-size: 16px;
}
.mmm-rental-calendar__month caption {
    font-family: var(--mmm-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--mmm-navy);
    padding-bottom: 18px;
    caption-side: top;
}
.mmm-rental-calendar__month th {
    font-weight: 600;
    color: var(--mmm-text-muted);
    font-size: 13px;
    padding: 8px 12px;
}
.mmm-rental-calendar__cell {
    width: 46px;
    height: 42px;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    color: var(--mmm-text);
    background: #f2f2f2;
    position: relative;
}
.mmm-rental-calendar__cell.is-empty { background: transparent; }
.mmm-rental-calendar__cell.is-available { background: #f2f2f2; color: var(--mmm-text); }
.mmm-rental-calendar__cell.is-unavailable { background: #5c6a81; color: #fff; }
.mmm-rental-calendar__cell.is-check-in,
.mmm-rental-calendar__cell.is-check-out {
    color: #fff;
    background: linear-gradient(135deg, #f2f2f2 50%, #5c6a81 50%);
}
.mmm-rental-calendar__cell.is-check-out {
    background: linear-gradient(135deg, #5c6a81 50%, #f2f2f2 50%);
    color: var(--mmm-text);
}

@media (max-width: 767px) {
    .mmm-rental-availability__note {
        line-height: 1.9;
    }
}
/* ---------- Slider chrome (prev/next arrows around the 3
   .mmm-rental-calendar__month tables). .mmm-rental-calendar (the
   flex row of month tables) sits between the two arrow buttons -
   flex:1 on it lets the arrows stay pinned to the outer edges
   regardless of how wide the 3 months render at a given width. ---------- */
.mmm-rental-calendar-slider {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}
.mmm-rental-calendar-slider .mmm-rental-calendar {
    flex: 0 0 auto;
    min-width: 0;
}
.mmm-rental-calendar-slider.is-loading .mmm-rental-calendar {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.mmm-rental-calendar-slider__arrow {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin-top: 30px; /* roughly aligns with the month tables' caption/day-grid, not the top of the whole calendar row */
    border: 1px solid var(--mmm-line);
    border-radius: 50%;
    background: #fff;
    color: var(--mmm-navy);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.mmm-rental-calendar-slider__arrow:hover:not(:disabled) {
    background: var(--mmm-teal-soft);
    border-color: var(--mmm-navy);
}
.mmm-rental-calendar-slider__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.mmm-rental-calendar__legend {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    font-size: 14px;
    color: var(--mmm-text-muted);
}
.mmm-rental-calendar__legend li { display: flex; align-items: center; gap: 8px; }
.mmm-rental-calendar__swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 2px;
}
.mmm-rental-calendar__swatch.is-available { background: #f2f2f2; border: 1px solid var(--mmm-line); }
.mmm-rental-calendar__swatch.is-unavailable { background: #5c6a81; }
.mmm-rental-calendar__swatch.is-check-in { background: linear-gradient(135deg, #f2f2f2 50%, #5c6a81 50%); }
.mmm-rental-calendar__swatch.is-check-out { background: linear-gradient(135deg, #5c6a81 50%, #f2f2f2 50%); }

@media (max-width: 900px) {
    .mmm-rental-calendar { gap: 30px; }
    .mmm-rental-calendar__cell { width: 38px; height: 34px; }
    .mmm-rental-calendar-slider { gap: 8px; }
    .mmm-rental-calendar-slider__arrow { width: 36px; height: 36px; font-size: 16px; margin-top: 20px; }
}
@media (max-width: 700px) {
    /* One month at a time on mobile (see bindRentalCalendarSlider()
       in frontend.js, which pages by 1 month and requests just 1
       month per AJAX call at this width). The initial page load
       still always renders 3 months server-side (PHP has no way to
       know the visitor's viewport width), so the 2nd and 3rd month
       tables are hidden here rather than not rendered - the first
       arrow click replaces the markup with a true single-month
       response anyway, at which point this rule has nothing left to
       hide.

       .mmm-rental-calendar-slider previously used width:fit-content
       with flex:0 0 auto (no shrink) on the calendar - correct for
       desktop's "keep 3 months on one line, size to that content"
       goal, but at this width it actively prevented
       .mmm-rental-calendar's own flex-wrap:wrap from ever mattering:
       fit-content + no-shrink meant the container just grew to fit
       all 3 months unwrapped rather than letting them stack, which
       is what overflowed the viewport. Switching to width:100% and
       letting the calendar shrink/wrap fixes that regardless of the
       nth-child hiding below. */
    .mmm-rental-calendar-slider {
        width: 100%;
        align-items: center;
        gap: 12px;
    }
    .mmm-rental-calendar-slider .mmm-rental-calendar {
        flex: 1 1 auto;
        min-width: 0;
    }
    .mmm-rental-calendar {
        flex-wrap: nowrap;
    }
    .mmm-rental-calendar__month:nth-child(n+2) {
        display: none;
    }
    .mmm-rental-calendar__month {
        width: 100%;
        margin: 0 auto;
    }
    .mmm-rental-calendar-slider__arrow { margin-top: 0; flex: 0 0 auto; }
}

/* ---------- 17f. Gallery row + Overview ---------- */
.mmm-rental-overview {
    position: relative;
    width: 100%;
    min-height: 600px;
    /* Confirmed via direct live testing (not guessed): the "Overview"
       heading isn't right at the section's own top edge - it sits
       48px into the full-height .mmm-rental-overview__panel's own top
       padding. 70px (the sub-nav's own height, and what the other
       sections use) clears the SECTION correctly but still leaves the
       title itself ~28-35px underneath the sub-nav. 118px was the
       value that landed the title with a small, comfortable margin
       below the sub-nav in a direct scrollIntoView test at this
       breakpoint. See also the scrollIntoView behavior:'instant' fix
       in bindRentalSubnav() (assets/js/frontend.js) - without that,
       inconsistent results appear regardless of this value, since
       'smooth' scrolling doesn't reliably respect scroll-margin-top
       when Divi's own sticky header changes height mid-animation. */
    scroll-margin-top: 118px;
}
.mmm-rental-overview__photo {
    width: 100%;
    height: 650px;
    overflow: hidden;
}
.mmm-rental-overview__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mmm-rental-overview__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 340px;
    max-width: 40%;
    background: rgba(126, 145, 185, 0.9);
    color: #fff;
    padding: 48px 40px;
    overflow-y: auto;
}
.mmm-rental-overview__title {
    font-family: var(--mmm-serif);
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 16px;
}
.mmm-rental-overview__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mmm-rental-overview__list li {
    padding: 9px 0;
    font-size: 16px;
    color: rgba(255,255,255,0.95);
}
@media (max-width: 900px) {
    .mmm-rental-overview__photo { height: 400px; }
    .mmm-rental-overview__panel {
        position: static;
        width: 100%;
        max-width: none;
        height: auto;
        padding: 32px 24px;
    }
    .mmm-rental-overview__title { font-size: 26px; }
}

/* ---------- 17g. Gallery collage ---------- */
.mmm-rental-gallery {
    padding: 60px max(20px, 4vw) 30px;
    /* Confirmed via direct live testing (same approach as
       .mmm-rental-overview above) - the "View Gallery" title sits
       below this section's own top padding, so the sub-nav's own
       height (70px, what 3 other sections use) still left the title
       partly hidden underneath it. 95px was the value that cleared it
       cleanly in a direct scrollIntoView test. Also depends on the
       scrollIntoView behavior:'instant' fix in bindRentalSubnav() -
       see the longer comment on .mmm-rental-overview above for why
       'smooth' scrolling can't be trusted to land here consistently. */
    scroll-margin-top: 95px;
}
.mmm-rental-gallery__title {
    font-family: var(--mmm-serif);
    font-size: 26px;
    font-weight: 400;
    color: var(--mmm-navy);
    text-align: center;
    margin: 0 0 24px;
}
.mmm-rental-gallery__title-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.mmm-rental-gallery__title-link:hover { opacity: 0.7; }
.mmm-rental-gallery__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.mmm-rental-gallery__item img {
    width: 100% !important;
    height: 650px !important;
    max-width: none !important;
    object-fit: cover !important;
}
.mmm-rental-gallery__hidden { display: none !important; }
@media (max-width: 700px) {
    .mmm-rental-gallery__grid { grid-template-columns: 1fr; }
    .mmm-rental-gallery__item img { height: 280px !important; }
}

/* ---------- 17h. More Details ---------- */
.mmm-rental-details {
    padding: 30px max(20px, 4vw) 60px;
    /* This is what the sub-nav's "Amenities" link targets directly
       (#mmm-rental-details, the section itself - see the href in
       templates/single-mmm_rental.php) so the whole section, heading
       included, lands below the sub-nav. It used to instead target
       #mmm-rental-amenities, the third of the three columns further
       down (see that rule below) - jumping straight to that column
       cut off the "More Details" heading and skipped the General
       Info / Rooms + Beds columns beside it entirely, worse still on
       the sub-900px breakpoint where the three columns stack
       vertically and Amenities would land the visitor mid-page past
       content they hadn't scrolled through. 130px was confirmed via
       direct live testing (same approach as the other sections in
       this file) to clear both the sticky nav and this section's own
       heading/subtitle with a small, comfortable margin below. */
    scroll-margin-top: 130px;
    max-width: 1240px;
    margin: 0 auto;
}
#mmm-rental-amenities {
    /* No longer a scroll target (the sub-nav points at the section
       itself now - see .mmm-rental-details above). Left in place as a
       stable DOM hook / potential direct deep-link into just this
       column; scroll-margin-top kept as a reasonable fallback offset
       should anything ever link to it directly. */
    scroll-margin-top: 155px;
}
.mmm-rental-details__title {
    font-family: var(--mmm-serif);
    font-size: 30px;
    font-weight: 400;
    color: var(--mmm-navy);
    margin: 0 0 6px;
}
.mmm-rental-details__subtitle {
    font-size: 11px;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--mmm-text-muted);
    margin: 0 0 30px;
}
.mmm-rental-details__columns {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 40px;
}
.mmm-rental-details__col { font-size: 17px; line-height: 1.5; color: var(--mmm-text); }
.mmm-rental-details__price { font-weight: 700; margin: 0 0 56px !important; padding-bottom: 0 !important; }
.mmm-rental-details__col p { margin: 0 0 12px !important; padding-bottom: 0 !important; }
.mmm-rental-details__price + p { margin-top: 0 !important; }
.mmm-rental-details__price + p + p { margin-top: -12px !important; }
.mmm-rental-details__plain-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.mmm-rental-details__plain-list li { margin: 0 0 4px; }
.mmm-rental-details__bathroom { margin: 0 0 12px !important; }
.mmm-rental-details__label {
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--mmm-navy);
    margin: 20px 0 10px;
}
.mmm-rental-details__bullets {
    list-style: disc;
    padding-left: 18px;
    margin: 0 0 20px;
}
.mmm-rental-details__bullets li { margin: 0 0 6px; }
.mmm-rental-details__policies p { color: var(--mmm-text-muted); }

@media (max-width: 900px) {
    .mmm-rental-details__columns { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- 17i. Map ---------- */
.mmm-rental-map-section {
    width: 100%;
    background: #c5d4dc;
    position: relative;
    z-index: 0;
    /* Confirmed via direct live testing (same approach as
       .mmm-rental-overview/.mmm-rental-gallery above). This section
       has no separate heading of its own - it IS the visible target
       ("Location" in the sub-nav just means "get to the map"), so the
       section's own top edge needs to clear the sub-nav, not an
       internal title. 160px was the value that did that cleanly.
       Also depends on the scrollIntoView behavior:'instant' fix in
       bindRentalSubnav() - see the longer comment on
       .mmm-rental-overview above for why 'smooth' scrolling can't be
       trusted to land here consistently. */
    scroll-margin-top: 160px;
}
.mmm-rental-map {
    width: 100%;
    height: 480px;
    border: 0;
    display: block;
    position: relative;
    z-index: 0;
    isolation: isolate;
}
@media (max-width: 700px) { .mmm-rental-map { height: 320px; } }

/* ---------- 17j. Inquire ---------- */
.mmm-rental-inquire { background: #E7F0F7; }
.mmm-rental-inquire__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 120px;
    padding: 100px max(80px, 8vw);
}
.mmm-rental-inquire__photo img {
    width: 100%;
    height: 840px;
    object-fit: cover;
}
.mmm-rental-inquire__form { max-width: 540px; width: 100%; }
.mmm-rental-inquire__eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--mmm-text-muted);
    margin: 0 0 14px;
}
.mmm-rental-inquire__title {
    font-family: 'Cormorant Garamond', var(--mmm-serif);
    font-size: 50px;
    font-weight: 300;
    line-height: 1.2;
    color: #3d3d3d;
    margin: 0 0 32px;
}
.mmm-rental-inquire__title em { font-style: italic; font-weight: 700; }
@media (max-width: 900px) {
    .mmm-rental-inquire__row { grid-template-columns: 1fr; gap: 36px; padding: 80px 24px 40px; }
    .mmm-rental-inquire__photo img { height: 280px; }
    .mmm-rental-inquire__title { font-size: 28px; }
}

/* Divi/CF7 button-fighting fixes (mirrors section 11, scoped here to
   body.mmm-single-rental so the rental page's CTA buttons and the
   rental inquiry form's CF7 submit button get the same corrections
   the sale template gets). */
body.mmm-single-rental .mmm-btn {
    border-radius: 0;
    line-height: 1.2;
}
body.mmm-single-rental .mmm-btn::after { display: none !important; }
body.mmm-single-rental .mmm-inquire-form button.mmm-btn.mmm-btn--primary,
body.mmm-single-rental .mmm-inquire-form button.mmm-btn.mmm-btn--primary.et_pb_button {
    background: #4D5568 !important;
    background-image: none !important;
    color: #fff !important;
    border: 1px solid #4D5568 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    padding: 14px 48px !important;
    min-width: 220px !important;
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
    font-weight: 700 !important;
    font-family: var(--mmm-sans) !important;
    box-shadow: none !important;
}
body.mmm-single-rental .mmm-inquire-form button.mmm-btn.mmm-btn--primary:hover,
body.mmm-single-rental .mmm-inquire-form button.mmm-btn.mmm-btn--primary.et_pb_button:hover {
    background: #3A4050 !important;
    border-color: #3A4050 !important;
    color: #fff !important;
}
body.mmm-single-rental .mmm-inquire-form button.mmm-btn.mmm-btn--primary::after,
body.mmm-single-rental .mmm-inquire-form button.mmm-btn.mmm-btn--primary.et_pb_button::after {
    display: none !important;
}
body.mmm-single-rental .mmm-inquire-form__input:focus,
body.mmm-single-rental .mmm-inquire-form input.wpcf7-form-control:not(.wpcf7-submit):focus,
body.mmm-single-rental .mmm-inquire-form textarea.wpcf7-form-control:focus { border-bottom-color: var(--mmm-navy); }

/* ---------- 17k. Related / CTA / Disclaimer ---------- */
.mmm-rental-related { padding: 80px max(80px, 8vw); }
.mmm-rental-related__title {
    font-family: 'Cormorant Garamond', var(--mmm-serif);
    font-size: 42px;
    font-weight: 300;
    line-height: 1.2;
    color: #3d3d3d;
    margin: 0 0 30px;
}
.mmm-rental-related__title em { font-style: italic; font-weight: 700; }

.mmm-rental-cta {
    background-image: linear-gradient(180deg,rgba(220,219,201,0.89) 0%,rgba(220,219,201,0.93) 100%),url(/wp-content/uploads/2026/05/Begin-Your-Vineyard-Journey-img.png)!important;
    background: #e1decb;
    padding: 100px max(80px, 8vw);
    text-align: center;
    background-size: cover;
}
.mmm-rental-cta__eyebrow {
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #323b4e !important;
}
.mmm-rental-cta__title {
    font-family: 'Cormorant Garamond', var(--mmm-serif);
    font-size: 50px;
    font-weight: 300;
    color: #000;
    line-height: 1.2;
    margin: 0 0 18px;
    max-width: 720px;
    margin-left: auto; margin-right: auto;
}
.mmm-rental-cta__title em { font-style: italic; font-weight: 700; }
.mmm-rental-cta__copy {
    max-width: 580px;
    margin: 0 auto 30px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--mmm-text);
}
.mmm-rental-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.mmm-rental-cta .mmm-btn {
    padding: 18px 40px;
    font-size: 15px;
    letter-spacing: 0.2em;
    min-width: 240px;
}
.mmm-rental-cta .mmm-btn--primary {
    background: #303b4f;
    border-color: #303b4f;
    color: #fff;
}
.mmm-rental-cta .mmm-btn--primary:hover {
    background: var(--mmm-navy-soft);
    border-color: var(--mmm-navy-soft);
    color: #fff;
}
.mmm-rental-cta .mmm-btn--outline {
    background: #ffffff;
    border-color: #ffffff;
    color: #303b4f;
}
.mmm-rental-cta .mmm-btn--outline:hover {
    background: #303b4f;
    border-color: #303b4f;
    color: #fff;
}
@media (max-width: 900px) {
    .mmm-rental-related { padding: 80px 24px; }
    .mmm-rental-related__title { font-size: 28px; }
    .mmm-rental-cta { padding: 80px 24px; }
    .mmm-rental-cta__title { font-size: 28px; }
    .mmm-rental-cta__copy { font-size: 14px; }
    .mmm-rental-cta__buttons { flex-direction: column; align-items: stretch; gap: 12px; }
    .mmm-rental-cta .mmm-btn { width: 100%; min-width: 0; padding: 16px 28px; }
}

.mmm-rental-disclaimer {
    padding: 20px max(20px, 4vw);
    background: #fff;
    border-top: 1px solid var(--mmm-line);
}
.mmm-rental-disclaimer p {
    max-width: 1240px;
    margin: 0 auto;
    font-size: 11px;
    line-height: 1.6;
    color: var(--mmm-text-muted);
    text-align: center;
}

/* ---------- 17l. Card price-unit suffix ("/ WEEK") ----------
   Used by templates/rental-card.php's .mmm-card__price. Kept in this
   section (rather than section 1 CARD) since it only ever appears on
   rental cards, and this is the section someone will look in when
   asked to change rental pricing display. */
.mmm-card__price-unit {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    opacity: 0.85;
}