/* Shared expedition experience — scoped so non-expedition pages remain unchanged. */
:root {
  --exp-ink: #102a33;
  --exp-accent: #e65c00;
  --exp-surface: #ffffff;
  --exp-muted: #64748b;
  --exp-line: #dfe7e4;
  --exp-radius: 18px;
  --exp-shadow: 0 18px 50px rgba(16, 42, 51, .10);
}

body:has(.expedition-main) {
  background: #f4f7f5;
}

body:has(.expedition-main) .bg-paper.text-brand-900 {
  background: linear-gradient(180deg, #eef4f1 0, #f7f9f8 46rem, #f4f7f5 100%);
}

body:has(.expedition-main) .bg-paper.text-brand-900 > section:first-of-type {
  min-height: clamp(520px, 72vh, 760px) !important;
  isolation: isolate;
}

body:has(.expedition-main) .bg-paper.text-brand-900 > section:first-of-type::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 29, 36, .92) 0%, rgba(7, 29, 36, .58) 52%, rgba(7, 29, 36, .18) 100%);
}

body:has(.expedition-main) .bg-paper.text-brand-900 > section:first-of-type > img {
  opacity: .82 !important;
  transform: scale(1.01);
}

body:has(.expedition-main) .bg-paper.text-brand-900 > section:first-of-type > .absolute {
  z-index: 1;
}

body:has(.expedition-main) .bg-paper.text-brand-900 > section:first-of-type > .relative {
  z-index: 2;
}

body:has(.expedition-main) .bg-paper.text-brand-900 > section:first-of-type h1 {
  max-width: 15ch;
  text-wrap: balance;
  letter-spacing: -.035em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}

body:has(.expedition-main) .bg-paper.text-brand-900 > section:first-of-type p {
  text-wrap: pretty;
}

body:has(.expedition-main) .factsheet-strip-section {
  margin-top: -54px !important;
}

body:has(.expedition-main) .factsheet-strip-section > div {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  border-top: 0 !important;
  border-radius: var(--exp-radius) !important;
  box-shadow: var(--exp-shadow) !important;
  backdrop-filter: blur(18px);
}

body:has(.expedition-main) .factsheet-strip-section > div > div {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background-color .2s ease, transform .2s ease;
}

body:has(.expedition-main) .factsheet-strip-section > div > div:hover {
  background: #f8faf9;
  transform: translateY(-2px);
}

body:has(.expedition-main) .factsheet-strip-section .trip-fact-label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
}

body:has(.expedition-main) .factsheet-strip-section .trip-fact-label i {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(15, 46, 53, .10);
  color: #1a2e44;
  font-size: 11px;
}

body:has(.expedition-main) .factsheet-strip-section > div > div:last-child {
  display: grid !important;
  place-items: center;
  align-content: center;
  text-align: center;
}

body:has(.expedition-main) .factsheet-strip-section > div > div:last-child .trip-fact-label {
  display: grid !important;
  grid-template-columns: 22px auto 22px;
  align-items: center;
  justify-content: center;
  column-gap: 7px;
}

body:has(.expedition-main) .factsheet-strip-section > div > div:last-child .trip-fact-label::after {
  content: "";
  width: 22px;
  height: 22px;
}

body:has(.expedition-main) .factsheet-strip-section > div > div:last-child > :last-child {
  display: block !important;
  width: 100%;
  margin-top: 3px;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

body:has(.expedition-main) .expedition-main {
  padding-top: 42px !important;
  padding-bottom: 88px !important;
}

body:has(.expedition-main) .expedition-main > .grid {
  gap: clamp(28px, 4vw, 56px) !important;
  align-items: start;
}

body:has(.expedition-main) .expedition-main .sticky:has([role="tablist"]) {
  top: 76px;
  padding: 8px;
  border: 1px solid var(--exp-line) !important;
  border-radius: 14px 14px 0 0;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 8px 25px rgba(16, 42, 51, .06);
  backdrop-filter: blur(16px);
}

body:has(.expedition-main) [role="tablist"] {
  gap: 5px;
}

body:has(.expedition-main) [role="tablist"] button,
body:has(.expedition-main) [role="tablist"] a {
  border-radius: 10px 10px 8px 8px !important;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

body:has(.expedition-main) .expedition-main .lg\:col-span-8 > div:has(> .tab-content) {
  border-color: var(--exp-line) !important;
  border-radius: 0 0 var(--exp-radius) var(--exp-radius) !important;
  box-shadow: 0 14px 45px rgba(16, 42, 51, .07) !important;
}

body:has(.expedition-main) .tab-content h2 {
  letter-spacing: -.025em;
  text-wrap: balance;
}

body:has(.expedition-main) .tab-content details {
  overflow: clip;
  border-color: var(--exp-line) !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(16, 42, 51, .04);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body:has(.expedition-main) .tab-content details:hover {
  border-color: #b8cbc4 !important;
  box-shadow: 0 10px 28px rgba(16, 42, 51, .08);
  transform: translateY(-1px);
}

body:has(.expedition-main) .tab-content details[open] {
  border-color: rgba(230, 92, 0, .42) !important;
  box-shadow: 0 12px 32px rgba(16, 42, 51, .09);
}

body:has(.expedition-main) .tab-content summary {
  min-height: 72px;
  padding: 16px 18px !important;
}

body:has(.expedition-main) .tab-content summary::marker {
  content: "";
}

body:has(.expedition-main) .tab-content iframe {
  border-radius: 14px;
}

body:has(.expedition-main) #panel-gallery img {
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), filter .3s ease;
}

body:has(.expedition-main) #panel-gallery img:hover {
  transform: scale(1.035);
  filter: saturate(1.08);
}

body:has(.expedition-main) #booking-section > .sticky {
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: var(--exp-radius) !important;
  background: linear-gradient(150deg, #12343d 0%, #0b252d 100%) !important;
  box-shadow: 0 24px 65px rgba(10, 37, 45, .22) !important;
}

body:has(.expedition-main) #booking-section input,
body:has(.expedition-main) #booking-section textarea {
  min-height: 48px;
  border-radius: 10px !important;
  box-shadow: inset 0 0 0 1px rgba(16, 42, 51, .08);
}

body:has(.expedition-main) #booking-section textarea {
  min-height: 82px;
  resize: vertical;
}

body:has(.expedition-main) #booking-section button[type="submit"] {
  border-radius: 11px !important;
  box-shadow: 0 10px 25px rgba(230, 92, 0, .28);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body:has(.expedition-main) #booking-section button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(230, 92, 0, .36);
}

body:has(.expedition-main) #booking-section a {
  border-radius: 10px !important;
}

@media (max-width: 1023px) {
  body:has(.expedition-main) .factsheet-strip-section > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:has(.expedition-main) #booking-section > .sticky {
    position: relative;
    top: auto;
  }
}

@media (max-width: 639px) {
  body:has(.expedition-main) .bg-paper.text-brand-900 > section:first-of-type {
    min-height: 540px !important;
    padding-bottom: 105px !important;
  }

  body:has(.expedition-main) .bg-paper.text-brand-900 > section:first-of-type::after {
    background: linear-gradient(0deg, rgba(7, 29, 36, .96) 0%, rgba(7, 29, 36, .55) 70%, rgba(7, 29, 36, .22) 100%);
  }

  body:has(.expedition-main) .factsheet-strip-section {
    margin-top: -70px !important;
  }

  body:has(.expedition-main) .factsheet-strip-section > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.expedition-main) .factsheet-strip-section > div > div {
    min-height: 88px;
    padding: 13px 10px !important;
  }

  body:has(.expedition-main) .factsheet-strip-section b {
    font-size: 1rem !important;
    line-height: 1.25;
  }

  body:has(.expedition-main) .expedition-main {
    padding-top: 26px !important;
    padding-bottom: 56px !important;
  }

  body:has(.expedition-main) .expedition-main .sticky:has([role="tablist"]) {
    top: 64px;
    margin-inline: -4px;
  }

  body:has(.expedition-main) .expedition-main .lg\:col-span-8 > div:has(> .tab-content) {
    padding: 24px 18px !important;
  }

  body:has(.expedition-main) .tab-content h2 {
    font-size: 1.65rem !important;
  }

  body:has(.expedition-main) .tab-content summary {
    align-items: flex-start !important;
  }

  body:has(.expedition-main) #booking-section > .sticky {
    padding: 24px 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.expedition-main) *,
  body:has(.expedition-main) *::before,
  body:has(.expedition-main) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
