/* A community's page (app/Views/front/community.php), and the Communities and Board members blocks. */
.prop {
    color: #1f2937;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.prop-hero {
    background: #0f172a center / cover no-repeat;
    display: flex;
    align-items: flex-end;
    min-height: min(70vh, 560px);
    position: relative;
}

.prop-hero::before {
    background: linear-gradient(to top, rgb(15 23 42 / 0.85), rgb(15 23 42 / 0.1) 60%);
    content: '';
    inset: 0;
    position: absolute;
}

.prop-hero-inner {
    color: #fff;
    margin: 0 auto;
    max-width: 1100px;
    padding: 48px 24px;
    position: relative;
    width: 100%;
}

.prop-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    margin: 12px 0 8px;
    overflow-wrap: anywhere;
}

.prop-meta {
    font-size: 1.05rem;
    margin: 0;
    opacity: 0.85;
}

.prop-badge {
    background: #16a34a;
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    text-transform: uppercase;
}

.prop-badge--comingSoon {
    background: #d97706;
}

.prop-badge--soldOut {
    background: #dc2626;
}

.prop-badge--completed {
    background: #475569;
}

.prop-body > * + * {
    margin-top: 48px;
}

.prop-eyebrow {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.prop-intro {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.prop-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0;
}

.prop-figures {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.prop-figures div,
.prop-specs div {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
}

.prop-figures dt,
.prop-specs dt {
    color: #6b7280;
    font-size: 0.8rem;
}

.prop-figures dd {
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    margin: 2px 0 0;
}

.prop-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prop-section > * + * {
    margin-top: 16px;
}

.prop-embed {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.prop-embed iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.prop-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prop-gallery img,
.prop-unit-thumbs img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.prop-units {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.prop-unit {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.prop-unit .prop-unit-image {
    aspect-ratio: 16 / 10;
    border-radius: 0;
    object-fit: cover;
    width: 100%;
}

.prop-unit-body {
    padding: 18px;
}

.prop-unit-body > * + * {
    margin-top: 14px;
}

.prop-unit h3 {
    font-size: 1.2rem;
    margin: 0;
}

.prop-specs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.prop-specs dd {
    font-weight: 600;
    margin: 2px 0 0;
}

.prop-unit-thumbs {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prop-partners {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.prop-partners img {
    max-height: 64px;
    width: auto;
}

.prop-register {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px;
}

/*
 * Communities block: the Communities page's cards (Communities Grid, assets/retal/css/style.css "Property grid"),
 * for pages on the CMS layout, which does not load the Retal theme. Scoped to the block so the theme's own rules
 * stay the reference.
 */
@font-face {
    font-display: swap;
    font-family: 'Lucky Beauty';
    font-style: normal;
    font-weight: normal;
    src: url('../retal/fonts/Lucky-Beauty.woff2') format('woff2'), url('../retal/fonts/Lucky-Beauty.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: '29LTAzer-Light';
    font-style: normal;
    font-weight: normal;
    src: url('../retal/fonts/29LTAzer-Light-2.woff2') format('woff2'), url('../retal/fonts/29LTAzer-Light-2.otf') format('opentype');
}

.site-communities {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}

.site-communities .prop-card {
    position: relative;
}

.site-communities .prop-card__link {
    background: #2c2c2c center / cover no-repeat;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 440px;
    overflow: hidden;
    padding: 15px;
    position: relative;
    text-align: start;
    text-decoration: none;
}

.site-communities .prop-card__link::before {
    background: linear-gradient(to bottom, rgb(11 15 1 / 0) 54%, rgb(11 15 1 / 0.2) 63%, rgb(22 9 5 / 1) 100%);
    content: '';
    inset: 0;
    position: absolute;
    z-index: 1;
}

.site-communities .prop-card__link::after {
    background: #000;
    content: '';
    inset: 0;
    opacity: 0.27;
    position: absolute;
    transition: opacity 0.7s;
    z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
    .site-communities .prop-card__link:hover::after {
        opacity: 0.4;
    }
}

.site-communities .prop-card__content {
    position: relative;
    z-index: 3;
}

.site-communities .prop-card__title {
    color: #fff;
    font-family: 'Lucky Beauty', serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 30px;
    margin: 0;
}

.site-communities .prop-card__meta,
.site-communities .card-units {
    color: #fff;
    font-family: '29LTAzer-Light', sans-serif;
    font-size: 15px;
}

.site-communities .prop-card__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-communities .prop-card__meta .dot {
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    height: 6px;
    width: 6px;
}

.site-communities .card-units {
    margin-top: 4px;
}

.site-communities .card-badge {
    background: #fff;
    color: #2c2c2c;
    font-family: '29LTAzer-Light', sans-serif;
    font-size: 13px;
    font-weight: 600;
    inset-inline-end: 20px;
    letter-spacing: 0.2px;
    padding: 8px 16px;
    position: absolute;
    text-transform: uppercase;
    top: 20px;
    z-index: 4;
}

/* Sold-out cards are greyscale, with no dark gradient, as on the Communities page. */
.site-communities .prop-card[data-status='sold-out'] .prop-card__link {
    filter: grayscale(100%);
}

.site-communities .prop-card[data-status='sold-out'] .prop-card__link::before {
    background: transparent;
}

/* Board members block */
.site-board {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
}

.site-board-member {
    margin: 0;
    text-align: center;
}

.site-board-member img {
    aspect-ratio: 1;
    border-radius: 12px;
    margin: 0 auto 12px;
    object-fit: cover;
    width: 100%;
}

.site-board-member strong {
    display: block;
    font-size: 1.05rem;
}

.site-board-member span {
    color: #6b7280;
    display: block;
    font-size: 0.9rem;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .prop-intro {
        grid-template-columns: 1fr;
    }

    .site-communities,
    .site-board {
        grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr));
    }
}

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

    .prop-register {
        padding: 20px;
    }

    .site-communities,
    .site-board {
        grid-template-columns: 1fr;
    }

    .site-communities .prop-card__link {
        min-height: 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-communities .prop-card__link::after {
        transition: none;
    }
}
