#primary .container:has(.primary-image){
    max-width: 1400px;
}
.entry-content .flexed {
    margin-top: 0.5em;
    display: block;
    &.flexed-vertical-center {
        align-items: flex-start;
        @media screen and (min-width: 1337px) {
            align-items: center;
        }
    }
    @media screen and (min-width: 1024px){
        display: flex;
        margin-top: 1.5em;
    }
}
body:not(.home) .page-section h2,
.primary-text h2 {
    font-size: clamp(1.75rem, .1852vw + 1.713rem, 1.875rem);
    text-wrap: balance;
    margin-bottom: 2rem;
    line-height: 1.3;
}
.primary-text > *:last-child {
    margin-bottom: 0;
}
.section-photo,
.feature-image,
.primary-image {
    line-height: 0;
    margin-bottom: 1.5rem;
    @media screen and (min-width: 1024px) {
        margin-bottom: 0;
    }
    & img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 0;
    }
}
.divider {
    height: 350px;
    position: relative;
    overflow: hidden;
}
.divider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}
.divider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px;
}
.text-section .container {
    max-width: 1100px;
}
.blocks-section .flexed {
    display: block;
    @media screen and (min-width: 1024px){
        display: flex;
        align-items: flex-start;
    }
    @media screen and (min-width: 1337px) {
        align-items: center;
    }
}
.section-text p:last-of-type {
    margin-bottom: 0;
}

.property-types-section {
    .intro {
        & > .flexed {
            display: block;
            text-align: center;
            @media screen and (min-width: 860px){
                display: flex;
                text-align: left;
            }
        }
        & h2 {
            text-wrap: balance;
        }
    }
    & .container > .flexed {
        display: block;
        @media screen and (min-width: 650px){
            display: flex;
        }
    }
}
.page-section .apartment-category {
    &.flex-23 {
        flex-basis: 49%;
        @media screen and (min-width: 1230px){
            flex-basis: 23%;
        }
    }
    & a:not(.button) {
        aspect-ratio: 3/2;
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        text-decoration: none;
        display: block;
        &:after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 20;
            transition: all ease 0.5s;
        }
        &:hover:after,
        &:focus-within:after {
            background: rgba(0,0,0,0.7);
        }
        &:focus-visible {
            outline-color: #000;
        }
        & img {
            block-size: 100%;
            inline-size: 100%;
            object-fit: cover;
            object-position: center;
            position: relative;
            z-index: 10;
        }
        & span {
            position: absolute;
            display: block;
            bottom: 0;
            left: 0;
            padding: 20px 35px 20px 15px;
            width: 100%;
            z-index: 30;
            transition: all ease 0.5s;
            font-size: 1rem;
            font-weight: 600;
            @media screen and (min-width: 330px){
                font-size: 1.125rem;
            }
            & > i {
                position: absolute;
                right: 15px;
                top: 50%;
                transform: translateY(-50%);
                background: var(--green);
                border-radius: 50%;
                aspect-ratio: 1;
                padding: 5px;
                font-size: 0.75rem;
            }
        }
        &:hover span,
        &:focus span {
            padding-bottom: 30px;
        }
    }
}
#properties-list:after {
    content: '';
    flex-basis: 30%;
}
.buttons-wrapper.text-right {
    text-align: center;
    @media screen and (min-width: 767px){
        text-align: right;
    }
    & a.button,
    & #hide-empty {
        font-size: 0.875rem;
        padding: 10px 25px;
    }
    & a.button {
        border: 1px solid var(--green);
        display: block;
        @media screen and (min-width: 460px) {
            display: inline-block;
        }
    }
    & #hide-empty {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        @media screen and (min-width: 460px) {
            display: inline-block;
            margin-right: 10px;
            width: auto;
            margin-bottom: 0;
        }
        border: 1px solid #757575;
        color: #757575;
        background: #FFF;
        &:hover,
        &:focus {
            background: #757575;
            color: #FFF;
        }
        &:focus-visible {
            outline-color: #757575;
        }
    }
}
#properties-list.flexed {
    display: block;
    @media screen and (min-width: 900px){
        display: flex;
    }
}
.apartment-building {
    position: relative;
    padding-bottom: 80px;
    border: 1px solid #c9c9c9;
    &.flex-32 {
        flex-basis: 49%;
        @media screen and (min-width: 1337px){
            flex-basis: 32%;
        }
    }
    & .apartment-image {
        aspect-ratio: 3/2;
        line-height: 0;
        margin-bottom: 10px;
        & img {
            block-size: 100%;
            inline-size: 100%;
            object-fit: cover;
            object-position: center;
            border-radius: 10px;
        }
        & img.contain {
            object-fit: contain;
        }
    }
    & h3 {
        margin-bottom: 0.5rem;
        font-size: 1.75rem;
    }
    & p.address {
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #c9c9c9;
        & i {
            color: var(--green);
        }
    }
    & .property-description > p{
        font-size: 0.9375rem;
        text-wrap: pretty;
    }
    & .property-count {
        & p:not(.no-apartment-contact){
            margin-bottom: 0.5rem;
        }
        & .no-apartment-contact {
            padding: 8px;
            font-size: 0.875rem;
        }
        & .count {
            font-size: 1.375rem;
            & > strong {
                color: var(--green);
            }
        }
    }
    & .button-wrapper {
        position: absolute;
        left: 10px;
        bottom: 20px;
        width: calc(100% - 20px);
        @media screen and (min-width: 600px){
            left: 20px;
            width: calc(100% - 40px);
        }
        & a.button {
            display: block;
            text-align: center;
            padding: 15px 5px;
            font-size: 0.8rem;
            & i {
                margin-left: 8px;
            }
            @media screen and (min-width: 360px){
                font-size: 1rem;
            }
        }
    }
}

.features-section {
    & .container > .flexed {
        display: block;
        @media screen and (min-width: 1024px){
            display: flex;
        }
    }
    & .feature-image {
        aspect-ratio: 64/50;
        & img {
            block-size: 100%;
            inline-size: 100%;
            object-fit: cover;
            object-position: center;
        }
    }
    & .features-wrapper {
        position: relative;
        row-gap: 2rem;
        &.flexed {
            display: block;
            @media screen and (min-width: 400px){
                display: flex;
            }
        }
        @media screen and (min-width: 420px) {
            &:before,
            &:after {
                content: '';
                position: absolute;
                display: block;
                z-index: 10;
            }
            &:before {
                left: 50%;
                height: 100%;
                border-left: 1px solid #C9C9C9;
            }
            &:after {
                top: 50%;
                width: 100%;
                border-top: 1px solid #C9C9C9;
            }
        }
    }
    & .feature {
        padding: 0;
        margin-bottom: 2rem;
        &.flex-45 {
            flex-basis: 48%;
            @media screen and (min-width: 420px){
                flex-basis: 45%;
            }
        }
        & .feature-icon i {
            color: var(--green);
            font-size: 2.25rem;
            margin-bottom: 0.5rem;
        }
        & .feature-text p {
            text-wrap: balance;
        }
        & .feature-text > *:last-child {
            margin-bottom: 0;
        }
        @media screen and (min-width: 400px) {
            padding: 10px;
            margin-bottom: 0;
        }
    }
}

.stats-section {
    & .stats-wrapper .flexed {
        display: block;
        @media screen and (min-width: 740px){
            display: flex;
        }
    }
    & .stat {
        text-align: center;
        margin-bottom: 1.5rem;
        @media screen and (min-width: 740px){
            margin-bottom: 0;
        }
        @media screen and (min-width: 1000px){
            text-align: left;
        }
        &.flex-30 {
            position: relative;
            @media screen and (min-width: 1000px){
                &:nth-of-type(2):before,
                &:nth-of-type(2):after {
                    content: '';
                    position: absolute;
                    border: 1px solid rgba(255,255,255,0.3);
                    height: 100%;
                    top: 0;
                }
                &:nth-of-type(2):before {
                    left: -8.5%;
                }
                &:nth-of-type(2):after {
                    right: -8.5%;
                }
            }
        }
        & .stat-number {
            font-family: "DM Sans", sans-serif;
            font-size: 3.75rem;
            & strong {
                font-weight: 600;
            }
        }
        & .stat-text p {
            font-size: 1.125rem;
            text-wrap: pretty;
            @media screen and (min-width: 960px) {
                font-size: 1.5rem;
            }
        }
        & .stat-text > *:last-child {
            margin-bottom: 0;
        }
    }
}
.slick-arrow {
    border-radius: 50%;
    aspect-ratio: 1;
    padding: 10px;
    font-size: 1.375rem;
    &.slick-prev {
        margin-right: 20px;
    }
    &.slick-disabled {
        background: #C9C9C9;
        cursor: not-allowed;
    }
}

.apartment-slider-section {
    & .intro {
        & h2 {
            text-transform: uppercase;
            font-size: clamp(2.125rem, 1.1111vw + 1.9028rem, 2.875rem);
            @media screen and (min-width: 460px) {
                margin-bottom: 0;
            }
        }
        & .flexed {
            display: block;
            text-align: center;
            @media screen and (min-width: 460px) {
                display: flex;
                text-align: left;
            }
            & .flex-40.text-right {
                text-align: center;
                @media screen and (min-width: 460px) {
                    text-align: right;
                }
            }
        }
    }
    & .slick-track {
        display: flex !important;
        justify-content: flex-start;
    }
    & .apartment-slider-wrapper {
        @media screen and (min-width: 767px) {
            width: calc(100% + 40px);
            margin-left: -20px;
        }
    }
    & .slick-slide {
        height: inherit !important;
        margin-bottom: 1.5em;
        @media screen and (min-width: 767px) {
            padding: 0 20px;
        }
        & > div {
            height: 100%;
        }
    }
    & .apartment-slide {
        border-radius: 10px;
        overflow: hidden;
        padding-bottom: 100px;
        position: relative;
        height: 100%;

        & .apartment-photo {
            aspect-ratio: 4/3;
            line-height: 0;
            margin-bottom: 0.75rem;
            & img {
                block-size: 100%;
                inline-size: 100%;
                object-fit: cover;
                object-position: center;
            }
            & img.contain {
                object-fit: contain;
            }
        }
        & .apartment-details {
            padding: 0 20px;
            & p:first-of-type {
                font-size: 1.375rem;
                line-height: 1.25;
                margin-bottom: 1rem;
            }
        }
        & .quick-stats {
            & .flexed {
                column-gap: 20px;
                row-gap: 5px;
            }
        }
        & .quick-stat {
            font-size: 0.8125rem;
            & i {
                color: var(--green);
                margin-right: 3px;
            }
        }
        & .apartment-pricing {
            position: absolute;
            bottom: 20px;
            left: 20px;
            width: calc(100% - 40px);
            padding-top: 12px;
            border-top: 1px solid #C9C9C9;
            & p {
                font-size: 1.25rem;
                margin-bottom: 0;
            }
        }
    }
}
.accordion-section .container {
    max-width: 1100px;
}
.accordion-section .accordion-item {
    padding-bottom: 1.5em;
    border-bottom: 1px solid #C9C9C9;
    & details summary::-webkit-details-marker {
      display:none;
    }
    & summary.accordion-title {
        position: relative;
        display: block;
        cursor: pointer;
    }
    & summary.accordion-title h3 {
        font-size: clamp(1.25rem, .9259vw + 1.0648rem, 1.875rem);
        margin-bottom: 0;
        padding-right: 45px;
        text-transform: uppercase;
    }
    & summary.accordion-title:after {
        content: '\f107';
        font-family: 'Font Awesome 6 Sharp';
        position: absolute;
        right: 0;
        top: 0;
        line-height: 1;
        font-size: 1.25rem;
        background-color: var(--green);
        color: #FFF;
        aspect-ratio: 1;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    & details[open] summary.accordion-title:after {
        content: '\f106';
    }
    & details.accordion .accordion-content {
        padding: 2em 0 0.5em 0;
        @media screen and (min-width: 900px) {
            padding-right: 55px;
        }
    }
}
#faqs summary.accordion-title h3 {
    text-transform: none;
}

.process-section {
    & .intro {
        max-width: 820px;
        margin-inline: auto;
        & h2 {
            text-transform: uppercase;
            font-size: clamp(2.125rem, 1.1111vw + 1.9028rem, 2.875rem);
        }
    }
    & .flexed {
        position: relative;
        display: block;
        @media screen and (min-width: 500px) {
            display: flex;
        }
    }
    & .flexed:before {
        @media screen and (min-width: 1035px) {
            content: '';
            position: absolute;
            top: 34px;
            left: 0;
            width: 100%;
            border-bottom: 1px dashed var(--green);
            z-index: 10;
        }
    }
    & .process-step {
        position: relative;
        z-index: 30;
        &.flex-23 {
            flex-basis: 48%;
            margin-bottom: 1.5em;
            @media screen and (min-width: 1035px){
                flex-basis: 23%;
                margin-bottom: 0;
            }
        }
        &:first-of-type {
            background: linear-gradient(to right,  rgba(255,255,255,1) 0%,rgba(255,255,255,1) 50%,rgba(225,225,225,0) 51%,rgba(246,246,246,0) 100%);
        }
        &:last-of-type {
            background: linear-gradient(to left,  rgba(255,255,255,1) 0%,rgba(255,255,255,1) 50%,rgba(225,225,225,0) 51%,rgba(246,246,246,0) 100%);
        }
        & .step-number {
            border-radius: 50%;
            aspect-ratio: 1;
            padding: 10;
            max-width: 68px;
            margin-inline: auto;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.875rem;
            font-weight: 600;
            font-family: 'DM Sans', sans-serif;
            margin-bottom: 0.75rem;
        }
        & .step-title h3 {
            font-size: 1.875rem;
            font-weight: 600;
        }
        & .step-text a {
            font-weight: 600;
            &:after {
                content: '\f061';
                display: inline-block;
                font-size: 1rem;
                font-family: 'Font Awesome 6 Sharp';
                font-weight: 400;
                margin-left: 12px;
            }
        }
    }
}

.testimonial-image-section {
    @media screen and (min-width: 1024px){
        display: grid;
        > * {
            grid-area: 1/-1;
        }
    }
    & .testimonial-image {
        aspect-ratio: 2/1;
        @media screen and (min-width: 600px){
            aspect-ratio: unset;
        }
        & img {
            width: 100%;
            block-size: 100%;
            inline-size: 100%;
            object-fit: cover;
            object-position: center;
        }
        @media screen and (min-width: 1024px){
            margin-bottom: 150px;
        }
    }
    & .testimonial-section-block {
        max-width: 90%;
        margin: -10% auto 10%;
        position: relative;
        z-index: 100;
        box-shadow: 15px 15px 60px 0px rgba(0, 0, 0, 0.05);
        &.p-60 {
            padding: 40px 20px;
            @media screen and (min-width: 600px) {
                padding: 60px;
            }
        }
        @media screen and (min-width: 1024px) {
            max-width: 720px;
            margin: 0 100px 0 auto;
            align-self: end;
        }
        & .testimonial-author {
            text-transform: uppercase;
            font-size: 1rem;
        }
        &:before {
            content: open-quote;
            position: absolute;
            line-height: 1;
            font-family: 'Georgia', sarif;
            top: -35px;
            font-size: 140px;
            @media screen and (min-width: 600px) {
                font-size: 200px;
            }
        }
        & p {
            font-size: 1rem;
            @media screen and (min-width: 600px) {
                font-size: 1.125rem;
            }
        }
    }
}

/* CUSTOM PAGE STYLES */
#easy-access {
    .container {
        padding-top: 3em;
        padding-bottom: 1.5em;
        border-top: 1px solid #C9C9C9;
        border-bottom: 1px solid #C9C9C9;
    }
}