﻿/*!
 * Remarketer shared base (Bootstrap 5.3)
 * Loaded by every theme, after bootstrap.min.css and before theme.css.
 * Holds structure only: layout, spacing, positioning, states.
 * Look (fonts, colours, radius, shadows) of each theme lives in theme.css as
 * .component.component-rm-N (one file for all themes, N = theme 1..3).
 *
 * Contents
 *   1.0 Tokens: admin values -> Bootstrap variables
 *   2.0 Base elements
 *   3.0 Buttons
 *   4.0 Page head          .page-head   + .page-head-rm-1 | -2 | -3
 *   5.0 Testimonial        .testimonial + .testimonial-rm-1 | -2 | -3
 *   6.0 Listing wrappers   .listing-grid / .listing-carousel
 *   7.0 Reveal animation   [data-reveal]
 *   8.0 Utilities Bootstrap does not have
 *   9.0 Site header        .site-header + .site-header-1 | -2 | -3 | -4
 *  10.0 Site footer        .site-footer + .site-footer-1 | -2 | -3
 *  11.0 Sign-in modal      .auth-modal
 *  12.0 Contact pop-up     .contact-pop
 *  14.0 Hiva market stats #stats, .statchartsection, .proptypestat, .soldstat
 *  15.0 Homepage
 *  16.0 Custom pages (page builder, version 5)
 *  17.0 Content pages      .content-page, .side-promo, .status-page, .guide-accordion, .news-post, .app-promo, forms, .benefits, .contact-page, market reports
 *  17.1 Team               .team-card, .team-bio, .section-eyebrow
 *  18.0 Search map         .search-map-filter, .map-layout, .map-grid
 *  19.0 Listing detail     .listing-detail (Details, UserDetails, nhdetails, precon-details)
 */

/* ------------------------------------------------------------------ */
/* 1.0 Tokens                                                          */
/* ------------------------------------------------------------------ */
/* The --prime-color ... --title-font-* variables are set per site in
   _SiteLayout from the admin profile (bodyStyles.setProperty). theme.css
   gives the defaults. Here they are bridged into Bootstrap's own variables
   so native components (links, forms, pagination, nav) follow the brand. */
:root,
[data-bs-theme="light"] {
    --bs-primary: var(--prime-color);
    --bs-primary-rgb: var(--prime-color-rgb, 0, 78, 155);
    --bs-secondary: var(--secondary-color);
    --bs-secondary-rgb: var(--secondary-color-rgb, 168, 74, 156);
    --bs-link-color: var(--prime-color);
    --bs-link-color-rgb: var(--prime-color-rgb, 0, 78, 155);
    --bs-link-hover-color: var(--hover-color);
    --bs-link-hover-color-rgb: var(--hover-color-rgb, 13, 186, 232);
    --bs-body-font-family: var(--body-font-family);
    --bs-body-font-size: var(--body-font-size);
    --bs-body-font-weight: var(--body-font-weight);
    --bs-body-color: var(--body-font-color);
    --bs-heading-color: var(--title-font-color);
    --bs-focus-ring-color: rgba(var(--prime-color-rgb, 0, 78, 155), .25);
}

/* ------------------------------------------------------------------ */
/* 2.0 Base elements                                                   */
/* ------------------------------------------------------------------ */
body {
    line-height: var(--body-line-height, 1.6);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--title-font-family);
    font-weight: var(--title-font-weight, 700);
}

a {
    color: var(--prime-color);
    transition: color .2s ease;
}

a:hover {
    color: var(--hover-color);
}

.section {
    padding-block: var(--section-space, 4rem);
}

.section-title {
    margin-bottom: var(--section-title-space, 2rem);
    font-size: var(--section-title-size, 1.75rem);
    font-weight: var(--title-font-weight);
}

/* ------------------------------------------------------------------ */
/* 3.0 Buttons                                                         */
/* ------------------------------------------------------------------ */
/* .btn-primary colours are compiled into bootstrap.min.css, so the
   runtime brand colour goes through .btn-prime instead. */
.btn-prime {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--prime-color);
    --bs-btn-border-color: var(--prime-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--hover-color);
    --bs-btn-hover-border-color: var(--hover-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--hover-color);
    --bs-btn-active-border-color: var(--hover-color);
    --bs-btn-focus-shadow-rgb: var(--prime-color-rgb, 0, 78, 155);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--prime-color);
    --bs-btn-disabled-border-color: var(--prime-color);
}

.btn-outline-prime {
    --bs-btn-color: var(--prime-color);
    --bs-btn-border-color: var(--prime-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--prime-color);
    --bs-btn-hover-border-color: var(--prime-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--prime-color);
    --bs-btn-active-border-color: var(--prime-color);
    --bs-btn-focus-shadow-rgb: var(--prime-color-rgb, 0, 78, 155);
}

.btn-prime,
.btn-outline-prime {
    --bs-btn-padding-x: var(--btn-padding-x, 1.5rem);
    --bs-btn-padding-y: var(--btn-padding-y, .625rem);
    --bs-btn-font-weight: var(--btn-font-weight, 600);
    --bs-btn-border-radius: var(--btn-radius, .375rem);
    text-transform: var(--btn-text-transform, none);
    letter-spacing: var(--btn-letter-spacing, normal);
}

/* ------------------------------------------------------------------ */
/* 4.0 Page head (inner page title banner)                             */
/* ------------------------------------------------------------------ */
/* Markup (partials/_PageHead.cshtml):
   <section class="page-head page-head-N">
     <div class="container">
       <div class="page-head__inner">
         <nav aria-label="breadcrumb"><ol class="breadcrumb page-head__breadcrumb">...</ol></nav>
         <h1 class="page-head__title">...</h1>
       </div>
     </div>
   </section>
   The admin "Title bar" switch drives --display-pagehead (block | none). */
.page-head {
    display: var(--display-pagehead, block);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--titlebar-font-color);
    background-color: var(--page-head-fallback-bg, #494c53);
    background-image: var(--pagehead-bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-head::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--page-head-overlay, transparent);
}

.page-head__inner {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding-block: var(--page-head-space, 2.25rem);
}

.page-head__title {
    margin: 0;
    color: inherit;
    font-size: var(--page-head-title-size, 1.75rem);
    font-weight: var(--title-font-weight);
    line-height: 1.2;
}

.page-head__breadcrumb {
    --bs-breadcrumb-margin-bottom: 0;
    --bs-breadcrumb-divider-color: currentColor;
    --bs-breadcrumb-item-active-color: currentColor;
    font-size: .875rem;
}

.page-head__breadcrumb a {
    color: inherit;
    text-decoration: none;
    opacity: .85;
}

.page-head__breadcrumb a:hover {
    color: inherit;
    opacity: 1;
}

/* Type 1: banner, title left, breadcrumb under the title */
.page-head-rm-1 .page-head__inner {
    align-items: flex-start;
}

.page-head-rm-1 nav {
    order: 2;
}

/* Type 2: centred title + breadcrumb over a tinted overlay */
.page-head-rm-2 .page-head__inner {
    align-items: center;
    text-align: center;
}

.page-head-rm-2 nav {
    order: 2;
}

.page-head-rm-2 .page-head__breadcrumb {
    justify-content: center;
}

/* Type 3: inset rounded card, breadcrumb above a centred title */
.page-head-rm-3 {
    margin-inline: var(--page-head-inset, .75rem);
    margin-top: var(--page-head-inset-top, 1.5rem);
    border-radius: var(--page-head-radius, 1rem);
}

.page-head-rm-3 .page-head__inner {
    align-items: center;
    text-align: center;
}

.page-head-rm-3 .page-head__breadcrumb {
    justify-content: center;
}

@media (min-width: 768px) {
    .page-head__inner {
        padding-block: var(--page-head-space-md, 3rem);
    }

    .page-head__title {
        font-size: var(--page-head-title-size-md, 2.25rem);
    }
}

@media (min-width: 1440px) {
    .page-head-rm-3 {
        margin-inline: var(--page-head-inset-xl, 6rem);
    }
}

/* ------------------------------------------------------------------ */
/* 5.0 Testimonial                                                     */
/* ------------------------------------------------------------------ */
/* Markup (partials/_Testimonial.cshtml):
   <article class="testimonial testimonial-N">
     <i class="testimonial__icon bi bi-quote" aria-hidden="true"></i>
     <ul class="testimonial__rating" aria-label="5 out of 5">
       <li><i class="bi bi-star-fill"></i></li> x5
     </ul>
     <h3 class="testimonial__title">...</h3>
     <div class="testimonial__text"><p>...</p></div>
     <footer class="testimonial__author">
       <span class="testimonial__name">...</span>
       <span class="testimonial__role">...</span>
     </footer>
   </article> */
.testimonial {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    height: 100%;
    margin: 0;
    padding: var(--testimonial-padding, 2rem);
    color: var(--testimonial-color, inherit);
    background: var(--testimonial-bg, #fff);
    border: var(--testimonial-border, 0);
    border-radius: var(--testimonial-radius, 0);
}

.testimonial__icon {
    line-height: 1;
    font-size: var(--testimonial-icon-size, 2.5rem);
    color: var(--testimonial-icon-color, var(--prime-color));
}

.testimonial__rating {
    display: flex;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--testimonial-star-size, .875rem);
    color: var(--testimonial-star-color, #ffa800);
}

.testimonial__title {
    margin: 0;
    font-size: var(--testimonial-title-size, 1.125rem);
}

.testimonial__text {
    font-size: var(--testimonial-text-size, 1rem);
    line-height: var(--testimonial-text-line-height, 1.7);
}

.testimonial__text p:last-child {
    margin-bottom: 0;
}

.testimonial__author {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.testimonial__name {
    font-weight: 700;
    font-family: var(--title-font-family);
}

.testimonial__role {
    font-size: .875rem;
    opacity: .7;
}

.testimonial__more {
    font-size: .875rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Type 1: quotation, icons at opposite corners, accent bar on the left */
.testimonial-rm-1 {
    padding-inline-start: var(--testimonial-indent, 3.5rem);
    border-inline-start: var(--testimonial-accent-width, 5px) solid var(--testimonial-accent, var(--secondary-color));
}

.testimonial-rm-1 .testimonial__icon {
    position: absolute;
    top: 1.5rem;
    inset-inline-start: 1rem;
}

.testimonial-rm-1::after {
    content: "\f6b0"; /* bi-quote, mirrored */
    position: absolute;
    inset-inline-end: 1rem;
    bottom: 1.25rem;
    font-family: "bootstrap-icons";
    line-height: 1;
    font-size: var(--testimonial-icon-size, 2.5rem);
    color: var(--testimonial-icon-color, var(--prime-color));
    transform: rotate(180deg);
}

.testimonial-rm-1 .testimonial__rating {
    display: none;
}

/* Type 2: centred card, stars on top, name below */
.testimonial-rm-2 {
    align-items: center;
    text-align: center;
}

.testimonial-rm-2 .testimonial__icon {
    order: -2;
}

.testimonial-rm-2 .testimonial__rating {
    order: -1;
}

.testimonial-rm-2 .testimonial__author {
    align-items: center;
}

/* Type 3: card with large quote icon, stars under the author */
.testimonial-rm-3 .testimonial__rating {
    order: 10;
}

/* ------------------------------------------------------------------ */
/* 6.0 Listing wrappers                                                */
/* ------------------------------------------------------------------ */
/* Any card can sit in either wrapper; the wrapper owns the columns. */
.listing-grid {
    --bs-gutter-x: var(--listing-gutter, 1.5rem);
    --bs-gutter-y: var(--listing-gutter, 1.5rem);
}

.listing-carousel {
    position: relative;
}

.listing-carousel .owl-stage {
    display: flex;
}

.listing-carousel .owl-item {
    display: flex;
}

.listing-carousel .owl-item > * {
    width: 100%;
}

.listing-carousel__nav {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.owl-carousel .owl-dots {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.owl-carousel .owl-dot span {
    display: block;
    width: .625rem;
    height: .625rem;
    border-radius: 50%;
    background: var(--bs-gray-400);
    transition: background-color .2s ease;
}

.owl-carousel .owl-dot.active span {
    background: var(--prime-color);
}

.owl-carousel .owl-dot:focus-visible {
    outline: 2px solid var(--prime-color);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* 6.1 Property card                                                   */
/* ------------------------------------------------------------------ */
/* Markup (assets/js/bs5/listing-cards.js, RM.cards.property):
   <article class="property-card property-card-N [is-sold] [is-restricted]">
     <a class="property-card__media" href="...">
       <img class="property-card__img" ...>
       <div class="property-card__badges">
         <span class="property-card__badge property-card__badge--dom">Listed this week</span>
         <span class="property-card__badge property-card__badge--flag">Open house</span>
         <span class="property-card__badge property-card__badge--status">For Sale</span>
       </div>
       <span class="property-card__mask">Login required</span>
     </a>
     <div class="property-card__body">
       <div class="property-card__head">
         <span class="property-card__eyebrow">Condo</span>
         <h3 class="property-card__title"><a href="...">Address</a></h3>
         <span class="property-card__price">$1,249,000</span>
       </div>
       <ul class="property-card__meta">
         <li><svg|i class="property-card__icon"/><span class="property-card__meta-value">3</span><span class="property-card__meta-label">Beds</span></li>
       </ul>
       <div class="property-card__footer">MLS / brokerage</div>
     </div>
   </article>

   Type 1  standard: image on top, details below
   Type 2  large: image left, details right (stacks on phones)
   Type 3  overlay: title and price over the image, facts strip below */
.property-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    color: var(--card-color, var(--body-font-color));
    background: var(--card-bg, #fff);
    border: var(--card-border, 1px solid var(--bs-border-color));
    border-radius: var(--card-radius, 0);
    box-shadow: var(--card-shadow, none);
    transition: box-shadow .3s ease, transform .3s ease;
}

.property-card:hover {
    box-shadow: var(--card-shadow-hover, var(--card-shadow, none));
    transform: var(--card-lift, none);
}

.property-card__media {
    position: relative;
    display: block;
    flex-shrink: 0;
    overflow: hidden;
    aspect-ratio: var(--card-img-ratio, 4 / 3);
    background: var(--card-img-bg, #dfe4e8);
}

.property-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, opacity .3s ease;
}

.property-card:hover .property-card__img {
    transform: var(--card-img-hover, scale(1.05));
}

.property-card__badges {
    position: absolute;
    inset: var(--badge-inset, .75rem) var(--badge-inset, .75rem) auto;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    pointer-events: none;
}

.property-card__badge {
    display: inline-block;
    padding: var(--badge-padding, .25rem .625rem);
    font-size: var(--badge-font-size, .6875rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--badge-bg, rgba(13, 22, 33, .55));
    border-radius: var(--badge-radius, 0);
}

.property-card__badge--status {
    margin-inline-start: auto;
    background: var(--badge-status-bg, var(--prime-color));
}

.property-card.is-sold .property-card__badge--status {
    background: var(--badge-sold-bg, #dc1d2e);
}

.property-card__badge--flag {
    background: var(--badge-flag-bg, var(--secondary-color));
}

.property-card__mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(13, 22, 33, .45);
}

.property-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--card-gap, .5rem);
    min-width: 0;
    padding: var(--card-padding, 1.25rem);
}

.property-card__head {
    display: contents;
}

.property-card__eyebrow {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--card-muted, #7a838c);
}

.property-card__title {
    margin: 0;
    overflow: hidden;
    font-size: var(--card-title-size, 1.0625rem);
    font-weight: var(--card-title-weight, 700);
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-card__title a {
    color: var(--card-title-color, var(--title-font-color));
    text-decoration: none;
}

.property-card__title a::after {
    /* Whole card is clickable */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
}

.property-card__title a:hover {
    color: var(--hover-color);
}

.property-card__price {
    font-family: var(--title-font-family);
    font-size: var(--card-price-size, 1.125rem);
    font-weight: 700;
    color: var(--card-price-color, var(--prime-color));
    font-variant-numeric: tabular-nums;
}

.property-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--meta-gap, .25rem 1rem);
    margin: 0;
    padding: 0;
    font-size: var(--meta-font-size, .8125rem);
    list-style: none;
    color: var(--card-muted, #7a838c);
}

.property-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.property-card__icon {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    font-size: 1.1em;
    line-height: 1;
    color: var(--meta-icon-color, currentColor);
}

.property-card__meta-value {
    font-weight: 700;
    color: var(--meta-value-color, var(--title-font-color));
    font-variant-numeric: tabular-nums;
}

.property-card__footer {
    margin-top: auto;
    overflow: hidden;
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--card-muted, #7a838c);
}

.property-card__footer:empty {
    display: none;
}

/* Type 2: large, image left */
@media (min-width: 576px) {
    .property-card-2 {
        flex-direction: row;
    }

    .property-card-2 .property-card__media {
        width: var(--card2-img-width, 42%);
        aspect-ratio: auto;
        min-height: 15rem;
    }

    .property-card-2 .property-card__body {
        padding: var(--card2-padding, 1.5rem);
    }
}

.property-card-2 .property-card__title {
    font-size: var(--card2-title-size, 1.25rem);
    white-space: normal;
}

.property-card-2 .property-card__price {
    font-size: var(--card2-price-size, 1.375rem);
}

/* Type 3: overlay */
.property-card-3 .property-card__media {
    aspect-ratio: var(--card3-img-ratio, 4 / 3.4);
}

.property-card-3 .property-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .82) 100%);
}

.property-card-3 .property-card__head {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .25rem;
    aspect-ratio: var(--card3-img-ratio, 4 / 3.4);
    padding: var(--card-padding, 1.25rem);
    color: #fff;
    pointer-events: none;
}

.property-card-3 .property-card__head > * {
    pointer-events: auto;
}

.property-card-3 .property-card__eyebrow {
    color: rgba(255, 255, 255, .8);
}

.property-card-3 .property-card__title a {
    color: #fff;
}

.property-card-3 .property-card__price {
    order: -1;
    color: #fff;
    font-size: var(--card3-price-size, 1.375rem);
}

.property-card-3 .property-card__body {
    padding-block: var(--card3-strip-padding, .875rem);
}

/* ------------------------------------------------------------------ */
/* 6.2 New development card                                            */
/* ------------------------------------------------------------------ */
/* Markup (assets/js/bs5/listing-cards.js, RM.cards.newdev):
   <article class="newdev-card newdev-card-N">
     <a class="newdev-card__media" href="..."><img class="newdev-card__img" ...></a>
     <div class="newdev-card__body">
       <span class="newdev-card__status">Selling now</span>
       <h3 class="newdev-card__title"><a href="...">Name</a></h3>
       <p class="newdev-card__builder">By Builder</p>
       <p class="newdev-card__address">Address</p>
       <span class="newdev-card__go" aria-hidden="true"><i class="bi bi-arrow-right"></i></span>
     </div>
   </article>

   Type 1  card: image on top, status on the image, details below
   Type 2  tile: full image with a floating details panel and arrow */
.newdev-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--card-bg, #fff);
    border: var(--card-border, 1px solid var(--bs-border-color));
    border-radius: var(--card-radius, 0);
    box-shadow: var(--card-shadow, none);
    transition: box-shadow .3s ease;
}

.newdev-card:hover {
    box-shadow: var(--card-shadow-hover, var(--card-shadow, none));
}

.newdev-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--card-img-bg, #dfe4e8);
}

.newdev-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.newdev-card:hover .newdev-card__img {
    transform: scale(1.05);
}

.newdev-card__body {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
    padding: var(--card-padding, 1.25rem);
}

.newdev-card__status {
    align-self: flex-start;
    padding: var(--badge-padding, .25rem .625rem);
    font-size: var(--badge-font-size, .6875rem);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--badge-status-bg, var(--prime-color));
    border-radius: var(--badge-radius, 0);
}

.newdev-card__title {
    margin: 0;
    overflow: hidden;
    font-size: var(--card-title-size, 1.0625rem);
    font-weight: var(--card-title-weight, 700);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.newdev-card__title a {
    color: var(--card-title-color, var(--title-font-color));
    text-decoration: none;
}

.newdev-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
}

.newdev-card__builder,
.newdev-card__address {
    margin: 0;
    overflow: hidden;
    font-size: .8125rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--card-muted, #7a838c);
}

.newdev-card__builder {
    font-weight: 600;
    color: var(--card-price-color, var(--prime-color));
}

.newdev-card__go {
    display: none;
}

/* Type 1: status sits on the image */
.newdev-card-1 .newdev-card__status {
    position: absolute;
    top: var(--badge-inset, .75rem);
    inset-inline-start: var(--badge-inset, .75rem);
}

/* Type 2: tile */
.newdev-card-2 {
    aspect-ratio: 4 / 4.2;
}

.newdev-card-2 .newdev-card__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.newdev-card-2 .newdev-card__body {
    position: absolute;
    inset-inline-start: .5rem;
    inset-inline-end: .5rem;
    bottom: .5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: .75rem;
    align-items: center;
    padding: 1rem;
    background: var(--tile-panel-bg, #fff);
    border-radius: var(--tile-panel-radius, 0);
}

.newdev-card-2 .newdev-card__body > :not(.newdev-card__go) {
    grid-column: 1;
}

.newdev-card-2 .newdev-card__status {
    padding: 0;
    color: var(--card-muted, #7a838c);
    background: none;
    letter-spacing: .02em;
}

.newdev-card-2 .newdev-card__address {
    display: none;
}

.newdev-card-2 .newdev-card__go {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--title-font-color);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--tile-go-radius, 50%);
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.newdev-card-2:hover .newdev-card__go {
    color: #fff;
    background: var(--prime-color);
    border-color: var(--prime-color);
}

/* ------------------------------------------------------------------ */
/* 7.0 Reveal animation (replaces wow.js and jquery.appear)            */
/* ------------------------------------------------------------------ */
/* <div data-reveal="fadeInUp"> - site.js adds animate__animated when the
   element scrolls into view. Without JS the element stays visible. */
.js [data-reveal]:not(.animate__animated) {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal]:not(.animate__animated) {
        opacity: 1;
    }
}

/* ------------------------------------------------------------------ */
/* 8.0 Utilities Bootstrap does not have                               */
/* ------------------------------------------------------------------ */
.prime-color { color: var(--prime-color) !important; }
.prime-bg { background-color: var(--prime-color) !important; }
.secondary-color { color: var(--secondary-color) !important; }
.secondary-bg { background-color: var(--secondary-color) !important; }
.text-line-clamp-1,
.text-line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-line-clamp-1 { -webkit-line-clamp: 1; }
.text-line-clamp-2 { -webkit-line-clamp: 2; }

/* Blurred listing data for non-registered visitors (shared by all themes) */
.blur-on,
.blur-element {
    filter: blur(10px);
    user-select: none;
}

/* ------------------------------------------------------------------ */
/* 9.0 Site header                                                     */
/* ------------------------------------------------------------------ */
/* One markup for every theme (partials/_SiteHeader.cshtml):
     .site-header__topbar   contact + social (types 1 and 2)
     .site-header__bar      .navbar-expand-xl: brand, menu, actions
     #siteNav               Bootstrap offcanvas below 1200px, inline above
   Types: 1 Left, 2 Center, 3 Compact (Left-Mini), 4 Transparent.
   theme.css sets the look through the --header-* / --nav-* variables
   and a few rules per type. */
.site-header {
    --header-bar-py: 1rem;
    --header-topbar-bg: transparent;
    --header-topbar-color: var(--header-color);
    --header-topbar-border: var(--bs-border-color);
    --header-topbar-size: .8125rem;
    --header-shadow: none;
    --logo-height: 64px;
    --nav-gap: 0;
    --nav-link-px: 1rem;
    --nav-link-py: .75rem;
    --nav-font-size: 1rem;
    --nav-font-weight: 600;
    --nav-transform: none;
    --nav-color: var(--menu-font-color);
    --nav-hover-color: var(--prime-color);
    --nav-hover-bg: transparent;
    --nav-sub-bg: #fff;
    --nav-sub-color: var(--menu-font-color);
    --nav-sub-hover-color: var(--prime-color);
    --nav-sub-hover-bg: rgba(var(--prime-color-rgb, 0, 78, 155), .06);
    --nav-sub-width: 15rem;
    --nav-sub-radius: var(--bs-border-radius);
    --nav-sub-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
    --nav-sub-border-top: 0;

    position: relative;
    z-index: 1030;
    background-color: var(--header-bg-color);
    color: var(--header-color);
    box-shadow: var(--header-shadow);
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
}

/* Top bar */
.site-header__topbar {
    background-color: var(--header-topbar-bg);
    color: var(--header-topbar-color);
    border-bottom: 1px solid var(--header-topbar-border);
    font-size: var(--header-topbar-size);
}

.site-header__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.5rem;
}

.site-contact {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
    margin: 0;
}

.site-header a {
    text-decoration: none;
}

.site-contact a,
.site-header__topbar .site-social__link {
    color: inherit;
}

.site-contact a:hover,
.site-header__topbar .site-social__link:hover {
    color: var(--hover-color);
}

.site-contact .bi {
    margin-inline-end: .4rem;
}

.site-social {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.site-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

/* Bar */
.site-header__bar {
    padding-block: var(--header-bar-py);
}

.site-header__bar-inner {
    gap: .5rem 1.5rem;
    min-height: 4.25rem;
}

.site-brand {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    color: inherit;
    white-space: normal;
}

.site-brand__img {
    display: block;
    width: auto;
    max-width: min(250px, 60vw);
    max-height: var(--logo-height);
}

.site-brand__img--solid {
    display: none;
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-brand__name {
    font-family: var(--title-font-family);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--prime-color);
}

.site-brand__role {
    font-size: .8125rem;
    color: var(--secondary-color);
}

/* Toggler (phone and tablet) */
.site-header__mobile-actions {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-inline-start: auto;
}

.site-header__toggler {
    padding: .5rem;
    border: 0;
    color: var(--nav-color);
}

.site-header__toggler:focus {
    box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color);
}

.site-header__toggler-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.site-header__toggler-bars span {
    display: block;
    height: 2px;
    background-color: currentColor;
}

/* Menu */
.site-nav {
    gap: var(--nav-gap);
}

.site-nav__link {
    padding: var(--nav-link-py) var(--nav-link-px);
    white-space: nowrap;
    font-size: var(--nav-font-size);
    font-weight: var(--nav-font-weight);
    text-transform: var(--nav-transform);
    color: var(--nav-color);
}

/* Hover state sits on the item, so a parent and its caret light up together */
.site-nav > .site-nav__item:hover,
.site-nav > .site-nav__item:focus-within,
.site-nav > .site-nav__item.is-active {
    background-color: var(--nav-hover-bg);
}

.site-nav__item:hover > .site-nav__link,
.site-nav__item:hover > .site-nav__caret,
.site-nav__item:focus-within > .site-nav__link,
.site-nav__item:focus-within > .site-nav__caret,
.site-nav__item.is-active > .site-nav__link,
.site-nav__item.is-active > .site-nav__caret {
    color: var(--nav-hover-color);
}

.site-nav__item.has-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav__item.has-sub > .site-nav__link {
    flex: 1 1 auto;
}

.site-nav__caret {
    padding: .5rem .75rem;
    border: 0;
    background: none;
    color: inherit;
}

.site-nav__sub {
    --bs-dropdown-min-width: var(--nav-sub-width);
    --bs-dropdown-bg: var(--nav-sub-bg);
    --bs-dropdown-link-color: var(--nav-sub-color);
    --bs-dropdown-link-hover-color: var(--nav-sub-hover-color);
    --bs-dropdown-link-hover-bg: var(--nav-sub-hover-bg);
    --bs-dropdown-link-active-color: var(--nav-sub-hover-color);
    --bs-dropdown-link-active-bg: var(--nav-sub-hover-bg);
    --bs-dropdown-border-radius: var(--nav-sub-radius);
    --bs-dropdown-border-width: 0;
    --bs-dropdown-item-padding-y: .625rem;
    --bs-dropdown-item-padding-x: 1.25rem;
    --bs-dropdown-font-size: .9375rem;
}

/* Actions: phone, language, sign in */
.site-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
}

.site-header__action {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .375rem 0;
    border: 0;
    background: none;
    font-size: .875rem;
    color: var(--nav-color);
    text-decoration: none;
    white-space: nowrap;
}

.site-header__action:hover {
    color: var(--hover-color);
}

.site-header__action.is-icon {
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 1.125rem;
}

.site-header__action.is-icon > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.site-lang .dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
}

/* Mobile panel. The header is its own stacking context (sticky, z-index),
   so while the panel is open site.js lifts it above the backdrop. */
.site-header.is-menu-open {
    z-index: 1050;
}

@media (max-width: 1199.98px) {
    .site-offcanvas {
        --nav-gap: 0;
        --nav-color: var(--body-font-color);
        --nav-hover-color: var(--prime-color);
        --nav-hover-bg: transparent;
        --nav-font-size: 1rem;
        --nav-link-py: .75rem;
        --nav-sub-color: var(--body-font-color);
        --nav-sub-hover-color: var(--prime-color);
        --nav-sub-hover-bg: transparent;
        color: var(--body-font-color);
    }

    .site-offcanvas .site-nav__link::before {
        content: none !important;
    }

    .site-offcanvas .site-nav__link {
        padding-inline: 0;
    }

    .site-offcanvas .site-nav__item {
        border-bottom: 1px solid var(--bs-border-color);
    }

    .site-offcanvas .site-nav__sub {
        flex-basis: 100%;
        margin: 0 0 .5rem;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }

    .site-offcanvas .site-header__actions {
        margin-top: 1.5rem;
    }
}

.site-offcanvas__title {
    font-family: var(--title-font-family);
    font-weight: 700;
}

.site-offcanvas__contact {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color);
}

.site-offcanvas__contact a {
    color: var(--body-font-color);
}

.site-offcanvas__contact .bi {
    margin-inline-end: .5rem;
}

.site-offcanvas__contact .site-social__link {
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
}

/* Desktop: menu inline, submenus open on hover and keyboard focus */
@media (min-width: 1200px) {
    .site-header__bar .offcanvas-body {
        flex-grow: 1;
        align-items: center;
    }

    .site-header__bar .site-nav {
        margin-inline-start: auto;
    }

    .site-header__bar .site-header__actions {
        flex-wrap: nowrap;
        margin-inline-start: 1.5rem;
    }

    .site-nav__item {
        position: relative;
    }

    .site-nav__item.has-sub {
        flex-wrap: nowrap;
    }

    .site-nav__item.has-sub > .site-nav__link {
        padding-inline-end: .25rem;
    }

    .site-nav__caret {
        padding: 0 var(--nav-link-px) 0 0;
    }

    .site-nav__caret::after {
        vertical-align: .15em;
    }

    .site-nav .site-nav__sub {
        position: absolute;
        top: 100%;
        inset-inline-start: 0;
        margin-top: 0;
        border-top: var(--nav-sub-border-top);
        box-shadow: var(--nav-sub-shadow);
    }

    .site-nav__item.has-sub:hover > .site-nav__sub,
    .site-nav__item.has-sub:focus-within > .site-nav__sub {
        display: block;
    }

    .site-nav__item:last-child > .site-nav__sub {
        inset-inline-end: 0;
        inset-inline-start: auto;
    }

    /* 2: Center - logo on its own row, menu centred below, actions at the right */
    .site-header-2 .site-header__bar-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-header-2 .site-brand {
        flex: 0 0 100%;
        justify-content: center;
    }

    .site-header-2 .offcanvas-body {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
    }

    .site-header-2 .site-nav {
        grid-column: 2;
        margin-inline-start: 0;
    }

    .site-header-2 .site-header__actions {
        grid-column: 3;
        justify-self: end;
    }

    /* 3 and 4: one compact row */
    .site-header-3,
    .site-header-4 {
        --header-bar-py: .5rem;
        --logo-height: 52px;
    }
}

/* 4: Transparent - over the home page hero; solid once the page scrolls */
.site-header-4.is-overlay {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    inset-inline-start: 0;
    background-color: transparent;
    box-shadow: none;
    transition: background-color .3s ease, box-shadow .3s ease;
}

.site-header-4.is-overlay .site-brand,
.site-header-4.is-overlay .site-brand__name,
.site-header-4.is-overlay .site-brand__role,
.site-header-4.is-overlay .site-header__toggler,
.site-header-4.is-overlay .site-header__mobile-actions .site-header__action {
    color: #fff;
}

@media (min-width: 1200px) {
    .site-header-4.is-overlay .site-nav > .site-nav__item > .site-nav__link,
    .site-header-4.is-overlay .site-nav__caret,
    .site-header-4.is-overlay .site-header__actions .site-header__action {
        color: #fff;
    }
}

.site-header-4.is-overlay.is-sticky.is-scrolled {
    position: fixed;
    background-color: var(--header-bg-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    animation: site-header-in .35s ease;
}

.site-header-4.is-overlay.is-scrolled .site-brand__img--overlay {
    display: none;
}

.site-header-4.is-overlay.is-scrolled .site-brand__img--solid {
    display: block;
}

.site-header-4.is-overlay.is-scrolled .site-brand,
.site-header-4.is-overlay.is-scrolled .site-brand__name,
.site-header-4.is-overlay.is-scrolled .site-header__toggler,
.site-header-4.is-overlay.is-scrolled .site-header__mobile-actions .site-header__action,
.site-header-4.is-overlay.is-scrolled .site-nav > .site-nav__item > .site-nav__link,
.site-header-4.is-overlay.is-scrolled .site-nav__caret,
.site-header-4.is-overlay.is-scrolled .site-header__actions .site-header__action {
    color: var(--nav-color);
}

.site-header-4.is-overlay.is-scrolled .site-brand__name {
    color: var(--prime-color);
}

.site-header-4.is-overlay.is-scrolled .site-brand__role {
    color: var(--secondary-color);
}

@keyframes site-header-in {
    from { transform: translateY(-100%); }
    to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header-4.is-overlay.is-sticky.is-scrolled {
        animation: none;
    }
}

/* ------------------------------------------------------------------ */
/* 10.0 Site footer                                                    */
/* ------------------------------------------------------------------ */
/* partials/_SiteFooter.cshtml. Same content in every type:
     brand, contact, quick links, social + app, disclaimer, copyright.
   1 brand left + 3 columns, 2 four columns, 3 top band + columns. */
.site-footer {
    --footer-main-py: 4rem;
    --footer-title-size: 1rem;
    --footer-title-transform: none;
    /* Secondary footer text follows the site's footer text colour, slightly softer */
    --footer-muted: color-mix(in srgb, var(--footer-color) 85%, transparent);
    --footer-rule: rgba(255, 255, 255, .12);
    --footer-social-size: 2.25rem;
    --footer-social-radius: 50%;
    --footer-social-bg: rgba(255, 255, 255, .08);

    background-color: var(--footer-bg-color);
    color: var(--footer-color);
    font-size: .9375rem;
}

.site-footer a {
    color: var(--footer-color);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--hover-color);
}

.site-footer__main {
    padding-block: var(--footer-main-py);
}

.site-footer__title {
    margin-bottom: 1.25rem;
    font-size: var(--footer-title-size);
    font-weight: 700;
    text-transform: var(--footer-title-transform);
    color: var(--footer-color);
}

.site-footer__title--apps {
    margin-top: 1.75rem;
}

.site-footer__logo {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: 90px;
}

.site-footer__brokerage {
    margin: 1rem 0 0;
}

.site-footer__brokerage span {
    display: block;
    font-weight: 700;
}

.site-footer__brokerage small {
    color: var(--footer-color);
}

.site-footer__mls {
    display: block;
    max-width: 120px;
    margin-top: 1.25rem;
}

.site-footer__contact li {
    display: flex;
    gap: .75rem;
    margin-bottom: .75rem;
}

.site-footer__contact .bi {
    flex-shrink: 0;
    color: var(--footer-muted);
}

.site-footer__links li {
    margin-bottom: .5rem;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--footer-social-size);
    height: var(--footer-social-size);
    border-radius: var(--footer-social-radius);
    background-color: var(--footer-social-bg);
    transition: background-color .2s ease, color .2s ease;
}

.site-footer__social a:hover {
    background-color: var(--prime-color);
    color: #fff;
}

.site-footer__apps {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* Band (type 3) */
.site-footer__band {
    border-bottom: 1px solid var(--footer-rule);
}

.site-footer__band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 2.5rem;
}

.site-footer__band .site-footer__brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.site-footer__band .site-footer__brokerage {
    margin: 0;
}

.site-footer__follow {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Disclaimer and bottom row */
.site-footer__legal {
    border-top: 1px solid var(--footer-rule);
}

.site-footer__disclaimer {
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--footer-rule);
    font-size: .6875rem;
    line-height: 1.35;
    color: var(--footer-color);
    text-align: justify;
}

.site-footer__disclaimer p {
    margin-bottom: .5rem;
}

.site-footer__updated {
    font-size: .75rem;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-block: 1.25rem;
    font-size: .875rem;
}

.site-footer__copy {
    margin: 0;
}

.site-footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    margin: 0;
}

/* 1: centred bottom row, as theme 1 had it */
.site-footer-1 .site-footer__bottom {
    justify-content: center;
    flex-direction: column;
}

/* landing: slim footer (Page.layoutMode = "landing"), same on every theme */
.site-footer__service {
    padding-block: 1.5rem;
    text-align: center;
    font-size: .875rem;
    border-bottom: 1px solid var(--footer-rule);
}

.site-footer__service p {
    margin: 0;
}

.site-footer-landing .site-footer__bottom {
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

/* ------------------------------------------------------------------ */
/* 11.0 Sign-in modal                                                  */
/* ------------------------------------------------------------------ */
/* partials/_AuthModal.cshtml: register, login and forgot password as
   Bootstrap tabs in one modal (#logInModal, ids kept for mainforms.js). */
.auth-modal .modal-content {
    border: 0;
    border-radius: var(--auth-radius, var(--bs-border-radius-lg));
    overflow: hidden;
}

.auth-modal .modal-header {
    border-bottom: 0;
    padding-bottom: 0;
}

.auth-modal__tabs {
    --bs-nav-link-color: var(--body-font-color);
    --bs-nav-link-hover-color: var(--prime-color);
    --bs-nav-tabs-link-active-color: var(--prime-color);
    --bs-nav-tabs-link-active-border-color: transparent transparent var(--prime-color);
    flex-grow: 1;
    gap: 1rem;
}

.auth-modal__tabs .nav-link {
    padding-inline: 0;
    border-width: 0 0 2px;
    font-weight: 700;
    text-transform: var(--btn-text-transform, none);
}

.auth-modal__tabs .nav-link[data-bs-target="#auth-forgot"] {
    display: none;
}

.auth-modal__title {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.auth-modal .form-label span {
    color: var(--bs-danger);
}

.auth-modal .middlename {
    position: absolute;
    left: -9999px;
}

.auth-modal__terms {
    max-height: 110px;
    padding: .75rem;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    font-size: .75rem;
    color: var(--bs-secondary-color);
}

.auth-modal__terms p {
    margin-bottom: .5rem;
}

.auth-modal .ajax-loader {
    display: none;
}

.auth-modal .confirmation-message:empty {
    display: none;
}

.auth-modal .block-error {
    display: block;
    margin-top: .25rem;
    font-size: .8125rem;
    color: var(--bs-danger);
}

.auth-modal__switch {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: .875rem;
}

.auth-modal__benefits {
    padding: 1.25rem;
    background-color: var(--auth-benefits-bg, #333);
    color: #fff;
    text-align: center;
    font-size: .875rem;
}

.auth-modal__benefits ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem 1.25rem;
    margin: .5rem 0;
    padding: 0;
    list-style: none;
}

.auth-modal__benefits .bi {
    margin-inline-end: .35rem;
    color: var(--hover-color);
}

.auth-modal__benefits a {
    color: rgba(255, 255, 255, .75);
}

/* ------------------------------------------------------------------ */
/* 12.0 Contact pop-up ("Do you have questions?")                      */
/* ------------------------------------------------------------------ */
.contact-pop {
    position: fixed;
    bottom: 10px;
    z-index: 1040;
    inset-inline-start: var(--contact-pop-left, auto);
    inset-inline-end: var(--contact-pop-right, 10px);
    display: flex;
    flex-direction: column;
    align-items: var(--contact-pop-align, flex-end);
}

.contact-pop__card {
    position: relative;
    width: 290px;
    margin: 30px 0 10px;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    text-align: center;
    color: #364650;
}

.contact-pop__close {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 2;
    font-size: .75rem;
}

.contact-pop__agent {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e8ecf0;
    border-radius: 10px 10px 0 0;
    background-color: #f7f9fa;
}

.contact-pop__avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: -35px 0 5px;
    overflow: hidden;
    border: 1px solid #fff;
    border-radius: 50%;
    background-color: var(--prime-color);
    box-shadow: 0 0 5px rgba(0, 0, 0, .4);
    color: #fff;
    font-size: 18px;
}

.contact-pop__avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-pop__name {
    max-width: 250px;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-pop__body {
    padding: 15px 10px;
}

.contact-pop__lead,
.contact-pop__sub {
    margin: 0;
    line-height: 1.2;
}

.contact-pop__sub {
    margin-top: 5px;
    font-size: .875rem;
}

.contact-pop__phone {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 10px;
    font-size: 20px;
    color: #364650;
    text-decoration: none;
}

.contact-pop__phone .bi {
    font-size: 16px;
    color: var(--prime-color);
}

.contact-pop__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--prime-color);
    border-radius: 50%;
    background-color: var(--prime-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    color: #fff;
    font-size: 22px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.contact-pop__toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0, 0, 0, .4);
}

.contact-pop.is-open .contact-pop__toggle {
    display: none;
}

/* Back to top (site.js shows it after 400px of scroll) */
.back-to-top {
    position: fixed;
    inset-inline-end: 20px;
    bottom: 80px;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--bs-border-radius);
    background-color: var(--secondary-color);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--prime-color);
    color: #fff;
}

/* ------------------------------------------------------------------ */
/* 13.0 About page: agent profile, award strip                         */
/* ------------------------------------------------------------------ */
/* Partials: bs5/partials/_AgentProfile.cshtml (.agent-profile-1/2/3)
   and _AwardStrip.cshtml. Look per theme in theme.css. */
.section-alt {
    background-color: var(--section-alt-bg, #f7f7f7);
}

.agent-profile__photo {
    margin: 0;
}

.agent-profile__photo img {
    width: 100%;
    border-radius: var(--agent-photo-radius, var(--bs-border-radius));
}

.agent-profile__name {
    margin-bottom: .25rem;
    font-size: var(--agent-name-size, 1.5rem);
    font-weight: var(--title-font-weight);
}

.agent-profile__role {
    margin-bottom: 1rem;
    color: var(--agent-role-color, #6c757d);
}

.agent-profile__designation {
    display: block;
    color: var(--agent-designation-color, var(--prime-color));
}

.agent-profile__social {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.agent-profile__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: var(--agent-social-border, 1px solid #dee2e6);
    border-radius: var(--agent-social-radius, 50%);
    color: var(--agent-social-color, var(--prime-color));
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.agent-profile__social a:hover {
    border-color: var(--prime-color);
    background-color: var(--prime-color);
    color: #fff;
}

.agent-profile__contacts li {
    display: flex;
    gap: .5rem;
    align-items: baseline;
    padding-block: .35rem;
    border-bottom: var(--agent-contact-divider, 1px solid #eee);
}

.agent-profile__contacts li > span {
    min-width: 3.5rem;
    font-weight: 600;
}

.agent-profile__contacts .bi {
    color: var(--prime-color);
}

.agent-profile__bio {
    margin-top: var(--agent-bio-space, 1.5rem);
}

.agent-profile__bio img {
    max-width: 100%;
    height: auto;
}

.agent-profile__card {
    overflow: hidden;
    border: var(--agent-card-border, 1px solid #eee);
    border-radius: var(--agent-card-radius, var(--bs-border-radius));
    background-color: #fff;
}

.agent-profile__details {
    padding: var(--agent-card-padding, 1.5rem);
}

.agent-profile__actions {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
}

.agent-profile__form {
    padding: var(--agent-form-padding, 1.5rem);
    border: var(--agent-form-border, 1px solid #eee);
    border-radius: var(--agent-form-radius, var(--bs-border-radius));
    background-color: var(--agent-form-bg, #fff);
}

.agent-profile__form-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.agent-profile__form .ajax-loader,
.agent-profile__form .confirmation-message:empty {
    display: none;
}

/* Type 2: photo beside details on wider screens */
@media (min-width: 768px) {
    .agent-profile-2 .agent-profile__card {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    }

    .agent-profile-2 .agent-profile__photo img {
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }
}

.agent-profile-2 .agent-profile__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.agent-profile-3 .agent-profile__photo img {
    border-radius: 0;
}

.agent-profile-3 .agent-profile__social {
    justify-content: center;
}

.agent-profile-3 .agent-profile__form {
    margin-top: 1.5rem;
}

/* Award strip */
.award-strip + .award-strip {
    padding-top: 0;
}

.award-strip__title {
    text-align: center;
    text-transform: var(--award-title-transform, uppercase);
}

.award-strip__item {
    padding: var(--award-item-padding, 1rem);
    border: var(--award-item-border, 1px solid #eee);
    border-radius: var(--award-item-radius, var(--bs-border-radius));
    background-color: #fff;
    text-align: center;
}

.award-strip__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.award-strip__name {
    margin: .75rem 0 .25rem;
    font-size: 1rem;
}

.award-strip__year {
    color: #6c757d;
    font-size: .875rem;
}

/* ------------------------------------------------------------------ */
/* 14.0 Hiva market stats                                              */
/* ------------------------------------------------------------------ */
/* Market stats / home evaluation blocks (#stats, charts, sold and
   property type stats, market heat bar). Merged from the old Hiva folder hiva.css with
   the theme 1 values; theme 2 and 3 differences are in theme.css
   ("Hiva market stats"). */
#stats {
    padding: 40px 10px;
    background: url("/assets/media/gplaypattern.png") repeat;
    border: 1px solid #ddd;
    margin-top: 40px;
    margin-bottom: 50px;
}
#stats h6 {
    font-weight: 700;
}
.secbrk {
    border-top: 1px solid #1c3254;
    margin-top: 2px;
    margin-bottom: 10px;
    margin-inline-start: auto;
    margin-inline-end: auto;
    width: 40%;
    clear: both;
}
#statbutton {
    padding: 25px;
    text-align: center;
    font-size: 25px;
    font-weight: 100;
    clear: both;
    margin-top: 50px;
    margin-bottom: 50px;
    display: block;
    transition: all 0.2s linear;
    text-decoration: none;
}
.statchartsection {
    background-color: #eee;
    padding: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}
.statchart {
    background-color: #eee;
    position: relative;
}
#errormessagebox {
    display: none;
}
#chartlegend {
    position: absolute;
    top: 30px;
    inset-inline-end: 30px;
    background-color: #fff;
    padding: 15px 30px;
}
#chartlegend ul {
    list-style: none;
    margin-inline-start: 0;
}
#chartlegend-mobile {
    background-color: #fff;
    margin-top: 20px;
    padding: 15px 30px;
    text-align: center;
}
#chartlegend-mobile ul {
    list-style: none;
    margin-inline-start: 0;
}
#chartlegend-mobile ul li {
    display: inline;
    margin-inline-end: 20px;
}
li.area {
    color: #949FB1;
}
li.municipality {
    color: #4D5360;
}
li.community {
    color: #3c6986;
}
.hidden-fields {
    display: none;
}
.highneighbour {
    background-color: #eee;
    margin-top: 25px;
    margin-bottom: 25px;
}
.highneighbour .spanleft {
    text-align: start;
    padding: 75px 40px 40px;
    vertical-align: middle;
}
.highneighbour .spanleft p {
    text-align: start;
    font-size: 20px;
    line-height: 30px;
}
.highneighbour .spanright {
    text-align: center;
    padding: 60px 20px;
    vertical-align: middle;
}
.nextyearvalue {
    background-color: #eee;
    margin-top: 25px;
    margin-bottom: 25px;
}
.nextyearvalue .spanleft {
    text-align: start;
    padding: 40px 30px;
    vertical-align: middle;
}
.nextyearvalue .spanleft h4 {
    font-size: 30px;
    font-weight: 100;
    line-height: 80px;
}
.nextyearvalue .spanright {
    text-align: center;
    padding: 40px 20px;
    vertical-align: middle;
}
.nextyearvalue .spanright h4 {
    font-size: 50px;
    font-weight: 100;
    line-height: 80px;
    color: #3c6986;
}
.proptypestat {
    background-color: #ddd;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 15px 40px;
    text-align: center;
}
.proptypestatodd {
    background-color: #eee;
}
.proptypestat h4 {
    border-bottom: 1px solid #bcbec0;
    font-size: 2rem;
}
.proptypestat h5 {
    font-size: 1.7rem;
}
.housestatsection,
.soldstatsection {
    margin-top: 30px;
}
.housestat {
    background: var(--rm-stat-bg, #fff);
    border: var(--rm-stat-border, 1px solid #eee);
    border-radius: var(--rm-stat-radius, 0);
    box-shadow: var(--rm-stat-shadow, none);
    color: var(--rm-stat-color, inherit);
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 15px 40px;
    text-align: center;
}
.housestat h3 span { color: var(--rm-stat-value-color, inherit); }
.housestat h4 {
    line-height: 1.1em;
    text-transform: uppercase;
}
.housestat h3 {
    font-size: 36px;
}
.soldstat {
    background-color: #fff;
    border: 1px solid #eee;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 15px 40px;
    text-align: center;
}
.soldstat h4 {
    line-height: 1.1em;
    text-transform: uppercase;
}
.soldstat h3 {
    color: #f00;
    font-size: 30px;
    line-height: 1.1em;
}
.marketheatcontainer {
    width: 100%;
    height: 10px;
    position: relative;
    background: rgb(0, 189, 0);
    background: linear-gradient(90deg, rgba(0, 189, 0, 1) 0%, rgba(194, 245, 0, 1) 25%, rgba(255, 222, 0, 1) 48%, rgba(213, 144, 3, 1) 75%, rgba(255, 0, 0, 1) 100%);
    margin-top: 40px;
    margin-bottom: 30px;
}
.marketheatpointer {
    position: absolute;
    top: -15px;
}
.marketheatchevron {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid #333;
}
@media (max-width: 479px) {
    #chartlegend {
        position: relative;
        top: 10px;
        inset-inline-end: 0;
    }
}

/* ------------------------------------------------------------------ */
/* 15.0 Homepage: hero and sections                                    */
/* ------------------------------------------------------------------ */
/* bs5/home/_Hero.cshtml (.home-hero-1/2/3) and bs5/home/_Section.cshtml
   (.home-section, .home-<name>). Same markup on every theme; the look per
   theme is in theme.css ("Homepage" block). */

/* Hero */
.home-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--hero-bg, #222);
    color: #fff;
}

.home-hero__slide {
    height: var(--hero-height, 620px);
}

.home-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--hero-backdrop, .4));
}

.home-hero__overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.home-hero__text.left,
.home-hero__text.text-left { text-align: left; }
.home-hero__text.right,
.home-hero__text.text-right { text-align: right; }
.home-hero__text.center { text-align: center; }

.home-hero__title {
    margin-bottom: .75rem;
    color: inherit;
    font-size: var(--hero-title-size, clamp(2rem, 4vw, 3.25rem));
    font-weight: 700;
    text-shadow: var(--hero-text-shadow, 2px 2px 4px rgba(25, 11, 7, .9));
}

.home-hero__subtitle {
    margin-bottom: 1.5rem;
    font-size: var(--hero-subtitle-size, 1.25rem);
    text-shadow: var(--hero-text-shadow, 2px 2px 4px rgba(25, 11, 7, .9));
}

.home-hero--video {
    height: var(--hero-height, 620px);
}

.home-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__video--yt iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    min-width: 100%;
    height: 56.25vw;
    min-height: 100%;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Hero type 3: heading + search */
.home-hero-3 {
    padding-block: var(--hero-3-space, 5rem);
    background-color: var(--hero-3-bg, #f7f7f7);
    color: var(--title-font-color);
}

.home-hero-3 .home-hero__title,
.home-hero-3 .home-hero__subtitle {
    text-shadow: none;
}

.home-hero__rotate {
    position: relative;
    display: inline-grid;
    color: var(--prime-color);
}

.home-hero__rotate > span {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(.5em);
    transition: opacity .4s ease, transform .4s ease;
}

.home-hero__rotate > span.is-visible {
    opacity: 1;
    transform: none;
}

.home-hero__search {
    display: flex;
    gap: .5rem;
    max-width: 640px;
    padding: .5rem;
    border-radius: var(--hero-search-radius, var(--bs-border-radius-lg));
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.home-hero__search .form-control {
    border: 0;
    box-shadow: none;
}

.home-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: 1.25rem;
    font-size: .9375rem;
}

.home-hero__links a {
    color: inherit;
}

.home-hero__links a:hover {
    color: var(--prime-color);
}

.home-hero__images img {
    border-radius: var(--hero-image-radius, var(--bs-border-radius-lg));
}

/* Sections */
.home-section__head {
    text-align: var(--home-head-align, center);
}

.home-section__sub {
    max-width: 720px;
    margin: -1rem auto 2rem;
    color: var(--home-sub-color, #6c757d);
}

.home-section__bar {
    position: relative;
}

.home-section__nav {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .home-section__bar .home-section__nav {
        position: absolute;
        top: 0;
        inset-inline-end: 0;
        margin: 0;
    }
}

.home-featured__filters .nav-link {
    color: var(--body-font-color);
}

.home-featured__filters .nav-link.current {
    background-color: var(--prime-color);
    color: #fff;
}

.home-featured__filters {
    margin-bottom: 1.5rem;
}

.bloader {
    padding: 2rem 0;
    text-align: center;
}

/* CTA cards */
.home-cta__card {
    display: block;
    overflow: hidden;
    border-radius: var(--home-card-radius, var(--bs-border-radius));
}

.home-cta__card img {
    width: 100%;
    transition: transform .4s ease;
}

.home-cta__card:hover img {
    transform: scale(1.03);
}

/* Search areas */
.area-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--home-card-radius, var(--bs-border-radius));
    color: #fff;
}

.area-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.area-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 60%);
}

.area-card__name {
    position: absolute;
    inset-inline-end: 1rem;
    bottom: 1rem;
    inset-inline-start: 1rem;
    z-index: 1;
    font-family: var(--title-font-family);
    font-size: 1.25rem;
    font-weight: 700;
}

.area-card:hover {
    color: #fff;
}

.area-card:hover .area-card__img {
    transform: scale(1.05);
}

/* Services */
.home-services {
    background-color: var(--home-services-bg, var(--prime-color));
    background-image: var(--service-section-bg);
    background-size: cover;
    background-position: center;
    color: var(--home-services-color, #fff);
}

.home-services .section-title,
.home-services .home-section__sub {
    color: inherit;
}

.home-service {
    height: 100%;
    padding: 2rem 1.5rem;
    border-radius: var(--home-card-radius, var(--bs-border-radius));
    background-color: var(--home-service-bg, rgba(255, 255, 255, .08));
    text-align: center;
}

.home-service__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background-color: var(--home-service-icon-bg, rgba(255, 255, 255, .15));
    font-size: 1.75rem;
}

.home-service__title {
    color: inherit;
    font-size: 1.25rem;
    font-weight: 700;
}

.home-services .btn-outline-primary {
    --bs-btn-color: var(--home-services-color, #fff);
    --bs-btn-border-color: var(--home-services-color, #fff);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-color: var(--prime-color);
    --bs-btn-hover-border-color: #fff;
}

/* Tools */
.home-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.5rem 1rem;
    border-radius: var(--home-card-radius, var(--bs-border-radius));
    color: var(--title-font-color);
    font-family: var(--title-font-family);
    font-weight: 700;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-tool:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

/* News */
.news-card {
    overflow: hidden;
    height: 100%;
    border: var(--news-card-border, 1px solid #eee);
    border-radius: var(--home-card-radius, var(--bs-border-radius));
    background-color: #fff;
}

.news-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-card:hover .news-card__img {
    transform: scale(1.04);
}

.news-card__date {
    position: absolute;
    top: .75rem;
    inset-inline-start: .75rem;
    padding: .25rem .5rem;
    border-radius: var(--bs-border-radius-sm);
    background-color: var(--prime-color);
    color: #fff;
    font-size: .75rem;
}

.news-card__body {
    padding: 1.25rem;
}

.news-card__cat {
    display: block;
    margin-bottom: .25rem;
    color: var(--secondary-color);
    font-size: .8125rem;
    text-transform: uppercase;
}

.news-card__title {
    font-size: 1.125rem;
}

.news-card__title a {
    color: var(--title-font-color);
}

.news-card__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: #6c757d;
}

/* Market snapshot */
.ministat__card {
    height: 100%;
    padding: 1.5rem;
    border: var(--news-card-border, 1px solid #eee);
    border-radius: var(--home-card-radius, var(--bs-border-radius));
    background-color: #fff;
}

.ministat__title {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
    margin-bottom: 1rem;
    font-family: var(--title-font-family);
    font-size: 1.125rem;
    font-weight: 700;
}

.ministat__title .btn-link {
    color: var(--prime-color);
    font-weight: 700;
    text-decoration: none;
}

.ministat__price {
    margin: 0;
    color: var(--prime-color);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    text-align: center;
}

.ministat__change {
    margin: .5rem 0 0;
    text-align: center;
}

.ministat__summary {
    margin: 0;
}

.ministat__summary > div {
    display: flex;
    justify-content: space-between;
    padding: .75rem 1rem;
}

.ministat__summary > div:nth-child(even) {
    background-color: var(--ministat-stripe, #f2f2f2);
}

.ministat__summary dt,
.ministat__summary dd {
    margin: 0;
}

.ministat__summary dd {
    font-weight: 700;
}

/* CTA 2 (neighbourhood update) */
.home-cta2__box {
    padding: var(--cta2-padding, 3rem 1.5rem);
    border-radius: var(--home-card-radius, var(--bs-border-radius));
    background-color: var(--cta2-bg, var(--prime-color));
    color: #fff;
}

.home-cta2__eyebrow {
    margin-bottom: .5rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.home-cta2__title {
    max-width: 760px;
    margin: 0 auto 1rem;
    color: inherit;
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
}

.home-cta2__text {
    margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------------ */
/* 16.0 Custom pages (page builder, version 5)                         */
/* ------------------------------------------------------------------ */
/* Markup (Dashboard _website_custom_page_builder_bs5_script.js, rendered by Page.cshtml):
     .rm-page > .rm-page-body > [.container]
       .rm-section > .rm-section-inner[.container|-fluid] > .row.g-4
         .rm-column.col-* > .rm-column-inner.vstack.gap-4
           .rm-element.rm-el-{type} > the element (plain Bootstrap 5)
   Neutral hooks only; style types are added at render time
   (App_Code/CustomPageTheme.cs): rm-form-rm-1..3, rm-marketwatch-rm-1..3,
   each look defined in theme.css. Listing cards use data-card-style. */
.rm-page,
.rm-form,
.rm-marketwatch {
    --rm-field-bg: var(--bs-body-bg);
    --rm-field-border: var(--bs-border-color);
    --rm-field-radius: var(--bs-border-radius);
    --rm-field-py: .625rem;
    --rm-label-weight: 600;
    --rm-stat-bg: var(--bs-body-bg);
    --rm-stat-color: inherit;
    --rm-stat-value-color: var(--prime-color);
    --rm-stat-border: 1px solid var(--bs-border-color);
    --rm-stat-radius: var(--bs-border-radius);
    --rm-stat-shadow: none;
    --rm-stat-padding: 1.75rem 1.5rem;
}

.rm-page-body {
    padding-top: 2rem;
    padding-bottom: var(--section-space, 3rem);
}

/* Builder-only hints (shown in the dashboard canvas, never on the site) */
.rm-page .rm-placeholder {
    display: none;
}

.rm-section-inner {
    position: relative;
}

.rm-element {
    min-width: 0;
}

/* Typography */
.rm-heading {
    color: var(--title-font-color);
    font-family: var(--title-font-family);
    font-weight: var(--title-font-weight);
}

.rm-text > :last-child,
.rm-html > :last-child {
    margin-bottom: 0;
}

.rm-text img,
.rm-html img {
    max-width: 100%;
    height: auto;
}

/* Buttons: btn-primary / btn-outline-primary already follow the brand
   colours (3.0); the theme's button tokens apply here too */
.rm-btn {
    --bs-btn-padding-x: var(--btn-padding-x, 1.5rem);
    --bs-btn-padding-y: var(--btn-padding-y, .625rem);
    --bs-btn-font-weight: var(--btn-font-weight, 600);
    --bs-btn-border-radius: var(--btn-radius, .375rem);
    text-transform: var(--btn-text-transform, none);
    letter-spacing: var(--btn-letter-spacing, normal);
}

/* Builder buttons are plain btn-primary / btn-outline-primary; on custom
   pages they take the brand colours like .btn-prime (3.0) does */
.rm-page .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--prime-color);
    --bs-btn-border-color: var(--prime-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--hover-color);
    --bs-btn-hover-border-color: var(--hover-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--hover-color);
    --bs-btn-active-border-color: var(--hover-color);
    --bs-btn-focus-shadow-rgb: var(--prime-color-rgb, 0, 78, 155);
    --bs-btn-disabled-bg: var(--prime-color);
    --bs-btn-disabled-border-color: var(--prime-color);
}

.rm-page .btn-outline-primary {
    --bs-btn-color: var(--prime-color);
    --bs-btn-border-color: var(--prime-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--prime-color);
    --bs-btn-hover-border-color: var(--prime-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--prime-color);
    --bs-btn-active-border-color: var(--prime-color);
    --bs-btn-focus-shadow-rgb: var(--prime-color-rgb, 0, 78, 155);
}

.rm-page .carousel-indicators [data-bs-target] {
    background-color: #fff;
}

/* Media */
.rm-video {
    width: 100%;
    max-width: 100%;
}

.rm-video .ratio,
.rm-video > iframe,
.rm-carousel,
.rm-gallery__img {
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.rm-divider {
    opacity: 1;
}

.rm-carousel .carousel-item img {
    object-fit: cover;
}

.rm-gallery__img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Before Owl starts (or if it is not loaded): a scrollable row */
.rm-gallery:not(.owl-loaded) {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.rm-gallery:not(.owl-loaded) > .item {
    flex: 0 0 min(80%, 320px);
    scroll-snap-align: start;
}

/* Forms (contact, listing alert, custom forms) */
.rm-form .form-label {
    font-weight: var(--rm-label-weight);
}

.rm-form .form-control,
.rm-form .form-select {
    padding-block: var(--rm-field-py);
    border-color: var(--rm-field-border);
    border-radius: var(--rm-field-radius);
    background-color: var(--rm-field-bg);
}

.rm-form .form-control:focus,
.rm-form .form-select:focus {
    border-color: var(--prime-color);
    box-shadow: 0 0 0 .2rem rgba(var(--prime-color-rgb, 0, 78, 155), .15);
}

.rm-form .form-check-input:checked {
    background-color: var(--prime-color);
    border-color: var(--prime-color);
}

.rm-form .block-error {
    display: block;
    margin-top: .25rem;
    color: var(--bs-form-invalid-color, #dc3545);
    font-size: .875em;
}

.rm-form .hcaptcha-anchor:empty {
    margin: 0 !important;
}

.rm-form .confirmation-message:empty {
    display: none;
}

/* Market Watch (remarkstat() in remarketer_modules_script.js fills the snp_* spans) */
.rm-stat {
    padding: var(--rm-stat-padding);
    border: var(--rm-stat-border);
    border-radius: var(--rm-stat-radius);
    background: var(--rm-stat-bg);
    box-shadow: var(--rm-stat-shadow);
    color: var(--rm-stat-color);
    text-align: center;
}

.rm-stat__area {
    font-weight: 700;
    opacity: .8;
}

.rm-stat__label {
    color: inherit;
    letter-spacing: .04em;
}

.rm-stat__value {
    color: var(--rm-stat-value-color);
    line-height: 1.1;
}

/* Page menu (the custom menu picked in the builder), Bootstrap 5 nav.
   The menu's own colours (--rm-*) win, else the theme's. */
.rm-page-menu {
    --rmx-bg: var(--rm-bg, var(--header-bg-color, #fff));
    --rmx-color: var(--rm-color, var(--menu-font-color, #191c20));
    --rmx-hover-bg: var(--rm-hover-bg, rgba(var(--prime-color-rgb, 0, 78, 155), .08));
    --rmx-hover-color: var(--rm-hover-color, var(--prime-color));
    --rmx-sub-bg: var(--rm-sub-bg, var(--rmx-bg));
    --rmx-font-size: var(--rm-font-size, var(--body-font-size, 1rem));
    --bs-nav-link-color: var(--rmx-color);
    --bs-nav-link-hover-color: var(--rmx-hover-color);
    --bs-navbar-color: var(--rmx-color);
    --bs-navbar-hover-color: var(--rmx-hover-color);
    --bs-navbar-active-color: var(--rmx-hover-color);
    --bs-dropdown-bg: var(--rmx-sub-bg);
    --bs-dropdown-link-color: var(--rmx-color);
    --bs-dropdown-link-hover-color: var(--rmx-hover-color);
    --bs-dropdown-link-hover-bg: var(--rmx-hover-bg);
    --bs-dropdown-link-active-bg: var(--rmx-hover-bg);
    --bs-dropdown-link-active-color: var(--rmx-hover-color);
    margin-bottom: 1.5rem;
    border-radius: var(--bs-border-radius);
    background: var(--rmx-bg);
    color: var(--rmx-color);
    font-size: var(--rmx-font-size);
}

.rm-page-menu .nav-link {
    font-size: inherit;
    font-weight: var(--nav-font-weight, 600);
}

.rm-page-menu .nav-link:hover,
.rm-page-menu .nav-link:focus-visible {
    background: var(--rmx-hover-bg);
}

.rm-page-menu--top .navbar-nav .nav-link {
    padding-inline: .875rem;
}

.rm-page-menu__toggle {
    border: 0;
    color: var(--rmx-color);
    font-weight: 600;
}

.rm-page-menu__toggle:focus {
    box-shadow: none;
}

.rm-page-menu--left {
    padding: .5rem;
}

.rm-page-menu--left .nav-link {
    border-radius: var(--bs-border-radius);
}

.rm-page-menu--sticky {
    position: sticky;
    top: 1rem;
}

.rm-page-menu__sub-toggle {
    color: inherit;
}

.rm-page-menu__sub-toggle .bi {
    display: inline-block;
    transition: transform .2s;
}

.rm-page-menu__sub-toggle:not(.collapsed) .bi {
    transform: rotate(180deg);
}

.rm-page-menu--left .rm-page-menu__sub {
    padding-inline-start: 1rem;
}

/* Not branded (Page.bare): no site header, so give the page some air */
.is-bare .rm-page-body {
    padding-top: var(--section-space, 3rem);
}

/* ------------------------------------------------------------------ */
/* 17.0 Content pages: prose, sidebar, status, guides, news, app       */
/* ------------------------------------------------------------------ */
/* Terms, Privacy, RECO guide, Buyers / Sellers info, calculators, News,
   Post, Download App, 404 / 500 / Thanks. Same markup on every theme;
   theme.css only sets the variables and the few look rules. */

/* Prose */
.content-page__body {
    max-width: var(--content-max-width, none);
}

.content-page__part + .content-page__part {
    margin-top: 2rem;
}

.content-page__heading {
    margin: 2rem 0 .75rem;
    font-size: var(--content-heading-size, 1.375rem);
}

.content-page__part > .content-page__heading:first-child,
.content-page__body > .content-page__heading:first-child {
    margin-top: 0;
}

.content-page__lead {
    font-size: 1.0625rem;
}

.content-page__body ul,
.content-page__body ol {
    padding-inline-start: 1.75rem;
}

.content-page__box {
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--bs-border-radius);
    background-color: var(--content-box-bg, #f6f6f6);
}

.content-page__pdf {
    margin-top: 2.5rem;
}

.content-page__body img {
    max-width: 100%;
    height: auto;
}

/* Sidebar promos (bs5/partials/_SideBar.cshtml) */
.side-promos {
    display: grid;
    gap: 1.5rem;
}

.side-promo {
    overflow: hidden;
    border: var(--side-promo-border, 1px solid var(--bs-border-color));
    border-radius: var(--bs-border-radius);
    background-color: #fff;
}

.side-promo__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.side-promo__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-promo__body {
    padding: 1.25rem;
}

.side-promo__title {
    margin-bottom: .5rem;
    font-size: 1.0625rem;
    text-transform: var(--side-promo-title-transform, uppercase);
}

.side-promo__text {
    color: #6c757d;
}

@media (min-width: 992px) {
    .content-page__aside .side-promos {
        position: sticky;
        top: 1.5rem;
    }
}

/* Status pages (bs5/partials/_StatusPage.cshtml) */
.status-page__inner {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}

.status-page__img {
    max-width: min(100%, 420px);
    height: auto;
    margin-bottom: 1.5rem;
}

.status-page__code {
    margin-bottom: .25rem;
    color: var(--prime-color);
    font-family: var(--title-font-family);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
}

.status-page__title {
    font-size: var(--status-title-size, 2rem);
}

.status-page__text {
    margin-bottom: 1.75rem;
    color: #6c757d;
}

.is-bare .status-page,
.layout-landing .status-page {
    display: flex;
    align-items: center;
    min-height: 70vh;
}

/* Guides (Buyers / Sellers info): Bootstrap accordion with brand colours */
.guide-accordion {
    --bs-accordion-border-color: var(--bs-border-color);
    --bs-accordion-border-radius: var(--bs-border-radius);
    --bs-accordion-inner-border-radius: var(--bs-border-radius);
    --bs-accordion-active-color: var(--guide-active-color, var(--prime-color));
    --bs-accordion-active-bg: var(--guide-active-bg, rgba(var(--prime-color-rgb, 0, 78, 155), .06));
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(var(--prime-color-rgb, 0, 78, 155), .25);
    --bs-accordion-btn-padding-y: 1.125rem;
}

.guide-accordion .accordion-button {
    font-family: var(--title-font-family);
    font-size: 1.0625rem;
    font-weight: 700;
    text-transform: var(--guide-title-transform, none);
}

.guide-accordion .accordion-body h3 {
    margin: 1.5rem 0 .5rem;
    font-size: 1.125rem;
}

.guide-accordion .accordion-body h4 {
    margin: 1.25rem 0 .25rem;
    font-size: 1rem;
}

.guide-accordion .accordion-body > :first-child {
    margin-top: 0;
}

/* Calculators */
.calc-page__widget {
    max-width: 100%;
    min-height: 400px;
}

.calc-page__note {
    margin: 2rem 0 1rem;
    color: #6c757d;
    font-size: .75rem;
    text-align: center;
}

/* News list and post */
.news-card__title {
    margin-bottom: .5rem;
}

.news-card__more {
    font-weight: 700;
}

.news-list__empty {
    color: #6c757d;
}

.news-post__head {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.news-post__title {
    font-size: var(--news-post-title-size, 1.875rem);
}

.news-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin: 0;
    color: #6c757d;
    font-size: .875rem;
}

.news-post__content img {
    max-width: 100%;
    height: auto;
}

.news-post__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--bs-border-color);
}

/* Download App */
.app-promo {
    background: var(--app-promo-bg, linear-gradient(180deg, #fff, #f6f6f6));
}

.app-promo__logo {
    margin-bottom: 1.5rem;
}

.app-promo__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.app-promo__lead {
    max-width: 640px;
    font-size: 1.125rem;
}

.app-promo__subtitle {
    margin-top: 2rem;
    font-size: 1.125rem;
}

.app-promo__stores {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.app-promo__qr {
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.app-promo__qr p {
    margin: 0;
    font-weight: 700;
}

.app-promo__agent {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--app-agent-radius, 50%);
}

.app-promo__agent-name {
    margin: 1rem 0;
    font-size: 1.375rem;
}

.app-promo__agent-name small {
    display: block;
    color: #6c757d;
    font-size: .875rem;
    font-weight: 400;
}

.app-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.app-feature__icon {
    flex: 0 0 auto;
    color: var(--prime-color);
    font-size: 1.75rem;
    line-height: 1;
}

.app-feature__title {
    margin-bottom: .25rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.app-feature__text {
    margin: 0;
    color: #6c757d;
}

/* Site forms (mainforms.js): keeps .form-group / .ajax-loader / .middlename */
.form-group {
    margin-bottom: 1rem;
}

.form-req {
    color: var(--bs-danger);
}

.middlename {
    position: absolute;
    left: -9999px;
}

.ajax-loader {
    display: none;
    width: 24px;
    margin-inline-start: .5rem;
}

.has-error .form-control,
.has-error .form-select {
    border-color: var(--bs-danger);
}

.form-group label.error,
.site-form label.error {
    display: block;
    margin-top: .25rem;
    color: var(--bs-danger);
    font-size: .8125rem;
}

.confirmation-message {
    display: inline-block;
    margin-inline-start: .75rem;
}

/* Listing pages (Available / Featured / Sold ... , PropertySearch, Selected, PropertyUpdate) */
.listing-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.listing-toolbar__count {
    margin: 0;
    font-family: var(--title-font-family);
    font-size: 1.125rem;
    font-weight: 700;
}

.listing-toolbar__controls {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.listing-toolbar__controls .form-select {
    width: auto;
    min-width: 180px;
}

.listing-page__block + .listing-page__block {
    margin-top: 3rem;
}

.listing-page__message:empty {
    display: none;
}

.listing-page__empty {
    width: 100%;
    padding: 2rem 0;
    color: #6c757d;
    text-align: center;
}

.bloader .ball {
    display: inline-block;
    width: .625rem;
    height: .625rem;
    margin: 0 .2rem;
    border-radius: 50%;
    background-color: var(--prime-color);
    animation: rm-bloader 1s infinite ease-in-out both;
}

.bloader .ball:nth-child(1) { animation-delay: -.32s; }
.bloader .ball:nth-child(2) { animation-delay: -.16s; }

.bloader span {
    display: block;
    margin-top: .5rem;
    color: #6c757d;
    font-size: .8125rem;
}

@keyframes rm-bloader {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .bloader .ball { animation: none; }
}

.listing-cta {
    background: #333 url(/images/color-triangle-banner.jpg) no-repeat center / cover;
    color: #fff;
}

.listing-cta__title {
    max-width: 760px;
    margin: 0 auto 1.25rem;
    color: #fff;
    font-size: 1.375rem;
}

.listing-promo {
    display: block;
    overflow: hidden;
    border-radius: var(--bs-border-radius);
}

.listing-promo img {
    width: 100%;
    transition: transform .4s ease;
}

.listing-promo:hover img {
    transform: scale(1.03);
}

/* Single form pages (Neighbourhood sales ...) */
.form-page__box {
    max-width: 820px;
    margin-inline: auto;
}

.form-page__submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
}

/* Forms with a benefits list (Home Evaluation, Listing Alert) */
.section-divider {
    width: 64px;
    height: 3px;
    margin: 0 auto 2rem;
    border-radius: 2px;
    background: var(--prime-color);
}

.benefits__img {
    width: 100%;
    border-radius: var(--bs-border-radius);
    object-fit: cover;
}

.benefits__eyebrow {
    margin-bottom: .5rem;
    color: var(--prime-color);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.benefits__item {
    display: flex;
    gap: 1rem;
}

.benefits__icon {
    flex: 0 0 auto;
    color: var(--prime-color);
    font-size: 2rem;
    line-height: 1;
}

.benefits__item-title {
    margin-bottom: .35rem;
    font-size: 1.125rem;
}

.benefits__item-text {
    margin: 0;
    color: var(--body-font-color);
    font-size: .9375rem;
}

/* Contact */
.contact-page__title {
    margin-bottom: .75rem;
    font-size: 1.5rem;
}

.contact-page__lead {
    margin-bottom: 1.5rem;
}

.contact-page__info {
    height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.contact-page__list > div {
    margin-bottom: 1rem;
}

.contact-page__list dt {
    font-weight: 600;
}

.contact-page__list dt .bi {
    color: var(--prime-color);
}

.contact-page__list dd {
    margin: .25rem 0 0 1.5rem;
}

.contact-page__follow {
    margin: 1.5rem 0 .75rem;
    font-size: 1.125rem;
}

.contact-page__social {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.contact-page__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--prime-color-rgb), .1);
    color: var(--prime-color);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.contact-page__social a:hover,
.contact-page__social a:focus-visible {
    background: var(--prime-color);
    color: #fff;
}

/* Market report pages (Market-Report, Market-Report-v, MarketSnapshot) */
.market-intro {
    padding: 0 1rem;
    font-size: 1rem;
    line-height: 1.65;
}

.market-legal {
    font-size: .625rem;
    line-height: 1.2;
}

.marketheat-label {
    position: absolute;
    top: 10px;
    padding: 5px;
}

.marketheat-label--start { left: 0; text-align: left; }
.marketheat-label--mid { left: 50%; transform: translateX(-50%); text-align: center; }
.marketheat-label--end { right: 0; text-align: right; }

.triangle {
    padding: 3rem 0;
    background: #333 url(/images/color-triangle-banner.jpg) no-repeat center / cover;
    color: #fff;
}

.market-map {
    width: 100%;
    height: 600px;
}

@media (max-width: 767.98px) {
    .market-map { height: 420px; }
}

/* Team pages (Our-Team, Our-Team-Bio) */
.section-eyebrow {
    margin-bottom: .5rem;
    color: var(--prime-color);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.team-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--card, #fff);
    transition: box-shadow .2s ease, transform .2s ease;
}

.team-card:hover {
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.team-card__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f3f3f3;
}

.team-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__body {
    padding: 1rem 1.25rem 1.25rem;
}

.team-card__name {
    margin-bottom: .25rem;
    font-size: 1.125rem;
}

.team-card__role {
    margin-bottom: .75rem;
    color: var(--body-font-color);
    font-size: .875rem;
}

.team-card__designation {
    color: var(--prime-color);
}

.team-card__contact {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    font-size: .875rem;
}

.team-card__contact a {
    color: inherit;
    text-decoration: none;
}

.team-card__contact a:hover,
.team-card__contact a:focus-visible {
    color: var(--prime-color);
}

.team-bio + .team-bio {
    border-top: 1px solid var(--bs-border-color);
}

.team-bio__img {
    width: 100%;
    border-radius: var(--bs-border-radius);
}

.team-bio__card {
    padding: 1.25rem 0 0;
}

.team-bio__name {
    margin-bottom: .25rem;
    font-size: 1.375rem;
}

.team-bio__role {
    margin-bottom: .75rem;
    color: var(--body-font-color);
}

/* ===== 18.0 Search map (PropertySearchMap, Precon-Search) =====
   Theme 3 layout for every theme: filter bar, results list | map.
   The map, markers and pop-ups keep map.css; only the cards follow the theme. */
.search-map-filter {
    position: relative;
    z-index: 5;
    padding: .75rem 0;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--card, #fff);
}

.search-map-filter__address {
    position: relative;
}

.search-map-filter__address .bi {
    position: absolute;
    top: 50%;
    inset-inline-start: .85rem;
    transform: translateY(-50%);
    color: var(--prime-color);
    pointer-events: none;
}

.search-map-filter__address .form-control {
    padding-inline-start: 2.25rem;
}

.search-map-filter__adv {
    white-space: nowrap;
}

.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.map-layout__list {
    overflow-y: auto;
    padding: 1rem 1.25rem 2rem;
    -webkit-overflow-scrolling: touch;
}

.map-layout__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.map-layout__count {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.map-layout__count #resultcount {
    color: var(--prime-color);
}

.map-layout__tools {
    display: flex;
    gap: .5rem;
}

.map-layout__tools .form-select {
    width: auto;
}

.map-layout__map {
    position: relative;
}

.map-layout__map .search-map {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.map-layout.is-map-full {
    grid-template-columns: 0 minmax(0, 1fr);
}

.map-layout.is-map-full .map-layout__list {
    overflow: hidden;
    padding: 0;
}

.map-layout.is-map-full .map-view-toggle {
    position: fixed;
    z-index: 1001;
    inset-inline-end: 1rem;
    bottom: 1rem;
    display: inline-flex !important;
    background: var(--card, #fff);
}

.map-card {
    height: 100%;
}

@media (max-width: 1199.98px) {
    .map-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .map-layout__map {
        order: -1;
    }

    /* the script sets a viewport height on both panes; on small screens they stack */
    .map-layout #pxp-list-section {
        height: auto !important;
        overflow: visible;
    }

    .map-layout #search-map {
        height: 55vh !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .map-grid > * {
        flex: 0 0 auto;
        width: 33.3333%;
    }
}

/* ------------------------------------------------------------------ */
/* 19.0 Listing detail     .listing-detail (Details, UserDetails, ...) */
/* ------------------------------------------------------------------ */
/* One markup for every theme. Themes tune the look through these
   variables in theme.css (radius, borders, surface colours). */
.listing-detail {
    --ld-radius: var(--card-radius, .75rem);
    --ld-border: var(--card-border, 1px solid var(--bs-border-color));
    --ld-surface: var(--bs-body-bg);
    --ld-muted: var(--card-muted, var(--bs-secondary-color));
    --ld-gap: 1.5rem;
}
.listing-detail .text-prime { color: var(--prime-color) !important; }
.listing-detail .hideit,
.listing-detail .display-none { display: none !important; }
.listing-detail .ld-icon { width: 1.125rem; height: 1.125rem; flex: none; vertical-align: -.2em; }

/* Head: address, price, features */
.listing-detail__head-section { padding: 2rem 0 1.5rem; }
.header-property-detail {
    background: var(--ld-surface);
    border: var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 1.5rem;
}
.header-property-detail .content-top {
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}
.header-property-detail .content-top .title { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.header-property-detail .box-price h3 { margin: 0; color: var(--prime-color); font-size: clamp(1.25rem, 2.4vw, 1.75rem); text-align: end; }
.header-property-detail .content-bottom { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.header-property-detail .box-left { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.header-property-detail .info-box .label { font-weight: 600; margin-bottom: .5rem; }
.header-property-detail .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.listing-detail .meta-item { display: inline-flex; align-items: center; gap: .375rem; margin: 0; }
.listing-detail .meta-item .bi { color: var(--prime-color); }
.listing-detail__login-price { font-size: 1rem; }
#st-1 { z-index: 50 !important; }

/* Gallery: big photo + four tiles; the rest open in fancybox */
.flat-gallery-single {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    height: clamp(320px, 42vw, 560px);
    padding: 0 .75rem;
    max-width: 1440px;
    margin: 0 auto 1rem;
}
.flat-gallery-single .box-img { position: relative; display: block; overflow: hidden; border-radius: var(--ld-radius); min-height: 0; }
.flat-gallery-single .box-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.flat-gallery-single .box-img:hover img { transform: scale(1.04); }
.flat-gallery-single .item1 { grid-row: 1 / span 2; }
.flat-gallery-single .item1 > a { height: 100%; }
.flat-gallery-single .box-btn { position: absolute; inset-inline-start: 1rem; bottom: 1rem; display: flex; gap: .5rem; align-items: center; }
.flat-gallery-single .box-btn .btn { display: inline-flex; align-items: center; gap: .5rem; }
.flat-gallery-single .box-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; color: var(--prime-color);
}
.flat-gallery-single:has(.item2:only-of-type),
.flat-gallery-single:not(:has(.item2)) { grid-template-columns: 1fr; }
@media (max-width: 767.98px) {
    .flat-gallery-single { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 300px; }
    .flat-gallery-single > a.box-img { display: none; }
}

/* Body sections */
.flat-property-detail { padding-top: 1rem; }
.single-property-element {
    background: var(--ld-surface);
    border: var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 1.5rem;
    margin-bottom: var(--ld-gap);
}
.single-property-element > .title { margin-bottom: 1rem; }
.single-property-overview .info-box,
.single-property-info .inner-box,
.wrap-feature .box-feature { list-style: none; margin: 0; padding: 0; }
.single-property-overview .info-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.single-property-overview .item { display: flex; align-items: center; gap: .75rem; }
.single-property-overview .box-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border-radius: var(--bs-border-radius);
    border: 1px solid var(--bs-border-color); color: var(--prime-color); font-size: 1.125rem;
    pointer-events: none;
}
.single-property-overview .content { display: flex; flex-direction: column; line-height: 1.3; }
.single-property-overview .label { color: var(--ld-muted); font-size: .875rem; }
.single-property-info .inner-box { display: grid; grid-template-columns: minmax(130px, 35%) 1fr; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--bs-border-color); }
.single-property-info .inner-box .label { color: var(--ld-muted); }
.wrap-feature .box-feature ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .25rem 1rem; }
.wrap-feature .feature-item { display: flex; align-items: flex-start; gap: .5rem; padding: .25rem 0; }
.wrap-feature .feature-item::before { content: "\F26E"; font-family: bootstrap-icons; color: var(--prime-color); }
/* Nearby schools: cards from property_details_script.js + colour legend */
.school-card { height: 100%; padding: 1rem; background: var(--ld-surface); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); }
.school-card .school-title { margin-bottom: .25rem; }
.school-card .school-address { margin: 0 0 .5rem; font-size: .875rem; color: var(--ld-muted); }
.school-legend td { vertical-align: middle; }
.school-legend__head { font-size: .75rem; font-weight: 700; text-align: center; color: #fff; }
.school-legend__head.is-green { background: #39b64a; }
.school-legend__head.is-yellow { background: #b9b119; }
.school-legend__head.is-orange { background: #f76521; }
.school-legend__head.is-red { background: #ff0000; }
.detail-map { height: 487px; border-radius: var(--ld-radius); overflow: hidden; }
/* Map placeholder: the map loads only on "Show on map" (property_details_script.js showMap) */
.detail-map { position: relative; background: var(--bs-tertiary-bg); }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.map-placeholder__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-placeholder::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .15); }
.map-placeholder__btn { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.5rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.history-wrapper { position: relative; }
.listing-detail .login-mask-wide { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; }

/* Mortgage calculator */
.box-loan-calc .box-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.box-loan-calc .item-calc label { display: block; font-weight: 600; margin-bottom: .375rem; }
.box-loan-calc .box-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

/* Sidebar */
.single-sidebar.fixed-sidebar { position: sticky; top: calc(var(--header-height, 90px) + 1rem); }
.widget-box {
    background: var(--ld-surface);
    border: var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 1.5rem;
    margin-bottom: var(--ld-gap);
}
.widget-box > .title { margin-bottom: 1rem; }
.box-avatar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.box-avatar .avatar { flex: none; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; }
.box-avatar .avatar img { width: 100%; height: 100%; object-fit: cover; }
.box-avatar__name { margin: 0 0 .125rem; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.box-avatar__role { margin: 0 0 .5rem; font-size: .875rem; color: var(--ld-muted); }
.single-property-contact .form-control { padding: .75rem 1rem; }
.whychoose-panel { position: relative; padding: 1.5rem 1rem; background: var(--ld-panel, var(--bs-tertiary-bg)); border-radius: var(--bs-border-radius); }
.whychoose-panel__note { margin: 1rem 0 0; font-size: .75rem; color: var(--ld-muted); }
.item-why > span { margin-inline-start: auto; font-weight: 700; }
.box-avatar .list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.box-whychoose { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.item-why { display: flex; align-items: center; gap: .75rem; }
.item-why .bi { color: var(--prime-color); font-size: 1.25rem; }

/* Similar listings (compact list) */
.box-latest-property ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.latest-property-item { display: flex; gap: 1rem; align-items: center; }
.latest-property-item .images-style { position: relative; flex: none; width: 96px; height: 96px; border-radius: var(--bs-border-radius); overflow: hidden; }
.latest-property-item .images-style img { width: 100%; height: 100%; object-fit: cover; }
.latest-property-item__tag {
    position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0;
    padding: .125rem .375rem; font-size: .6875rem; text-align: center;
    color: #fff; background: rgba(0, 0, 0, .6);
}
.latest-property-item .content { min-width: 0; }
.latest-property-item .link { color: var(--bs-heading-color); font-weight: 600; text-decoration: none; }
.latest-property-item .link:hover { color: var(--prime-color); }
.latest-property-item .meta-list { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; font-size: .875rem; }
.latest-property-item .meta-list .item { display: inline-flex; align-items: center; gap: .25rem; }
.latest-property-item .price { color: var(--prime-color); font-weight: 700; }

/* Missing listing */
.listing-detail__missing { text-align: center; padding: 4rem 0; }

/* App QR widget */
.homeindex-widget-container {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1040;
    background: var(--bs-body-bg); border-radius: var(--ld-radius, .75rem);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18); text-align: center;
}
.homeindex-widget-btn { position: absolute; top: 3px; inset-inline-end: 5px; background: transparent; border: 0; font-size: 18px; line-height: 1; }
.homeindex-widget h5 { font-size: 14px; line-height: 20px; font-weight: 700; margin-bottom: 0; }
.homeindex-widget img { margin-top: 5px; width: 120px; height: 120px; }
@media (min-width: 768px) {
    .homeindex-widget-container { inset-inline-start: auto; inset-inline-end: 20px; transform: none; }
}

/* "Interested?" dialog */
.fav-dialog { position: fixed; inset-inline-start: 0; inset-inline-end: 0; bottom: 100px; z-index: 1030; padding: 0 1rem; }
.fav-dialog .dialog-content {
    position: relative; max-width: 720px; margin: 0 auto; padding: 1rem 1.25rem;
    color: #fff; background: var(--prime-color); border-radius: var(--ld-radius, .75rem);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.fav-dialog .dialog-close { position: absolute; top: .5rem; inset-inline-end: .75rem; color: #fff; cursor: pointer; transition: transform .2s; }
.fav-dialog .dialog-close:hover { transform: rotate(90deg); }

/* Pre-construction detail: photo carousel and attachments */
.listing-detail__carousel { max-width: 1440px; margin: 0 auto 1rem; padding: 0 .75rem; }
.listing-detail__carousel .carousel { border-radius: var(--ld-radius); overflow: hidden; }
.listing-detail__carousel .carousel-item img { height: clamp(300px, 45vw, 620px); object-fit: cover; }
.attachments-item {
    display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; margin-bottom: 1rem;
    border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius);
    color: inherit; text-decoration: none;
}
.attachments-item:hover { border-color: var(--prime-color); color: var(--prime-color); }
.attachments-item .box-icon { font-size: 1.5rem; color: var(--prime-color); }
.listing-detail .agent_search_form {
    background: var(--ld-surface); border: var(--ld-border); border-radius: var(--ld-radius); padding: 2rem;
}

/* Nurturing pages (PropertyUpdate, MarketSnapshot, Neighbourhood-Update): full-width map */
.listing-map .search-map { width: 100%; height: 600px; }

/* Home evaluation report (Home-Evaluation-Report-v2) */
.eval-report__pano #pano { width: 100%; height: 400px; }
.eval-report__address { margin-bottom: 2rem; }
.eval-report__note { color: var(--bs-secondary-color); }
.eval-report__facts .list-inline-item + .list-inline-item::before {
    content: "\2022"; margin-inline-end: .5rem; color: var(--bs-secondary-color);
}
