.oplus-property-payment__head {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
}

.oplus-property-payment__head h2,
.oplus-property-payment__head p {
    margin: 0;
}

.oplus-property-payment__head a {
    color: #00803c;
    font-weight: 600;
}

.oplus-property-payment__eyebrow {
    margin-bottom: 5px !important;
    color: #00803c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.oplus-property-payment__ratio {
    margin: 0 0 8px;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
}

.oplus-property-payment__note {
    max-width: 760px;
    margin: 0 0 22px;
    color: #5f6670;
    line-height: 1.65;
}

.oplus-property-payment__stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.oplus-property-payment__stages li {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e1e5e8;
    border-radius: 10px;
    background: #f8faf9;
}

.oplus-property-payment__stages strong,
.oplus-property-payment__stages span {
    display: block;
}

.oplus-property-payment__stages strong {
    margin-bottom: 6px;
    color: #00803c;
    font-size: 24px;
}

.oplus-property-payment__stages span {
    color: #363b42;
    line-height: 1.45;
}

.oplus-property-payment__schedule {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e1e5e8;
}

.oplus-property-payment__schedule h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.oplus-property-payment__table {
    margin-top: 12px;
    border: 1px solid #e1e5e8;
    border-radius: 8px;
    overflow: hidden;
}

.oplus-property-payment__table [role="row"] {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fff;
}

.oplus-property-payment__table [role="row"] + [role="row"] {
    border-top: 1px solid #e1e5e8;
}

.oplus-property-payment__source {
    margin: 20px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 575px) {
    .oplus-property-payment__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .oplus-property-payment__stages {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 380px) {
    .oplus-property-payment__stages {
        grid-template-columns: 1fr;
    }
}

/* Consolidated unit and project presentation. */
.oplus-project-unit {
    --oplus-unit-green: #00803c;
    --oplus-unit-green-dark: #006b32;
    --oplus-unit-ink: #17202a;
    --oplus-unit-muted: #66717d;
    --oplus-unit-border: #e2e7e4;
    --oplus-unit-soft: #f5f8f6;
}

.oplus-project-unit > .block-wrap {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--oplus-unit-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(23, 32, 42, .06);
}

.oplus-project-unit__header {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    padding: 26px 28px 22px;
    border-bottom: 1px solid var(--oplus-unit-border);
}

.oplus-project-unit__header h2,
.oplus-project-unit__header p {
    margin: 0;
}

.oplus-project-unit__header h2 {
    color: var(--oplus-unit-ink);
    font-size: clamp(22px, 2.4vw, 30px);
    letter-spacing: -.025em;
    line-height: 1.2;
}

.oplus-project-unit__eyebrow,
.oplus-project-unit__plan-kicker,
.oplus-project-unit__payment-label,
.oplus-project-unit__project-copy > p {
    color: var(--oplus-unit-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.oplus-project-unit__eyebrow {
    margin-bottom: 6px !important;
}

.oplus-project-unit__project-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    color: var(--oplus-unit-green);
    font-weight: 700;
    text-decoration: none;
}

.oplus-project-unit__project-link:hover,
.oplus-project-unit__project-link:focus {
    color: var(--oplus-unit-green-dark);
}

/* This section is now rendered inside a ~720px content column rather than the
 * full page width, and it has to survive being narrower still on a tablet or a
 * phone. So it measures its own container, not the viewport: one column by
 * default, two only when there is genuinely room for two.
 *
 * The previous rule keyed off `@media (max-width: 991px)` and never applied —
 * the selector it had to beat was `.content.has-payment:has(.plans)`, which
 * `:has()` makes three classes' worth of specificity against the override's
 * two. That is why the layout stayed two-column at 390px and wrapped the unit
 * title one letter per line. Both rules now sit at the same specificity. */
.oplus-project-unit {
    container-type: inline-size;
    container-name: oplus-unit;
}

.oplus-project-unit__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px;
}

.oplus-project-unit__content.has-payment {
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.oplus-project-unit__content.has-payment:has(.oplus-project-unit__plans) {
	grid-template-columns: minmax(0, 1fr);
}

@container oplus-unit (min-width: 660px) {
    .oplus-project-unit__content.has-payment:has(.oplus-project-unit__plans) {
        grid-template-columns: minmax(0, 1.4fr) minmax(230px, .8fr);
    }
}

/* Fallback for engines without container queries: key off the viewport, and
 * keep the specificity matched to the rule being overridden. */
@supports not (container-type: inline-size) {
    @media (min-width: 1200px) {
        .oplus-project-unit__content.has-payment:has(.oplus-project-unit__plans) {
            grid-template-columns: minmax(0, 1.4fr) minmax(230px, .8fr);
        }
    }
}

.oplus-project-unit__plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 18px;
    min-width: 0;
}

.oplus-project-unit__plan {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--oplus-unit-border);
    border-radius: 12px;
    background: #fff;
}

.oplus-project-unit__plan-media {
    position: relative;
    display: grid;
    min-height: 260px;
    place-items: center;
    padding: 18px;
    background: #f7f9f8;
}

.oplus-project-unit__plan-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
}

.oplus-project-unit__plan-media span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(23, 32, 42, .9);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.rtl .oplus-project-unit__plan-media span {
    right: auto;
    left: 12px;
}

.oplus-project-unit__plan-body {
    padding: 20px;
}

.oplus-project-unit__plan-kicker {
    margin: 0 0 5px;
}

.oplus-project-unit__plan h3 {
    margin: 0;
    color: var(--oplus-unit-ink);
    font-size: 20px;
    line-height: 1.35;
}

/* Three fixed columns forced "Bedrooms / Bathrooms / Area" into ~55px each in
 * a narrow card, stacking the digits vertically. Let them wrap instead. */
.oplus-project-unit__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 12px 0;
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--oplus-unit-border);
}

.oplus-project-unit__facts div {
    min-width: 0;
    padding-right: 12px;
}

.oplus-project-unit__facts div + div {
    padding-left: 12px;
    border-left: 1px solid var(--oplus-unit-border);
}

.rtl .oplus-project-unit__facts div {
    padding-right: 0;
    padding-left: 12px;
}

.rtl .oplus-project-unit__facts div + div {
    padding-right: 12px;
    border-right: 1px solid var(--oplus-unit-border);
    border-left: 0;
}

.oplus-project-unit__facts dt {
    margin-bottom: 4px;
    color: var(--oplus-unit-muted);
    font-size: 11px;
    font-weight: 500;
}

.oplus-project-unit__facts dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--oplus-unit-ink);
    font-size: 14px;
    font-weight: 700;
}

.oplus-project-unit__payment {
    padding: 24px;
    border-radius: 12px;
    background: var(--oplus-unit-ink);
    color: #fff;
}

.oplus-project-unit__payment-label {
    margin: 0 0 8px;
    color: #78d69e;
}

.oplus-project-unit__payment h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1;
}

.oplus-project-unit__payment-note {
    margin: 14px 0 0;
    color: #d9e0e5;
    font-size: 14px;
    line-height: 1.6;
}

.oplus-project-unit__stages {
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.oplus-project-unit__stages li,
.oplus-project-unit__schedule > div {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
}

.oplus-project-unit__stages strong {
    color: #78d69e;
    font-size: 18px;
}

.oplus-project-unit__stages span,
.oplus-project-unit__schedule span {
    color: #eef3f5;
    font-size: 13px;
}

.oplus-project-unit__schedule {
    display: grid;
    gap: 7px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.oplus-project-unit__schedule > p {
    margin: 0 0 2px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.oplus-project-unit__disclaimer {
    margin: 18px 0 0;
    color: #aeb8c0;
    font-size: 11px;
    line-height: 1.55;
}

.oplus-project-unit__project {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 28px;
    border-top: 1px solid var(--oplus-unit-border);
    background: var(--oplus-unit-soft);
}

.oplus-project-unit__project > img {
    width: 92px;
    height: 68px;
    border-radius: 9px;
    object-fit: cover;
}

.oplus-project-unit__project-copy > p {
    margin: 0 0 3px;
}

.oplus-project-unit__project-copy h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.oplus-project-unit__project-copy h3 a {
    color: var(--oplus-unit-ink);
}

.oplus-project-unit__project-copy ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 6px 0 0;
    padding: 0;
    color: var(--oplus-unit-muted);
    font-size: 12px;
    list-style: none;
}

.oplus-project-unit__project-copy li + li::before {
    content: ";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 8px 2px 0;
    border-radius: 50%;
    background: #aab4ae;
}

.rtl .oplus-project-unit__project-copy li + li::before {
    margin-right: 0;
    margin-left: 8px;
}

.oplus-project-unit__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--oplus-unit-green);
    border-radius: 8px;
    color: var(--oplus-unit-green);
    font-size: 13px;
    font-weight: 700;
}

.oplus-project-unit__cta:hover,
.oplus-project-unit__cta:focus {
    background: var(--oplus-unit-green);
    color: #fff;
}

.oplus-project-unit a:focus-visible {
    outline: 3px solid rgba(0, 128, 60, .28);
    outline-offset: 3px;
}

/* The two-column split is decided by the container query above; this file no
 * longer tries to undo it at a viewport breakpoint. */

@media (max-width: 575px) {
    .oplus-project-unit__header {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 20px 18px;
    }

    .oplus-project-unit__content {
        padding: 20px;
    }

    .oplus-project-unit__plans {
        grid-template-columns: 1fr;
    }

    .oplus-project-unit__plan-media {
        min-height: 210px;
        padding: 12px;
    }

    .oplus-project-unit__project {
        grid-template-columns: 70px minmax(0, 1fr);
        padding: 18px 20px;
    }

    .oplus-project-unit__project > img {
        width: 70px;
        height: 58px;
    }

    .oplus-project-unit__cta {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oplus-project-unit *,
    .oplus-project-unit *::before,
    .oplus-project-unit *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
