/* ========================================================
   Journey Choice - Mobile First Tour Detail CSS
   Replaces old desktop-first approach.
======================================================== */

/* --- Resets & Base Variables --- */
:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --secondary: #38bdf8;
  --dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border: rgba(15,23,42,0.1);
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, margin, padding { margin: 0; padding: 0; }
body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
  background: #f1f5f9; 
  color: var(--dark); 
  padding-bottom: 90px; 
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Utilities */
.wrap { width: 100%; padding-inline: 16px; margin-inline: auto; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.mt10 { margin-top: 10px; }
.mt12 { margin-top: 12px; }
.mt-1 { margin-top: 4px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.pb-80 { padding-bottom: 80px; }
.fw-bold { font-weight: 700; }
.fs-sm { font-size: 13px; }
.fs-lg { font-size: 18px; }
.text-primary { color: var(--primary); }
.text-success { color: var(--primary); }
.text-danger { color: #ef4444; }
.text-dark { color: var(--dark); }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.bg-light { background-color: var(--bg-light); }
.rounded { border-radius: var(--radius); }
.block { display: block; }

/* Buttons */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  padding: 12px 20px; 
  font-weight: 600; 
  border-radius: 8px; 
  transition: all 0.2s; 
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.outline { border: 2px solid var(--primary); color: var(--primary); }
.btn.fullWidth { width: 100%; }
.btn.disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.waBtnPulse { animation: pulse 2s infinite; }
@keyframes pulse { 
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } 
}

/* --- Global Header (Mobile First) --- */
.siteHeader { 
  background: #fff; 
  border-bottom: 1px solid var(--border); 
  position: sticky; 
  top: 0; 
  z-index: 1000; 
  width: 100%; 
}
.headerFlex { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap; 
}
.headerBrand { display: flex; align-items: center; gap: 8px; }
.logoMark { 
  width: 36px; 
  height: 36px; 
  border-radius: 8px; 
  background: linear-gradient(135deg, #7c3aed, #38bdf8); 
  color: #fff; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 900; 
  font-size: 16px; 
}
.siteLogoText { font-size: 18px; font-weight: 800; color: var(--dark); }
.navToggleBtn { 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  gap: 5px; 
  width: 32px; 
  height: 32px; 
  cursor: pointer; 
}
.hamLine { 
  display: block; 
  width: 100%; 
  height: 3px; 
  background: var(--dark); 
  border-radius: 2px; 
  transition: 0.2s; 
}
.mainNav { 
  display: none; 
  width: 100%; 
  flex-direction: column; 
  padding-top: 16px; 
  padding-bottom: 8px;
  gap: 12px; 
}
.navLink { 
  font-weight: 600; 
  color: var(--dark);
  font-size: 16px;
  padding: 10px 0; 
  border-bottom: 1px solid var(--border); 
}
.navLink:last-child { border-bottom: none; }
.waLinkMobile { color: var(--primary); }

.navToggleChk:checked ~ .mainNav { display: flex; }
.navToggleChk:checked ~ .navToggleBtn .hamLine:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navToggleChk:checked ~ .navToggleBtn .hamLine:nth-child(2) { opacity: 0; }
.navToggleChk:checked ~ .navToggleBtn .hamLine:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Hero Section --- */
.heroBleed { width: 100%; position: relative; }
.heroCover { 
  width: 100%; 
  height: 60vw; 
  min-height: 250px; 
  max-height: 400px; 
  background-size: cover; 
  background-position: center; 
  position: relative; 
}
.heroCoverOverlay { 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent); 
}
.heroNav { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  width: 40px; 
  height: 40px; 
  background: rgba(255,255,255,0.8); 
  border-radius: 50%; 
  font-size: 24px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 10; 
}
.heroPrev { left: 10px; }
.heroNext { right: 10px; }
.heroShareBtn { 
  position: absolute; 
  top: 16px; 
  right: 16px; 
  width: 40px; 
  height: 40px; 
  background: rgba(255,255,255,0.9); 
  border-radius: 50%; 
  font-size: 20px; 
  z-index: 10; 
  box-shadow: var(--shadow-sm); 
  display: flex;
  align-items: center;
  justify-content: center;
}
.heroThumbs { display: none; } /* Hidden on mobile by default to save space */

/* --- Content Blocks (Mobile Base) --- */
.block { background: #fff; padding: 16px; border-bottom: 1px solid var(--border); }
.introSection { background: #fff; padding-block: 20px; border-bottom: 1px solid var(--border); }
.tourTitle { font-size: 24px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.tourRoute { font-size: 15px; color: var(--text-muted); font-weight: 600; }
.sectionTitle { font-size: 18px; font-weight: 800; margin-bottom: 12px; }

/* Badges & Pills */
.badgeRow { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; background: #e2e8f0; }
.pill.open { background: #dcfce7; color: #166534; }
.pill.fast { background: #fef9c3; color: #854d0e; }
.pill.sold { background: #fee2e2; color: #991b1b; }
.pill.ghost { background: transparent; border: 1px solid var(--border); }

/* Forms & Dates */
.fullWidthSelect { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-size: 16px; }
.datePills { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 8px; margin-top: 12px; scrollbar-width: none; }
.datePills::-webkit-scrollbar { display: none; }
.dPill { flex: 0 0 auto; padding: 8px 16px; border: 1px solid #cbd5e1; border-radius: 100px; font-size: 14px; font-weight: 600; background: #fff; white-space: nowrap; }
.dPill.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.dPill.sold { opacity: 0.5; text-decoration: line-through; pointer-events: none; }
.dPill-small { padding: 6px 12px; font-size: 13px; }
.cityCard { background: var(--bg-light); padding: 12px; border-radius: 8px; margin-bottom: 12px; }

/* Meta Grid */
.metaGrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.metaItem { background: var(--bg-light); padding: 12px; border-radius: 8px; }
.metaItem .k { font-size: 13px; color: var(--text-muted); text-transform: uppercase; font-weight: 700;}
.metaItem .v { font-size: 15px; font-weight: 700; margin-top: 4px; }
.metaItem .v.price { font-size: 20px; color: var(--primary); }
.metaWhite { background: #fff; border: 1px solid var(--border); }
.seatBadge { background: #dbeafe; color: #1e40af; padding: 2px 8px; border-radius: 100px; font-size: 12px; font-weight: 700; }

/* Lists */
.list { padding-left: 20px; margin: 0; }
.list li { position: relative; margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
.bulletList { list-style-type: disc; }
.checkList { list-style: none; padding-left: 24px; }
.checkList li::before { content: "✓"; position: absolute; left: -24px; color: var(--primary); font-weight: bold; }
.crossList { list-style: none; padding-left: 24px; }
.crossList li::before { content: "✕"; position: absolute; left: -24px; color: #ef4444; font-weight: bold; }

/* Accordion */
.accItem { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.accItem summary { padding: 16px; font-weight: 700; background: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.accItem summary::-webkit-details-marker { display: none; }
.accLeft { display: flex; gap: 12px; align-items: center; }
.accDay { font-size: 12px; background: var(--dark); color: #fff; padding: 2px 8px; border-radius: 4px; }
.accTitle { font-size: 15px; }
.accBody { padding: 16px; border-top: 1px solid var(--border); background: var(--bg-light); font-size: 14px; line-height: 1.6; }
.accIcon { font-size: 20px; color: var(--text-muted); transition: 0.2s; }
.accItem[open] .accIcon { transform: rotate(45deg); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gItem { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.gItem img { width: 100%; height: 100%; object-fit: cover; }
.gCap { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; padding: 4px; text-align: center; }

/* --- Seat Modal (Mobile Bottom Sheet) --- */
.seatModalOverlay { 
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); 
  z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s; 
}
.seatModalOverlay.active { opacity: 1; pointer-events: auto; }
.seatModal { 
  position: absolute; bottom: 0; left: 0; right: 0; background: #fff; 
  border-radius: 20px 20px 0 0; padding: 20px; 
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
  max-height: 90vh; overflow-y: auto; 
}
.seatModalOverlay.active .seatModal { transform: translateY(0); }
.seatModalTop { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
.seatClose { font-size: 24px; color: var(--text-muted); }
.seatLegend { display: flex; gap: 12px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.sl { display: flex; align-items: center; gap: 4px; }
.dot { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border); }
.dot.av { background: #fff; }
.dot.heldDot { background: #fef08a; border-color: #eab308; }
.dot.book { background: #cbd5e1; border-color: #94a3b8; }
.generalEnquiryChk { width: 16px; height: 16px; }

/* Sticky CTA */
.stickyCta { 
  position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; 
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08); z-index: 100; border-top: 1px solid var(--border); 
  padding-bottom: env(safe-area-inset-bottom); padding-top: 8px;
}

/* ========================================================
   Desktop Enhancements (Min-Width: 768px)
======================================================== */
@media (min-width: 768px) {
  .wrap { max-width: 1000px; padding-inline: 0; }
  
  /* Header horizontally unpacked */
  .headerFlex { flex-wrap: nowrap; }
  .navToggleBtn { display: none; }
  .mainNav { 
    display: flex !important; width: auto; flex-direction: row; 
    padding: 0; gap: 24px; align-items: center; 
  }
  .navLink { border-bottom: none; padding: 0; }
  .navLink:hover { color: var(--primary); }
  .waLinkMobile { display: none; }

  /* Hero is boxed on desktop */
  .heroBleed { max-width: 1000px; margin: 24px auto 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
  .heroThumbs { display: flex; position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); gap: 8px; z-index: 10; }
  .heroThumbs img { width: 60px; height: 40px; border-radius: 4px; object-fit: cover; border: 2px solid transparent; cursor: pointer; transition: 0.2s; }
  .heroThumbs img.active { border-color: #fff; transform: scale(1.1); }

  /* Blocks become floating cards */
  .block, .introSection { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
  .introSection { margin-top: 24px; border-bottom: 1px solid var(--border); }
  
  /* Meta Grid scales up */
  .metaGrid { grid-template-columns: repeat(2, 1fr); }
  .metaItem.fullSpan { grid-column: span 2; }
  
  /* Gallery */
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }

  /* Seat Modal becomes a centered popup */
  .seatModal { 
    bottom: auto; top: 50%; left: 50%; 
    transform: translate(-50%, -50%) scale(0.95); 
    border-radius: 16px; width: 600px; max-width: 90vw; max-height: 85vh; 
  }
  .seatModalOverlay.active .seatModal { transform: translate(-50%, -50%) scale(1); }
  
  /* Sticky CTA Max Width */
  .stickyCta .stickyInner { max-width: 1000px; margin: 0 auto; }
}