/* Trip page booking sidebar (round 16, 2026-10-12). Photo header → blue booking panel with green CTA → light expert card.
   Scoped to .side-section-main.tsb so the older trip.css sidebar rules (rounds 7–15) are neutralised. */
html body .pack-details .side-section-main.tsb {
    --tsb-blue: #0073ad; --tsb-blue-2: #0a5f91; --tsb-green: #15803d; --tsb-green-2: #188a4c; --tsb-ink: #0a2540; --tsb-line: #e3e9ef;
    padding: 0 !important; margin: 0 0 30px !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; color: var(--tsb-ink);
    font-family: var(--font-body, "Manrope", sans-serif);
}
html body .pack-details .side-section-main.tsb::before, html body .pack-details .side-section-main.tsb::after { display: none !important; }

/* card shell */
.tsb .tsb-card { border-radius: 24px; overflow: hidden; background: var(--tsb-blue); box-shadow: 0 30px 60px -32px rgba(0, 55, 90, .7), 0 2px 6px rgba(0, 55, 90, .08); }

/* 1. photo header */
.tsb .tsb-head { position: relative; isolation: isolate; min-height: 178px; display: flex; align-items: flex-end; padding: 20px 22px 14px; color: #fff; }
/* round 17: no hover zoom on the photo (client) */
.tsb .tsb-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: none !important; transition: none; }
.tsb .tsb-head-shade { position: absolute; inset: 0 0 -2px; z-index: -1; background: linear-gradient(180deg, rgba(0, 115, 173, 0) 12%, rgba(0, 115, 173, .6) 58%, var(--tsb-blue) 90%); }
.tsb .tsb-rating { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--tsb-ink); font-size: 13px; font-weight: 800; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); }
.tsb .tsb-rating i { color: #f5a524; font-size: 12px; }
.tsb .tsb-rating small { font-size: 12px; font-weight: 600; color: #5b6f85; }
.tsb .tsb-head-body { display: flex; flex-direction: column; gap: 8px; }
.tsb .tsb-head-body strong { font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-shadow: 0 2px 14px rgba(0, 40, 70, .45); }
.tsb .tsb-head-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tsb .tsb-head-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tsb .tsb-head-meta i { font-size: 11px; opacity: .85; }

/* 2. blue booking panel */
.tsb .tsb-panel { padding: 6px 22px 22px; color: #fff; }
.tsb .tsb-price { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.tsb .tsb-price small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.tsb .tsb-price b { display: inline-block; margin-top: 2px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.tsb .tsb-price b.is-request { font-size: 23px; }
.tsb .tsb-price del { margin-left: 8px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.tsb .tsb-price em { display: block; margin-top: 3px; font-style: normal; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.tsb .tsb-tag { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 700; }

.tsb .tsb-block { padding-top: 16px; }
.tsb .tsb-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px !important; font-size: 13px !important; font-weight: 800 !important; color: #fff !important; letter-spacing: -.005em; }
.tsb .tsb-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.tsb .tsb-legend i, .tsb .tsb-month.is-best::after { width: 6px; height: 6px; border-radius: 50%; background: #6ee7a0; box-shadow: 0 0 0 3px rgba(110, 231, 160, .2); }

.tsb .tsb-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tsb .tsb-month { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 50px; padding: 0; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; font-family: inherit; }
.tsb .tsb-month b { font-size: 13.5px; font-weight: 800; line-height: 1.1; }
.tsb .tsb-month small { font-size: 10px; font-weight: 600; opacity: .7; }
.tsb .tsb-month.is-best::after { content: ""; position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; box-shadow: none; }
.tsb .tsb-month:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); transform: translateY(-1px); }
.tsb .tsb-month[aria-checked="true"] { background: #fff; border-color: #fff; color: var(--tsb-blue); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.tsb .tsb-month:focus-visible, .tsb .tsb-stepper button:focus-visible, .tsb .tsb-cta:focus-visible, .tsb .tsb-ask:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 2px; }

.tsb .tsb-pax { padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tsb .tsb-pax .tsb-label { margin: 0 !important; }
.tsb .tsb-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.tsb .tsb-stepper button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 12px; cursor: pointer; transition: background .15s; }
.tsb .tsb-stepper button:hover { background: #fff; color: var(--tsb-blue); }
.tsb .tsb-stepper button:disabled { opacity: .35; pointer-events: none; }
.tsb .tsb-stepper output { min-width: 104px; text-align: center; font-size: 14px; font-weight: 600; }
.tsb .tsb-stepper output b { font-size: 16px; font-weight: 800; }

.tsb .tsb-cta { position: relative; overflow: hidden; display: flex !important; align-items: center; justify-content: center; gap: 10px; height: 56px; margin-top: 20px; border-radius: 16px; background: var(--tsb-green); color: #fff !important; font-size: 16px; font-weight: 800; letter-spacing: -.005em; text-decoration: none !important; box-shadow: 0 16px 28px -14px rgba(10, 90, 45, .75); transition: background .2s, transform .2s, box-shadow .2s; }
.tsb .tsb-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s ease; }
.tsb .tsb-cta:hover { background: var(--tsb-green-2); transform: translateY(-2px); box-shadow: 0 20px 32px -14px rgba(5, 60, 25, .9); }
.tsb .tsb-cta:hover::before { transform: translateX(120%); }
.tsb .tsb-cta i { font-size: 14px; transition: transform .2s; }
.tsb .tsb-cta:hover i { transform: translateX(4px); }
.tsb .tsb-ask { display: flex !important; align-items: center; justify-content: center; gap: 9px; height: 48px; margin-top: 10px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .55); color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none !important; transition: background .2s, border-color .2s; }
.tsb .tsb-ask:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.tsb .tsb-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 0 !important; font-size: 12px !important; font-weight: 600 !important; color: rgba(255, 255, 255, .75) !important; text-align: center; }
.tsb .tsb-note i { font-size: 10px; }

.tsb .tsb-deps { margin: 0 !important; padding: 0 !important; list-style: none; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); }
.tsb .tsb-deps li { display: flex !important; justify-content: space-between; gap: 10px; padding: 9px 12px !important; font-size: 13.5px; font-weight: 700; background: rgba(255, 255, 255, .06); }
.tsb .tsb-deps li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
.tsb .tsb-deps small { font-weight: 600; color: #6ee7a0; }

/* 3. expert card + tools */
.tsb .tsb-expert { margin-top: 14px; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid var(--tsb-line); box-shadow: 0 16px 34px -26px rgba(10, 37, 64, .45); }
.tsb .tsb-expert-who { display: flex; align-items: center; gap: 12px; }
.tsb .tsb-avatar { position: relative; flex-shrink: 0; }
.tsb .tsb-avatar img { display: block; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--tsb-blue); }
.tsb .tsb-avatar i { display: none; }
.tsb .tsb-expert-who > span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tsb .tsb-expert-who small { font-size: 12px; font-weight: 600; color: #5b6f85; }
.tsb .tsb-expert-who b { font-size: 16px; font-weight: 800; color: var(--tsb-ink); }
.tsb .tsb-expert-who em { font-style: normal; font-size: 12.5px; font-weight: 600; color: #5b6f85; }
.tsb .tsb-expert-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.tsb .tsb-expert-btns a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border-radius: 12px; background: #f1f5f9; color: var(--tsb-ink) !important; font-size: 13.5px; font-weight: 700; text-decoration: none !important; transition: background .15s, color .15s, transform .15s; }
.tsb .tsb-expert-btns a:hover { background: var(--tsb-blue); color: #fff !important; transform: translateY(-1px); }
.tsb .tsb-expert-btns a.wa { background: #15803d; color: #fff !important; }
.tsb .tsb-expert-btns a.wa i { color: #fff; font-size: 16px; }
.tsb .tsb-expert-btns a.wa:hover { background: #1ebe5b; color: #fff !important; }
.tsb .tsb-expert-btns a:hover i { color: #fff !important; }

html body .pack-details .side-section-main.tsb .tsb-tools { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0 !important; padding: 0 !important; border: 0 !important; }
html body .pack-details .side-section-main.tsb .tsb-tools .pdf-download,
html body .pack-details .side-section-main.tsb .tsb-tools .sharethis-inline-share-buttons { height: 42px !important; margin: 0 !important; display: flex !important; align-items: center; justify-content: center; gap: 7px; border-radius: 12px !important; border: 1px solid var(--tsb-line) !important; background: #fff !important; color: var(--tsb-ink) !important; font-size: 13px !important; font-weight: 700 !important; box-shadow: none !important; }
html body .pack-details .side-section-main.tsb .tsb-tools .pdf-download i { color: #c0392b !important; }
html body .pack-details .side-section-main.tsb .tsb-tools .pdf-download:hover,
html body .pack-details .side-section-main.tsb .tsb-tools .sharethis-inline-share-buttons:hover { border-color: var(--tsb-blue) !important; color: var(--tsb-blue) !important; }
html body .pack-details .side-section-main.tsb .sharethis-inline-share-buttons .st-btn > img { filter: brightness(0) saturate(100%) invert(12%) sepia(30%) saturate(1500%) hue-rotate(185deg) !important; }
html body .pack-details .side-section-main.tsb .sharethis-inline-share-buttons .st-btn > span { color: var(--tsb-ink) !important; }

@media (max-width: 991.98px) {
    html body .pack-details .side-section-main.tsb { position: static !important; margin-top: 18px !important; }
}
@media (prefers-reduced-motion: reduce) { .tsb .tsb-head-img, .tsb .tsb-cta, .tsb .tsb-cta::before { transition: none; } }

/* round 18: top is driven by trip-sidebar.js every frame; no CSS easing so it never lags behind the header */
html body .pack-details .side-section-main.tsb { transition: none !important; }

/* ---------- round 20: the sidebar fits the screen on compact desktops (1200 wide, laptop heights) ----------
   It used to be ~760px tall, so on a 1200×700 screen its top slid under the header. Two height steps shrink it
   to ~600px and ~480px; trip-sidebar.js still pins by the bottom edge as a last resort. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .tsb .tsb-head { min-height: 150px; padding: 16px 18px 12px; }
    .tsb .tsb-head-body strong { font-size: 20px; }
    .tsb .tsb-panel { padding: 4px 18px 18px; }
    .tsb .tsb-price b.is-request { font-size: 21px; }
    .tsb .tsb-stepper output { min-width: 92px; }
    .tsb .tsb-cta { height: 52px; margin-top: 16px; }
    .tsb .tsb-ask { height: 46px; }
    .tsb .tsb-expert { padding: 14px; }
}
@media (min-width: 992px) and (max-height: 860px) {
    .tsb .tsb-head { min-height: 118px; padding: 14px 18px 10px; }
    .tsb .tsb-head-body { gap: 6px; }
    .tsb .tsb-head-body strong { font-size: 19px; }
    .tsb .tsb-rating { top: 10px; right: 10px; padding: 4px 9px; font-size: 12px; }
    .tsb .tsb-head-meta span { padding: 3px 8px; font-size: 11.5px; }
    .tsb .tsb-panel { padding: 2px 18px 16px; }
    .tsb .tsb-price { padding: 10px 0 12px; }
    .tsb .tsb-price em { font-size: 12px; }
    .tsb .tsb-pax { padding-top: 12px; }
    .tsb .tsb-stepper button { width: 30px; height: 30px; }
    .tsb .tsb-cta { height: 48px; margin-top: 14px; border-radius: 14px; font-size: 15px; }
    .tsb .tsb-ask { height: 42px; margin-top: 8px; border-radius: 12px; font-size: 14px; }
    .tsb .tsb-note { margin-top: 8px !important; font-size: 11.5px !important; }
    .tsb .tsb-expert { margin-top: 10px; padding: 12px; border-radius: 16px; }
    .tsb .tsb-avatar img { width: 42px; height: 42px; }
    .tsb .tsb-expert-btns { margin-top: 10px; }
    .tsb .tsb-expert-btns a { height: 38px; font-size: 13px; }
    html body .pack-details .side-section-main.tsb .tsb-tools { margin-top: 8px !important; }
    html body .pack-details .side-section-main.tsb .tsb-tools .pdf-download,
    html body .pack-details .side-section-main.tsb .tsb-tools .sharethis-inline-share-buttons { height: 38px !important; }
}
@media (min-width: 992px) and (max-height: 720px) {
    .tsb .tsb-head { min-height: 74px; align-items: center; }
    .tsb .tsb-head-meta { display: none; }
    .tsb .tsb-head-body strong { font-size: 18px; padding-right: 92px; }
    .tsb .tsb-price small { display: none; }
    .tsb .tsb-price em { display: none; }
    .tsb .tsb-note { display: none; }
    .tsb .tsb-expert-who { display: none; }
    .tsb .tsb-expert-btns { margin-top: 0; }
}

/* round 24 (audit G2): deposit / cancellation / payment summary under the Book button */
.tsb-terms { list-style: none; margin: 14px 0 6px; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.22); display: grid; gap: 7px; }
.tsb-terms li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; font-weight: 600; color: rgba(255,255,255,.9); }
.tsb-terms i { flex: 0 0 auto; margin-top: 2px; color: #b9f3cf; }
.tsb-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* round 29 (2026-10-29): note under the booking terms = one centred block (the flex layout split the link from the text and the link
   picked up the page link size); the round 24 terms list now shrinks with the other height tiers so the card fits a laptop screen */
.tsb .tsb-note { display: block !important; line-height: 1.5; text-align: left !important; }
.tsb .tsb-note a { display: inline-block; margin-left: 0; font-size: inherit !important; font-weight: 700; line-height: inherit; color: #fff !important; white-space: nowrap; }
.tsb .tsb-note a:hover { text-decoration-thickness: 2px; }
@media (min-width: 992px) and (max-height: 1000px) {
    .tsb .tsb-terms { margin: 10px 0 4px; padding-top: 9px; gap: 4px; }
    .tsb .tsb-terms li { font-size: 11.5px; line-height: 1.35; }
    .tsb .tsb-terms i { margin-top: 1px; font-size: 11px; }
    .tsb .tsb-note { margin-top: 8px !important; font-size: 11.5px !important; }
    .tsb .tsb-head { min-height: 132px; }
    .tsb .tsb-price { padding: 12px 0 14px; }
}
@media (min-width: 992px) and (max-height: 900px) {
    .tsb .tsb-terms li:nth-child(n+3) { display: none; } /* payment methods are repeated on the booking page + full terms */
}
@media (min-width: 992px) and (max-height: 860px) {
    .tsb .tsb-note span { display: none; }
    .tsb .tsb-head { min-height: 108px; }
}
@media (min-width: 992px) and (max-height: 760px) {
    .tsb .tsb-terms li:nth-child(n+2) { display: none; }
}
@media (min-width: 992px) and (max-height: 720px) {
    .tsb .tsb-terms { display: none; }
    .tsb .tsb-note { display: block !important; margin-top: 8px !important; }
    .tsb .tsb-note span { display: none; }
}

/* 2026-11-01 a11y (PageSpeed): small text on the blue panel was 3.3-4.2:1 -> solid white (5:1 on #0073ad) */
.tsb .tsb-price small, .tsb .tsb-price em, .tsb .tsb-price del, .tsb .tsb-legend, .tsb .tsb-note, .tsb .tsb-note span, .tsb .tsb-month small, .tsb .tsb-stepper output, .tsb .tsb-stepper output span { color: #fff !important; opacity: 1 !important; }
.tsb .tsb-stepper { background: rgba(0, 0, 0, .16); }
