

.property-gallery-section {
    padding-top: 160px;
}

.property-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

.property-gallery-main, .property-gallery-small, .property-gallery-vertical {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-gallery-main {
    aspect-ratio: 666 / 444;
}

.property-gallery-middle {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.property-gallery-small {
    aspect-ratio: 327 / 216;
}

.property-gallery-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.property-gallery-vertical {
    flex: 1;
    min-height: 0;
}

.property-gallery-button {
    width: 100%;
    height: 40px;
    border: none;
    background-color: var(--clr-gold);
    color: var(--clr-beige);
    cursor: pointer;
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 400;
}

/* PROPERTY GALLERY ANIMATIONS */

.property-gallery-main, .property-gallery-small, .property-gallery-vertical {
    opacity: 0;
    transform: scale(1.04);
    transition:
        opacity 1100ms ease,
        transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.property-gallery-main.is-visible, .property-gallery-small.is-visible, .property-gallery-vertical.is-visible {
    opacity: 1;
    transform: scale(1);
}

.property-gallery-button {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 900ms ease,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.property-gallery-button.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* TABLET */

@media (max-width: 992px) {
    .property-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .property-gallery-main {
        grid-column: 1 / -1;
            aspect-ratio: 666 / 444;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .property-gallery-section {
        padding-top: 120px;
    }

    .property-gallery {
        display: flex;
            flex-direction: column;
    }

    .property-gallery-main, .property-gallery-small, .property-gallery-vertical {
        width: 100%;
            height: auto;
            aspect-ratio: 3 / 2;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .property-gallery-main, .property-gallery-small, .property-gallery-vertical, .property-gallery-button {
        opacity: 1;
            transform: none;
            transition: none;
    }
}


.property-overview-section {
    padding-top: 72px;
}

.property-overview-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 80px;
}

.property-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.property-title {
    font-family: var(--ff-heading);
    font-size: 48px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--clr-beige);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--clr-gold);
    font-family: var(--ff-body);
}

.property-location-icon {
    width: 24px;
    height: 24px;
}

.property-viewing-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 240px;
    min-height: 52px;
    padding-inline: 24px;
    background-color: var(--clr-gold);
    color: var(--clr-beige);
    font-family: var(--ff-body);
    text-decoration: none;
}

.property-overview-content {
    display: flex;
    flex-direction: column;
}

.property-stats {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.property-stat {
    color: var(--clr-beige);
}

.property-stat-number {
    font-family: var(--ff-body);
    font-size: 32px;
    line-height: 1;
    font-weight: 600;
}

.property-view-types {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 40px;
}

.property-view-type {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--clr-beige);
    font-family: var(--ff-body);
}

.property-view-type img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.property-description {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.property-description p {
    color: var(--clr-beige);
}

.property-description-extra {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.property-description-toggle {
    display: none;
}

/* PROPERTY OVERVIEW ANIMATIONS */

.property-title, .property-location, .property-viewing-button, .property-stats, .property-view-types, .property-description {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 900ms ease,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.property-title.is-visible, .property-location.is-visible, .property-viewing-button.is-visible, .property-stats.is-visible, .property-view-types.is-visible, .property-description.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* SMALL DESKTOP */

@media (max-width: 1100px) {
    .property-overview-wrapper {
        gap: 48px;
    }
}

/* TABLET */

@media (max-width: 992px) {
    .property-overview-wrapper {
        grid-template-columns: 1fr;
    }

    .property-stats {
        justify-content: flex-start;
            gap: 48px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .property-overview-section {
        padding-top: 48px;
    }

    .property-intro {
        gap: 24px;
    }

    .property-title {
        font-size: 36px;
    }

    .property-stats {
        display: grid;
            grid-template-columns: max-content max-content;
            column-gap: 32px;
            row-gap: 32px;
            justify-content: start;
    }

    .property-description {
        gap: 24px;
    }

    .property-description-extra {
        display: none;
            gap: 24px;
    }

    .property-description-extra.is-open {
        display: flex;
    }

    .property-description-toggle {
        display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 24px;
            padding: 0;
            border: 0;
            background: transparent;
            color: var(--clr-gold);
            font: inherit;
            cursor: pointer;
    }

    .property-stat-number {
        font-size: 24px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .property-title, .property-location, .property-viewing-button, .property-stats, .property-view-types, .property-description {
        opacity: 1;
            transform: none;
            transition: none;
    }
}


.property-features-section {
    padding-top: 192px;
}

.property-features-wrapper {
    border-top: 1px solid rgba(157, 133, 84, 0.4);
    border-bottom: 1px solid rgba(157, 133, 84, 0.4);
    padding-block: 32px;
}

.property-section-heading {
    color: var(--clr-gold);
    font-family: var(--ff-heading);
    font-size: 32px;
    line-height: 44px;
    font-weight: 400;
}

.property-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 40px;
}

.property-feature {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    padding: 24px;
    border-right: 1px solid rgba(157, 133, 84, 0.4);
    border-bottom: 1px solid rgba(157, 133, 84, 0.4);
    text-align: center;
}

.property-feature:nth-child(4n) {
    border-right: none;
}

.property-feature:nth-last-child(-n + 4) {
    border-bottom: none;
}

.property-feature img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.property-feature span {
    margin-top: 16px;
    color: var(--clr-beige);
    font-family: var(--ff-body);
    font-size: 20px;
}

/* FEATURES ANIMATIONS */

.property-features-wrapper > .property-section-heading, .property-feature {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 800ms ease,
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.property-features-wrapper > .property-section-heading.is-visible, .property-feature.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* TABLET */

@media (max-width: 992px) {
    .property-features-section {
        padding-top: 144px;
    }

    .property-feature img {
        width: 48px;
            height: 48px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .property-features-section {
        padding-top: 96px;
    }

    .property-section-heading {
        font-size: 24px;
            line-height: 32px;
    }

    .property-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .property-feature {
        min-height: 140px;
    }

    .property-feature:nth-child(4n) {
        border-right: 1px solid rgba(157, 133, 84, 0.4);
    }

    .property-feature:nth-child(2n) {
        border-right: none;
    }

    .property-feature:nth-last-child(-n + 4) {
        border-bottom: 1px solid rgba(157, 133, 84, 0.4);
    }

    .property-feature:nth-last-child(-n + 2) {
        border-bottom: none;
    }

    .property-feature span {
        font-size: 18px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .property-features-wrapper > .property-section-heading, .property-feature {
        opacity: 1;
            transform: none;
            transition: none;
    }
}


.property-details-section {
    padding-top: 192px;
}

.property-details-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
    gap: 64px;
}

.floor-plan-wrapper {
    border: 1px solid rgba(157, 133, 84, 0.4);
}

.floor-plan-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 440px;
    padding: 48px;
}

.floor-plan-image {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.floor-plan-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    border-top: 1px solid rgba(157, 133, 84, 0.4);
    color: var(--clr-gold);
    font-family: var(--ff-body);
    text-decoration: none;
}

.property-details-list {
    margin-top: 24px;
}

.property-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-block: 16px;
    border-bottom: 1px solid rgba(254, 251, 246, 0.6);
    color: var(--clr-beige);
    font-family: var(--ff-body);
    font-size: 20px;
}

/* FLOOR PLAN + DETAILS ANIMATIONS */

.floor-plan-image-wrapper {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.floor-plan-image-wrapper.is-visible {
    clip-path: inset(0 0 0 0);
}

.floor-plan-button, .property-details-content > .property-section-heading, .property-detail-row {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 900ms ease,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.floor-plan-button.is-visible, .property-details-content > .property-section-heading.is-visible, .property-detail-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.floor-plan-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 1000ms ease,
        transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.floor-plan-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* TABLET */

@media (max-width: 992px) {
    .property-details-section {
        padding-top: 144px;
    }

    .property-details-wrapper {
        display: flex;
            flex-direction: column;
            gap: 64px;
    }

    .property-details-content {
        order: -1;
            width: 100%;
    }

    .floor-plan-wrapper {
        width: 100%;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .property-details-section {
        padding-top: 96px;
    }

    .property-detail-row {
        font-size: 15px;
            gap: 20px;
    }

    .floor-plan-image-wrapper {
        min-height: 320px;
            padding: 24px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .floor-plan-image-wrapper {
        clip-path: none;
            transition: none;
    }

    .floor-plan-button, .property-details-content > .property-section-heading, .property-detail-row {
        opacity: 1;
            transform: none;
            transition: none;
    }

    .floor-plan-wrapper {
        opacity: 1;
            transform: none;
            transition: none;
    }
}


.similar-residences-section {
    padding-block: 192px 96px;
}

.similar-residences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.similar-property-card {
    display: block;
    background-color: var(--clr-beige);
    color: var(--clr-black);
    text-decoration: none;
}

.similar-property-image {
    display: block;
    width: 100%;
    aspect-ratio: 660 / 440;
    object-fit: cover;
}

.similar-property-content {
    padding: 32px;
}

.similar-property-title {
    font-family: var(--ff-heading);
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
}

.similar-property-location {
    margin-top: 12px;
    font-family: var(--ff-body);
}

.similar-property-info {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
}

.similar-property-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-body);
}

.similar-property-stat img {
    width: 18px;
    height: 18px;
}

.similar-property-image-wrapper {
    overflow: hidden;
}

/* SIMILAR RESIDENCES ANIMATIONS */

.similar-residences-section > .container-md > .property-section-heading {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 900ms ease,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.similar-property-card {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 1000ms ease,
        transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.similar-residences-section > .container-md > .property-section-heading.is-visible, .similar-property-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.similar-property-card {
    overflow: hidden;
}

.similar-property-image {
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* HOVER ANIMATION */

@media (hover: hover) {
    .similar-property-card:hover .similar-property-image {
        transform: scale(1.04);
    }
}

/* TABLET */

@media (max-width: 992px) {
    .similar-residences-section {
        padding-top: 144px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .similar-residences-section {
        padding-block: 96px 48px;
    }

    .similar-residences-grid {
        grid-template-columns: 1fr;
    }

    .similar-property-content {
        padding: 20px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .similar-residences-section > .container-md > .property-section-heading, .similar-property-card {
        opacity: 1;
            transform: none;
            transition: none;
    }

    .similar-property-image {
        transition: none;
    }
}


.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #121717;
    padding: 48px;
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.gallery-modal-image {
    display: block;
    max-width: min(921px, 80vw);
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gallery-close, .gallery-arrow {
    position: absolute;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--clr-beige);
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
}

.gallery-close img, .gallery-arrow img {
    width: 18px;
    height: 18px;
}

.gallery-close {
    top: 32px;
    right: 32px;
}

.gallery-arrow {
    top: 50%;
    transform: translateY(-50%);
}

.gallery-arrow-left {
    left: 32px;
}

.gallery-arrow-right {
    right: 32px;
}

.gallery-arrow-left img {
    transform: rotate(180deg);
}

/* MOBILE */

@media (max-width: 767px) {
    .gallery-modal {
        display: none;
            align-items: flex-start;
            overflow-y: auto;
            padding: 80px 20px 32px;
    }

    .gallery-modal.is-open {
        display: block;
    }

    .gallery-modal-content {
        display: flex;
            flex-direction: column;
            gap: 20px;
            height: auto;
    }

    .gallery-modal-image {
        width: 100%;
            max-width: none;
            max-height: none;
            height: auto;
    }

    .gallery-arrow {
        display: none;
    }

    .gallery-close {
        position: fixed;
            top: 20px;
            right: 20px;
    }
}