/* Modern Real Estate Styles - Miller Real Estate Team */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2e8da0;
    --primary-dark: #1c6b7c;
    --secondary-color: #103d4f;
    --accent-color: #dc2626;
    --text-primary: #103d4f;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --background-light: #eef6fa;
    --background-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --brand-gold: #c9a050;
    --brand-gold-light: #e8c781;
    --just-listed-gradient: linear-gradient(135deg, #103d4f 0%, #2e8da0 48%, #1c6b7c 75%, #c9a050 100%);
    --just-listed-shadow: 0 4px 12px rgba(46, 141, 160, 0.35);
    --just-listed-shadow-sm: 0 2px 6px rgba(46, 141, 160, 0.35);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9998;
    transition: all 0.3s ease;
}

/* Mobile navigation overlay */
@media (max-width: 768px) {
    .navbar {
        z-index: 10000;
        position: sticky;
        top: 0;
    }

    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        /* none lets taps hit the page behind the drawer → outside-click closes the menu */
        pointer-events: auto;
    }

    body.nav-open {
        overflow: hidden;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-logo a:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-logo a:focus-visible { outline: 2px solid #2e8da0; outline-offset: 3px; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-image {
    height: 35px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Mega navigation */
.mega-nav .mega-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.mega-nav .mega-trigger {
    background: transparent;
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(46, 141, 160, 0.25);
}
.mega-nav .mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1080px, 92vw);
    background: #ffffff;
    border: 1px solid #e7ebf0;
    border-radius: 16px;
    box-shadow: 0 24px 50px -30px rgba(15, 28, 55, 0.55);
    padding: 20px 22px 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 1200;
}
.mega-nav .mega-dropdown.is-open .mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.mega-nav .mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.mega-nav .mega-col {
    border-right: 1px solid #f0f2f6;
    padding-right: 12px;
}
.mega-nav .mega-col:last-child { border-right: none; }
.mega-nav .mega-col h4 {
    margin: 0 0 10px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #243a63;
}
.mega-nav .mega-col a {
    display: block;
    text-decoration: none;
    color: #364760;
    font-size: 0.92rem;
    padding: 6px 0;
}
.mega-nav .mega-col a:hover { color: #1e3f73; }

/* Explore mega menu — account promo (first column, below Vancouver Island Collection) */
.mega-nav .mega-account-card {
    margin-top: 12px;
    padding: 12px 12px 11px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #fde047 0%, #facc15 55%, #eab308 100%);
    border: 1px solid rgba(202, 138, 4, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
/* Same gold + blue sweep as .home-guest-account-banner — mobile Explore panel */
.mega-nav .mega-account-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 0%,
        transparent 18%,
        rgba(46, 141, 160, 0.32) 32%,
        rgba(229, 196, 138, 0.5) 38%,
        rgba(46, 141, 160, 0.36) 42%,
        rgba(30, 58, 138, 0.34) 48%,
        rgba(59, 130, 246, 0.55) 52%,
        rgba(30, 58, 138, 0.32) 56%,
        rgba(46, 141, 160, 0.34) 62%,
        rgba(229, 196, 138, 0.28) 68%,
        transparent 82%,
        transparent 100%
    );
    background-size: 220% 100%;
    background-position: 120% 0;
    animation: guest-banner-shimmer 7s ease-in-out infinite alternate;
    pointer-events: none;
}
.mega-nav .mega-account-card > * {
    position: relative;
    z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
    .mega-nav .mega-account-card::before {
        animation: none;
        opacity: 0;
    }
}
.mega-nav .mega-account-card__lead {
    margin: 0 0 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #0f172a;
    font-weight: 500;
}
.mega-nav .mega-account-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mega-nav .mega-account-card__actions--row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}
.mega-nav .mega-account-card__actions--stack {
    gap: 6px;
}
.mega-nav .mega-col .mega-account-card a.mega-account-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}
.mega-nav .mega-col .mega-account-card a.mega-account-card__btn--dashboard {
    flex: 1 1 auto;
    min-width: 0;
    background: #103d4f;
    color: #fff;
    border-color: #1e3f73;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}
.mega-nav .mega-col .mega-account-card a.mega-account-card__btn--dashboard:hover {
    background: #172554;
    color: #fff;
}
.mega-nav .mega-col .mega-account-card a.mega-account-card__btn--logout {
    flex: 1 1 auto;
    min-width: 0;
    background: rgba(255, 255, 255, 0.65);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.2);
}
.mega-nav .mega-col .mega-account-card a.mega-account-card__btn--logout:hover {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.35);
}
.mega-nav .mega-col .mega-account-card a.mega-account-card__btn--register {
    width: 100%;
    background: #103d4f;
    color: #fff;
    border-color: #1e3f73;
    padding: 9px 12px;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}
.mega-nav .mega-col .mega-account-card a.mega-account-card__btn--register:hover {
    background: #172554;
    color: #fff;
}
.mega-nav .mega-col .mega-account-card a.mega-account-card__signin {
    display: block;
    padding: 4px 0 2px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: #103d4f;
    text-decoration: none;
    border-bottom: none;
}
.mega-nav .mega-col .mega-account-card a.mega-account-card__signin:hover {
    color: #172554;
    text-decoration: underline;
}
.mega-nav .mega-featured-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
    display: grid;
    /* Two text cards: latest market update + latest insight. */
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}
.mega-nav .mega-feature-card {
    background: linear-gradient(160deg, #f9fbff 0%, #f3f7fc 100%);
    border: 1px solid #e6edf7;
    border-radius: 12px;
    padding: 12px 14px;
}
.mega-nav .mega-feature-card__eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #6a7f9f;
    font-weight: 700;
}
.mega-nav .mega-feature-card h5 {
    margin: 6px 0 5px;
    color: #1e3558;
    font-size: 0.94rem;
    line-height: 1.35;
}
.mega-nav .mega-feature-card p {
    margin: 0 0 8px;
    font-size: 0.84rem;
    color: #556a87;
    line-height: 1.45;
}
.mega-nav .mega-feature-card__cta {
    text-decoration: none;
    color: #1e3f73;
    font-weight: 600;
    font-size: 0.82rem;
}
.mega-nav .mega-feature-card__cta i {
    font-size: 0.72rem;
    color: #2e8da0;
}
.mega-nav .mega-footer-row {
    margin-top: 12px;
    border-top: 1px solid #eef2f6;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.mega-nav .mega-footer-contact,
.mega-nav .mega-footer-auth {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.mega-nav .mega-footer-row a {
    text-decoration: none;
    font-size: 0.85rem;
    color: #4a5b74;
}
.mega-nav .mega-footer-row i { color: #2e8da0; }
@media (max-width: 980px) {
    /* Stack trigger + panel (desktop is row; row + wide panel shoves content off-screen on phone). */
    .mega-nav .mega-dropdown {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .mega-nav .mega-panel {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 8px;
        margin-left: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        box-shadow: none;
        border-radius: 12px;
    }
    /* Must override desktop .mega-dropdown.is-open .mega-panel { transform: translateX(-50%)… }
       or the panel shifts horizontally off-screen and looks “blank” on phone. */
    .mega-nav .mega-dropdown.is-open .mega-panel {
        display: block;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .mega-nav .mega-grid { grid-template-columns: 1fr 1fr; }
    .mega-nav .mega-featured-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .mega-nav .mega-grid { grid-template-columns: 1fr; }
    .mega-nav .mega-col {
        border-right: none;
        border-bottom: 1px solid #f0f2f6;
        padding-bottom: 8px;
    }
    .mega-nav .mega-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-dropdown .nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 230px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-dropdown.properties-dropdown .dropdown-content {
    min-width: 260px;
}

.nav-dropdown.properties-dropdown .dropdown-content a {
    white-space: nowrap !important;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

.dropdown-content a.active-submenu {
    background-color: #007bff;
    color: white;
}

.dropdown-content a.active-submenu:hover {
    background-color: #0056b3;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Consumer account — outline pill after Contact when signed in */
.nav-link.nav-link--dashboard-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    margin-left: 10px;
    border: 2px solid #1e3f73;
    border-radius: 999px;
    color: #1e3f73;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: none;
    background: transparent;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link.nav-link--dashboard-outline:hover {
    background: rgba(30, 63, 115, 0.09);
    color: #163561;
    border-color: #163561;
}

.nav-link.nav-link--dashboard-outline.active::after {
    display: none;
}

.nav-link.nav-link--dashboard-outline.active {
    background: linear-gradient(135deg, #1e3f73 0%, #142a52 100%);
    color: #fff;
    border-color: #1e3f73;
    box-shadow: 0 4px 14px rgba(30, 63, 115, 0.35);
}

.nav-cta {
    display: flex;
    align-items: center;
}

.cta-btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mobile Navigation */
.nav-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
        z-index: 10000;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        padding: 1rem;
        display: block;
        border-bottom: 1px solid #eee;
        position: relative;
        z-index: 10001;
        color: var(--text-primary);
        text-decoration: none;
        cursor: pointer;
        background: white;
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link:hover {
        background-color: #f8f9fa;
        color: var(--primary-color);
    }

    /* Explore is a <button class="nav-link mega-trigger"> — reset UA “grey button” styling on iOS/Android */
    .nav-menu .mega-trigger {
        -webkit-appearance: none;
        appearance: none;
        color: var(--text-primary);
        -webkit-text-fill-color: var(--text-primary);
        font-family: inherit;
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1.5;
        opacity: 1;
        margin: 0;
        box-sizing: border-box;
    }

    .nav-menu .mega-trigger:hover,
    .nav-menu .mega-trigger:focus-visible {
        background-color: #f8f9fa;
        color: var(--primary-color);
        -webkit-text-fill-color: var(--primary-color);
    }

    .nav-menu .mega-dropdown.is-open .mega-trigger {
        color: var(--primary-color);
        -webkit-text-fill-color: var(--primary-color);
        font-weight: 600;
    }

    .nav-menu .mega-trigger i {
        color: inherit;
        opacity: 1;
    }

    /* Only the mega *panel* sat under the scrim (::before 9998); triggers already use
       z-index 10001. Lift the panel — not the whole .mega-dropdown — so the drawer
       layout isn’t altered (using .nav-menu.active > * broke opening on some devices). */
    .nav-menu .mega-dropdown.is-open .mega-panel {
        position: relative;
        z-index: 10002;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        -webkit-transform: none !important;
        transform: none !important;
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nav-menu .nav-link.nav-link--dashboard-outline {
        margin: 0.85rem auto 0;
        width: auto;
        max-width: 260px;
        padding: 12px 22px;
        border: 2px solid #1e3f73;
        border-radius: 999px;
    }

    .nav-menu .nav-link.nav-link--dashboard-outline:hover {
        background: rgba(30, 63, 115, 0.09);
    }

    .nav-dropdown {
        width: 100%;
        position: relative;
        z-index: 10001;
    }

    .nav-dropdown .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
        z-index: 10002;
    }

    .nav-dropdown.active .dropdown-content {
        display: block;
    }

    .nav-dropdown.active > .nav-link i.fa-chevron-down {
        transform: rotate(180deg);
        color: var(--primary-color);
    }

    .dropdown-content a {
        padding: 0.75rem 2rem;
        border-bottom: 1px solid #e5e7eb;
        font-size: 0.9rem;
        position: relative;
        z-index: 10003;
        color: var(--text-primary);
        text-decoration: none;
    }

    .nav-hamburger {
        display: flex;
        z-index: 10010;
        position: relative;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
        background: none;
        border: none;
        outline: none;
    }

    .nav-hamburger:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .nav-hamburger:focus {
        outline: none;
        background-color: rgba(0, 0, 0, 0.1);
    }

    .nav-hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-cta {
        position: relative;
        z-index: 10005;
    }

    .cta-btn {
        position: relative;
        z-index: 10006;
        pointer-events: auto;
    }
}

/* Hide Property Map on mobile */
@media screen and (max-width: 768px) {
    .nav-link.hide-mobile {
        display: none !important;
    }
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
}

/* Homepage: hero in normal flow; full MLS form opens as a sheet below a ~25vh hero “peek”, with a pull-tab on the seam.
   Do NOT use grid + 1fr here — with height:auto the fr row can collapse to 0 and hide the hero/search. */
.index-hero-reveal {
    --index-search-peek: 0px;
    --index-nav-offset: 86px;
    position: relative;
    overflow: hidden;
}

.index-hero-reveal.is-expanded {
    overflow: visible;
}

body.index-hero-search-open {
    overflow: hidden;
}

.index-hero-reveal__underlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Search sheet: starts below the hero peek (~top quarter); hero stops with translateY(calc(-100% + peek)) */
.index-hero-reveal.is-expanded .index-hero-reveal__underlay {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--index-nav-offset);
    bottom: 0;
    z-index: 9995;
    height: auto;
    max-height: none;
    min-height: 0;
    opacity: 1;
    pointer-events: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    /* Same photo + tint as .blog-hero (blog.php), with a light veil so the form area reads “faded” */
    background-color: #1e3f73;
    background-image:
        linear-gradient(165deg, rgba(248, 250, 252, 0.5) 0%, rgba(233, 238, 245, 0.45) 45%, rgba(241, 245, 249, 0.5) 100%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(30, 63, 115, 0.72) 100%),
        url('spteam.jpg');
    background-position: center center, center center, center center;
    background-size: cover, cover, cover;
    background-repeat: no-repeat;
    border-radius: 22px 22px 0 0;
    box-shadow:
        0 -8px 32px rgba(15, 28, 55, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Tab handle on the seam (hero peek ↔ search sheet) */
.index-full-search-pull-tab {
    position: absolute;
    left: 50%;
    top: -24px;
    transform: translateX(-50%);
    z-index: 9997;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px 12px;
    border: none;
    border-radius: 999px 999px 0 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 55%, var(--secondary-color) 100%);
    box-shadow:
        0 -2px 12px rgba(46, 141, 160, 0.35),
        0 4px 14px rgba(15, 28, 55, 0.15);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.index-full-search-pull-tab i {
    font-size: 0.75rem;
    opacity: 0.85;
}

.index-full-search-pull-tab:hover {
    filter: brightness(1.04);
}

.index-full-search-pull-tab:active {
    transform: translate3d(-50%, 2px, 0);
}

@media (prefers-reduced-motion: reduce) {
    .index-full-search-pull-tab:active {
        transform: translate3d(-50%, 0, 0);
    }
}

.index-full-search-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 16px 12px;
    box-sizing: border-box;
}

.index-full-search-topbar {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px 16px;
    padding: 10px 4px 14px;
    border-bottom: 1px solid rgba(30, 58, 138, 0.12);
}

@media (max-width: 520px) {
    .index-full-search-topbar {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .index-full-search-hint { display: none; }
}

.index-full-search-close {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(30, 58, 138, 0.25);
    background: #fff;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 28, 55, 0.06);
}

.index-full-search-close:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fffdf9 0%, #fff 100%);
    box-shadow: 0 4px 14px rgba(46, 141, 160, 0.2);
}

.index-full-search-close i {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.index-full-search-title {
    margin: 0;
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-align: center;
}

.index-full-search-hint {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
}

.index-full-search-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.index-hero-reveal__hero {
    position: relative;
    z-index: 2;
    width: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.index-hero-reveal.is-expanded .index-hero-reveal__hero {
    transform: translateY(-100%);
}

/* Homepage hero only: slightly higher focal point so cover crop feels less “zoomed in” on fences/roofs */
.index-hero-reveal .hero-real-estate {
    background-position: center 35%;
}

@media (prefers-reduced-motion: reduce) {
    .index-hero-reveal__underlay,
    .index-hero-reveal__hero {
        transition-duration: 0.01ms !important;
    }
}

/* Expanded MLS form: multi-column grid (matches listings page layout, scoped here) */
.index-home-expanded-search.property-search-filters {
    padding: 20px 0 32px;
    background: transparent;
    border-bottom: none;
}

.index-home-expanded-search .container {
    max-width: 1200px;
}

.index-home-expanded-search__card.search-filters-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 22px 26px;
    border: 1px solid rgba(30, 58, 138, 0.08);
    box-shadow:
        0 4px 24px rgba(15, 28, 55, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.index-home-expanded-search .filters-grid {
    gap: 18px;
}

.index-home-expanded-search .index-vi-saved-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px 18px;
    justify-content: space-between;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 18px;
}

.index-home-expanded-search .index-vi-saved-toolbar__panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 10px 12px;
    min-height: 100%;
    flex: 1 1 320px;
}

.index-home-expanded-search .index-vi-saved-toolbar__panel--load {
    border-color: #16a34a;
    background: linear-gradient(180deg, #f4fdf6 0%, #edfaf0 100%);
}

.index-home-expanded-search .index-vi-saved-toolbar__panel--save {
    border-color: #2563eb;
    background: linear-gradient(180deg, #f3f7ff 0%, #edf4ff 100%);
}

.index-home-expanded-search .index-vi-saved-panel-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

.index-home-expanded-search .index-vi-saved-panel-step {
    font-weight: 800;
    margin-right: 3px;
}

.index-home-expanded-search .index-vi-saved-toolbar__load,
.index-home-expanded-search .index-vi-saved-toolbar__save {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.index-home-expanded-search .index-vi-saved-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.index-home-expanded-search .index-vi-load-saved-select {
    min-width: 220px;
    max-width: min(360px, 100%);
}

.index-home-expanded-search .index-vi-save-search-name-input {
    min-width: 150px;
    max-width: 220px;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1.5px solid #dbe1ea;
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
}

.index-home-expanded-search .index-vi-save-target-select {
    min-width: 170px;
    max-width: 250px;
}

.index-home-expanded-search .index-vi-save-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 9px;
    border: 2px solid #1e3f73;
    background: linear-gradient(135deg, #f0f5fc 0%, #e8effa 100%);
    color: #1e3f73;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
}

.index-home-expanded-search .index-vi-save-search-btn:hover {
    filter: brightness(1.03);
}

.index-home-expanded-search .index-vi-search-form-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    border: 2px solid #dbe1ea;
    border-radius: 12px;
    padding: 14px 14px 10px;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.index-home-expanded-search .index-vi-active-saved-search-name {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1.5px solid #dbe1ea;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
}

.index-home-expanded-search .index-vi-search-form-shell.index-vi-search-form-shell--load {
    border-color: #16a34a;
    background: linear-gradient(180deg, #f4fdf6 0%, #edfaf0 100%);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.index-home-expanded-search .index-vi-search-form-shell.index-vi-search-form-shell--save {
    border-color: #2563eb;
    background: linear-gradient(180deg, #f3f7ff 0%, #edf4ff 100%);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.index-home-expanded-search .index-vi-search-form-shell.index-vi-search-form-shell--load .vi-search-input,
.index-home-expanded-search .index-vi-search-form-shell.index-vi-search-form-shell--load .filter-select {
    border-color: #86efac;
}

.index-home-expanded-search .index-vi-search-form-shell.index-vi-search-form-shell--save .vi-search-input,
.index-home-expanded-search .index-vi-search-form-shell.index-vi-search-form-shell--save .filter-select {
    border-color: #93c5fd;
}

.index-home-expanded-search .index-vi-search-form-shell.index-vi-search-form-shell--load .index-vi-active-saved-search-name {
    border-color: #86efac;
    background: #ecfdf3;
    color: #166534;
}

.index-home-expanded-search .index-vi-search-form-shell.index-vi-search-form-shell--save .index-vi-active-saved-search-name {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #103d4f;
}

.index-home-expanded-search .vi-filter-row {
    display: grid;
    gap: 14px 16px;
    align-items: end;
}

.index-home-expanded-search .vi-filter-row-search {
    grid-template-columns: 1fr;
}

.index-home-expanded-search .vi-filter-row-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.index-home-expanded-search .vi-filter-row-bottom--core {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
}

.index-home-expanded-search .vi-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.index-home-expanded-search .vi-search-input-icon {
    position: absolute;
    left: 14px;
    color: #6c7a92;
    font-size: 0.95rem;
    pointer-events: none;
}

.index-home-expanded-search .vi-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 12px 40px;
    border: 1.5px solid #dbe1ea;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.index-home-expanded-search .vi-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(46, 141, 160, 0.2);
}

@media (max-width: 992px) {
    .index-home-expanded-search .vi-filter-row-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .index-home-expanded-search .vi-filter-row-bottom--core {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .index-home-expanded-search .vi-filter-row-bottom--core .filter-group:nth-last-child(1),
    .index-home-expanded-search .vi-filter-row-bottom--core .filter-group:nth-last-child(2),
    .index-home-expanded-search .vi-filter-row-bottom--core .filter-group:nth-last-child(3) {
        grid-column: span 2;
    }
    .index-home-expanded-search .index-vi-saved-toolbar {
        width: 100%;
    }
    .index-home-expanded-search .index-vi-saved-toolbar__panel {
        width: 100%;
    }
    .index-home-expanded-search .index-vi-load-saved-select,
    .index-home-expanded-search .index-vi-save-search-name-input,
    .index-home-expanded-search .index-vi-save-target-select {
        max-width: 100%;
        width: 100%;
    }
    .index-home-expanded-search .index-vi-saved-toolbar__load,
    .index-home-expanded-search .index-vi-saved-toolbar__save {
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    .index-home-expanded-search .vi-filter-row-4,
    .index-home-expanded-search .vi-filter-row-bottom--core {
        grid-template-columns: 1fr;
    }
    .index-home-expanded-search .vi-filter-row-bottom--core .filter-group:nth-last-child(1),
    .index-home-expanded-search .vi-filter-row-bottom--core .filter-group:nth-last-child(2),
    .index-home-expanded-search .vi-filter-row-bottom--core .filter-group:nth-last-child(3) {
        grid-column: auto;
    }
}

/* Hero Section */
.hero-real-estate {
    position: relative;
    /* Use min-height (not height) so the hero can grow when a taller tab
       panel — Buying / Selling — is active. With a fixed height + overflow
       hidden, the taller panels were being clipped and the ticker (which is
       a flex child anchored to the bottom) appeared on top of them. */
    min-height: max(90vh, 700px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: url('spteam.jpg') center center/cover no-repeat;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

/* When JS swaps in a real listing photo we darken the overlay slightly so the
   text and search form on top of it remain legible regardless of the photo. */
.hero-background--has-property .hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Floating featured-property card (top-left of the homepage hero).
   The card itself is an <a> so the whole surface is one click target. */
.hero-property-card {
    display: block;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 4;
    width: auto;
    max-width: min(360px, calc(100% - 56px));
    background: rgba(15, 28, 55, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(229, 196, 134, 0.45);
    border-radius: 16px;
    padding: 18px 20px 20px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-property-card[hidden] {
    display: none !important;
}
.hero-property-card:hover,
.hero-property-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    color: #fff;
}
.hero-property-card-eyebrow {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #addaea;
    font-weight: 600;
    margin-bottom: 8px;
}
.hero-property-card-price {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.hero-property-card-address {
    display: block;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 12px;
    line-height: 1.35;
}
.hero-property-card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
}
.hero-property-card-stat {
    display: inline-flex;
    align-items: center;
}
.hero-property-card-stat i {
    color: #addaea;
    margin-right: 6px;
    font-size: 0.95rem;
}
.hero-property-card-stat span {
    margin-right: 4px;
    font-weight: 600;
}
.hero-property-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2e8da0 0%, #addaea 100%);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 9px 18px;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-property-card:hover .hero-property-card-cta {
    transform: translateX(2px);
    box-shadow: 0 6px 18px rgba(46, 141, 160, 0.45);
}

@media (max-width: 1100px) {
    .hero-property-card {
        top: 20px;
        left: 20px;
        max-width: min(300px, calc(100% - 40px));
        padding: 16px 18px 18px;
    }
    .hero-property-card-price { font-size: 1.4rem; }
}
@media (max-width: 1024px) {
    /* Tablet + mobile: floating card overlaps hero search/tabs; hide it. */
    .hero-property-card { display: none !important; }
}

.hero-content-full {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
}

.hero-text-center {
    text-align: center;
    max-width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 56px;
    color: white;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Typewriter effect for the hero title.
   - The element starts hidden via `visibility: hidden` so the SEO/no-JS
     content doesn't briefly flash before JS swaps it for the animated
     spans. JS adds `is-typing` to make it visible.
   - The caret is a thin gold bar that blinks via CSS keyframes.
   - With prefers-reduced-motion the JS simply renders the full text and
     adds `is-typing` (no animation, no caret). */
.hero-title[data-typewriter] {
    visibility: hidden;
}
.hero-title.is-typing {
    visibility: visible;
}
.hero-title__text {
    display: inline;
}
.hero-title__caret {
    display: inline-block;
    width: 0.08em;
    height: 0.9em;
    background: #addaea;
    margin-left: 6px;
    vertical-align: -0.1em;
    box-shadow: 0 0 12px rgba(229, 196, 134, 0.6);
    animation: heroTypewriterCaret 0.75s step-end infinite;
}
@keyframes heroTypewriterCaret {
    50% { background-color: transparent; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-title__caret { animation: none; }
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: white;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-search-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-layout {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1600px;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 auto;
    padding: 60px 24px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
}

/* Search Form */
.search-form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
}

.property-search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-input-group {
    position: relative;
    display: flex;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.filter-dropdown {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 141, 160, 0.1);
}

.filter-input::placeholder {
    color: #999;
    font-style: italic;
}

.filter-group-full {
    grid-column: 1 / -1;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .section-header p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* Featured Properties */
.featured-properties-section {
    padding: 80px 0;
    background: white;
}

.featured-properties-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-properties-section .properties-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Home index: extra MLS thumbnails (photos 1–4) flush along bottom of featured cards */
.featured-properties-section.home-featured-grid-section .property-card {
    display: flex;
    flex-direction: column;
}

.featured-properties-section.home-featured-grid-section .property-info {
    flex: 1;
}

.featured-properties-section.home-featured-grid-section .property-card-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.featured-properties-section.home-featured-grid-section .property-card-thumb {
    position: relative;
    min-height: 60px;
    max-height: 80px;
    overflow: hidden;
    background: #e8eaed;
}

.featured-properties-section.home-featured-grid-section .property-card-thumb + .property-card-thumb {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.featured-properties-section.home-featured-grid-section .property-card-thumb img {
    width: 100%;
    height: 100%;
    min-height: 60px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.featured-properties-section.home-featured-grid-section .property-card-thumb--empty {
    min-height: 60px;
    background: linear-gradient(135deg, #eef0f3 0%, #e2e5ea 100%);
}

/* Active Filters Display */
.active-filters-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 0 auto 30px auto !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    max-width: 1200px !important;
    display: block !important;
}

.active-filters-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 15px !important;
}

.active-filters-header h4 {
    color: #2c5aa0 !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.active-filters-header h4 i {
    color: #28a745 !important;
}

.clear-all-filters-btn {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.clear-all-filters-btn:hover {
    background: linear-gradient(135deg, #c82333, #dc3545) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

.active-filters-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.active-filter-tag {
    background: linear-gradient(135deg, #2c5aa0, #1e3f73) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    animation: fadeInUp 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3) !important;
}

.filter-tag {
    background: linear-gradient(135deg, #2c5aa0, #1e3f73) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    animation: fadeInUp 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3) !important;
}

.filter-tag-label {
    font-weight: 600 !important;
    opacity: 0.8 !important;
}

.filter-tag-value {
    font-weight: 500 !important;
}

.remove-filter-btn,
.filter-tag .remove-filter {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
    margin-left: 4px !important;
}

.remove-filter-btn:hover,
.filter-tag .remove-filter:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .active-filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .clear-all-filters-btn {
        align-self: flex-end;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    .active-filter-tag {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        margin-bottom: 5px;
    }

    .active-filters-list {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    .active-filters-section {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .active-filters-header h4 {
        font-size: 1rem !important;
    }

    .filter-tag-label,
    .filter-tag-value {
        font-size: 0.8rem !important;
    }

    .remove-filter-btn {
        padding: 2px 4px !important;
        font-size: 0.7rem !important;
    }
}

/* Property Search Filters */
.property-search-filters {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.hero-search-container .search-filters-card {
    background: rgba(255, 255, 255, 0.38);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border-radius: 14px;
    padding-top: 24px;
    padding-right: 24px;
    padding-bottom: 24px;
    padding-left: 24px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.35);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-search-container .search-filters-card.animated-gold-border {
    position: relative;
    border: 3px solid rgba(46, 141, 160, 0.95);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(46, 141, 160, 0.25) inset;
    overflow: visible;
    isolation: isolate;
}

.hero-search-container .search-filters-card.animated-gold-border::before {
    content: none;
}

.hero-search-container .search-filters-card.animated-gold-border::after {
    content: none;
}

.hero-search-container .search-filters-card.animated-gold-border > * {
    position: relative;
    z-index: 1;
}

.hero-search-container .search-filters-card h3 {
    color: #2c5aa0;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.hero-search-container .search-filters-card h3 i {
    color: #28a745;
}

.search-filters-subtitle {
    margin: 0;
    text-align: center;
    color: #4b5563;
    font-size: 0.86rem;
    font-weight: 500;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: end;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.filters-row {
    display: grid;
    gap: 15px;
    align-items: end;
    margin-bottom: 15px;
}

.filters-row:nth-child(2) {
    grid-template-columns: repeat(2, 1fr);
}

.filters-row:nth-child(3) {
    grid-template-columns: 1fr 1fr 1fr 1fr auto auto;
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.hero-filters-row {
    display: grid;
    gap: 10px;
    align-items: end;
}

.hero-filters-row-search {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hero-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-search-input-icon {
    position: absolute;
    left: 14px;
    color: #6c7a92;
    font-size: 0.95rem;
    pointer-events: none;
}

.hero-search-input.filter-input {
    padding: 12px 14px 12px 40px;
    border: 1.5px solid #dbe1ea;
    border-radius: 9px;
    font-size: 0.95rem;
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(15, 28, 55, 0.06);
}

.hero-search-input.filter-input:focus {
    border-color: #2e8da0;
    box-shadow: 0 0 0 4px rgba(46, 141, 160, 0.18);
    outline: none;
}

.hero-filters-row-top {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 8px;
}

.hero-filters-row-bottom {
    grid-template-columns: 1fr 1fr 1fr 1fr auto auto;
}

.hero-filters-row-advanced {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin-top: 4px;
}

.hero-filters-row[hidden] {
    display: none !important;
}

.hero-filters-row-actions {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 4px;
    gap: 14px;
}

.hero-toggle-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border: 1px solid var(--primary-dark);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 9px 14px;
    border-radius: 9px;
    cursor: pointer;
    box-shadow: 0 10px 22px -14px rgba(46, 141, 160, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    width: fit-content;
    justify-self: start;
}
.hero-toggle-filters:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -14px rgba(46, 141, 160, 1);
}
.hero-toggle-filters .hero-toggle-chevron {
    transition: transform 0.25s ease;
    font-size: 0.75rem;
}
.hero-toggle-filters[aria-expanded="true"] .hero-toggle-chevron {
    transform: rotate(180deg);
}

.hero-action-buttons {
    display: inline-flex;
    gap: 10px;
    justify-self: end;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-filters-row-advanced .filter-group label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #c9a050 0%, #e8c781 100%);
    border: 1px solid #b7873f;
    color: #15203a;
    text-align: center;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #dbe1ea;
    border-radius: 9px;
    background: #ffffff;
    color: #495057;
    font-size: 13px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.12);
}

.filter-select:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-direction: row !important;
    align-items: center;
}

.search-button, .clear-button {
    padding: 10px;
    border: none;
    border-radius: 9px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 42px;
}

.search-button-hero,
.clear-button-hero {
    width: 42px;
    min-width: 42px;
}

.search-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.search-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 141, 160, 0.35);
}

.clear-button {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.clear-button:hover {
    background: linear-gradient(135deg, #495057, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

@media (max-width: 992px) {
    .filters-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-filters-row-top,
    .hero-filters-row-bottom,
    .hero-filters-row-search,
    .hero-filters-row-advanced {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-filters-row-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .hero-filters-row-actions .hero-toggle-filters {
        width: 100%;
        justify-content: center;
    }
    .hero-filters-row-actions .hero-action-buttons {
        width: 100%;
        justify-self: stretch;
        justify-content: stretch;
    }
    .hero-filters-row-actions .hero-action-buttons .search-button-hero,
    .hero-filters-row-actions .hero-action-buttons .clear-button-hero {
        flex: 1;
    }

    .filters-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .filters-row.compact {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column !important;
        align-items: stretch;
    }

    .search-button, .clear-button {
        width: 100%;
    }

    .hero-search-container .search-filters-card {
        padding-top: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
        padding-left: 20px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .filters-row {
        grid-template-columns: 1fr;
    }
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.property-card.property-card--sold {
    cursor: default;
}

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

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    height: 220px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.property-photo-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 12;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.property-photo-count-badge i {
    font-size: 0.72rem;
    opacity: 0.92;
}

@media (max-width: 768px) {
    .property-card {
        margin: 0 10px;
    }

    .property-image {
        height: 200px;
    }

    .property-info {
        padding: 20px;
    }

    .property-price {
        font-size: 1.4rem;
    }

    .property-title {
        font-size: 1.1rem;
    }

    .property-features {
        gap: 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .property-card {
        margin: 0 5px;
    }

    .property-info {
        padding: 15px;
    }

    .property-price {
        font-size: 1.3rem;
    }

    .property-features {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .property-features span {
        min-width: 45%;
        margin-bottom: 5px;
    }
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 0;
}

.property-image > div:not(.property-sold-overlay) {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.property-sold-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    pointer-events: none;
    background: transparent;
}

.property-sold-overlay span {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}

.property-link:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.property-link:visited {
    text-decoration: none !important;
    color: inherit !important;
}

.property-link:active {
    text-decoration: none !important;
    color: inherit !important;
}

.property-card a {
    text-decoration: none !important;
    color: inherit !important;
}

.property-card a:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.property-card a:visited {
    text-decoration: none !important;
    color: inherit !important;
}

.property-card a:active {
    text-decoration: none !important;
    color: inherit !important;
}

.new-listing-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: var(--just-listed-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.property-info {
    padding: 25px;
}

.property-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.property-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.property-location {
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-area {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.property-features {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features i {
    color: var(--primary-color);
}

.property-actions {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.view-details-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.view-details-btn:hover {
    background: var(--primary-dark);
}

.section-footer {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: var(--primary-dark);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.about-text > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.about-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 4px;
    min-width: 20px;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
}

.about-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.cta-button.cta-collection {
    background: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.25);
}

.cta-button.cta-collection:hover {
    background: #16306f;
    border-color: #16306f;
    color: #fff;
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.35);
}

@media (max-width: 600px) {
    .about-cta-row {
        flex-direction: column;
        align-items: stretch;
    }
    .about-cta-row .cta-button {
        justify-content: center;
    }
}

.about-map {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nanaimo-map-large {
    width: 100%;
    height: auto;
    min-height: 500px;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transition: all 0.3s ease;
}

.nanaimo-map-large:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* Team Preview */
.team-preview-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.team-preview-section .container {
    position: relative;
    z-index: 2;
}

/* Living background — soft floating circles (CTA cloud style) */
.team-living-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.team-living-bg__gradient {
    position: absolute;
    inset: -20%;
    animation: teamLivingGradient 24s ease-in-out infinite alternate;
}

.team-living-bg--light .team-living-bg__gradient {
    background:
        radial-gradient(circle at 15% 10%, rgba(46, 141, 160, 0.04) 0%, transparent 42%),
        radial-gradient(circle at 85% 90%, rgba(28, 107, 124, 0.03) 0%, transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
}

.team-living-bg--dark .team-living-bg__gradient {
    background:
        radial-gradient(circle at 20% 15%, rgba(143, 208, 222, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 85%, rgba(8, 28, 36, 0.35) 0%, transparent 50%),
        linear-gradient(135deg, #0f2730 0%, #1c6b7c 55%, #258a9c 100%);
}

.team-living-bg__circle {
    position: absolute;
    display: block;
    border-radius: 50%;
    will-change: transform;
    background: radial-gradient(circle at 32% 32%,
        rgba(46, 141, 160, 0.06) 0%,
        rgba(46, 141, 160, 0.03) 38%,
        rgba(46, 141, 160, 0) 70%);
    border: 1.5px solid rgba(46, 141, 160, 0.32);
    box-shadow:
        inset 0 0 28px rgba(46, 141, 160, 0.05),
        0 0 36px rgba(46, 141, 160, 0.06);
}

.team-living-bg--dark .team-living-bg__circle {
    background: radial-gradient(circle at 32% 32%,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(143, 208, 222, 0.04) 40%,
        rgba(143, 208, 222, 0) 72%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 0 32px rgba(255, 255, 255, 0.04),
        0 0 40px rgba(143, 208, 222, 0.08);
}

.team-living-bg__circle--1 {
    width: min(22vw, 220px);
    height: min(22vw, 220px);
    top: 8%;
    left: 6%;
    animation: teamCircleFloat1 32s ease-in-out infinite;
}

.team-living-bg__circle--2 {
    width: min(16vw, 160px);
    height: min(16vw, 160px);
    top: 22%;
    right: 10%;
    border-width: 1.25px;
    animation: teamCircleFloat2 28s ease-in-out infinite;
}

.team-living-bg__circle--3 {
    width: min(28vw, 280px);
    height: min(28vw, 280px);
    bottom: 6%;
    left: 22%;
    animation: teamCircleFloat3 36s ease-in-out infinite;
}

.team-living-bg__circle--4 {
    width: min(14vw, 140px);
    height: min(14vw, 140px);
    bottom: 18%;
    right: 16%;
    border-width: 1.25px;
    animation: teamCircleFloat4 30s ease-in-out infinite;
}

.team-living-bg__circle--5 {
    width: min(20vw, 200px);
    height: min(20vw, 200px);
    top: 42%;
    left: 48%;
    border-width: 1.25px;
    opacity: 0.85;
    animation: teamCircleFloat5 34s ease-in-out infinite;
}

@keyframes teamLivingGradient {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, -1%) scale(1.03); }
}

@keyframes teamCircleFloat1 {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(36px, -28px); }
    50%      { transform: translate(72px, 18px); }
    75%      { transform: translate(24px, 42px); }
}

@keyframes teamCircleFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(-48px, 32px); }
    66%      { transform: translate(-20px, -36px); }
}

@keyframes teamCircleFloat3 {
    0%, 100% { transform: translate(0, 0); }
    20%      { transform: translate(28px, -22px); }
    45%      { transform: translate(-32px, -12px); }
    70%      { transform: translate(-56px, 34px); }
}

@keyframes teamCircleFloat4 {
    0%, 100% { transform: translate(0, 0); }
    40%      { transform: translate(-38px, -44px); }
    80%      { transform: translate(26px, 30px); }
}

@keyframes teamCircleFloat5 {
    0%, 100% { transform: translate(-50%, -50%); }
    25%      { transform: translate(calc(-50% + 30px), calc(-50% - 24px)); }
    50%      { transform: translate(calc(-50% - 40px), calc(-50% + 20px)); }
    75%      { transform: translate(calc(-50% + 18px), calc(-50% + 36px)); }
}

@media (prefers-reduced-motion: reduce) {
    .team-living-bg__gradient,
    .team-living-bg__circle {
        animation: none !important;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 10px 40px 10px;
    }

    .team-member-card {
        margin: 0 5px;
        padding: 25px 20px;
    }

    .agent-image {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .agent-name {
        font-size: 1.2rem;
    }

    .agent-contact {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .team-member-card {
        margin: 0;
        padding: 20px 15px;
    }

    .agent-image {
        width: 90px;
        height: 90px;
    }

    .agent-name {
        font-size: 1.1rem;
    }

    .agent-title {
        font-size: 0.9rem;
    }
}

.team-member-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.agent-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2.5rem;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(46, 141, 160, 0.3);
    transition: all 0.3s ease;
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.team-member-card:hover .agent-image {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(46, 141, 160, 0.4);
    border-color: var(--secondary-color);
}

.team-member-card:hover .agent-image img {
    transform: scale(1.1);
}

.agent-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.agent-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.agent-contact span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Solo team member layout (when there is only one agent) */
.team-preview-section:has(.team-grid.team-grid-solo) {
    padding: 48px 0;
}

.team-preview-section:has(.team-grid.team-grid-solo) .section-footer {
    display: none;
}

.team-grid.team-grid-solo {
    grid-template-columns: minmax(240px, 300px) 1fr;
    align-items: center;
    gap: 36px;
    max-width: 1040px;
    margin: 0 auto;
    margin-bottom: 0;
}

.team-grid.team-grid-solo .team-solo-card {
    background: white;
    border-radius: 16px;
    padding: 24px 22px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(46, 141, 160, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-grid.team-grid-solo .team-solo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 141, 160, 0.08) 0%, rgba(30, 58, 138, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.team-grid.team-grid-solo .team-solo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.16);
    border-color: var(--primary-color);
}

.team-grid.team-grid-solo .team-solo-card:hover::before {
    opacity: 1;
}

.team-grid.team-grid-solo .team-solo-card > * {
    position: relative;
    z-index: 1;
}

.team-grid.team-grid-solo .team-solo-card .agent-image {
    width: 130px;
    height: 130px;
    margin: 0 auto 14px;
    border-width: 3px;
}

.team-grid.team-grid-solo .team-solo-card .agent-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.team-grid.team-grid-solo .team-solo-card .agent-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.team-grid.team-grid-solo .team-solo-card .agent-contact {
    font-size: 0.85rem;
    gap: 4px;
}

.team-solo-writeup {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-solo-eyebrow {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
    padding: 4px 12px;
    border: 1px solid rgba(46, 141, 160, 0.35);
    border-radius: 999px;
    background: rgba(46, 141, 160, 0.08);
    margin-bottom: 10px;
}

.team-solo-heading {
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.team-solo-writeup p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 10px;
}

.team-solo-writeup p:last-of-type {
    margin-bottom: 14px;
}

.team-solo-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0;
}

.team-solo-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border: 1px solid rgba(30, 58, 138, 0.08);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-solo-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.08);
    border-color: rgba(46, 141, 160, 0.35);
}

.team-solo-highlight i {
    font-size: 0.95rem;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(46, 141, 160, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-solo-highlight strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1px;
}

.team-solo-highlight span {
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .team-grid.team-grid-solo {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 560px;
    }

    .team-grid.team-grid-solo .team-solo-card {
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
    }

    .team-solo-writeup {
        text-align: left;
    }

    .team-solo-heading {
        font-size: 1.35rem;
    }

    .team-solo-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .team-preview-section:has(.team-grid.team-grid-solo) {
        padding: 36px 0;
    }

    .team-grid.team-grid-solo .team-solo-card {
        padding: 22px 18px;
    }

    .team-grid.team-grid-solo .team-solo-card .agent-image {
        width: 110px;
        height: 110px;
    }

    .team-solo-heading {
        font-size: 1.25rem;
    }
}

/* Local Nanaimo Real Estate Section */
.local-nanaimo-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    position: relative;
    overflow: hidden;
}

.local-nanaimo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(46, 141, 160, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(30, 58, 138, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

.local-nanaimo-section .container {
    position: relative;
    z-index: 1;
}

.nanaimo-properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Nanaimo search bar */
.nanaimo-search-wrap {
    margin-top: 8px;
}

.nanaimo-search-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.97) 0%, rgba(30, 58, 138, 0.92) 100%);
    color: white;
    border-radius: 18px;
    padding: 22px 24px 20px;
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.25);
    border: 1px solid rgba(46, 141, 160, 0.35);
    position: relative;
    overflow: hidden;
}

.nanaimo-search-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(46, 141, 160, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(46, 141, 160, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.nanaimo-search-card > * {
    position: relative;
    z-index: 1;
}

.nanaimo-search-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 16px;
}

.nanaimo-search-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.nanaimo-search-title i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(46, 141, 160, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nanaimo-search-sub {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 40px;
}

.nanaimo-search-fields {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 0.85fr 0.85fr auto;
    gap: 12px;
    align-items: end;
}

.nanaimo-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.nanaimo-field label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.nanaimo-select {
    width: 100%;
    padding: 11px 36px 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background-color: rgba(255, 255, 255, 0.08);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%23c49b61' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px 7px;
    color: white;
    font-size: 0.92rem;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.nanaimo-select:hover {
    border-color: rgba(46, 141, 160, 0.55);
    background-color: rgba(255, 255, 255, 0.12);
}

.nanaimo-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 141, 160, 0.25);
    background-color: rgba(255, 255, 255, 0.14);
}

.nanaimo-select option {
    color: var(--text-primary);
    background: white;
}

.nanaimo-field-actions {
    align-self: end;
}

.nanaimo-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #b0844a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(46, 141, 160, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
}

.nanaimo-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(46, 141, 160, 0.45);
    filter: brightness(1.05);
}

.nanaimo-search-button:active {
    transform: translateY(0);
}

.nanaimo-search-button i {
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .nanaimo-search-fields {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .nanaimo-field-actions {
        grid-column: 1 / -1;
    }

    .nanaimo-search-button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .nanaimo-search-card {
        padding: 18px 16px 16px;
        border-radius: 14px;
    }

    .nanaimo-search-fields {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .nanaimo-search-sub {
        padding-left: 0;
    }
}

/* About Nanaimo (within the Local Nanaimo Real Estate section) */
.nanaimo-about {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 48px 56px;
    align-items: start;
}

.nanaimo-about-intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nanaimo-about-eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(46, 141, 160, 0.1);
    border: 1px solid rgba(46, 141, 160, 0.35);
}

.nanaimo-about-title {
    margin: 0;
    font-size: 2.1rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nanaimo-about-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(46, 141, 160, 0) 100%);
    border-radius: 2px;
    margin-top: 14px;
}

.nanaimo-about-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-primary);
    opacity: 0.92;
}

.nanaimo-about-body {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.nanaimo-about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.nanaimo-about-stat {
    position: relative;
    background: white;
    border: 1px solid rgba(30, 58, 138, 0.08);
    border-radius: 16px;
    padding: 22px 20px 20px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nanaimo-about-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(46, 141, 160, 0) 80%);
}

.nanaimo-about-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(30, 58, 138, 0.12);
    border-color: rgba(46, 141, 160, 0.4);
}

.nanaimo-about-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(46, 141, 160, 0.12);
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.nanaimo-about-stat-number {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.nanaimo-about-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nanaimo-about-highlights {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.nanaimo-about-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(30, 58, 138, 0.08);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.nanaimo-about-highlight:hover {
    transform: translateY(-2px);
    border-color: rgba(46, 141, 160, 0.35);
    background: white;
}

.nanaimo-about-highlight i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.08);
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.nanaimo-about-highlight strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.nanaimo-about-highlight span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 2px;
}

.nanaimo-about-link {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 10px 2px;
    border-bottom: 2px solid rgba(46, 141, 160, 0.4);
    transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.nanaimo-about-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    gap: 14px;
}

.nanaimo-about-link i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.nanaimo-about-link:hover i {
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .nanaimo-about {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-top: 44px;
    }

    .nanaimo-about-title {
        font-size: 1.75rem;
    }

    .nanaimo-about-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nanaimo-about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .nanaimo-about-stat {
        padding: 18px 16px 16px;
    }

    .nanaimo-about-stat-number {
        font-size: 1.55rem;
    }
}

.nanaimo-property-card {
    position: relative;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.06);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nanaimo-property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(30, 58, 138, 0.16);
    border-color: rgba(46, 141, 160, 0.4);
}

.nanaimo-property-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    overflow: hidden;
}

.nanaimo-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.nanaimo-property-card:hover .nanaimo-property-image img {
    transform: scale(1.06);
}

.nanaimo-property-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
    pointer-events: none;
}

.nanaimo-property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--just-listed-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: var(--just-listed-shadow);
}

.nanaimo-property-price {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 2;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.01em;
}

.nanaimo-property-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nanaimo-property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nanaimo-property-location i {
    color: var(--primary-color);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.nanaimo-property-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(30, 58, 138, 0.08);
}

.nanaimo-property-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nanaimo-property-stats i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* ----------------------------------------------------------------
   "How Much Is Your Home Worth?" CTA card
   - Sits in a random slot of the Nanaimo grid (replaces one
     property card so the 4×4 layout stays clean).
   - Navy/gold brand treatment to clearly differentiate it from
     the surrounding listings.
   ---------------------------------------------------------------- */
.nanaimo-cta-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0b1a3a 0%, #1e3f73 60%, #2a5599 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.18);
    border: 2px solid rgba(229, 196, 134, 0.45);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.nanaimo-cta-card::before {
    /* Soft gold glow in the top-right corner — adds depth without an image. */
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(229, 196, 134, 0.28) 0%, rgba(229, 196, 134, 0) 70%);
    pointer-events: none;
}
.nanaimo-cta-card:hover,
.nanaimo-cta-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(30, 58, 138, 0.32);
    border-color: rgba(229, 196, 134, 0.85);
    outline: none;
}

.nanaimo-cta-card__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    height: 100%;
    flex: 1;
}

.nanaimo-cta-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(229, 196, 134, 0.18);
    border: 1.5px solid rgba(229, 196, 134, 0.55);
    color: #addaea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 22px rgba(229, 196, 134, 0.25);
    margin-bottom: 4px;
}

.nanaimo-cta-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    text-wrap: balance;
}

.nanaimo-cta-card__sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.35;
    margin-bottom: 4px;
}

.nanaimo-cta-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #addaea 0%, #2e8da0 100%);
    color: #0b1a3a;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 999px;
    margin-top: 6px;
    box-shadow: 0 6px 16px rgba(46, 141, 160, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nanaimo-cta-card:hover .nanaimo-cta-card__btn,
.nanaimo-cta-card:focus-visible .nanaimo-cta-card__btn {
    transform: translateX(2px);
    box-shadow: 0 10px 22px rgba(46, 141, 160, 0.45);
}

@media (max-width: 1100px) {
    .nanaimo-cta-card { padding: 22px 18px; }
    .nanaimo-cta-card__title { font-size: 1.02rem; }
}
@media (max-width: 820px) {
    .nanaimo-cta-card__icon { width: 48px; height: 48px; font-size: 1.25rem; }
    .nanaimo-cta-card__title { font-size: 0.98rem; }
    .nanaimo-cta-card__sub { font-size: 0.78rem; }
    .nanaimo-cta-card__btn { padding: 8px 14px; font-size: 0.78rem; }
}
@media (max-width: 480px) {
    .nanaimo-cta-card { padding: 22px 18px; min-height: 220px; }
}

/* ----------------------------------------------------------------
   Homepage "How Much Is Your Home Worth?" banner CTA
   - Reuses the brand language of `.nanaimo-cta-card` (navy gradient,
     gold ring, gold pill button, gold corner glow) but stretched to a
     full-width horizontal banner with icon + copy + button laid out
     side-by-side on desktop and stacked on mobile.
   - Whole banner is the click target → homeeval.php.
   ---------------------------------------------------------------- */
.home-eval-cta-section {
    position: relative;
    padding: 40px 0 72px;
    background: linear-gradient(135deg, #0b1a3a 0%, #1e3f73 60%, #2a5599 100%);
    color: #fff;
    border-top: 2px solid rgba(229, 196, 134, 0.45);
    border-bottom: 2px solid rgba(229, 196, 134, 0.45);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.22);
}
.home-eval-cta-section::before {
    /* Gold corner glow, top-right — full-bleed companion of the Nanaimo CTA. */
    content: "";
    position: absolute;
    top: -40%;
    right: -5%;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(229, 196, 134, 0.28) 0%, rgba(229, 196, 134, 0) 70%);
    pointer-events: none;
    z-index: 0;
}
.home-eval-cta-section::after {
    /* Softer companion glow, bottom-left, for depth across the full width. */
    content: "";
    position: absolute;
    bottom: -55%;
    left: -8%;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(229, 196, 134, 0.14) 0%, rgba(229, 196, 134, 0) 70%);
    pointer-events: none;
    z-index: 0;
}
.home-eval-cta-section > .container {
    position: relative;
    z-index: 1;
}

.home-eval-cta-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.home-eval-cta-card:hover,
.home-eval-cta-card:focus-visible {
    outline: none;
}
.home-eval-cta-card:hover .home-eval-cta-card__icon,
.home-eval-cta-card:focus-visible .home-eval-cta-card__icon {
    box-shadow: 0 0 38px rgba(229, 196, 134, 0.55);
    border-color: rgba(229, 196, 134, 0.9);
}

.home-eval-cta-card__icon {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(229, 196, 134, 0.18);
    border: 1.5px solid rgba(229, 196, 134, 0.6);
    color: #addaea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    box-shadow: 0 0 28px rgba(229, 196, 134, 0.3);
    z-index: 1;
}

.home-eval-cta-card__copy {
    flex: 1 1 auto;
    min-width: 0;
    z-index: 1;
}

.home-eval-cta-card__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #addaea;
    margin-bottom: 8px;
}

.home-eval-cta-card__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.18;
    color: #fff;
    margin: 0 0 8px;
    text-wrap: balance;
}

.home-eval-cta-card__sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
    max-width: 60ch;
}

.home-eval-cta-card__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #addaea 0%, #2e8da0 100%);
    color: #0b1a3a;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 26px;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(46, 141, 160, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 1;
    white-space: nowrap;
}
.home-eval-cta-card:hover .home-eval-cta-card__btn,
.home-eval-cta-card:focus-visible .home-eval-cta-card__btn {
    transform: translateX(3px);
    box-shadow: 0 12px 28px rgba(46, 141, 160, 0.5);
}

@media (max-width: 900px) {
    .home-eval-cta-section { padding: 36px 0 56px; }
    .home-eval-cta-card {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    .home-eval-cta-card__copy { text-align: center; }
    .home-eval-cta-card__title { font-size: 1.65rem; }
    .home-eval-cta-card__icon { width: 72px; height: 72px; font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .home-eval-cta-section { padding: 28px 0 48px; }
    .home-eval-cta-card__title { font-size: 1.35rem; }
    .home-eval-cta-card__sub { font-size: 0.92rem; }
    .home-eval-cta-card__btn { padding: 12px 22px; font-size: 0.92rem; }
    .home-eval-cta-card__eyebrow { font-size: 0.7rem; letter-spacing: 0.12em; }
}

@media (max-width: 1100px) {
    .nanaimo-properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media (max-width: 820px) {
    .nanaimo-properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .local-nanaimo-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .nanaimo-properties-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nanaimo-property-price {
        font-size: 1rem;
    }
}

/* Blog Section */
.blog-section {
    padding: 60px 0 36px;
    background: white;
}

/* Featured Blog Post */
.featured-blog-post {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.02) 0%, rgba(46, 141, 160, 0.02) 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 50px;
    margin-bottom: 50px;
    border: 1px solid rgba(46, 141, 160, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-section .container > .featured-blog-post:first-child {
    margin-top: 0;
}

.featured-blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.featured-blog-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 40px;
    align-items: center;
}

.featured-blog-thumbnail {
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.featured-blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-blog-post:hover .featured-blog-thumbnail img {
    transform: scale(1.05);
}

.featured-blog-thumbnail.no-image {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-blog-thumbnail.no-image i {
    font-size: 4rem;
    color: white;
    opacity: 0.5;
}

.featured-blog-text {
    flex: 1;
}

.featured-blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-blog-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.featured-blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.featured-blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-blog-meta i {
    color: var(--primary-color);
}

.featured-blog-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.featured-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 141, 160, 0.3);
}

.featured-blog-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 141, 160, 0.4);
    text-decoration: none;
    color: white;
}

.featured-blog-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.more-blogs-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.more-blogs-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .featured-blog-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px;
    }

    .featured-blog-thumbnail {
        width: 100%;
        height: 220px;
    }

    .featured-blog-title {
        font-size: 1.5rem;
    }

    .featured-blog-description {
        font-size: 1rem;
    }

    .featured-blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .featured-blog-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 10px 40px 10px;
    }
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    background: var(--background-light);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.blog-image.no-image,
.blog-image i {
    font-size: 3rem;
    color: var(--border-color);
    background: linear-gradient(135deg, var(--background-light) 0%, var(--border-color) 100%);
}

.blog-image.no-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-image.no-image i {
    background: none;
    color: var(--text-secondary);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.blog-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn:hover {
    color: var(--primary-dark);
}

.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.blog-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.no-blog-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-blog-posts i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--border-color);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 10px 40px 10px;
    }

    .blog-card {
        margin: 0 5px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .blog-excerpt {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .blog-date {
        font-size: 0.85rem;
    }

    .blog-author {
        font-size: 0.85rem;
    }

    .read-more-btn {
        font-size: 0.85rem;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .blog-card {
        margin: 0;
        border-radius: 8px;
    }

    .blog-image {
        height: 160px;
    }

    .blog-content {
        padding: 15px;
    }

    .blog-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .blog-excerpt {
        font-size: 0.9rem;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }

    .blog-meta {
        padding-top: 12px;
        gap: 8px;
    }
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: white;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 10px 30px 10px;
    }

    .newsletter-card {
        margin: 0 5px;
    }

    .newsletter-content {
        padding: 20px;
    }

    .newsletter-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .newsletter-description {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .newsletter-meta {
        font-size: 0.85rem;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .newsletter-card {
        margin: 0;
    }

    .newsletter-image {
        height: 160px;
    }

    .newsletter-content {
        padding: 15px;
    }

    .newsletter-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .newsletter-description {
        font-size: 0.9rem;
    }

    .newsletter-link {
        font-size: 0.85rem;
    }
}

.newsletter-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.newsletter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(44, 90, 160, 0.15);
    border-color: #2c5aa0;
    text-decoration: none;
    color: inherit;
}

.newsletter-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.newsletter-card:hover .newsletter-image img {
    transform: scale(1.05);
}

.newsletter-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2rem;
    color: white;
}

.newsletter-content {
    padding: 24px;
}

.newsletter-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #6c757d;
}

.newsletter-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.newsletter-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.newsletter-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 12px;
    line-height: 1.4;
}

.newsletter-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
}

.newsletter-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c5aa0;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.newsletter-link:hover {
    color: #1e3f73;
    text-decoration: none;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #4f86c4 0%, #a3c5e8 50%, #6ba3d6 100%);
    position: relative;
    overflow: hidden;
}

/* Condensed variant (homepage "How Much Is Your Home Worth?") */
.cta-section.cta-section-condensed {
    padding: 56px 0;
}

.cta-section.cta-section-condensed .cta-content {
    max-width: 720px;
}

.cta-section.cta-section-condensed .cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.cta-section.cta-section-condensed .cta-content p {
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.cta-section.cta-section-condensed .cta-buttons {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .cta-section.cta-section-condensed {
        padding: 44px 0;
    }

    .cta-section.cta-section-condensed .cta-content h2 {
        font-size: 1.7rem;
    }

    .cta-section.cta-section-condensed .cta-content p {
        font-size: 0.98rem;
        margin-bottom: 20px;
    }
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.cta-button {
    padding: 18px 35px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #4f86c4;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cta-button.secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-features .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    min-width: 140px;
    transition: all 0.3s ease;
}

.cta-features .feature-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.cta-features .feature-item i {
    font-size: 2rem;
    color: white;
    margin-bottom: 0;
}

.cta-features .feature-item span {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* Main content wrapper for sticky footer */
main {
    flex: 1;
}

/* Legal Content Styles */
.legal-content-section {
    padding: 80px 0;
    background: var(--background-light);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.last-updated {
    background: rgba(46, 141, 160, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
}

.last-updated p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.section-block {
    margin-bottom: 40px;
}

.section-block:last-child {
    margin-bottom: 0;
}

.section-block h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.section-block p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.section-block ul {
    margin: 20px 0;
    padding-left: 30px;
}

.section-block li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.contact-info {
    background: var(--background-light);
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.contact-info p {
    margin: 0;
    line-height: 1.8;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive design for legal content */
@media (max-width: 768px) {
    .legal-content {
        padding: 40px 30px;
    }

    .section-block h2 {
        font-size: 1.3rem;
    }
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 70px 0 24px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Modern footer: upper band = existing lighter blue; lower band = richer darker blue (MLS disclaimer, copyright, powered-by) */
.footer.footer-modern {
    --footer-lower-rhythm: clamp(20px, 3vw, 28px);
    padding: 0;
    background: #050b14;
}

.footer.footer-modern .footer-upper {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 70px 0 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(46, 141, 160, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(46, 141, 160, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #103d4f 0%, #162d6d 100%);
}

.footer.footer-modern .footer-lower {
    position: relative;
    isolation: isolate;
    /* Top padding = same as gap from disclaimer to divider (see .footer-divider) so the card sits in the dark band, not on the color seam */
    padding: var(--footer-lower-rhythm) 0 24px;
    background:
        radial-gradient(ellipse at 25% 0%, rgba(46, 141, 160, 0.07) 0%, transparent 50%),
        linear-gradient(180deg, #0f2144 0%, #050b14 55%, #040812 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Disclaimer card reads clearly on the deeper blue lower band */
.footer.footer-modern .footer-lower .footer-disclaimer {
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.12);
}

.footer.footer-modern .footer-lower .footer-disclaimer[open] {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(46, 141, 160, 0.35);
}

.footer.footer-modern .footer-upper .footer-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(46, 141, 160, 0) 6%,
        rgba(46, 141, 160, 0.85) 50%,
        rgba(46, 141, 160, 0) 94%,
        transparent 100%);
    z-index: 2;
}

.footer.footer-modern .footer-upper .footer-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 14px),
        repeating-linear-gradient(-45deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 14px);
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(180deg, black 0%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 80%, transparent 100%);
}

.footer.footer-modern .footer-upper .container,
.footer.footer-modern .footer-lower .container {
    position: relative;
    z-index: 1;
}

.footer.footer-modern .footer-top {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 44px);
    align-items: flex-start;
    justify-items: stretch;
    margin-bottom: 40px;
}

/* Each column uses the full grid track so gaps between tracks read evenly (brand had max-width before). */
.footer.footer-modern .footer-top > * {
    min-width: 0;
    width: 100%;
}

/* 4-up layout: match text-to-text spacing (grid gap is even, but copy width varies; split padding so each gutter is P+gap+P). */
@media (min-width: 1025px) {
    .footer.footer-modern .footer-top {
        --footer-col-pad: clamp(14px, 1.9vw, 24px);
    }

    .footer.footer-modern .footer-top > *:first-child {
        padding-left: 0;
        padding-right: var(--footer-col-pad);
    }

    .footer.footer-modern .footer-top > *:last-child {
        padding-left: var(--footer-col-pad);
        padding-right: 0;
    }

    .footer.footer-modern .footer-top > *:nth-child(2),
    .footer.footer-modern .footer-top > *:nth-child(3) {
        padding-left: var(--footer-col-pad);
        padding-right: var(--footer-col-pad);
    }
}

.footer.footer-modern .footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.footer.footer-modern .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
}

.footer.footer-modern .footer-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    letter-spacing: 0.01em;
}

.footer.footer-modern .footer-tagline {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}

.footer.footer-modern .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer.footer-modern .footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer.footer-modern .footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(46, 141, 160, 0.14);
    border: 1px solid rgba(46, 141, 160, 0.35);
    color: var(--primary-color);
    font-size: 0.82rem;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.footer.footer-modern .footer-contact-list li:hover .footer-contact-icon {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.footer.footer-modern .footer-contact-list a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer.footer-modern .footer-contact-list a:hover {
    color: var(--primary-color);
}

/* Column 4: RE/MAX logo, socials, sign up / sign in */
.footer.footer-modern .footer-col--aside {
    align-items: stretch;
}

.footer.footer-modern .footer-aside-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.footer.footer-modern .footer-col--aside .social-links.footer-social {
    margin-top: 0;
}

.footer.footer-modern .footer-auth {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.footer.footer-modern .footer-auth__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.footer.footer-modern .footer-auth__btn--signup {
    background: var(--primary-color);
    color: #fff;
    border-color: rgba(46, 141, 160, 0.6);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.footer.footer-modern .footer-auth__btn--signup:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff;
}

.footer.footer-modern .footer-auth__btn--signin {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer.footer-modern .footer-auth__btn--signin:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.footer.footer-modern .footer-logo-image {
    display: block;
    height: 96px;
    width: auto;
    max-width: 280px;
    margin: 0 auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.footer.footer-modern .footer-logo-image--professionals {
    height: auto;
    max-height: 100px;
    max-width: 100%;
}

.footer.footer-modern .social-links.footer-social {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
}

.footer.footer-modern .social-links.footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    font-size: 0.95rem;
    text-decoration: none;
}

.footer.footer-modern .social-links.footer-social a i {
    text-decoration: none;
    line-height: 1;
}

.footer.footer-modern .social-links.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer.footer-modern .footer-heading {
    margin: 0;
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer.footer-modern .footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.footer.footer-modern .footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer.footer-modern .footer-links-list a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease, padding-left 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer.footer-modern .footer-links-list a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.25s ease;
    flex-shrink: 0;
}

.footer.footer-modern .footer-links-list a:hover {
    color: white;
}

.footer.footer-modern .footer-links-list a:hover::before {
    width: 12px;
}

/* Signature Series strip (admin/includes/admin-footer.php) — below copyright + meta links */
.footer.footer-modern .footer-admin-signature-wrap {
    margin-top: clamp(20px, 3vw, 32px);
}

/* Main site only: flat strip — gold G left, “Powered by Agent Services” centered, Signature Series right; thin gold fade line on top */
.footer.footer-modern .footer-admin-signature-wrap .admin-footer-signature--public-site {
    position: relative;
    isolation: isolate;
    margin-top: 0;
    padding: 18px 0 10px;
    background: none !important;
    box-shadow: none !important;
    overflow: hidden;
}

.footer.footer-modern .footer-admin-signature-wrap .admin-footer-signature--public-site::before {
    content: none !important;
    display: none !important;
}

.footer.footer-modern .footer-admin-signature-wrap .admin-footer-signature--public-site::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #2e8da0 25%,
        #e5c48a 50%,
        #2e8da0 75%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.footer.footer-modern .footer-admin-signature-wrap .admin-footer-mark {
    width: 40px;
    height: 40px;
}

.footer.footer-modern .footer-admin-signature-wrap .admin-footer-inner--public-site {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px 24px;
}

.footer.footer-modern .footer-admin-signature-wrap .admin-footer-middle--public-site {
    text-align: center;
    min-width: 0;
}

/* Match .admin-footer-eyebrow (Signature Series) */
.footer.footer-modern .footer-admin-signature-wrap .admin-footer-middle--public-site p,
.footer.footer-modern .footer-admin-signature-wrap .admin-footer-middle--public-site p strong {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #2e8da0;
}

.footer.footer-modern .footer-admin-signature-wrap .admin-footer-right--public-site {
    text-align: right;
    min-width: 0;
}

.footer.footer-modern .footer-admin-signature-wrap .admin-footer-right--public-site .admin-footer-eyebrow {
    margin: 0;
}

@media (max-width: 760px) {
    .footer.footer-modern .footer-admin-signature-wrap .admin-footer-inner--public-site {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .footer.footer-modern .footer-admin-signature-wrap .admin-footer-middle--public-site,
    .footer.footer-modern .footer-admin-signature-wrap .admin-footer-right--public-site {
        text-align: center;
    }

    .footer.footer-modern .footer-admin-signature-wrap .admin-footer-signature--public-site {
        padding: 16px 0 12px !important;
    }
}

.footer.footer-modern .footer-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 20%,
        rgba(255, 255, 255, 0.18) 80%,
        transparent 100%);
    margin: var(--footer-lower-rhythm) 0 20px;
}

.footer.footer-modern .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
    border-top: none;
    flex-wrap: wrap;
}

.footer.footer-modern .footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.footer.footer-modern .footer-meta-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer.footer-modern .footer-meta-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.25s ease;
}

.footer.footer-modern .footer-meta-links a:hover {
    color: var(--primary-color);
}

.footer.footer-modern .footer-version {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

@media (max-width: 1024px) {
    .footer.footer-modern .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px;
    }

    .footer.footer-modern .footer-top > * {
        padding-left: 0;
        padding-right: 0;
    }

    .footer.footer-modern .footer-aside-inner {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .footer.footer-modern .footer-upper {
        padding-top: 54px;
    }

    .footer.footer-modern .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: left;
    }

    .footer.footer-modern .footer-col--aside {
        align-items: stretch;
    }

    .footer.footer-modern .footer-aside-inner {
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }

    .footer.footer-modern .footer-heading {
        text-align: left;
    }

    .footer.footer-modern .footer-col .footer-links-list {
        text-align: left;
    }

    .footer.footer-modern .footer-logo-image {
        max-height: 88px;
    }

    .footer.footer-modern .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .footer.footer-modern .footer-meta-links {
        gap: 14px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-image {
    height: 35px;
    width: auto;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.no-properties {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

/* Pagination Styles */
.pagination-info {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
    font-size: 1rem;
}

.pagination-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 3rem !important;
    flex-wrap: wrap !important;
    padding: 20px 0 !important;
}

.pagination-btn,
.page-number {
    padding: 12px 16px !important;
    border: 2px solid #2c5aa0 !important;
    background: white !important;
    color: #2c5aa0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    min-width: 45px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(44, 90, 160, 0.1) !important;
}

.pagination-btn:hover,
.page-number:hover {
    background: #2c5aa0 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(44, 90, 160, 0.2) !important;
}

.pagination-btn.active,
.page-number.active {
    background: #2c5aa0 !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 8px rgba(44, 90, 160, 0.3) !important;
}

.pagination-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: #f5f5f5 !important;
    color: #999 !important;
    border-color: #ddd !important;
    box-shadow: none !important;
}

.pagination-btn:disabled:hover {
    background: #f5f5f5 !important;
    color: #999 !important;
    transform: none !important;
    box-shadow: none !important;
}

.pagination-ellipsis {
    color: #666 !important;
    padding: 12px 8px !important;
    font-weight: 500 !important;
}

/* Additional pagination styles for Vancouver Island Real Estate page */
#pagination-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 40px 0 !important;
    flex-wrap: wrap !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 12px !important;
    border: 1px solid #dee2e6 !important;
}

#pagination-info {
    text-align: center !important;
    margin: 20px 0 !important;
    color: #6c757d !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

#pagination-info p {
    margin: 0 !important;
    padding: 10px 20px !important;
    background: white !important;
    border-radius: 20px !important;
    display: inline-block !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

@media (max-width: 768px) {
    .pagination-controls,
    #pagination-controls {
        gap: 5px !important;
        padding: 15px !important;
    }

    .pagination-btn,
    .page-number {
        padding: 10px 14px !important;
        font-size: 12px !important;
        min-width: 40px !important;
    }

    .pagination-ellipsis {
        padding: 10px 6px !important;
    }
}

/* Page Hero Styles */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Property Filters */
.property-filters {
    padding: 40px 0;
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.filter-controls {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: var(--primary-dark);
}

.load-more-container {
    text-align: center;
    padding: 40px 0;
}

.load-more-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Nanaimo Info */
.nanaimo-info {
    padding: 40px 0;
    background: var(--background-light);
}

.nanaimo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.nanaimo-text {
    flex: 1;
    min-width: 300px;
}

.nanaimo-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.nanaimo-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
}

.nanaimo-highlights {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.highlight-item span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .nanaimo-content {
        text-align: center;
        gap: 40px;
    }

    .nanaimo-highlights {
        justify-content: center;
        gap: 20px;
    }

    .nanaimo-text h2 {
        font-size: 2rem;
    }

    .nanaimo-text p {
        font-size: 1.1rem;
    }
}

/* Team Members */
.team-members {
    padding: 80px 0;
    background: white;
}

/* Mission Statement Section */
.mission-statement-section {
    padding: 100px 0;
    background: linear-gradient(135deg, 
        rgba(46, 141, 160, 0.05) 0%, 
        rgba(30, 58, 138, 0.08) 50%, 
        rgba(255, 193, 7, 0.06) 100%
    );
    position: relative;
    overflow: hidden;
}

.mission-statement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(46, 141, 160, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 58, 138, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.mission-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.mission-header {
    margin-bottom: 60px;
}

.mission-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.mission-tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tagline-item {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(46, 141, 160, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.tagline-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(46, 141, 160, 0.4);
}

.mission-description {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: left;
}

.mission-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.mission-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 141, 160, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .mission-statement-section {
        padding: 60px 0;
    }

    .mission-header h2 {
        font-size: 2rem;
    }

    .mission-tagline {
        flex-direction: column;
        align-items: center;
    }

    .tagline-item {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .mission-description {
        text-align: center;
    }

    .mission-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

/* Assistant CTA Section */
.assistant-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid var(--border-color);
}

.assistant-cta-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.assistant-image {
    position: relative;
}

.assistant-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.assistant-image:hover img {
    transform: translateY(-5px);
}

.assistant-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.assistant-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.assistant-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.assistant-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.assistant-features {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.assistant-features .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    min-width: 120px;
}

.assistant-features .feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.assistant-features .feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.assistant-contact .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 134, 196, 0.3);
}

.assistant-contact .cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 134, 196, 0.4);
    text-decoration: none;
}

@media (max-width: 768px) {
    .assistant-cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .assistant-image img {
        height: 300px;
    }

    .assistant-features {
        justify-content: center;
        gap: 24px;
    }
}

.team-members h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-member-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.agent-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--primary-color);
}

.agent-image i {
    font-size: 3rem;
    color: var(--primary-color);
}

.agent-info {
    text-align: center;
}

.agent-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.agent-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.agent-specialties {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-style: italic;
}

.agent-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-contact {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--primary-color);
    width: 16px;
}

.agent-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn, .view-profile-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.contact-btn {
    background: var(--primary-color);
    color: white;
}

.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.view-profile-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.view-profile-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.no-agents {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.no-agents i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--border-color);
}

.no-agents h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Team Member Cards */
.team-member-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    border: 1px solid rgba(46, 141, 160, 0.1);
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.member-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto 20px auto;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(46, 141, 160, 0.3);
    transition: all 0.3s ease;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.member-photo-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #103d4f 0%, #2e8da0 100%);
    color: #fff;
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: 0.04em;
}

.team-member-card:hover .member-photo {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(46, 141, 160, 0.4);
    border-color: var(--secondary-color);
}

.team-member-card:hover .member-photo img {
    transform: scale(1.1);
}

.member-info {
    text-align: center;
}

.member-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.member-title {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.member-contact {
    margin-bottom: 15px;
}

.member-contact p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.member-contact i {
    color: var(--primary-color);
    width: 16px;
}

.member-certifications,
.member-languages {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.member-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.member-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.error-message h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.error-message p {
    color: var(--text-secondary);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .agent-stats {
        gap: 30px;
    }

    .agent-actions {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn, .view-profile-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .member-photo {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }

    .team-member-card {
        padding: 25px 20px;
    }

    .member-info {
        text-align: center;
    }
}

/* Nanaimo Page Styles */
.nanaimo-overview-section {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 249, 250, 1) 100%
    );
    position: relative;
    overflow: hidden;
}

.nanaimo-overview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(46, 141, 160, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(30, 58, 138, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.nanaimo-overview-section .container {
    position: relative;
    z-index: 2;
}

.nanaimo-overview-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.nanaimo-overview-section .section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-style: italic;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.overview-description {
    margin-bottom: 40px;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 400;
    margin: 0;
}

.city-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    text-align: center;
    flex-direction: column;
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.stat-icon i {
    font-size: 1.2rem;
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.nanaimo-highlights {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.nanaimo-highlights .highlight-item {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 25px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nanaimo-highlights .highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.8;
}

.nanaimo-highlights .highlight-item:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.nanaimo-highlights .highlight-item:hover::before {
    opacity: 1;
    width: 6px;
}

.nanaimo-highlights .highlight-item i {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    box-shadow: 0 6px 20px rgba(46, 141, 160, 0.3);
    transition: transform 0.3s ease;
}

.nanaimo-highlights .highlight-item:hover i {
    transform: scale(1.1);
}

.highlight-content {
    flex: 1;
}

.nanaimo-highlights .highlight-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.nanaimo-highlights .highlight-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.overview-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-container-enhanced {
    position: relative;
    width: 100%;
    max-width: 900px;
}

.nanaimo-map {
    width: 100%;
    height: auto;
    min-height: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 4px solid white;
    object-fit: cover;
}

.nanaimo-map:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.map-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.map-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.map-badge i {
    font-size: 1rem;
}

/* Nanaimo Highlights Section */
.nanaimo-highlights-section {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.nanaimo-highlights-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(46, 141, 160, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(30, 58, 138, 0.08) 0%, transparent 60%);
    z-index: 1;
}

.nanaimo-highlights-section .container {
    position: relative;
    z-index: 2;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.highlight-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 141, 160, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.highlight-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1);
}

.highlight-icon i {
    font-size: 2rem;
    color: white;
}

.highlight-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.highlight-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .highlight-card {
        padding: 30px 25px;
    }

    .highlight-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .highlight-icon i {
        font-size: 1.7rem;
    }

    .highlight-card h3 {
        font-size: 1.3rem;
    }
}

/* Property Map Styles */
.map-controls-section {
    padding: 40px 0;
    background: var(--background-light);
}

.property-map-section {
    padding: 0 0 40px 0;
    background: white;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.property-map-section .container {
    max-width: none;
    width: 100%;
    padding: 0;
}

.map-with-properties-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin: 0;
    height: 70vh;
    min-height: 600px;
    width: 100vw;
    max-width: none;
}

.map-filters-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 20px;
    overflow-y: auto;
}

.map-container-wrapper {
    position: relative;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.properties-list-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.properties-list-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.properties-list-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.property-count-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.properties-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.property-list-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.property-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.property-list-item.highlighted {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(46, 141, 160, 0.2);
    background: rgba(46, 141, 160, 0.05);
}

.property-list-item.selected-red {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3) !important;
    background: rgba(220, 38, 38, 0.05) !important;
}

.property-list-content {
    padding: 15px;
}

.property-list-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.property-list-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.property-list-address {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.property-list-features {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.property-list-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-list-features i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.property-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.map-loading i {
    margin-right: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.map-stats {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 10px 15px;
    background: rgba(46, 141, 160, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(46, 141, 160, 0.2);
}

/* Map Popup Styles */
.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

.map-popup {
    width: 220px;
    font-family: 'Inter', sans-serif;
}

.popup-image img {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
}

.popup-info {
    padding: 15px;
}

.popup-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.popup-address {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.popup-features {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.popup-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.popup-features i {
    color: var(--primary-color);
}

.popup-details-btn {
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-details-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Property Modal Styles */
.property-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-property-card {
    display: flex;
    flex-direction: column;
}

.modal-property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.modal-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-listing-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: var(--just-listed-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-property-info {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.modal-property-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.modal-property-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-property-location,
.modal-property-area {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modal-property-location i,
.modal-property-area i {
    color: var(--primary-color);
}

.modal-property-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: var(--background-light);
    border-radius: 12px;
}

.modal-property-features .feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-property-features .feature-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.modal-property-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-property-actions .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-property-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.modal-property-actions .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.modal-property-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness for map */
@media (max-width: 768px) {
    .map-with-properties-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 300px 1fr;
        height: auto;
        min-height: 800px;
        gap: 15px;
        margin: 0;
        padding: 0 10px;
    }

    .map-filters-container {
        height: auto;
        max-height: none;
        padding: 15px;
    }

    .map-container-wrapper {
        height: 100%;
        min-height: 300px;
    }

    .properties-list-container {
        min-height: 300px;
    }

    .properties-list {
        max-height: 300px;
    }
}

@media (max-width: 1024px) {
    .map-with-properties-layout {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 15px;
    }
}

.map-filters-container h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-filters-container h3 i {
    color: var(--primary-color);
}

.map-filters-container .filter-group {
    margin-bottom: 20px;
}

.map-filters-container .filter-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.map-filters-container .filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.map-filters-container .filter-select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.map-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.map-filter-actions .search-button,
.map-filter-actions .clear-button {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.map-filter-actions .search-button {
    background: linear-gradient(135deg, #2c5aa0, #1e3f73);
    color: white;
}

.map-filter-actions .search-button:hover {
    background: linear-gradient(135deg, #1e3f73, #2c5aa0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.map-filter-actions .clear-button {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.map-filter-actions .clear-button:hover {
    background: linear-gradient(135deg, #495057, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.map-stats-container {
    margin-top: 20px;
    padding: 15px;
    background: rgba(46, 141, 160, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(46, 141, 160, 0.2);
    text-align: center;
}

.map-stats-container .map-stats {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

    .modal-content {
        width: 95%;
        margin: 1% auto;
        max-height: 98vh;
        border-radius: 12px;
    }

    .modal-property-actions {
        flex-direction: column;
    }

    .modal-property-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filters-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .map-popup {
        width: 180px;
    }
}

/* Neighborhoods Section */
.nanaimo-neighborhoods-section {
    padding: 80px 0;
    background: var(--background-light);
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.neighborhood-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.neighborhood-properties-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.neighborhood-properties-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.neighborhood-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.neighborhood-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.neighborhood-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.neighborhood-icon i {
    font-size: 1.5rem;
    color: white;
}

.neighborhood-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.neighborhood-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.neighborhood-schools {
    padding: 15px;
    background: var(--background-light);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--primary-color);
}

.neighborhood-schools strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Outdoor Activities Section */
.outdoor-activities-section {
    padding: 80px 0;
    background: white;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.activity-card {
    background: linear-gradient(135deg, 
        rgba(46, 141, 160, 0.05) 0%, 
        rgba(30, 58, 138, 0.08) 100%
    );
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 141, 160, 0.1);
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(46, 141, 160, 0.1) 0%, 
        rgba(30, 58, 138, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover::before {
    opacity: 1;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(46, 141, 160, 0.2);
}

.activity-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.activity-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.activity-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Responsive adjustments for Nanaimo page */
@media (max-width: 992px) {
    .overview-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .nanaimo-overview-section .section-header h2 {
        font-size: 2.5rem;
    }

    .city-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .overview-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .nanaimo-overview-section .section-header h2 {
        font-size: 2.2rem;
    }

    .city-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .stat-icon {
        margin-bottom: 0;
        margin-right: 12px;
    }

    .stat-content {
        align-items: flex-start;
    }

    .nanaimo-highlights {
        gap: 15px;
    }

    .nanaimo-highlights .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .nanaimo-highlights .highlight-item:hover {
        transform: translateY(-5px);
    }

    .highlight-content {
        text-align: center;
    }

    .map-overlay {
        top: 15px;
        right: 15px;
    }

    .map-badge {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .neighborhoods-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .neighborhood-card {
        padding: 25px;
    }

    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .activity-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .nanaimo-overview-section .section-header h2 {
        font-size: 2rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .nanaimo-highlights .highlight-item {
        padding: 15px;
    }

    .nanaimo-highlights .highlight-item i {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .city-stats {
        padding: 15px;
    }

    .map-overlay {
        position: static;
        margin-top: 15px;
        display: flex;
        justify-content: center;
    }

    .map-badge {
        position: relative;
        top: auto;
        right: auto;
    }
}

/* Shared content / feature / benefit card styles (used by team, nanaimo,
   consumer-register and the agent bio pages). */
.intro-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.feature-highlight {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: var(--background-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-highlight:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.feature-highlight i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.feature-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.video-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.contact-info-quick {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.1rem;
}

.quick-contact-item i {
    color: rgba(255,255,255,0.8);
}

/* Responsive styles for shared content / feature / benefit cards */
@media (max-width: 992px) {
    .intro-text h2 {
        font-size: 2.2rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .intro-text h2 {
        font-size: 2rem;
    }

    .feature-highlight {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-card {
        padding: 30px 25px;
    }

    .contact-info-quick {
        flex-direction: column;
        gap: 20px;
    }

    .video-wrapper {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .intro-text h2 {
        font-size: 1.8rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .feature-highlight {
        padding: 20px;
    }

    .benefit-card {
        padding: 25px 20px;
    }

    .benefit-icon {
        width: 70px;
        height: 70px;
    }

    .benefit-icon i {
        font-size: 1.7rem;
    }
}

/* Myriam Page Specific Styles */
.agent-bio-section {
    padding: 80px 0;
    background: white;
}

.bio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.bio-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.bio-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.agent-specialties {
    margin-top: 40px;
    padding: 30px;
    background: var(--background-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.agent-specialties h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.agent-specialties ul {
    list-style: none;
    padding: 0;
}

.agent-specialties li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.agent-specialties li i {
    color: var(--primary-color);
    font-size: 1rem;
}

.bio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.agent-stats-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.agent-stats-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
}

.agent-stats-card .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--background-light);
    border-radius: 8px;
}

.agent-stats-card .stat-item:last-child {
    margin-bottom: 0;
}

.agent-stats-card .stat-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.agent-stats-card .stat-item div {
    flex: 1;
}

.agent-stats-card .stat-item strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.agent-stats-card .stat-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.agent-service-section {
    padding: 80px 0;
    background: var(--background-light);
}

.service-content {
    margin-top: 40px;
}

.service-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.bilingual-message {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.spanish-message,
.english-translation {
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.spanish-message h4,
.english-translation h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.spanish-message {
    border-left: 4px solid #d97706;
}

.english-translation {
    border-left: 4px solid var(--primary-color);
}

.agent-gallery-section {
    padding: 80px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 25px;
}

.gallery-caption h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.gallery-caption p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.agent-story-section {
    padding: 80px 0;
    background: var(--background-light);
}

.story-content h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 60px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.story-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.story-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.story-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.story-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.agent-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.agent-cta-section .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.agent-cta-section .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.cta-button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: center;
    margin: 0 10px 20px 10px;
}

.cta-button.primary {
    background: white;
    color: var(--primary-color);
}

.cta-button.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-info-detailed {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.contact-method i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    width: 20px;
}

.contact-method div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-method strong {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-method a,
.contact-method span {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Responsive styles for Myriam's page */
@media (max-width: 992px) {
    .bio-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bilingual-message {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-detailed {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .bio-text h2 {
        font-size: 2.2rem;
    }

    .story-content h2 {
        font-size: 2rem;
    }

    .agent-cta-section .cta-content h2 {
        font-size: 2rem;
    }

    .agent-cta-section .cta-content p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        margin: 0 0 15px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .spanish-message,
    .english-translation {
        padding: 25px 20px;
    }
}

/* Why Choose Team */
.why-choose-team {
    padding: 80px 0;
    background: var(--background-light);
}

.why-choose-team h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.benefit-item {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Page Styles */
.office-info-section {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 249, 250, 1) 100%
    );
    position: relative;
    overflow: hidden;
}

.office-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(46, 141, 160, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(30, 58, 138, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.office-info-section .container {
    position: relative;
    z-index: 2;
}

.office-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    margin-top: 40px;
}

.office-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 141, 160, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.office-brand {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--background-light);
}

.office-brand h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.remax-brand-logo {
    height: 120px;
    width: auto;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
}

.remax-brand-logo:hover {
    opacity: 0.8;
}

.brand-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

.office-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-detail:hover {
    /* No hover effects */
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.contact-icon i {
    font-size: 1.2rem;
    color: white;
}

/* Modern Contact Grid Styles */
.modern-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.modern-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-radius: 16px;
    border: 1px solid rgba(46, 141, 160, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
    transition: all 0.3s ease;
}

.modern-contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
    border-color: var(--primary-color);
}

.modern-contact-item:hover::before {
    width: 6px;
    opacity: 1;
}

.contact-icon-modern {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    box-shadow: 0 8px 25px rgba(46, 141, 160, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.contact-icon-modern::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
}

.modern-contact-item:hover .contact-icon-modern {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(46, 141, 160, 0.4);
}

.modern-contact-item:hover .contact-icon-modern::after {
    opacity: 1;
    transform: scale(1.2);
}

.contact-icon-modern i {
    font-size: 1.4rem;
    color: white;
    z-index: 2;
    position: relative;
}

.contact-icon-modern.phone-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.contact-icon-modern.email-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.contact-content-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-value {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.address-line {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.phone-number:hover {
    color: #28a745;
    transform: scale(1.02);
}

.email-address {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-all;
}

.email-address:hover {
    color: #007bff;
    transform: translateX(2px);
}

.contact-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.3s ease;
    width: fit-content;
}

.contact-action:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
    text-decoration: none;
}

.contact-action i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.contact-action:hover i {
    transform: scale(1.1);
}

.contact-hours,
.contact-response {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 4px;
}

.contact-response {
    color: #28a745;
    font-weight: 500;
}

/* Property Map CTA Section */
.property-map-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, 
        rgba(44, 90, 160, 0.95) 0%, 
        rgba(30, 63, 115, 0.95) 100%
    ), url('attached_assets/nanaimomap_1754253977036.jpg') center center/cover no-repeat;
    position: relative;
    overflow: hidden;
    color: white;
}

.property-map-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.property-map-cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle 200px at 20% 30%, rgba(46, 141, 160, 0.15) 0%, transparent 50%),
        radial-gradient(circle 150px at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle 100px at 70% 80%, rgba(46, 141, 160, 0.12) 0%, transparent 50%),
        radial-gradient(circle 120px at 15% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    animation: geometricFloat 20s ease-in-out infinite;
    z-index: 1;
}

/* Geometric shapes animations */
@keyframes geometricFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        background: 
            radial-gradient(circle 200px at 20% 30%, rgba(46, 141, 160, 0.15) 0%, transparent 50%),
            radial-gradient(circle 150px at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
            radial-gradient(circle 100px at 70% 80%, rgba(46, 141, 160, 0.12) 0%, transparent 50%),
            radial-gradient(circle 120px at 15% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    }
    25% {
        transform: translate(20px, -15px) rotate(2deg);
        background: 
            radial-gradient(circle 180px at 25% 35%, rgba(46, 141, 160, 0.18) 0%, transparent 50%),
            radial-gradient(circle 130px at 75% 25%, rgba(255, 255, 255, 0.10) 0%, transparent 50%),
            radial-gradient(circle 110px at 65% 75%, rgba(46, 141, 160, 0.10) 0%, transparent 50%),
            radial-gradient(circle 140px at 20% 65%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    }
    50% {
        transform: translate(10px, 20px) rotate(-1deg);
        background: 
            radial-gradient(circle 220px at 30% 25%, rgba(46, 141, 160, 0.12) 0%, transparent 50%),
            radial-gradient(circle 160px at 70% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
            radial-gradient(circle 90px at 75% 85%, rgba(46, 141, 160, 0.15) 0%, transparent 50%),
            radial-gradient(circle 110px at 10% 75%, rgba(255, 255, 255, 0.09) 0%, transparent 50%);
    }
    75% {
        transform: translate(-15px, 10px) rotate(1deg);
        background: 
            radial-gradient(circle 190px at 15% 40%, rgba(46, 141, 160, 0.16) 0%, transparent 50%),
            radial-gradient(circle 140px at 85% 15%, rgba(255, 255, 255, 0.07) 0%, transparent 50%),
            radial-gradient(circle 105px at 60% 90%, rgba(46, 141, 160, 0.14) 0%, transparent 50%),
            radial-gradient(circle 125px at 25% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    }
}

.map-cta-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.map-cta-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, rgba(46, 141, 160, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 30% 70% 60% 40%;
    animation: floatShape1 15s ease-in-out infinite;
    z-index: -1;
}

.map-cta-content::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(46, 141, 160, 0.12));
    border-radius: 50% 20% 80% 30%;
    animation: floatShape2 18s ease-in-out infinite reverse;
    z-index: -1;
}

@keyframes floatShape1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 30% 70% 60% 40%;
    }
    33% {
        transform: translate(30px, -20px) rotate(120deg);
        border-radius: 60% 40% 30% 70%;
    }
    66% {
        transform: translate(-20px, 40px) rotate(240deg);
        border-radius: 40% 60% 70% 30%;
    }
}

@keyframes floatShape2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 50% 20% 80% 30%;
    }
    50% {
        transform: translate(-25px, -30px) rotate(180deg);
        border-radius: 20% 80% 30% 50%;
    }
}

.map-cta-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-cta-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
}

.map-cta-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.cta-feature:hover,
a.cta-feature:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateX(10px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.cta-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.cta-feature-arrow {
    margin-left: auto;
    color: var(--primary-color);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

a.cta-feature:hover .cta-feature-arrow,
a.cta-feature:focus-visible .cta-feature-arrow {
    opacity: 1;
    transform: translateX(0);
}

.cta-feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-feature span {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
}

.map-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    background: linear-gradient(135deg, var(--primary-color), #f4d03f);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(46, 141, 160, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.map-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.map-cta-button:hover::before {
    left: 100%;
}

.map-cta-button:hover {
    background: linear-gradient(135deg, #f4d03f, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(46, 141, 160, 0.4);
    text-decoration: none;
    color: var(--text-primary);
}

.map-cta-visual {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.map-cta-visual::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid rgba(46, 141, 160, 0.15);
    animation: triangleFloat1 12s ease-in-out infinite;
    z-index: 1;
}

.map-cta-visual::after {
    content: '';
    position: absolute;
    bottom: 30px;
    right: 40px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 35px solid rgba(255, 255, 255, 0.12);
    animation: triangleFloat2 14s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes triangleFloat1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(15px, 25px) rotate(180deg);
        opacity: 0.9;
    }
}

@keyframes triangleFloat2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, -15px) rotate(-180deg);
        opacity: 0.8;
    }
}

.map-overlay-pins {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('attached_assets/nanaimomap_1754253977036.jpg') center center/cover no-repeat;
    border-radius: 18px;
}

.map-pin {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pinPulse 2s ease-in-out infinite;
}

.map-pin i {
    font-size: 2rem;
    color: #dc2626;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.map-pin:hover i {
    transform: scale(1.2);
    color: #f59e0b;
}

.pin-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.pin-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: white;
}

.map-pin:hover .pin-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.pin-1 {
    top: 25%;
    left: 30%;
    animation-delay: 0s;
}

.pin-2 {
    top: 45%;
    left: 60%;
    animation-delay: 0.4s;
}

.pin-3 {
    top: 30%;
    left: 75%;
    animation-delay: 0.8s;
}

.pin-4 {
    top: 60%;
    left: 40%;
    animation-delay: 1.2s;
}

.pin-5 {
    top: 70%;
    left: 65%;
    animation-delay: 1.6s;
}

@keyframes pinPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive styles for Property Map CTA */
@media (max-width: 992px) {
    .map-cta-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .map-cta-text h2 {
        font-size: 2.4rem;
    }

    .map-cta-visual {
        height: 300px;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .property-map-cta-section {
        padding: 60px 0;
    }

    .map-cta-content {
        gap: 40px;
    }

    .map-cta-text h2 {
        font-size: 2rem;
    }

    .map-cta-text p {
        font-size: 1.1rem;
    }

    .cta-feature {
        padding: 12px 16px;
    }

    .cta-feature span {
        font-size: 1rem;
    }

    .map-cta-button {
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    .map-cta-visual {
        height: 250px;
    }

    .map-pin i {
        font-size: 1.5rem;
    }

    .pin-tooltip {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .map-cta-text h2 {
        font-size: 1.8rem;
    }

    .map-cta-features {
        gap: 15px;
        margin-bottom: 40px;
    }

    .cta-feature {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }

    .map-cta-visual {
        height: 220px;
    }
}

/* Responsive adjustments for modern contact */
@media (max-width: 768px) {
    .modern-contact-item {
        padding: 20px;
        gap: 15px;
    }

    .contact-icon-modern {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .contact-icon-modern i {
        font-size: 1.2rem;
    }

    .phone-number {
        font-size: 1.2rem;
    }

    .email-address {
        font-size: 1rem;
        word-break: break-word;
    }

    .address-line {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modern-contact-item {
        padding: 18px;
        gap: 12px;
    }

    .contact-icon-modern {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .contact-icon-modern i {
        font-size: 1.1rem;
    }

    .phone-number {
        font-size: 1.1rem;
    }

    .email-address {
        font-size: 0.95rem;
    }
}

.contact-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-info p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-dark);
}

.office-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.office-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    cursor: pointer;
}

.office-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 25px rgba(46, 141, 160, 0.3);
}

.office-btn.primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(46, 141, 160, 0.4);
    text-decoration: none;
    color: white;
}

.office-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.office-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.office-map {
    display: flex;
    align-items: stretch;
}

.map-container-enhanced {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
}

.map-container-enhanced iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-info-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info-card button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-info-card button:hover {
    background: var(--primary-dark);
}

/* Contact Form */
.contact-form-section {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 141, 160, 0.1);
}

.contact-form-container h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.quick-contact {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 141, 160, 0.1);
}

.quick-contact h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.quick-action-item {
    margin-bottom: 15px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--background-light);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    width: 100%;
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}

.quick-action-btn i {
    font-size: 1.1rem;
    width: 20px;
}

.quick-action-btn.call {
    border-left-color: #28a745;
}

.quick-action-btn.email {
    border-left-color: #007bff;
}

.quick-action-btn.directions {
    border-left-color: #fd7e14;
}

.alert-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.alert-btn:hover {
    background: var(--primary-color);
}

.follow-us {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 141, 160, 0.1);
}

.follow-us h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--background-light);
}

.social-link:last-child {
    border-bottom: none;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.2rem;
    width: 24px;
}

/* Contact CTA Section */
.contact-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.contact-cta-section .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-cta-section .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 60px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.contact-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-cta-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
}

.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    text-decoration: none;
    color: white;
}

.quick-action-btn i {
    font-size: 1.2rem;
    width: 20px;
}

.quick-action-btn.call {
    border-left: 4px solid #28a745;
}

.quick-action-btn.email {
    border-left: 4px solid #007bff;
}

.quick-action-btn.directions {
    border-left: 4px solid #fd7e14;
}

.social-links-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    text-decoration: none;
    color: white;
}

.social-link i {
    font-size: 1.2rem;
    width: 24px;
}

.social-link.facebook {
    border-left: 4px solid #3b5998;
}

.social-link.instagram {
    border-left: 4px solid #e4405f;
}

.social-link.linkedin {
    border-left: 4px solid #0077b5;
}

.social-link.google {
    border-left: 4px solid #db4437;
}

/* Responsive styles for contact page */
@media (max-width: 992px) {
    .office-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .office-actions {
        flex-direction: column;
        align-items: center;
    }

    .office-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Individual Agent Pages */
.agent-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 249, 250, 1) 100%
    );
    position: relative;
    overflow: hidden;
}

.agent-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(46, 141, 160, 0.08) 0%, transparent 50%),
        radial-gradient(circle at80% 80%, rgba(30, 58, 138, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.agent-hero .container {
    position: relative;
    z-index: 2;
}

.agent-hero-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.agent-photo {
    position: relative;
}

.agent-hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
}

.agent-intro h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agent-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.agent-contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.agent-contact-info .contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.agent-contact-info .contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.agent-contact-info .contact-item a:hover {
    color: var(--primary-color);
}

.agent-cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Agent Biography */
.agent-biography {
    padding: 80px 0;
    background: white;
}

.biography-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.biography-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.bio-paragraphs p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.biography-highlights {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.highlight-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 141, 160, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.highlight-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.highlight-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.highlight-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Agent Values */
.agent-values {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 1) 0%, 
        rgba(255, 255, 255, 1) 100%
    );
}

.agent-values h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.value-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 141, 160, 0.1);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.value-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.value-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Agent Contact CTA */
.agent-contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.agent-contact-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.agent-contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.agent-contact-cta .btn.primary {
    background: white;
    color: var(--primary-color);
}

.agent-contact-cta .btn.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.agent-contact-cta .btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.agent-contact-cta .btn.secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Agent Gallery Section */
.agent-gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.agent-gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 25px;
}

.gallery-caption h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.gallery-caption p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Agent Pages */
@media (max-width: 768px) {
    .agent-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .agent-hero-image {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .agent-intro h1 {
        font-size: 2.2rem;
    }

    .agent-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .biography-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .agent-contact-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-item {
        margin: 0 10px;
    }

    .gallery-image {
        height: 200px;
    }

    .agent-gallery h2 {
        font-size: 2rem;
    }
}

    .contact-actions-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .office-card {
        padding: 30px 25px;
    }

    .office-brand h3 {
        font-size: 1.8rem;
    }

    .contact-detail {
        padding: 15px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .contact-icon i {
        font-size: 1.1rem;
    }

    .map-container-enhanced {
        height: 300px;
        border-radius: 16px;
    }

    .contact-form-container {
        padding: 30px 25px;
    }

    .contact-form-container h2 {
        font-size: 2rem;
    }

    .quick-contact {
        padding: 25px 20px;
    }

    .follow-us {
        padding: 25px 20px;
    }

    .contact-cta-section .cta-content h2 {
        font-size: 2rem;
    }

    .contact-cta-section .cta-content p {
        font-size: 1.1rem;
    }

    .contact-cta-card {
        padding: 30px 25px;
    }

    .contact-actions-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: white;
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
}

.map-placeholder {
    background: var(--background-light);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.map-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46, 141, 160, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 141, 160, 0.5);
}

.scroll-to-top i {
    color: white;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }

    .footer-contact {
        text-align: center !important;
    }

    .footer-logo {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
    }

    .footer-right {
        text-align: center !important;
    }

    .footer-links {
        justify-content: center !important;
        align-items: center !important;
    }

    .social-links {
        justify-content: center !important;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* No Photo Placeholder Styles */
.property-image img[src="no-photo-placeholder.svg"],
.property-image img[src*="no-photo-placeholder"] {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    object-fit: contain !important;
}

.property-hero img[src="no-photo-placeholder.svg"],
.property-hero img[src*="no-photo-placeholder"] {
    background: #f8f9fa !important;
    object-fit: contain !important;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-image {
    height: 35px;
    width: auto;
}

.footer-logo-image {
    height: 80px;
    width: auto;
    max-width: 200px;
}

@media (max-width: 768px) {
    .footer-logo-image {
        height: 60px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .footer-logo-image {
        height: 50px;
        max-width: 120px;
    }
}

.about-logo {
    max-width: 200px;
    height: auto;
    width: 100%;
}

.property-image img,
.agent-image img,
.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Container responsive padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Typography */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        padding: 40px 12px 0;
    }
}

/* ============================================================
   Hero Tabs (Finding / Buying / Selling)
   ============================================================ */
.hero-tabs {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.hero-tab {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(11, 26, 58, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(46, 141, 160, 0.55);
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    padding: 14px 28px;
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
    margin-bottom: -3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.hero-tab i {
    color: var(--primary-color);
    font-size: 0.95em;
}

.hero-tab:hover {
    background: rgba(11, 26, 58, 0.72);
    border-color: rgba(46, 141, 160, 0.8);
    color: #fff;
    transform: translateY(-1px);
}

.hero-tab:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.hero-tab.active {
    background: rgba(255, 255, 255, 0.93);
    border-color: rgba(46, 141, 160, 0.95);
    color: var(--secondary-color);
    text-shadow: none;
    transform: translateY(0);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18);
}

.hero-tab.active i {
    color: #2e8da0;
}

/* Tab panels */
.hero-tab-panels {
    position: relative;
}
.hero-tab-panel {
    display: none;
}
.hero-tab-panel.active {
    display: block;
    animation: heroTabFadeIn 0.4s ease both;
}
@keyframes heroTabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Buying / Selling info card */
.hero-info-card {
    position: relative;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 40px 36px 36px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 222, 130, 0.35) inset;
    border: 3px solid rgba(212, 175, 55, 0.95);
    max-width: 1200px;
    margin: 0 auto;
    color: #1e3f73;
}

.hero-info-header {
    text-align: center;
    margin-bottom: 28px;
}
.hero-info-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1c6b7c;
    margin-bottom: 10px;
}
.hero-info-eyebrow i { color: #2e8da0; }

.hero-info-card h3 {
    font-size: 1.55rem;
    line-height: 1.25;
    margin: 0 0 10px;
    color: #1e3f73;
    font-weight: 700;
}

.hero-info-lead {
    margin: 0 auto;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 760px;
}

.hero-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.hero-info-item {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    padding: 18px 18px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hero-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 63, 115, 0.15);
    border-color: rgba(212, 175, 55, 0.85);
}

.hero-info-item > i {
    font-size: 1.4rem;
    color: #2e8da0;
    margin-top: 2px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.hero-info-item h4 {
    font-size: 1rem;
    margin: 0 0 4px;
    color: #1e3f73;
    font-weight: 600;
}

.hero-info-item p {
    margin: 0;
    font-size: 0.86rem;
    color: #4b5563;
    line-height: 1.45;
}
.hero-info-item p em {
    color: #1c6b7c;
    font-weight: 600;
    font-style: italic;
}

.hero-info-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(30, 63, 115, 0.18);
}

.hero-info-cta-row {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    color: #1e3f73;
    font-weight: 600;
    font-size: 0.95rem;
}
.hero-info-cta-row a {
    color: #1e3f73;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}
.hero-info-cta-row a i { color: #2e8da0; }
.hero-info-cta-row a:hover { color: #1c6b7c; }

.hero-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2e8da0 0%, #1c6b7c 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px rgba(46, 141, 160, 0.35);
}
.hero-info-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 10px 24px rgba(46, 141, 160, 0.45);
}

.hero-info-btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.hero-info-btn--ghost {
    background: #ffffff;
    color: #1e3f73;
    border: 1.5px solid #2e8da0;
    box-shadow: 0 4px 14px rgba(30, 63, 115, 0.08);
}
.hero-info-btn--ghost:hover {
    background: #eef6fa;
    color: #1c6b7c;
    border-color: #1c6b7c;
    filter: none;
    box-shadow: 0 8px 22px rgba(46, 141, 160, 0.35);
}

/* Hero Tabs responsive */
@media (max-width: 900px) {
    .hero-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-tab {
        padding: 12px 18px;
        font-size: 0.88rem;
    }
}

@media (max-width: 600px) {
    .hero-tabs {
        gap: 4px;
        padding: 0 4px;
    }
    .hero-tab {
        padding: 11px 12px;
        font-size: 0.82rem;
        flex: 1 1 0;
        justify-content: center;
        text-align: center;
        min-width: 0;
    }
    .hero-tab span {
        white-space: normal;
    }
    .hero-info-card {
        padding: 28px 18px 24px;
    }
    .hero-info-grid {
        grid-template-columns: 1fr;
    }
    .hero-info-cta {
        justify-content: center;
        text-align: center;
    }
    .hero-info-cta-row {
        justify-content: center;
        width: 100%;
    }
    .hero-info-btn {
        width: 100%;
        justify-content: center;
    }
    .hero-info-btn-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-info-btn-group .hero-info-btn {
        width: 100%;
    }
}

/* ============================================================
   Site-wide Login Tab (slide-down drawer under the navbar)
   ============================================================ */
.site-login-tab {
    position: fixed;
    top: 67px;          /* navbar height (70) - 3px overlap behind sticky nav */
    right: 24px;
    z-index: 9997;      /* below navbar (9998) so handle tucks behind it */
    pointer-events: none;
    text-align: right;
}

.site-login-tab__handle {
    pointer-events: auto;
    background: linear-gradient(135deg, #2e8da0 0%, #1c6b7c 100%);
    color: #fff;
    border: none;
    padding: 9px 18px 9px 16px;
    border-radius: 0 0 12px 12px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 6px 18px rgba(46, 141, 160, 0.4);
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
}
.site-login-tab__handle:hover {
    filter: brightness(1.08);
    transform: translateY(1px);
    box-shadow: 0 8px 22px rgba(46, 141, 160, 0.5);
}
.site-login-tab__handle:focus-visible {
    outline: 2px solid #ffd87a;
    outline-offset: 2px;
}

.site-login-tab__chevron {
    font-size: 0.72em;
    transition: transform 0.3s ease;
}
.site-login-tab[data-state="open"] .site-login-tab__chevron {
    transform: rotate(180deg);
}

/* Drawer panel */
.site-login-tab__panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 360px;
    max-width: calc(100vw - 48px);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.site-login-tab[data-state="open"] .site-login-tab__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.site-login-tab__inner {
    background: #fff;
    border: 2px solid rgba(212, 175, 55, 0.6);
    border-radius: 14px;
    padding: 26px 26px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 222, 130, 0.4) inset;
    text-align: left;
}

.site-login-tab__header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3f73;
    margin: 0 0 4px;
    line-height: 1.2;
}
.site-login-tab__header p {
    color: #6b7280;
    font-size: 0.86rem;
    margin: 0 0 18px;
    line-height: 1.4;
}

.site-login-field {
    margin-bottom: 12px;
}
.site-login-field label {
    display: block;
    font-size: 0.76rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.site-login-field__input-wrap {
    position: relative;
}
.site-login-field__input-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.85rem;
    pointer-events: none;
}
.site-login-field input[type="email"],
.site-login-field input[type="password"],
.site-login-field input[type="text"] {
    width: 100%;
    padding: 10px 38px 10px 36px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #111827;
    background: #fafbfd;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.site-login-field input::placeholder { color: #b1b7c2; }
.site-login-field input:focus {
    outline: none;
    border-color: #2e8da0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 141, 160, 0.15);
}
.site-login-field__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1;
}
.site-login-field__toggle:hover {
    color: #1e3f73;
    background: #f3f4f6;
}

.site-login-tab__actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin: 8px 0 16px;
    color: #4b5563;
    flex-wrap: wrap;
    gap: 10px;
}
.site-login-tab__remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
.site-login-tab__remember input { accent-color: #2e8da0; }
.site-login-tab__forgot {
    color: #2e8da0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.site-login-tab__forgot:hover {
    color: #1c6b7c;
    text-decoration: underline;
}

.site-login-tab__submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2e8da0 0%, #1c6b7c 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(46, 141, 160, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.01em;
}
.site-login-tab__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.site-login-tab__submit:not(:disabled):hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(46, 141, 160, 0.45);
}

.site-login-tab__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #9ca3af;
    font-size: 0.76rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.site-login-tab__divider::before,
.site-login-tab__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.site-login-tab__create {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px;
    border: 1.5px solid #1e3f73;
    color: #1e3f73;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
    font-family: inherit;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}
.site-login-tab__create:hover {
    background: #1e3f73;
    color: #fff;
    transform: translateY(-1px);
}

.site-login-tab__note {
    margin: 14px 0 0;
    text-align: center;
    color: #9ca3af;
    font-size: 0.74rem;
    font-style: italic;
}

.site-login-tab__logged {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-login-tab__email {
    font-size: 0.85rem;
    color: #4b5563;
    word-break: break-all;
    margin: 0;
}

.site-login-tab__dashboard,
.site-login-tab__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
    font-family: inherit;
    transition: filter 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.site-login-tab__dashboard {
    background: linear-gradient(135deg, #2e8da0 0%, #1c6b7c 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(46, 141, 160, 0.35);
}

.site-login-tab__dashboard:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #fff;
}

.site-login-tab__logout {
    border: 1.5px solid #e5e7eb;
    color: #374151;
    background: #fff;
}

.site-login-tab__logout:hover {
    background: #f9fafb;
    color: #111827;
}

.site-login-tab__feedmsg {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin: 0 0 12px;
}

.site-login-tab__feedmsg--err {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.site-login-tab__forgot--soon {
    color: #9ca3af;
    cursor: default;
    font-size: 0.78rem;
}

.site-login-tab__remember--placeholder {
    visibility: hidden;
}

.sp-consumer-dash {
    flex: 1;
}

.sp-consumer-register {
    flex: 1;
}

.sp-consumer-dash__hero,
.sp-consumer-register__hero {
    padding: 3rem 0;
}

.sp-consumer-dash__section {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.sp-consumer-dash__section--settings {
    border-bottom: none;
    padding-bottom: 4rem;
}

.sp-consumer-dash__section--tabs {
    padding-top: 1.75rem;
    border-bottom: none;
    padding-bottom: 3rem;
}

.sp-consumer-dash__tabrow {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 0;
}

.sp-consumer-dash__tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    flex: 1;
    min-width: min(100%, 280px);
    margin-bottom: 0;
}

.sp-consumer-dash__tab {
    appearance: none;
    margin: 0;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: color 0.15s ease, background 0.15s ease;
}

.sp-consumer-dash__tab:hover {
    color: #1e3f73;
    background: rgba(30, 63, 115, 0.06);
}

.sp-consumer-dash__tab[aria-selected="true"] {
    color: #1e3f73;
    border-bottom-color: #2e8da0;
    background: rgba(46, 141, 160, 0.1);
}

.sp-consumer-dash__tab:focus-visible {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

.sp-consumer-dash__logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 10px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.sp-consumer-dash__logout:hover {
    color: #1e3f73;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.sp-consumer-dash__logout:focus-visible {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

.sp-consumer-dash__tabpanel {
    padding-top: 1.75rem;
}

.sp-consumer-dash__tabpanel[hidden] {
    display: none;
}

.sp-consumer-dash__h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: #1e3f73;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-consumer-dash__subsection {
    margin-bottom: 2rem;
}

.sp-consumer-dash__subsection:last-child {
    margin-bottom: 0;
}

.sp-consumer-dash__h2 {
    font-size: 1.35rem;
    margin: 0 0 1.25rem;
    color: #1e3f73;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-consumer-dash__empty {
    color: #6b7280;
    margin-bottom: 1rem;
}

.btn-primary-link {
    display: inline-flex;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2e8da0 0%, #1c6b7c 100%);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    align-items: center;
}

.btn-primary-link:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

.sp-consumer-dash__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.sp-consumer-dash__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 30, 60, 0.08);
    display: flex;
    flex-direction: column;
}

.sp-consumer-dash__thumb-wrap {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.sp-consumer-dash__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-consumer-dash__card-body {
    padding: 1rem 1.1rem 1.15rem;
    flex: 1;
}

.sp-consumer-dash__card-title {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
}

.sp-consumer-dash__card-title a {
    color: #1e3f73;
    text-decoration: none;
}

.sp-consumer-dash__card-title a:hover {
    text-decoration: underline;
}

.sp-consumer-dash__card-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.sp-consumer-dash__card-bed {
    font-size: 0.85rem;
    color: #4b5563;
    margin: 0.5rem 0 0;
}

.sp-consumer-dash__card--muted .sp-consumer-dash__card-body {
    padding: 1.25rem;
}

.sp-consumer-dash__muted {
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.sp-consumer-dash__id {
    font-size: 0.8rem;
    color: #9ca3af;
}

.sp-consumer-dash__card-link {
    padding: 10px 14px;
    text-align: center;
    background: #f9fafb;
    color: #1e3f73;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
}

.sp-consumer-dash__card-link:hover {
    background: #f3f4f6;
}

.sp-consumer-dash__remove-fav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: #991b1b;
    cursor: pointer;
    font-family: inherit;
}

.sp-consumer-dash__remove-fav:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #fecaca;
}

.sp-consumer-dash__remove-fav:disabled {
    opacity: 0.55;
    cursor: wait;
}

.sp-consumer-dash__card--muted .sp-consumer-dash__remove-fav {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.sp-consumer-dash__form {
    max-width: 420px;
}

.sp-consumer-dash__field {
    margin-bottom: 1rem;
}

.sp-consumer-dash__field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #374151;
}

.sp-consumer-dash__field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.sp-consumer-dash__submit {
    padding: 12px 22px;
    background: linear-gradient(135deg, #1e3f73 0%, #142a52 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.sp-consumer-dash__submit:hover {
    filter: brightness(1.06);
}

.sp-consumer-dash__msg {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.sp-consumer-dash__msg--ok {
    color: #15803d;
}

.sp-consumer-dash__msg--err {
    color: #b91c1c;
}

.sp-consumer-dash__eval-wrap {
    margin-bottom: 1.5rem;
}

.sp-consumer-dash__eval-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-consumer-dash__eval-item {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
}

.sp-consumer-dash__eval-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    justify-content: space-between;
}

.sp-consumer-dash__eval-range {
    font-weight: 600;
    color: #1e3f73;
    font-size: 0.95rem;
}

.sp-consumer-dash__eval-meta {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.sp-consumer-dash__eval-quality {
    text-transform: capitalize;
}

.sp-consumer-dash__req-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-consumer-dash__req-item {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
}

.sp-consumer-dash__req-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
}

.sp-consumer-dash__req-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
}

.sp-consumer-dash__req-badge--accurate {
    background: #dbeafe;
    color: #1e40af;
}

.sp-consumer-dash__req-badge--showing {
    background: #fef3c7;
    color: #92400e;
}

.sp-consumer-dash__req-time {
    font-size: 0.85rem;
    color: #6b7280;
}

.sp-consumer-dash__req-summary {
    margin: 10px 0 0;
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.45;
}

.sp-consumer-dash__req-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e3f73;
    text-decoration: none;
}

.sp-consumer-dash__req-link:hover {
    text-decoration: underline;
}

.sp-consumer-dash__view-wrap {
    overflow-x: auto;
    margin-top: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.sp-consumer-dash__view-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.sp-consumer-dash__view-table th,
.sp-consumer-dash__view-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.sp-consumer-dash__view-table th {
    font-weight: 600;
    color: #475569;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8fafc;
}

.sp-consumer-dash__view-prop {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.sp-consumer-dash__view-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}

.sp-consumer-dash__view-thumb--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.1rem;
}

.sp-consumer-dash__view-addr {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

.sp-consumer-dash__view-meta {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.sp-consumer-dash__view-count {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #5b21b6;
    background: #ede9fe;
    border: 1px solid #ddd6fe;
}

.sp-consumer-dash__view-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.sp-consumer-dash__view-kind {
    font-size: 0.88rem;
    color: #334155;
}

.sp-consumer-dash__view-time {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
}

.sp-consumer-dash__view-actions {
    white-space: nowrap;
}

.sp-consumer-dash__view-link {
    display: inline-block;
    margin-right: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e3f73;
    text-decoration: none;
}

.sp-consumer-dash__view-link:hover {
    text-decoration: underline;
}

.sp-consumer-dash__pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.sp-consumer-dash__pager-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: #1e3f73;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.sp-consumer-dash__pager-btn:hover {
    background: #e2e8f0;
}

.sp-consumer-dash__pager-btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.sp-consumer-dash__pager-meta {
    font-size: 0.86rem;
    color: #64748b;
}

.sp-dash-vi-summary {
    margin: 0 0 1rem;
    padding: 0;
}

.sp-dash-vi-summary__row {
    display: grid;
    grid-template-columns: minmax(110px, 160px) 1fr;
    gap: 4px 18px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.sp-dash-vi-summary__row:last-child {
    border-bottom: none;
}

.sp-dash-vi-summary__row dt {
    margin: 0;
    font-weight: 600;
    color: #475569;
}

.sp-dash-vi-summary__row dd {
    margin: 0;
    color: #1e293b;
}

.sp-dash-vi-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.sp-dash-vi-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fafafa;
}

.sp-dash-vi-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
}

.sp-dash-vi-item__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.sp-dash-vi-item__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.sp-dash-vi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    margin: 0;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.15s ease;
}

.sp-dash-vi-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 63, 115, 0.35);
}

.sp-dash-vi-btn__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    opacity: 0.92;
}

.sp-dash-vi-btn--primary {
    background: linear-gradient(135deg, #1e3f73 0%, #142a52 100%);
    color: #fff;
    border-color: rgba(15, 30, 55, 0.25);
    box-shadow: 0 2px 8px rgba(30, 63, 115, 0.22);
}

.sp-dash-vi-btn--primary:hover {
    filter: brightness(1.07);
    box-shadow: 0 4px 14px rgba(30, 63, 115, 0.28);
    transform: translateY(-1px);
}

.sp-dash-vi-btn--ghost {
    background: #fff;
    color: #334155;
    border-color: #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sp-dash-vi-btn--ghost:hover {
    border-color: #c7d2fe;
    color: #1e3f73;
    background: linear-gradient(180deg, #fafbff 0%, #f1f5f9 100%);
    box-shadow: 0 2px 10px rgba(30, 63, 115, 0.08);
}

.sp-dash-vi-btn--danger {
    background: #fff;
    color: #be123c;
    border-color: #fecdd3;
}

.sp-dash-vi-btn--danger:hover {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #fda4af;
    color: #9f1239;
    box-shadow: 0 2px 10px rgba(190, 18, 60, 0.12);
}

.sp-dash-vi-btn--danger:focus-visible {
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.35);
}

@media (max-width: 520px) {
    .sp-dash-vi-item__actions {
        width: 100%;
        justify-content: stretch;
    }

    .sp-dash-vi-btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* Consumer dashboard: in-page confirm dialog (replaces window.confirm) */
.sp-dash-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.sp-dash-modal[hidden] {
    display: none !important;
}

.sp-dash-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.sp-dash-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 1.35rem 1.4rem 1.25rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(15, 30, 60, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.sp-dash-modal__title {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.sp-dash-modal__desc {
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #475569;
}

.sp-dash-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.sp-dash-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1.1rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sp-dash-modal__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.sp-dash-modal__btn--secondary {
    color: #334155;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.sp-dash-modal__btn--secondary:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.sp-dash-modal__btn--danger-solid {
    color: #fff;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border-color: #be123c;
    box-shadow: 0 2px 10px rgba(190, 18, 60, 0.25);
}

.sp-dash-modal__btn--danger-solid:hover:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(190, 18, 60, 0.32);
}

.sp-dash-modal__btn--primary-solid {
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.22);
}

.sp-dash-modal__btn--primary-solid:hover:not(:disabled) {
    filter: brightness(1.05);
}

.sp-dash-modal__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.45);
}

.sp-dash-modal__btn--danger-solid:focus-visible {
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.45);
}

.sp-dash-vi-item__sum {
    margin: 8px 0 0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.sp-consumer-dash__vi-filters {
    margin-top: 0.35rem;
}

.sp-consumer-dash__vi-card-inner {
    margin: 0;
    padding: 1.15rem 1.25rem;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 30, 60, 0.06);
}

.sp-consumer-dash__vi-filters .vi-filter-row {
    display: grid;
    gap: 12px;
    align-items: end;
}

.sp-consumer-dash__vi-filters .vi-filter-row-search {
    grid-template-columns: 1fr;
}

.sp-consumer-dash__vi-filters .vi-filter-row-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sp-consumer-dash__vi-filters .vi-filter-row-bottom--core {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sp-consumer-dash__vi-filters .vi-filter-row-dash-only {
    grid-template-columns: 1fr;
    margin-top: 6px;
}

.sp-dash-vi-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
}

.sp-consumer-dash__submit--muted {
    background: linear-gradient(135deg, #f1f5f9 0%, #e8eef5 100%) !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.sp-consumer-dash__submit--muted:hover {
    filter: brightness(1.02);
}

@media (max-width: 992px) {
    .sp-consumer-dash__vi-filters .vi-filter-row-4 {
        grid-template-columns: 1fr 1fr;
    }

    .sp-consumer-dash__vi-filters .vi-filter-row-bottom--core {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .sp-consumer-dash__vi-filters .vi-filter-row-4,
    .sp-consumer-dash__vi-filters .vi-filter-row-bottom--core {
        grid-template-columns: 1fr;
    }

    .sp-dash-vi-summary__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .sp-consumer-dash__view-table th:nth-child(4),
    .sp-consumer-dash__view-table td:nth-child(4) {
        white-space: normal;
    }

    .sp-consumer-dash__view-table {
        font-size: 0.84rem;
    }
}

.sp-consumer-dash__accurate-banner {
    margin-bottom: 1.75rem;
    padding: 1px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e3f73 0%, #2c5aa0 50%, #c9a227 100%);
}

.sp-consumer-dash__accurate-banner-inner {
    padding: 1.25rem 1.35rem;
    border-radius: 13px;
    background: #fff;
    margin: 1px;
}

.sp-consumer-dash__accurate-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-consumer-dash__accurate-banner-inner p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #475569;
}

.sp-consumer-dash__accurate-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #1e3f73 0%, #142a52 100%);
    border: none;
    font: inherit;
    cursor: pointer;
    transition: filter 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

a.sp-consumer-dash__accurate-cta:hover {
    filter: brightness(1.07);
}

button.sp-consumer-dash__accurate-cta:hover:not(:disabled):not(.is-success) {
    filter: brightness(1.07);
}

.sp-consumer-dash__accurate-cta.is-busy {
    opacity: 0.9;
    pointer-events: none;
}

.sp-consumer-dash__accurate-cta.is-success {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    cursor: default;
    box-shadow: 0 4px 16px rgba(22, 101, 52, 0.25);
}

.sp-consumer-dash__accurate-cta:disabled {
    cursor: default;
}

.sp-consumer-dash__accurate-sub {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #64748b;
}

.sp-consumer-dash__accurate-pick-wrap {
    margin: 0 0 1rem;
}

.sp-consumer-dash__accurate-pick-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.sp-consumer-dash__accurate-pick {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font: inherit;
    font-size: 0.92rem;
    color: #1e293b;
}

.sp-consumer-dash__accurate-pick:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
}

.sp-consumer-dash__accurate-pick-help {
    margin: 8px 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}

.sp-consumer-dash__accurate-feedback {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.sp-consumer-dash__accurate-feedback--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.sp-consumer-dash__accurate-feedback--info {
    background: #eff6ff;
    color: #103d4f;
    border: 1px solid #bfdbfe;
}

.sp-consumer-dash__accurate-note {
    margin-bottom: 1.25rem;
}

.sp-consumer-dash__danger-zone {
    margin-top: 0.25rem;
    padding: 1.25rem 1.35rem;
    border-radius: 12px;
    border: 1px dashed #fecaca;
    background: linear-gradient(145deg, #fffafa 0%, #fef2f2 55%, #fff 100%);
    max-width: 520px;
    box-shadow: 0 4px 18px rgba(185, 28, 28, 0.06);
}

.sp-consumer-dash__danger-zone h4 {
    margin: 0 0 0.65rem;
    color: #991b1b;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-consumer-dash__danger-zone p {
    margin: 0 0 0.85rem;
    font-size: 0.94rem;
    color: #57534e;
    line-height: 1.55;
}

.sp-consumer-dash__danger-zone a {
    color: #2c5aa0;
    font-weight: 600;
}

.sp-consumer-dash__submit--danger {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
}

.sp-consumer-dash__submit--danger:hover:not(:disabled) {
    filter: brightness(1.06);
}

.sp-consumer-dash__submit--danger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.sp-account-closed-flash {
    position: relative;
    max-width: 920px;
    margin: 16px auto 0;
    padding: 14px 42px 14px 18px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    color: #14532d;
    box-shadow: 0 6px 20px rgba(20, 83, 45, 0.08);
    font-size: 0.95rem;
    line-height: 1.5;
}

.sp-account-closed-flash p {
    margin: 0;
}

.sp-account-closed-flash a {
    color: #1e3f73;
    font-weight: 600;
}

.sp-account-closed-flash__dismiss {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #166534;
    padding: 4px 8px;
    border-radius: 6px;
}

.sp-account-closed-flash__dismiss:hover {
    background: rgba(22, 101, 52, 0.12);
}

.sp-consumer-register__wrap {
    padding: 2.5rem 0 4rem;
}

.sp-consumer-register__split {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.sp-consumer-register__pitch {
    padding: clamp(1.75rem, 3vw, 2.35rem) clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(165deg, #f0f5fc 0%, #f8fafc 42%, #ffffff 100%);
    box-shadow: 0 4px 24px rgba(30, 63, 115, 0.06);
}

.sp-consumer-register__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2c5aa0;
}

.sp-consumer-register__pitch-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 2.5vw, 1.95rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sp-consumer-register__lead {
    margin: 0 0 1.5rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #475569;
}

.sp-consumer-register__benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.sp-consumer-register__benefit {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sp-consumer-register__benefit-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e8effa 0%, #dbeafe 100%);
    color: #1e3f73;
    font-size: 1.05rem;
}

.sp-consumer-register__benefit-h {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
}

.sp-consumer-register__benefit-t {
    display: block;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #64748b;
}

.sp-consumer-register__trust {
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.45;
}

.sp-consumer-register__trust i {
    margin-right: 6px;
    color: #2c5aa0;
}

.sp-consumer-register__form-col {
    display: flex;
    justify-content: center;
}

.sp-consumer-register__card {
    width: 100%;
    max-width: 440px;
    margin: 0;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 30, 60, 0.1);
}

.sp-consumer-register__form-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.sp-consumer-register__form-sub {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.45;
}

.sp-consumer-register__form.sp-consumer-dash__form {
    max-width: none;
}

.sp-consumer-register__optional {
    font-weight: 400;
    color: #6b7280;
}

.sp-consumer-register__foot {
    margin-top: 1.25rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.92rem;
}

.sp-consumer-register__foot a {
    color: #1e3f73;
    font-weight: 600;
}

@media (max-width: 960px) {
    .sp-consumer-register__split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sp-consumer-register__form-col {
        justify-content: stretch;
    }

    .sp-consumer-register__card {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .site-login-tab {
        right: 12px;
        top: 67px;
        z-index: 10020; /* above mobile drawer (10000) when Sign in opens the panel */
    }
    .site-login-tab__handle {
        padding: 8px 14px 8px 13px;
        font-size: 0.76rem;
    }
    .site-login-tab__panel {
        width: min(320px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }
}
@media (max-width: 380px) {
    .site-login-tab__panel {
        width: 290px;
    }
    .site-login-tab__inner {
        padding: 22px 20px;
    }
}

/* ============================================================
   MOBILE FRIENDLINESS — Site-wide cleanup
   - Prevent horizontal overflow
   - Compact hero on home page
   - Hide elements that don't fit on small screens
   ============================================================ */

/* Prevent horizontal bleed from any rogue wide element. We use `overflow-x: clip`
   (not `hidden`) so a scroll container is NOT established on <html>/<body> —
   that's important because a scroll container on an ancestor breaks the
   `position: sticky` navbar. */
html, body {
    overflow-x: clip;
    max-width: 100%;
}

/* Login tab must stay in the DOM on mobile: mega menu “Sign in” delegates to
   #siteLoginTab .site-login-tab__handle — hiding the tab broke that flow. */

/* ---------- Home Hero (index.php) ---------- */
@media (max-width: 768px) {
    .hero-real-estate {
        height: auto;
        min-height: 0;
        padding: 90px 0 50px;
        align-items: stretch;
    }
    .hero-content-full {
        padding: 0 14px;
    }
    .hero-title {
        font-size: 2.1rem;
        line-height: 1.15;
        margin-bottom: 28px;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 26px;
        line-height: 1.4;
    }

    /* Search filters: 2-col on the bottom row instead of 1-col, so the form
       doesn't become an 8-row tower. Top row stays single-col (long names). */
    .hero-filters-row-top {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 0;
    }
    .hero-filters-row-bottom {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .filters-grid {
        gap: 10px;
    }
    .filter-group label {
        font-size: 0.72rem;
    }
    .filter-select {
        padding: 9px 10px;
        font-size: 14px;
    }
    /* Search/Clear buttons span full width of their grid cell on mobile */
    .search-button-hero,
    .clear-button-hero {
        width: 100% !important;
        min-width: 0 !important;
        height: 44px;
    }
    .hero-search-container .search-filters-card {
        padding: 18px 14px !important;
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }
    .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 20px;
    }
    .hero-content-full {
        padding: 0 8px;
    }
    .hero-search-container .search-filters-card {
        padding: 16px 12px !important;
        margin: 0 4px;
    }
}

/* ---------- Home Hero Tabs at very small widths ---------- */
@media (max-width: 420px) {
    .hero-tab {
        padding: 10px 6px;
        font-size: 0.72rem;
        gap: 6px;
    }
    .hero-tab i { font-size: 0.85em; }
    /* Stack icon above text so the label stays on one short line */
    .hero-tab {
        flex-direction: column;
        text-align: center;
        line-height: 1.05;
    }
    .hero-tab span {
        display: block;
        font-size: 0.7rem;
    }
    .hero-info-card {
        padding: 22px 14px 18px;
    }
}

/* ---------- Section padding cleanup on mobile ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* ============================================================
   PROPERTY-DETAILS.PHP MOBILE OVERRIDES
   The hero section uses inline styles that we override with
   !important so the page is usable at phone widths.
   ============================================================ */
@media (max-width: 768px) {
    /* Shorter, less imposing hero */
    .property-hero {
        height: 360px !important;
        min-height: 360px !important;
        margin-bottom: 1rem !important;
        border-radius: 10px !important;
    }
    .property-hero h1 {
        font-size: 1.6rem !important;
        margin-bottom: 0.4rem !important;
    }
    .property-hero .property-price {
        font-size: 1.7rem !important;
        margin-bottom: 0.4rem !important;
    }
    .property-hero .property-address {
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
    }
    .property-hero-content {
        padding: 0 1rem !important;
    }
    .property-hero .breadcrumb {
        font-size: 0.78rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Hero overlays: smaller, stacked, never overlap the content */
    .photo-count {
        top: 0.5rem !important;
        right: 0.5rem !important;
        padding: 0.35rem 0.65rem !important;
        font-size: 0.75rem !important;
    }
    .hero-days-on-market {
        top: 0.5rem !important;
        left: 0.5rem !important;
        padding: 0.35rem 0.65rem !important;
        font-size: 0.7rem !important;
    }
    .hero-quick-stats {
        left: 0.5rem !important;
        bottom: 0.5rem !important;
        gap: 0.5rem !important;
        padding: 0.45rem 0.65rem !important;
        font-size: 0.78rem !important;
    }
    .hero-quick-stat { font-size: 0.78rem !important; }
    .hero-quick-stat i { font-size: 0.75rem !important; }
    .hero-contact-btn {
        right: 0.5rem !important;
        bottom: 0.5rem !important;
        padding: 0.5rem 0.8rem !important;
        font-size: 0.78rem !important;
    }
    .hero-image-nav {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }
    .hero-image-nav.prev { left: 0.4rem !important; }
    .hero-image-nav.next { right: 0.4rem !important; }
    /* The "click to view gallery" hint is hover-only; useless on touch */
    .click-hint { display: none !important; }

    /* Thumbnails strip stays scrollable but smaller */
    .hero-thumb {
        width: 78px !important;
        height: 56px !important;
    }

    /* Stack the 2fr/1fr grid into single column */
    .property-details-content {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .property-main-info,
    .property-sidebar {
        padding: 1.25rem !important;
    }
    .property-header-info {
        padding: 1rem !important;
    }
    .property-header-info h3 {
        font-size: 1.05rem !important;
    }
    .property-header-info p {
        font-size: 0.95rem !important;
    }

    /* Feature row → grid for compact display */
    .property-features {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
    .feature-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 4px !important;
        margin-bottom: 0 !important;
        padding: 0.5rem !important;
    }
    .feature-item h4 {
        font-size: 0.78rem !important;
        margin-bottom: 2px !important;
    }
    .feature-item p {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 480px) {
    .property-hero {
        height: 280px !important;
        min-height: 280px !important;
    }
    .property-hero h1 { font-size: 1.35rem !important; }
    .property-hero .property-price { font-size: 1.45rem !important; }
    .property-hero .property-address { font-size: 0.85rem !important; }

    /* On very small screens hide the always-visible contact bubble — the
       sticky contact section further down handles this. */
    .property-hero .hero-contact-btn { display: none !important; }
    /* Quick stats at the bottom can also be cramped — make them more compact */
    .hero-quick-stats {
        gap: 0.4rem !important;
        padding: 0.35rem 0.55rem !important;
    }
    .hero-quick-stat { font-size: 0.72rem !important; }
}

/* Homepage: slim guest CTA — gold + blue logo shimmer (see includes/guest-account-banner.css) */
.home-guest-account-banner {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #f6f1ea 0%, #e8ecf6 50%, #f6f1ea 100%);
    border-top: 1px solid rgba(46, 141, 160, 0.35);
    box-shadow: inset 0 1px 0 rgba(30, 58, 138, 0.06);
}

.home-guest-account-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        100deg,
        transparent 0%,
        transparent 18%,
        rgba(46, 141, 160, 0.32) 32%,
        rgba(229, 196, 138, 0.5) 38%,
        rgba(46, 141, 160, 0.36) 42%,
        rgba(30, 58, 138, 0.34) 48%,
        rgba(59, 130, 246, 0.55) 52%,
        rgba(30, 58, 138, 0.32) 56%,
        rgba(46, 141, 160, 0.34) 62%,
        rgba(229, 196, 138, 0.28) 68%,
        transparent 82%,
        transparent 100%
    );
    background-size: 220% 100%;
    background-position: 120% 0;
    animation: guest-banner-shimmer 7s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes guest-banner-shimmer {
    from {
        background-position: 120% 0;
        opacity: 0.7;
    }
    to {
        background-position: -120% 0;
        opacity: 0.95;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-guest-account-banner::before {
        animation: none;
        opacity: 0;
    }
}

.home-guest-account-banner__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 9px 18px;
    box-sizing: border-box;
}

.home-guest-account-banner__line {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 500;
    text-align: center;
}

@media (min-width: 900px) {
    .home-guest-account-banner__line {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

.home-guest-account-banner__text {
    display: inline;
    color: #0f172a;
    font-weight: 600;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

.home-guest-account-banner__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.home-guest-account-banner__link,
.home-guest-account-banner a.home-guest-account-banner__link {
    display: inline;
    color: #103d4f;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(30, 58, 138, 0.45);
    transition: color 0.15s ease, border-color 0.15s ease;
    -webkit-font-smoothing: antialiased;
}

.home-guest-account-banner__link:hover,
.home-guest-account-banner a.home-guest-account-banner__link:hover {
    color: #172554;
    border-bottom-color: rgba(23, 37, 84, 0.85);
}

.home-guest-account-banner__dot {
    color: rgba(15, 23, 42, 0.4);
    user-select: none;
}

/* property-details.php — guest CTA under Property Photos, above landing page button */
.photo-gallery-section .pd-photo-section-account-banner {
    margin-top: 1rem;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
}
.photo-gallery-section .pd-photo-section-account-banner + .property-landing-cta-wrap {
    margin-top: 0.75rem;
}

/* property-details.php — guest CTA in sidebar above Property Details card */
.property-sidebar .pd-sidebar-account-banner {
    margin-top: 1.25rem;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
}
.property-sidebar .pd-sidebar-account-banner .home-guest-account-banner__inner {
    padding: 10px 14px;
}
.property-sidebar .pd-sidebar-account-banner .home-guest-account-banner__line {
    flex-wrap: wrap;
    white-space: normal;
    gap: 8px 12px;
}

/* view.php — guest CTA full width, flush under magazine cover hero */
.mag-view-hero-banner.home-guest-account-banner {
    margin-top: 0;
    margin-bottom: 0;
    border-top: none;
}

/* Shared guest strip under page heroes (includes/guest-account-banner.php) */
.sp-page-guest-banner.home-guest-account-banner {
    margin-top: 0;
    margin-bottom: 0;
    border-top: none;
}

/* ============================================================
   Active Listings Ticker (anchored to bottom of the hero)
   - Auto-scrolling marquee of random properties
   - Sits inside the dark hero, so styling is transparent /
     light-on-dark with translucent white cards floating above
     the hero photo + overlay.
   - Pauses on hover/focus, edges fade for "infinite" feel
   - Each card links to view.php?id=<ListingKeyNumeric>
   ============================================================ */
.property-ticker-section {
    position: relative;
    z-index: 4; /* above hero-overlay (z-2) and hero-layout (z-3) */
    flex: 0 0 auto; /* anchored to bottom of the flex-column hero */
    background: linear-gradient(180deg,
        rgba(11, 26, 58, 0) 0%,
        rgba(11, 26, 58, 0.45) 35%,
        rgba(11, 26, 58, 0.7) 100%);
    padding: 14px 0 16px;
    border-top: 1px solid rgba(46, 141, 160, 0.3);
    overflow: hidden;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.property-ticker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 12px;
}

.property-ticker-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    letter-spacing: 0.01em;
}
.property-ticker-header h2 i {
    color: #addaea;
    font-size: 0.95em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.property-ticker-all {
    color: #addaea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.property-ticker-all:hover {
    color: #ffd99a;
    transform: translateX(2px);
}

.property-ticker {
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}

.property-ticker-track {
    display: flex;
    gap: 18px;
    width: max-content;
    padding: 8px 4px 14px;
    animation: propertyTickerScroll 80s linear infinite;
    will-change: transform;
}
.property-ticker:hover .property-ticker-track,
.property-ticker:focus-within .property-ticker-track {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .property-ticker-track { animation: none; }
    .property-ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

@keyframes propertyTickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.property-ticker-card {
    flex: 0 0 auto;
    width: 220px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(46, 141, 160, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.property-ticker-card:hover,
.property-ticker-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(46, 141, 160, 0.6);
    border-color: #addaea;
    outline: none;
}

.property-ticker-image {
    position: relative;
    height: 104px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    overflow: hidden;
}
.property-ticker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.property-ticker-card:hover .property-ticker-image img {
    transform: scale(1.06);
}

.property-ticker-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--just-listed-gradient);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--just-listed-shadow);
}

.property-ticker-price {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(11, 26, 58, 0.88);
    color: #fff;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.property-ticker-meta {
    padding: 9px 12px 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.property-ticker-loc {
    color: #1e3f73;
    font-weight: 600;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.property-ticker-loc i {
    color: #2e8da0;
    font-size: 0.78em;
    flex-shrink: 0;
}
.property-ticker-stats {
    display: flex;
    gap: 14px;
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 500;
}
.property-ticker-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.property-ticker-stats i {
    color: #2e8da0;
    font-size: 0.85em;
}

.property-ticker-loading {
    padding: 30px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    width: 100%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.property-ticker-loading i {
    color: #addaea;
    margin-right: 8px;
}

.property-ticker-track {
    padding: 4px 4px 6px;
}

@media (max-width: 768px) {
    .property-ticker-section { padding: 12px 0 14px; }
    .property-ticker-card { width: 190px; }
    .property-ticker-image { height: 92px; }
    .property-ticker-track { gap: 14px; animation-duration: 60s; }
    .property-ticker-header h2 {
        font-size: 1rem;
        gap: 8px;
    }
    .property-ticker-all { font-size: 0.85rem; }
    .property-ticker {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
                mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    }
}
@media (max-width: 480px) {
    .property-ticker-card { width: 165px; }
    .property-ticker-image { height: 84px; }
    .property-ticker-section { padding: 10px 0 12px; }
    .property-ticker-header h2 { font-size: 0.95rem; }
    .property-ticker-price { font-size: 0.8rem; padding: 4px 8px; }
}

/* ============================================================
   Recent Blog Titles Ticker (text-only marquee above Featured Properties)
   - Light cream band that visually separates from the surrounding
     white Team / Featured-Properties sections without clashing.
   - Navy text on cream, gold accents (label + bullets + underline).
   - Pauses on hover/focus, edge fades for the seamless marquee feel.
   - Each title links to its post (custom blog) or to /blog.php?q=...
     for legacy WordPress posts.
   ============================================================ */
.blog-ticker-section {
    background: linear-gradient(135deg, #fbf7ec 0%, #f3ecd9 100%);
    border-top: 1px solid rgba(46, 141, 160, 0.45);
    border-bottom: 1px solid rgba(46, 141, 160, 0.45);
    color: #1e3f73;
    overflow: hidden;
}

.blog-ticker-container {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 24px;
}

.blog-ticker-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1e3f73;
    padding-right: 16px;
    border-right: 2px solid rgba(46, 141, 160, 0.55);
}
.blog-ticker-label i {
    font-size: 1em;
    color: #2e8da0;
}

.blog-ticker {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
    /* Mask fades the marquee edges to the cream background. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}

.blog-ticker-track {
    display: inline-flex;
    gap: 36px;
    width: max-content;
    animation: blogTickerScroll 60s linear infinite;
    will-change: transform;
}
.blog-ticker:hover .blog-ticker-track,
.blog-ticker:focus-within .blog-ticker-track {
    animation-play-state: paused;
}

@keyframes blogTickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.blog-ticker-item {
    color: #1e3f73;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: color 0.2s ease;
}
.blog-ticker-item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2e8da0;
    flex-shrink: 0;
}
.blog-ticker-item:hover,
.blog-ticker-item:focus-visible {
    color: #2e8da0;
    outline: none;
    text-decoration: underline;
    text-decoration-color: rgba(46, 141, 160, 0.65);
    text-underline-offset: 4px;
}

.blog-ticker-loading {
    color: rgba(30, 63, 115, 0.55);
    font-size: 0.9rem;
    font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
    .blog-ticker-track { animation: none; }
    .blog-ticker {
        overflow-x: auto;
        -webkit-mask-image: none;
                mask-image: none;
    }
}

@media (max-width: 768px) {
    .blog-ticker-container { gap: 12px; padding: 10px 14px; }
    .blog-ticker-label {
        font-size: 0.75rem;
        padding-right: 10px;
        border-right: 1px solid rgba(46, 141, 160, 0.45);
    }
    /* Drop the "Recent Posts" word on phones to save space; icon remains. */
    .blog-ticker-label > span { display: none; }
    .blog-ticker-item { font-size: 0.85rem; }
    .blog-ticker-track { gap: 26px; animation-duration: 50s; }
    .blog-ticker {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
                mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    }
}

/* ============================================
   "Just Listed in Nanaimo" 2x4 grid
   Replaces the static Nanaimo map in the
   "Your Vancouver Island Real Estate Experts" card.
   ============================================ */
.about-section .about-map {
    /* Was: flex centered for a single image. Now hosts a full-bleed grid. */
    display: block;
    width: 100%;
}

.about-just-listed {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-just-listed__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px;
}

.about-just-listed__header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.about-just-listed__header h3 i {
    color: #2e8da0;
}

.about-just-listed__all {
    color: #2e8da0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

.about-just-listed__all:hover,
.about-just-listed__all:focus-visible {
    color: #1c6b7c;
    transform: translateX(2px);
    outline: none;
}

.about-just-listed__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: start;
}

.about-just-listed__card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #f3f4f6;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.10);
    border: 1px solid rgba(30, 58, 138, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: block;
    min-height: 0;
}

/* Fixed aspect box so portrait/tall MLS photos cannot stretch one tile taller than its neighbor */
.about-just-listed__card-media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e5e7eb;
}

.about-just-listed__card:hover,
.about-just-listed__card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(30, 58, 138, 0.20);
    border-color: rgba(46, 141, 160, 0.55);
    outline: none;
}

.about-just-listed__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.about-just-listed__card:hover .about-just-listed__card-media img,
.about-just-listed__card:focus-visible .about-just-listed__card-media img {
    transform: scale(1.06);
}

.about-just-listed__card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.05) 55%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.about-just-listed__card-price {
    position: absolute;
    left: 8px;
    bottom: 26px;
    z-index: 2;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.about-just-listed__card-city {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.about-just-listed__card-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    background: var(--just-listed-gradient);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: var(--just-listed-shadow-sm);
}

.about-just-listed__loading,
.about-just-listed__empty {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    gap: 8px;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-just-listed__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .about-just-listed__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-just-listed__header h3 {
        font-size: 0.9rem;
    }
    .about-just-listed__card-price {
        font-size: 0.85rem;
        bottom: 24px;
    }
}

/* ============================================
   "Jump Into a Nanaimo Sub-Area" chip grid
   Sits inside the right column (.map-cta-right) of the Interactive Map CTA,
   directly under the decorative .map-cta-visual card.
   ============================================ */
.map-cta-right {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.map-cta-right .map-cta-subareas {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 22px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(229, 196, 134, 0.32);
}

.map-cta-subareas__header {
    text-align: center;
    margin-bottom: 16px;
}

.map-cta-subareas__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #addaea;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(11, 26, 58, 0.45);
    border: 1px solid rgba(229, 196, 134, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.map-cta-subareas__eyebrow i {
    color: #addaea;
    font-size: 0.75rem;
}

.map-cta-subareas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
}

.map-cta-subarea-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(229, 196, 134, 0.35);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    min-width: 0;
}

.map-cta-subarea-chip > i:first-child {
    color: #addaea;
    font-size: 0.8rem;
    flex: 0 0 auto;
}

.map-cta-subarea-chip__label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-cta-subarea-chip__arrow {
    flex: 0 0 auto;
    color: rgba(229, 196, 134, 0.85);
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.map-cta-subarea-chip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(229, 196, 134, 0.15) 0%, rgba(229, 196, 134, 0) 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.map-cta-subarea-chip:hover,
.map-cta-subarea-chip:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(229, 196, 134, 0.85);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(229, 196, 134, 0.35);
    outline: none;
}

.map-cta-subarea-chip:hover::before,
.map-cta-subarea-chip:focus-visible::before {
    opacity: 1;
}

.map-cta-subarea-chip:hover .map-cta-subarea-chip__arrow,
.map-cta-subarea-chip:focus-visible .map-cta-subarea-chip__arrow {
    transform: translateX(2px);
    color: #ffd98a;
    opacity: 1;
}

.map-cta-subareas__loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

/* On tablets the .map-cta-content collapses to one column; the right column
   gets full container width, so we can give the chips a touch more breathing
   room while still fitting 3 across. */
@media (max-width: 992px) {
    .map-cta-right .map-cta-subareas { margin-top: 20px; padding-top: 18px; }
    .map-cta-subarea-chip {
        padding: 11px 14px;
        font-size: 0.88rem;
        gap: 10px;
    }
    .map-cta-subarea-chip > i:first-child { font-size: 0.85rem; }
}

@media (max-width: 560px) {
    .map-cta-subareas__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 8px;
    }
    .map-cta-subareas__eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
        padding: 6px 12px;
    }
    .map-cta-subarea-chip {
        padding: 10px 11px;
        font-size: 0.8rem;
    }
}

/* ============================================
   "More Recent Insights" — static 4-card grid
   under the homepage market stats charts.
   ============================================ */
.latest-posts {
    margin: 0 0 0;
    padding-top: 0;
    border-top: none;
}

.blog-section .container > .latest-posts:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.latest-posts__header {
    text-align: center;
    margin-bottom: 36px;
}

.latest-posts__title {
    font-size: clamp(1.75rem, 2.4vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-color, #0b1a3a);
    margin: 0 0 10px;
    line-height: 1.2;
}

.latest-posts__sub {
    margin: 0 auto;
    max-width: 640px;
    color: var(--text-secondary, #4b5563);
    font-size: 1rem;
    line-height: 1.55;
}

.latest-posts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.latest-posts__loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 0;
    color: var(--text-secondary, #6b7280);
    font-size: 0.95rem;
}

.latest-post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(11, 26, 58, 0.08);
    box-shadow: 0 6px 18px rgba(11, 26, 58, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.latest-post-card:hover,
.latest-post-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(11, 26, 58, 0.16);
    border-color: rgba(46, 141, 160, 0.55);
    outline: none;
}

.latest-post-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #0b1a3a 0%, #1e3f73 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(229, 196, 134, 0.85);
    font-size: 2.4rem;
}

/* Category pill in the top-left of the image — matches .blog-card-tag on
   blog.php so the cards feel like a continuation of the same brand language. */
.latest-post-card__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(46, 141, 160, 0.95);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 10px rgba(11, 26, 58, 0.25);
    pointer-events: none;
}

.latest-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.latest-post-card:hover .latest-post-card__thumb img,
.latest-post-card:focus-visible .latest-post-card__thumb img {
    transform: scale(1.05);
}

.latest-post-card__thumb.is-empty {
    background: linear-gradient(135deg, #0b1a3a 0%, #1e3f73 100%);
}

.latest-post-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 20px;
}

.latest-post-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #2e8da0;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.latest-post-card__date i {
    font-size: 0.75rem;
}

.latest-post-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary-color, #0b1a3a);
    margin: 0 0 8px;
    /* Clamp to 3 lines so cards stay even */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-post-card__excerpt {
    margin: 0 0 14px;
    color: var(--text-secondary, #4b5563);
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-post-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2e8da0;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.latest-post-card__cta i {
    font-size: 0.78rem;
    transition: transform 0.2s ease;
}

.latest-post-card:hover .latest-post-card__cta,
.latest-post-card:focus-visible .latest-post-card__cta {
    color: #1c6b7c;
}

.latest-post-card:hover .latest-post-card__cta i,
.latest-post-card:focus-visible .latest-post-card__cta i {
    transform: translateX(3px);
}

.latest-posts__footer {
    margin-top: 32px;
    text-align: center;
}

.latest-posts__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2e8da0;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1.5px solid rgba(46, 141, 160, 0.5);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.latest-posts__all:hover,
.latest-posts__all:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #2e8da0, #1c6b7c);
    border-color: transparent;
    transform: translateY(-2px);
    outline: none;
}

@media (max-width: 1100px) {
    .latest-posts__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .latest-posts {
        margin: 0;
        padding-top: 0;
    }
    .latest-posts__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .latest-post-card__thumb {
        aspect-ratio: 16 / 9;
    }
    .latest-post-card__title { font-size: 1rem; }
}

/* ----- Listing enrichments: YouTube then Matterport (view + property-details) ----- */
.listing-media-section {
    padding: 56px 0;
    background: linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
    border-top: 1px solid #e7eef2;
    border-bottom: 1px solid #e7eef2;
}
.listing-media-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.listing-media-header { margin-bottom: 22px; }
.listing-media-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2e8da0;
    margin-bottom: 8px;
}
.listing-media-title {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: #103d4f;
    line-height: 1.15;
}
.listing-media-lead {
    margin: 0;
    color: #64748b;
    max-width: 62ch;
    line-height: 1.55;
}

/* Stacked blocks: video → Matterport (PDFs follow in their own section) */
.listing-media-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.listing-media-block-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #103d4f;
    display: flex;
    align-items: center;
    gap: 10px;
}
.listing-media-block-title i {
    color: #2e8da0;
    font-size: 1rem;
}

.listing-media-frame {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 18px 50px rgba(16, 61, 79, 0.18);
    border: 1px solid rgba(46, 141, 160, 0.25);
}
.listing-media-frame::before {
    content: '';
    display: block;
    padding-top: 56.25%;
    pointer-events: none;
}
.listing-media-frame--matterport::before { padding-top: 62%; }
.listing-media-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1;
    background: #000;
}

/* Click-to-play facade — removed entirely once the iframe loads */
.listing-media-yt-facade {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: #0f172a;
    display: block;
    width: 100%;
    height: 100%;
}
.listing-media-yt-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}
.listing-media-yt-shade {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    pointer-events: none;
    transition: background .2s ease;
}
.listing-media-yt-facade:hover .listing-media-yt-shade,
.listing-media-yt-facade:focus-visible .listing-media-yt-shade {
    background: rgba(15, 23, 42, 0.4);
}
.listing-media-yt-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: transform .2s ease, background .2s ease;
}
.listing-media-yt-play i {
    margin-left: 3px;
}
.listing-media-yt-facade:hover .listing-media-yt-play,
.listing-media-yt-facade:focus-visible .listing-media-yt-play {
    transform: translate(-50%, -50%) scale(1.06);
    background: #ef4444;
}
.listing-media-frame.is-playing .listing-media-yt-facade {
    display: none !important;
}

.listing-media-external {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #2e8da0;
    font-weight: 600;
    text-decoration: none;
}
.listing-media-external:hover { color: #103d4f; text-decoration: underline; }
.property-description-note,
.mag-description-note {
    margin: 0 0 12px;
    font-size: .82rem;
    font-weight: 600;
    color: #2e8da0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
@media (max-width: 640px) {
    .listing-media-section { padding: 40px 0; }
    .listing-media-stack { gap: 22px; }
    .listing-media-yt-play { width: 60px; height: 60px; font-size: 1.15rem; }
}