/* ==========================================================================
   Trip page (layout/layout_trip.php) — loaded by page.php for pagetype 5
   ========================================================================== */

.tp {
  --tp-brand: var(--brand, #03488d);
  --tp-brand-deep: #022f63;
  --tp-brand-soft: #eef4fc;
  --tp-book: #c2410c;
  --tp-book-hover: #9a3412;
  --tp-green: #15803d;
  --tp-whatsapp: #128c4a;
  --tp-ink: #13202e;
  --tp-text: #2a3647;
  --tp-muted: #5b6878;
  --tp-line: #e2e8f0;
  --tp-soft: #f5f8fb;
  --tp-radius: 14px;
  --tp-head: var(--font-head, "Poppins", system-ui, sans-serif);
  /* inc_header.php measures the header and publishes --nh-header, so the section menu sits flush against it
     instead of leaving a strip of the scrolling page visible in between. 64px is the fallback for the moment
     before that script runs. */
  --tp-sticky: var(--nh-header, 64px);
  color: var(--tp-text);
  font-family: var(--font-base, "Mulish", system-ui, sans-serif);
}

.tp h1, .tp h2, .tp h3, .tp h4 { font-family: var(--tp-head); color: var(--tp-ink); text-wrap: balance; }

/* ---------- Page width ----------
   This file is only loaded for pagetype 5, so these overrides affect trip pages alone. Each selector is
   deliberately more specific than the rule it replaces: page.php's inline style caps .container at
   1200px, and css/style.css caps .page .maincontainer h1 at 1040px. The title is released so the header
   fills the container; the body below keeps its own reading width. */
.page .container.maincontainer { max-width: 1300px; }
.page .maincontainer h1.tp-title { max-width: none; }

/* ---------- Header ---------- */
.tp-head { margin: 4px 0 22px; }
.tp-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tp-book);
  text-decoration: none;
}
.tp-eyebrow:hover { color: var(--tp-book-hover); text-decoration: underline; }
.tp-title {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
}
.tp-lead { margin: 0 0 14px; font-size: 1.08rem; line-height: 1.6; color: var(--tp-muted); }
.tp-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tp-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--tp-line);
  border-radius: 999px;
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
  color: var(--tp-ink);
}
.tp-meta i { color: var(--tp-brand); }
.tp-meta__rating a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tp-meta__rating i { color: #f59e0b; }
.tp-meta__rating span { color: var(--tp-muted); font-weight: 500; }

/* ---------- Top: media + booking card ---------- */
/* The whole trip is one grid: photos, section menu and every section in column 1, booking card in column 2.
   Stacked (below 992px) the children simply follow source order, so the card still sits under the photos. */
.tp-top { display: grid; column-gap: 24px; row-gap: 0; align-items: start; }
.tp-book { margin-top: 24px; }
@media (min-width: 992px) {
  .tp-top { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 32px; }
  .tp-media { grid-column: 1; grid-row: 1; }
  .tp-nav   { grid-column: 1; grid-row: 2; }
  .tp-body  { grid-column: 1; grid-row: 3; }
}

.tp-gallery { margin: 0; border-radius: var(--tp-radius); overflow: hidden; background: var(--tp-brand-soft); aspect-ratio: 16 / 10; }
.tp-gallery__main { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.tp-thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .75; }
.tp-thumb img { display: block; width: 96px; height: 64px; object-fit: cover; }
.tp-thumb.is-active, .tp-thumb:hover { border-color: var(--tp-brand); opacity: 1; }

.tp-facts {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  overflow: hidden;
}
/* Dividers are drawn by each fact (not by the grid gap), so a part-filled last row stays white */
.tp-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0;
  margin: 0 -1px -1px 0;
  background: #fff;
}
.tp-fact { background: #fff; padding: 14px 16px; box-shadow: inset -1px 0 0 var(--tp-line), inset 0 -1px 0 var(--tp-line); }
.tp-fact dt { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tp-muted); margin-bottom: 4px; }
.tp-fact dt i { color: var(--tp-brand); margin-right: 3px; }
.tp-fact dd { margin: 0; font-weight: 700; color: var(--tp-ink); line-height: 1.35; }

.tp-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 16px; border-top: 1px solid var(--tp-line); }
.tp-route__label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tp-muted); min-width: 90px; }
.tp-route__stops { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; }
.tp-route__stops li { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--tp-ink); }
.tp-route__stops li + li::before { content: "\2192"; color: var(--tp-book); font-weight: 700; }
.tp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tp-chips li { padding: 3px 10px; border-radius: 999px; background: var(--tp-brand-soft); color: var(--tp-brand-deep); font-size: .88rem; font-weight: 600; }

/* ---------- Booking card ---------- */
@media (min-width: 992px) {
  /* Spanning every row gives the card the full page height to travel through. align-self is what makes
     sticky work at all here: a grid item stretched to its row has no spare room to move within. */
  .tp-book {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
    position: sticky;
    top: calc(var(--tp-sticky) + 16px);
    margin-top: 0;
  }
}
.tp-book__card {
  background: #fff;
  border: 1px solid var(--tp-line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(3, 72, 141, .08);
}
.tp-book__from { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tp-muted); }
.tp-book__price { margin: 2px 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.tp-book__price strong { font-family: var(--tp-head); font-size: 2rem; line-height: 1.1; color: var(--tp-brand-deep); font-variant-numeric: tabular-nums; }
.tp-book__price span { color: var(--tp-muted); font-weight: 600; }
.tp-book__title { font-size: 1rem; font-weight: 700; margin: 0 0 10px; }

.tp-options { display: grid; gap: 6px; margin-bottom: 12px; }
.tp-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 11px;
  border: 1.5px solid var(--tp-line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.tp-option:hover { border-color: #b9c9de; }
.tp-option input { margin-top: 1px; accent-color: var(--tp-brand); width: 18px; height: 18px; }
.tp-option:has(input:checked) { border-color: var(--tp-brand); background: var(--tp-brand-soft); }
.tp-option:has(input:focus-visible) { outline: 3px solid rgba(3, 72, 141, .35); outline-offset: 2px; }
.tp-option__body { display: grid; gap: 2px; min-width: 0; }
/* The name keeps one line: the sidebar is too narrow to wrap it without doubling the card height,
   so a long name is trimmed with an ellipsis (the full text stays in the title attribute). */
.tp-option__title { font-weight: 700; color: var(--tp-ink); font-size: .95rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-option__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.tp-option__note { font-size: .8rem; color: var(--tp-muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-option__price { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.tp-option__price strong { font-variant-numeric: tabular-nums; color: var(--tp-ink); }
.tp-option__price small { color: var(--tp-muted); font-size: .76rem; }

.tp-type { flex: 0 0 auto; display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tp-type--shared { background: #e3f4ee; color: #0f6b4f; }
.tp-type--private { background: #ece9fb; color: #4c2fb0; }

.tp-book__actions { display: grid; gap: 10px; }
.tp-action { display: grid; gap: 6px; }
.tp-action[hidden] { display: none; }
.tp-book__hint { margin: 0; font-size: .8rem; color: var(--tp-muted); text-align: center; }
.tp-book__secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-link { background: none; border: 0; padding: 4px; color: var(--tp-brand); font-weight: 700; font-size: .9rem; cursor: pointer; }
.tp-link:hover { text-decoration: underline; }
.tp-book__trust { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--tp-line); display: grid; gap: 7px; font-size: .86rem; color: var(--tp-muted); }
.tp-book__trust i { width: 18px; color: var(--tp-green); }

/* ---------- Buttons ---------- */
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: var(--font-base, "Mulish", sans-serif);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.tp-btn--book { width: 100%; background: var(--tp-book); color: #fff !important; }
/* WeTravel only opens checkout when the click lands on the button itself, not its icon or label */
.wtrvl-checkout_button > * { pointer-events: none; }
.tp-btn--book:hover { background: var(--tp-book-hover); }
.tp-btn--book:disabled { opacity: .7; cursor: progress; }
.tp-btn--ghost { background: #fff; color: var(--tp-brand) !important; border-color: var(--tp-brand); }
.tp-btn--ghost:hover { background: var(--tp-brand-soft); }
.tp-btn--whatsapp { background: #fff; color: var(--tp-whatsapp) !important; border-color: #25d366; }
.tp-btn--whatsapp:hover { background: #e9f9ef; }
.tp-btn:focus-visible, .tp-link:focus-visible, .tp-thumb:focus-visible { outline: 3px solid rgba(3, 72, 141, .45); outline-offset: 2px; }
.tp-book__secondary .tp-btn { min-height: 44px; padding: 9px 10px; font-size: .92rem; }

/* ---------- Section menu ---------- */
.tp-nav {
  position: sticky;
  top: var(--tp-sticky);
  z-index: 20;
  margin: 32px 0 0;
  background: #fff;
  border-top: 1px solid var(--tp-line);
  border-bottom: 1px solid var(--tp-line);
}
.tp-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 6px 0; overflow-x: auto; scrollbar-width: none; }
.tp-nav ul::-webkit-scrollbar { display: none; }
.tp-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 700;
  font-size: .93rem;
  color: var(--tp-muted);
  text-decoration: none;
}
.tp-nav a:hover { color: var(--tp-ink); background: var(--tp-soft); }
.tp-nav a.is-active { color: var(--tp-brand); background: var(--tp-brand-soft); }

/* ---------- Sections ---------- */
.tp-body { max-width: 900px; }
.tp-section { padding: 30px 0; border-bottom: 1px solid var(--tp-line); scroll-margin-top: calc(var(--tp-sticky) + 70px); }
.tp-section:last-child { border-bottom: 0; }
.tp-h2, .tp-prose h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; line-height: 1.3; margin: 0 0 14px; }
.tp-intro { color: var(--tp-muted); margin: -4px 0 18px; max-width: 70ch; }

.tp-prose { font-size: 1.03rem; line-height: 1.75; overflow-wrap: break-word; }
.tp-prose > :first-child { margin-top: 0; }
.tp-prose p { margin: 0 0 1.1em; }
.tp-prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.6em 0 .5em; }
.tp-prose h4 { font-size: 1.05rem; font-weight: 700; margin: 1.4em 0 .4em; }
.tp-prose ul, .tp-prose ol { margin: 0 0 1.2em 1.2em; padding: 0; }
.tp-prose li { margin-bottom: .4em; }
.tp-prose li::marker { color: var(--tp-brand); }
.tp-prose a { color: var(--tp-brand); text-underline-offset: 3px; }
.tp-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.tp-prose table { width: 100%; margin: 1em 0 1.4em; border-collapse: collapse; font-size: .96rem; background: #fff; }
.tp-prose th, .tp-prose td { padding: 10px 12px; border-bottom: 1px solid var(--tp-line); text-align: left; vertical-align: top; }
.tp-prose thead th { background: var(--tp-soft); color: var(--tp-ink); font-weight: 700; border-bottom: 2px solid var(--tp-line); }
.tp-prose tbody tr:nth-child(even) td { background: #fbfcfe; }
.tp-prose td:first-child { font-weight: 700; color: var(--tp-ink); }
@media (max-width: 767.98px) {
  .tp-prose table { display: block; overflow-x: auto; white-space: normal; }
}

/* Includes / excludes (trip sections and package cards) */
.tp-includes { display: grid; gap: 16px; }
@media (min-width: 768px) { .tp-includes { grid-template-columns: 1fr 1fr; } }
.tp-includes > div { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 18px 20px; }
.tp-includes h2 { font-size: 1.15rem; margin-bottom: 10px; }
.tp-include ul, .tp-exclude ul { list-style: none; margin: 0; padding: 0; }
.tp-include li, .tp-exclude li { position: relative; padding-left: 26px; margin-bottom: 8px; line-height: 1.5; }
.tp-include li::before, .tp-exclude li::before {
  position: absolute;
  left: 0;
  top: 1px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.tp-include li::before { content: "\f00c"; color: var(--tp-green); }
.tp-exclude li::before { content: "\f00d"; color: #b42318; }

/* Package cards */
.tp-packages { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.tp-package { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 20px; }
.tp-package__head h3 { font-size: 1.15rem; font-weight: 700; margin: 8px 0 4px; }
.tp-package__head p { margin: 0; color: var(--tp-muted); font-size: .92rem; }
.tp-package__price { margin: 14px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.tp-package__price strong { font-family: var(--tp-head); font-size: 1.5rem; color: var(--tp-brand-deep); font-variant-numeric: tabular-nums; }
.tp-package__price span { color: var(--tp-muted); font-weight: 600; }
.tp-package__lists { display: grid; gap: 12px; padding: 14px 0; border-top: 1px dashed var(--tp-line); font-size: .92rem; }
.tp-package__lists h4 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tp-muted); margin: 0 0 6px; }
.tp-package__actions { margin-top: auto; padding-top: 12px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.tp-package__actions .tp-btn { width: 100%; }
.tp-package__actions .tp-btn:only-child { grid-column: 1 / -1; }

/* Good to know */
.tp-more { background: var(--tp-soft); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); }
.tp-more summary { cursor: pointer; padding: 16px 20px; font-family: var(--tp-head); font-weight: 700; color: var(--tp-ink); list-style-position: inside; }
.tp-more summary i { color: var(--tp-brand); margin-right: 6px; }
.tp-more[open] summary { border-bottom: 1px solid var(--tp-line); }
.tp-more .tp-prose { padding: 18px 20px 4px; }

/* FAQ written as h4 question + p answer in the CMS */
.tp-faq h4 { margin: 0; padding: 16px 0 6px; border-top: 1px solid var(--tp-line); font-size: 1.05rem; }
.tp-faq h2 + h4, .tp-faq div > h2 + h4 { border-top: 0; }

/* Reviews come from load_review(); tighten spacing inside the section */
#reviews .reviewandratting { background: none; box-shadow: none; padding: 0; }

/* ---------- Enquiry form ---------- */
.tp-enquire { display: grid; gap: 22px; }
@media (min-width: 992px) { .tp-enquire { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.tp-enquire__intro p { color: var(--tp-muted); line-height: 1.6; }
.tp-enquire__intro .tp-btn { width: auto; }
.tp-form { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 20px; }
.tp-form__grid { display: grid; gap: 14px; }
@media (min-width: 576px) { .tp-form__grid { grid-template-columns: 1fr 1fr; } }
.tp-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tp-field--wide { grid-column: 1 / -1; }
.tp-field label { font-weight: 700; font-size: .9rem; color: var(--tp-ink); }
.tp-field small, .tp-optional { color: var(--tp-muted); font-size: .8rem; font-weight: 500; }
.tp-field input, .tp-field select, .tp-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #c5d0dc;
  border-radius: 10px;
  background: #fff;
  color: var(--tp-ink);
  font: inherit;
}
.tp-field textarea { min-height: 96px; resize: vertical; }
.tp-field input:focus, .tp-field select:focus, .tp-field textarea:focus { outline: 3px solid rgba(3, 72, 141, .2); border-color: var(--tp-brand); }
.tp-form.was-validated :invalid { border-color: #b42318; background: #fff8f7; }
.tp-captcha { display: flex; align-items: stretch; gap: 6px; }
.tp-captcha img { width: 90px; height: 44px; border-radius: 8px; border: 1px solid var(--tp-line); background: var(--tp-soft); object-fit: cover; }
.tp-captcha input { flex: 1; }
.tp-captcha__refresh { width: 44px; border: 1px solid #c5d0dc; border-radius: 10px; background: #fff; color: var(--tp-brand); cursor: pointer; }
.tp-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.tp-form__foot .tp-btn { width: auto; min-width: 200px; }
.tp-form__status { margin: 0; font-weight: 700; color: var(--tp-green); }
.tp-form__status.is-error { color: #b42318; }

/* ---------- Related trips ---------- */
/* Cards themselves come from css/cards.css (same design as the homepage) */
.tp-related .nh-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

/* ---------- WeTravel loading overlay (sits under WeTravel's own frame) ---------- */
.tp-checkout-loading { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; background: rgba(15, 28, 43, .55); padding: 20px; }
.tp-checkout-loading[hidden] { display: none; }
.tp-checkout-loading__box { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 320px; padding: 24px; border-radius: 16px; background: #fff; text-align: center; color: var(--tp-muted, #5b6878); }
.tp-checkout-loading__box strong { color: #13202e; font-size: 1.05rem; }
.tp-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #dbe6f3; border-top-color: #03488d; animation: tp-spin .8s linear infinite; }
@keyframes tp-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .tp-btn, .tp-option { transition: none; }
  .tp-spinner { animation-duration: 2s; }
}

/* ---------- Lists: undo the site-wide content list style (.page .maincontainer ul is a grid with margins) ---------- */
.tp ul.tp-meta, .tp ol.tp-route__stops, .tp ul.tp-chips, .tp .tp-nav ul, .tp ul.tp-book__trust, .tp ul.tp-places__list {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: inherit;
  color: inherit;
}
.tp .tp-meta li, .tp .tp-route__stops li, .tp .tp-chips li, .tp .tp-nav li, .tp .tp-book__trust li, .tp .tp-places__list li { margin: 0; }
.tp ul.tp-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tp ol.tp-route__stops, .tp ul.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp .tp-nav ul { display: flex; flex-wrap: nowrap; gap: 4px; padding: 6px 0; }
.tp ul.tp-book__trust { display: grid; gap: 7px; margin: 16px 0 0; padding: 14px 0 0; }

/* ---------- Places on this trip (links to helipad pages) ---------- */
.tp-places { margin-top: 16px; }
.tp h2.tp-places__title { margin: 0 0 10px; font-family: var(--font-base, "Mulish", system-ui, sans-serif); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tp-muted); }
.tp ul.tp-places__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.tp-places__list a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; background: #fff; border: 1px solid var(--tp-line); border-radius: 12px; color: inherit; text-decoration: none; }
.tp-places__list a:hover { border-color: var(--tp-brand); }
.tp-places__list a:focus-visible { outline: 3px solid rgba(3, 72, 141, .45); outline-offset: 2px; }
.tp-places__list strong { font-family: var(--tp-head); font-size: .95rem; line-height: 1.3; color: var(--tp-ink); }
.tp-places__list span { font-size: .82rem; color: var(--tp-muted); font-variant-numeric: tabular-nums; }

/* ---------- Booking card: fits the screen while sticky ---------- */
.tp-book__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
@media (min-width: 992px) {
  .tp-book__card { padding: 18px 20px; max-height: calc(100vh - var(--tp-sticky) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .tp-book__price { margin-bottom: 10px; }
  .tp-book__price strong { font-size: 1.75rem; }
  .tp-option { padding: 8px 11px; }
  .tp .tp-book__trust { margin-top: 12px; padding-top: 10px; font-size: .82rem; }
}

/* ---------- Long sections: "Read more" ---------- */
.tp-section.tp-clamp { position: relative; max-height: 680px; overflow: hidden; padding-bottom: 0; border-bottom: 0; }
.tp-section.tp-clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; }
.tp-section.tp-clamp.is-open { max-height: none; overflow: visible; padding-bottom: 12px; }
.tp-section.tp-clamp.is-open::after { display: none; }
.tp-more-btn { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 26px; padding: 9px 18px; border: 1.5px solid var(--tp-brand); border-radius: 999px; background: #fff; color: var(--tp-brand); font-weight: 800; font-size: .92rem; cursor: pointer; }
.tp-more-btn:hover { background: var(--tp-brand-soft); }
.tp-more-btn:focus-visible { outline: 3px solid rgba(3, 72, 141, .45); outline-offset: 2px; }
.tp-faq .tp-more-btn { margin: 14px 0 0; }

/* ---------- FAQ accordion (built by the page script from the CMS question headings) ---------- */
.tp .tp-faq--js .tp-faq__h { margin: 0; padding: 0; border-top: 1px solid var(--tp-line); font-size: 1.02rem; }
.tp .tp-faq--js h2 + .tp-faq__h { border-top: 0; }
.tp-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 15px 2px; border: 0; background: none; text-align: left; font: inherit; font-weight: 700; line-height: 1.4; color: var(--tp-ink); cursor: pointer; }
.tp-faq__q::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tp-brand-soft); color: var(--tp-brand); font-size: 1.15rem; line-height: 1; }
.tp-faq__q[aria-expanded="true"]::after { content: "\2212"; background: var(--tp-brand); color: #fff; }
.tp-faq__q:hover { color: var(--tp-brand); }
.tp-faq__q:focus-visible { outline: 3px solid rgba(3, 72, 141, .45); outline-offset: 2px; border-radius: 8px; }
.tp-faq__a { padding: 0 2px 16px; color: var(--tp-text); }
.tp-faq__a > :last-child { margin-bottom: 0; }

/* Key facts share the review chip's pill style in the header */
.tp .tp-meta li { font-variant-numeric: tabular-nums; }

/* ---------- Option includes / excludes (hidden until hover, keyboard focus or "What's included") ---------- */
.tp-option-wrap { display: grid; }
.tp-option-wrap--single { margin: -4px 0 12px; }
.tp-option__toggle { justify-self: start; margin: 3px 0 0 12px; padding: 2px 0; border: 0; background: none; color: var(--tp-brand); font-size: .82rem; font-weight: 700; cursor: pointer; }
.tp-option-wrap--single .tp-option__toggle { margin-left: 0; }
.tp-option__toggle::after { content: " \25BE"; }
.tp-option-wrap.is-open .tp-option__toggle::after { content: " \25B4"; }
.tp-option__toggle:hover { text-decoration: underline; }
.tp-option__toggle:focus-visible { outline: 3px solid rgba(3, 72, 141, .45); outline-offset: 2px; border-radius: 4px; }
.tp-option__details { display: none; gap: 10px; margin: 6px 0 2px; padding: 12px 14px; border: 1px solid var(--tp-line); border-radius: 12px; background: var(--tp-soft); font-size: .86rem; line-height: 1.45; color: var(--tp-text); }
.tp-option-wrap.is-open .tp-option__details { display: grid; }
.tp-option-wrap.is-hover .tp-option__details { display: grid; position: fixed; z-index: 1040; width: 300px; max-height: calc(100vh - 24px); margin: 0; overflow-y: auto; background: #fff; box-shadow: 0 18px 40px rgba(3, 47, 99, .18); }
.tp p.tp-option__label { margin: 0 0 4px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; color: var(--tp-muted); }
.tp .tp-option__details ul { display: block; margin: 0; padding: 0; list-style: none; line-height: inherit; color: inherit; }
.tp .tp-option__details li { margin: 0 0 4px; padding-left: 22px; }
.tp .tp-option__details li:last-child { margin-bottom: 0; }
.tp-option__details .tp-include li::before, .tp-option__details .tp-exclude li::before { font-size: .8rem; top: 2px; }

/* ---------- Enquiry: short call to action on the page, form in a panel from the right ---------- */
.tp-enquire__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tp-enquire__actions .tp-btn { width: auto; min-width: 200px; }
/* Above the header, bottom bar and chat bubble; WeTravel's checkout (2147483000+) still opens above it */
.tp-drawer { --bs-offcanvas-width: min(540px, 100vw); z-index: 2147482001; color: var(--tp-text, #2a3647); font-family: var(--font-base, "Mulish", system-ui, sans-serif); }
.offcanvas-backdrop { z-index: 2147482000; }
.tp-drawer .offcanvas-header { align-items: flex-start; gap: 16px; padding: 20px 22px 14px; border-bottom: 1px solid #e2e8f0; }
.tp-drawer__eyebrow { margin: 0 0 4px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c2410c; }
.tp-drawer h2.tp-drawer__title { margin: 0; font-family: var(--font-head, "Poppins", system-ui, sans-serif); font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: #13202e; }
.tp-drawer .offcanvas-body { padding: 18px 22px 28px; }
.tp-drawer .tp-form { padding: 0; border: 0; }
.tp-drawer__alt { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #e2e8f0; font-size: .92rem; color: #5b6878; }
.tp-drawer__alt a { font-weight: 800; color: #128c4a; text-decoration: none; }
/* The drawer lives outside .tp, so give it the trip form variables */
.tp-drawer { --tp-brand: #03488d; --tp-brand-soft: #eef4fc; --tp-book: #c2410c; --tp-book-hover: #9a3412; --tp-green: #15803d; --tp-whatsapp: #128c4a; --tp-ink: #13202e; --tp-muted: #5b6878; --tp-line: #e2e8f0; --tp-soft: #f5f8fb; --tp-radius: 14px; }

/* Mobile Book sheet: rises from the bottom bar with the same options as the booking card */
.tp-book-sheet { --bs-offcanvas-height: auto; max-height: min(88vh, 640px); }
.tp-book-sheet .offcanvas-body { padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.tp-book-sheet__from { margin: 0 0 14px; font-size: .95rem; color: #5b6878; }
.tp-book-sheet__from strong { color: #13202e; font-size: 1.15rem; }
.tp-book-sheet__from span { color: #5b6878; font-weight: 600; }
.tp-book-sheet__options { display: grid; gap: 10px; }
.tp-book-sheet__option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "main price" "cta cta";
  gap: 6px 12px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.tp-book-sheet__option:hover,
.tp-book-sheet__option:focus-visible {
  border-color: #03488d;
  background: #f2f7fd;
  box-shadow: 0 0 0 3px rgba(3, 72, 141, .12);
  outline: none;
}
.tp-book-sheet__option-main { grid-area: main; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.tp-book-sheet__option-title { font-weight: 700; font-size: 1rem; line-height: 1.3; color: #13202e; }
.tp-book-sheet__option-price { grid-area: price; text-align: right; align-self: start; }
.tp-book-sheet__option-price strong { display: block; font-size: 1.05rem; color: #13202e; }
.tp-book-sheet__option-price small { display: block; margin-top: 2px; font-size: .75rem; color: #5b6878; }
.tp-book-sheet__option-cta {
  grid-area: cta;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #c2410c;
}
.tp-book-sheet__empty { margin: 0 0 14px; color: #5b6878; }
.tp-book-sheet__alt {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  font-size: .92rem;
  font-weight: 700;
}
.tp-book-sheet__alt a { color: #03488d; text-decoration: none; }
.tp-book-sheet__alt a[data-whatsapp] { color: #128c4a; }

/* The mobile header is fixed and sits at z-index 1050, so the section menu has to stick below it — too small
   an offset and its top edge disappears behind the header. The measured --nh-header covers both breakpoints
   now; 61px stays as the mobile fallback for before the script runs. Driving this through --tp-sticky keeps
   .tp-section's scroll-margin in step. Clearance for the fixed bottom bar lives in inc_bottom_nav.php. */
@media (max-width: 991.98px) {
  .tp { --tp-sticky: var(--nh-header, 61px); }
}

/* Sub-pixel rounding and the header's shrink transition can still bare a sliver above the pinned menu, so
   the menu paints white over the few pixels above itself. Its own border-top stays visible. */
.tp-nav { box-shadow: 0 -10px 0 0 #fff; }

/* ---------- Guest reviews (load_review() markup): same card style as the testimonials page ---------- */
#reviews .reviewandratting { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
#reviews .reviewandratting #review { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
#reviews .reviewandratting #review h2 { grid-column: 1 / -1; margin: 0 0 4px !important; font-family: var(--tp-head); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; line-height: 1.3; color: var(--tp-ink); }
#reviews .reviewandratting .clientreview.trip-review-card {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px !important;
  border: 1px solid var(--tp-line) !important;
  border-radius: var(--tp-radius) !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}
#reviews .reviewandratting .clientreview.trip-review-card:hover { border-color: #b9c9de !important; box-shadow: none !important; }
#reviews .trip-review-media { width: 44px; height: 44px; border-radius: 50%; background: #e7eef8; }
#reviews .trip-review-media img { border-radius: 50% !important; }
#reviews .trip-review-media span { width: auto; height: auto; border: 0; background: none; box-shadow: none; font-size: .9rem; font-weight: 800; color: var(--tp-brand-deep); }
#reviews .trip-review-person strong { font-size: .98rem; color: var(--tp-ink); }
#reviews .trip-review-stars { padding: 0; border: 0; background: none; }
#reviews .reviewandratting .clientreview.trip-review-card h4 { margin: 6px 0 6px; font-family: var(--tp-head); font-size: 1rem !important; line-height: 1.35; color: var(--tp-ink) !important; }
#reviews .reviewandratting .clientreview.trip-review-card .review-body { margin: 0 0 8px; font-size: .95rem; line-height: 1.6; color: var(--tp-text); }
#reviews #show-more-reviews {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 9px 18px;
  border: 1.5px solid var(--tp-brand);
  border-radius: 999px;
  background: #fff;
  font-size: .92rem;
  font-weight: 800;
  color: var(--tp-brand);
}
#reviews #show-more-reviews:hover { background: var(--tp-brand-soft); }

/* ---------- Mobile fixes (2026-09-15) ----------
   Below 992px .tp-top had no column template, so its single implicit column sized itself to the gallery photo's
   full file width (up to 1013px on a 412px phone) and every trip page scrolled sideways. The column now ends at
   the screen edge and its children may shrink. Fact labels go from 11.8px to 12px. */
@media (max-width: 991.98px) {
  .tp-top { grid-template-columns: minmax(0, 1fr); }
}
.tp-top > * { min-width: 0; }
.tp-gallery__main { max-width: 100%; }
.tp-fact dt { font-size: .75rem; }
.tp p.tp-option__label { font-size: .75rem; }
/* Mobile fix (2026-09-15): the category link above the trip title was 21px tall; 24px is the minimum tap size. */
.tp-eyebrow { display: inline-block; padding-block: 2px; }

/* ---------- Option "What's included" (2026-09-15) ----------
   The includes / excludes panel no longer opens on hover. Each option card carries a small round (i) button in its
   top-right corner; tapping it opens the panel under that card. The title keeps clear of the button. */
.tp-option-wrap:not(.tp-option-wrap--single) { position: relative; }
.tp-option-wrap:not(.tp-option-wrap--single) .tp-option__title { padding-right: 30px; }
.tp-option-wrap .tp-option__info {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin: 0; padding: 0;
  border: 1.5px solid #9fb6d1; border-radius: 50%; background: #fff;
  color: var(--tp-brand); font: italic 700 .92rem/1 Georgia, "Times New Roman", serif; cursor: pointer;
}
.tp-option-wrap .tp-option__info::after,
.tp-option-wrap.is-open .tp-option__toggle.tp-option__info::after { content: none; }
.tp-option-wrap .tp-option__info:hover { text-decoration: none; border-color: var(--tp-brand); background: var(--tp-brand-soft); }
.tp-option-wrap.is-open .tp-option__info { border-color: var(--tp-brand); background: var(--tp-brand); color: #fff; }
.tp-option-wrap .tp-option__info:focus-visible { outline: 3px solid rgba(3, 72, 141, .45); outline-offset: 2px; }
/* Long option names wrap to a second line instead of being cut to "…" now that the title leaves room for the (i). */
.tp-option-wrap:not(.tp-option-wrap--single) .tp-option__title { white-space: normal; overflow: visible; text-overflow: clip; }

/* Registered-company lines in the booking card (includes/trust.php, variant "card"). */
.tp .tp-book__trust li.tp-trust-reg i { color: var(--tp-green); }
.tp .tp-book__trust li.tp-trust-warn { color: #8a5300; }
.tp .tp-book__trust li.tp-trust-warn i { color: #b45309; }
.tp .tp-book__trust li.tp-trust-warn a { color: var(--tp-brand); font-weight: 700; }
