/* Tour detail: compact Services-style hero and editorial information layout. */
/* Keep the page out of a scrolling ancestor so the enquiry card can remain sticky. */
body.package-page-site:has(.tour-detail-page) {
    overflow-x: clip !important;
}

.tour-detail-page {
    background: #f7f5ef;
    color: #173c29;
}

.tour-detail-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    min-height: 360px;
    align-items: center;
    padding: 56px 0 58px;
    background: linear-gradient(135deg, #173c29, #315f45);
}

.tour-detail-hero > picture,
.tour-detail-hero > picture img,
.tour-detail-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tour-detail-hero > picture {
    z-index: -2;
}

.tour-detail-hero > picture img {
    object-fit: cover;
    object-position: center;
}

.tour-detail-hero-shade {
    z-index: -1;
    background: linear-gradient(90deg, rgba(11, 46, 31, .9) 0%, rgba(18, 64, 43, .72) 52%, rgba(15, 49, 34, .35) 100%);
}

.tour-detail-hero.is-without-image .tour-detail-hero-shade {
    background: radial-gradient(circle at 82% 22%, rgba(210,173,80,.13), transparent 30%), linear-gradient(135deg, #173c29 0%, #244f38 56%, #315f45 100%);
}

.tour-detail-hero .exotic-services-breadcrumb {
    margin-bottom: 26px;
}

.tour-detail-hero .exotic-services-hero-copy {
    max-width: none;
    width: 100%;
}

.tour-detail-hero h1 {
    max-width: none;
    font-size: clamp(38px, 4.2vw, 64px);
    text-transform: none;
}

.tour-detail-hero .exotic-services-breadcrumb span {
    color: rgba(255,255,255,.92);
}

.tour-detail-breadcrumb-category {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-detail-hero-highlight {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.9);
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.65;
}

.tour-detail-content {
    padding: 92px 0 112px;
}

.tour-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(285px, 355px);
    gap: clamp(40px, 6vw, 94px);
    align-items: stretch;
}

.tour-detail-section {
    margin-bottom: 82px;
}

.tour-detail-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.tour-detail-heading > span {
    display: block;
    margin-bottom: 11px;
    color: #9b7a2f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
}

.tour-detail-heading h2 {
    margin: 0;
    color: #173c29;
    font-size: clamp(30px, 3.1vw, 46px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.tour-detail-richtext,
.tour-detail-note-copy {
    max-width: 800px;
    color: #52645a;
    font-size: 17px;
    line-height: 1.82;
}

.tour-detail-overview-card {
    padding: 34px;
    border: 1px solid #dde6dd;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff 0%, #fbf8ef 100%);
    box-shadow: 0 18px 45px rgba(20,57,39,.055);
}

.tour-detail-overview-card .tour-detail-heading {
    margin-bottom: 21px;
}

.tour-detail-overview-card .tour-detail-richtext {
    max-width: none;
}

.tour-detail-richtext > :first-child,
.tour-detail-note-copy > :first-child {
    margin-top: 0;
}

.tour-detail-richtext > :last-child,
.tour-detail-note-copy > :last-child {
    margin-bottom: 0;
}

.tour-detail-richtext h2,
.tour-detail-richtext h3,
.tour-detail-richtext h4,
.tour-detail-note-copy h2,
.tour-detail-note-copy h3,
.tour-detail-note-copy h4 {
    margin: 1.55em 0 .55em;
    color: #173c29;
    font-weight: 600;
    line-height: 1.3;
}

.tour-detail-richtext ul,
.tour-detail-richtext ol,
.tour-detail-note-copy ul,
.tour-detail-note-copy ol {
    padding-left: 1.3em;
}

.tour-detail-richtext li,
.tour-detail-note-copy li {
    margin: .35em 0;
}

.tour-detail-richtext a,
.tour-detail-note-copy a {
    color: #236f49;
    font-weight: 700;
    text-decoration-color: rgba(35,111,73,.4);
}

.tour-detail-richtext table,
.tour-detail-note-copy table {
    width: 100%;
    margin: 1.4em 0;
    border-collapse: collapse;
    color: #40564a;
    font-size: .92em;
}

.tour-detail-richtext th,
.tour-detail-richtext td,
.tour-detail-note-copy th,
.tour-detail-note-copy td {
    padding: 12px 14px;
    border: 1px solid #d8e1d8;
    text-align: left;
    vertical-align: top;
}

.tour-detail-richtext th,
.tour-detail-note-copy th {
    background: #edf4ed;
    color: #173c29;
    font-weight: 700;
}

.tour-detail-richtext tbody tr:nth-child(even),
.tour-detail-note-copy tbody tr:nth-child(even) {
    background: #fafcf9;
}

.tour-detail-information {
    padding: 29px;
    border: 1px solid #dde6dd;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(20,57,39,.055);
}

.tour-detail-information .tour-detail-heading {
    margin-bottom: 21px;
}

.tour-detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #e6ece6;
    border-left: 1px solid #e6ece6;
}

.tour-detail-fact {
    display: flex;
    min-width: 0;
    gap: 13px;
    padding: 14px 15px;
    border-right: 1px solid #e6ece6;
    border-bottom: 1px solid #e6ece6;
}

.tour-detail-fact > i {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    color: #91742f;
    background: #f7f1e2;
    font-size: 14px;
}

.tour-detail-fact small,
.tour-detail-fact span {
    display: block;
}

.tour-detail-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding: 18px 19px;
    border: 1px solid #eadcb6;
    border-radius: 14px;
    background: linear-gradient(100deg, #fffaf0, #f8f3e6);
}

.tour-detail-price-row small,
.tour-detail-price-row span {
    display: block;
}

.tour-detail-price-row small {
    margin-bottom: 4px;
    color: #877246;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tour-detail-price-row span {
    color: #244635;
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 700;
    line-height: 1.2;
}

.tour-detail-price-row > i {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 50%;
    color: #987a30;
    background: rgba(210,173,80,.17);
}

.tour-detail-fact small {
    margin-bottom: 4px;
    color: #839087;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tour-detail-fact span {
    color: #244635;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.tour-itinerary-list {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tour-itinerary-list::before {
    display: none;
}

.tour-itinerary-item {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 0 0 36px;
}

.tour-itinerary-item:last-child {
    padding-bottom: 0;
}

/* Each segment stops at the next timeline point, leaving no tail after the final item. */
.tour-itinerary-item:not(:last-child)::before {
    position: absolute;
    z-index: 0;
    top: 13px;
    right: auto;
    bottom: -14px;
    left: 13px;
    width: 1px;
    content: '';
    background: #cbdacf;
}

.tour-itinerary-item.has-image {
    grid-template-columns: 28px minmax(0, 1fr) minmax(180px, 240px);
}

.tour-itinerary-node {
    position: relative;
    z-index: 1;
    display: block;
    width: 27px;
    height: 27px;
    margin-top: 3px;
    border: 7px solid #f7f5ef;
    border-radius: 50%;
    background: #b28b35;
    box-shadow: 0 0 0 1px #b28b35;
}

.tour-itinerary-copy {
    min-width: 0;
    padding: 3px 0;
}

.tour-itinerary-heading-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    min-width: 0;
    align-items: center;
    gap: 18px;
    padding: 13px 16px;
    border: 1px solid #dfe8de;
    border-radius: 14px;
    background: linear-gradient(120deg, #ffffff, #fbfcf9);
    box-shadow: 0 9px 22px rgba(34, 66, 46, .05);
}

.tour-itinerary-heading-row:not(.has-time) {
    grid-template-columns: minmax(0, 1fr);
}

.tour-itinerary-time {
    margin: 0;
    padding: 10px 12px;
    color: #7a6227;
    background: #f7f0df;
    border: 1px solid #ecdba8;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: nowrap;
}

.tour-itinerary-copy h3 {
    min-width: 0;
    margin: 0;
    color: #1c4632;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
}

.tour-itinerary-description {
    margin-top: 10px;
}

.tour-itinerary-copy > div {
    color: #64746b;
    font-size: 16px;
    line-height: 1.72;
}

.tour-itinerary-item.is-day .tour-itinerary-heading-row {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tour-itinerary-item.is-day .tour-itinerary-time {
    display: inline-flex;
    width: auto;
    min-width: 0;
    margin: 0 0 7px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #785e21;
    background: #f4ecd9;
}

.tour-itinerary-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #d8e1d9;
}

.tour-itinerary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.tour-itinerary-image:hover img {
    transform: scale(1.045);
}

.tour-inclusion-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tour-inclusion-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #dfe8df;
    border-radius: 12px;
    color: #52645a;
    background: #fff;
    font-size: 15px;
    line-height: 1.52;
}

.tour-inclusion-list i {
    margin-top: 4px;
    color: #b28b35;
    font-size: 12px;
}

.tour-detail-note-copy {
    max-width: none;
    padding: 26px 29px;
    border-left: 3px solid #b28b35;
    border-radius: 0 14px 14px 0;
    background: #f1f5ef;
}

.tour-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tour-gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / .74;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #d8e1d9;
}

.tour-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.tour-gallery-item:hover img {
    opacity: .9;
    transform: scale(1.05);
}

.tour-detail-aside {
    position: relative;
    min-width: 0;
}

.tour-enquire-card {
    position: sticky;
    top: 74px;
    padding: 34px 31px 29px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(145deg, #174b33, #1f6f49);
    box-shadow: 0 22px 44px rgba(19,72,48,.17);
}

.tour-enquire-card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #174b33;
    background: #dfc471;
    font-size: 18px;
}

.tour-enquire-card h2 {
    margin: 22px 0 10px;
    color: #fff;
    font-size: 29px;
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.tour-enquire-card > p {
    margin: 0;
    color: rgba(255,255,255,.8);
    font-size: 15px;
    line-height: 1.65;
}

.tour-enquire-card > a {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 25px;
    padding: 11px 17px;
    border-radius: 9px;
    color: #173c29;
    background: #dfc471;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-decoration: none;
}

.tour-enquire-card > a:hover {
    color: #173c29;
    background: #f0d787;
}

.tour-enquire-contact {
    display: grid;
    gap: 10px;
    margin-top: 23px;
    padding-top: 19px;
    border-top: 1px solid rgba(255,255,255,.2);
}

.tour-enquire-contact a {
    display: flex;
    min-width: 0;
    gap: 9px;
    align-items: center;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    word-break: break-word;
}

.tour-enquire-contact a:hover {
    color: #dfc471;
}

.tour-enquire-contact i {
    width: 15px;
    flex: 0 0 15px;
    color: #dfc471;
}

.tour-related-section {
    margin-top: 92px;
    padding-top: 78px;
    border-top: 1px solid #dce5dc;
}

.tour-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px;
}

.tour-related-card {
    overflow: hidden;
    border: 1px solid #e0e8e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(20,57,39,.045);
    transition: transform .3s ease, box-shadow .3s ease;
}

.tour-related-card:hover {
    box-shadow: 0 20px 36px rgba(20,57,39,.11);
    transform: translateY(-5px);
}

.tour-related-image {
    display: grid;
    width: 100%;
    aspect-ratio: 1.36 / 1;
    place-items: center;
    overflow: hidden;
    color: #8aa092;
    background: #e6ece5;
    font-size: 30px;
}

.tour-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.tour-related-card:hover .tour-related-image img {
    transform: scale(1.045);
}

.tour-related-copy {
    padding: 24px 24px 25px;
}

.tour-related-category {
    margin: 0 0 8px;
    color: #91742f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tour-related-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tour-related-styles span {
    padding: 4px 7px;
    border-radius: 999px;
    color: #327652;
    background: #eaf3ec;
    font-size: 10px;
    font-weight: 700;
}

.tour-related-copy h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.tour-related-copy h3 a {
    color: #173c29;
    text-decoration: none;
}

.tour-related-copy > p:not(.tour-related-category) {
    display: -webkit-box;
    overflow: hidden;
    margin: 12px 0 0;
    color: #6a786f;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tour-related-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 19px;
    color: #247049;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
}

.tour-related-link:hover {
    color: #9b7a2f;
}

.tour-detail-not-found {
    display: grid;
    min-height: 530px;
    place-items: center;
    background: #f7f5ef;
}

.tour-detail-not-found i {
    color: #b28b35;
    font-size: 43px;
}

.tour-detail-not-found h1 {
    margin: 18px 0 10px;
    color: #173c29;
    font-size: 42px;
    font-weight: 500;
}

.tour-detail-not-found p {
    margin: 0;
    color: #68786e;
    font-size: 17px;
}

.tour-detail-not-found a {
    display: inline-flex;
    margin-top: 26px;
    padding: 12px 17px;
    border-radius: 8px;
    color: #fff;
    background: #247049;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-decoration: none;
}

.tour-image-modal .modal-content {
    border: 0;
    background: transparent;
}

.tour-image-modal .modal-header {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
}

.tour-image-modal .modal-body {
    padding: 0;
    text-align: center;
}

.tour-image-modal .modal-body img {
    max-width: 100%;
    max-height: 86vh;
    border-radius: 14px;
}

@media (max-width: 991.98px) {
    .tour-detail-layout {
        grid-template-columns: 1fr;
    }
    .tour-detail-aside {
        position: static;
    }
    .tour-enquire-card {
        position: static;
        max-width: 620px;
    }
    .tour-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .tour-detail-hero {
        min-height: 310px;
        padding: 48px 0 50px;
    }
    .tour-detail-hero .exotic-services-breadcrumb {
        margin-bottom: 34px;
    }
    .tour-detail-content {
        padding: 65px 0 77px;
    }
    .tour-detail-section {
        margin-bottom: 62px;
    }
    .tour-detail-information {
        padding: 27px 22px;
    }
    .tour-detail-overview-card {
        padding: 27px 22px;
    }
    .tour-detail-facts {
        grid-template-columns: 1fr;
    }
    .tour-itinerary-item.has-image {
        grid-template-columns: 28px minmax(0, 1fr);
    }
    .tour-itinerary-heading-row {
        gap: 12px;
    }
    .tour-itinerary-time {
        padding: 9px 10px;
    }
    .tour-itinerary-image {
        grid-column: 2;
        max-width: 330px;
        margin-top: -11px;
    }
    .tour-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tour-related-section {
        margin-top: 65px;
        padding-top: 62px;
    }
}

@media (max-width: 575.98px) {
    .tour-detail-hero {
        min-height: 280px;
        padding: 39px 0 42px;
    }
    .tour-detail-hero .exotic-services-breadcrumb {
        gap: 7px;
        margin-bottom: 29px;
        font-size: 11px;
    }
    .tour-detail-breadcrumb-category {
        display: none;
    }
    .tour-detail-hero .exotic-services-breadcrumb .tour-detail-breadcrumb-category + i {
        display: none;
    }
    .tour-detail-hero h1 {
        font-size: 43px;
    }
    .tour-detail-hero-highlight {
        font-size: 16px;
    }
    .tour-detail-heading h2 {
        font-size: 33px;
    }
    .tour-detail-richtext,
    .tour-detail-note-copy {
        font-size: 16px;
    }
    .tour-detail-fact {
        padding: 15px 12px;
    }
    .tour-itinerary-item {
        gap: 18px;
        padding-bottom: 29px;
    }
    .tour-itinerary-copy h3 {
        font-size: 18px;
    }
    .tour-itinerary-heading-row.has-time {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .tour-itinerary-heading-row.has-time .tour-itinerary-time {
        justify-self: start;
    }
    .tour-itinerary-time {
        font-size: 12px;
    }
    .tour-itinerary-copy > div {
        font-size: 15px;
    }
    .tour-inclusion-list,
    .tour-gallery-grid,
    .tour-related-grid {
        grid-template-columns: 1fr;
    }
    .tour-gallery-item {
        aspect-ratio: 1.35 / 1;
    }
    .tour-enquire-card {
        padding: 29px 24px 25px;
    }
    .tour-detail-not-found h1 {
        font-size: 35px;
    }
}
