/* Package details — editorial itinerary layout */

html:has(body.pd-page),
body.pd-page,
body.pd-page.layout-journeyempires {
  overflow-x: hidden;
  background:
    radial-gradient(900px 380px at 12% -6%, rgba(185, 168, 143, 0.18), transparent 55%),
    radial-gradient(720px 420px at 100% 0%, rgba(11, 63, 134, 0.1), transparent 50%),
    linear-gradient(180deg, var(--th-tint2,#d8effd) 0%, var(--th-tint,#eef8ff) 38%, var(--th-tint,#eef8ff) 100%) !important;
}

body.pd-page .main-footer {
  background: linear-gradient(180deg, #002550 0%, #002550 100%) !important;
}

body.pd-page .pd-wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 36px 36px 48px;
  background: var(--th-tint,#eef8ff);
  border: 1px solid rgba(185, 168, 143, 0.22);
  border-radius: 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 28px 64px rgba(0, 37, 80, 0.1);
}

body.pd-page .pd-hero--content {
  background: transparent !important;
  padding: 108px 0 20px;
}

body.pd-page .pd-book {
  background: linear-gradient(180deg, #002550 0%, #002550 100%);
  border-color: rgba(185, 168, 143, 0.35);
  color: #d8effd;
  box-shadow: 0 18px 40px rgba(0, 37, 80, 0.28);
}

body.pd-page .pd-book .section-eyebrow,
body.pd-page .pd-book-price b,
body.pd-page .pd-book li,
body.pd-page .pd-book-note {
  color: #d8effd;
}

body.pd-page .pd-book-price small,
body.pd-page .pd-book-note {
  color: rgba(216, 239, 253, 0.72);
}

body.pd-page .pd-book-price,
body.pd-page .pd-book li {
  border-color: rgba(255, 255, 255, 0.12);
}

body.pd-page .pd-book-note {
  background: rgba(255, 255, 255, 0.08);
}

.pd-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 52px;
  color: #fff;
  overflow: hidden;
  background: #002550;
}

.pd-hero--content {
  min-height: 0;
  padding: 120px 0 36px;
  color: #002550;
  background: linear-gradient(180deg, var(--th-tint,#eef8ff) 0%, var(--th-tint,#eef8ff) 100%);
}

.pd-hero--content::after {
  display: none;
}

.pd-hero--content .pd-crumb,
.pd-hero--content .pd-crumb span[aria-current],
.pd-hero--content .pd-crumb a { color: #1d4468; }
.pd-hero--content h1 { color: #002550; }
.pd-hero--content p { color: #1d4468; }
.pd-hero--content .pd-chip {
  background: #fff;
  color: #002550;
  border-color: #eef8ff;
}
.pd-chip--days {
  background: var(--btn-color, #002550) !important;
  color: var(--btn-text, #fff) !important;
  border-color: transparent !important;
  font-weight: 800;
}

.pd-hero img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 37, 80, 0.28) 0%, rgba(0, 37, 80, 0.78) 100%);
}

.pd-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 1180px;
}

.pd-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  min-width: 0;
}

.pd-crumb span[aria-current] {
  flex: 1 1 12rem;
  min-width: 0;
}

.pd-crumb a { color: inherit; text-decoration: none; }
.pd-crumb a:hover { color: #fff; }
.pd-crumb span[aria-current] { color: #fff; }

.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pd-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pd-chip--accent {
  background: #fff;
  color: #002550;
  border-color: #fff;
}

.pd-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  overflow-wrap: break-word;
}

.pd-hero p {
  margin: 0 0 22px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.pd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.pd-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.pd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}

.pd-stat {
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid #d0edff;
  border-radius: 12px;
}

.pd-stat span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fb2b8;
  margin-bottom: 4px;
}

.pd-stat strong {
  font-size: 0.9rem;
  color: #002550;
  line-height: 1.35;
  font-weight: 700;
}

.pd-route {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 36px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #d0edff;
  border-radius: 12px;
}

.pd-route span {
  flex: 0 0 auto;
  padding-top: 2px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fb2b8;
}

.pd-route p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #0b3f86;
}

.pd-section { margin-bottom: 36px; }

.pd-section h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #002550;
}

body.pd-page .pd-section h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, #8fc4e6, var(--th-tint2,#bfe3f8));
}

.pd-kicker {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #3f5f7d;
}

.pd-prose {
  margin: 0 0 18px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #1d4468;
}

.pd-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 900px;
}

.pd-highlights li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 600;
  color: #002550;
  background: linear-gradient(165deg, #ffffff 0%, var(--th-tint,#eef8ff) 48%, var(--th-tint,#eef8ff) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.95) inset,
    0 -3px 8px rgba(0, 37, 80, 0.06) inset,
    0 8px 18px rgba(0, 37, 80, 0.1),
    0 2px 4px rgba(0, 37, 80, 0.06);
  transform-style: preserve-3d;
  transform: translateZ(0);
  overflow: hidden;
  cursor: default;
  animation: pdPopIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease;
}

.pd-highlights li:nth-child(1) { animation-delay: 0.04s; }
.pd-highlights li:nth-child(2) { animation-delay: 0.1s; }
.pd-highlights li:nth-child(3) { animation-delay: 0.16s; }
.pd-highlights li:nth-child(4) { animation-delay: 0.22s; }
.pd-highlights li:nth-child(5) { animation-delay: 0.28s; }
.pd-highlights li:nth-child(6) { animation-delay: 0.34s; }

.pd-highlights li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.1) 38%,
    transparent 58%
  );
  pointer-events: none;
}

.pd-highlights li::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}

.pd-highlights li:hover {
  transform: translateY(-5px) rotateX(6deg);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 1) inset,
    0 -2px 6px rgba(0, 37, 80, 0.04) inset,
    0 16px 28px rgba(0, 37, 80, 0.18),
    0 6px 10px rgba(0, 37, 80, 0.08);
}

.pd-highlights li:hover::after {
  animation: pdShine 0.7s ease forwards;
}

.pd-highlights li:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 4px 10px rgba(0, 37, 80, 0.12) inset,
    0 4px 10px rgba(0, 37, 80, 0.08);
}

.pd-hl-nub {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: linear-gradient(160deg, #7bcaf3 0%, #0b3f86 55%, #002550 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 4px 8px rgba(0, 37, 80, 0.35);
  transform: translateZ(12px);
}

.pd-hl-text {
  position: relative;
  z-index: 1;
  transform: translateZ(10px);
}

.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  perspective: 600px;
}

.pd-tag {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  overflow: hidden;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(165deg, #e9a83a 0%, #0b3f86 52%, #002550 100%);
  color: #fff;
  font: 700 0.78rem/1 var(--font-heading, inherit);
  letter-spacing: 0.01em;
  cursor: pointer;
  transform-style: preserve-3d;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.35) inset,
    0 -3px 8px rgba(0, 37, 80, 0.22) inset,
    0 8px 16px rgba(0, 37, 80, 0.28);
  animation: pdPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
}

.pd-tag:nth-child(1) { animation-delay: 0.36s; }
.pd-tag:nth-child(2) { animation-delay: 0.42s; }
.pd-tag:nth-child(3) { animation-delay: 0.48s; }
.pd-tag:nth-child(4) { animation-delay: 0.54s; }
.pd-tag:nth-child(5) { animation-delay: 0.6s; }
.pd-tag:nth-child(6) { animation-delay: 0.66s; }

.pd-tag:nth-child(even) {
  background: linear-gradient(165deg, #ffffff 0%, var(--th-tint,#eef8ff) 55%, var(--th-tint,#eef8ff) 100%);
  color: #002550;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.95) inset,
    0 -2px 6px rgba(0, 37, 80, 0.06) inset,
    0 8px 16px rgba(0, 37, 80, 0.1);
}

.pd-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.45), transparent 55%);
  pointer-events: none;
}

.pd-tag:hover {
  transform: translateY(-4px) rotateX(8deg);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.45) inset,
    0 14px 24px rgba(0, 37, 80, 0.32);
}

.pd-tag:nth-child(even):hover {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 1) inset,
    0 14px 24px rgba(0, 37, 80, 0.16);
}

.pd-tag:active {
  transform: translateY(1px) scale(0.97);
}

@keyframes pdPopIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pdShine {
  from { left: -45%; opacity: 0.2; }
  to { left: 120%; opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-highlights li,
  .pd-tag {
    animation: none;
    transition: none;
  }
  .pd-highlights li:hover,
  .pd-tag:hover,
  .pd-highlights li:active,
  .pd-tag:active {
    transform: none;
  }
}

.pd-days { display: flex; flex-direction: column; gap: 8px; }

.pd-days .accordion-item {
  margin-bottom: 0;
  border-radius: 12px;
  box-shadow: none;
}

.pd-days .accordion-item.active {
  border-color: #d0edff;
  box-shadow: none;
}

.pd-days .accordion-header {
  padding: 14px 16px;
  font-size: 0.95rem;
  gap: 12px;
}

.pd-days .accordion-header:hover { color: #002550; }

.pd-day-num {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--th-tint,#eef8ff);
  color: #002550;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}

.pd-days .accordion-header strong {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: #002550;
}

.pd-days .accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--th-tint,#eef8ff);
  color: #3f5f7d;
}

.pd-days .accordion-item.active .accordion-icon {
  background: #002550;
  color: #fff;
}

.pd-days .accordion-body { padding-left: 16px; padding-right: 16px; }

.pd-days .accordion-item.active .accordion-body {
  padding: 0 16px 16px 80px;
}

.pd-day-body p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #1d4468;
}

.pd-day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.8rem;
  color: #3f5f7d;
}

.pd-day-meta span {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}

.pd-day-meta b {
  color: #0b3f86;
  font-weight: 700;
}

.pd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 36px;
}

.pd-box {
  padding: 18px 18px 14px;
  background: #fff;
  border: 1px solid #d0edff;
  border-radius: 14px;
}

.pd-box h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.pd-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-box li {
  padding: 6px 0 6px 16px;
  position: relative;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #1d4468;
  border-top: 1px solid #eef8ff;
}

.pd-box li:first-child { border-top: 0; }

.pd-box--in li::before,
.pd-box--out li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.pd-box--in li::before { background: #0b5ed7; }
.pd-box--out li::before { background: #ee8a6a; }

.pd-split--hl .pd-box--in {
  background: var(--th-tint,#eef8ff);
  border: 2px solid #0b5ed7;
  box-shadow: 0 10px 24px rgba(11, 94, 215, 0.16);
}
.pd-split--hl .pd-box--out {
  background: #fdf0ea;
  border: 2px solid #ee8a6a;
  box-shadow: 0 10px 24px rgba(238, 138, 106, 0.12);
}
.pd-split--hl .pd-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
}
.pd-gallery--all {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: none;
}
.pd-gallery--all a:first-of-type,
.pd-gallery--all figure:first-of-type {
  grid-column: auto;
}
.pd-related-sub {
  margin: 18px 0 10px;
  font-size: 1rem;
}
.pd-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(0, 37, 80, 0.48);
  padding: 20px;
}
.pd-pdf-modal[hidden] { display: none; }
.pd-pdf-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 22px;
}
.pd-pdf-card label {
  display: block;
  margin: 10px 0;
  font-weight: 700;
  font-size: 0.86rem;
}
.pd-pdf-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d0edff;
  border-radius: 10px;
}
.pd-pdf-actions { display: flex; gap: 10px; margin-top: 14px; }

.pd-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 240px 132px;
  gap: 10px;
}

.pd-gallery a,
.pd-gallery figure {
  margin: 0;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--th-tint2,#d0edff);
}

.pd-gallery a:first-of-type,
.pd-gallery figure:first-of-type {
  grid-column: 1 / -1;
}

.pd-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pd-gallery a:hover img {
  transform: scale(1.04);
}

.pd-book {
  position: sticky;
  top: 92px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #d0edff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 37, 80, 0.06);
}

.pd-book .section-eyebrow { margin-bottom: 8px; }

.pd-book-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #d0edff;
}

.pd-book-price b {
  display: block;
  font-size: 1.55rem;
  color: #002550;
  letter-spacing: -0.03em;
}

.pd-book-price small {
  color: #3f5f7d;
  font-size: 0.78rem;
}

.pd-book ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.pd-book li {
  position: relative;
  padding: 8px 0 8px 14px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #1d4468;
  border-top: 1px solid #eef8ff;
}

.pd-book li:first-child { border-top: 0; }

.pd-book li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9fb2b8;
}

.pd-book .btn {
  width: 100%;
  margin-bottom: 8px;
  justify-content: center;
  box-sizing: border-box;
}

.pd-book-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--th-tint,#eef8ff);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #3f5f7d;
}

.pd-related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(185, 168, 143, 0.28);
}

.pd-related h2 {
  margin: 0 0 18px;
  font-size: 1.25rem;
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pd-related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d0edff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-related-card:hover {
  border-color: #d0edff;
  box-shadow: 0 10px 24px rgba(0, 37, 80, 0.08);
}

.pd-related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.pd-related-card div { padding: 12px 14px 14px; }

.pd-related-card small {
  display: block;
  font-size: 0.72rem;
  color: #3f5f7d;
  margin-bottom: 4px;
}

.pd-related-card strong {
  display: block;
  font-size: 0.95rem;
  color: #002550;
  margin-bottom: 6px;
}

.pd-related-card span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #002550;
}

.pd-empty {
  padding: 80px 20px;
  text-align: center;
}

@media (max-width: 980px) {
  .pd-layout,
  .pd-split,
  .pd-highlights,
  .pd-related-grid,
  .pd-stats {
    grid-template-columns: 1fr 1fr;
  }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-book { position: static; }
  .pd-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 140px 140px;
  }
  .pd-gallery a:first-of-type,
  .pd-gallery figure:first-of-type {
    grid-column: 1 / -1;
  }
  .pd-days .accordion-item.active .accordion-body {
    padding-left: 16px;
  }
}

@media (max-width: 640px) {
  .pd-stats,
  .pd-split,
  .pd-highlights,
  .pd-related-grid,
  .pd-gallery {
    grid-template-columns: 1fr;
  }
  .pd-gallery {
    grid-template-rows: none;
  }
  .pd-gallery a,
  .pd-gallery figure {
    height: 180px;
  }
  .pd-hero { min-height: 360px; padding-top: 110px; }
  .pd-hero .container {
    padding-left: 48px;
    padding-right: 72px;
  }
  .pd-hero h1 { font-size: 1.42rem; }
  .pd-hero-actions .btn { width: 100%; justify-content: center; }
}
