:root {
    --bg: #fbf9f3;
    --surface-soft: #f1efe9;
    --surface-muted: #c6c3ba;
    --text-primary: #31332b;
    --text-muted: #5e6056;
    --outline: #b1b3a7;
    --brand: #605e5e;
    --brand-soft: #c4d7e5;
    --card: #d2e5f3;
    --accent-navy: #243849;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

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

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.page-body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text-primary);
    background: linear-gradient(to bottom, #ffffff 0, #ffffff 800px, #f1efe9 800px, #f1efe9 100%);
}

h1, h2, h3, h4, .serif {
    margin: 0;
    font-family: 'Newsreader', serif;
    font-weight: 500;
}

p {
    margin: 0;
}

.site-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(177, 179, 167, 0.3);
}

.site-topbar-inner {
    max-width: 1536px;
    margin: 0 auto;
    padding: 16px 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-topbar-brand {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent-navy);
}

.site-topbar-nav {
    display: flex;
    gap: 22px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.site-topbar-nav a {
    transition: color 0.2s ease;
}

.site-topbar-nav a:hover,
.site-topbar-nav a:focus-visible {
    color: var(--accent-navy);
}

.page-main {
    max-width: 1536px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-media {
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
    aspect-ratio: 3 / 2;
}

.hero-media:hover .hero-image {
    transform: scale(1.05);
}

.hero-media--grid {
    overflow: visible;
}

.hero-image-grid {
    /*
     * Column tracks 1.3:1.3:1 keep image 1 (cols 1-2, rows 1-2) at aspect 1.5
     * and images 4 / 5 (col 3) at aspect ~1.15.  Rows are forced to equal
     * height via minmax(0, 1fr) so intrinsic image sizes don't deform them;
     * image 2 (col 1, row 3) then lands on 1.5, image 3 / 6 fill the
     * remainder.
     */
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    aspect-ratio: 1.38 / 1;
}

.hero-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.hero-image-grid img:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.hero-image-grid img:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.hero-image-grid img:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.hero-image-grid img:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.hero-image-grid img:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.hero-image-grid img:nth-child(6) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

@media (max-width: 640px) {
    .hero-image-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        aspect-ratio: auto;
    }

    .hero-image-grid img {
        aspect-ratio: 3 / 2;
    }

    .hero-image-grid img:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .hero-image-grid img:nth-child(n+2) {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Lightbox — click an image to view full size */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 28, 36, 0.92);
    cursor: zoom-out;
    animation: lightbox-fade-in 0.15s ease-out;
    padding: 2rem;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

@keyframes lightbox-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-price-badge {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(3px);
    color: var(--accent-navy);
    font-family: 'Newsreader', serif;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.hero-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.hero-main-info {
    min-width: 0;
}

.hero-program-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.4rem;
    padding-top: 0.2rem;
}

.hero-program-label {
    font-family: 'Manrope', sans-serif;
    color: #525050;
    font-size: 1rem;
    font-weight: 400;
}

.hero-program-title {
    font-family: 'Newsreader', serif;
    color: var(--accent-navy);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.title-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.listing-type {
    margin-top: 0.45rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 600;
}

.listing-title {
    color: var(--brand);
    font-size: clamp(2rem, 5.5vw, 4rem);
    line-height: 0.95;
}

.listing-stats-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1rem 0 0.9rem;
    border-top: 1px solid rgba(177, 179, 167, 0.4);
    border-bottom: 1px solid rgba(177, 179, 167, 0.4);
}

.listing-stats-icons-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 0.75rem 0 0.5rem;
}

.stat-icon-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.stat-value {
    font-size: 1.1rem;
    color: var(--brand);
}

.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.stat-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.listing-area {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.area-line {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.area-key {
    color: #525050;
    font-weight: 600;
}

.area-value {
    font-weight: 600;
}

.area-unit {
    color: var(--text-muted);
}

.listing-description {
    margin-top: 0.5rem;
}

.listing-description p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 300;
}

.listing-amenities {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(177, 179, 167, 0.4);
}

.listing-gallery {
    margin-top: 1.5rem;
}

.listing-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.listing-gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.listing-gallery-grid img:hover {
    opacity: 0.85;
    cursor: zoom-in;
}

@media (max-width: 767px) {
    .listing-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
}

.listing-amenities span {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.listing-amenities span::before {
    content: "\2022";
    margin-right: 0.6rem;
    color: var(--brand);
}

.right-column {
    width: 100%;
}

.right-column-brand {
    display: block;
    margin: 0 0 1rem;
    font-family: 'Newsreader', serif;
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #d8ebf9;
    text-align: center;
    text-shadow: 0 1px 2px rgba(36, 56, 73, 0.12);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.right-column-brand:hover,
.right-column-brand:focus-visible {
    opacity: 0.78;
}

.agent-sticky {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.agent-card {
    background: var(--card);
    border: 1px solid rgba(210, 229, 243, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 2px 8px rgba(49, 51, 43, 0.08);
    padding: 0.75rem;
}

.agent-heading,
.agent-name {
    text-align: left;
    font-size: 2rem;
    line-height: 1;
}

.agent-heading {
    margin-bottom: 1rem;
}

.agent-image-block {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-bottom: 1rem;
}

.agent-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.agent-name {
    margin-bottom: 1.25rem;
}

.agent-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agent-form--placeholder {
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 220px;
    padding: 28px 18px;
    border: 2px dashed rgba(49, 51, 43, 0.32);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    text-align: center;
}

.agent-placeholder__title {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.agent-placeholder__text {
    max-width: 240px;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.agent-inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agent-input {
    width: 100%;
    background: var(--surface-muted);
    border: none;
    border-radius: 0.5rem;
    padding: 0.85rem 0.9rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: inherit;
}

.agent-input:focus {
    outline: 1px solid var(--brand);
}

.assist-box {
    background: var(--surface-muted);
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-radius: 0.35rem;
}

.assist-box h4 {
    font-style: italic;
    font-size: 1.05rem;
}

.assist-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-style: italic;
    font-size: 0.92rem;
    cursor: pointer;
}

.assist-option input {
    appearance: none;
    -webkit-appearance: none;
    margin-top: 0.2rem;
    width: 18px;
    height: 16px;
    border: 1px solid #8f8b81;
    background: #c6c3ba;
    border-radius: 2px;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
}

.assist-option input::before {
    content: "";
    width: 5px;
    height: 5px;
    transform: scale(0);
    transition: transform 0.15s ease-in-out;
    background: #4a4740;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.assist-option input:checked::before {
    transform: scale(2.5);
}

.assist-option input:focus-visible {
    outline: 1px solid #605e5e;
    outline-offset: 1px;
}

.agent-btn-main,
.agent-btn-secondary {
    width: 100%;
    background: var(--surface-soft);
    border: 1px solid #d2cec2;
    color: var(--text-primary);
    padding: 0.85rem 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-family: inherit;
    font-size: 0.85rem;
}

.agent-btn-main:hover,
.agent-btn-secondary:hover {
    opacity: 0.85;
}

.agent-actions {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.agent-status {
    margin-top: 8px;
    font-size: 0.85rem;
    min-height: 18px;
}

.agent-status.is-success {
    color: #1f6b3a;
    font-weight: 600;
}

.agent-status.is-error {
    color: #a8331f;
    font-weight: 600;
}

.logo-card {
    background: transparent;
    border: none;
    padding: 0;
}

.logo-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.property-section {
    margin-top: 1.5rem;
    padding: 1.5rem 0 4rem;
}

.property-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.property-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--brand);
}

.property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.property-card {
    display: block;
}

.property-image-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 4/3;
}

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

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

.property-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.property-copy {
    width: 100%;
}

.property-view-link {
    background: var(--card);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.2s ease;
    align-self: center;
}

.property-view-link:hover {
    background: var(--brand);
    color: #fff;
}

.site-footer {
    width: 100%;
    padding: 3rem 2rem;
    background: #efeee5;
    margin-top: 4rem;
}

.site-footer-inner {
    max-width: 1536px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.footer-brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-brand {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
}

.footer-copy {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b6d61;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.5rem;
}

.footer-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b6d61;
    text-decoration: none;
}

.footer-link:hover {
    color: #383a33;
}

@media (min-width: 768px) {
    .page-main {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .hero-details-grid {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        align-items: start;
    }

    .property-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .site-footer-inner {
        flex-direction: row;
    }

    .footer-brand-wrap {
        align-items: flex-start;
    }
}

@media (min-width: 1024px) {
    .page-main {
        padding-top: 4rem;
    }

    .layout-grid {
        grid-template-columns: minmax(0, 2.35fr) minmax(280px, 0.85fr);
        gap: 2.75rem;
    }

    .property-section {
        margin-top: 3rem;
        padding-top: 3rem;
    }
}
