/* Homepage showcase: destination photography first, concise copy second. */
.home .home-content > section.home-destinations,
.home .home-content > section.home-stays {
    margin: 0;
    color: #1b2429;
}

.home .home-content > section.home-destinations {
    padding-top: 28px;
}

.home-showcase-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 24px;
    margin: 0 0 22px;
}

.home-showcase-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #98762c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
}

.home-showcase-heading h2 {
    margin: 0;
    font-size: clamp(30px, 3.3vw, 46px);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.home-showcase-heading > p {
    grid-column: 1;
    margin: 9px 0 0;
    color: #737b7c;
    font-size: 15px;
    line-height: 1.5;
}

.home-showcase-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: center;
    color: #20282d;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.home-showcase-more span {
    font-size: 24px;
    font-weight: 400;
    transition: transform .2s ease;
}

.home-showcase-more:hover span {
    transform: translateX(4px);
}

.home-destination-grid,
.home-stay-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-destination-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: .98;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
    background: #d9e0e2;
    color: #fff;
    box-shadow: 0 12px 28px rgb(26 37 43 / 12%);
    text-decoration: none;
    transform: translateZ(0);
}

.home-destination-card::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(180deg, rgb(9 18 24 / 3%) 28%, rgb(10 19 26 / 17%) 52%, rgb(10 19 26 / 88%) 100%);
    content: "";
    pointer-events: none;
}

.home-destination-card > img {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.home-destination-ribbon {
    position: absolute;
    z-index: 1;
    top: 61%;
    left: -5px;
    max-width: calc(100% - 16px);
    padding: 9px 18px 10px 22px;
    clip-path: polygon(0 12%, 96% 0, 100% 78%, 78% 92%, 36% 86%, 6% 100%);
    background: #ffe57e;
    color: #433b24;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(14px, 1.2vw, 19px);
    font-style: italic;
    font-weight: 700;
    line-height: 1.25;
    transform: rotate(-3deg);
}

.home-destination-caption {
    position: absolute;
    z-index: 1;
    right: 18px;
    bottom: 18px;
    left: 20px;
    display: flex;
    align-items: end;
    gap: 10px;
}

.home-destination-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.home-destination-copy strong {
    font-size: clamp(18px, 1.65vw, 25px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.home-destination-copy > span {
    color: rgb(255 255 255 / 88%);
    font-size: 13px;
    line-height: 1.3;
}

.home-round-arrow {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #b74137;
    font-size: 23px;
    line-height: 1;
    transition: transform .2s ease;
}

.home-stays {
    padding-top: 72px;
}

.home-stays-heading {
    margin-bottom: 22px;
}

.home-stays-heading > p {
    grid-column: 1 / -1;
    grid-row: 2;
}

.home-stay-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #eceae4;
    border-radius: 22px;
    background: #fff;
    color: inherit;
    box-shadow: 0 8px 26px rgb(34 39 42 / 6%);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-stay-photo {
    position: relative;
    display: block;
    aspect-ratio: 1.27;
    overflow: hidden;
    background: #e5e3dc;
}

.home-stay-photo > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}

.home-stay-photo-altai > img {
    object-position: 50% 55%;
}

.home-stay-city {
    position: absolute;
    bottom: 14px;
    left: 14px;
    padding: 7px 13px;
    border-radius: 30px;
    background: #fff;
    color: #283138;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    box-shadow: 0 3px 12px rgb(0 0 0 / 12%);
}

.home-stay-copy {
    display: grid;
    gap: 8px;
    padding: 19px 20px 22px;
}

.home-stay-copy strong {
    font-size: clamp(18px, 1.65vw, 24px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.home-stay-copy > span {
    color: #747b7d;
    font-size: 14px;
    line-height: 1.5;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .home-destination-card:hover > img,
    .home-stay-card:hover .home-stay-photo > img {
        transform: scale(1.055);
    }

    .home-destination-card:hover .home-round-arrow {
        transform: translateX(3px);
    }

    .home-stay-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 34px rgb(34 39 42 / 12%);
    }
}

.home-destination-card:focus-visible,
.home-stay-card:focus-visible,
.home-showcase-more:focus-visible {
    outline: 3px solid #b58a26;
    outline-offset: 4px;
}

@media (max-width: 1000px) {
    .home-destination-grid,
    .home-stay-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .home-destination-card {
        aspect-ratio: 1.15;
    }

    .home-destination-copy strong {
        font-size: clamp(19px, 2.5vw, 25px);
    }

    .home-stay-copy strong {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .home .home-content > section.home-destinations {
        padding-top: 18px;
    }

    .home-showcase-heading {
        column-gap: 12px;
        margin-bottom: 16px;
    }

    .home-showcase-kicker {
        margin-bottom: 8px;
        font-size: 9px;
    }

    .home-showcase-heading h2 {
        font-size: clamp(25px, 7vw, 32px);
        line-height: 1.08;
    }

    .home-showcase-heading > p {
        margin-top: 7px;
        font-size: 13px;
    }

    .home-showcase-more {
        gap: 5px;
        font-size: 12px;
    }

    .home-showcase-more span {
        font-size: 19px;
    }

    .home-destination-grid,
    .home-stay-grid {
        gap: 10px;
    }

    .home-destination-card {
        aspect-ratio: .82;
        border-radius: 17px;
    }

    .home-destination-ribbon {
        top: 57%;
        left: -4px;
        padding: 7px 12px 8px 15px;
        font-size: clamp(12px, 3.6vw, 15px);
    }

    .home-destination-caption {
        right: 10px;
        bottom: 12px;
        left: 12px;
        gap: 6px;
    }

    .home-destination-copy {
        gap: 4px;
    }

    .home-destination-copy strong {
        font-size: clamp(15px, 4.5vw, 19px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .home-destination-copy > span {
        font-size: 11px;
    }

    .home-round-arrow {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 19px;
    }

    .home-stays {
        padding-top: 48px;
    }

    .home-stays-heading > p {
        grid-column: 1 / -1;
    }

    .home-stay-card {
        border-radius: 16px;
    }

    .home-stay-photo {
        aspect-ratio: 1.05;
    }

    .home-stay-city {
        bottom: 9px;
        left: 9px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .home-stay-copy {
        gap: 6px;
        padding: 13px 12px 15px;
    }

    .home-stay-copy strong {
        font-size: clamp(15px, 4.3vw, 19px);
    }

    .home-stay-copy > span {
        font-size: 12px;
        line-height: 1.4;
    }
}

@media (max-width: 360px) {
    .home-showcase-heading {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .home-showcase-more {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .home-showcase-heading > p {
        grid-row: 3;
    }

    .home-destination-grid,
    .home-stay-grid {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-showcase-more span,
    .home-destination-card > img,
    .home-round-arrow,
    .home-stay-card,
    .home-stay-photo > img {
        transition: none;
    }
}
