/* ============================================================
   TOUR / PACKAGE DETAIL PAGE — shared modern booking-style design
   Used by every Tours page (2h-jeep-tour.html, SunsetTour.html, ...)
   and every Package page (1Night2hTour.html, 2Nights6hTour.html, ...)
   Keeps compatibility with js/tour-prices.js output:
   .price-grid / .price-card (detail table) and the [data-price-mode="summary"]
   markup (icon + h3 + strong) injected into .tp-booking-price.
   ============================================================ */

:root {
  --tp-gold: #c6a45a;
  --tp-gold-dark: #9c7a2f;
  --tp-ink: #17130d;
  --tp-muted: #746b5c;
  --tp-line: rgba(23, 19, 13, 0.09);
  --tp-bg: #faf8f4;
  --tp-card: #ffffff;
  --tp-radius-lg: 22px;
  --tp-radius: 16px;
  --tp-radius-sm: 10px;
  --tp-shadow: 0 16px 40px rgba(23, 19, 13, 0.07);
  --tp-shadow-lg: 0 30px 70px rgba(23, 19, 13, 0.12);
}

/* Each page's own <style> sets `body { overflow-x: hidden }` to avoid a
   horizontal scrollbar. That alone forces the browser to compute
   overflow-y as `auto` too (spec: non-"visible" x paired with "visible" y
   converts y to auto), turning body into its own scroll container and
   breaking `position: sticky` for descendants like .tp-booking-card.
   Moving the clip to the root element avoids this (the root's overflow
   controls the viewport directly instead of creating a nested scroll box). */
html {
  overflow-x: hidden;
}

body {
  overflow-x: visible !important;
}

.tour-section {
  background: var(--tp-bg);
  padding: 56px 20px 100px;
  color: var(--tp-ink);
  font-family: "Poppins", sans-serif;
}

.tp-layout {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: flex-start;
}

.tp-main { min-width: 0; }

/* ===== GALLERY ===== */
.tp-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
  height: 420px;
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  box-shadow: var(--tp-shadow-lg);
  margin-bottom: 26px;
}

.tp-gallery-main {
  height: 100%;
  overflow: hidden;
}

.tp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-gallery-thumbs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 100%;
}

.tp-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-gallery.tp-gallery-single {
  grid-template-columns: 1fr;
}

/* ===== QUICK FACTS ===== */
.tp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tp-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tp-card);
  border: 1px solid var(--tp-line);
  color: var(--tp-ink);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(23, 19, 13, 0.05);
}

.tp-facts i { color: var(--tp-gold-dark); font-size: 13px; }

/* ===== CONTENT BLOCKS ===== */
.tp-block {
  background: var(--tp-card);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-lg);
  padding: 32px 34px;
  margin-bottom: 22px;
  box-shadow: var(--tp-shadow);
}

.tp-block h2 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

.tp-block h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--tp-gold), transparent);
}

.tp-block p {
  color: var(--tp-muted);
  font-size: 15px;
  line-height: 1.75;
}

.tp-block p + p { margin-top: 12px; }

/* ===== CHECKLIST (What's Included) ===== */
.tp-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.tp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--tp-ink);
}

.tp-checklist i {
  color: var(--tp-gold-dark);
  margin-top: 3px;
  font-size: 13px;
  flex-shrink: 0;
}

/* ===== SITE / FEATURE TAGS ===== */
.tp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tp-tag {
  background: #f2eee3;
  color: var(--tp-ink);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--tp-radius-sm);
}

/* ===== HIGHLIGHTS (package quick-summary cards: tour / stay / food) ===== */
.tp-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.tp-highlight-card {
  background: var(--tp-card);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  padding: 24px 22px;
  box-shadow: var(--tp-shadow);
}

.tp-highlight-card > i {
  font-size: 20px;
  color: var(--tp-gold-dark);
  margin-bottom: 12px;
  display: block;
}

.tp-highlight-card h3 { font-size: 15.5px; margin-bottom: 10px; }

.tp-highlight-card ul { list-style: none; }

.tp-highlight-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--tp-ink);
  margin-bottom: 7px;
}

.tp-highlight-card li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--tp-gold-dark);
  font-size: 11px;
  margin-top: 3px;
}

/* ===== CALLOUT (optional add-ons e.g. BBQ) ===== */
.tp-callout {
  background: var(--tp-ink);
  color: #fff;
  border-radius: var(--tp-radius-lg);
  padding: 28px 32px;
  margin-bottom: 22px;
}

.tp-callout h4 {
  color: #f0d994;
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-callout p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ===== FEATURE BLOCK (alternating image + text, packages) ===== */
.tp-feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  background: var(--tp-card);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-lg);
  padding: 30px;
  margin-bottom: 22px;
  box-shadow: var(--tp-shadow);
}

.tp-feature-block.reverse .tp-feature-media { order: 2; }
.tp-feature-block.reverse .tp-feature-text { order: 1; }

.tp-feature-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--tp-radius);
  display: block;
}

.tp-feature-text h2 { font-size: 20px; margin-bottom: 12px; }
.tp-feature-text ul {
  list-style: none;
  margin-top: 12px;
}
.tp-feature-text li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--tp-ink);
  margin-bottom: 8px;
}
.tp-feature-text li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--tp-gold-dark);
  font-size: 12px;
  margin-top: 3px;
}

/* ===== PRICE TABLE (detail, fed by js/tour-prices.js default mode) ===== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.price-card,
.price-box {
  background: var(--tp-bg);
  border: 1px solid var(--tp-line);
  padding: 20px 16px;
  border-radius: var(--tp-radius);
  text-align: center;
}

.price-card strong,
.price-box strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: var(--tp-gold-dark);
}

.price-card span,
.price-box span {
  font-size: 12.5px;
  color: var(--tp-muted);
}

/* ===== SIDEBAR / BOOKING CARD ===== */
.tp-sidebar { position: relative; }

.tp-booking-card {
  position: sticky;
  top: 150px;
  background: var(--tp-card);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-lg);
  padding: 28px;
  box-shadow: var(--tp-shadow-lg);
}

.tp-booking-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--tp-line);
}

.tp-booking-price i {
  color: var(--tp-gold-dark);
  font-size: 14px;
  margin-bottom: 4px;
}

.tp-booking-price h3 {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--tp-muted);
  margin-bottom: 4px;
}

.tp-booking-price strong {
  font-size: 26px;
  font-weight: 700;
  color: var(--tp-ink);
}

.tp-booking-price p { font-size: 12.5px; color: var(--tp-muted); margin-top: 6px; }

.tp-cta-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--tp-gold-dark), var(--tp-gold));
  color: #17130d;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 20px;
  border-radius: var(--tp-radius-sm);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(198, 164, 90, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(198, 164, 90, 0.45);
}

.tp-trust-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-trust-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--tp-muted);
}

.tp-trust-list i { color: var(--tp-gold-dark); font-size: 13px; width: 14px; }

.tp-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--tp-line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tp-ink);
  text-decoration: none;
}

.tp-contact-link:hover { color: var(--tp-gold-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .tp-layout { grid-template-columns: 1fr; gap: 20px; }

  /* Booking card floats to the top on mobile/tablet — price + CTA visible
     immediately instead of making the visitor scroll past all the content
     first (standard mobile pattern on booking sites). */
  .tp-sidebar { order: -1; }
  .tp-booking-card { position: static; }

  .tp-feature-block,
  .tp-feature-block.reverse { grid-template-columns: 1fr; gap: 18px; }
  .tp-feature-block.reverse .tp-feature-media,
  .tp-feature-block.reverse .tp-feature-text { order: initial; }
  .tp-feature-media img { min-height: 200px; }
}

@media (max-width: 700px) {
  .tour-section { padding: 28px 14px 60px; }
  .tp-gallery { grid-template-columns: 1fr; height: auto; }
  .tp-gallery-main { height: 220px; }
  .tp-gallery-thumbs { grid-template-rows: 1fr; grid-auto-flow: column; height: 130px; }
  .tp-checklist { grid-template-columns: 1fr; }
  .tp-highlights { grid-template-columns: 1fr; }
  .tp-block { padding: 22px 18px; margin-bottom: 16px; }
  .tp-feature-block { padding: 18px; margin-bottom: 16px; }
  .tp-callout { padding: 22px 20px; margin-bottom: 16px; }
  .tp-booking-card { padding: 22px; }
  .tp-facts span { font-size: 12.5px; padding: 8px 13px; }
}

@media (max-width: 480px) {
  .tour-section { padding: 22px 12px 50px; }
  .tp-block { padding: 18px 16px; border-radius: var(--tp-radius); }
  .tp-block h2 { font-size: 18px; margin-bottom: 12px; }
  .tp-feature-text h2 { font-size: 18px; }
  .tp-feature-media img { min-height: 170px; }
  .tp-callout { padding: 18px 16px; }
  .tp-callout h4 { font-size: 14.5px; }
  .tp-highlight-card { padding: 20px 18px; }
  .tp-booking-price strong { font-size: 22px; }
  .tp-cta-btn { font-size: 14px; padding: 14px 16px; }
  .price-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
  .price-card, .price-box { padding: 14px 10px; }
  .tp-tag { font-size: 12.5px; padding: 8px 13px; }
}
