/* ============================================================
   Package Detail Pages — Shared Stylesheet  v2.0
   Used by all 12 package detail pages linked from our_packages.html
   ============================================================ */

/* ---------- Global Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Safety net, not currently load-bearing: nav_bar.css used to set
   overflow:hidden on .row/.container site-wide, which clipped card
   hover shadows on this page (the "packages get cut off" bug). That
   root cause is fixed in nav_bar.css now (see the BUG FIX comment
   there), so this override isn't doing anything today — left in place
   in case a future site-wide rule reintroduces the same clipping. */
.route-info-section .row,
.related-section .row,
.faq-section .row,
.container {
  overflow: visible !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  /* background-image set per page via inline style */
  background-size: auto 100%;         /* FIX: Stops stretching, keeps original size */
  background-position: top left; /* OPTIONAL: Usually best for seamless repeating patterns */
  background-repeat: repeat;
  background-attachment: scroll; /* fixed causes glitch on iOS */
  min-height: 340px;             /* never smaller than this */
  height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;              /* prevent bleed on rounded corners if any */
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 0;
}

.hero-section .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 90%;
  padding: 14px 28px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero-section .hero-inner h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.hero-section .hero-inner p {
  margin-bottom: 0;
  font-size: 1.05rem;
  opacity: 0.92;
}

/* Mobile hero adjustments */
@media (max-width: 575.98px) {
  .hero-section {
    height: 60vh;
    min-height: 280px;
  }
  .hero-section .hero-inner {
    padding: 10px 18px;
    max-width: 96%;
  }
  .hero-section .hero-inner h1 {
    font-size: 1.6rem !important;
  }
  .hero-section .hero-inner p {
    font-size: 0.9rem;
  }
  .hero-inner{
    margin-top: 70px;
  }
}

/* Tablet hero */
@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-section {
    height: 50vh;
    min-height: 300px;
  }
}

/* ============================================================
   BREADCRUMB BAR
   ============================================================ */
.breadcrumb-bar {
  background: #f8f9fa;
  padding: 10px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-bar a {
  color: var(--secondary-color, #FF8C00);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-bar a:hover {
  color: var(--primary-color, #FFC107);
}

/* Prevent breadcrumb overflow on tiny screens */
.breadcrumb {
  flex-wrap: wrap;
  word-break: break-word;
}

/* ============================================================
   ROUTE INFO SECTION
   ============================================================ */
.route-info-section {
  padding: 55px 0 20px;
}

.route-info-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
  padding: 28px;
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.route-info-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
}

.route-info-card h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--dark-color, #212529);
}

/* Divider under card title */
.route-info-card h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color, #FFC107), var(--secondary-color, #FF8C00));
  border-radius: 2px;
  margin-top: 8px;
}

.route-stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.route-stat i {
  color: var(--secondary-color, #FF8C00);
  font-size: 1.15rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.route-stat strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6c757d;
  margin-bottom: 2px;
}

/* On mobile, equal-height cards become natural height (no stretching) */
@media (max-width: 991.98px) {
  .route-info-card {
    height: auto;
  }
  .route-info-section {
    padding: 40px 0 16px;
  }
}

/* ============================================================
   HIGHLIGHT LIST
   ============================================================ */
.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.highlight-list i {
  color: var(--secondary-color, #FF8C00);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* ============================================================
   SECTION TITLE  (FAQ + Related sections)
   ============================================================ */
.section-title {
  position: relative;
  font-weight: 700;
  padding-bottom: 18px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color, #FFC107), var(--secondary-color, #FF8C00));
  border-radius: 2px;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  padding: 50px 0 70px;
  background: linear-gradient(160deg, #f8f9fa 0%, #e9ecef 100%);
}

.accordion-item {
  border: none !important;
  margin-bottom: 10px;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.25s ease;
}

.accordion-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.11);
}

.accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  background: #fff;
  color: var(--dark-color, #212529);
  padding: 16px 20px;
  line-height: 1.4;
}

.accordion-button:not(.collapsed) {
  color: var(--dark-color, #212529);
  background: rgba(255, 193, 7, 0.12);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  outline: none;
}

.accordion-button::after {
  filter: none;
  transition: transform 0.3s ease;
}

.accordion-body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #444;
  padding: 14px 20px 18px;
}

@media (max-width: 575.98px) {
  .accordion-button {
    font-size: 0.88rem;
    padding: 14px 16px;
  }
  .accordion-body {
    font-size: 0.875rem;
    padding: 12px 16px 16px;
  }
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: linear-gradient(120deg, var(--primary-color, #FFC107) 0%, var(--secondary-color, #FF8C00) 100%);
  padding: 48px 20px;
  text-align: center;
}

.cta-strip h3 {
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--dark-color, #212529);
  font-size: 1.45rem;
  line-height: 1.3;
}

/* Wrap buttons on mobile — no overflow */
.cta-strip .btn-wrapper,
.cta-strip > .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-strip .btn {
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  margin: 0;
  min-width: 160px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-strip .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

@media (max-width: 575.98px) {
  .cta-strip {
    padding: 36px 16px;
  }
  .cta-strip h3 {
    font-size: 1.15rem;
  }
  .cta-strip .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================================
   RELATED PACKAGES SECTION
   ============================================================ */
.related-section {
  padding: 50px 0 70px;
  background: #fff;
}

.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  will-change: transform;
}

.related-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
  color: inherit;
  text-decoration: none;
}

.related-card .rc-img {
  height: 170px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.related-card:hover .rc-img {
  transform: scale(1.04);
}

.related-card .rc-body {
  padding: 16px 18px;
}

.related-card .rc-body h5 {
  font-weight: 700;
  margin-bottom: 0;
  color: var(--dark-color, #212529);
  font-size: 0.97rem;
  line-height: 1.35;
}

/* On tablet: 2 cols; on mobile: 1 col — the HTML uses col-md-4 which handles this */
@media (max-width: 575.98px) {
  .related-section {
    padding: 36px 0 50px;
  }
  .related-card .rc-img {
    height: 140px;
  }
}

/* ============================================================
   SHARED BUTTONS
   ============================================================ */
.btn-package {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(45deg, var(--primary-color, #FFC107), var(--secondary-color, #FF8C00));
  color: var(--dark-color, #212529);
  font-weight: 700;
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  width: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-package:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 140, 0, 0.42);
  color: var(--dark-color, #212529);
  text-decoration: none;
}

.btn-view-more {
  display: inline-block;
  background: var(--dark-color, #212529);
  color: #fff;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.btn-view-more:hover {
  background: linear-gradient(45deg, var(--primary-color, #FFC107), var(--secondary-color, #FF8C00));
  color: var(--dark-color, #212529);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 140, 0, 0.3);
  text-decoration: none;
}

/* ============================================================
   TYPOGRAPHY & UTILITY FIXES
   ============================================================ */
/* Prevent any text or images from causing horizontal scroll */
img {
  max-width: 100%;
  height: auto;
}

p, li, td {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Smooth card rendering on all platforms */
.route-info-card,
.related-card,
.accordion-item {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--primary-color, #FFC107);
  outline-offset: 2px;
}

/* ============================================================
   GENERIC CONTENT SECTION (shared wrapper for all new blocks:
   Why Choose Us, Highlights, Itinerary, Places, Vehicles,
   Inclusions, Tips, Best Time, Nearby Destinations)
   ============================================================ */
.content-section {
  padding: 50px 0;
}

.content-section.alt-bg {
  background: #f8f9fa;
}

.content-section .section-title {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.content-section .section-intro {
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 575.98px) {
  .content-section { padding: 36px 0; }
  .content-section .section-title { font-size: 1.35rem; }
}

/* ---------- Why Choose Us — checklist grid ---------- */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 575.98px) {
  .why-choose-grid { grid-template-columns: 1fr; }
}

.why-choose-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.why-choose-item i {
  color: #28a745;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.why-choose-item span {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--dark-color, #212529);
}

/* ---------- Trip Highlights — chip cards ---------- */
.highlight-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 991.98px) {
  .highlight-chip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .highlight-chip-grid { grid-template-columns: 1fr; }
}

.highlight-chip {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.highlight-chip i {
  font-size: 1.6rem;
  color: var(--secondary-color, #FF8C00);
  margin-bottom: 10px;
  display: block;
}

.highlight-chip p {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  color: var(--dark-color, #212529);
  line-height: 1.4;
}

/* ---------- Distance / Info Table ---------- */
.info-table-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
}

.info-table {
  width: 100%;
  margin: 0;
}

.info-table tr:not(:last-child) td {
  border-bottom: 1px solid #eee;
}

.info-table td {
  padding: 16px 22px;
  font-size: 0.94rem;
  vertical-align: top;
}

.info-table td:first-child {
  font-weight: 700;
  color: var(--dark-color, #212529);
  width: 34%;
  background: rgba(255, 193, 7, 0.08);
}

.info-table td:last-child {
  color: #444;
}

/* ---------- Itinerary Timeline ---------- */
.itinerary-timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 34px;
}

.itinerary-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color, #FFC107), var(--secondary-color, #FF8C00));
}

.itinerary-step {
  position: relative;
  padding-bottom: 26px;
}

.itinerary-step:last-child { padding-bottom: 0; }

.itinerary-step::before {
  content: '';
  position: absolute;
  left: -29px; /* centers this 12px dot on the line above, which sits at left:10px/2px wide (center x=11) */
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary-color, #FF8C00);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--secondary-color, #FF8C00);
}

.itinerary-step .it-time {
  font-weight: 700;
  color: var(--secondary-color, #FF8C00);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 3px;
}

.itinerary-step .it-desc {
  font-size: 0.95rem;
  color: #333;
  margin: 0;
}

/* ---------- Places / Vehicle Grid Cards ---------- */
.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 767.98px) {
  .mini-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .mini-card-grid { grid-template-columns: 1fr; }
}

.mini-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  height: 100%;
}

.mini-card h6 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--dark-color, #212529);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-card h6 i {
  color: var(--secondary-color, #FF8C00);
}

.mini-card p {
  font-size: 0.86rem;
  color: #666;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Inclusions / Exclusions ---------- */
.inclusion-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px 28px;
  height: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.inclusion-card h5 {
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.inclusion-card.included h5 { color: #198754; }
.inclusion-card.excluded h5 { color: #dc3545; }

.inclusion-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inclusion-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: #444;
}

.inclusion-card.included li i { color: #198754; margin-top: 3px; }
.inclusion-card.excluded li i { color: #dc3545; margin-top: 3px; }

/* ---------- Travel Tips ---------- */
.tips-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 22px;
}

@media (max-width: 575.98px) {
  .tips-list { grid-template-columns: 1fr; }
}

.tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border-left: 3px solid var(--secondary-color, #FF8C00);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #444;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tips-list i {
  color: var(--secondary-color, #FF8C00);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---------- Nearby Destinations — chips ---------- */
.nearby-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.nearby-chip {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-color, #212529);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nearby-chip i {
  color: var(--secondary-color, #FF8C00);
}

/* ============================================================
   MOBILE REFINEMENTS — content-section blocks
   (Why Choose Us, Highlights, Distance table, Itinerary, Places,
   Vehicles, Inclusions, Tips, Nearby chips)

   Restored: these rules existed in an earlier pass of this file but
   were missing from this copy — the base rules above still worked,
   just with more cramped spacing/wrapping on small phones. Nothing
   here was "broken" exactly, just not yet optimized for mobile.
   ============================================================ */
@media (max-width: 575.98px) {
  /* Why Choose Us */
  .why-choose-item { padding: 12px 14px; }
  .why-choose-item span { font-size: 0.88rem; }

  /* Trip Highlights */
  .highlight-chip { padding: 16px 14px; }

  /* Distance / Info table — stack label above value so long labels
     ("Typical Route") never squeeze a long value into a narrow
     column on small phones. */
  .info-table td,
  .info-table tr { display: block; width: 100% !important; }
  .info-table tr { padding: 4px 0; }
  .info-table tr:not(:last-child) { border-bottom: 1px solid #eee; }
  .info-table tr:not(:last-child) td { border-bottom: none; }
  .info-table td:first-child {
    padding: 14px 16px 2px;
    background: transparent;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--secondary-color, #FF8C00);
  }
  .info-table td:last-child { padding: 0 16px 14px; }

  /* Itinerary — tighter indent so the timeline fits narrow screens */
  .itinerary-timeline { padding-left: 26px; }
  .itinerary-step::before { left: -20px; width: 10px; height: 10px; } /* re-centered on the line, see base rule comment */
  .itinerary-step { padding-bottom: 20px; }

  /* Places / Vehicle mini cards */
  .mini-card { padding: 16px; }

  /* Inclusions / Exclusions */
  .inclusion-card { padding: 20px 20px; }

  /* Nearby destination chips — smaller tap targets on phones */
  .nearby-chip { padding: 9px 16px; font-size: 0.85rem; }
}

/* Small-tablet tightening for the 3-col mini-card grid, so cards
   don't feel cramped between the 767.98 and 991.98 breakpoints */
@media (min-width: 576px) and (max-width: 767.98px) {
  .mini-card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Give the info-table's label column a bit more room on small-to-mid
   tablets, where 34% starts to squeeze longer route descriptions */
@media (min-width: 576px) and (max-width: 767.98px) {
  .info-table td:first-child { width: 40%; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .hero-section { height: auto; min-height: 0; padding: 30px 0; }
  .floating-icons,
  .cta-strip { display: none; }
}
