/* Grand Tours UK - Ultra Modern Stylesheet */
:root {
  --primary: #fd0166;
  --primary-hover: #e0005a;
  --primary-light: #fff0f6;
  --primary-glow: rgba(253, 1, 102, 0.25);
  
  --secondary: #2D373C;
  --secondary-dark: #1e2529;
  --secondary-light: #3f4d54;
  
  --dark: #111827;
  --dark-surface: #1f2937;
  
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-blue: #0284c7;
  --accent-purple: #8b5cf6;
  
  --border-color: #e2e8f0;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: #334155;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
}

/* Ensure headings inherit white color inside dark containers or when text-white is specified */
.text-white,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white,
.text-white > h1, .text-white > h2, .text-white > h3, .text-white > h4, .text-white > h5, .text-white > h6,
.text-white > div > h1, .text-white > div > h2, .text-white > div > h3,
.bg-slate-900 h1, .bg-slate-900 h2, .bg-slate-900 h3, .bg-slate-900 h4, .bg-slate-900 h5, .bg-slate-900 h6,
.bg-slate-950 h1, .bg-slate-950 h2, .bg-slate-950 h3, .bg-slate-950 h4, .bg-slate-950 h5, .bg-slate-950 h6,
.bg-slate-800 h1, .bg-slate-800 h2, .bg-slate-800 h3, .bg-slate-800 h4, .bg-slate-800 h5, .bg-slate-800 h6,
.bg-gray-900 h1, .bg-gray-900 h2, .bg-gray-900 h3, .bg-gray-900 h4, .bg-gray-900 h5, .bg-gray-900 h6,
.bg-brand-secondary h1, .bg-brand-secondary h2, .bg-brand-secondary h3, .bg-brand-secondary h4, .bg-brand-secondary h5, .bg-brand-secondary h6,
[class*="bg-slate-900"] h1, [class*="bg-slate-900"] h2, [class*="bg-slate-900"] h3,
[class*="bg-slate-800"] h1, [class*="bg-slate-800"] h2, [class*="bg-slate-800"] h3,
[class*="bg-slate-950"] h1, [class*="bg-slate-950"] h2, [class*="bg-slate-950"] h3 {
  color: #ffffff;
}

/* Forced utility for direct text-white classes */
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white,
.text-white h1.text-white, .text-white h2.text-white, .text-white h3.text-white {
  color: #ffffff !important;
}

/* Allow explicit dark text colors inside dark sections if nested in white cards */
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6,
.bg-slate-50 h1, .bg-slate-50 h2, .bg-slate-50 h3, .bg-slate-50 h4, .bg-slate-50 h5, .bg-slate-50 h6 {
  color: var(--secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Utility Brand Classes */
.bg-brand-primary { background-color: var(--primary); }
.text-brand-primary { color: var(--primary); }
.border-brand-primary { border-color: var(--primary); }

.bg-brand-secondary { background-color: var(--secondary); }
.text-brand-secondary { color: var(--secondary); }

/* Official Brand Typography (Exact styling matching uploaded artwork) */
.brand-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: #fd0166;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-subtitle-light {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  color: #0f172a;
  letter-spacing: 0.005em;
  white-space: nowrap;
  line-height: 1.15;
}

.brand-subtitle-dark {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  color: #f1f5f9;
  letter-spacing: 0.005em;
  white-space: nowrap;
  line-height: 1.15;
}

.btn-primary-custom {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 1, 102, 0.4);
  color: #ffffff;
}
.btn-primary-custom:active {
  transform: translateY(0);
}

.btn-secondary-custom {
  background-color: #ffffff;
  color: var(--secondary);
  border: 1.5px solid var(--border-color);
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Universal Button Overflow Prevention across all viewports */
.btn-primary-custom.w-full,
.btn-secondary-custom.w-full,
.btn-primary-custom.whitespace-normal,
.btn-secondary-custom.whitespace-normal {
  white-space: normal;
  text-align: center;
  word-break: break-word;
}


.nav-link {
  white-space: nowrap !important;
  flex-shrink: 0;
}
.btn-secondary-custom:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* Glassmorphism & Modern Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.tour-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 1.25rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #f1f5f9;
}
.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(253, 1, 102, 0.15), 0 10px 20px -5px rgba(0,0,0,0.04);
  border-color: rgba(253, 1, 102, 0.25);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: white !important;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
}

/* Concurrency Lock Banner */
.hold-timer-bar {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  color: #ffffff;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253, 1, 102, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(253, 1, 102, 0); }
}
.pulse-badge {
  animation: pulseGlow 2s infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Print Optimization for Vouchers and Manifests */
@media print {
  /* Hide all top-level page chrome, navigation, footer, backdrops, and action buttons */
  header, footer, nav, #topAnnouncementBar, #app, #mainContent, .whatsapp-float, .no-print, button, .modal-close-btn, .hold-timer-bar, #authModalContainer, #cancelModal, #rescheduleModal, #profileEditModal {
    display: none !important;
  }
  
  /* Reset body and remove scrollbars */
  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
  }

  /* Make the modal container relative, transparent, and unconstrained */
  #bookingModalContainer, #manifestModal {
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: auto !important;
    z-index: 99999 !important;
    overflow: visible !important;
  }

  #bookingModalContainer > div, #manifestModal > div {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
  }

  /* Hide backdrop overlays and spacers */
  .fixed.inset-0.transition-opacity,
  .backdrop-blur-sm,
  .bg-slate-900\/80,
  .bg-opacity-80,
  span[class*="sm:inline-block"] {
    display: none !important;
  }

  /* Voucher and Manifest card formatting */
  #bookingModalCard,
  #printableVoucherArea,
  #manifestModal > div > div,
  .printable-voucher,
  .printable-manifest {
    position: relative !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #0f172a !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Prevent awkward page breaks for passenger cards, ledgers, and policies */
  .pax-voucher-card,
  .printable-pax-card,
  .financial-statement-box,
  .policy-notice-box,
  table, tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Force table formatting */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  /* Ensure colors and backgrounds print faithfully */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  @page {
    size: auto;
    margin: 8mm;
  }
}

/* ==========================================================================
   ULTRA-MODERN HERO SECTION: 3D KEN BURNS & DYNAMIC SLIDESHOW
   ========================================================================== */

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 600px;
  overflow: hidden;
  background-color: #020617;
}

@media (min-width: 640px) {
  .hero-slider-wrapper {
    min-height: 660px;
  }
}

@media (min-width: 1024px) {
  .hero-slider-wrapper {
    min-height: 720px;
    height: 88vh;
    max-height: 920px;
  }
}

/* Individual Slide Layers */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.75s;
  pointer-events: none;
  z-index: 1;
}

/* Incoming active slide: dissolves in smoothly on top */
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 3;
  pointer-events: auto;
}

/* Outgoing slide: stays solid underneath while continuing its zoom without snapping or black dips */
.hero-slide.exiting {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
  pointer-events: none;
}

/* Slide Image with Hardware-Accelerated Zoom - Full Coverage Guarantee */
.hero-slide-media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
  transform: translate(-50%, -50%) scale(1.0);
  transform-origin: center center;
  filter: saturate(1.05) contrast(1.03);
}

/* Pure Smooth Zoom In & Zoom Out Transitions */
.hero-slide.zoom-in .hero-slide-media {
  animation: heroZoomIn 5.5s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.hero-slide.zoom-out .hero-slide-media {
  animation: heroZoomOut 5.5s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes heroZoomIn {
  0% {
    transform: translate(-50%, -50%) scale(1.0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes heroZoomOut {
  0% {
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.0);
  }
}

/* Proper, subtle ambient vignette: Keeps image clear, rich, and crisp with zero glare */
.hero-ambient-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: 
    linear-gradient(180deg, 
      rgba(15, 23, 42, 0.38) 0%, 
      rgba(15, 23, 42, 0.16) 24%, 
      rgba(15, 23, 42, 0.08) 58%, 
      rgba(15, 23, 42, 0.55) 100%
    );
}

/* Hero Main Typography - Bold, Impactful & Responsive across all devices */
.hero-main-title {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 6.4vw, 4.6rem);
}

/* Mobile 4-Line Super-Impact Editorial Typography (< 640px) */
@media (max-width: 379px) {
  .hero-title-lead {
    font-size: 40px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
  }
  .hero-title-subline {
    font-size: 26.5px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    margin-top: 8px !important;
  }
}

@media (min-width: 380px) and (max-width: 639px) {
  .hero-title-lead {
    font-size: 46px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
  }
  .hero-title-subline {
    font-size: 30.5px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    margin-top: 9px !important;
  }
}

/* Desktop & Tablet: inherit standard clamp size & 2-line layout */
@media (min-width: 640px) {
  .hero-title-lead,
  .hero-title-subline {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
  }
}

.hero-dynamic-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  line-height: 1.45;
  font-weight: 500;
}

.hero-dynamic-tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.82rem, 2vw, 0.98rem);
  line-height: 1.4;
  font-weight: 400;
}

@media (max-width: 639px) {
  .hero-dynamic-subtitle {
    font-size: 15.5px !important;
    line-height: 1.38 !important;
    font-weight: 600 !important;
    color: #ffffff !important;
  }
  .hero-dynamic-tagline {
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: rgba(241, 245, 249, 0.95) !important;
  }
}

/* Refined Typography Shadows: Soft, natural legibility without dark auras */
.hero-text-shadow {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.20);
}

.hero-glow-title {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.20);
}

.hero-sub-shadow {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.40), 0 2px 12px rgba(0, 0, 0, 0.20);
}

/* Dynamic Slide Text Transition */
.hero-content-stagger {
  animation: heroContentFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroContentFadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Slide Progress Indicators: Responsive Layout (Dots on Mobile, Segments on Tablet/Desktop) */
@media (min-width: 640px) {
  .hero-timeline-container {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

@media (max-width: 639px) {
  .hero-timeline-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    max-width: 170px !important;
    margin: 0 auto !important;
    padding: 6px 0 !important;
  }
  .hero-timeline-bar {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.35) !important;
    overflow: hidden !important;
    position: relative !important;
    flex-shrink: 0 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
  }
  .hero-timeline-bar:hover {
    height: 8px !important;
    background: rgba(255, 255, 255, 0.65) !important;
    transform: scale(1.25) !important;
  }
  .hero-timeline-bar.active {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 0 10px rgba(253, 1, 102, 0.9), 0 0 4px rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.2) !important;
  }
  .hero-timeline-bar.passed {
    background: rgba(255, 255, 255, 0.75) !important;
  }
}

/* Slide Progress Timeline Bars (Default Desktop & Base) */
.hero-timeline-bar {
  position: relative;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-timeline-bar:hover {
  background: rgba(255, 255, 255, 0.45);
  height: 6px;
}

@keyframes heroProgressAnim {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.hero-timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #fb7185);
  border-radius: 9999px;
}

.hero-timeline-bar.active .hero-timeline-progress {
  animation: heroProgressAnim 3800ms linear forwards;
}

.hero-timeline-bar.passed .hero-timeline-progress {
  width: 100%;
  animation: none;
}

/* Interactive Glassmorphism Destination Chips */
.hero-dest-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.65);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.hero-dest-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.hero-dest-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(253, 1, 102, 0.45);
  transform: translateY(-2px) scale(1.04);
}

/* Hide scrollbars for pill chips container */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Frosted Glass Search Bar Enhancement */
.hero-search-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 45px -10px rgba(2, 6, 23, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* 3D Tilt perspective wrapper for desktop */
@media (min-width: 1024px) {
  .hero-tilt-layer {
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
  }
}

