
/* ============================================================
   TOUR PACKAGE PAGE — page-specific styles
   Load AFTER css/styles.css. This file assumes your global
   stylesheet already defines the tokens below (it does — the
   same ones are used in about.css, e.g. var(--color-primary)
   on the story-quote icon). Fallback values are provided after
   the comma so this still looks reasonable even if a name
   doesn't match; just edit the fallback or the var name to
   line up with your actual styles.css if needed.

   --color-primary        deep accent (buttons, icons, table head)
   --color-primary-dark   hover/darker accent
   --color-secondary      gold/warm accent
   --color-text           body text colour
   --color-text-light     muted text colour
   --color-bg-alt         cream/alt section background
   --font-heading         Playfair Display (display serif)
   --font-accent          Cormorant Garamond (italic/quote serif)
   --font-body            DM Sans (body sans)
   --container-width      max content width used sitewide
   ============================================================ */

.tour-page {
  --tp-primary: var(--color-primary, #0d6e5c);
  --tp-primary-dark: var(--color-primary-dark, #094a3e);
  --tp-gold: var(--color-secondary, #c9a24b);
  --tp-cream: var(--color-bg-alt, #f8f5ef);
  --tp-text: var(--color-text, #2b2620);
  --tp-text-light: var(--color-text-light, #6b6459);
  --tp-border: rgba(43, 38, 32, 0.1);
  --tp-heading: var(--font-heading, 'Playfair Display', serif);
  --tp-accent-font: var(--font-accent, 'Cormorant Garamond', serif);
  --tp-body: var(--font-body, 'DM Sans', sans-serif);
  color: var(--tp-text);
}

.tour-page .container {
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: 0 24px;
}

.tour-page img { display: block; max-width: 100%; }

/* ---------- shared section header (matches about.html pattern) ---------- */
.tour-page .section-tag {
  display: inline-block;
  font-family: var(--tp-accent-font);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--tp-gold);
  margin-bottom: 6px;
}
.tour-page .section-header { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.tour-page .section-title {
  font-family: var(--tp-heading);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 12px;
}
.tour-page .section-desc { color: var(--tp-text-light); font-size: 1.02rem; line-height: 1.6; }

/* ============================================================
   1. HERO IMAGE CAROUSEL
   ============================================================ */
.tour-hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  overflow: hidden;
  color: #fff;
}
.tour-hero .carousel-track { position: absolute; inset: 0; }
.tour-hero .carousel-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.tour-hero .carousel-slide.is-active { opacity: 1; }
.tour-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,15,.35) 0%, rgba(10,20,15,.35) 45%, rgba(8,14,11,.85) 100%);
  pointer-events: none;
}
.tour-hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 24px 40px; max-width: var(--container-width, 1200px); margin: 0 auto;
}
.tour-hero-tag {
  font-family: var(--tp-accent-font); font-style: italic; font-size: 1.2rem;
  color: var(--tp-gold); margin-bottom: 6px;
}
.tour-hero-title {
  font-family: var(--tp-heading); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 14px;
}
.tour-hero-meta { display: flex; flex-wrap: wrap; gap: 22px; font-family: var(--tp-body); font-size: .95rem; }
.tour-hero-meta span { display: flex; align-items: center; gap: 7px; opacity: .95; }
.tour-hero-meta svg { flex-shrink: 0; }
.tour-hero-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; opacity: .8; margin-top: 18px; }
.tour-hero-breadcrumb a { color: #fff; text-decoration: none; }

.carousel-arrows { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; pointer-events: none; }
.carousel-arrow {
  pointer-events: all; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.25); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .25s ease;
}
.carousel-arrow:hover { background: rgba(0,0,0,.5); }
.carousel-dots { position: absolute; z-index: 3; bottom: 18px; right: 24px; display: flex; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.carousel-dots button.is-active { background: var(--tp-gold); width: 22px; border-radius: 5px; transition: width .25s ease; }

/* ============================================================
   2. TRIP SNAPSHOT STRIP
   ============================================================ */
.trip-snapshot { background: var(--tp-primary); }
.trip-snapshot .container {
  display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: center;
  padding-top: 20px; padding-bottom: 20px;
}
.trip-snapshot .snap-item { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--tp-body); font-size: .92rem; }
.trip-snapshot .snap-item strong { display: block; font-family: var(--tp-heading); font-size: 1rem; font-weight: 700; }
.trip-snapshot .snap-item span.label { opacity: .75; font-size: .78rem; }
.trip-snapshot svg { flex-shrink: 0; color: var(--tp-gold); }

/* ============================================================
   3. ITINERARY-AT-A-GLANCE TABLE
   ============================================================ */
.itinerary-summary { padding: 80px 0 60px; }
.itinerary-table-wrap { overflow-x: auto; border: 1px solid var(--tp-border); border-radius: 10px; }
table.itinerary-table { width: 100%; border-collapse: collapse; min-width: 560px; font-family: var(--tp-body); }
table.itinerary-table thead th {
  background: var(--tp-primary); color: #fff; text-align: left;
  font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 20px;
}
table.itinerary-table tbody td { padding: 16px 20px; border-top: 1px solid var(--tp-border); vertical-align: top; }
table.itinerary-table tbody tr:nth-child(odd) { background: var(--tp-cream); }
table.itinerary-table .it-day { font-family: var(--tp-heading); font-weight: 700; color: var(--tp-primary); white-space: nowrap; }
table.itinerary-table .it-title { font-weight: 600; }
table.itinerary-table .it-desc { color: var(--tp-text-light); font-size: .92rem; line-height: 1.5; }
table.itinerary-table tbody tr { cursor: pointer; }
table.itinerary-table tbody tr:hover { background: rgba(201,162,75,0.12); }

/* ============================================================
   4. HIGHLIGHT CARDS (attractive picture + heading + line)
   ============================================================ */
.tour-highlights { padding: 60px 0 80px; background: var(--tp-cream); }
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.highlight-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.highlight-card-img { aspect-ratio: 4/3; overflow: hidden; }
.highlight-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.highlight-card:hover .highlight-card-img img { transform: scale(1.06); }
.highlight-card-body { padding: 20px 22px 24px; }
.highlight-card-title {
  font-family: var(--tp-heading); font-weight: 700; font-size: 1.15rem; margin: 0 0 8px; color: var(--tp-primary-dark);
}
.highlight-card-body p { margin: 0; color: var(--tp-text-light); font-size: .95rem; line-height: 1.55; }

/* ============================================================
   5. DAY-BY-DAY DETAILED ITINERARY
   ============================================================ */
.day-by-day { padding: 70px 0 40px; }
.day-block { padding: 46px 0; border-bottom: 1px solid var(--tp-border); }
.day-block:nth-child(even) { background: var(--tp-cream); }
.day-block-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.day-block-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.day-number {
  font-family: var(--tp-heading); font-weight: 700; font-size: 2.1rem; color: var(--tp-gold); line-height: 1;
}
.day-title { font-family: var(--tp-heading); font-weight: 700; font-size: 1.35rem; color: var(--tp-primary-dark); line-height: 1.25; }
.day-desc p { color: var(--tp-text-light); line-height: 1.7; margin: 0 0 12px; font-size: .98rem; }
.day-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.day-meta .meta-chip {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--tp-border); border-radius: 8px;
  padding: 10px 14px; font-size: .85rem; font-family: var(--tp-body);
}
.day-block:nth-child(even) .day-meta .meta-chip { background: #fff; }
.day-meta .meta-chip svg { color: var(--tp-primary); flex-shrink: 0; }
.day-meta .meta-chip strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--tp-text-light); font-weight: 500; }
.day-meta .meta-chip span.val { font-weight: 600; color: var(--tp-text); }

/* small carousel used inside each day block */
.day-carousel { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.day-carousel .carousel-track { position: absolute; inset: 0; }
.day-carousel .carousel-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s ease; }
.day-carousel .carousel-slide.is-active { opacity: 1; }
.day-carousel .carousel-arrow { width: 34px; height: 34px; }
.day-carousel .carousel-dots { bottom: 12px; right: 14px; }

@media (max-width: 860px) {
  .day-block-inner { grid-template-columns: 1fr; }
  .day-carousel { order: -1; }
}

/* ============================================================
   6. ACCOMMODATION & COST (placeholder / expandable)
   ============================================================ */
.tour-cost-section {
  padding: 70px 0 90px;
  background: var(--tp-primary-dark, #094a3e);
  color: #fff;
  text-align: center;
}
.tour-cost-section .section-tag { color: var(--tp-gold); }
.tour-cost-section .section-title { color: #fff; }
.tour-cost-section .section-desc { color: rgba(255,255,255,.75); margin-bottom: 30px; }
.btn-check-cost {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--tp-gold); color: #241d0f; border: none;
  font-family: var(--tp-body); font-weight: 700; font-size: .95rem;
  padding: 15px 32px; border-radius: 40px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-check-cost:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }

/* Modal */
.cost-modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 20, 18, .65);
  display: none; align-items: center; justify-content: center;
  z-index: 999; padding: 24px;
}
.cost-modal-overlay.is-open { display: flex; }
.cost-modal {
  background: #fff; border-radius: 14px; max-width: 760px; width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 36px 36px 32px; position: relative;
  color: var(--tp-text, #2b2620);
}
.cost-modal-close {
  position: absolute; top: 18px; right: 18px; background: var(--tp-cream, #f8f5ef);
  border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cost-modal h3 {
  font-family: var(--tp-heading); font-size: 1.4rem; margin: 0 0 4px; color: var(--tp-primary-dark, #094a3e);
}
.cost-modal .modal-sub { color: var(--tp-text-light, #6b6459); font-size: .9rem; margin-bottom: 22px; }
.cost-modal table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: .9rem; }
.cost-modal table th { background: var(--tp-cream, #f8f5ef); text-align: left; padding: 10px 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.cost-modal table td { padding: 10px 12px; border-top: 1px solid var(--tp-border, #eee); }
.cost-modal .cost-placeholder-note {
  border: 1px dashed var(--tp-border, #ccc); border-radius: 10px; padding: 16px 18px;
  font-size: .87rem; color: var(--tp-text-light, #6b6459); background: var(--tp-cream, #f8f5ef);
}

@media (max-width: 700px) {
  .tour-hero-meta { gap: 14px; }
  table.itinerary-table td, table.itinerary-table th { padding: 12px 14px; }
}