section.hotel.book {
    padding-bottom: 96px;

    gallery {
        .favorite {
            position: absolute;
            left: 14px;
            bottom: 14px;
            /* z-index: 1; */
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: #FFFC;
            backdrop-filter: blur(8px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            display: grid;
            place-items: center;
            box-sizing: border-box;

            img {
                display: block;
                width: 20px;
                height: 20px;
            }
        }

        .share {
            right: auto;
            bottom: auto;
            left: 14px;
            top: 14px;
        }
    }

    .features {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 0;
        padding: 4px 16px 8px;
        list-style: none;

        li {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 7px 14px 7px 7px;
            border: 1px solid #E6E6E6;
            border-radius: 7px;
            background: var(--white);
            font-size: 13px;
            font-weight: 500;
            color: var(--text);

            &::before {
                content: none;
                display: none;
            }

            img {
                display: block;
                flex-shrink: 0;
                width: 24px;
                height: 24px;
            }
        }
    }

    .pick {
        margin: 8px 16px 0;

        .head {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;

            p {
                margin: 0 0 6px;
                font-size: 12px;
                font-weight: 700;
                letter-spacing: 0.08em;
                text-transform: uppercase;
                color: var(--blue);
            }

            h2 {
                margin: 0;
                font-size: 22px;
                font-weight: 700;
                color: var(--blue-strong);
                letter-spacing: -0.02em;
            }

            > span {
                flex-shrink: 0;
                font-size: 13px;
                color: var(--muted);
                white-space: nowrap;
            }
        }

        .when {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 16px 24px;
            margin: 16px 0 18px;
            padding: 14px 16px;
            background: var(--white);
            border: 1px solid #E6E6E6;
            border-radius: 10px;

            small {
                display: block;
                font-size: 11px;
                font-weight: 700;
                letter-spacing: 0.06em;
                text-transform: uppercase;
                color: var(--muted);
            }

            strong {
                display: block;
                margin-top: 2px;
                font-size: 15px;
                font-weight: 700;
                color: var(--text);
            }

            > span {
                padding: 6px 12px;
                border-radius: 999px;
                background: var(--lgray);
                font-size: 13px;
                font-weight: 700;
                color: var(--text);
            }
        }

        .choice {
            position: relative;
            display: grid;
            grid-template-columns: 96px minmax(0, 1fr);
            grid-template-areas:
                "photo price"
                "meta meta"
                "text text";
            align-items: center;
            gap: 14px;
            margin: 0 0 12px;
            padding: 12px;
            background: var(--white);
            border: 2px solid #E6E6E6;
            border-radius: 10px;
            box-sizing: border-box;
            cursor: pointer;

            &:not(:has(picture)) {
                grid-template-columns: minmax(0, 1fr);
                grid-template-areas:
                    "price"
                    "meta"
                    "text";
            }

            > div:not(.price) {
                display: contents;
            }

            picture {
                grid-area: photo;
                display: block;
                position: relative;
                width: 96px;
                aspect-ratio: 3 / 2;
                border-radius: 7px;
                overflow: hidden;
                background: #eee;

                img {
                    display: block;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

                cursor: pointer;

                .zoom {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 38px;
                    height: 38px;
                    border-radius: 50%;
                    background: #FFFA;
                    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
                    display: grid;
                    place-items: center;
                    pointer-events: none;
                    transform: translate(-50%, -50%);

                    svg {
                        display: block;
                        width: 20px;
                        height: 20px;
                        fill: none;
                        stroke: var(--blue-strong);
                        stroke-width: 2.2;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                    }
                }
            }

            .badge {
                position: absolute;
                top: 8px;
                left: 8px;
                padding: 5px 9px;
                border-radius: 6px;
                background: #FFFC;
                backdrop-filter: blur(8px);
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
                font-size: 11px;
                font-weight: 700;
                color: var(--text);
            }

            h3 {
                margin: 0;
                font-size: 16px;
                font-weight: 700;
                color: var(--black);
            }

            .meta {
                grid-area: meta;
                display: flex;
                flex-wrap: wrap;
                gap: 8px 14px;
                min-width: 0;
                margin: 5px 0;
                font-size: 13px;
                color: var(--black);

                span {
                    display: inline-flex;
                    align-items: center;
                    gap: 5px;
                    font-size: 15px;
                }

                img {
                    width: 20px;
                    height: 20px;
                }
            }

            p {
                margin: 8px 0 0;
                font-size: 14px;
                color: var(--muted);
                line-height: 1.35;
            }

            > div:not(.price) > p:not(.meta) {
                grid-area: text;
                min-width: 0;
            }

            .price {
                grid-area: price;
                align-self: center;
                text-align: right;
                margin-top: 0;

                s {
                    display: block;
                    font-size: 13px;
                    font-weight: 500;
                    color: var(--muted);
                    text-decoration: line-through;
                    white-space: nowrap;
                }

                strong {
                    display: block;
                    font-size: 18px;
                    font-weight: 700;
                    line-height: 1.2;
                    color: var(--text);
                    white-space: nowrap;
                }

                span {
                    display: block;
                    margin-top: 2px;
                    font-size: 12px;
                    color: var(--muted);
                    white-space: nowrap;
                }
            }

            .picked {
                display: none;
                position: absolute;
                top: 0;
                right: 14px;
                align-items: center;
                padding: 3px 10px;
                border-radius: 999px;
                background: var(--blue);
                color: var(--white);
                font-size: 12px;
                font-weight: 700;
                line-height: 1.2;
                white-space: nowrap;
                pointer-events: none;
                transform: translateY(-50%);
            }
        }

        .choice.selected {
            border-color: var(--blue);

            .picked {
                display: inline-flex;
            }
        }

        .note {
            margin: 4px 0 0;
            font-size: 13px;
            color: var(--muted);
        }
    }

    .side {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        padding: 12px 16px;
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-sizing: border-box;

        aside {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            box-sizing: border-box;
            padding: 0;
            background: transparent;
            border: 0;
            border-radius: 0;
            box-shadow: none;

            .stay,
            .brief {
                display: none;
            }

            .total {
                padding: 0;
                min-width: 0;
                text-align: left;

                .sum {
                    display: block;
                    font-size: 20px;
                    font-weight: 700;
                    letter-spacing: -0.02em;
                    color: var(--text);
                    line-height: 1.2;
                }

                > span,
                .label {
                    display: none;
                }
            }

            > a {
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                width: auto;
                padding: 12px 42px;
                border-radius: 7px;
                background: var(--blue);
                font-size: 14px;
                font-weight: 700;
                color: var(--white);
                text-decoration: none;
                box-sizing: border-box;
            }

            > a:hover {
                background: var(--blue-strong);
            }

            .sold {
                flex: 1;
                margin: 0;
                text-align: center;
                font-size: 16px;
                font-weight: 700;
                color: var(--text);
            }
        }
    }

    @media (min-width: 800px) {
        & {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 320px;
            align-items: start;
            gap: 24px;
            padding-bottom: 20px;
        }

        .features {
            padding: 16px 4px 4px;
        }

        .description {
            grid-template-columns: none;
        }

        gallery {
            grid-column: 1 / -1;

            set picture:nth-child(n+5) {
                display: none;
            }
        }

        .pick {
            margin: 12px 0 0;
            padding: 0 4px 8px;

            .head {
                flex-wrap: nowrap;
                align-items: flex-end;
            }

            .when > span {
                margin-left: auto;
            }

            .choice {
                grid-template-columns: 160px minmax(0, 1fr) auto;
                grid-template-areas: none;
                align-items: start;

                &:not(:has(picture)) {
                    grid-template-columns: minmax(0, 1fr) auto;
                    grid-template-areas: none;
                }

                > div:not(.price) {
                    display: block;
                    min-width: 0;
                }

                picture,
                .meta,
                > div:not(.price) > p:not(.meta),
                .price {
                    grid-area: auto;
                }

                picture {
                    width: 160px;
                    aspect-ratio: 3 / 2;
                }

                .price {
                    align-self: start;
                    margin-top: 5px;
                }
            }
        }

        .side {
            position: sticky;
            top: 80px;
            left: auto;
            right: auto;
            bottom: auto;
            padding: 0;
            background: none;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border-top: 0;

            aside {
                display: block;
                padding: 20px;
                background: var(--white);
                border: 1px solid #E6E6E6;
                border-radius: 10px;
                box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.02);

                .stay {
                    display: block;
                    margin: 0;

                    .kind {
                        display: flex;
                        align-items: center;
                        gap: 6px;
                        margin: 0;
                        font-size: 13px;
                        font-weight: 400;
                        color: var(--muted);

                        sup {
                            font-size: 0.85em;
                            letter-spacing: 0.06em;
                            vertical-align: baseline;
                            color: #F5A623;
                        }
                    }

                    h2 {
                        margin: 6px 0 8px;
                        font-size: 20px;
                        font-weight: 700;
                        line-height: 1.25;
                        color: var(--text);

                        sup {
                            font-size: 0.68em;
                            letter-spacing: 0.06em;
                            vertical-align: baseline;
                            color: #F5A623;
                            margin-left: 0.3em;
                        }
                    }

                    .place,
                    .facts {
                        display: flex;
                        align-items: flex-start;
                        gap: 8px;
                        margin: 6px 0 0;
                        font-size: 13px;
                        line-height: 1.35;
                        color: var(--muted);

                        img {
                            flex-shrink: 0;
                            width: 16px;
                            height: 16px;
                            margin-top: 1px;
                        }
                    }

                    .place a {
                        color: var(--blue);
                        text-decoration: none;
                    }

                    .place a:hover {
                        text-decoration: underline;
                    }
                }

                .brief {
                    display: flex;
                    align-items: flex-start;
                    gap: 8px;
                    padding: 0;
                    margin: 6px 0 0;
                    background: none;
                    border-radius: 0;
                    font-size: 13px;
                    line-height: 1.35;
                    color: var(--muted);

                    img {
                        flex-shrink: 0;
                        width: 16px;
                        height: 16px;
                        margin-top: 1px;
                    }

                    div {
                        display: flex;
                        flex-wrap: wrap;
                        align-items: baseline;
                        gap: 0 6px;
                    }

                    strong {
                        display: inline;
                        font-size: 13px;
                        font-weight: 700;
                        color: var(--text);
                    }

                    span {
                        display: inline;
                        margin: 0;
                    }
                }

                .total {
                    display: grid;
                    grid-template-columns: 1fr auto;
                    align-items: baseline;
                    column-gap: 10px;
                    row-gap: 4px;
                    padding: 20px 0 18px;
                    text-align: right;

                    .label {
                        display: block;
                        font-size: 13px;
                        font-weight: 400;
                        color: var(--muted);
                    }

                    .sum {
                        display: block;
                        font-size: 28px;
                        font-weight: 700;
                        letter-spacing: -0.03em;
                        color: var(--text);
                        line-height: 1.1;
                        white-space: nowrap;
                    }
                }

                > a {
                    width: 100%;
                    padding: 14px 18px;
                    font-size: 15px;
                }

                .sold {
                    margin: 18px 0 0;
                    font-size: 18px;
                }
            }
        }
    }
}
