/* ==========================================================================
   Package detail page (e.g. Kanha Leisure Tour Package)
   Two columns: a stack of section cards (about, highlights, itinerary, included, reviews,
   FAQ, gallery, policies) beside a sticky booking card with recommended packages.
   Built on the shared theme tokens (theme.css) and homepage components (home.css):
   .carousel, .review-card, .faq-item.
   Balanced finish: 14px cards, 9px chips/inputs, thin 1px borders, flat cards, gold on hover.
   ========================================================================== */

.theme-package main {
    --radius-sm: 9px;
    --radius: 14px;
    --radius-lg: 14px;
    --pk-edge: 1px solid var(--line-strong);
    --pk-hover: rgba(188, 140, 63, .6);
    --pk-lift: 0 10px 28px rgba(42, 31, 23, .07);
}

/* Gold rating stars (★ glyphs from the copy) */
.pk-stars { color: var(--gold); font-size: 15px; letter-spacing: .14em; line-height: 1; }

/* ---------- Banner (image only, full width) ---------- */
.pk-banner {
    position: relative;
    height: clamp(500px, 86vh, 880px);
    background: var(--ink);
    overflow: hidden;
}
.pk-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 34% 62%; }
.pk-banner::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft), var(--gold), var(--gold-deep));
}

/* ---------- Page body ---------- */
.theme-package main > .pk-page { padding-block: clamp(26px, 3vw, 40px) clamp(56px, 6vw, 88px); background: var(--paper); }
.pk-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: clamp(20px, 2.4vw, 30px);
    color: var(--muted);
    font: 600 12px/1.5 var(--font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
}
.pk-crumbs a { color: var(--gold-ink); text-decoration: none; transition: color .25s; }
.pk-crumbs a:hover { color: var(--heading); }
.pk-crumbs span[aria-hidden] { color: var(--line-strong); }

.pk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: clamp(28px, 3.4vw, 48px);
    align-items: start;
}
.pk-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }

/* ---------- Title, rating, key facts, jump links ---------- */
.pk-title { padding-bottom: 4px; }
.pk-title h1 {
    margin: 0 0 14px;
    font-size: var(--fs-title);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -.012em;
}
.pk-title h1 em { display: block; margin-top: 4px; color: var(--gold-ink); font-style: italic; font-weight: 400; }
.pk-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.pk-rating strong { color: var(--heading); font: 600 1.05rem/1 var(--font-display); }
.pk-rating__text { display: inline-flex; gap: 8px; }

.pk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.pk-facts li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: var(--pk-edge);
    border-radius: var(--radius);
    background: var(--sand);
}
.pk-facts__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #fff;
    color: var(--gold-deep);
}
.pk-facts__icon .icon { width: 21px; height: 21px; }
.pk-facts small { display: block; color: var(--muted); font: 700 11.5px/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.pk-facts strong { display: block; margin-top: 4px; color: var(--heading); font: 500 1.04rem/1.25 var(--font-display); }

/* Jump bar: transparent outline buttons that scroll to each section. */
.pk-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-jump a {
    display: inline-flex;
    align-items: center;
    padding: 11px 16px;
    border: 1px solid rgba(188, 140, 63, .6);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--heading);
    font: 600 11.5px/1 var(--font-body);
    letter-spacing: .14em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .3s, border-color .3s, color .3s;
}
.pk-jump a:hover, .pk-jump a:focus-visible { background: rgba(232, 189, 85, .16); border-color: var(--gold-deep); color: var(--gold-ink); }
.pk-jump a.is-active { background: rgba(232, 189, 85, .2); border-color: var(--gold-deep); color: var(--gold-ink); }

/* ---------- Section cards ---------- */
.pk-box {
    padding: clamp(22px, 2.6vw, 32px);
    border: var(--pk-edge);
    border-radius: var(--radius);
    background: #fff;
    min-width: 0;
    scroll-margin-top: 110px;
}
.pk-box--tint { background: linear-gradient(160deg, #fffdf8, var(--sand)); }
.pk-box__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pk-box__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px; height: 42px;
    border: var(--pk-edge);
    border-radius: 11px;
    background: rgba(232, 189, 85, .16);
    color: var(--gold-deep);
}
.pk-box__icon .icon { width: 20px; height: 20px; }
.theme-package .pk-box h2, .theme-package .pk-rec h2 { flex: 1; margin: 0; padding: 0; font-size: var(--fs-panel); line-height: 1.22; }
.theme-package .pk-box h2::after, .theme-package .pk-rec h2::after { display: none; }
.theme-package .pk-box h2 em, .theme-package .pk-rec h2 em { color: var(--gold-ink); font-style: italic; font-weight: 400; }
.pk-box__note {
    flex: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--sand);
    color: var(--gold-ink);
    font: 600 12px/1.2 var(--font-body);
    letter-spacing: .04em;
    white-space: nowrap;
}

/* Description copy: the homepage's serif italic voice. */
.pk-prose p {
    margin: 0 0 1.3em;
    color: var(--text);
    font: italic 400 1.05rem/1.9 var(--font-display);
    letter-spacing: .005em;
    text-align: justify;
    text-justify: inter-word;
    hyphens: manual;
}
.pk-prose p:last-child, .pk-prose:last-child p:last-child { margin-bottom: 0; }
.pk-prose + .pk-prose { margin-top: 1.3em; }
.pk-prose b, .pk-prose strong { color: var(--heading); font-weight: 600; }
.pk-lead p:first-child { padding-left: 20px; border-left: 2px solid var(--gold); color: var(--heading); font-size: 1.14rem; }

/* Highlights */
.pk-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pk-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: var(--pk-edge);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--umber);
    font-size: 15px;
    line-height: 1.45;
    transition: border-color .3s, background .3s;
}
.pk-highlights li:hover { border-color: var(--pk-hover); background: #fff; }
.pk-tick {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
    color: #fff;
}
.pk-tick .icon { width: 15px; height: 15px; stroke-width: 2.6; }

/* Itinerary: one day open at a time */
.pk-days { display: grid; gap: 10px; }
.pk-day, .pk-pol { border: var(--pk-edge); border-radius: var(--radius-sm); background: var(--paper); transition: border-color .3s, background .3s; }
.pk-day[open], .pk-pol[open] { border-color: var(--pk-hover); background: var(--sand); }
.pk-day > summary, .pk-pol > summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}
.pk-day > summary::-webkit-details-marker, .pk-pol > summary::-webkit-details-marker { display: none; }
.pk-day__num {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--gold-deep);
    color: #fff;
    font: 600 1rem/1 var(--font-display);
}
.pk-day__title, .pk-pol > summary > span:first-child { flex: 1; min-width: 0; color: var(--heading); font: 500 1.08rem/1.35 var(--font-display); }
.pk-day__chev { flex: none; display: grid; place-items: center; color: var(--gold-deep); transition: transform .3s var(--ease); }
.pk-day__chev .icon { width: 18px; height: 18px; }
.pk-day[open] .pk-day__chev, .pk-pol[open] .pk-day__chev { transform: rotate(180deg); }
.pk-day > ul, .pk-pol > ul { margin: 0; padding: 2px 18px 18px 18px; list-style: none; }
.pk-day li, .pk-pol li { position: relative; padding-left: 22px; color: var(--text); font-size: 15.5px; line-height: 1.7; }
.pk-day li + li, .pk-pol li + li { margin-top: 8px; }
.pk-day li::before, .pk-pol li::before {
    content: "";
    position: absolute;
    left: 3px; top: .72em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold-deep);
}
.pk-pols { display: grid; gap: 10px; }

/* Inclusions / exclusions and safari do's / don'ts */
.pk-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.pk-duo--rules { gap: 16px; }
.pk-rule { padding: 18px 18px 14px; border: var(--pk-edge); border-radius: var(--radius-sm); background: var(--paper); }
.pk-rule h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: var(--fs-card); line-height: 1.3; }
.pk-rule__badge, .pk-box--yes .pk-box__icon, .pk-box--no .pk-box__icon { }
.pk-rule__badge {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px; height: 32px;
    border-radius: 9px;
    background: rgba(232, 189, 85, .2);
    color: var(--gold-ink);
}
.pk-rule--no .pk-rule__badge, .pk-box--no .pk-box__icon { background: rgba(160, 70, 50, .1); color: #9a4630; }
.pk-rule__badge .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.pk-rule h4 { margin: 16px 0 2px; color: var(--gold-ink); font: 700 12px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.pk-rule--no h4 { color: #9a4630; }
.pk-rule h3 + h4 { margin-top: 0; }
.pk-list { margin: 0; padding: 0; list-style: none; }
.pk-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    color: var(--umber);
    font-size: 15px;
    line-height: 1.55;
}
.pk-list li:first-child { border-top: 0; }
.pk-list .icon { flex: none; width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 7px; stroke-width: 2.8; }
.pk-list--yes .icon { background: rgba(232, 189, 85, .24); color: var(--gold-ink); }
.pk-list--no .icon { background: rgba(160, 70, 50, .1); color: #9a4630; }

/* ---------- Reviews (Google format; cards reuse the homepage .review-card) ---------- */
.pk-gbadge {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: var(--pk-edge);
    border-radius: var(--radius-sm);
    color: var(--heading);
    font: 600 12.5px/1 var(--font-body);
    text-decoration: none;
    transition: border-color .3s;
}
.pk-gbadge:hover { border-color: var(--pk-hover); }
.pk-gbadge img { width: 20px; height: 20px; }
.pk-reviews .carousel__track { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; align-items: stretch; }
.pk-gmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 14px; }
.pk-gmeta .review-card__stars { margin: 0; }
.pk-gmeta__date { color: var(--muted); font-size: 12.5px; letter-spacing: .02em; }
.theme-package .review-card { border: var(--pk-edge); border-radius: var(--radius); box-shadow: none; }
.theme-package .review-card::before { display: none; }
.theme-package .review-card:hover { transform: none; box-shadow: var(--pk-lift); border-color: var(--pk-hover); }
.theme-package .review-card__avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(188, 140, 63, .35); }

/* ---------- FAQ ---------- */
.theme-package .pk-faq__list .faq-item p { text-align: justify; hyphens: manual; }

/* ---------- Gallery: first photo large, the rest small ---------- */
.pk-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(110px, 11vw, 160px); gap: 12px; }
.pk-gallery__item { position: relative; display: block; border: var(--pk-edge); border-radius: var(--radius-sm); background: var(--sand); overflow: hidden; }
.pk-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.pk-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pk-gallery__item:hover img { transform: scale(1.07); }
.pk-gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(27, 20, 16, .5)); opacity: 0; transition: opacity .5s; }
.pk-gallery__item:hover::after { opacity: 1; }
.pk-gallery__zoom {
    position: absolute;
    z-index: 2;
    right: 12px; bottom: 12px;
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(250, 248, 242, .94);
    color: var(--gold-ink);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s, transform .4s var(--ease);
}
.pk-gallery__zoom .icon { width: 17px; height: 17px; }
.pk-gallery__item:hover .pk-gallery__zoom, .pk-gallery__item:focus-visible .pk-gallery__zoom { opacity: 1; transform: none; }
.pk-gallery__count {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(27, 20, 16, .56);
    color: #fff8ec;
    font: 700 11.5px/1.3 var(--font-body);
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
    transition: background .4s;
}
.pk-gallery__count .icon { width: 20px; height: 20px; color: var(--gold); }
.pk-gallery__item:hover .pk-gallery__count { background: rgba(27, 20, 16, .42); }
.pk-gallery__item:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* ---------- Sidebar: booking card + recommended packages ---------- */
.pk-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.pk-book {
    padding: clamp(24px, 2.4vw, 30px);
    border: var(--pk-edge);
    border-radius: var(--radius);
    background: var(--sand);
    box-shadow: var(--pk-lift);
}
.pk-book__eyebrow { margin: 0 0 4px; color: var(--gold-deep); font: 600 1.6rem/1 var(--font-script); }
.theme-package .pk-book h2 { margin: 0 0 20px; font-size: var(--fs-panel); line-height: 1.2; }
.pk-book .kss-lead-form textarea { min-height: 88px; }
.pk-book .kss-lead-form :is(input[type=text], input[type=email], input[type=tel], textarea) { border-radius: var(--radius-sm); }
.pk-book .kss-lead-form input[type=submit] { border-radius: var(--radius-sm); box-shadow: none; }
.pk-book .kss-lead-form input[type=submit]:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(232, 189, 85, .4); }
.pk-book .kss-captcha-block { border-radius: var(--radius-sm); background: #fff; }

.pk-rec { padding: clamp(20px, 2.2vw, 26px); border: var(--pk-edge); border-radius: var(--radius); background: #fff; }
.pk-rec .pk-box__head { margin-bottom: 8px; }
.pk-rec ul { margin: 0; padding: 0; list-style: none; }
.pk-rec li + li { border-top: 1px solid var(--line); }
.pk-rec__item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; color: inherit; text-decoration: none; }
.pk-rec__item img { flex: none; width: 92px; height: 68px; border-radius: 9px; object-fit: cover; background: var(--sand); }
.pk-rec__body { display: grid; gap: 4px; min-width: 0; }
.pk-rec__body strong { color: var(--heading); font: 500 1.02rem/1.3 var(--font-display); transition: color .25s; }
.pk-rec__item:hover strong { color: var(--gold-ink); }
.pk-rec__body small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-size: 12.5px; }
.pk-rec__body small .icon { width: 14px; height: 14px; color: var(--gold-deep); }
.pk-rec__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); font-size: 13.5px; line-height: 1.5; }

/* Sticky on desktop. When the sidebar is taller than the screen, the page script sets a negative
   --pk-top so it scrolls until its bottom is in view, then holds there. */
@media (min-width: 1181px) {
    .pk-aside { position: sticky; top: var(--pk-top, 104px); }
}

/* ---------- Lightbox ---------- */
.pk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 14, 10, .94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.pk-lightbox[hidden] { display: none !important; }
.pk-lightbox__stage { display: flex; align-items: center; justify-content: center; max-width: calc(100vw - 160px); max-height: calc(100vh - 130px); }
.pk-lightbox__stage img { max-width: 100%; max-height: calc(100vh - 130px); border-radius: 14px; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.pk-lightbox__close, .pk-lightbox__nav {
    position: fixed;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(232, 189, 85, .4);
    border-radius: 50%;
    background: rgba(255, 248, 236, .08);
    color: #fff8ec;
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s;
}
.pk-lightbox__close:hover, .pk-lightbox__nav:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pk-lightbox__close { top: 18px; right: 18px; width: 48px; height: 48px; }
.pk-lightbox__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; }
.pk-lightbox__nav--prev { left: 20px; }
.pk-lightbox__nav--prev .icon { transform: rotate(180deg); }
.pk-lightbox__nav--next { right: 20px; }
.pk-lightbox .icon { width: 20px; height: 20px; }
.pk-lightbox__counter {
    position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%);
    padding: 4px 14px; border-radius: 9px;
    background: rgba(0, 0, 0, .5); color: rgba(255, 255, 255, .75);
    font-size: 12px; letter-spacing: .08em; white-space: nowrap;
}
.pk-lightbox__caption {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
    max-width: min(680px, 84vw); padding: 8px 22px; border-radius: 12px;
    background: rgba(0, 0, 0, .55); color: rgba(255, 248, 236, .92);
    font: italic 400 .95rem/1.45 var(--font-display); text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .pk-layout { grid-template-columns: minmax(0, 1fr); }
    .pk-aside { max-width: 680px; width: 100%; margin-inline: auto; }
}
@media (max-width: 900px) {
    .pk-banner { height: clamp(340px, 62vh, 540px); }
    .pk-banner img { object-position: 30% 62%; }
    .pk-crumbs { margin-bottom: 14px; }
    .pk-crumbs a { display: inline-block; padding-block: 10px; }
    .pk-crumbs > span { align-self: center; }
    /* One swipeable row of jump buttons. */
    .pk-jump {
        flex-wrap: nowrap;
        margin-inline: calc(var(--gutter) * -1);
        padding: 4px var(--gutter);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }
    .pk-jump::-webkit-scrollbar { display: none; }
    .pk-jump a { flex: none; padding: 13px 16px; scroll-snap-align: start; }
}
@media (max-width: 760px) {
    .pk-duo, .pk-highlights { grid-template-columns: minmax(0, 1fr); }
    .pk-reviews .carousel__track { grid-auto-columns: 100%; }
    .pk-lightbox__stage { max-width: 100vw; }
    .pk-lightbox__nav { width: 42px; height: 42px; margin-top: -21px; }
    .pk-lightbox__nav--prev { left: 6px; }
    .pk-lightbox__nav--next { right: 6px; }
    .pk-lightbox__counter { top: 30px; bottom: auto; left: 20px; transform: none; }
}
@media (max-width: 600px) {
    .pk-main { gap: 16px; }
    .pk-box { padding: 20px 16px; }
    .pk-box__head { gap: 12px; flex-wrap: wrap; }
    .pk-box__icon { width: 38px; height: 38px; }
    .pk-box__note { margin-left: 50px; }
    .pk-facts { grid-template-columns: minmax(0, 1fr); }
    .pk-rating__text > span:first-child { display: none; }
    .pk-prose p, .theme-package .pk-faq__list .faq-item p { text-align: left; }
    .pk-lead p:first-child { padding-left: 14px; font-size: 1.08rem; }
    .pk-day > summary, .pk-pol > summary { padding: 12px 12px; gap: 10px; }
    .pk-day > ul, .pk-pol > ul { padding: 0 14px 16px 14px; }
    .pk-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 8px; }
    .pk-gallery__item:first-child { grid-column: span 2; grid-row: span 1; }
    .pk-gallery__item:last-child { grid-column: span 2; }
    .pk-rec__item img { width: 80px; height: 60px; }
}
@media (hover: none) {
    .theme-package .review-card:hover { box-shadow: none; }
}

/* ---------- Sticky section tabs (stay under the header while scrolling the package) ---------- */
.pk-jump {
    position: sticky;
    top: 86px;
    z-index: 30;
    flex-wrap: nowrap;
    margin: 22px 0 0;
    padding: 10px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    background: rgba(250, 246, 238, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(188, 140, 63, .28);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(58, 42, 29, .08);
}
.pk-jump::-webkit-scrollbar { display: none; }
.pk-jump a { flex: none; padding: 10px 16px; }
.pk-box, .pk-box[id] { scroll-margin-top: 170px; }
@media (max-width: 900px) {
    .pk-jump { top: 70px; margin-inline: 0; padding: 8px; border-radius: 12px; }
}
