/* Philosophy Paths locked classic tour layout - v1.1.0 */

/* Lock the classic content width independently from TTBM theme updates. */
.pp-ttbm-classic-root .ttbm_container {
    width: 980px !important;
    max-width: calc(100% - 30px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
}

.pp-ttbm-classic-root .ttbm_details_page_header {
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.pp-ttbm-classic-root .ttbm_default__title,
.pp-ttbm-classic-root .ttbm_default_title {
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.pp-ttbm-classic-root .ttbm_default__title h1,
.pp-ttbm-classic-root .ttbm_default_title h1,
#ttbm_content.pp-ttbm-classic-root .ttbm_default__title h1,
#ttbm_content.pp-ttbm-classic-root .ttbm_default_title h1 {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 9px 18px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #25262b !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-shadow: none !important;
}

.pp-ttbm-classic-root .pp-title-meta:empty {
    display: none !important;
}

.pp-ttbm-classic-root .ttbm_content_area {
    display: block !important;
    padding-top: 0 !important;
}

.pp-ttbm-classic-root .ttbm_content__left {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

/* Old page had no modern right-hand booking/sidebar column beside the gallery. */
.pp-ttbm-classic-root .ttbm_content__right {
    width: 100% !important;
    max-width: none !important;
}

/* Gallery proportions copied from the old Philosophy Paths page. */
.pp-ttbm-classic-gallery {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 180px !important;
    align-items: start !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 0 10px !important;
}

.pp-ttbm-classic-main {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    aspect-ratio: 1.8 / 1 !important;
    min-height: 0 !important;
    border-radius: 10px !important;
    background: #f4f4f4 !important;
}

.pp-ttbm-classic-main-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pp-ttbm-classic-thumbs {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 180px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.pp-ttbm-classic-root button.pp-ttbm-thumb,
.pp-ttbm-classic-root .pp-ttbm-thumb {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block !important;
    flex: 0 0 108px !important;
    width: 180px !important;
    height: 108px !important;
    min-height: 108px !important;
    max-height: 108px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 9px !important;
    overflow: hidden !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.pp-ttbm-classic-root .pp-ttbm-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
}

.pp-ttbm-classic-root .pp-ttbm-thumb.is-active {
    outline: 0 !important;
    box-shadow: none !important;
}

.pp-ttbm-classic-root button.pp-ttbm-gallery-arrow,
.pp-ttbm-classic-root .pp-ttbm-gallery-arrow {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 0 3px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #222 !important;
    font-family: Arial, sans-serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    box-shadow: 0 1px 5px rgba(0,0,0,.18) !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
}

.pp-ttbm-classic-root .pp-ttbm-gallery-arrow.pp-prev { left: 16px !important; }
.pp-ttbm-classic-root .pp-ttbm-gallery-arrow.pp-next { right: 16px !important; }

/* Compact classic facts bar. */
.pp-ttbm-classic-root .item_section {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 50px !important;
    padding: 8px 14px !important;
    margin: 0 0 12px !important;
    background: #fff !important;
    box-shadow: none !important;
}

/* Restore the old expired-status strip dimensions. */
.pp-ttbm-classic-root .dLayout.allCenter.bgWarning {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 62px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

.pp-ttbm-classic-root .dLayout.allCenter.bgWarning h3,
.pp-ttbm-classic-root .dLayout.allCenter.bgWarning .textWhite {
    margin: 0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

/* Keep the description tight to the status strip like the backup. */
.pp-ttbm-classic-root .ttbm_description,
.pp-ttbm-classic-root .ttbm_description_area,
.pp-ttbm-classic-root .ttbm_default_widget {
    margin-top: 0 !important;
}

/* Remove modern hero/overlay remnants if current TTBM hooks inject them. */
.pp-ttbm-classic-root .ttbm_hero_overlay,
.pp-ttbm-classic-root .ttbm_hero_overlay_inner,
.pp-ttbm-classic-root .ttbm_hero_booking,
.pp-ttbm-classic-root .ttbm-hero-booking,
.pp-ttbm-classic-root .ttbm_hero_sliderAllItem {
    display: none !important;
}

@media (max-width: 1020px) {
    .pp-ttbm-classic-root .ttbm_container {
        width: auto !important;
        max-width: calc(100% - 30px) !important;
    }

    .pp-ttbm-classic-gallery {
        grid-template-columns: minmax(0, 1fr) 150px !important;
    }

    .pp-ttbm-classic-thumbs,
    .pp-ttbm-classic-root button.pp-ttbm-thumb,
    .pp-ttbm-classic-root .pp-ttbm-thumb {
        width: 150px !important;
    }

    .pp-ttbm-classic-root button.pp-ttbm-thumb,
    .pp-ttbm-classic-root .pp-ttbm-thumb {
        flex-basis: 90px !important;
        height: 90px !important;
        min-height: 90px !important;
        max-height: 90px !important;
    }
}

@media (max-width: 640px) {
    .pp-ttbm-classic-root .ttbm_default__title h1,
    .pp-ttbm-classic-root .ttbm_default_title h1 {
        font-size: 18px !important;
        border-radius: 12px !important;
    }

    .pp-ttbm-classic-gallery {
        grid-template-columns: 1fr !important;
    }

    .pp-ttbm-classic-thumbs {
        width: 100% !important;
        flex-direction: row !important;
        overflow-x: auto !important;
    }

    .pp-ttbm-classic-root button.pp-ttbm-thumb,
    .pp-ttbm-classic-root .pp-ttbm-thumb {
        flex: 0 0 110px !important;
        width: 110px !important;
        height: 75px !important;
        min-height: 75px !important;
        max-height: 75px !important;
    }

    .pp-ttbm-classic-root .item_section {
        border-radius: 12px !important;
    }
}
