/* Tokyo-only adjustments. Keep the shared site styles unchanged. */
.tokyo-page .body-inner {
    width: 100%;
    min-width: 0;
}

.tokyo-page .flickity-prev-next-button {
    box-sizing: border-box;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    border-radius: 50%;
}

.tokyo-page .flickity-prev-next-button .flickity-button-icon {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tokyo-page .post-item .post-item-description {
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 18px;
    overflow: visible;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.tokyo-page .post-item .post-item-description p-ob {
    display: block;
    line-height: inherit;
}

.tokyo-page .carousel[style*="height:"] {
    height: auto !important;
}

.tokyo-page img,
.tokyo-page video {
    max-width: 100%;
}

.tokyo-page .post-slider > .carousel img {
    width: 100%;
    height: auto;
}

.tokyo-page .post-video {
    position: relative;
    height: auto;
    padding: 0;
    aspect-ratio: 16 / 9;
}

.tokyo-page .post-video iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
}

.tokyo-page iframe[src*="google.com/maps"] {
    display: block;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 991.98px) {
    /* Inactive panes remain measurable for Flickity, without taking up space. */
    .tokyo-page .tab-content-destination {
        position: relative;
        height: auto !important;
        min-height: 0;
    }

    .tokyo-page .tab-content-destination > .tab-pane {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: block;
        visibility: hidden;
        pointer-events: none;
    }

    .tokyo-page .tab-content-destination > .tab-pane.active {
        position: relative;
        visibility: visible;
        pointer-events: auto;
    }

    .tokyo-page .tabcontent-destination {
        height: auto !important;
        padding-top: 24px;
    }

    .tokyo-page .product-description {
        min-height: 0;
    }

    .tokyo-page .product-bottom {
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    .tokyo-page {
        --tokyo-page-gutter: 16px;
        --tokyo-column-gutter: 8px;
    }

    .tokyo-page #mainMenu-trigger {
        height: auto;
        min-height: 44px;
    }

    .tokyo-page .body-inner > section {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    .tokyo-page .body-inner .container,
    .tokyo-page .body-inner .container-fluid {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
        padding-right: var(--tokyo-page-gutter) !important;
        padding-left: var(--tokyo-page-gutter) !important;
    }

    /* Avoid adding a second page gutter inside an existing container. */
    .tokyo-page .container .container,
    .tokyo-page .container-fluid .container {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .tokyo-page .body-inner .content.col-lg-12 {
        float: none;
        width: 100%;
        min-width: 0;
        padding: 0 !important;
    }

    .tokyo-page .body-inner .row {
        margin-right: calc(-1 * var(--tokyo-column-gutter)) !important;
        margin-left: calc(-1 * var(--tokyo-column-gutter)) !important;
    }

    .tokyo-page .body-inner .row > [class*="col-"] {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
        padding-right: var(--tokyo-column-gutter) !important;
        padding-left: var(--tokyo-column-gutter) !important;
    }

    .tokyo-page .heading-text h2,
    .tokyo-page .heading-text h3,
    .tokyo-page .heading-text h4 {
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .tokyo-page .post-thumbnails .post-item .post-image {
        float: none;
        width: 100%;
        margin: 0;
    }

    .tokyo-page .post-thumbnails .post-item .post-item-description {
        width: auto;
        margin: 0;
        padding: 16px;
    }

    .tokyo-page .post-item-description {
        overflow-wrap: anywhere;
    }

    .tokyo-page .post-item-description p-ob {
        display: block;
        line-height: 1.6;
    }

    .tokyo-page .tabs.tabs-clean .nav-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 24px !important;
    }

    .tokyo-page .nav-item-destination {
        flex: 1 1 120px;
        min-width: 0;
        text-align: center;
    }

    .tokyo-page .tabs .nav-tabs .nav-link {
        padding: 14px 24px;
        font-size: 14px;
        line-height: 1.4;
        white-space: normal;
    }

    .tokyo-page .tabs .nav-tabs > .divide {
        display: none;
    }

    .tokyo-page .container.p-b-120,
    .tokyo-page .background-grey.p-b-120 {
        padding-bottom: 32px !important;
    }

    .tokyo-page .post-item .post-item-description {
        padding: 16px;
    }

    .tokyo-page iframe[src*="google.com/maps"] {
        height: clamp(260px, 70vw, 450px);
    }

    .tokyo-page .product .product-title h3,
    .tokyo-page .product .product-title h3 a {
        overflow-wrap: anywhere;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .tokyo-page .tab-content-destination .row > .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
