/* Fonts are served from this site (copied from Google Fonts, both under the Open Font
   License), so a page does not wait on two more servers before it can draw. Latin and
   Latin Extended only; the browser fetches a file only when a page uses its characters. */
@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-400-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-400-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/lato-300-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/lato-300-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-400-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-400-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato-700-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato-700-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/playfair-display-variable-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/playfair-display-variable-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/playfair-display-variable-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/playfair-display-variable-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   BISSONETTE PROPERTIES — Main Stylesheet
   Design system translated from React/Tailwind prototype
   ========================================================= */

/* ---------------------------------------------------------
   1. RESET & BASE
   --------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --navy-900: #0B162C;
    --navy-800: #14284B;
    --navy-700: #1D3A6A;

    --brand-900: #004A82;
    --brand-800: #0060A9;
    --brand-700: #2B7CB8;

    --sand-100: #f4f1eb;
    --sand-200: #e8e1d5;
    --sand-300: #dcd0be;
    --sand-400: #c4a47c;
    --sand-text: #806238; /* Gold for small text on light backgrounds (5:1 contrast). */

    --ice-100: #E8F4FD;
    --ice-200: #D0E8F9;
    --ice-300: #9DCBEF;
    --ice-400: #5BACD8;

    --rust: #b75d32;
    --cream: #fbfaf8;
    --white: #ffffff;

    /* Typography */
    --font-sans: 'Lato', ui-sans-serif, system-ui, sans-serif;
    --font-body: var(--font-sans);
    --font-serif: 'Playfair Display', ui-serif, Georgia, serif;

    /* Spacing */
    --container-max: 1280px;
    --section-py: 6rem;
    --container-px: 1.5rem;

    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--navy-900);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
}

/* ---------------------------------------------------------
   2. LAYOUT HELPERS
   --------------------------------------------------------- */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-py) var(--container-px);
}

/* ---------------------------------------------------------
   3. NAVBAR
   --------------------------------------------------------- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-base);
}

.site-header.nav-solid,
.site-header.is-scrolled {
    position: fixed;
}

/* Announcement Bar */
.announcement-bar {
    background: var(--brand-800);
    color: var(--sand-100);
    font-size: 0.8rem;
    text-align: center;
    padding: 0.5rem 1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    overflow: hidden;
}

.site-header.is-scrolled .announcement-bar,
.site-header.nav-solid .announcement-bar {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* Main Nav */
.main-nav {
    width: 100%;
    transition: all var(--transition-base);
    padding: 1.25rem 0;
}

.site-header.is-scrolled .main-nav,
.site-header.nav-solid .main-nav {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(11, 22, 44, 0.08);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: block;
    flex-shrink: 0;
}

/* Transparent nav logo: h-14 base, h-20 at md (matches React prototype) */
.site-header:not(.is-scrolled):not(.nav-solid) .logo-dark,
.site-header:not(.is-scrolled):not(.nav-solid) .logo-white {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-base);
    transform: translateY(-6px); /* ← TWEAK THIS to nudge logo up/down in transparent nav only */
}

@media (min-width: 768px) {
    .site-header:not(.is-scrolled):not(.nav-solid) .logo-dark,
    .site-header:not(.is-scrolled):not(.nav-solid) .logo-white {
        height: 5rem;
    }
}

/* Solid nav logo: h-12 base, h-16 at md (matches React prototype) */
.site-header.is-scrolled .logo-dark,
.site-header.is-scrolled .logo-white,
.site-header.nav-solid .logo-dark,
.site-header.nav-solid .logo-white {
    height: 3rem;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-base);
}

@media (min-width: 768px) {
    .site-header.is-scrolled .logo-dark,
    .site-header.is-scrolled .logo-white,
    .site-header.nav-solid .logo-dark,
    .site-header.nav-solid .logo-white {
        height: 4rem;
    }
}

/* Logo visibility toggling */
.site-header.is-scrolled .logo-dark,
.site-header.nav-solid .logo-dark {
    display: block;
}

.site-header.is-scrolled .logo-white,
.site-header.nav-solid .logo-white {
    display: none;
}

.site-header:not(.is-scrolled):not(.nav-solid) .logo-dark {
    display: none;
}

.site-header:not(.is-scrolled):not(.nav-solid) .logo-white {
    display: block;
}

/* Desktop Nav Links */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 1.25rem; /* tighter gap at lg */
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .nav-desktop {
        gap: 2rem; /* full gap restored at xl+ */
    }
}

/* lg (1024–1279px): smaller text to avoid crowding the logo */
.nav-link {
    font-size: 0.8rem; /* ← TWEAK: lg nav link size */
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--white);
    transition: color var(--transition-base);
    white-space: nowrap;
}

/* xl+ (1280px+): full size */
@media (min-width: 1280px) {
    .nav-link {
        font-size: 0.875rem;
    }
}

.site-header.is-scrolled .nav-link,
.site-header.nav-solid .nav-link {
    color: var(--navy-800);
}

.nav-link:hover {
    color: var(--sand-400) !important;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* 1024–1099px: icon-only phone link, so the menu clears the large home-page logo (the number stays readable to screen readers). */
@media (min-width: 1024px) and (max-width: 1099px) {
    .nav-phone__number {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

.nav-divider {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 1.25rem; /* tighter at lg */
    transition: border-color var(--transition-base);
}

@media (min-width: 1280px) {
    .nav-divider {
        padding-left: 2rem; /* restored at xl+ */
    }
}

.site-header.is-scrolled .nav-divider,
.site-header.nav-solid .nav-divider {
    border-left-color: var(--sand-200);
}

.nav-cta {
    display: inline-block;
    padding: 0.6rem 1rem; /* slightly less padding at lg */
    border-radius: 2px;
    font-size: 0.8rem; /* ← TWEAK: lg CTA button size */
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all var(--transition-base);
    white-space: nowrap;
    background: var(--white);
    color: var(--navy-900);
}

@media (min-width: 1280px) {
    .nav-cta {
        padding: 0.6rem 1.5rem;
        font-size: 0.875rem; /* restored at xl+ */
    }
}

.nav-cta:hover {
    background: var(--sand-100);
}

.site-header.is-scrolled .nav-cta,
.site-header.nav-solid .nav-cta {
    background: var(--brand-800);
    color: var(--white);
}

.site-header.is-scrolled .nav-cta:hover,
.site-header.nav-solid .nav-cta:hover {
    background: var(--brand-900);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--white);
    transition: color var(--transition-base);
}

.site-header.is-scrolled .mobile-menu-toggle,
.site-header.nav-solid .mobile-menu-toggle {
    color: var(--navy-900);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 74, 130, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden; /* Closed menu links are not reachable with Tab. */
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.3s ease, visibility 0s;
}

.mobile-overlay-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--white);
    padding: 0.5rem;
    z-index: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-height: 0;
    gap: 2rem;
    /* Scrolls when an open section makes the menu taller than the screen. */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4.5rem 1.5rem 2.5rem;
}

/* Items keep their full height (never squeezed), so a tall menu scrolls. */
.mobile-nav > * {
    flex-shrink: 0;
}

/* Centred when it fits, top-aligned (and scrollable) when it does not. */
.mobile-nav > :first-child {
    margin-top: auto;
}

.mobile-nav > :last-child {
    margin-bottom: auto;
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--white);
    transition: color var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s, opacity 0.4s, transform 0.4s;
}

.mobile-overlay.is-open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav > :nth-child(1) { transition-delay: 0.05s; }
.mobile-nav > :nth-child(2) { transition-delay: 0.1s; }
.mobile-nav > :nth-child(3) { transition-delay: 0.15s; }
.mobile-nav > :nth-child(4) { transition-delay: 0.2s; }
.mobile-nav > :nth-child(5) { transition-delay: 0.25s; }

.mobile-nav-link:hover {
    color: var(--sand-400);
}

.mobile-nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    transition: color var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s, opacity 0.4s 0.3s, transform 0.4s 0.3s;
}

.mobile-overlay.is-open .mobile-nav-phone {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-phone:hover {
    color: var(--white);
}

.mobile-nav-cta {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: var(--sand-400);
    color: var(--navy-900);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
    transition: background 0.3s, opacity 0.4s 0.35s, transform 0.4s 0.35s;
}

.mobile-overlay.is-open .mobile-nav-cta {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-cta:hover {
    background: var(--sand-300);
}

/* Desktop Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Dropdowns without a page of their own (Communities) use a button trigger. */
button.nav-dropdown-trigger {
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

.nav-dropdown-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron,
.nav-dropdown.is-open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 200px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(11, 22, 44, 0.12), 0 2px 8px rgba(11, 22, 44, 0.08);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 150;
    pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-dropdown-item {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy-800);
    white-space: nowrap;
    transition: background var(--transition-base), color var(--transition-base);
}

.nav-dropdown-item:hover {
    background: var(--sand-100);
    color: var(--brand-800) !important;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--sand-200);
    margin: 0.35rem 1rem;
}

/* Mobile Nav Expandable Sub-Menu */
.mobile-nav-expandable {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
    transition-delay: 0.05s;
}

.mobile-overlay.is-open .mobile-nav-expandable {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-nav-toggle:hover {
    color: var(--sand-400);
}

.mobile-nav-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-expandable.is-expanded .mobile-nav-chevron {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0;
}

.mobile-nav-expandable.is-expanded .mobile-nav-submenu {
    max-height: 500px;
    padding: 1rem 0 0.5rem;
}

.mobile-nav-sublink {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base);
}

.mobile-nav-sublink:hover {
    color: var(--sand-400);
}

/* ---------------------------------------------------------
   4. HERO
   --------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 22, 44, 0.6) 0%,
        rgba(11, 22, 44, 0.4) 40%,
        rgba(11, 22, 44, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-top: 10rem; /* ← TWEAK THIS to adjust gap between nav and hero text */
    padding-bottom: 4rem;
}

.hero-text {
    max-width: 48rem; /* max-w-3xl matches React prototype */
}

/* Hero title: text-5xl / lg:text-6xl / 2xl:text-8xl — exact Tailwind values */
.hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;        /* text-5xl = 48px */
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 2rem;    /* mb-8 = 2rem */
    font-weight: 400;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem; /* text-6xl = 60px */
    }
}

@media (min-width: 1536px) {
    .hero-title {
        font-size: 6rem;    /* text-8xl = 96px */
    }
}

.hero-title-italic {
    font-style: italic;
    font-weight: 300;
    color: var(--ice-200);
}

/* Hero subtitle: text-lg / md:text-xl — exact Tailwind values */
.hero-subtitle {
    font-size: 1.125rem;    /* text-lg = 18px */
    color: rgba(244, 241, 235, 0.9);
    font-weight: 300;
    max-width: 36rem;       /* max-w-xl = 576px */
    margin-bottom: 3rem;    /* mb-12 = 3rem */
    line-height: 1.625;     /* leading-relaxed */
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem; /* md:text-xl = 20px */
    }
}

/* Search Bar */
.hero-search {
    max-width: 40rem;
}

.search-bar {
    background: var(--white);
    padding: 0.5rem;
    border-radius: 2px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .search-bar {
        flex-direction: row;
        align-items: stretch;
    }
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(244, 241, 235, 0.5);
    border-radius: 2px;
    gap: 0.75rem;
    color: var(--navy-700);
}

.search-field svg {
    flex-shrink: 0;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    color: var(--navy-900);
    font-weight: 500;
    font-size: 0.95rem;
}

.search-input::placeholder {
    color: rgba(11, 22, 44, 0.5);
}

.search-divider {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(244, 241, 235, 0.5);
    border-radius: 2px;
    border-top: 1px solid var(--sand-200);
}

@media (min-width: 640px) {
    .search-divider {
        border-top: none;
        border-left: 1px solid var(--sand-200);
    }
}

.search-select {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    color: var(--navy-900);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--brand-800);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: background var(--transition-base);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--brand-900);
}

/* ---------------------------------------------------------
   5. SCROLL ANIMATIONS
   --------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up--delay-1 { transition-delay: 0.2s; }
.fade-up--delay-2 { transition-delay: 0.4s; }

/* Hero text is the first thing people see: paint it right away and animate
   only its position (it no longer waits for JavaScript to become visible). */
.hero .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
    animation: bp-hero-rise 0.8s ease both;
}

.hero .fade-up--delay-1 { animation-delay: 0.2s; }
.hero .fade-up--delay-2 { animation-delay: 0.4s; }

@keyframes bp-hero-rise {
    from { transform: translateY(1.25rem); }
    to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero .fade-up { animation: none; }
}

.reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ---------------------------------------------------------
   6. SECTION COMMON ELEMENTS
   --------------------------------------------------------- */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.eyebrow-line {
    display: block;
    height: 1px;
    width: 2rem;
    background: var(--brand-800);
    flex-shrink: 0;
}

.eyebrow-line--sand {
    background: var(--sand-400);
}

.eyebrow-text {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-800);
}

.eyebrow-text--sand {
    color: var(--sand-400);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy-900);
    line-height: 1.15;
    font-weight: 400;
}

.title-italic {
    font-style: italic;
    color: var(--brand-700);
}

/* ---------------------------------------------------------
   7. FEATURED PROPERTIES SECTION
   --------------------------------------------------------- */
.featured-properties {
    background: var(--cream);
}

.featured-properties .section-container {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.section-header-left {
    max-width: 36rem;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.26rem; /* 40% larger than the original 0.9rem */
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--brand-800); /* Same blue as the eyebrow text above the heading. */
    white-space: nowrap;
    transition: color var(--transition-base);
    flex-shrink: 0;
}

.view-all-link svg {
    width: 25px;
    height: 25px;
    transition: transform var(--transition-base);
}

.view-all-link:hover {
    color: var(--brand-900);
}

.view-all-link:hover svg {
    transform: translateX(4px);
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Property Card */
.property-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.property-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.property-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.property-card-actions .btn {
    flex: 1;
    padding: 0.75rem 1rem;
}

.property-card-actions .btn-outline {
    border-color: var(--brand-800);
    color: var(--brand-800);
}

.property-card-actions .btn-outline:hover {
    background: var(--brand-800);
    color: var(--white);
}

.property-card-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 4 / 3;
    margin-bottom: 1.5rem;
}

.property-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.property-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    background: linear-gradient(145deg, var(--sand-100), #e7e0d3);
    color: var(--navy-700);
    text-align: center;
}

.property-photo-placeholder svg {
    width: 3rem;
    height: 3rem;
    opacity: 0.65;
}

.property-photo-placeholder span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.property-photo-placeholder--gallery svg {
    width: 4rem;
    height: 4rem;
}

.property-photo-placeholder--gallery span {
    font-size: 0.875rem;
}

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

.property-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-900);
    border-radius: 2px;
}

.property-card-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 22, 44, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s ease;
}

.property-card:hover .property-card-hover-overlay {
    background: rgba(11, 22, 44, 0.2);
}

.property-card-hover-icon {
    width: 3rem;
    height: 3rem;
    background: var(--white);
    color: var(--navy-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.property-card:hover .property-card-hover-icon {
    opacity: 1;
    transform: translateY(0);
}

.property-card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-card-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.property-card-address {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--navy-900);
    transition: color var(--transition-base);
    font-weight: 400;
    line-height: 1.2;
}

.property-card:hover .property-card-address {
    color: var(--ice-400);
}

.property-card-price {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--navy-800);
    white-space: nowrap;
    font-weight: 400;
}

.property-card-title {
    color: rgba(11, 22, 44, 0.6);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.property-card-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--sand-200);
    padding-top: 1rem;
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy-800);
    font-size: 0.875rem;
    font-weight: 500;
}

.property-detail svg {
    color: var(--sand-400);
    flex-shrink: 0;
}

.property-detail--rbr {
    color: #15803d;
}

.property-detail--rbr svg {
    color: #15803d;
}

.property-detail--55,
.property-detail--55 svg {
    color: #7a4b8c;
}

/* "New" / "Price drop" labels (inc/listing-search.php), opposite the availability tag. */
.property-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.property-badge {
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
}

.property-badge--new {
    background: var(--brand-800);
}

.property-badge--drop {
    background: #a8431f;
}

.property-badge--55 {
    background: #7a4b8c;
}

.property-badge--rbr {
    background: #15803d; /* A clear green (was teal, which read as another blue); white text 5:1. */
}

.property-card-price-was {
    margin-right: 0.35rem;
    font-size: 0.85em;
    color: rgba(11, 22, 44, 0.5);
}

.no-properties {
    text-align: center;
    color: rgba(11, 22, 44, 0.6);
    font-size: 1.1rem;
    padding: 3rem 0;
}

/* ---------------------------------------------------------
   8. LIFESTYLE SECTION
   --------------------------------------------------------- */
.lifestyle-section {
    background: var(--brand-900);
    color: var(--sand-100);
    overflow: hidden;
}

.lifestyle-section .section-container {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .lifestyle-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.lifestyle-text {
    order: 2;
}

@media (min-width: 1024px) {
    .lifestyle-text {
        order: 1;
    }
}

.lifestyle-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    line-height: 1.1;
    color: var(--sand-100);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.lifestyle-title-italic {
    font-style: italic;
    color: var(--sand-300);
}

.lifestyle-body {
    font-size: 1.05rem;
    color: rgba(244, 241, 235, 0.8);
    font-weight: 300;
    line-height: 1.8;
    max-width: 32rem;
    margin-bottom: 2rem;
}

.lifestyle-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--brand-700);
}

.lifestyle-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    color: var(--sand-300);
    font-weight: 400;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(244, 241, 235, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Lifestyle Images Collage */
.lifestyle-images {
    position: relative;
    height: 28rem;
    order: 1;
}

@media (min-width: 1024px) {
    .lifestyle-images {
        height: 36rem;
        order: 2;
    }
}

.lifestyle-img {
    position: absolute;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.lifestyle-img--top {
    top: 0;
    right: 0;
    width: 75%;
    height: 65%;
}

.lifestyle-img--bottom {
    bottom: 0;
    left: 0;
    width: 60%;
    height: 55%;
    border: 4px solid var(--brand-900);
}

/* ---------------------------------------------------------
   9. FOOTER
   --------------------------------------------------------- */
.site-footer {
    background: var(--brand-900);
    border-top: 1px solid var(--brand-800);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 5rem 1.5rem 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: minmax(15rem, 1.35fr) minmax(12rem, 1fr) minmax(16rem, 1.05fr);
        gap: 3rem;
    }
}

.footer-logo {
    height: 4rem;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.footer-brand-desc {
    color: rgba(244, 241, 235, 0.8);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: rgba(244, 241, 235, 0.8);
    transition: color var(--transition-base);
}

.social-link:hover {
    color: var(--sand-400);
}

.footer-col-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(244, 241, 235, 0.6);
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--sand-400);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(244, 241, 235, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-contact-list li svg {
    color: var(--sand-400);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.footer-contact-list a {
    color: rgba(244, 241, 235, 0.6);
    transition: color var(--transition-base);
}

.footer-contact-list a:hover {
    color: var(--sand-100);
}

.footer-newsletter-desc {
    color: rgba(244, 241, 235, 0.6);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-input {
    background: var(--brand-800);
    border: 1px solid var(--brand-700);
    color: var(--white);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 2px;
    outline: none;
    transition: border-color var(--transition-base);
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-input:focus {
    border-color: var(--sand-400);
}

.newsletter-btn {
    background: var(--white);
    color: var(--navy-900);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.625rem;
    border-radius: 2px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background var(--transition-base);
    cursor: pointer;
    border: none;
}

.newsletter-btn:hover {
    background: var(--sand-100);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--brand-800);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: rgba(244, 241, 235, 0.4);
    font-size: 0.75rem;
}

.footer-credit-separator {
    margin: 0 0.45rem;
}

.footer-marketing-credit {
    color: var(--white);
    font-weight: 600;
    transition: color var(--transition-base);
}

.footer-marketing-credit:hover,
.footer-marketing-credit:focus-visible {
    color: var(--sand-300);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: rgba(244, 241, 235, 0.4);
    font-size: 0.75rem;
    transition: color var(--transition-base);
}

.footer-legal-links a:hover {
    color: var(--sand-100);
}

/* ---------------------------------------------------------
   10. MOBILE CONTACT BAR
   --------------------------------------------------------- */
.mobile-contact-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--navy-900);
    border-top: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .mobile-contact-bar {
        display: none;
    }
}

.mobile-contact-bar.is-hidden {
    transform: translateY(100%);
}

.mobile-contact-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color var(--transition-base);
    text-decoration: none;
}

.mobile-contact-item:hover {
    color: var(--sand-400);
}

/* ---------------------------------------------------------
   11. SINGLE PROPERTY PAGE
   --------------------------------------------------------- */
.single-property-page {
    padding-top: 5rem;
}

@media (min-width: 768px) {
    .single-property-page {
        padding-top: 7rem;
    }
}

.listing-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    /* clip contains overflow without creating a scroll container,
       so position: sticky on the sidebar still works. */
    overflow: clip;
}

.listing-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(11, 22, 44, 0.78);
    margin-bottom: 1.5rem;
}

.listing-breadcrumb a {
    color: rgba(11, 22, 44, 0.78);
    transition: color var(--transition-base);
}

.listing-breadcrumb a:hover {
    color: var(--brand-800);
}

.listing-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-start;
    /* Prevent grid children from overflowing their columns */
    min-width: 0;
}

/* Both grid children must have min-width: 0 so overflow-x: auto on
   gallery-thumbs (and any other scrollable child) actually constrains
   itself to the column width instead of expanding the whole grid. */
.listing-main,
.listing-sidebar {
    min-width: 0;
}

@media (max-width: 1023px) {
    .listing-main {
        display: contents;
    }
    .listing-main > * {
        min-width: 0;
    }
    .listing-layout .listing-section {
        order: 1;
    }
    .listing-gallery,
    .listing-header,
    .listing-layout .listing-section {
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .listing-layout {
        grid-template-columns: 1fr 22rem;
        gap: 3rem;
    }
}

/* Gallery */
.listing-gallery {
    margin-bottom: 2rem;
}

.gallery-main-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--sand-100);
    margin-bottom: 0.75rem;
}

.gallery-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-slide.is-active {
    opacity: 1;
}

.gallery-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-900);
    border-radius: 2px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255,255,255,0.9);
    color: var(--navy-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all var(--transition-base);
}

.gallery-nav:hover {
    background: var(--white);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 2px;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 5rem;
    height: 3.75rem;
    border-radius: 2px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--transition-base);
    cursor: pointer;
}

.gallery-thumb.is-active {
    border-color: var(--brand-800);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Listing Header */
.listing-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--sand-200);
}

.listing-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--navy-900);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.listing-address {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(11, 22, 44, 0.6);
    font-size: 0.9rem;
}

.listing-price-badge {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--brand-800);
    white-space: nowrap;
    font-weight: 500;
}

/* Listing Sections */
.listing-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--sand-200);
}

.listing-section:last-child {
    border-bottom: none;
}

.listing-section-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--navy-900);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.listing-description {
    color: rgba(11, 22, 44, 0.75);
    line-height: 1.8;
    font-size: 0.95rem;
}

.listing-description p {
    margin-bottom: 1rem;
}

.listing-description a {
    color: var(--brand-800);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
    transition: color var(--transition-base);
}

.listing-description a:hover,
.listing-description a:focus-visible {
    color: var(--navy-900);
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.amenity-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    background: var(--sand-100);
    border-radius: 4px;
}

.amenity-item svg {
    color: var(--brand-800);
}

.amenity-label {
    font-size: 0.75rem;
    color: rgba(11, 22, 44, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 0.25rem;
}

.amenity-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-900);
}

/* Map */
.listing-map {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--sand-200);
}

.listing-map iframe {
    display: block;
}

/* Sidebar */
.listing-sidebar {
    position: relative;
}

@media (max-width: 1023px) {
    .listing-sidebar {
        position: static;
    }
}

@media (min-width: 1024px) {
    .listing-sidebar {
        position: sticky;
        top: 7rem;
    }
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: 6px;
    padding: 1.75rem;
    box-shadow: 0 4px 24px rgba(11, 22, 44, 0.08);
}

.sidebar-price {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--navy-900);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.sidebar-price-period {
    font-size: 1rem;
    color: rgba(11, 22, 44, 0.5);
    font-weight: 400;
}

.sidebar-tag {
    display: inline-block;
    background: var(--ice-100);
    color: var(--brand-800);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.75rem;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.sidebar-divider {
    height: 1px;
    background: var(--sand-200);
    margin: 1.25rem 0;
}

.sidebar-details {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.sidebar-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--navy-800);
}

.sidebar-detail svg {
    color: var(--sand-400);
    flex-shrink: 0;
}

.sidebar-detail > div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.sidebar-detail-label {
    font-size: 0.7rem;
    color: rgba(11, 22, 44, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.sidebar-detail-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.sidebar-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn {
    display: block;
    text-align: center;
    padding: 0.875rem 1.5rem;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-800);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brand-900);
}

.btn-outline {
    background: transparent;
    color: var(--navy-800);
    border: 1.5px solid var(--sand-200);
}

.btn-outline:hover {
    border-color: var(--navy-800);
    background: var(--sand-100);
}

/* ---------------------------------------------------------
   11. CONTENT PAGES
   --------------------------------------------------------- */
.content-page-main {
    padding-top: 5rem;
    background: var(--cream);
}

.content-page-shell {
    overflow: hidden;
}

.bp-page {
    background: var(--cream);
}

.bp-page-hero {
    position: relative;
    min-height: 22rem;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy-900), var(--brand-900));
    background-position: center;
    background-size: cover;
    color: var(--white);
    isolation: isolate;
}

.bp-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(196, 164, 124, 0.24), transparent 30%),
        linear-gradient(90deg, rgba(11, 22, 44, 0.88), rgba(11, 22, 44, 0.48));
    z-index: -1;
}

.bp-page-hero--simple {
    min-height: 18rem;
}

.bp-page-hero__inner {
    width: min(var(--container-max), calc(100% - 2 * var(--container-px)));
    margin: 0 auto;
    padding: 4.5rem 0 4rem;
}

.bp-page-hero h1 {
    max-width: 58rem;
    font-size: clamp(2.45rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 1rem;
}

.bp-page-hero__lead {
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.bp-eyebrow {
    color: var(--sand-text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.bp-section {
    padding: clamp(3.5rem, 7vw, 6rem) var(--container-px);
}

.bp-section--tint {
    background: var(--sand-100);
}

.bp-section--navy {
    background: var(--navy-900);
    color: var(--white);
}

.bp-section__inner {
    width: min(var(--container-max), 100%);
    margin: 0 auto;
}

.bp-section__header {
    max-width: 46rem;
    margin-bottom: 2.25rem;
}

.bp-section__header h2,
.bp-rich-text h2 {
    color: var(--navy-900);
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 400;
    margin-bottom: 0.9rem;
}

.bp-section--navy .bp-section__header h2,
.bp-section--navy .bp-section__header p,
.bp-section--navy .bp-card p,
.bp-section--navy .bp-card h3 {
    color: var(--white);
}

.bp-section__header p,
.bp-rich-text p,
.bp-card p,
.bp-team-card p,
.bp-contact-card p {
    color: rgba(11, 22, 44, 0.64);
    line-height: 1.75;
}

.bp-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.bp-split--form {
    align-items: start;
}

@media (min-width: 860px) {
    .bp-split {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.82fr);
    }

    .bp-split--reverse {
        grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1fr);
    }

    .bp-split--form {
        grid-template-columns: minmax(15rem, 0.62fr) minmax(34rem, 1.38fr);
    }

    .bp-split--form.bp-split--reverse {
        grid-template-columns: minmax(34rem, 1.38fr) minmax(15rem, 0.62fr);
    }
}

.bp-media,
.bp-image-card {
    overflow: hidden;
    border-radius: 4px;
    background: var(--sand-200);
    box-shadow: 0 18px 48px rgba(11, 22, 44, 0.11);
}

.bp-media img,
.bp-image-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}

.bp-card-grid,
.bp-doc-grid,
.bp-sitemap-grid,
.bp-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1rem;
}

.bp-card,
.bp-contact-card,
.bp-resource-card,
.bp-sitemap-card {
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: 4px;
    padding: clamp(1.35rem, 3vw, 2rem);
    box-shadow: 0 10px 32px rgba(11, 22, 44, 0.06);
}

.bp-card h3,
.bp-contact-card h3,
.bp-resource-card h3,
.bp-sitemap-card h3,
.bp-team-card h3 {
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 400;
    margin-bottom: 0.65rem;
}

.bp-card__meta,
.bp-team-card__role {
    color: var(--brand-800);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.bp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.bp-actions .btn,
.bp-card .btn,
.bp-resource-card .btn,
.bp-contact-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bp-page-hero .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.04);
}

.bp-page-hero .btn-outline:hover {
    color: var(--white);
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.bp-feature-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.bp-feature-list li,
.bp-check-list li {
    list-style: none;
    position: relative;
    padding-left: 1.55rem;
    color: rgba(11, 22, 44, 0.7);
    line-height: 1.7;
}

.bp-feature-list li::before,
.bp-check-list li::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--sand-400);
}

.bp-store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
    align-items: center;
}

.bp-store-badges img {
    height: 3rem;
    width: auto;
}

.bp-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1.25rem;
}

.bp-team-card {
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(11, 22, 44, 0.06);
}

.bp-team-card img {
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
}

.bp-team-card__body {
    padding: 1.35rem;
}

.bp-quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
}

.bp-quote {
    border-left: 3px solid var(--sand-400);
    padding: 0.25rem 0 0.25rem 1.25rem;
    color: rgba(255, 255, 255, 0.75);
}

.bp-quote strong {
    display: block;
    color: var(--white);
    margin-top: 0.8rem;
}

.bp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--sand-200);
    border-radius: 4px;
    background: var(--white);
}

.bp-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
}

.bp-table th,
.bp-table td {
    padding: 0.95rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--sand-200);
}

.bp-table th {
    background: var(--navy-900);
    color: var(--white);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bp-table tr:last-child td {
    border-bottom: 0;
}

.bp-note {
    color: rgba(11, 22, 44, 0.55);
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

.bp-rich-text {
    max-width: 52rem;
}

.bp-rich-text h2 {
    margin-top: 2.25rem;
}

.bp-rich-text h3 {
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 400;
    margin: 1.6rem 0 0.55rem;
}

.bp-rich-text ul {
    display: grid;
    gap: 0.4rem;
    margin: 1rem 0 1.25rem;
}

.bp-rich-text li {
    margin-left: 1.2rem;
    color: rgba(11, 22, 44, 0.68);
    line-height: 1.7;
}

.bp-legal {
    max-width: 56rem;
}

.bp-legal p,
.bp-legal li {
    color: rgba(11, 22, 44, 0.68);
}

.bp-legal h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    margin-top: 2.2rem;
}

.bp-sitemap-card ul {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.bp-sitemap-card li {
    list-style: none;
}

.bp-sitemap-card a,
.bp-contact-card a,
.bp-rich-text a,
.bp-legal a {
    color: var(--brand-800);
    font-weight: 700;
    transition: color var(--transition-base);
}

.bp-sitemap-card a:hover,
.bp-contact-card a:hover,
.bp-rich-text a:hover,
.bp-legal a:hover {
    color: var(--brand-900);
}

.bp-contact-card a.btn-primary,
.bp-contact-card a.btn-primary:hover {
    color: var(--white);
}

.bp-contact-card a.btn-outline {
    color: var(--navy-800);
}

.bp-contact-list {
    display: grid;
    gap: 0.7rem;
}

.bp-contact-list div {
    color: rgba(11, 22, 44, 0.68);
}

.bp-contact-list strong {
    color: var(--navy-900);
}

.home-contact-copy h2 {
    color: var(--navy-900);
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.home-contact-copy > p {
    color: rgba(11, 22, 44, 0.66);
    line-height: 1.8;
    max-width: 42rem;
}

.home-contact-details {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.home-contact-details div {
    border-left: 2px solid var(--sand-300);
    padding-left: 1rem;
}

.home-contact-details span {
    display: block;
    color: var(--sand-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.home-contact-details a,
.home-contact-details p {
    color: var(--navy-900);
    font-weight: 700;
    line-height: 1.55;
}

.bp-contact-form-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
        var(--white);
    align-self: start;
    padding: clamp(2rem, 4vw, 3rem);
}

.bp-wufoo-form {
    width: 100%;
}

.bp-wufoo-form--contact {
    min-height: 617px;
    margin-top: clamp(0.35rem, 1vw, 0.85rem);
}

.bp-wufoo-form--job {
    min-height: 623px;
    margin-top: 1.25rem;
}

.bp-wufoo-form--north-street {
    min-height: 583px;
    margin-top: clamp(0.35rem, 1vw, 0.85rem);
}

.bp-wufoo-form--newsletter {
    min-height: 320px;
    margin-top: 0.75rem;
}

.site-footer .bp-wufoo-fallback {
    color: rgba(244, 241, 235, 0.72);
}

.site-footer .bp-wufoo-fallback a {
    color: var(--sand-100);
}

.bp-wufoo-form iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    border: 0;
}

.bp-wufoo-fallback {
    color: rgba(11, 22, 44, 0.66);
    font-size: 0.95rem;
    line-height: 1.6;
}

.bp-wufoo-fallback a {
    color: var(--brand-800);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.bp-static-contact-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* Never wider than its card (the bot check is 300px wide). */
    gap: 1rem;
}

.bp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.bp-form-field {
    display: grid;
    align-content: start;
    gap: 0.45rem;
}

.bp-form-field--full {
    grid-column: 1 / -1;
}

.bp-form-field label {
    color: var(--navy-900);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bp-form-field input,
.bp-form-field select,
.bp-form-field textarea {
    width: 100%;
    border: 1px solid var(--sand-200);
    border-radius: 3px;
    background: var(--cream);
    color: var(--navy-900);
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.85rem 0.95rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.bp-form-field input:focus,
.bp-form-field select:focus,
.bp-form-field textarea:focus {
    outline: none;
    border-color: var(--brand-800);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 96, 169, 0.12);
}

.bp-form-field textarea {
    min-height: 9rem;
    resize: vertical;
}

.bp-form-submit {
    justify-self: start;
    margin-top: 0.35rem;
    border: 0;
}

/* While sending: visibly busy, not clickable twice. */
.bp-form-submit:disabled,
.bp-form-submit[aria-busy="true"] {
    opacity: 0.65;
    cursor: progress;
}

/* AppFolio lead form (template-parts/lead-form.php). */
.bp-lead-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.bp-lead-form__turnstile {
    min-height: 65px;
}

.bp-lead-form__note {
    margin: 0;
    color: rgba(11, 22, 44, 0.6);
    font-size: 0.85rem;
}

.bp-form-field input[aria-invalid="true"],
.bp-form-field select[aria-invalid="true"],
.bp-form-field textarea[aria-invalid="true"] {
    border-color: #a8431f;
}

/* Narrow phones: the 300px bot check is centred over the card padding instead of stretching the form. */
@media (max-width: 400px) {
    .bp-lead-form__turnstile {
        display: flex;
        justify-content: center;
        min-width: 0;
    }
}

.bp-form-field__error,
.bp-lead-form__status.is-error {
    margin: 0;
    color: #a8431f;
    font-size: 0.85rem;
    font-weight: 600;
}

.bp-lead-form__status:empty {
    display: none;
}

.bp-lead-form__done {
    display: grid;
    gap: 1rem;
    color: var(--navy-900);
    font-size: 1.05rem;
    line-height: 1.6;
}

.bp-lead-form__done:focus {
    outline: none;
}

.bp-lead-form__preview {
    max-height: 28rem;
    overflow: auto;
    margin: 0;
    padding: 1rem;
    background: var(--cream);
    border: 1px solid var(--sand-200);
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 767px) {
    .content-page-main {
        padding-top: 4.5rem;
        padding-bottom: 4.25rem;
    }

    .bp-page-hero__inner {
        padding: 3.5rem 0 3rem;
    }

    .bp-page-hero h1 {
        font-size: 2.45rem;
    }

    .bp-actions,
    .bp-store-badges {
        align-items: stretch;
        flex-direction: column;
    }

    .bp-contact-form-card {
        padding: 1.35rem;
    }

    .bp-wufoo-form--contact {
        margin-top: 0.25rem;
    }

    .bp-wufoo-form--job {
        margin-top: 1rem;
    }

    .bp-wufoo-form--north-street {
        margin-top: 0.25rem;
    }

    .bp-actions .btn {
        width: 100%;
    }

    .bp-form-grid {
        grid-template-columns: 1fr;
    }

    .bp-form-submit {
        width: 100%;
    }
}

.sidebar-video {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sand-200);
}

.sidebar-video-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(11, 22, 44, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.sidebar-video-list {
    display: grid;
    gap: 0.75rem;
}

.property-video-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--navy-900);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(11, 22, 44, 0.14);
}

.property-video-trigger img,
.property-video-trigger__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.property-video-trigger img {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.property-video-trigger__shade {
    background: linear-gradient(180deg, rgba(11, 22, 44, 0.08), rgba(11, 22, 44, 0.68));
}

.property-video-trigger__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3.75rem;
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy-900);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, background 0.25s ease;
}

.property-video-trigger__play svg {
    width: 1.65rem;
    height: 1.65rem;
    margin-left: 0.2rem;
}

.property-video-trigger__label {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.7rem;
    z-index: 1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.property-video-trigger:hover img,
.property-video-trigger:focus-visible img {
    transform: scale(1.04);
}

.property-video-trigger:hover .property-video-trigger__play,
.property-video-trigger:focus-visible .property-video-trigger__play {
    background: var(--white);
    transform: translate(-50%, -50%) scale(1.08);
}

.property-video-trigger:focus-visible {
    outline: 3px solid var(--ice-400);
    outline-offset: 3px;
}

.property-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.property-video-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.property-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 11, 23, 0.9);
    backdrop-filter: blur(5px);
}

.property-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(68rem, 100%);
    border-radius: 8px;
    overflow: hidden;
    background: var(--navy-900);
    color: var(--white);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    transform: translateY(1rem) scale(0.98);
    transition: transform 0.22s ease;
}

.property-video-modal.is-open .property-video-modal__dialog {
    transform: translateY(0) scale(1);
}

.property-video-modal__header {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem 0.9rem 1.25rem;
}

.property-video-modal__header h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 400;
}

.property-video-modal__close {
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.property-video-modal__close svg {
    width: 1.2rem;
    height: 1.2rem;
}

.property-video-modal__close:hover,
.property-video-modal__close:focus-visible {
    background: var(--white);
    color: var(--navy-900);
}

.property-video-modal__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.property-video-modal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.property-video-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .property-video-modal {
        padding: 0.75rem;
    }

    .property-video-modal__header {
        min-height: 3.5rem;
        padding: 0.7rem 0.75rem 0.7rem 1rem;
    }
}

.sidebar-contact {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sand-200);
    text-align: center;
}

.sidebar-contact-label {
    font-size: 0.8rem;
    color: rgba(11, 22, 44, 0.5);
    margin-bottom: 0.35rem;
}

.sidebar-contact-phone {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-800);
    transition: color var(--transition-base);
}

.sidebar-contact-phone:hover {
    color: var(--brand-900);
}

/* ---------------------------------------------------------
   12. ARCHIVE HEADER
   --------------------------------------------------------- */
.archive-property-page {
    padding-top: 5rem;
}

@media (min-width: 768px) {
    .archive-property-page {
        padding-top: 5rem;
    }
}

.archive-property-page .section-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.archive-header {
    padding: 3rem 0 2.5rem;
    max-width: 36rem;
    margin-bottom: 2rem;
}

.archive-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy-900);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.archive-subtitle {
    color: rgba(11, 22, 44, 0.6);
    font-size: 1rem;
}

/* ---- Pill-style Sticky Filter Bar ---- */
.prop-filters {
    position: sticky;
    top: 72px;
    z-index: 80;
    background: var(--sand-100);
    border-bottom: 1px solid var(--sand-200);
    margin-bottom: 2rem;
    border-radius: 4px;
    transition: box-shadow 0.2s ease;
}

.prop-filters__inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

/* Row 1: search, then result count and sort. Row 2: filter pills and Clear All. */
.prop-filters__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.prop-filters__pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid var(--sand-200);
}

.prop-filters__pills .prop-filters__clear {
    margin-left: auto;
    padding: 0 0.25rem;
}

.prop-filters__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.prop-filters__count {
    font-size: 0.8rem;
    color: rgba(11, 22, 44, 0.5);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.prop-filter[data-filter="features"] .prop-filter-panel,
.prop-filter[data-filter="move_in"] .prop-filter-panel {
    min-width: 15rem;
}

.prop-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(11, 22, 44, 0.6);
    white-space: nowrap;
}

.prop-sort__select {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy-900);
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: 2px; /* Square, to match the filter buttons. */
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}

.prop-sort__select:focus-visible {
    outline: 2px solid var(--brand-800);
    outline-offset: 2px;
}

.prop-filters__clear {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(11, 22, 44, 0.45);
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-base);
    padding: 0;
}

.prop-filters__clear:hover {
    color: var(--brand-800);
}

/* Individual pill dropdown wrapper */
.prop-filter {
    position: relative;
}

/* Pill button */
.prop-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy-900);
    background: var(--white);
    border: 1px solid var(--sand-300);
    border-radius: 2px; /* Square, like the site's buttons (was a pill). */
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.prop-filter-btn:hover {
    border-color: var(--brand-800);
    color: var(--brand-800);
}

.prop-filter-btn.is-active {
    background: var(--brand-800);
    border-color: var(--brand-800);
    color: var(--white);
}

.prop-filter-btn.is-active:hover {
    background: var(--brand-900);
    border-color: var(--brand-900);
    color: var(--white);
}

.prop-filter-btn__label {
    pointer-events: none;
}

.prop-filter-btn__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 100px;
    background: var(--white);
    color: var(--brand-800);
}

.prop-filter-btn.is-active .prop-filter-btn__badge {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.prop-filter-btn__chevron {
    flex-shrink: 0;
    opacity: 0.45;
    transition: transform 0.2s ease;
}

.prop-filter.is-open .prop-filter-btn__chevron {
    transform: rotate(180deg);
}

.prop-filter.is-open .prop-filter-btn {
    border-color: var(--brand-800);
    color: var(--brand-800);
}

.prop-filter.is-open .prop-filter-btn.is-active {
    color: var(--white);
}

/* Dropdown panel */
.prop-filter-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(11, 22, 44, 0.12);
    padding: 0.4rem 0;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.prop-filter.is-open .prop-filter-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Checkbox rows inside panels */
.prop-filter-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    transition: background 0.12s ease;
    user-select: none;
}

.prop-filter-check:hover {
    background: var(--sand-100);
}

.prop-filter-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.prop-filter-check input:focus-visible + .prop-filter-check__box {
    outline: 2px solid var(--brand-800);
    outline-offset: 2px;
}

.prop-filter-check__box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid var(--sand-300);
    border-radius: 3px;
    background: var(--white);
    transition: all 0.12s ease;
    position: relative;
}

.prop-filter-check input:checked + .prop-filter-check__box {
    background: var(--brand-800);
    border-color: var(--brand-800);
}

.prop-filter-check input:checked + .prop-filter-check__box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.prop-filter-check__text {
    font-size: 0.85rem;
    color: var(--navy-900);
    line-height: 1.3;
}

.prop-filter-check__count {
    margin-left: auto;
    font-size: 0.75rem;
    color: rgba(11, 22, 44, 0.38);
    font-variant-numeric: tabular-nums;
}

/* Home page: old-site headings are long, so they run smaller than the display size. */
.hero-title--long {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    max-width: 18ch;
    margin-bottom: 1.25rem;
}

h2.hero-subtitle {
    font-family: var(--font-sans);
}

.section-title--long {
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    max-width: 38ch;
    text-wrap: balance;
}

/* Room for that heading to sit on two lines beside the "View All" link. */
.section-header-left:has(.section-title--long) {
    max-width: 48rem;
}

.btn-light {
    background: var(--sand-100);
    color: var(--navy-900);
}

.btn-light:hover {
    background: var(--white);
}

.lifestyle-action {
    margin-bottom: 2rem;
}

.lifestyle-action .btn,
.home-community .btn {
    display: inline-block;
}

/* Contact page: the old site's H3s, sized like the section headings they replace. */
.bp-contact-heading {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.bp-contact-form-title {
    margin-bottom: 1.25rem;
}

/* Home page shortcut tiles. */
.home-tiles {
    background: var(--cream);
    padding: 3rem var(--container-px) 0;
}

.home-tiles__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    background: var(--navy-900);
    text-decoration: none;
}

.home-tile__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.home-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 22, 44, 0) 35%, rgba(11, 22, 44, 0.82) 100%);
}

.home-tile__title {
    position: absolute;
    z-index: 1;
    left: 1rem;
    right: 1rem;
    bottom: 0.9rem;
    margin: 0;
    color: var(--white);
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 400;
    line-height: 1.2;
}

.home-tile:hover .home-tile__img,
.home-tile:focus-visible .home-tile__img {
    transform: scale(1.05);
}

.home-tile:focus-visible {
    outline: 3px solid var(--brand-700);
    outline-offset: 3px;
}

@media (min-width: 900px) {
    .home-tiles__inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* Home page "Community Minded" section. */
.home-community {
    background: var(--white);
    padding: clamp(3.5rem, 7vw, 6rem) var(--container-px);
}

.home-community__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.home-community__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.home-community__body {
    color: rgba(11, 22, 44, 0.75);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 36rem;
    margin: 1.25rem 0 2rem;
}

@media (min-width: 900px) {
    .home-community__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* An option the visitor's other filters leave with no listings. */
.prop-filter-check.is-empty .prop-filter-check__text,
.prop-filter-check.is-empty .prop-filter-check__box {
    opacity: 0.45;
}

/* Loading state */
.property-grid.is-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* Pagination (AJAX-generated) */
.property-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem 0;
}

.property-pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid var(--sand-200);
    border-radius: 2px;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    color: var(--navy-800);
    text-decoration: none;
    cursor: pointer;
}

.property-pagination .page-numbers:hover {
    border-color: var(--brand-800);
    color: var(--brand-800);
}

.property-pagination .page-numbers.current {
    background: var(--brand-800);
    color: var(--white);
    border-color: var(--brand-800);
}

/* Search input in filter bar */
.prop-filter-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 18rem;
    max-width: 28rem;
}

.prop-filter-search__icon {
    position: absolute;
    left: 0.7rem;
    pointer-events: none;
    opacity: 0.4;
    color: var(--navy-900);
}

.prop-filter-search {
    font-family: var(--font-body);
    font-size: 0.8rem;
    padding: 0.6rem 0.9rem 0.6rem 2.2rem;
    border: 1px solid var(--sand-300);
    border-radius: 2px; /* Square, to match the filter buttons. */
    background: var(--white);
    color: var(--navy-900);
    outline: none;
    width: 100%;
    transition: border-color 0.15s ease, width 0.2s ease;
}

.prop-filter-search:focus {
    border-color: var(--brand-800);
}

.prop-filter-search::placeholder {
    color: rgba(11, 22, 44, 0.4);
}

/* Price dropdown panel */
.prop-filter-panel--price {
    padding: 0.85rem 1rem;
    min-width: 200px;
}

.prop-price-field + .prop-price-field {
    margin-top: 0.7rem;
}

.prop-price-field__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(11, 22, 44, 0.5);
    margin-bottom: 0.3rem;
}

.prop-price-field__input-wrap {
    display: flex;
    align-items: center;
    background: var(--sand-100);
    border: 1px solid var(--sand-200);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.prop-price-field__input-wrap:focus-within {
    border-color: var(--brand-800);
}

.prop-price-field__prefix {
    padding: 0.5rem 0 0.5rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(11, 22, 44, 0.4);
    line-height: 1;
    user-select: none;
}

.prop-price-field__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0.5rem 0.5rem 0.25rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--navy-900);
    outline: none;
    min-width: 0;
    -moz-appearance: textfield;
}

.prop-price-field__input::-webkit-outer-spin-button,
.prop-price-field__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.prop-price-field__input::placeholder {
    color: rgba(11, 22, 44, 0.35);
}

/* Mid widths: compact pills (no icons) so the filter row stays on one line. */
@media (min-width: 900px) and (max-width: 1279px) {
    .prop-filters__pills {
        gap: 0.4rem;
    }
    .prop-filters__pills .prop-filter-btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.74rem;
        letter-spacing: 0.03em;
    }
    .prop-filters__pills .prop-filter-btn__icon {
        display: none;
    }
}

/* Mobile: stack pills and meta vertically */
@media (max-width: 899px) {
    .prop-filters__top {
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    .prop-filter-search-wrap {
        flex-basis: 100%;
        max-width: none;
    }
    .prop-filters__pills {
        gap: 0.4rem;
    }
    .prop-filters__meta {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        gap: 0.5rem 1rem;
    }
    .prop-filters__count {
        white-space: normal;
    }
    .prop-sort__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .prop-filter {
        position: static;
    }
    .prop-filter-panel {
        left: 1rem;
        right: 1rem;
        min-width: 160px;
        max-width: calc(100vw - 2rem);
    }
    .prop-filter-panel--price {
        min-width: 0;
    }
}

@media (min-width: 1024px) {
    .prop-filters {
        top: 80px;
    }
}

.no-properties-wrap {
    text-align: center;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.no-properties-wrap[hidden] {
    display: none;
}

/* ---------------------------------------------------------
   13. WORDPRESS CORE OVERRIDES
   --------------------------------------------------------- */
.wp-block-image img {
    border-radius: 4px;
}

/* Pagination */
.nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem 0;
}

.nav-links .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid var(--sand-200);
    border-radius: 2px;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    color: var(--navy-800);
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background: var(--brand-800);
    color: var(--white);
    border-color: var(--brand-800);
}

/* Mobile contact bar body padding */
@media (max-width: 767px) {
    body {
        padding-bottom: 4.5rem;
    }
}

/* WordPress admin bar offset */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ── Unavailable property banner ─────────────────────────────────────────── */

.listing-unavailable-banner {
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    padding: 1rem 0;
}

.listing-unavailable-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.listing-unavailable-icon {
    flex-shrink: 0;
    color: #d97706;
    display: flex;
    align-items: center;
}

.listing-unavailable-text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.listing-unavailable-text strong {
    font-size: 0.95rem;
    color: #92400e;
}

.listing-unavailable-text span {
    font-size: 0.82rem;
    color: #78350f;
}

.listing-unavailable-cta {
    flex-shrink: 0;
    border-color: #d97706;
    color: #92400e;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    white-space: nowrap;
}

.listing-demo-banner {
    background: #eff6ff;
    border-bottom-color: #3b82f6;
}

.listing-demo-banner .listing-unavailable-icon {
    color: #2563eb;
}

.listing-demo-banner .listing-unavailable-text strong {
    color: #1e3a8a;
}

.listing-demo-banner .listing-unavailable-text span {
    color: #1e40af;
}

.listing-demo-disabled {
    cursor: not-allowed;
    opacity: 0.72;
    text-align: center;
}

.listing-password-container {
    min-height: 62vh;
    display: grid;
    place-items: center;
}

.listing-password-card {
    width: min(100%, 620px);
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid rgba(11, 22, 44, 0.12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(11, 22, 44, 0.1);
}

.listing-password-card h1 {
    margin: 0.5rem 0 1rem;
    color: var(--brand-900);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
}

.listing-password-card > p:not(.bp-eyebrow) {
    margin-bottom: 1.5rem;
    color: rgba(11, 22, 44, 0.72);
}

.listing-password-card .post-password-form p:last-child {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 0;
}

.listing-password-card .post-password-form label {
    flex: 1;
    font-weight: 700;
    color: var(--brand-900);
}

.listing-password-card .post-password-form input[type="password"] {
    width: 100%;
    margin-top: 0.45rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(11, 22, 44, 0.22);
    border-radius: 5px;
}

.listing-password-card .post-password-form input[type="submit"] {
    min-height: 46px;
    padding: 0.75rem 1.25rem;
    border: 0;
    border-radius: 5px;
    background: var(--brand-800);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 560px) {
    .listing-password-card .post-password-form p:last-child {
        align-items: stretch;
        flex-direction: column;
    }
}

/* ── Rent By Room banner ────────────────────────────────────────────────── */

.listing-rbr-banner {
    background: #e0f2f1;
    border: 1px solid #80cbc4;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.listing-rbr-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.listing-rbr-icon {
    flex-shrink: 0;
    color: #00796b;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.listing-rbr-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.listing-rbr-text strong {
    font-size: 0.95rem;
    color: #004d40;
}

.listing-rbr-text span {
    font-size: 0.82rem;
    color: #00695c;
    line-height: 1.4;
}

.listing-unavailable-cta:hover {
    background: #d97706;
    color: #fff;
    border-color: #d97706;
}

@media (max-width: 640px) {
    .listing-unavailable-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .listing-unavailable-cta {
        align-self: stretch;
        text-align: center;
    }
}

/* ── Similar available properties section ────────────────────────────────── */

.similar-properties-section {
    background: var(--cream);
    border-top: 1px solid var(--sand-200);
    padding: clamp(3.5rem, 7vw, 6rem) var(--container-px);
    margin-top: clamp(3rem, 6vw, 5rem);
}

.similar-properties-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.similar-properties-header {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 2.5rem;
}

.similar-properties-kicker {
    margin-left: auto;
    margin-right: auto;
}

.similar-properties-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--navy-900);
    margin: 0 0 0.5rem;
}

.similar-properties-sub {
    color: rgba(11, 22, 44, 0.62);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.similar-properties-grid {
    margin-bottom: 2.5rem;
}

.similar-properties-footer {
    display: flex;
    justify-content: center;
}

.similar-properties-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
}

.property-card-no-image {
    background: var(--sand-100);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: rgba(11, 22, 44, 0.45);
}

/* --------------------------------------------------------
   3D / 360 tours and video triggers without a thumbnail
-------------------------------------------------------- */
.sidebar-tours {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sand-200);
}

.sidebar-tour-list {
    display: grid;
    gap: 0.6rem;
}

.property-tour-trigger {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--brand-800);
    border-radius: 4px;
    background: var(--ice-100);
    color: var(--brand-900);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base);
}

.property-tour-trigger svg {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
}

.property-tour-trigger:hover,
.property-tour-trigger:focus-visible {
    background: var(--brand-800);
    color: var(--white);
}

.property-video-trigger--plain {
    background: linear-gradient(135deg, var(--navy-800), var(--brand-900));
}

.property-video-modal.is-tour .property-video-modal__frame {
    aspect-ratio: auto;
    height: min(78vh, 46rem);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* --------------------------------------------------------
   Community landing pages (page-community.php)
   Built on the bp-* page components; fonts and colors come
   from the theme (Playfair Display headings, Lato body).
-------------------------------------------------------- */
/* Community headings run longer than the site's usual section titles. */
.community-page .bp-section__header {
    max-width: 54rem;
}

.community-page h2 {
    text-wrap: balance;
}

.community-page .bp-section__header p {
    max-width: 46rem;
}

.community-page .community-faq-wrap .bp-section__header p {
    margin-inline: auto;
}

.community-hero__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-hero {
    min-height: clamp(30rem, 72vh, 44rem);
    align-items: flex-end;
}

.community-hero .bp-page-hero__inner {
    /* The site header (64-80px) overlays the hero; start the copy below it. */
    padding-top: clamp(7rem, 11vw, 9rem);
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.community-hero h1 {
    max-width: 52rem;
}

.community-hero__tagline {
    display: block;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.55em;
    font-style: italic;
    line-height: 1.25;
}

.community-stack {
    display: grid;
    gap: clamp(3.5rem, 8vw, 6rem);
}

.community-copy h2,
.community-story__text h2,
.community-inquire h2 {
    color: var(--navy-900);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.community-copy h3 {
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    margin-bottom: 0.9rem;
}

.community-copy p,
.community-inquire .community-copy p {
    color: rgba(11, 22, 44, 0.68);
    line-height: 1.8;
}

.community-copy p + p {
    margin-top: 0.9rem;
}

.community-facts {
    margin: 1.25rem 0 0;
    padding: 0;
}

/* Bullet lists run down two columns (5+4, 4+4...) and drop to one
   column when the space is narrower than two readable columns. */
.community-facts,
.community-amenities__col .bp-check-list {
    display: block;
    columns: 2 14rem;
    column-gap: 2rem;
}

.community-facts li,
.community-amenities__col .bp-check-list li {
    break-inside: avoid;
    margin-bottom: 0.55rem;
}

.community-facts li:last-child,
.community-amenities__col .bp-check-list li:last-child {
    margin-bottom: 0;
}

.community-media img {
    aspect-ratio: 4 / 3;
}

@media (min-width: 860px) {
    .community-media--tall img {
        aspect-ratio: 4 / 5;
    }
}

/* Amenities: light and navy columns */
.community-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 1.25rem;
}

.community-amenities__col {
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: 4px;
    padding: clamp(1.6rem, 3.5vw, 2.5rem);
    box-shadow: 0 10px 32px rgba(11, 22, 44, 0.06);
}

.community-amenities__col h3 {
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1.1rem;
}

.community-amenities__kicker {
    color: var(--brand-800);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.community-amenities__col .bp-check-list {
    padding: 0;
    margin: 0;
}

.community-amenities__note {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sand-200);
    color: rgba(11, 22, 44, 0.6);
    font-size: 0.92rem;
    line-height: 1.7;
}

.community-amenities__col--dark {
    background: var(--navy-900);
    border-color: var(--navy-900);
}

.community-amenities__col--dark h3,
.community-amenities__col--dark .bp-check-list li {
    color: var(--white);
}

.community-amenities__col--dark .community-amenities__kicker {
    color: var(--sand-400);
}

.community-amenities__col--dark .community-amenities__note {
    color: rgba(255, 255, 255, 0.72);
    border-top-color: rgba(255, 255, 255, 0.16);
}

/* Floor plan and lifestyle cards */
.community-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1.25rem;
}

.community-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(11, 22, 44, 0.06);
}

.community-card__media {
    background: var(--sand-200);
}

.community-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}

.community-card--plan .community-card__media {
    background: var(--white);
    border-bottom: 1px solid var(--sand-200);
}

.community-card--plan .community-card__media img {
    object-fit: contain;
    padding: 0.75rem;
}

.community-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.35rem 1.35rem 1.5rem;
}

.community-card__body h3 {
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.55rem;
}

.community-card__body p {
    color: rgba(11, 22, 44, 0.64);
    line-height: 1.7;
}

.community-card__price {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--brand-800) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Gallery: three staggered columns */
.community-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.community-gallery__col {
    display: grid;
    gap: 1rem;
}

.community-gallery__col--offset {
    margin-top: 3rem;
}

.community-gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    background: var(--sand-200);
    box-shadow: 0 10px 32px rgba(11, 22, 44, 0.08);
}

.community-gallery__item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

@media (min-width: 768px) {
    .community-gallery__col:nth-child(odd) .community-gallery__item:last-child img,
    .community-gallery__col--offset .community-gallery__item:first-child img {
        aspect-ratio: 4 / 5;
    }
}

.community-gallery__item:hover img {
    transform: scale(1.03);
}

@media (max-width: 767px) {
    .community-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Even two-column grid on phones instead of staggered columns. */
    .community-gallery__col {
        display: contents;
    }

    .community-gallery__item img {
        aspect-ratio: 1 / 1;
    }
}

/* Side-by-side community comparison (reuses the amenities cards) */
.community-compare__rows {
    margin: 0;
}

.community-compare__rows > div {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--sand-200);
}

.community-compare__rows dt {
    color: var(--navy-900);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-top: 0.2rem;
}

.community-compare__rows dd {
    margin: 0;
    color: rgba(11, 22, 44, 0.7);
    line-height: 1.6;
}

.community-compare__cta {
    margin-top: 2rem;
    text-align: center;
    color: rgba(11, 22, 44, 0.7);
}

.community-compare__cta a {
    color: var(--brand-800);
    font-weight: 700;
}

@media (max-width: 480px) {
    .community-compare__rows > div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* 360° virtual tour */
.community-tour__frame {
    margin: 0;
}

.community-tour__frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 4px;
    background: var(--sand-200);
    box-shadow: 0 10px 32px rgba(11, 22, 44, 0.1);
}

.community-tour__frame figcaption {
    margin-top: 0.6rem;
    color: rgba(11, 22, 44, 0.6);
    font-size: 0.85rem;
    text-align: center;
}

/* Peace-of-mind photo trio: one wide photo over two */
.community-comfort__photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.community-comfort__photos .community-gallery__item:first-child {
    grid-column: 1 / -1;
}

.community-comfort__photos .community-gallery__item img {
    aspect-ratio: 4 / 3;
}

.community-comfort__photos .community-gallery__item:first-child img {
    aspect-ratio: 16 / 9;
}

/* Navy neighborhood story */
.community-story .community-story__text h2 {
    color: var(--white);
}

.community-story__text p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.85;
    margin-bottom: 1rem;
}

/* FAQ accordion */
.community-faq-wrap .bp-section__header {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.community-faq {
    max-width: 52rem;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.community-faq__item {
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(11, 22, 44, 0.05);
}

.community-faq__item summary {
    position: relative;
    padding: 1.15rem 3.25rem 1.15rem 1.35rem;
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    cursor: pointer;
    list-style: none;
}

.community-faq__item summary::-webkit-details-marker {
    display: none;
}

.community-faq__item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.35rem;
    transform: translateY(-50%);
    color: var(--brand-800);
    font-family: var(--font-sans);
    font-size: 1.5rem;
    line-height: 1;
}

.community-faq__item[open] summary::after {
    content: "\2212";
}

.community-faq__item summary:focus-visible {
    outline: 2px solid var(--brand-700);
    outline-offset: 2px;
}

.community-faq__answer {
    padding: 0 1.35rem 1.25rem;
}

.community-faq__answer p {
    color: rgba(11, 22, 44, 0.68);
    line-height: 1.8;
}

.community-faq__answer a {
    color: var(--brand-800);
    text-decoration: underline;
}

/* Inquiry */
.community-contact {
    margin-top: 1.5rem;
}

.community-contact div {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
}

.community-contact strong {
    min-width: 3.5rem;
    color: var(--navy-900);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.community-contact a {
    color: var(--brand-800);
}

.community-form-card {
    border: 1px solid var(--sand-200);
    border-radius: 4px;
    box-shadow: 0 18px 48px rgba(11, 22, 44, 0.08);
}

/* --------------------------------------------------------
   Homepage move-ins popup (template-parts/home-popup.php)
-------------------------------------------------------- */
.bp-popup[hidden] {
    display: none;
}

.bp-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
}

.bp-popup__content {
    position: relative;
    width: min(720px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.bp-popup__image {
    display: block;
    width: 100%;
    height: auto;
}

.bp-popup__body {
    padding: 26px 28px 30px;
}

.bp-popup__body p {
    margin: 0 0 20px;
    color: #333;
    font: 18px/1.5 var(--font-sans);
}

.bp-popup__button {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 6px;
    background: #0878b9;
    color: #fff;
    font: 700 15px/1 var(--font-sans);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bp-popup__button:hover,
.bp-popup__button:focus-visible {
    background: #065f93;
    color: #fff;
}

.bp-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    cursor: pointer;
    font-size: 30px;
    line-height: 38px;
}

@media (max-width: 600px) {
    .bp-popup {
        padding: 12px;
    }

    .bp-popup__body {
        padding: 20px;
    }

    .bp-popup__body p {
        font-size: 16px;
    }
}

/* --------------------------------------------------------
   Accessibility
-------------------------------------------------------- */
/* Light gold stays on dark backgrounds (photo heroes, navy sections). */
.bp-page-hero .bp-eyebrow,
.bp-section--navy .bp-eyebrow,
.community-story .bp-eyebrow {
    color: var(--sand-400);
}

.skip-link:focus {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100000;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    margin: 0;
    padding: 0.75rem 1.1rem;
    background: var(--white);
    color: var(--navy-900);
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(11, 22, 44, 0.2);
    text-decoration: none;
}


/* Thank-you pages (page-thank-you.php). */
.thank-you-page__body {
    width: min(var(--container-max), calc(100% - 2 * var(--container-px)));
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.thank-you-page__text {
    max-width: 44rem;
    margin: 0 0 1.75rem;
    color: var(--navy-900);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

/* ---- Filter bar in Bissonette blue (stands out from the page) ---- */
.prop-filters {
    background: var(--brand-800);
    border-bottom: 0;
    box-shadow: 0 2px 10px rgba(11, 22, 44, 0.12);
}

.prop-filters__pills {
    border-top-color: rgba(255, 255, 255, 0.25);
}

.prop-filters__count {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
}

.prop-sort {
    color: var(--white);
}

.prop-sort__select,
.prop-filter-btn {
    border-color: var(--white);
}

.prop-filter-btn:hover,
.prop-filter.is-open .prop-filter-btn {
    border-color: var(--white);
    background: var(--sand-100);
    color: var(--brand-900);
}

/* A chosen filter: navy pill with a white ring (blue on blue would vanish). */
.prop-filter-btn.is-active,
.prop-filter-btn.is-active:hover,
.prop-filter.is-open .prop-filter-btn.is-active {
    background: var(--navy-900);
    border-color: var(--white);
    color: var(--white);
}

.prop-filters__clear,
.prop-filters__clear:hover {
    color: var(--white);
}

.prop-filters__clear:hover {
    text-decoration-thickness: 2px;
}

.prop-filters :focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* ---- Page links under a listing grid: the same buttons before and after filtering ---- */
#property-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem 0;
}

#property-pagination .property-pagination,
#property-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0;
    margin: 0;
}

#property-pagination .page-numbers {
    padding: 0.55rem 1rem;
    border: 1px solid var(--sand-300);
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-800);
    background: var(--white);
    text-decoration: none;
    transition: all var(--transition-base);
}

#property-pagination a.page-numbers:hover {
    border-color: var(--brand-800);
    color: var(--brand-800);
}

#property-pagination .page-numbers.current {
    background: var(--brand-800);
    border-color: var(--brand-800);
    color: var(--white);
}

#property-pagination .page-numbers.dots {
    border-color: transparent;
    background: none;
}

/* ---- Filter bar on phones, short screens and tablets ----
   Tablets and up: pinned directly under the 80px header.
   Phones, and any short screen (a phone held sideways): the bar is too tall to
   keep pinned (it covered about half the screen and cut off its own
   dropdowns), so it scrolls away with the page. It stays "relative", not
   "static": below 900px the dropdowns are positioned against the bar. */
@media (min-width: 768px) {
    .prop-filters {
        top: 80px;
    }
}

@media (max-width: 767px), (max-height: 600px) {
    .prop-filters {
        position: relative;
        top: auto;
    }
}

/* ---- Page not found (404.php) ---- */
.not-found-page__body {
    width: min(var(--container-max), calc(100% - 2 * var(--container-px)));
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3.5rem, 8vw, 6rem);
    color: var(--navy-900);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

.not-found-page__body > p {
    max-width: 44rem;
    margin: 0 0 1.75rem;
}

.not-found-search {
    max-width: 36rem;
    margin: 0 0 2rem;
}

.not-found-search label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.not-found-search__row {
    display: flex;
    gap: 0.75rem;
}

.not-found-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--sand-300);
    border-radius: 3px;
    background: var(--white);
    color: var(--navy-900);
    font-size: 1rem;
    padding: 0.85rem 0.95rem;
}

.not-found-search input:focus {
    outline: none;
    border-color: var(--brand-800);
    box-shadow: 0 0 0 3px rgba(0, 96, 169, 0.12);
}

.not-found-page__call {
    margin-top: 2rem !important;
    font-size: 1rem;
}

.not-found-page__call a {
    color: var(--brand-800);
    font-weight: 700;
}

/* When paging scrolls the filter bar to the top, it stops below the fixed header. */
.prop-filters {
    scroll-margin-top: 88px;
}

#prop-results-count:focus {
    outline: none;
}

#prop-results-count:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
    border-radius: 2px;
}
