/* The same photo, white body and yellow action used by the hotel catalogue. */
.home .home-content > section.home-yandex-showcase {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
}
.home-yandex-showcase .home-yandex-row + .home-yandex-row { margin-top: 38px; }
.home-yandex-showcase-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.home-yandex-map-toggle {
    display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px;
    padding: 0 17px; border: 1px solid #d8b650; border-radius: 13px; color: #302700;
    background: linear-gradient(145deg, #f8df8c, #edc84d); box-shadow: 0 5px 15px #81600016;
    font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.home-yandex-map-toggle:hover { transform: translateY(-2px); box-shadow: 0 9px 22px #81600025; background: #ffdc57; }
.home-yandex-map-toggle:focus-visible { outline: 3px solid #8b6b15; outline-offset: 3px; }
.home-yandex-map-toggle-icon { display: inline-grid; flex: 0 0 auto; width: 20px; height: 20px; place-items: center; font-size: 22px; line-height: 1; }
.home-yandex-flip-stage { position: relative; display: grid; overflow: hidden; perspective: 1500px; }
.home-yandex-showcase-front { position: relative; z-index: 1; grid-area: 1 / 1; min-width: 0; }
.home-yandex-showcase-front .home-yandex-row-title { transition: opacity .3s ease, transform .42s ease; transform-origin: center; }
.home-yandex-map-back {
    position: absolute; z-index: 0; inset: 0; overflow: hidden; min-width: 0; min-height: 420px;
    border: 1px solid #e4e9ef; border-radius: 24px; background: #e8edf0; box-shadow: 0 14px 36px #20334d13;
    opacity: 0; pointer-events: none; transform: scale(.985); transition: opacity .42s ease, transform .6s cubic-bezier(.2,.72,.2,1);
}
.home-yandex-showcase #hotel-map { box-sizing: border-box; padding: 0; }
.home-yandex-map-frame { display: block; box-sizing: border-box; width: 100%; max-width: none; height: 100%; min-height: 420px; padding: 0; border: 0; background: #e8edf0; }
.home-yandex-showcase.is-map-open .home-yandex-map-back { z-index: 2; opacity: 1; pointer-events: auto; transform: scale(1); }
.home-yandex-showcase.is-map-open .home-yandex-showcase-front { pointer-events: none; }
.home-yandex-showcase.is-map-open .home-yandex-showcase-front .home-yandex-row-title { opacity: 0; transform: rotateX(90deg); }
.home-yandex-showcase.is-map-open .home-yandex-card {
    opacity: 0; pointer-events: none; transform: rotateY(180deg);
    transform-style: preserve-3d; backface-visibility: hidden;
    transition: transform .58s cubic-bezier(.2,.72,.2,1), opacity .4s ease, box-shadow .2s ease;
}
.home-yandex-grid .home-yandex-card:nth-child(2) { transition-delay: .045s; }
.home-yandex-grid .home-yandex-card:nth-child(3) { transition-delay: .09s; }
.home-yandex-row-title { transition: opacity .3s ease, transform .42s ease; }
.home-yandex-showcase.is-map-open .home-yandex-row-title { opacity: 0; transform: rotateX(90deg); }
.home-yandex-map-back[aria-hidden="true"] { visibility: hidden; }
.home-yandex-row-title {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin: 0 0 18px; color: var(--ink); font-size: 21px; font-weight: 600;
    letter-spacing: -.025em; line-height: 1.35;
}
.home-yandex-row-title > span { color: #69717d; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.home-yandex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.home-yandex-card {
    display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    border: 1px solid #e4e9ef; border-radius: 24px; background: #fff; color: var(--ink);
    text-decoration: none; box-shadow: 0 5px 20px #20334d06;
    transition: box-shadow .2s ease, transform .2s ease;
}
.home-yandex-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.home-yandex-photo { display: block; flex: 0 0 auto; aspect-ratio: 1.6; overflow: hidden; background: #e9eef3; }
.home-yandex-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.home-yandex-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 12px; padding: 22px; }
.home-yandex-name { min-height: 2.6em; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.home-yandex-city { display: flex; align-items: center; gap: 6px; color: #737d87; font-size: 14px; line-height: 1.4; }
.home-yandex-city .icon { width: 16px; height: 16px; flex: 0 0 16px; }
.home-yandex-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #69717d; font-size: 13px; line-height: 1.5; }
.home-yandex-rating { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; background: var(--yellow); color: var(--ink); font-weight: 700; }
.home-yandex-source { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid #e6e6ec; color: #59616b; font-size: 12px; line-height: 1.5; }
.home-yandex-source img { flex: 0 0 18px; width: 18px; height: 18px; object-fit: contain; }
.home-yandex-card .home-yandex-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 2px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.home-yandex-link .icon { width: 18px; height: 18px; }
.home-yandex-showcase .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .home-yandex-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px #20334d13; }
    .home-yandex-card:hover .home-yandex-photo > img { transform: scale(1.025); }
    .home-yandex-card:hover .home-yandex-link { background: #ffd530; }
}
@media (max-width: 1000px) {
    .home-yandex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .home-yandex-copy { padding: 20px; }
    .home-yandex-name { font-size: 21px; }
}
@media (max-width: 650px) {
    .home-yandex-showcase .home-showcase-heading {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        row-gap: 0;
    }
    .home-yandex-showcase-actions {
        display: grid;
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
        margin-top: 14px;
    }
    body.home .home-yandex-showcase-actions > .home-showcase-more,
    body.home .home-yandex-showcase-actions > .home-yandex-map-toggle {
        box-sizing: border-box;
        display: inline-flex;
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 48px;
        align-items: center;
        align-self: stretch;
        justify-content: center;
        gap: 7px;
        padding: 10px 9px;
        border: 1px solid #e2e5e8;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 3px 10px #20334d0b;
        color: #263039;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600 !important;
        line-height: 1.35;
        text-align: center;
        white-space: normal;
        flex-wrap: nowrap;
    }
    body.home .home-yandex-showcase-actions > .home-yandex-map-toggle {
        border-color: #d8b650;
        background: linear-gradient(145deg, #f8df8c, #edc84d);
        color: #302700;
    }
    .home-yandex-showcase-actions [data-home-yandex-all-hotels-label],
    .home-yandex-showcase-actions [data-home-yandex-map-label] {
        display: block;
        flex: 0 1 auto;
        min-width: 0;
        font: inherit;
        line-height: inherit;
        white-space: normal;
        overflow-wrap: anywhere;
        transform: none;
    }
    body.home .home-yandex-showcase-actions > .home-showcase-more > span[aria-hidden="true"] {
        display: inline-grid;
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        place-items: center;
        font-size: 18px;
        line-height: 1;
        transform: none;
    }
    body.home .home-yandex-showcase-actions > .home-showcase-more:hover,
    body.home .home-yandex-showcase-actions > .home-yandex-map-toggle:hover {
        transform: none;
    }
    .home-yandex-showcase .home-showcase-heading > p { grid-row: 3; }
    .home-yandex-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .home-yandex-row-title { display: block; font-size: 20px; }
    .home-yandex-row-title > span { display: block; margin-top: 6px; font-size: 12px; }
    .home-yandex-name { min-height: 0; font-size: 22px; }
    .home-yandex-showcase .home-yandex-row + .home-yandex-row { margin-top: 30px; }
    .home-yandex-showcase-actions { gap: 8px; }
    .home-yandex-map-toggle { min-height: 46px; gap: 6px; padding: 0 9px; font-size: 12px; }
    .home-yandex-map-toggle-icon { width: 17px; height: 17px; font-size: 19px; }
    .home-yandex-map-back, .home-yandex-map-frame { min-height: 540px; }
}
@media (max-width: 360px) {
    .home-yandex-showcase-actions { grid-column: 1; grid-row: 2; margin-top: 12px; }
    body.home .home-yandex-showcase-actions > .home-showcase-more { grid-column: auto; grid-row: auto; justify-self: stretch; }
}
@media (max-width: 380px) {
    body.home .home-yandex-showcase-actions > .home-showcase-more,
    body.home .home-yandex-showcase-actions > .home-yandex-map-toggle { font-size: 14px; }
    .home-yandex-map-toggle-icon { width: 15px; height: 15px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-yandex-card, .home-yandex-photo > img, .home-yandex-map-back, .home-yandex-row-title,
    .home-yandex-map-toggle { transition: none; }
    .home-yandex-showcase.is-map-open .home-yandex-card { transform: none; }
}
