/*
Theme Name: Bootstrapr Canvas
Author: ProductAdvance, inc - itisntdan
Description: A minimal, full-width canvas for WP Bootstrapr.
Version: 1.0.0
*/

/* Reset & Base */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #0a0a0a;
    /* Ensure dark background matches brand */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Nav Menu Styling (Theme Specific) */
.menu-item {
    position: relative;
}

.menu-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    text-decoration: none;
}

.menu-item a:hover {
    color: #3eb489;
    /* Mint */
}

/* ===========================================================================
   Blog Typography — .bsr-prose
   Used by single posts (article body). Uses theme CSS vars with safe fallbacks.
   =========================================================================== */
.bsr-prose {
    font-family: var(--bsr-font-body, system-ui, -apple-system, sans-serif);
    color: var(--bsr-text-secondary, rgba(255, 255, 255, 0.78));
    font-size: 1.125rem;
    line-height: 1.75;
    word-wrap: break-word;
}

.bsr-prose > * + * {
    margin-top: 1.5rem;
}

.bsr-prose h1,
.bsr-prose h2,
.bsr-prose h3,
.bsr-prose h4,
.bsr-prose h5,
.bsr-prose h6 {
    font-family: var(--bsr-font-display, var(--bsr-font-body, sans-serif));
    color: var(--bsr-text-primary, #ffffff);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.bsr-prose h1 {
    font-size: 2.75rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

.bsr-prose h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.bsr-prose h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.bsr-prose h4 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.bsr-prose h5,
.bsr-prose h6 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bsr-prose p {
    margin: 0 0 1.5rem 0;
}

.bsr-prose a {
    color: var(--bsr-brand-primary, #3eb489);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease;
}

.bsr-prose a:hover {
    color: var(--bsr-brand-accent, var(--bsr-brand-primary, #3eb489));
    text-decoration-thickness: 2px;
}

.bsr-prose strong,
.bsr-prose b {
    color: var(--bsr-text-primary, #ffffff);
    font-weight: 700;
}

.bsr-prose em,
.bsr-prose i {
    font-style: italic;
}

.bsr-prose blockquote {
    border-left: 4px solid var(--bsr-brand-primary, #3eb489);
    background: rgba(255, 255, 255, 0.02);
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--bsr-text-primary, #ffffff);
    border-radius: 0 0.5rem 0.5rem 0;
}

.bsr-prose blockquote p:last-child {
    margin-bottom: 0;
}

.bsr-prose blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    font-style: normal;
    color: var(--bsr-text-secondary, rgba(255, 255, 255, 0.6));
}

.bsr-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
    background: rgba(255, 255, 255, 0.07);
    color: var(--bsr-text-primary, #ffffff);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bsr-prose pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 2rem 0;
}

.bsr-prose pre code {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--bsr-text-primary, #ffffff);
}

.bsr-prose ul,
.bsr-prose ol {
    margin: 1.5rem 0;
    padding-left: 1.75rem;
}

.bsr-prose ul {
    list-style: disc;
}

.bsr-prose ol {
    list-style: decimal;
}

.bsr-prose li {
    margin: 0.5rem 0;
}

.bsr-prose li::marker {
    color: var(--bsr-brand-primary, #3eb489);
}

.bsr-prose li > ul,
.bsr-prose li > ol {
    margin: 0.5rem 0;
}

.bsr-prose img,
.bsr-prose figure {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.bsr-prose figure img {
    margin: 0;
}

.bsr-prose figcaption {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--bsr-text-secondary, rgba(255, 255, 255, 0.55));
    font-style: italic;
}

.bsr-prose hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    margin: 3rem 0;
}

.bsr-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.bsr-prose th,
.bsr-prose td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bsr-prose th {
    color: var(--bsr-text-primary, #ffffff);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
}

.bsr-prose kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom-width: 2px;
    padding: 0.1em 0.4em;
    border-radius: 0.25rem;
}

/* Responsive size tweaks for narrow viewports */
@media (max-width: 640px) {
    .bsr-prose {
        font-size: 1.0625rem;
    }
    .bsr-prose h1 { font-size: 2rem; margin-top: 2.5rem; }
    .bsr-prose h2 { font-size: 1.6rem; margin-top: 2rem; }
    .bsr-prose h3 { font-size: 1.3rem; margin-top: 1.5rem; }
    .bsr-prose blockquote { font-size: 1.125rem; padding: 1rem 1.25rem; }
}

/* ===========================================================================
   Blog Layout Utilities
   =========================================================================== */

/* Line-clamp helpers (used on post cards) */
.bsr-line-clamp-2,
.bsr-line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bsr-line-clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.bsr-line-clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

/* Post card base */
.bsr-post-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

/* Title color always reacts to hover regardless of card-hover style */
.bsr-post-card:hover .bsr-post-card-title {
    color: var(--bsr-brand-primary, #3eb489);
}

/* Hover style: LIFT (default) — translate + shadow */
.bsr-cards-hover-lift .bsr-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(var(--bsr-brand-primary-rgb, 62, 180, 137), 0.4) !important;
}

/* Hover style: GLOW — no transform, brand-colored outline + soft glow */
.bsr-cards-hover-glow .bsr-post-card:hover {
    box-shadow:
        0 0 0 1px var(--bsr-brand-primary, #3eb489),
        0 8px 30px rgba(var(--bsr-brand-primary-rgb, 62, 180, 137), 0.25);
    border-color: var(--bsr-brand-primary, #3eb489) !important;
}

/* Hover style: NONE — no transform or shadow (title color hover still applies) */
.bsr-cards-hover-none .bsr-post-card:hover {
    transform: none;
    box-shadow: none;
}

/* Blog/archive grid spacing fallback (Tailwind utilities also used inline) */
.bsr-post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .bsr-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .bsr-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Numeric pagination */
.bsr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 3rem auto;
}
.bsr-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    color: var(--bsr-text-secondary, rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.bsr-pagination .page-numbers:hover {
    color: #fff;
    border-color: var(--bsr-brand-primary, #3eb489);
}
.bsr-pagination .page-numbers.current {
    background: var(--bsr-brand-primary, #3eb489);
    border-color: var(--bsr-brand-primary, #3eb489);
    color: #fff;
}
.bsr-pagination .page-numbers.dots {
    border: 0;
    background: transparent;
}

/* =========================================================================
   Real Estate Module - Property Listings
   ========================================================================= */

/* --- Grid --- */
.bsr-property-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(3, 1fr);
}
.bsr-property-grid.bsr-cols-1 { grid-template-columns: 1fr; }
.bsr-property-grid.bsr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bsr-property-grid.bsr-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bsr-property-grid.bsr-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
    .bsr-property-grid.bsr-cols-3,
    .bsr-property-grid.bsr-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .bsr-property-grid { grid-template-columns: 1fr; }
}
.bsr-properties-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bsr-text-secondary, #64748b);
}

/* --- Card --- */
.bsr-property-card {
    display: block;
    background: var(--bsr-bg-surface, #ffffff);
    border: 1px solid var(--bsr-border, rgba(10,46,93,0.10));
    border-radius: var(--bsr-radius-lg, 14px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 22px rgba(10, 46, 93, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bsr-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10, 46, 93, 0.14);
}
.bsr-property-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bsr-bg-surface-alt, #eef2f6);
    overflow: hidden;
}
.bsr-property-img,
.bsr-property-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.bsr-property-card:hover .bsr-property-img { transform: scale(1.05); }
.bsr-property-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--bsr-text-muted, #94a3b8);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.bsr-property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--bsr-brand-primary, #0A2E5D);
}
.bsr-property-badge.bsr-status-sold       { background: #b91c1c; }
.bsr-property-badge.bsr-status-pending    { background: #b45309; }
.bsr-property-badge.bsr-status-for-lease  { background: #3D7CC9; }
.bsr-property-body { padding: 1.1rem 1.25rem 1.35rem; }
.bsr-property-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--bsr-brand-primary, #0A2E5D);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}
.bsr-property-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: var(--bsr-text-primary, #0f172a);
}
.bsr-property-address {
    font-size: 0.9rem;
    color: var(--bsr-text-secondary, #64748b);
    margin-bottom: 0.85rem;
}
.bsr-property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--bsr-border, rgba(10,46,93,0.08));
    font-size: 0.85rem;
    color: var(--bsr-text-secondary, #64748b);
}
.bsr-property-specs strong {
    color: var(--bsr-text-primary, #0f172a);
    font-weight: 700;
}

/* --- Property search bar (two-tier "floating card" layout) --- */
.bsr-property-search { width: 100%; box-sizing: border-box; }
.bsr-property-search * { box-sizing: border-box; }
.bsr-property-search .bsr-search-form { margin: 0; }
.bsr-property-search .bsr-search-heading {
    font-family: var(--bsr-font-display, var(--bsr-font-body, serif));
    color: var(--bsr-text-primary, inherit);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 1.4rem;
    text-align: center;
}

/* The card: a crisp white panel hovering above the page/hero */
.bsr-property-search .bsr-search-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e7ecf3;
    border-radius: 22px;
    padding: 20px;
    box-shadow:
        0 26px 64px -24px rgba(10, 46, 93, 0.5),
        0 3px 8px rgba(10, 46, 93, 0.06);
}

/* Top row: large keyword field + prominent submit */
.bsr-property-search .bsr-search-primary {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

/* Bottom row: filters in a comfortable auto-fitting grid */
.bsr-property-search .bsr-search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

/* A labeled field */
.bsr-property-search .bsr-search-seg {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bsr-property-search .bsr-search-primary .bsr-seg-keyword { flex: 1 1 auto; }

.bsr-property-search .bsr-search-seg label {
    display: block;
    font-family: var(--bsr-font-body, sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a8aa0;
    transition: color 0.18s ease;
    white-space: nowrap;
}
.bsr-property-search .bsr-search-seg:focus-within label { color: var(--bsr-brand-secondary, #3D7CC9); }

/* Field controls sit in a soft, clearly bordered chip */
.bsr-property-search .bsr-seg-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    border: 1px solid #dce3ee;
    background: #f6f9fc;
    border-radius: 12px;
    padding: 0 14px;
    height: 52px;
    font-family: var(--bsr-font-body, sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: #0f1f3a;
    outline: none;
    text-overflow: ellipsis;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.bsr-property-search .bsr-seg-input:hover { border-color: #c4d0e2; }
.bsr-property-search .bsr-seg-input:focus {
    border-color: var(--bsr-brand-secondary, #3D7CC9);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(61, 124, 201, 0.16);
}
.bsr-property-search input.bsr-seg-input { cursor: text; }
.bsr-property-search select.bsr-seg-input { cursor: pointer; }
.bsr-property-search .bsr-seg-input::placeholder { color: #9fb0c6; font-weight: 500; }

/* Custom caret for the select controls */
.bsr-property-search select.bsr-seg-input {
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233D7CC9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
}

/* Keyword field: leading search icon inside the chip */
.bsr-property-search .bsr-seg-control { position: relative; }
.bsr-property-search .bsr-seg-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--bsr-brand-secondary, #3D7CC9);
    pointer-events: none;
}
.bsr-property-search .bsr-seg-control .bsr-seg-input {
    height: 56px;
    padding-left: 46px;
    font-size: 1.05rem;
}

/* Search button */
.bsr-property-search .bsr-search-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 34px;
    height: 56px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bsr-brand-primary, #0A2E5D) 0%, var(--bsr-brand-secondary, #3D7CC9) 100%);
    color: #ffffff;
    font-family: var(--bsr-font-body, sans-serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 12px 24px -8px rgba(61, 124, 201, 0.7);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.bsr-property-search .bsr-search-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow: 0 18px 32px -8px rgba(61, 124, 201, 0.85);
}
.bsr-property-search .bsr-search-btn:active { transform: translateY(0); }
.bsr-property-search .bsr-search-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* Mobile: stack the keyword and button, single-column filters */
@media (max-width: 600px) {
    .bsr-property-search .bsr-search-bar { padding: 14px; border-radius: 18px; gap: 12px; }
    .bsr-property-search .bsr-search-primary { flex-direction: column; align-items: stretch; }
    .bsr-property-search .bsr-search-btn { width: 100%; }
    .bsr-property-search .bsr-search-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
    .bsr-property-search .bsr-search-filters { grid-template-columns: 1fr; }
}

/* --- Single property (refined luxury listing) --- */
.bsr-property-single {
    width: 100%;
    background:
        radial-gradient(1100px 420px at 85% -8%, rgba(61, 124, 201, 0.07), transparent 70%),
        var(--bsr-bg-page, #ffffff);
    color: var(--bsr-text-primary, #0f172a);
}
.bsr-property-single .bsr-pp-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4.5rem;
}

/* Gallery: adapts to the number of photos */
.bsr-pp-gallery {
    display: grid;
    gap: 12px;
    margin-bottom: 2.25rem;
}
.bsr-pp-gallery a {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #eef2f8;
    box-shadow: 0 18px 40px -28px rgba(10, 46, 93, 0.55);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
.bsr-pp-gallery a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10, 46, 93, 0.28));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.bsr-pp-gallery a:hover { transform: translateY(-3px); box-shadow: 0 26px 52px -26px rgba(10, 46, 93, 0.6); }
.bsr-pp-gallery a:hover::after { opacity: 1; }
.bsr-pp-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bsr-pp-gallery a:hover img { transform: scale(1.045); }

/* "+N more" overlay on the last visible thumb */
.bsr-pp-more {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 46, 93, 0.55);
    color: #fff;
    font-family: var(--bsr-font-display, sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* 1 photo: a single cinematic hero */
.bsr-pp-gallery--n1 { grid-template-columns: 1fr; }
.bsr-pp-gallery--n1 a { aspect-ratio: 16 / 9; max-height: 560px; }

/* 2 photos: side by side */
.bsr-pp-gallery--n2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 380px; }

/* 3 photos: large lead + stacked pair */
.bsr-pp-gallery--n3 { grid-template-columns: 2fr 1fr; grid-auto-rows: 188px; }
.bsr-pp-gallery--n3 .bsr-pp-main { grid-row: span 2; grid-column: 1; }

/* 4-5 photos: editorial mosaic */
.bsr-pp-gallery--n4,
.bsr-pp-gallery--n5 { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 215px; }
.bsr-pp-gallery--n4 .bsr-pp-main,
.bsr-pp-gallery--n5 .bsr-pp-main { grid-row: span 2; grid-column: 1; }

@media (max-width: 768px) {
    .bsr-pp-gallery--n2,
    .bsr-pp-gallery--n3,
    .bsr-pp-gallery--n4,
    .bsr-pp-gallery--n5 { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
    .bsr-pp-gallery--n3 .bsr-pp-main,
    .bsr-pp-gallery--n4 .bsr-pp-main,
    .bsr-pp-gallery--n5 .bsr-pp-main { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
}

/* Header */
.bsr-pp-header { margin-bottom: 1.85rem; }
.bsr-pp-title {
    font-family: var(--bsr-font-display, serif);
    font-size: clamp(1.95rem, 3.4vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0.65rem 0 0.55rem;
    color: var(--bsr-text-primary, #0f172a);
}
.bsr-pp-address {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: var(--bsr-text-secondary, #64748b);
    margin: 0;
}
.bsr-pp-address svg { width: 18px; height: 18px; color: var(--bsr-brand-secondary, #3D7CC9); flex: 0 0 auto; }

/* Layout */
.bsr-pp-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 900px) { .bsr-pp-layout { grid-template-columns: 1fr; gap: 2rem; } }

/* Stat bar as a refined, divided strip */
.bsr-pp-statbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    border: 1px solid var(--bsr-border, #e6ebf2);
    border-radius: 16px;
    overflow: hidden;
    background: #fbfcfe;
    margin-bottom: 2rem;
}
.bsr-pp-stat { position: relative; text-align: center; padding: 1.15rem 0.75rem; }
.bsr-pp-stat + .bsr-pp-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--bsr-border, #e6ebf2);
}
.bsr-pp-stat .num {
    font-family: var(--bsr-font-display, serif);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    color: var(--bsr-brand-primary, #0A2E5D);
}
.bsr-pp-stat .lbl {
    margin-top: 0.45rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--bsr-text-secondary, #8a98ac);
}

/* Body copy */
.bsr-pp-body { font-size: 1.05rem; line-height: 1.85; color: var(--bsr-text-secondary, #475569); }
.bsr-pp-body > *:first-child { margin-top: 0; }
.bsr-pp-body h2 { font-family: var(--bsr-font-display, serif); color: var(--bsr-text-primary, #0f172a); margin-top: 2rem; }

.bsr-pp-maplink {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.5rem;
    color: var(--bsr-brand-secondary, #3D7CC9);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.18s ease;
}
.bsr-pp-maplink svg { width: 17px; height: 17px; flex: 0 0 auto; }
.bsr-pp-maplink:hover { gap: 0.65rem; }

.bsr-pp-map { margin-top: 2rem; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -28px rgba(10, 46, 93, 0.5); }
.bsr-pp-map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Sidebar contact card */
.bsr-pp-sidebar {
    position: sticky;
    top: 100px;
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
    border: 1px solid var(--bsr-border, #e6ebf2);
    border-radius: 20px;
    padding: 1.6rem 1.5rem 1.5rem;
    box-shadow: 0 30px 60px -34px rgba(10, 46, 93, 0.35);
}
.bsr-pp-sidebar .price {
    font-family: var(--bsr-font-display, serif);
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--bsr-brand-primary, #0A2E5D);
}
.bsr-pp-sidebar .mls { margin-top: 0.45rem; font-size: 0.78rem; letter-spacing: 0.05em; color: var(--bsr-text-muted, #94a3b8); }
.bsr-pp-ask {
    margin: 1.1rem 0 0.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--bsr-border, #eef2f7);
    color: var(--bsr-text-secondary, #475569);
    font-size: 0.95rem;
    font-weight: 600;
}
.bsr-pp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-align: center;
    background: var(--bsr-brand-primary, #0A2E5D);
    color: #fff;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-weight: 700;
    font-size: 0.98rem;
    margin-top: 0.65rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}
.bsr-pp-cta svg { width: 17px; height: 17px; flex: 0 0 auto; }
.bsr-pp-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(10, 46, 93, 0.55); filter: brightness(1.05); }
.bsr-pp-cta.alt { background: var(--bsr-brand-secondary, #3D7CC9); }
.bsr-pp-cta.ghost { background: transparent; color: var(--bsr-brand-primary, #0A2E5D); border-color: var(--bsr-brand-primary, #0A2E5D); }
.bsr-pp-cta.ghost:hover { background: rgba(10, 46, 93, 0.05); box-shadow: none; }

.bsr-pp-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 2.5rem;
    color: var(--bsr-brand-secondary, #3D7CC9);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.18s ease;
}
.bsr-pp-back:hover { gap: 0.7rem; }

/* Extra gallery images: present only so the lightbox can page through them all */
.bsr-pp-gallery .bsr-pp-extra { display: none; }

/* --- Universal lightbox (a[data-bsr-lightbox]) --- */
.bsr-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 5vw;
    background: rgba(8, 20, 40, 0.92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.bsr-lb.is-open { display: flex; opacity: 1; }
.bsr-lb-stage {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}
.bsr-lb-img {
    max-width: min(1100px, 90vw);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    background: #0b1b34;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: bsrLbIn 0.3s ease;
}
@keyframes bsrLbIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.bsr-lb-count {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.bsr-lb-close,
.bsr-lb-nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}
.bsr-lb-close { top: 3vh; right: 4vw; width: 46px; height: 46px; font-size: 28px; line-height: 1; }
.bsr-lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 32px; line-height: 1; }
.bsr-lb-prev { left: 2.5vw; }
.bsr-lb-next { right: 2.5vw; }
.bsr-lb-close:hover,
.bsr-lb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.bsr-lb-nav:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 600px) {
    .bsr-lb-nav { width: 44px; height: 44px; font-size: 26px; }
    .bsr-lb-prev { left: 1vw; }
    .bsr-lb-next { right: 1vw; }
    .bsr-lb-close { right: 3vw; }
}

/* --- Archive --- */
.bsr-property-archive { background: var(--bsr-bg-page, #ffffff); }
.bsr-property-archive .bsr-pa-container { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
/* Lift the search card up so it overlaps the bottom of the hero. */
.bsr-pa-searchwrap {
    position: relative;
    z-index: 5;
    margin-top: -5rem;
    margin-bottom: 2.75rem;
}
@media (max-width: 600px) {
    .bsr-pa-searchwrap { margin-top: -2.25rem; margin-bottom: 2rem; }
}