/* ================================================================
   PACKAGE-DETAIL.CSS — individual tour package pages
   (pages/packages/*.html, generated by tools/build-package-pages.js)
   Mobile first.
   ================================================================ */

.pd-page {
  --pd-gold: var(--gold, #B8860B);
  --pd-navy: var(--navy, #0D1B2A);
  --pd-text: var(--text-secondary, #2C3E50);
  --pd-muted: var(--text-muted, #5D6D7E);
  --pd-line: var(--cream-border, #E9ECEF);
  --pd-soft: var(--cream-dark, #F8F9FA);
  --pd-card: var(--white, #FFFFFF);
  --pd-nav-h: 72px;
  background: var(--pd-card);
}

.pd-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── HERO ─────────────────────────────────────────────────────── */
.pd-hero {
  position: relative;
  min-height: 440px;
  display: flex; align-items: flex-end;
  padding: 140px 16px 40px;
  color: #fff;
  overflow: hidden;
  background: var(--pd-navy);
}
.pd-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,14,28,.75) 0%, rgba(6,14,28,.25) 40%, rgba(6,14,28,.85) 100%);
}
.pd-hero__content { position: relative; z-index: 1; max-width: 1200px; width: 100%; margin: 0 auto; }
.pd-crumbs { display: flex; width: 100%; justify-content: flex-start; margin: 0 0 14px; flex-wrap: wrap; font-size: .82rem; }
.pd-crumbs a, .pd-crumbs span { color: rgba(255,255,255,.85) !important; }
.pd-crumbs a:hover { color: #F4D03F !important; }
.pd-hero__title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1; margin: 10px 0 10px; color: #fff;
}
.pd-hero__title span { color: #F4D03F; }
.pd-hero__sub { font-size: 1rem; color: rgba(255,255,255,.9); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pd-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: var(--pd-gold); color: #fff;
}
.pd-tag--blue  { background: #1565C0; }
.pd-tag--green { background: #1B8A5A; }

/* ── QUICK FACTS ──────────────────────────────────────────────── */
.pd-facts { background: var(--pd-soft); border-bottom: 1px solid var(--pd-line); }
.pd-facts__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
  padding-top: 18px; padding-bottom: 18px;
}
.pd-fact { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--pd-navy); font-weight: 600; min-width: 0; }
.pd-fact i { color: var(--pd-gold); margin-top: 3px; width: 18px; text-align: center; flex: none; }
.pd-fact small { display: block; font-size: .7rem; font-weight: 500; color: var(--pd-muted); text-transform: uppercase; letter-spacing: .05em; }
.pd-fact--price { grid-column: 1 / -1; }
.pd-fact--price strong { font-family: var(--font-serif, Georgia, serif); font-size: 1.6rem; color: var(--pd-navy); }
.pd-fact--price em { font-style: normal; font-size: .8rem; color: var(--pd-muted); }

/* ── IN-PAGE TABS ─────────────────────────────────────────────── */
.pd-tabs {
  position: sticky; top: var(--pd-nav-h); z-index: 50;
  background: var(--pd-card); border-bottom: 1px solid var(--pd-line);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.pd-tabs__inner {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pd-tabs__inner::-webkit-scrollbar { display: none; }
.pd-tabs a {
  flex: none; padding: 14px 12px; font-size: .88rem; font-weight: 600; color: var(--pd-text);
  text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap;
}
.pd-tabs a:hover, .pd-tabs a:focus-visible { color: var(--pd-gold); border-bottom-color: var(--pd-gold); }

/* ── LAYOUT ───────────────────────────────────────────────────── */
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 40px; }
.pd-sec { scroll-margin-top: calc(var(--pd-nav-h) + 60px); padding: 8px 0 28px; border-bottom: 1px solid var(--pd-line); margin-bottom: 24px; }
.pd-sec:last-child { border-bottom: 0; }
.pd-sec h2 { font-family: var(--font-serif, Georgia, serif); font-size: 1.7rem; color: var(--pd-navy); margin: 0 0 14px; }
.pd-sec h3 { font-size: 1.05rem; color: var(--pd-navy); margin: 20px 0 10px; }
.pd-sec p { line-height: 1.8; color: var(--pd-text); }
.pd-lead { font-size: 1.02rem; }
.pd-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-sec__head h2 { margin: 0; }

.pd-highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pd-highlights li { display: flex; gap: 10px; line-height: 1.6; color: var(--pd-text); }
.pd-highlights i { color: var(--pd-gold); font-size: .8rem; margin-top: 6px; }
.pd-includes-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pd-includes-row .pkg-inc { background: var(--pd-soft); border: 1px solid var(--pd-line); border-radius: 999px; padding: 6px 12px; font-size: .82rem; }

/* ── ITINERARY ────────────────────────────────────────────────── */
.pd-expand {
  background: none; border: 1px solid var(--pd-gold); color: var(--pd-gold); border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: .82rem; cursor: pointer; min-height: 36px;
}
.pd-expand:hover { background: var(--pd-gold); color: #fff; }
.pd-days { position: relative; display: grid; gap: 12px; }
.pd-day {
  border: 1px solid var(--pd-line); border-radius: 14px; background: var(--pd-card);
  box-shadow: 0 1px 6px rgba(0,0,0,.04); overflow: hidden;
}
.pd-day[open] { border-color: rgba(184,134,11,.4); }
.pd-day summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; min-height: 56px;
}
.pd-day summary::-webkit-details-marker { display: none; }
.pd-day__num {
  flex: none; background: var(--pd-navy); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
}
.pd-day[open] .pd-day__num { background: var(--pd-gold); }
.pd-day__title { flex: 1; font-weight: 600; color: var(--pd-navy); line-height: 1.4; }
.pd-day__chev { color: var(--pd-muted); transition: transform .25s ease; }
.pd-day[open] .pd-day__chev { transform: rotate(180deg); }
.pd-day__body { padding: 0 16px 16px; }
.pd-day__body p { margin: 0; }
.pd-meals { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-meals li { font-size: .78rem; color: #1B8A5A; background: rgba(27,138,90,.08); border-radius: 999px; padding: 4px 10px; }

/* ── INCLUSIONS ───────────────────────────────────────────────── */
.pd-incexc { display: grid; gap: 16px; }
.pd-box { border-radius: 14px; padding: 18px; border: 1px solid var(--pd-line); background: var(--pd-soft); }
.pd-box h3 { margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.pd-box--inc h3 i { color: #1B8A5A; }
.pd-box--exc h3 i { color: #C0392B; }
.pd-box ul { margin: 0; padding-left: 1.1rem; }
.pd-box li { line-height: 1.7; color: var(--pd-text); margin-bottom: 4px; }

/* ── GOOD TO KNOW / FAQ ───────────────────────────────────────── */
.pd-note {
  background: linear-gradient(135deg, rgba(184,134,11,.07), rgba(218,165,32,.1));
  border-left: 3px solid var(--pd-gold); border-radius: 0 10px 10px 0;
  padding: 14px 16px; line-height: 1.7; color: var(--pd-text); margin-bottom: 14px;
}
.pd-gtk { padding-left: 1.1rem; margin: 0; }
.pd-gtk li { line-height: 1.7; color: var(--pd-text); margin-bottom: 6px; }
.pd-faq { border-bottom: 1px solid var(--pd-line); }
.pd-faq summary {
  cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; color: var(--pd-navy);
  position: relative; list-style: none; line-height: 1.5;
}
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.3rem; color: var(--pd-gold); }
.pd-faq[open] summary::after { content: '–'; }
.pd-faq p { padding: 0 0 14px; margin: 0; }

/* ── BOOKING CARD ─────────────────────────────────────────────── */
.pd-card {
  border: 1px solid var(--pd-line); border-radius: 16px; padding: 20px; background: var(--pd-card);
  box-shadow: 0 10px 30px rgba(13,27,42,.08);
}
.pd-card__price small { display: block; font-size: .75rem; color: var(--pd-muted); text-transform: uppercase; letter-spacing: .05em; }
.pd-card__price strong { font-family: var(--font-serif, Georgia, serif); font-size: 2rem; color: var(--pd-navy); }
.pd-card__price span { display: block; font-size: .82rem; color: var(--pd-muted); }
.pd-card__list { list-style: none; padding: 14px 0; margin: 14px 0; border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); display: grid; gap: 8px; }
.pd-card__list li { font-size: .88rem; color: var(--pd-text); display: flex; gap: 8px; }
.pd-card__list i { color: var(--pd-gold); width: 16px; margin-top: 3px; }
.pd-card__small { text-align: center; font-size: .75rem; color: var(--pd-muted); margin: 10px 0 0; }

.pd-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 46px; padding: 10px 16px; margin-top: 10px;
  border-radius: 10px; font-weight: 600; font-size: .92rem; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pd-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.pd-btn--wa { background: #25D366; color: #fff !important; }
.pd-btn--gold { background: var(--pd-gold); color: #fff !important; }
.pd-btn--ghost { background: transparent; color: var(--pd-navy) !important; border-color: var(--pd-line); }

/* ── RELATED ──────────────────────────────────────────────────── */
.pd-related { background: var(--pd-soft); padding: 40px 0 48px; border-top: 1px solid var(--pd-line); scroll-margin-top: calc(var(--pd-nav-h) + 60px); }
.pd-related h2 { font-family: var(--font-serif, Georgia, serif); font-size: 1.7rem; color: var(--pd-navy); margin: 0 0 20px; }
.pd-rel-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pd-rel {
  display: flex; flex-direction: column; background: var(--pd-card); border: 1px solid var(--pd-line);
  border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pd-rel:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.pd-rel img { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--pd-navy); }
.pd-rel__body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.pd-rel__name { font-weight: 700; color: var(--pd-navy); font-size: 1.02rem; }
.pd-rel__meta { font-size: .8rem; color: var(--pd-muted); }
.pd-rel__meta i { color: var(--pd-gold); width: 14px; }
.pd-rel__price { margin-top: 6px; font-weight: 700; color: var(--pd-navy); }
.pd-rel__price small { font-weight: 400; color: var(--pd-muted); }

.pd-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.pd-pn a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--pd-card);
  border: 1px solid var(--pd-line); border-radius: 12px; text-decoration: none; color: var(--pd-navy);
  font-weight: 600; font-size: .88rem; min-height: 56px;
}
.pd-pn a[rel="next"] { justify-content: flex-end; text-align: right; }
.pd-pn small { display: block; font-size: .7rem; font-weight: 500; color: var(--pd-muted); text-transform: uppercase; }
.pd-pn i { color: var(--pd-gold); }
.pd-pn__all { grid-column: 1 / -1; grid-row: 2; justify-content: center; background: var(--pd-navy) !important; color: #fff !important; }

/* ── MOBILE BOOKING BAR (replaces the generic sticky bar) ───── */
.pd-mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--pd-navy); color: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.pd-mbar small, .pd-mbar em { font-size: .72rem; color: rgba(255,255,255,.7); font-style: normal; }
.pd-mbar strong { font-family: var(--font-serif, Georgia, serif); font-size: 1.35rem; color: #F4D03F; }
.pd-mbar .pd-btn { width: auto; margin: 0; min-height: 42px; padding: 8px 18px; }

/* ── TABLET / DESKTOP ─────────────────────────────────────────── */
@media (min-width: 600px) {
  .pd-facts__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-incexc { grid-template-columns: 1fr 1fr; }
  .pd-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-pn { grid-template-columns: 1fr auto 1fr; }
  .pd-pn__all { grid-column: auto; grid-row: auto; padding-inline: 20px !important; }
}
@media (min-width: 769px) {
  .pd-hero { min-height: 520px; padding: 170px 24px 56px; }
  .pd-wrap { padding: 0 24px; }
}
@media (min-width: 992px) {
  .pd-facts__inner { grid-template-columns: repeat(5, minmax(0, auto)); justify-content: space-between; }
  .pd-fact--price { grid-column: auto; }
  .pd-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 40px; }
  .pd-side { position: relative; }
  .pd-card { position: sticky; top: calc(var(--pd-nav-h) + 70px); }
  .pd-rel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-mbar { display: none; }
}
@media (max-width: 991.98px) {
  /* booking card shows after the content on small screens */
  .pd-side { order: 2; }
  .pd-page .sticky-cta { display: none !important; }
  .pd-page #footer-container { padding-bottom: 68px; }
  /* keep floating WhatsApp/call buttons above the booking bar */
  .pd-page .float-btns-wrap { bottom: 84px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-day__chev, .pd-rel, .pd-btn { transition: none; }
}
@media print {
  .pd-tabs, .pd-mbar, .pd-side, .pd-related { display: none !important; }
  .pd-day { break-inside: avoid; }
}

/* ── DARK MODE (html[data-theme="dark"], set by the theme script) ── */
html[data-theme="dark"] .pd-page {
  --pd-text: #C9D2DE;
  --pd-muted: #A9B4C4;
  --pd-line: rgba(201,168,76,.16);
  --pd-soft: #0E1828;
  --pd-card: #111C2E;
  background: #0A1220;
}
html[data-theme="dark"] .pd-fact,
html[data-theme="dark"] .pd-fact--price strong,
html[data-theme="dark"] .pd-sec h2,
html[data-theme="dark"] .pd-sec h3,
html[data-theme="dark"] .pd-day__title,
html[data-theme="dark"] .pd-faq summary,
html[data-theme="dark"] .pd-card__price strong,
html[data-theme="dark"] .pd-related h2,
html[data-theme="dark"] .pd-rel__name,
html[data-theme="dark"] .pd-rel__price,
html[data-theme="dark"] .pd-pn a,
html[data-theme="dark"] .pd-btn--ghost { color: #E9EDF3 !important; }
html[data-theme="dark"] .pd-day__num { background: #1A2840; }
html[data-theme="dark"] .pd-day[open] .pd-day__num { background: var(--pd-gold); }
html[data-theme="dark"] .pd-includes-row .pkg-inc { color: #E9EDF3 !important; }
html[data-theme="dark"] .pd-meals li { color: #5FD39A; background: rgba(95,211,154,.1); }
html[data-theme="dark"] .pd-card { box-shadow: 0 10px 30px rgba(0,0,0,.4); }
html[data-theme="dark"] .pd-tabs a { color: #C9D2DE; }
html[data-theme="dark"] .pd-tabs a:hover { color: #F4D03F; }
html[data-theme="dark"] .pd-pn__all { background: #B8860B !important; }
html[data-theme="dark"] .pd-mbar { background: #060D1B; }
html[data-theme="dark"] .pd-page .pd-sec, html[data-theme="dark"] .pd-page .pd-sec__head, html[data-theme="dark"] .pd-page .pd-main { background: transparent !important; }
