/* ============================================================
   BHUTAN ITINERARIES — shared stylesheet
   /bhutan-itineraries/index.php + 5/7/10/14-day-itinerary.php
   Palette matches the rest of the site: navy #0e2d45, gold
   #ffc21a / var(--gold-text-safe), cream #f5f0e8. Structure
   mirrors trekking-in-bhutan (hub) and the day-accordion
   pattern from the trek detail pages, namespaced "bi-".
   ============================================================ */

/* ── SMOOTH SCROLL FOR ON-PAGE ANCHORS (jump-nav + CTA buttons) ─ */
html { scroll-behavior: smooth; }
#contact { scroll-margin-top: 0; }
.bi-section { scroll-margin-top: 0; }

/* ── HERO ─────────────────────────────────────────────────── */
.bi-hero {
  position: relative;
  height: 78vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
}
.bi-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.bi-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,45,69,0.96) 0%, rgba(14,45,69,0.5) 45%, rgba(14,45,69,0.12) 100%);
}
.bi-hero__content { position: relative; z-index: 2; width: calc(100% - 2 * var(--section-gutter)); max-width: 900px; margin: 0 auto; padding-bottom: 60px; }
.bi-hero__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bi-hero__eyebrow::before { content: ''; width: 30px; height: 1.5px; background: var(--gold); }
.bi-hero__eyebrow span { font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.bi-hero__title { font-family: var(--font-heading); font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; color: #fff; line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
.bi-hero__title em { color: var(--gold); font-style: italic; }
.bi-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.bi-hero__pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,194,26,.12); border: 1px solid rgba(255,194,26,.28); color: var(--gold); font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px; border-radius: 40px; }
.bi-hero__pill svg { width: 13px; height: 13px; stroke: var(--gold); fill: none; stroke-width: 2; }

/* ── BREADCRUMB ───────────────────────────────────────────── */
.bi-breadcrumb { background: #fff; border-bottom: 1px solid rgba(14,45,69,.08); padding: 14px 0; }
.bi-breadcrumb__inner { max-width: 1320px; width: calc(100% - 2 * var(--section-gutter)); margin: 0 auto; font-family: var(--font-body); font-size: .82rem; display: flex; align-items: center; gap: 8px; }
.bi-breadcrumb__inner a { color: rgba(14,45,69,.55); text-decoration: none; }
.bi-breadcrumb__inner a:hover { color: var(--gold-text-safe); }
.bi-breadcrumb__sep { color: rgba(14,45,69,.3); }
.bi-breadcrumb__current { color: var(--navy); font-weight: 600; }

/* ── JUMP NAV ─────────────────────────────────────────────── */
.bi-toc { background: #f5f0e8; border-bottom: 1px solid rgba(14,45,69,.08); padding: 14px 0; }
.bi-toc__inner { max-width: 1320px; width: calc(100% - 2 * var(--section-gutter)); margin: 0 auto; display: flex; gap: 8px; flex-wrap: wrap; overflow-x: auto; }
.bi-toc__inner a { font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--navy); text-decoration: none; padding: 8px 16px; border-radius: 30px; background: #fff; border: 1px solid rgba(14,45,69,.08); white-space: nowrap; transition: background .2s, color .2s; }
.bi-toc__inner a:hover { background: rgba(255,194,26,.16); color: var(--gold-text-safe); }

/* ── PROSE SECTION WRAPPER ────────────────────────────────── */
.bi-section { background: #fff; padding: 64px 0; }
.bi-section--alt { background: #f5f0e8; }
.bi-section__inner { max-width: 1320px; width: calc(100% - 2 * var(--section-gutter)); margin: 0 auto; }
.bi-section__inner--wide { max-width: 1320px; } /* kept as alias for markup compatibility — same width as base now */
.bi-label { font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text-safe); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.bi-label::before { content: ''; width: 26px; height: 2px; background: var(--gold-text-safe); }
.bi-heading { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 18px; }
.bi-heading em { font-style: italic; color: var(--gold-text-safe); }
.bi-lead { font-family: var(--font-body); font-size: 1rem; line-height: 1.85; color: rgba(14,45,69,.75); margin: 0 0 18px; max-width: 700px; }
.bi-lead strong { color: var(--navy); }

/* ── QUICK FACTS STRIP ────────────────────────────────────── */
.bi-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 28px; border: 1px solid rgba(14,45,69,.1); border-radius: 10px; overflow: hidden; }
.bi-fact { padding: 18px 16px; border-right: 1px solid rgba(14,45,69,.08); text-align: center; }
.bi-fact:last-child { border-right: none; }
.bi-fact__label { font-family: var(--font-body); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(14,45,69,.5); margin-bottom: 6px; }
.bi-fact__value { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 800; color: var(--navy); }

/* ── HONEST TAKE CALLOUT ──────────────────────────────────── */
.bi-callout { border-left: 3px solid var(--gold); background: #f5f0e8; border-radius: 8px; padding: 20px 24px; margin: 24px 0; }
.bi-callout__label { font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7a5200; margin-bottom: 8px; }
.bi-callout p { font-family: var(--font-body); font-size: .93rem; line-height: 1.75; color: rgba(14,45,69,.8); margin: 0; }
.bi-callout p + p { margin-top: 10px; }

/* ── ROUTE MAP STRIP (simple visual route summary) ────────── */
.bi-route { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 28px 0; }
.bi-route__stop { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; }
.bi-route__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--navy); border: 2px solid var(--gold); margin-bottom: 8px; }
.bi-route__name { font-family: var(--font-body); font-size: .78rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.bi-route__days { font-family: var(--font-body); font-size: .68rem; color: rgba(14,45,69,.5); }
.bi-route__arrow { color: var(--gold-text-safe); font-size: 1.1rem; margin: 0 4px 22px; }

/* ── DAY-BY-DAY ACCORDION ─────────────────────────────────── */
.bi-days { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.bi-day { background: #fff; border: 1px solid rgba(14,45,69,.1); border-radius: 10px; overflow: hidden; }
.bi-section--alt .bi-day { background: #fff; }
.bi-day__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: none; border: none; cursor: pointer; text-align: left; }
.bi-day__num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-heading); font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: center; }
.bi-day__head { flex: 1; min-width: 0; }
.bi-day__title { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--navy); margin: 0; }
.bi-day__meta { display: block; font-family: var(--font-body); font-size: .78rem; color: rgba(14,45,69,.5); margin-top: 2px; }
.bi-day__chevron { flex-shrink: 0; transition: transform .2s; }
.bi-day__chevron svg { width: 18px; height: 18px; stroke: var(--gold-text-safe); fill: none; stroke-width: 2.4; }
.bi-day[open] .bi-day__chevron { transform: rotate(180deg); }
.bi-day__body { padding: 0 22px 22px 82px; }
.bi-day__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.bi-day__stat { background: #f5f0e8; border-radius: 6px; padding: 10px 12px; }
.bi-day__stat-label { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(14,45,69,.5); margin-bottom: 3px; }
.bi-day__stat-value { display: block; font-family: var(--font-body); font-size: .84rem; font-weight: 700; color: var(--navy); }
.bi-day__desc { font-family: var(--font-body); font-size: .92rem; line-height: 1.75; color: rgba(14,45,69,.78); margin: 0 0 12px; }
.bi-day__note { display: flex; gap: 10px; background: rgba(255,194,26,.1); border-radius: 6px; padding: 12px 14px; font-family: var(--font-body); font-size: .85rem; line-height: 1.6; color: rgba(14,45,69,.8); }
.bi-day__note svg { flex-shrink: 0; margin-top: 2px; stroke: var(--gold-text-safe); }

/* Use <details>/<summary> so no JS is required */
.bi-day summary.bi-day__btn { list-style: none; }
.bi-day summary.bi-day__btn::-webkit-details-marker { display: none; }

/* ── SKIP/CUT TABLE (honest tradeoffs) ────────────────────── */
.bi-tradeoff-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-family: var(--font-body); font-size: .88rem; }
.bi-tradeoff-table th { text-align: left; padding: 10px 14px; background: var(--navy); color: #fff; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.bi-tradeoff-table td { padding: 12px 14px; border-bottom: 1px solid rgba(14,45,69,.08); color: rgba(14,45,69,.78); vertical-align: top; }
.bi-tradeoff-table tr:nth-child(even) td { background: #f5f0e8; }

/* ── COMPARE-LENGTHS CARD GRID (hub + cross-links) ────────── */
.bi-length-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.bi-length-card { background: var(--navy); border-radius: 12px; padding: 26px 22px; text-decoration: none; display: block; transition: transform .2s, box-shadow .2s; border: 1px solid rgba(255,255,255,.08); }
.bi-length-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(14,45,69,.28); }
.bi-length-card__num { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.bi-length-card__unit { font-family: var(--font-body); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 4px 0 12px; }
.bi-length-card__title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.bi-length-card__desc { font-family: var(--font-body); font-size: .82rem; line-height: 1.6; color: rgba(255,255,255,.62); margin: 0 0 14px; }
.bi-length-card__cta { font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* ── LINK-OUT CARDS (to booking pages) ────────────────────── */
.bi-cta-band { background: var(--navy); border-radius: 14px; padding: 32px; margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bi-cta-band__text { font-family: var(--font-body); font-size: .92rem; color: rgba(255,255,255,.72); margin: 0; max-width: 480px; line-height: 1.6; }
.bi-cta-band__btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 28px; background: var(--gold); color: var(--navy); font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--btn-radius, 6px); text-decoration: none; white-space: nowrap; transition: transform .2s; }
.bi-cta-band__btn:hover { transform: translateY(-2px); color: var(--navy); }

.bi-more a { color: var(--gold-text-safe); font-weight: 700; text-decoration: none; }
.bi-more a:hover { text-decoration: underline; }

/* ── LAST UPDATED BADGE ───────────────────────────────────── */
.bi-updated { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: rgba(14,45,69,.6); background: #f5f0e8; padding: 6px 14px; border-radius: 20px; margin-bottom: 18px; }
.bi-section--alt .bi-updated { background: #fff; }
.bi-updated svg { width: 13px; height: 13px; stroke: var(--gold-text-safe); fill: none; stroke-width: 2.2; flex-shrink: 0; }

/* ── FAQ ──────────────────────────────────────────────────── */
.bi-faq { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.bi-faq details { background: #fff; border: 1px solid rgba(14,45,69,.1); border-radius: 8px; padding: 4px 0; }
.bi-faq summary { padding: 14px 18px; font-family: var(--font-heading); font-weight: 700; font-size: .92rem; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bi-faq__q { flex: 1; margin: 0; font: inherit; }
.bi-faq summary::-webkit-details-marker { display: none; }
.bi-faq summary::after { content: '+'; color: var(--gold-text-safe); font-size: 1.2rem; }
.bi-faq details[open] summary::after { content: '−'; }
.bi-faq__body { padding: 0 18px 16px; font-family: var(--font-body); font-size: .87rem; line-height: 1.7; color: rgba(14,45,69,.75); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .bi-facts { grid-template-columns: repeat(2, 1fr); }
  .bi-fact:nth-child(2) { border-right: none; }
  .bi-fact { border-bottom: 1px solid rgba(14,45,69,.08); }
  .bi-length-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bi-day__body { padding-left: 22px; }
  .bi-hero { height: 66vh; }
  .bi-length-grid { grid-template-columns: 1fr; }
  .bi-facts { grid-template-columns: 1fr; }
  .bi-fact { border-right: none; }
  .bi-tradeoff-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .bi-tradeoff-table td { white-space: normal; min-width: 160px; }
  .bi-route { gap: 4px; justify-content: center; }
  .bi-route__arrow { margin: 0 2px 14px; }
}

/* ── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bi-day__chevron,
  .bi-length-card,
  .bi-cta-band__btn { transition: none; }
}
