section.hotel {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;

    gallery {
        display: block;
        position: relative;
        overflow: hidden;
        background: #ddd;

        > picture {
            display: block;
            width: 100%;

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

        set {
            picture {
                display: block;
                box-sizing: border-box;

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

            picture.plus {
                position: relative;
            }

            picture.plus::after {
                position: absolute;
                inset: 0;
                content: attr(data-text);
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: #000A;
                color: #FFF;
                font-size: 24px;
                font-weight: 700;
                cursor: pointer;
                user-select: none;
                pointer-events: none;
            }
        }

        nav {
            position: absolute;
            left: 50%;
            bottom: 18px;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 7px;
            z-index: 1;

            a {
                display: block;
                height: 7px;
                border-radius: 999px;
                cursor: pointer;
                background: rgba(255, 255, 255, 0.45);
                transition: width 0.28s ease, background 0.2s ease;
            }

            a:not(.currnet) {
                width: 7px;
            }

            a.currnet {
                width: 20px;
                background: rgba(255, 255, 255, 0.95);
            }
        }

        .share {
            position: absolute;
            /* 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;
            }
        }
    }

    .accommodation {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;

        h3 {
            margin: 0;
            font-size: 22px;
            font-weight: 700;
            color: var(--black);
            letter-spacing: -0.01em;

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

        p {
            display: flex;
            align-items: center;
            gap: 7px;
            margin: 7px 0 0;
            font-size: 14px;
            color: var(--text);
            line-height: 1.3;

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

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

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

    hr {
        border: 0;
        border-top: 1px solid #E6E6E6;
    }

    .description {
        display: grid;
        gap: 20px;

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

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

    .map {
        border-radius: 10px;
        overflow: hidden;
        background: var(--white);

        iframe {
            display: block;
            width: 100%;
            height: 280px;
            border: 0;
            background: var(--white);
        }

        > div {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 16px 0;
            font-size: 14px;
            line-height: 1.4;
            color: var(--text);

            &:last-child {
                padding-bottom: 14px;
            }

            img {
                flex-shrink: 0;
                width: 18px;
                height: 18px;
                margin-top: 2px;
            }

            strong {
                font-weight: 700;
            }
        }
    }

    .rooms {
        scroll-margin-top: 72px;

        > h4 {
            margin: 0 0 14px;
            font-size: 18px;
            font-weight: 700;
            color: var(--black);
        }

        .room {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 16px;
            margin: 0 0 12px;
            padding: 12px;
            background: var(--white);
            border-radius: 10px;
            box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.02);

            picture {
                display: block;
                flex-shrink: 0;
                width: 100%;
                aspect-ratio: 3 / 2;
                border-radius: 7px;
                overflow: hidden;
                background: #eee;

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

            > div {
                flex: 1;
                min-width: 0;

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

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

            .price {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 2px;
                font-size: 18px;
                font-weight: 700;
                color: var(--black);

                del {
                    font-size: 13px;
                    font-weight: 400;
                    color: var(--muted);
                }
            }

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

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

    @media (max-width: 799.999px) {
        & {
            padding: 62px 0 20px;
        }

        gallery {
            aspect-ratio: 4 / 5;

            > picture {
                display: flex;
                height: 100%;
                transition: transform 0.38s ease-out;
                will-change: transform;

                > img {
                    flex: 0 0 100%;
                    pointer-events: none;
                    user-select: none;
                }
            }

            set {
                display: contents;

                picture {
                    flex: 0 0 100%;
                    width: 100%;
                    height: 100%;

                    img {
                        pointer-events: none;
                        user-select: none;
                    }
                }

                picture.plus::after {
                    content: none;
                }
            }

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

        .accommodation {
            flex-wrap: wrap;
            padding: 16px;

            > a {
                width: 100%;
            }
        }

        hr {
            margin: 0 16px;
        }

        .description {
            padding: 20px 16px;
        }

        .map {
            margin: 0 16px;
        }

        .rooms {
            margin: 24px 16px 0;

            .room > a {
                width: 100%;
            }
        }
    }

    @media (min-width: 800px) {
        & {
            padding: 80px 20px 20px;
        }

        gallery {
            border-radius: 10px;

            > picture {
                display: grid;
                grid-template-columns: 2fr 1fr 1fr;
                grid-template-rows: 1fr 1fr;
                gap: 4px;

                > img {
                    grid-row: 1 / 3;
                    aspect-ratio: 3 / 2;
                }
            }

            set {
                display: grid;
                grid-template-columns: 1fr 1fr;
                grid-template-rows: 1fr 1fr;
                grid-column: 2 / -1;
                grid-row: 1 / -1;
                gap: 4px;

                picture {
                    position: relative;
                    overflow: hidden;
                    width: 100%;
                    height: 100%;
                    min-width: 0;
                    min-height: 0;
                }
            }

            nav {
                display: none;
            }

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

        /* .accommodation {
            padding: 20px 4px 0;
        } */

        hr {
            margin: 24px 0;
        }

        .description {
            grid-template-columns: 220px 1fr;
            padding: 0 4px 28px;
        }

        .rooms {
            margin: 8px 0 0;
            padding: 0 4px 20px;

            .room {
                flex-wrap: nowrap;
                align-items: center;

                picture {
                    width: 180px;
                }

                .price {
                    flex-shrink: 0;
                    align-items: flex-end;
                }
            }
        }
    }
}
