/* CPRE Property Engine Frontend
   Front-end listing and detail styling only. No admin/backend styles. */

.cpre-listing-grid,
.cpre-detail-page,
.cpre-detail-page *,
.cpre-lightbox-stack,
.cpre-lightbox-stack * {
    box-sizing: border-box;
}

.cpre-listing-grid,
.cpre-detail-page {
    --cpre-primary: var(--e-global-color-primary, #75152D);
    --cpre-deep: #510E1F;
    --cpre-light: #fefdf8;
    --cpre-cream: #E7DEC7;
    --cpre-ink: var(--e-global-color-text, #251D1F);
    --cpre-muted: rgba(37, 29, 31, 0.64);
    --cpre-line: rgba(37, 29, 31, 0.12);
    --cpre-soft: rgba(117, 21, 45, 0.055);
    --cpre-heading-font: var(--e-global-typography-primary-font-family, "Gebuk", Georgia, serif);
    --cpre-body-font: var(--e-global-typography-text-font-family, "Garet Regular", Arial, sans-serif);
    color: var(--cpre-ink);
    font-family: var(--cpre-body-font);
}

.cpre-detail-page {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(16px, 2.2vw, 28px);
    background: var(--cpre-light);
}

.cpre-gallery-strip {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(92px, 0.16fr) minmax(0, 1fr) minmax(92px, 0.16fr);
    gap: clamp(14px, 1.8vw, 24px);
    align-items: stretch;
    overflow: hidden;
    margin-bottom: clamp(34px, 4vw, 54px);
}

.cpre-gallery-strip a {
    text-decoration: none;
}

.cpre-gallery-main,
.cpre-gallery-side {
    position: relative;
    display: block;
    height: clamp(380px, 48vw, 650px);
    overflow: hidden;
    background: var(--cpre-soft);
}

.cpre-gallery-main {
    border-radius: 26px;
}

.cpre-gallery-side-left {
    border-radius: 0 22px 22px 0;
}

.cpre-gallery-side-right {
    border-radius: 22px 0 0 22px;
}

.cpre-gallery-main img,
.cpre-gallery-side img,
.cpre-listing-image img,
.cpre-lightbox img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpre-gallery-count {
    position: absolute;
    left: 24px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 9px;
    background: rgba(37, 29, 31, 0.58);
    color: #fff;
    font: 700 15px/1 var(--cpre-body-font);
    backdrop-filter: blur(8px);
}

.cpre-gallery-count::before {
    content: "▧";
    font-size: 17px;
}

.cpre-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(28px, 4vw, 60px);
    align-items: start;
}

.cpre-detail-main {
    min-width: 0;
}

.cpre-detail-header {
    margin-bottom: 26px;
}

.cpre-eyebrow {
    margin: 0 0 10px;
    color: var(--cpre-primary);
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 600;
    line-height: 1.35;
}

.cpre-detail-header h1,
.cpre-feature-section h2,
.cpre-info-section h2,
.cpre-available-units h2,
.cpre-detail-card h2,
.cpre-price-card h2,
.cpre-listing-body h3 {
    margin: 0;
    color: var(--cpre-ink);
    font-family: var(--cpre-heading-font);
    font-weight: 500;
    letter-spacing: -0.03em;
    text-transform: none;
}

.cpre-detail-header h1 {
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.98;
    max-width: 930px;
}

.cpre-detail-meta,
.cpre-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 18px;
    color: var(--cpre-muted);
    font-size: clamp(14px, 1.05vw, 17px);
}

.cpre-detail-meta span,
.cpre-specs span {
    display: inline-flex;
    align-items: center;
}

.cpre-detail-meta span + span::before,
.cpre-specs span + span::before {
    content: "•";
    margin-right: 12px;
    color: var(--cpre-muted);
}

.cpre-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 3vw, 46px);
    padding: 0 0 14px;
    margin: 0 0 30px;
    border-bottom: 1px solid var(--cpre-line);
}

.cpre-detail-tabs a {
    position: relative;
    color: var(--cpre-ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.78;
}

.cpre-detail-tabs a:first-child {
    color: var(--cpre-primary);
    opacity: 1;
}

.cpre-detail-tabs a:first-child::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -15px;
    height: 2px;
    background: var(--cpre-primary);
}

.cpre-copy-block {
    max-width: 850px;
    margin-bottom: 34px;
    color: var(--cpre-ink);
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.78;
}

.cpre-copy-block p {
    margin: 0 0 1.2em;
}

.cpre-feature-section,
.cpre-info-section,
.cpre-available-units {
    margin-top: clamp(30px, 4vw, 52px);
}

.cpre-feature-section h2,
.cpre-info-section h2,
.cpre-available-units h2,
.cpre-detail-card h2,
.cpre-price-card h2 {
    margin-bottom: 18px;
    font-size: clamp(24px, 2.4vw, 36px);
    line-height: 1.12;
}

.cpre-feature-pill-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 26px;
    max-width: 900px;
}

.cpre-feature-pill {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    gap: 13px;
    color: var(--cpre-ink);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
}

.cpre-feature-pill-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(117, 21, 45, 0.14);
    border-radius: 11px;
    background: rgba(117, 21, 45, 0.035);
    color: var(--cpre-primary);
}

.cpre-feature-pill-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
}

.cpre-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.cpre-info-item {
    padding: 16px;
    border: 1px solid var(--cpre-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
}

.cpre-info-item span,
.cpre-price-card span {
    display: block;
    margin-bottom: 7px;
    color: var(--cpre-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cpre-info-item strong {
    display: block;
    color: var(--cpre-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.cpre-detail-card,
.cpre-price-card,
.cpre-project-context-card {
    position: sticky;
    top: 24px;
    padding: clamp(22px, 2.6vw, 34px);
    border: 1px solid var(--cpre-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 50px rgba(37, 29, 31, 0.08);
}

.cpre-detail-card .cpre-info-section,
.cpre-project-context-card .cpre-info-section {
    margin-top: 0;
}

.cpre-detail-card .cpre-info-section h2,
.cpre-project-context-card .cpre-info-section h2 {
    display: none;
}

.cpre-detail-card .cpre-info-grid,
.cpre-project-context-card .cpre-info-grid {
    grid-template-columns: 1fr;
}


.cpre-unit-side-panel {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 18px;
}

.cpre-unit-side-panel .cpre-price-card,
.cpre-unit-side-panel .cpre-project-context-card {
    position: static;
}

.cpre-project-context-card {
    padding: clamp(18px, 2vw, 26px);
    background: rgba(255, 255, 255, 0.44);
    box-shadow: 0 10px 30px rgba(37, 29, 31, 0.045);
}

.cpre-project-context-card > p {
    margin: 0 0 9px;
    color: var(--cpre-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cpre-project-context-card > h2 {
    margin-bottom: 16px;
    font-size: clamp(18px, 1.4vw, 23px);
    line-height: 1.18;
}

.cpre-project-context-card .cpre-info-item {
    padding: 13px 14px;
    border-radius: 13px;
    background: rgba(254, 253, 248, 0.72);
}

.cpre-project-context-card .cpre-info-item strong {
    font-size: 14px;
    font-weight: 500;
}

.cpre-price-card div + div {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--cpre-line);
}

.cpre-price-card strong {
    color: var(--cpre-primary);
    font-size: clamp(26px, 2.5vw, 38px);
    line-height: 1.05;
}

.cpre-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
    width: 100%;
}

.cpre-listing-card {
    overflow: hidden;
    border: 1px solid var(--cpre-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(37, 29, 31, 0.07);
}

.cpre-listing-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cpre-soft);
}

.cpre-listing-body {
    padding: 18px;
}

.cpre-listing-body h3 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.08;
}

.cpre-listing-body h3 a {
    color: inherit;
    text-decoration: none;
}

.cpre-price {
    display: block;
    margin-top: 14px;
    color: var(--cpre-primary);
    font-size: 18px;
    font-weight: 800;
}

.cpre-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 4vw, 50px);
    background: rgba(0, 0, 0, 0.86);
}

.cpre-lightbox:target {
    display: flex;
}

.cpre-lightbox img {
    width: auto;
    max-width: 94vw;
    max-height: 90vh;
    border-radius: 18px;
}

.cpre-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--cpre-ink);
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .cpre-detail-layout {
        grid-template-columns: 1fr;
    }

    .cpre-detail-card,
    .cpre-price-card,
    .cpre-unit-side-panel {
        position: static;
    }

    .cpre-feature-pill-grid,
    .cpre-info-grid,
    .cpre-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cpre-detail-page {
        padding: 14px;
    }

    .cpre-gallery-strip {
        grid-template-columns: 1fr;
    }

    .cpre-gallery-side {
        display: none;
    }

    .cpre-gallery-main {
        height: clamp(280px, 78vw, 420px);
        border-radius: 20px;
    }

    .cpre-detail-header h1 {
        font-size: clamp(34px, 11vw, 48px);
    }

    .cpre-feature-pill-grid,
    .cpre-info-grid,
    .cpre-listing-grid {
        grid-template-columns: 1fr;
    }
}

/* CPRE front-end refinement patch 1.4.5 */
.cpre-detail-header h1,
.cpre-feature-section h2,
.cpre-info-section h2,
.cpre-available-units h2,
.cpre-detail-card h2,
.cpre-price-card h2,
.cpre-listing-body h3,
.cpre-section-heading h2 {
    text-transform: uppercase;
}

.cpre-detail-card,
.cpre-price-card,
.cpre-info-section,
.cpre-info-grid,
.cpre-info-item {
    min-width: 0;
    max-width: 100%;
}

.cpre-info-item strong {
    overflow-wrap: anywhere;
    word-break: normal;
    max-width: 100%;
}

.cpre-map-section {
    margin-top: clamp(34px, 4vw, 56px);
}

.cpre-section-heading {
    margin-bottom: 18px;
}

.cpre-section-kicker {
    margin: 0 0 8px;
    color: var(--cpre-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cpre-section-heading h2 {
    margin: 0;
    color: var(--cpre-ink);
    font-family: var(--cpre-heading-font);
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.cpre-map-frame {
    position: relative;
    width: 100%;
    min-height: clamp(320px, 42vw, 520px);
    overflow: hidden;
    border: 1px solid var(--cpre-line);
    border-radius: 24px;
    background: var(--cpre-soft);
}

.cpre-map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cpre-map-link {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    color: var(--cpre-primary);
    font-weight: 700;
    text-decoration: none;
}

.cpre-map-link::after {
    content: "↗";
    margin-left: 8px;
    font-size: 0.9em;
}

/* CPRE front-end refinement patch 1.4.6 */
.cpre-detail-card .cpre-info-item strong,
.cpre-price-card strong,
.cpre-listing-body h3 {
    overflow-wrap: anywhere;
    word-break: normal;
}

.cpre-detail-card .cpre-info-grid {
    width: 100%;
}

.cpre-map-section {
    scroll-margin-top: 96px;
}

.cpre-listing-card .cpre-listing-body h3 {
    font-size: clamp(28px, 2.8vw, 44px);
    line-height: 0.98;
}

/* CPRE project detail background fix 1.4.9 */
.cpre-project-detail,
.cpre-detail-page.cpre-project-detail {
    background: #fefdf8 !important;
}

/* CPRE project detail rendered background bands 1.5.0 */
.cpre-public-detail-shell,
.cpre-public-detail-shell * {
    box-sizing: border-box;
}

.cpre-public-project-shell {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #fefdf8;
    min-height: 100vh;
}

.cpre-public-project-shell .cpre-public-band {
    width: 100%;
    display: block;
    flex: 0 0 auto;
}

.cpre-public-project-shell .cpre-public-band-top {
    height: 30px;
    background: #510E1F;
}

.cpre-public-project-shell .cpre-public-band-header {
    height: 110px;
    background: #E7DEC7;
}

.cpre-public-project-shell .cpre-public-detail-body,
.cpre-public-project-shell .cpre-project-detail,
.cpre-public-project-shell .cpre-detail-page.cpre-project-detail {
    background: #fefdf8 !important;
}

/* CPRE available units layout patch 1.5.1 */
.cpre-available-units .cpre-listing-grid,
.cpre-available-units .cpre-unit-listings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 767px) {
    .cpre-available-units .cpre-listing-grid,
    .cpre-available-units .cpre-unit-listings {
        grid-template-columns: 1fr;
    }
}

/* CPRE plugin-rendered public header 1.5.2 */
body.cpre-public-body {
    margin: 0;
    background: #fefdf8;
}

body.cpre-public-body .cpre-public-detail-shell {
    background: #fefdf8;
    min-height: 100vh;
}

.cpre-plugin-header,
.cpre-plugin-header * {
    box-sizing: border-box;
}

.cpre-plugin-header {
    width: 100%;
    background: #fefdf8;
    font-family: var(--e-global-typography-text-font-family, "Garet Regular", Arial, sans-serif);
    color: #231f20;
    position: relative;
    z-index: 20;
}

.cpre-plugin-topbar {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    background: #510E1F;
    color: #fffdf8;
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
}

.cpre-plugin-topbar-inner,
.cpre-plugin-mainbar-inner {
    width: min(100%, 1640px);
    margin: 0 auto;
    padding: 0 52px;
}

.cpre-plugin-topbar-inner {
    height: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.cpre-plugin-topbar-spacer {
    flex: 1 1 auto;
}

.cpre-plugin-mainbar {
    height: 110px;
    min-height: 110px;
    max-height: 110px;
    background: #fefdf8;
    display: flex;
    align-items: center;
}

.cpre-plugin-mainbar-inner {
    height: 110px;
    min-height: 110px;
    display: grid;
    grid-template-columns: auto auto minmax(320px, 560px);
    align-items: center;
    gap: 28px;
}

.cpre-plugin-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.cpre-plugin-logo img {
    display: block;
    width: clamp(170px, 15vw, 240px);
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.cpre-plugin-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 1.6vw, 26px);
    justify-content: flex-start;
    min-width: 0;
}

.cpre-plugin-nav a {
    color: #231f20;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}

.cpre-plugin-nav a::after {
    content: "▾";
    display: inline-block;
    margin-left: 8px;
    font-size: 9px;
    opacity: 0.65;
    transform: translateY(-1px);
}

.cpre-plugin-search {
    display: grid;
    grid-template-columns: 1fr 46px;
    gap: 12px;
    align-items: center;
    margin: 0;
}

.cpre-plugin-search input {
    width: 100%;
    height: 42px;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    background: #ffffff;
    color: #231f20;
    border-radius: 0;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 400;
}

.cpre-plugin-search input:focus,
.cpre-plugin-search input:focus-visible {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.cpre-plugin-search input::placeholder {
    color: rgba(35, 31, 32, 0.48);
}

.cpre-plugin-search button {
    width: 46px;
    height: 46px;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 50%;
    background: #510E1F;
    color: #fffdf8;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.cpre-public-body .cpre-public-detail-body {
    background: #fefdf8;
}

@media (max-width: 1200px) {
    .cpre-plugin-mainbar-inner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "logo search"
            "nav nav";
        gap: 18px 28px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .cpre-plugin-logo { grid-area: logo; }
    .cpre-plugin-search { grid-area: search; }
    .cpre-plugin-nav { grid-area: nav; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
}

@media (max-width: 767px) {
    .cpre-plugin-topbar-inner,
    .cpre-plugin-mainbar-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cpre-plugin-topbar-inner {
        overflow-x: auto;
        gap: 16px;
    }

    .cpre-plugin-mainbar-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "search"
            "nav";
        min-height: auto;
    }

    .cpre-plugin-mainbar {
        min-height: 150px;
    }

    .cpre-plugin-search {
        grid-template-columns: 1fr 52px;
    }

    .cpre-plugin-search input {
        height: 50px;
    }

    .cpre-plugin-search button {
        width: 52px;
        height: 52px;
    }
}

/* Header meta pill polish */
.cpre-detail-header .cpre-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    background: #303f1c;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.cpre-detail-header .cpre-detail-meta {
    gap: 10px;
}

.cpre-detail-header .cpre-detail-meta span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: #75152d;
    color: #fff;
    font-weight: 400;
    line-height: 1;
}

.cpre-detail-header .cpre-detail-meta span + span::before {
    content: none;
}


/* CPRE gallery fade and lightbox navigation patch 1.5.8 */
.cpre-gallery-strip {
    position: relative;
}

.cpre-gallery-side-left img,
.cpre-gallery-side-right img {
    -webkit-mask-image: none;
    mask-image: none;
}

.cpre-gallery-side::before,
.cpre-gallery-side::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(22px, 3vw, 46px);
    pointer-events: none;
}

.cpre-gallery-side-left::before {
    left: 0;
    background: linear-gradient(to right, var(--cpre-light) 0%, rgba(254, 253, 248, 0.72) 36%, rgba(254, 253, 248, 0) 100%);
}

.cpre-gallery-side-left::after {
    right: 0;
    width: clamp(8px, 1.1vw, 16px);
    background: linear-gradient(to left, var(--cpre-light) 0%, rgba(254, 253, 248, 0) 100%);
}

.cpre-gallery-side-right::before {
    left: 0;
    width: clamp(8px, 1.1vw, 16px);
    background: linear-gradient(to right, var(--cpre-light) 0%, rgba(254, 253, 248, 0) 100%);
}

.cpre-gallery-side-right::after {
    right: 0;
    background: linear-gradient(to left, var(--cpre-light) 0%, rgba(254, 253, 248, 0.72) 36%, rgba(254, 253, 248, 0) 100%);
}

.cpre-lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 1000000;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.92);
    color: var(--cpre-primary);
    font-family: var(--cpre-body-font);
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.cpre-lightbox-prev {
    left: clamp(16px, 3vw, 40px);
}

.cpre-lightbox-next {
    right: clamp(16px, 3vw, 40px);
}

.cpre-lightbox-nav:hover,
.cpre-lightbox-nav:focus {
    background: #fffdf8;
    color: var(--cpre-primary);
    text-decoration: none;
}

@media (max-width: 767px) {
    .cpre-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 34px;
    }
}

/* CPRE full-bleed gallery correction 1.5.9 */
.cpre-detail-page .cpre-gallery-strip {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
    gap: clamp(14px, 1.8vw, 24px);
}

.cpre-detail-page .cpre-gallery-side::before,
.cpre-detail-page .cpre-gallery-side::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.cpre-detail-page .cpre-gallery-side-left img,
.cpre-detail-page .cpre-gallery-side-right img {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

@media (max-width: 760px) {
    .cpre-detail-page .cpre-gallery-strip {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.cpre-agent-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
    padding: clamp(18px, 2vw, 26px);
    background: rgba(255, 255, 255, 0.44);
    box-shadow: 0 10px 30px rgba(37, 29, 31, 0.045);
}

.cpre-agent-photo {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(117, 21, 45, 0.08);
    border: 1px solid rgba(117, 21, 45, 0.16);
}

.cpre-agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cpre-agent-content > p {
    margin: 0 0 7px;
    color: var(--cpre-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cpre-agent-content > h2 {
    margin: 0 0 10px;
    font-size: clamp(18px, 1.4vw, 23px);
    line-height: 1.18;
}

.cpre-agent-content a {
    display: block;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cpre-agent-content a:hover {
    color: var(--cpre-primary);
}

@media (max-width: 640px) {
    .cpre-agent-card {
        grid-template-columns: 1fr;
    }
}

/* Clickable meta/info states */
.cpre-detail-header .cpre-eyebrow a,
.cpre-detail-meta a,
.cpre-info-item strong a,
.cpre-project-context-card h2 a {
    color: inherit;
    text-decoration: none;
}

.cpre-detail-header .cpre-eyebrow a:hover,
.cpre-detail-meta a:hover,
.cpre-info-item strong a:hover,
.cpre-project-context-card h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.cpre-detail-meta a {
    display: inline-flex;
}

/* Project header meta row community pill alignment */
.cpre-project-detail .cpre-detail-header .cpre-detail-meta a.cpre-community-pill span {
    background: #303f1c;
}


/* CPRE all properties archive page 1.6.8 */
.cpre-archive-page,
.cpre-archive-page * {
    box-sizing: border-box;
}

body.cpre-public-archive-page,
body.cpre-public-archive-page .cpre-public-detail-shell,
body.cpre-public-archive-page .cpre-public-detail-body {
    background: #fefdf8;
}

.cpre-archive-page {
    --cpre-primary: var(--e-global-color-primary, #75152D);
    --cpre-deep: #510E1F;
    --cpre-light: #fefdf8;
    --cpre-cream: #E7DEC7;
    --cpre-green: #303f1c;
    --cpre-ink: var(--e-global-color-text, #251D1F);
    --cpre-muted: rgba(37, 29, 31, 0.64);
    --cpre-line: rgba(37, 29, 31, 0.12);
    --cpre-soft: rgba(117, 21, 45, 0.055);
    --cpre-heading-font: var(--e-global-typography-primary-font-family, "Gebuk", Georgia, serif);
    --cpre-body-font: var(--e-global-typography-text-font-family, "Garet Regular", Arial, sans-serif);
    max-width: 1540px;
    margin: 0 auto;
    padding: clamp(34px, 5vw, 76px) clamp(20px, 4vw, 64px) clamp(56px, 7vw, 96px);
}

.cpre-archive-hero {
    text-align: center;
    max-width: 960px;
    margin: 0 auto clamp(34px, 4vw, 62px);
}

.cpre-archive-hero h1 {
    margin: 0;
    color: var(--cpre-ink);
    font-family: var(--cpre-heading-font);
    font-size: clamp(54px, 8vw, 132px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.94;
    text-transform: uppercase;
}

.cpre-archive-hero p:not(.cpre-section-kicker) {
    max-width: 640px;
    margin: 16px auto 0;
    color: var(--cpre-muted);
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.55;
}

.cpre-archive-layout {
    display: grid;
    grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 56px);
    align-items: start;
}

.cpre-archive-sidebar {
    position: sticky;
    top: 24px;
}

.cpre-archive-filter-bar {
    display: grid;
    gap: 20px;
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid var(--cpre-line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 16px 46px rgba(37, 29, 31, 0.045);
}

.cpre-archive-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.cpre-archive-search-row input,
.cpre-archive-filter-grid input,
.cpre-archive-filter-grid select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(37, 29, 31, 0.12);
    border-radius: 999px;
    background: #fffdf8;
    color: var(--cpre-ink);
    padding: 0 16px;
    font-family: var(--cpre-body-font);
    font-size: 13px;
    font-weight: 400;
    outline: none;
    box-shadow: none;
}

.cpre-archive-search-row input:focus,
.cpre-archive-filter-grid input:focus,
.cpre-archive-filter-grid select:focus {
    border-color: rgba(117, 21, 45, 0.42);
}

.cpre-archive-search-row button,
.cpre-archive-filter-actions button,
.cpre-archive-filter-actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    background: var(--cpre-primary);
    color: #fffdf8;
    font-family: var(--cpre-body-font);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

.cpre-archive-filter-actions a {
    background: rgba(117, 21, 45, 0.08);
    color: var(--cpre-primary);
}

.cpre-archive-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
}

.cpre-archive-filter-grid label {
    display: grid;
    gap: 7px;
}

.cpre-archive-filter-grid label > span {
    color: var(--cpre-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cpre-archive-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cpre-archive-results {
    min-width: 0;
}

.cpre-archive-results-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 20px;
}

.cpre-archive-results-head h2 {
    margin: 0;
    color: var(--cpre-ink);
    font-family: var(--cpre-heading-font);
    font-size: clamp(38px, 4.6vw, 82px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-transform: uppercase;
}

.cpre-archive-result-count {
    color: var(--cpre-muted);
    font-size: 14px;
    white-space: nowrap;
}

.cpre-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
}

.cpre-archive-card {
    overflow: hidden;
    border: 1px solid var(--cpre-line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 52px rgba(37, 29, 31, 0.06);
}

.cpre-archive-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--cpre-soft);
    text-decoration: none;
}

.cpre-archive-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.cpre-archive-card:hover .cpre-archive-card-image img {
    transform: scale(1.035);
}

.cpre-archive-card-badge {
    position: absolute;
    right: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--cpre-primary);
    color: #fffdf8;
    font-size: 12px;
    line-height: 1;
}

.cpre-archive-card-body {
    padding: clamp(18px, 2vw, 26px);
}

.cpre-archive-location {
    margin-bottom: 12px;
    color: var(--cpre-primary);
    font-size: 13px;
    font-weight: 400;
}

.cpre-archive-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.cpre-archive-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--cpre-primary);
    color: #fffdf8;
    font-size: 12px;
    line-height: 1;
}

.cpre-archive-card h2 {
    margin: 0;
    color: var(--cpre-ink);
    font-family: var(--cpre-heading-font);
    font-size: clamp(28px, 2.8vw, 44px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.98;
    text-transform: uppercase;
}

.cpre-archive-card h2 a {
    color: inherit;
    text-decoration: none;
}

.cpre-archive-card-bottom {
    display: grid;
    gap: 18px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--cpre-line);
    color: var(--cpre-muted);
    font-size: 13px;
}

.cpre-archive-card-bottom > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.cpre-archive-card-bottom strong {
    color: var(--cpre-primary);
    font-size: 17px;
    text-align: right;
}

.cpre-archive-card-cta {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 999px;
    padding: 0 20px;
    background: var(--cpre-primary);
    color: #fffdf8;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}

.cpre-archive-card-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.cpre-archive-card-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.cpre-archive-results-head-minimal {
    justify-content: flex-end;
}

.cpre-archive-empty {
    padding: 32px;
    border: 1px solid var(--cpre-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--cpre-muted);
}

@media (max-width: 1280px) {
    .cpre-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .cpre-archive-layout {
        grid-template-columns: 1fr;
    }
    .cpre-archive-sidebar {
        position: static;
    }
    .cpre-archive-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .cpre-archive-search-row,
    .cpre-archive-grid,
    .cpre-archive-filter-grid,
    .cpre-archive-card-bottom > div {
        grid-template-columns: 1fr;
    }
    .cpre-archive-results-head {
        display: grid;
        align-items: start;
    }
}
