/*!
 * RM-Brokerage-1 (pxp concept: rounded .3rem corners, image cards with a dark gradient,
 * prime colour accents, uppercase small labels).
 *
 * 1. Bootstrap 5 fixes for the skin (css/style.css was written for Bootstrap 4.3)
 * 2. Property cards: style types 1..3      (property-card-N, or data-card-style="N" on a section)
 * 3. New development cards: style types 1..3
 * 4. Page builder forms: rm-form-1..3
 * 5. Page builder Market Watch: rm-marketwatch-1..3
 * 6. Other builder elements on this skin
 */

/* ================================================================== */
/* 1. Bootstrap 5 fixes                                                */
/* ================================================================== */
/* BS4 gutters were 30px; the skin's spacing (pxp-* paddings, carousels) assumes that. */
.bs5 .container, .bs5 .container-fluid, .bs5 .container-sm, .bs5 .container-md, .bs5 .container-lg, .bs5 .container-xl { --bs-gutter-x: 30px; }
.bs5 .row:not([class*=" g-"]):not([class^="g-"]):not([class*="gx-"]) { --bs-gutter-x: 30px; }
/* Sign-in modal: BS5 close button inside the pxp modal header */
.bs5 #pxp-signin-modal .btn-close.close { float: none; font-size: 1rem; text-shadow: none; padding: .5rem; margin: 0 0 0 auto; opacity: .5; }
.bs5 #pxp-signin-modal .btn-close.close > span { display: none; }
#pxp-signin-modal .modal-header { padding-bottom: 0; }
#pxp-signin-modal .pxp-modal-benefits { background-color: #414042; margin-top: 10px; padding: 20px; }
#pxp-signin-modal .pxp-modal-benefits a { color: #fff; }
#pxp-signin-modal .form-label { font-weight: 500; }
/* BS5 dropdowns in the pxp header: no caret offset, keep BS4 spacing */
.bs5 .pxp-header .dropdown-menu { margin-top: 0; }
/* BS5 removed .form-group spacing; the skin's forms rely on it (also in bs4-compat.css) */
.bs5 .form-group { margin-bottom: 1rem; }
/* The skin styles .custom-select; BS5 .form-select (added by bs4-compat.js) has its own arrow */
.bs5 .custom-select.form-select { background-size: 16px 12px; padding-right: 2.25rem; }
/* BS5 carousels: the skin hides indicators/controls and drives them from theme.js */
.bs5 .carousel-item { transition-duration: .6s; }
/* BS5 .btn has a 1px border by default (BS4 too) but different focus ring; use the brand colour */
.bs5 .btn:focus-visible { box-shadow: 0 0 0 .2rem rgba(var(--prime-color-rgb, 0, 78, 155), .25); }
/* .small / small became .875em in BS5 (80% in BS4) */
.bs5 small, .bs5 .small { font-size: 80%; }
/* BS5 headings use calc() responsive sizes; the skin sets its own font sizes on pxp classes */
.bs5 h1, .bs5 h2, .bs5 h3, .bs5 h4, .bs5 h5, .bs5 h6 { font-family: var(--title-font-family); }

/* ================================================================== */
/* 2. Property cards                                                   */
/* ================================================================== */
/* Style 1: the original pxp card (photo with gradient, details over the photo). The base rules
   are css/style.css 7.0 (.pxp-prop-card-1); nothing to add. */
.property-card-1 .property-card__badge--status { z-index: 3; }

/* Style 2: photo on top, details below on white (a "classic" card) */
.property-card-2.pxp-prop-card-1,
[data-card-style="2"] .pxp-prop-card-1:not(.newdev-card) {
    height: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    transition: box-shadow .3s ease, transform .3s ease;
}
.property-card-2.pxp-prop-card-1:hover,
[data-card-style="2"] .pxp-prop-card-1:not(.newdev-card):hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .12); transform: translateY(-3px); }
.property-card-2 .pxp-prop-card-1-fig,
[data-card-style="2"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-fig { position: relative; height: 210px; border-top-left-radius: .3rem; border-top-right-radius: .3rem; }
.property-card-2.pxp-prop-card-1:hover .pxp-prop-card-1-fig,
[data-card-style="2"] .pxp-prop-card-1:not(.newdev-card):hover .pxp-prop-card-1-fig { transform: none; }
.property-card-2 .pxp-prop-card-1-gradient,
.property-card-2 .pxp-prop-card-1-details-cta,
[data-card-style="2"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-gradient,
[data-card-style="2"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-details-cta { display: none; }
.property-card-2 .pxp-prop-card-1-details,
[data-card-style="2"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-details { position: relative; color: var(--body-font-color); padding: 16px 18px 18px; }
.property-card-2.pxp-prop-card-1:hover .pxp-prop-card-1-details,
[data-card-style="2"] .pxp-prop-card-1:not(.newdev-card):hover .pxp-prop-card-1-details { transform: none; }
.property-card-2 .pxp-prop-card-1-details-title,
[data-card-style="2"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-details-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.property-card-2 .pxp-prop-card-1-details-price,
[data-card-style="2"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-details-price { color: var(--prime-color); }
.property-card-2 .pxp-prop-card-1-details-features,
[data-card-style="2"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-details-features { opacity: 1; color: #6c757d; border-top: 1px solid rgba(0, 0, 0, .08); margin-top: 10px; padding-top: 10px; }

/* Style 3: wide card, photo on the left, details on the right (one card per row on phones) */
.property-card-3.pxp-prop-card-1,
[data-card-style="3"] .pxp-prop-card-1:not(.newdev-card) {
    display: flex;
    height: 200px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
}
.property-card-3 .pxp-prop-card-1-fig,
[data-card-style="3"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-fig { position: relative; flex: 0 0 45%; border-top-left-radius: .3rem; border-bottom-left-radius: .3rem; }
.property-card-3 .pxp-prop-card-1-gradient,
[data-card-style="3"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-gradient { display: none; }
.property-card-3 .pxp-prop-card-1-details,
[data-card-style="3"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-details { position: relative; flex: 1 1 auto; min-width: 0; color: var(--body-font-color); display: flex; flex-direction: column; justify-content: center; border-left: 4px solid var(--prime-color); }
.property-card-3.pxp-prop-card-1:hover .pxp-prop-card-1-details,
[data-card-style="3"] .pxp-prop-card-1:not(.newdev-card):hover .pxp-prop-card-1-details { transform: none; }
.property-card-3 .pxp-prop-card-1-details-price,
[data-card-style="3"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-details-price { color: var(--prime-color); order: -1; }
.property-card-3 .pxp-prop-card-1-details-features,
[data-card-style="3"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-details-features { opacity: 1; color: #6c757d; margin-top: 6px; }
.property-card-3 .pxp-prop-card-1-details-cta,
[data-card-style="3"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-details-cta { left: 45%; color: var(--prime-color); padding: 12px 20px; }
@media (max-width: 575.98px) {
    .property-card-3.pxp-prop-card-1,
    [data-card-style="3"] .pxp-prop-card-1:not(.newdev-card) { flex-direction: column; height: auto; }
    .property-card-3 .pxp-prop-card-1-fig,
    [data-card-style="3"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-fig { flex-basis: 200px; height: 200px; border-radius: .3rem .3rem 0 0; }
    .property-card-3 .pxp-prop-card-1-details,
    [data-card-style="3"] .pxp-prop-card-1:not(.newdev-card) .pxp-prop-card-1-details { border-left: 0; border-top: 4px solid var(--prime-color); }
}
/* Wide cards: two per row from lg up (the grid uses col-lg-4) */
@media (min-width: 992px) {
    [data-card-style="3"] .listings_wrapper > .col-lg-4 { flex: 0 0 auto; width: 50%; }
}

/* ================================================================== */
/* 3. New development cards                                            */
/* ================================================================== */
/* Style 1: the pxp card (same as property style 1) */
/* Style 2: taller card, name large, builder as an eyebrow in the secondary colour */
.newdev-card-2.pxp-prop-card-1 { height: 380px; }
.newdev-card-2 .pxp-prop-card-1-gradient { top: 30%; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%); }
.newdev-card-2 .newdev-card__builder { color: var(--secondary-color); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; font-weight: 700; }
.newdev-card-2 .newdev-card__title { font-size: 26px; }
/* Style 3: photo on top, white panel below with a prime top rule */
.newdev-card-3.pxp-prop-card-1 { height: auto; background: #fff; border: 1px solid rgba(0, 0, 0, .08); }
.newdev-card-3 .pxp-prop-card-1-fig { position: relative; height: 220px; }
.newdev-card-3.pxp-prop-card-1:hover .pxp-prop-card-1-fig { transform: none; }
.newdev-card-3 .pxp-prop-card-1-gradient, .newdev-card-3 .pxp-prop-card-1-details-cta { display: none; }
.newdev-card-3 .pxp-prop-card-1-details { position: relative; color: var(--body-font-color); border-top: 4px solid var(--prime-color); }
.newdev-card-3.pxp-prop-card-1:hover .pxp-prop-card-1-details { transform: none; }
.newdev-card-3 .newdev-card__title { color: var(--prime-color); }

/* ================================================================== */
/* 4. Page builder forms (rm-form-N added by App_Code/CustomPageTheme.cs) */
/* ================================================================== */
.rm-page { --rm-field-radius: .3rem; --rm-field-py: .7rem; }
/* Form 1: the pxp contact form (light grey fields, no border) */
.rm-form-1 { --rm-field-bg: #f5f5f5; --rm-field-border: #f5f5f5; }
.rm-form-1 .form-label { font-weight: 500; }
/* Form 2: white card with a soft shadow, prime submit */
.rm-form-2 { --rm-field-bg: #fff; --rm-field-border: #e3e3e3; padding: 2rem 1.75rem; border-radius: .3rem; background: #fff; box-shadow: 0 6px 30px rgba(0, 0, 0, .08); }
/* Form 3: dark panel (footer colours), white labels */
.rm-form-3 { --rm-field-bg: rgba(255, 255, 255, .95); --rm-field-border: transparent; padding: 2rem 1.75rem; border-radius: .3rem; background: var(--footer-bg-color, #4a525d); color: var(--footer-color, #f6f6f6); }
.rm-form-3 .form-label, .rm-form-3 .form-check-label { color: var(--footer-color, #f6f6f6); text-transform: uppercase; font-size: .75rem; letter-spacing: 1px; }

/* ================================================================== */
/* 5. Page builder Market Watch (rm-marketwatch-N)                     */
/* ================================================================== */
/* 1: white boxes, prime value (as the home page stats) */
.rm-marketwatch-1 { --rm-stat-bg: #fff; --rm-stat-border: 1px solid rgba(0, 0, 0, .08); --rm-stat-radius: .3rem; --rm-stat-shadow: 0 4px 18px rgba(0, 0, 0, .05); }
/* 2: photo-card look, dark gradient panel */
.rm-marketwatch-2 { --rm-stat-bg: linear-gradient(to bottom, #333 0%, #111 100%); --rm-stat-color: #fff; --rm-stat-value-color: #fff; --rm-stat-border: 0; --rm-stat-radius: .3rem; }
/* 3: prime colour panels */
.rm-marketwatch-3 { --rm-stat-bg: var(--prime-color); --rm-stat-color: #fff; --rm-stat-value-color: #fff; --rm-stat-border: 0; --rm-stat-radius: .3rem; }

/* ================================================================== */
/* 6. Other builder elements on this skin                              */
/* ================================================================== */
/* The pxp header is fixed: custom pages start below it */
.rm-page-body { padding-top: 120px; }
.is-bare .rm-page-body { padding-top: 3rem; }
/* Title bar of a version 5 custom page (pageTitleBar = Y): the pxp page-title look */
.rm-page-head { padding: 140px 0 0; }
.is-bare .rm-page-head { padding-top: 3rem; }
.rm-page-head + .rm-page-body { padding-top: 2rem; }
.rm-page-head__title { font-size: 2.5rem; font-weight: 300; margin: 0; text-transform: capitalize; }
.rm-page .rm-heading { font-family: var(--title-font-family); }
.rm-page .rm-btn { --btn-radius: .3rem; --btn-font-weight: 700; --btn-text-transform: uppercase; --btn-letter-spacing: 1px; font-size: 13px; }

/* Footer text follows the site's footer colour (Page.footerColor -> --footer-color), 2026-11-21.
   style.css had #fff / #999 fixed, which vanished on light footers. */
.pxp-footer-bottom { color: var(--footer-color, #fff); }
.pxp-footer-copyright { color: var(--footer-color, #999); opacity: .8; }
