/* ==========================================================================
   1. Design Tokens & Core Setup
   ========================================================================== */
:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: rgba(245, 158, 11, 0.15);
  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 1rem;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark-900);
  color: #fff;
  font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   2. Third-Party Plugin Overrides (intl-tel-input)
   ========================================================================== */
.trt input {
  color: #333;
}

.iti__selected-flag {
  color: #333;
  background-color: #ffc107 !important;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
}

.iti__country-list {
  border-radius: var(--radius-md) !important;
  background-color: var(--dark-800) !important;
  color: #ffc107 !important;
  border: 1px solid var(--dark-700) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.iti__country {
  color: #fff !important;
  padding: 10px 12px !important;
  transition: var(--transition);
}

.iti__country:hover {
  background-color: var(--dark-700) !important;
}

.iti__divider {
  border-bottom-color: var(--dark-700) !important;
}

input[readonly] {
  background-color: var(--dark-800) !important;
  color: var(--gray-400) !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

/* ==========================================================================
   3. Main Page & Columns Layout
   ========================================================================== */
/* Tour Booking Container */
    .tour-booking-container {
  display: flex;
  gap: 2rem;
  padding: 5px;
  margin-bottom: 2rem;
}

.tour-details {
  flex: 1;
  min-width: 0; /* Prevents flex items from breaking layout on long text */
}
    
    /* Right Column - Booking Form */
    .booking-form-container {
      flex: 0 0 350px;
      padding: 15px;
    
      border-radius: 1rem;
  height: max-content;
  position: sticky;
  top: 2rem; /* Sticks to top when scrolling content on desktop */
}

/* ==========================================================================
   4. Swiper Media Gallery & Overlays
   ========================================================================== */
.swiper {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.swiper-slide img, 
.swiper-slide iframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-slide-video {
  background-color: #000;
}

.swiper-slide-video .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transition: var(--transition);
}

.swiper-slide-video .play-button:hover {
  background-color: var(--primary-dark);
  transform: translate(-50%, -50%) scale(1.1);
}

.swiper-slide-video .play-button i {
  color: var(--dark-900);
  font-size: 24px;
  margin-left: 4px; /* Optical centering alignment for standard triangle icons */
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.4;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  opacity: 1;
  width: 18px !important; /* Elegant pill effect for modern pagination indicators */
  border-radius: 4px !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--primary);
  color: var(--dark-900);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* Thumbnail Strip below main gallery */
.thumbnail-gallery {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumbnail {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.6;
}

.thumbnail:hover, 
.thumbnail.active {
  opacity: 1;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Absolute Media Overlays */
.price-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 1.15rem;
  font-weight: 700;
  z-index: 10;
}

.tour-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0) 100%);
  z-index: 10;
}

.tour-title-overlay h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.tour-meta {
  display: flex;
  gap: 1.25rem;
}

.tour-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--gray-300);
}

.tour-meta-item i {
  color: var(--primary);
}

/* Ratings Component */
.rating-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.rating-stars {
  color: #ffc107;
  font-size: 1rem;
  letter-spacing: 2px;
}

.rating-count {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* ==========================================================================
   5. Redesigned Fluid Timeline Component
   ========================================================================== */
.timeline-container {
  margin: 2.5rem 0;
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* The vertical axis track line */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 24px; /* Starts perfectly below node item marker */
  bottom: -2rem;
  width: 2px;
  background-color: var(--primary);
  opacity: 0.2;
}

.timeline-item:last-child::before {
  display: none;
}

/* Custom indicator node dot */
.timeline-item::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
  z-index: 2;
}

/* Responsive, non-overlapping design structure */
.timeline-header-block {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.timeline-time {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.timeline-content {
  margin-left: 0;
}

.timeline-description {
  color: var(--gray-400);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ==========================================================================
   6. Forms & Interactive Elements
   ========================================================================== */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--dark-700);
  border: 1px solid var(--gray-600);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Numeric stepper counter layout */
.number-container {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.number-box {
  background-color: var(--dark-700);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.number-box label {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
}

.button-container {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--dark-800);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-600);
}

.button-container input {
  width: 40px;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.button-container input::-webkit-outer-spin-button,
.button-container input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bb {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--dark-900);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
}

.bb:hover {
  background-color: var(--primary-dark);
}

/* Wizard Steps Progress Indicator */
.progress-container {
  margin-bottom: 1.75rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--dark-700);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Call To Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--dark-900);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--dark-700);
  color: #fff;
}

.btn-secondary:hover {
  background-color: var(--gray-600);
}

/* Checkout Summary Section */
.summary-section {
  background-color: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--dark-700);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dark-700);
  font-size: 0.95rem;
}

.summary-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.summary-label {
  color: var(--gray-400);
}

.summary-value {
  color: #fff;
  font-weight: 600;
}

/* System Notifications & Animations */
.loading-spinner, .spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--dark-800);
  border: 1px solid var(--dark-700);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }

@keyframes slideIn {
  from { transform: translateY(1rem) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ==========================================================================
   7. Responsive Breakdown Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .tour-booking-container {
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .booking-form-container {
    flex: 1 1 auto;
    width: 100%;
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .swiper {
    height: 300px;
  }

  .tour-title-overlay h1 {
    font-size: 1.4rem;
  }

  /* Flips timeline badge cleanly over onto its own line on tiny width profiles */
  .timeline-header-block {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 6px;
  }

  .timeline-time {
    align-self: flex-start; /* Keeps it naturally left-aligned, change to flex-end if you prefer it right-aligned */
  }
}

/* Global Hidden Helper */
.hidden {
  display: none !important;
}
