/* ===================================================
   Program Detail Pages — program-detail.css
   Depends on styles.css being loaded first for
   variables (--color-*, --font-*, --radius, etc.)
   and shared rules (.container, .breadcrumb, .btn).

   Matches the markup used in half-day-private.html,
   half-day-group.html, full-day.html, overnight.html
   (all pd-* prefixed classes).
   =================================================== */

/* ---------------------------------------------------
   HERO IMAGE
   --------------------------------------------------- */
.pd-hero {
  width: 100%;
  line-height: 0;
}

.pd-hero-single {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}

.pd-hero-single img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.pd-hero-badge {
  position: absolute;
  left: 60px;
  bottom: 80px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.95rem;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* ---------------------------------------------------
   PAGE BODY — content + sticky sidebar

   Structured with grid-template-areas so the DOM order
   can be visually rearranged per breakpoint without
   moving markup:
     Desktop: intro / (choose) / content stacked in the
              left column, sidebar spans every row on
              the right.
     Mobile:  intro, then (choose, if present), then
              sidebar, then content — the booking card
              (pricing + pick-up/drop-off) sits right
              before the itinerary, not above the
              program title or at the very bottom.

   Most program pages only have "intro" and "content".
   Pages with a "Choose Your Program/Package" section
   (half-day, overnight) add the .pd-body--has-choose
   modifier so that section gets its own "choose" area,
   placed between the intro and the booking card.
   --------------------------------------------------- */
.pd-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas:
    "intro   sidebar"
    "content sidebar";
  gap: 56px;
  align-items: start;
  padding: 48px 0 96px;
}

.pd-body--has-choose {
  grid-template-areas:
    "intro   sidebar"
    "choose  sidebar"
    "content sidebar";
}

.pd-content-intro {
  grid-area: intro;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pd-content-choose {
  grid-area: choose;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pd-content {
  grid-area: content;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pd-content-intro .breadcrumb,
.pd-content .breadcrumb {
  margin-bottom: 0;
}

/* ---------------------------------------------------
   TITLE BLOCK + QUICK STATS
   --------------------------------------------------- */
.pd-title-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-title-block h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.pd-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.pd-quick-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.pd-quick-stats svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
  flex-shrink: 0;
}

/* ---------------------------------------------------
   FREE WATERFALL HIGHLIGHT BANNER
   Sits right under the quick stats so it's one of the
   first things a visitor sees — waterfall + "free"
   is a strong hook, so it gets its own color (blue,
   distinct from the site's green) instead of blending
   into the rest of the page.
   --------------------------------------------------- */
.pd-free-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #0f7fa8, #17a9d1);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15, 127, 168, 0.3);
  color: #fff;
  animation: pd-free-pulse 2.6s ease-in-out infinite;
}

@keyframes pd-free-pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(15, 127, 168, 0.3); }
  50% { box-shadow: 0 10px 30px rgba(15, 127, 168, 0.55); }
}

.pd-free-highlight-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.pd-free-highlight-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.pd-free-highlight-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.pd-free-highlight-text strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3px;
}

.pd-free-tag {
  display: inline-block;
  background: #fff;
  color: #0f7fa8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 999px;
}

.pd-inclusion-item .pd-free-tag {
  background: #0f7fa8;
  color: #fff;
  font-size: 0.62rem;
  padding: 2px 9px;
  margin-left: 6px;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .pd-free-highlight {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ---------------------------------------------------
   GENERIC SECTION WRAPPER
   --------------------------------------------------- */
.pd-section {
  padding-top: 8px;
}

.pd-section h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--color-text);
  margin: 0 0 10px;
}

.pd-section-sub {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0 0 24px;
  line-height: 1.6;
}

.pd-section-middle {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---------------------------------------------------
   ITINERARY TIMELINE
   --------------------------------------------------- */
.pd-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--color-border);
}

.pd-timeline-item {
  position: relative;
  padding: 0 0 28px 28px;
}

.pd-timeline-item:last-child {
  padding-bottom: 0;
}

.pd-timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-white);
  transition: transform 0.3s ease;
}

.pd-timeline-item:hover::before {
  transform: scale(1.35);
}

/* staggered fade-up for each stop once the itinerary section reveals */
.pd-timeline-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed .pd-timeline-item {
  opacity: 1;
  transform: translateY(0);
}

.reveal.revealed .pd-timeline-item:nth-child(1) { transition-delay: 0.05s; }
.reveal.revealed .pd-timeline-item:nth-child(2) { transition-delay: 0.1s; }
.reveal.revealed .pd-timeline-item:nth-child(3) { transition-delay: 0.15s; }
.reveal.revealed .pd-timeline-item:nth-child(4) { transition-delay: 0.2s; }
.reveal.revealed .pd-timeline-item:nth-child(5) { transition-delay: 0.25s; }
.reveal.revealed .pd-timeline-item:nth-child(6) { transition-delay: 0.3s; }
.reveal.revealed .pd-timeline-item:nth-child(7) { transition-delay: 0.35s; }
.reveal.revealed .pd-timeline-item:nth-child(8) { transition-delay: 0.4s; }
.reveal.revealed .pd-timeline-item:nth-child(9) { transition-delay: 0.45s; }

.pd-timeline-time {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.pd-timeline-body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--color-text);
  margin-bottom: 6px;
}

.pd-timeline-body ul {
  margin: 6px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-timeline-body li {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---------------------------------------------------
   INCLUSIONS GRID
   --------------------------------------------------- */
.pd-inclusions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pd-inclusion-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.55;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pd-inclusion-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.pd-inclusion-item svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.pd-inclusions-note {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 14px;
  line-height: 1.6;
}

/* ---------------------------------------------------
   "THINGS TO KNOW" — centered toggle button + panel
   --------------------------------------------------- */
.pd-know-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pd-know-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 4px;
  padding: 14px 30px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.pd-know-toggle:hover,
.pd-know-toggle:focus-visible {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.pd-know-toggle .pd-know-chevron {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.35s ease;
}

.pd-know-toggle[aria-expanded="true"] .pd-know-chevron {
  transform: rotate(180deg);
}

.pd-know-panel {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.pd-know-panel.open {
  max-height: 1400px;
  opacity: 1;
  margin-top: 22px;
}

.pd-know-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
  justify-items: stretch;
}

/* single-block layout stays centered instead of stretching edge to edge */
.pd-know-grid:has(.pd-know-block:only-child) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 460px;
  margin: 0 auto;
}

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

.pd-know-block svg {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
}

.pd-know-block h3 {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0;
}

.pd-know-block p,
.pd-know-block ul {
  font-size: 0.86rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin: 0;
  padding-left: 18px;
}

.pd-know-block ul {
  padding-left: 18px;
}

/* ---------------------------------------------------
   DEPOSIT / CANCELLATION POLICY (optional block)
   --------------------------------------------------- */
.pd-policy p,
.pd-policy ol {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.75;
}

.pd-policy ol {
  padding-left: 20px;
}

.policy-no {
  color: #b3261e;
  font-weight: 700;
}

/* ---------------------------------------------------
   "GOT A QUESTION" CALLOUT
   --------------------------------------------------- */
.pd-question {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 36px 40px;
}

.pd-question-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pd-question-inner h2 {
  margin: 0 0 6px;
}

.pd-question-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  max-width: 480px;
  line-height: 1.6;
}

/* ---------------------------------------------------
   SIDEBAR — sticky booking card
   --------------------------------------------------- */
.pd-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.pd-booking-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pd-booking-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-booking-card-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.pd-booking-card-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--color-text);
}

/* Schedule */
.pd-schedule h3,
.pd-pricing h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin: 0 0 12px;
}

.pd-schedule-time {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-text);
}

.pd-schedule-time svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
  flex-shrink: 0;
}

.pd-schedule-note {
  margin: 2px 0 0 28px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Sessions (overnight) */
.pd-sessions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-session-card {
  padding: 14px 16px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pd-session-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

/* Session cards used as selectable buttons (e.g. "Choose Your Class") */
.pd-course-btn {
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}

.pd-course-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.pd-course-btn[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: #f4f6ea;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.pd-course-btn[aria-pressed="true"] h3 {
  color: var(--color-primary);
}

/* Package picker (main content) — same cards, laid out side by side */
.pd-pkg-options {
  flex-direction: row;
  flex-wrap: wrap;
}

.pd-pkg-options .pd-session-card {
  flex: 1 1 0;
  min-width: 260px;
}

@media (max-width: 640px) {
  .pd-pkg-options {
    flex-direction: column;
  }
}

.pd-session-card h3 {
  font-size: 0.88rem;
  color: var(--color-text);
  margin: 0 0 6px;
}

.pd-session-card p {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

/* Pricing */
.pd-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.pd-price-row:last-of-type {
  border-bottom: none;
}

.pd-price-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text);
}

.pd-price-label svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
  flex-shrink: 0;
}

.pd-price-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Pricing — option cards (overnight style) */
.pd-price-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-price-option {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pd-price-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.pd-price-option--featured {
  border-color: var(--color-primary);
  background: #f4f6ea;
}

.pd-price-option-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.pd-price-option-amount {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
  margin: 4px 0;
}

.pd-price-option p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Booking buttons */
.pd-book-btn {
  width: 100%;
  text-align: center;
}

.pd-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pd-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.pd-whatsapp-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex-shrink: 0;
}

/* Other programs */
.pd-other-programs {
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
}

.pd-other-programs h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin: 0 0 10px;
}

.pd-other-programs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-other-programs a {
  font-size: 0.88rem;
  color: var(--color-text);
}

.pd-other-programs a:hover {
  color: var(--color-primary);
}

/* ---------------------------------------------------
   RESPONSIVE
   --------------------------------------------------- */
@media (max-width: 1024px) {
  .pd-body {
    grid-template-columns: 1fr;
    /* Stack in this exact order: program title/quick info,
       then the booking card (pricing + pick-up/drop-off),
       then the itinerary and the rest of the content. */
    grid-template-areas:
      "intro"
      "sidebar"
      "content";
    gap: 40px;
  }

  .pd-body--has-choose {
    /* Same idea, but the "Choose Your Program/Package" section
       sits between the intro and the booking card, so visitors
       pick a session before seeing that session's pricing and
       pick-up/drop-off time. */
    grid-template-areas:
      "intro"
      "choose"
      "sidebar"
      "content";
  }

  .pd-sidebar {
    position: static;
  }

  .pd-inclusions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pd-hero-single {
    max-height: 320px;
  }

  .pd-hero-badge {
    left: 16px;
    right: 16px;
    bottom: 16px;
    font-size: 1rem;
    white-space: normal;
  }

  .pd-body {
    padding: 32px 0 64px;
  }

  .pd-question {
    padding: 28px 24px;
  }

  .pd-question-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pd-booking-card {
    padding: 22px;
  }
}