/* =========================================================
   LUXURY RESIDENCES
   Residence collection block
========================================================= */

.vp-luxury-residences__inner {
    width: min(100% - 48px, 1440px);
}

.vp-luxury-residences__head {
    max-width: 760px;
    margin-bottom: 118px;
}

.vp-luxury-residences__eyebrow {
    margin-bottom: 24px;
}

.vp-luxury-residences__title {
    max-width: 760px;
    font-size: clamp(42px, 5.2vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.vp-luxury-residences__text {
    max-width: 560px;
    margin: 30px 0 0;
    font-size: clamp(16px, 1.15vw, 19px);
}

.vp-luxury-residences__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.92fr 0.92fr;
    gap: 34px;
    align-items: end;
}


.vp-luxury-residences__card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 620px;
    overflow: hidden;

    background: #fbf7ef;

    border: 1px solid rgba(23, 19, 15, 0.08);

    box-shadow: 0 22px 60px rgba(23, 19, 15, 0.075);
    transition:
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.85s ease,
        box-shadow 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.85s ease;
}

.vp-luxury-residences__card:hover {
    transform: translateY(-8px);

    border-color: rgba(23, 19, 15, 0.14);

    background: #fffaf2;

    box-shadow: 0 30px 76px rgba(23, 19, 15, 0.105);
}

.vp-luxury-residences__card:first-child {
    min-height: 720px;
}

.vp-luxury-residences__card:nth-child(2) {
    margin-bottom: 72px;
}

.vp-luxury-residences__card:nth-child(3) {
    margin-bottom: 28px;
}

.vp-luxury-residences__card::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 34px;
    z-index: 4;

    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.22em;

    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.vp-luxury-residences__card:nth-child(1)::before {
    content: "01";
}

.vp-luxury-residences__card:nth-child(2)::before {
    content: "02";
}

.vp-luxury-residences__card:nth-child(3)::before {
    content: "03";
}

.vp-luxury-residences__image-wrap {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: #e8dfd3;
}

.vp-luxury-residences__card:first-child .vp-luxury-residences__image-wrap {
    height: 500px;
}

.vp-luxury-residences__image-wrap::before {
    content: "";
    position: absolute;
    inset: 22px;
    z-index: 2;
    pointer-events: none;

    border: 1px solid rgba(255, 255, 255, 0.34);
    opacity: 0;
    transform: scale(0.985);

    transition:
        opacity 0.85s ease,
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.vp-luxury-residences__card:hover .vp-luxury-residences__image-wrap::before {
    opacity: 1;
    transform: scale(1);
}

.vp-luxury-residences__image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(0, 0, 0, 0.08) 100%);
}

.vp-luxury-residences__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    transform: scale(1.03);

    filter:
        saturate(0.82) contrast(1.04) brightness(0.93) sepia(0.08);

    transition:
        transform 1.25s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vp-luxury-residences__card:hover .vp-luxury-residences__image {
    transform: scale(1.08);

    filter:
        saturate(0.92) contrast(1.05) brightness(0.98) sepia(0.03);
}

.vp-luxury-residences__card-content {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 52px 42px 52px;
}

.vp-luxury-residences__card-content::before {
    content: "";
    width: 42px;
    height: 1px;
    margin-bottom: 28px;
    background: rgba(23, 19, 15, 0.22);
}

.vp-luxury-residences__card-kicker {
    margin-bottom: 18px;

    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 500;

    color: rgba(23, 19, 15, 0.44);
}

.vp-luxury-residences__card-title {
    max-width: 360px;
    margin: 0;

    color: #17130f;

    font-size: clamp(28px, 2.4vw, 38px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 400;
}

.vp-luxury-residences__card-text {
    max-width: 390px;
    margin: 24px 0 0;

    color: rgba(23, 19, 15, 0.58);

    font-size: 15px;
    line-height: 1.75;
    font-weight: 300;
}

/* Responsive */

@media (max-width: 1100px) {
    .vp-luxury-residences__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .vp-luxury-residences__card,
    .vp-luxury-residences__card:first-child {
        min-height: auto;
    }

    .vp-luxury-residences__card:nth-child(2),
    .vp-luxury-residences__card:nth-child(3) {
        margin-bottom: 0;
    }

    .vp-luxury-residences__image-wrap,
    .vp-luxury-residences__card:first-child .vp-luxury-residences__image-wrap {
        height: 520px;
    }
}

@media (max-width: 768px) {

    .vp-luxury-residences__card.is-active,
    .vp-luxury-residences__card.is-dimmed {
        transform: none;
        opacity: 1;
        filter: none;
    }
}

@media (max-width: 768px) {
    .vp-luxury-residences__inner {
        width: min(100% - 32px, 1440px);
    }

    .vp-luxury-residences__head {
        margin-bottom: 56px;
    }

    .vp-luxury-residences__title {
        font-size: clamp(38px, 11vw, 58px);
        line-height: 1;
    }

    .vp-luxury-residences__text {
        font-size: 16px;
        line-height: 1.75;
    }

    .vp-luxury-residences__image-wrap,
    .vp-luxury-residences__card:first-child .vp-luxury-residences__image-wrap {
        height: 360px;
    }

    .vp-luxury-residences__card-content {
        padding: 28px 24px 32px;
    }

    .vp-luxury-residences__image-wrap::before {
        inset: 16px;
    }
}

/* Residence JS states */

.vp-luxury-residences__card {
    transition:
        transform .9s cubic-bezier(.16, 1, .3, 1),
        opacity .9s ease,
        filter .9s ease,
        box-shadow .9s cubic-bezier(.16, 1, .3, 1);
}

.vp-luxury-residences__card.is-active {
    transform: translateY(-18px);
    opacity: 1;
    filter: saturate(1.02);
}

.vp-luxury-residences__card.is-dimmed {
    opacity: .48;
    filter: saturate(.86);
}



/* Active residence number accent */

.vp-luxury-residences__card::before {
    transition:
        color .7s ease,
        opacity .7s ease,
        transform .7s cubic-bezier(.16, 1, .3, 1),
        text-shadow .7s ease;
}

.vp-luxury-residences__card.is-dimmed::before {
    opacity: .38;
}

.vp-luxury-residences__card.is-active::before {
    opacity: 1;
    color: rgba(23, 19, 15, .72);
    transform: translateY(-4px);
    text-shadow: none;
}

.vp-luxury-residences__card::after {
    content: "";
    position: absolute;
    top: 54px;
    left: 34px;
    z-index: 4;

    width: 0;
    height: 1px;

    background: rgba(23, 19, 15, .34);

    transition:
        width .8s cubic-bezier(.16, 1, .3, 1),
        opacity .8s ease;

    opacity: 0;
}

.vp-luxury-residences__card.is-active::after {
    width: 34px;
    opacity: 1;
}

/* =========================================================
   LUXURY RESIDENCES
   Tablet + Mobile final responsive polish
========================================================= */

/* Tablet */
@media (max-width: 1024px) {

    .vp-luxury-residences__inner {
        width: min(100% - 48px, 1440px);
    }

    .vp-luxury-residences__head {
        max-width: 720px;
        margin-bottom: 72px;
    }

    .vp-luxury-residences__grid {
        gap: 28px;
    }

    .vp-luxury-residences__image-wrap,
    .vp-luxury-residences__card:first-child .vp-luxury-residences__image-wrap {
        height: 460px;
    }

    .vp-luxury-residences__card-content {
        padding: 42px 36px 44px;
    }
}


/* Mobile */
@media (max-width: 640px) {

    .vp-luxury-residences__inner {
        width: min(100% - 32px, 1440px);
    }

    .vp-luxury-residences__head {
        margin-bottom: 46px;
    }

    .vp-luxury-residences__eyebrow {
        margin-bottom: 18px;
    }

    .vp-luxury-residences__title {
        font-size: clamp(36px, 11vw, 54px);
        line-height: 1;
        letter-spacing: -.06em;
    }

    .vp-luxury-residences__text {
        margin-top: 22px;
        font-size: 15px;
        line-height: 1.7;
    }

    .vp-luxury-residences__grid {
        gap: 22px;
    }

    .vp-luxury-residences__card {
        border-radius: 0;
    }

    .vp-luxury-residences__image-wrap,
    .vp-luxury-residences__card:first-child .vp-luxury-residences__image-wrap {
        height: 310px;
    }

    .vp-luxury-residences__card::before {
        top: 24px;
        left: 24px;
        font-size: 10px;
    }

    .vp-luxury-residences__card::after {
        top: 42px;
        left: 24px;
    }

    .vp-luxury-residences__card.is-active::after {
        width: 28px;
    }

    .vp-luxury-residences__card-content {
        padding: 26px 22px 30px;
    }

    .vp-luxury-residences__card-content::before {
        width: 34px;
        margin-bottom: 22px;
    }

    .vp-luxury-residences__card-title {
        font-size: clamp(26px, 8vw, 34px);
        line-height: 1.04;
    }

    .vp-luxury-residences__card-text {
        margin-top: 18px;
        font-size: 14.5px;
        line-height: 1.68;
    }

    .vp-luxury-residences__image-wrap::before {
        inset: 14px;
    }
}


/* Small Mobile */
@media (max-width: 420px) {

    .vp-luxury-residences__inner {
        width: min(100% - 28px, 1440px);
    }

    .vp-luxury-residences__title {
        font-size: clamp(34px, 12vw, 48px);
    }

    .vp-luxury-residences__image-wrap,
    .vp-luxury-residences__card:first-child .vp-luxury-residences__image-wrap {
        height: 270px;
    }

    .vp-luxury-residences__card-content {
        padding: 24px 20px 28px;
    }
}