/**
 * Mega Travel Booking - Minimal Clean Design
 * Inspired by shadcn/ui with clean, simple styling
 */

/* ========================================
   CSS VARIABLES - MINIMAL DESIGN
   ======================================== */
:root {
  /* Colors - Light theme */
  --mtb-background: #ffffff;
  --mtb-foreground: #0f172a;
  --mtb-muted: #f1f5f9;
  --mtb-muted-foreground: #64748b;
  --mtb-border: #e2e8f0;
  --mtb-input: #f8fafc;
  --mtb-ring: #3b82f6;
  --mtb-primary: #3b82f6;
  --mtb-primary-foreground: #ffffff;
  --mtb-secondary: #f1f5f9;
  --mtb-secondary-foreground: #0f172a;
  --mtb-destructive: #ef4444;
  --mtb-destructive-foreground: #ffffff;
  --mtb-success: #22c55e;
  --mtb-warning: #f59e0b;

  /* Typography */
  --mtb-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mtb-font-size-xs: 0.75rem;
  --mtb-font-size-sm: 0.875rem;
  --mtb-font-size-base: 0.875rem;
  --mtb-font-size-lg: 1rem;
  --mtb-font-size-xl: 1.125rem;
  --mtb-font-size-2xl: 1.25rem;
  --mtb-font-size-3xl: 1.5rem;

  /* Spacing */
  --mtb-space-1: 0.25rem;
  --mtb-space-2: 0.5rem;
  --mtb-space-3: 0.75rem;
  --mtb-space-4: 1rem;
  --mtb-space-5: 1.25rem;
  --mtb-space-6: 1.5rem;
  --mtb-space-8: 2rem;
  --mtb-space-10: 2.5rem;
  --mtb-space-12: 3rem;

  /* Border radius */
  --mtb-radius-sm: 0.375rem;
  --mtb-radius-md: 0.5rem;
  --mtb-radius-lg: 0.75rem;
  --mtb-radius-xl: 1rem;

  /* Shadows */
  --mtb-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --mtb-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --mtb-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ========================================
   BASE STYLES
   ======================================== */
.mtb-single-trip {
  font-family: var(--mtb-font-family);
  line-height: 1.5;
  color: var(--mtb-foreground);
  background: var(--mtb-background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--mtb-space-4);
}

/* ========================================
   HERO SECTION - MINIMAL
   ======================================== */
.mtb-trip-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--mtb-space-8);
  border-radius: var(--mtb-radius-lg);
  background: var(--mtb-muted);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(29, 78, 216, 0.6) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  color: white;
  padding: var(--mtb-space-8);
}

.hero-title {
  font-size: var(--mtb-font-size-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--mtb-space-4) 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--mtb-space-4);
  margin-bottom: var(--mtb-space-6);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--mtb-space-2);
  background: rgba(255, 255, 255, 0.1);
  padding: var(--mtb-space-2) var(--mtb-space-3);
  border-radius: var(--mtb-radius-md);
  font-size: var(--mtb-font-size-sm);
  font-weight: 500;
}

.hero-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--mtb-space-2);
}

.price-amount {
  font-size: var(--mtb-font-size-2xl);
  font-weight: 700;
}

.price-period {
  font-size: var(--mtb-font-size-sm);
  opacity: 0.9;
}

/* ========================================
   CONTENT GRID
   ======================================== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mtb-space-8);
  align-items: start;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
    gap: var(--mtb-space-12);
  }
}

/* ========================================
   TRIP DESCRIPTION
   ======================================== */
.trip-description-column {
  background: var(--mtb-background);
  border-radius: var(--mtb-radius-lg);
  padding: var(--mtb-space-6);
  border: 1px solid var(--mtb-border);
}

.entry-content {
  font-size: var(--mtb-font-size-base);
  line-height: 1.6;
  color: var(--mtb-muted-foreground);
  margin-bottom: var(--mtb-space-6);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--mtb-foreground);
  font-weight: 600;
  margin-top: var(--mtb-space-6);
  margin-bottom: var(--mtb-space-3);
}

.entry-content h2 {
  font-size: var(--mtb-font-size-xl);
}

.entry-content h3 {
  font-size: var(--mtb-font-size-lg);
}

.entry-content h4 {
  font-size: var(--mtb-font-size-base);
}

/* ========================================
   PACKAGES SHOWCASE - MINIMAL
   ======================================== */
.trip-packages-showcase {
  margin-top: var(--mtb-space-8);
}

.section-header {
  text-align: center;
  margin-bottom: var(--mtb-space-6);
}

.section-title {
  font-size: var(--mtb-font-size-xl);
  font-weight: 600;
  color: var(--mtb-foreground);
  margin: 0 0 var(--mtb-space-2) 0;
}

.section-subtitle {
  font-size: var(--mtb-font-size-sm);
  color: var(--mtb-muted-foreground);
  margin: 0;
}

.packages-showcase-grid {
  display: grid;
  gap: var(--mtb-space-4);
}

.package-showcase-card {
  background: var(--mtb-background);
  border-radius: var(--mtb-radius-md);
  padding: var(--mtb-space-4);
  border: 1px solid var(--mtb-border);
  transition: all 0.2s ease;
}

.package-showcase-card:hover {
  border-color: var(--mtb-primary);
  box-shadow: var(--mtb-shadow-sm);
}

.package-title {
  font-size: var(--mtb-font-size-lg);
  font-weight: 600;
  color: var(--mtb-foreground);
  margin: 0 0 var(--mtb-space-2) 0;
}

.package-description {
  color: var(--mtb-muted-foreground);
  font-size: var(--mtb-font-size-sm);
  line-height: 1.5;
  margin-bottom: var(--mtb-space-4);
}

.package-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--mtb-space-2);
}

.package-features li {
    display: flex;
    align-items: center;
  gap: var(--mtb-space-2);
  font-size: var(--mtb-font-size-sm);
  color: var(--mtb-muted-foreground);
}

.package-features li::before {
  content: '✓';
  color: var(--mtb-success);
  font-weight: 600;
}

/* ========================================
   BOOKING WIDGET - MINIMAL
   ======================================== */
.booking-widget-column {
  position: sticky;
  top: var(--mtb-space-4);
}

.booking-widget-container {
  background: var(--mtb-background);
  border-radius: var(--mtb-radius-lg);
  padding: var(--mtb-space-4);
  border: 1px solid var(--mtb-border);
  box-shadow: var(--mtb-shadow-sm);
}

.booking-widget {
  background: var(--mtb-background);
  border-radius: var(--mtb-radius-md);
  overflow: hidden;
}

.widget-header {
  background: var(--mtb-primary);
  color: var(--mtb-primary-foreground);
  padding: var(--mtb-space-4);
  text-align: center;
}

.widget-title {
  font-size: var(--mtb-font-size-lg);
  font-weight: 600;
  margin: 0 0 var(--mtb-space-1) 0;
}

.widget-subtitle {
  font-size: var(--mtb-font-size-sm);
  opacity: 0.9;
  margin: 0;
}

/* ========================================
   BOOKING METHODS - MINIMAL
   ======================================== */
.booking-method-card {
  background: var(--mtb-background);
  border-radius: var(--mtb-radius-md);
  padding: var(--mtb-space-4);
  margin-bottom: var(--mtb-space-4);
  border: 1px solid var(--mtb-border);
}

.method-header {
  display: flex;
  align-items: center;
  gap: var(--mtb-space-3);
  margin-bottom: var(--mtb-space-4);
}

.method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--mtb-radius-md);
  background: var(--mtb-primary);
  color: var(--mtb-primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--mtb-font-size-lg);
}

.method-info h4 {
  font-size: var(--mtb-font-size-base);
  font-weight: 600;
  color: var(--mtb-foreground);
  margin: 0 0 var(--mtb-space-1) 0;
}

.method-info p {
  color: var(--mtb-muted-foreground);
  margin: 0;
  font-size: var(--mtb-font-size-sm);
}

/* ========================================
   BOOKING STEPS - MINIMAL
   ======================================== */
.booking-step {
  margin-bottom: var(--mtb-space-4);
}

.step-header {
    display: flex;
  align-items: center;
  gap: var(--mtb-space-3);
  margin-bottom: var(--mtb-space-3);
  padding-bottom: var(--mtb-space-3);
  border-bottom: 1px solid var(--mtb-border);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: var(--mtb-radius-md);
  background: var(--mtb-primary);
  color: var(--mtb-primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--mtb-font-size-sm);
}

.step-header h5 {
  font-size: var(--mtb-font-size-base);
  font-weight: 600;
  color: var(--mtb-foreground);
  margin: 0;
}

.step-content {
  padding-left: calc(32px + var(--mtb-space-3));
}

/* ========================================
   FORM ELEMENTS - MINIMAL
   ======================================== */
.date-selection-container {
  background: var(--mtb-input);
  border-radius: var(--mtb-radius-md);
  padding: var(--mtb-space-3);
  border: 1px solid var(--mtb-border);
}

.date-input-wrapper label {
  display: block;
  font-weight: 500;
  color: var(--mtb-foreground);
  margin-bottom: var(--mtb-space-2);
  font-size: var(--mtb-font-size-sm);
}

.date-picker-container {
  position: relative;
}

.date-picker-input {
    width: 100%;
  padding: var(--mtb-space-2) var(--mtb-space-3);
  border: 1px solid var(--mtb-border);
  border-radius: var(--mtb-radius-md);
  font-size: var(--mtb-font-size-sm);
  background: var(--mtb-background);
  color: var(--mtb-foreground);
  transition: border-color 0.2s ease;
}

.date-picker-input:focus {
    outline: none;
  border-color: var(--mtb-ring);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.date-picker-container i {
  position: absolute;
  right: var(--mtb-space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--mtb-muted-foreground);
  pointer-events: none;
}

.selected-date-display {
  margin-top: var(--mtb-space-2);
  padding: var(--mtb-space-2);
  background: var(--mtb-success);
  color: white;
  border-radius: var(--mtb-radius-md);
  font-weight: 500;
    text-align: center;
  font-size: var(--mtb-font-size-sm);
  display: none;
}

.selected-date-display.active {
  display: block;
}

/* ========================================
   PACKAGE SELECTION - MINIMAL
   ======================================== */
.legacy-package-item {
  background: var(--mtb-background);
  border-radius: var(--mtb-radius-md);
  padding: var(--mtb-space-4);
  margin-bottom: var(--mtb-space-4);
  border: 1px solid var(--mtb-border);
}

.package-title {
  font-size: var(--mtb-font-size-base);
  font-weight: 600;
  color: var(--mtb-foreground);
  margin: 0 0 var(--mtb-space-2) 0;
}

.package-description {
  color: var(--mtb-muted-foreground);
  font-size: var(--mtb-font-size-sm);
  margin-bottom: var(--mtb-space-3);
}

.legacy-category-item {
    display: flex;
  justify-content: space-between;
    align-items: center;
  background: var(--mtb-input);
  padding: var(--mtb-space-3);
  border-radius: var(--mtb-radius-md);
  border: 1px solid var(--mtb-border);
  margin-bottom: var(--mtb-space-2);
}

.category-info {
  flex: 1;
}

.category-name {
    font-weight: 500;
  color: var(--mtb-foreground);
  font-size: var(--mtb-font-size-sm);
  display: block;
  margin-bottom: var(--mtb-space-1);
}

.category-price {
  font-weight: 600;
  color: var(--mtb-primary);
  margin: 0 var(--mtb-space-3);
  font-size: var(--mtb-font-size-sm);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: var(--mtb-space-2);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--mtb-border);
  background: var(--mtb-background);
  color: var(--mtb-foreground);
  border-radius: var(--mtb-radius-md);
  cursor: pointer;
  font-size: var(--mtb-font-size-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: var(--mtb-muted);
  border-color: var(--mtb-primary);
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.legacy-quantity-input {
  width: 50px;
  height: 28px;
  text-align: center;
  border: 1px solid var(--mtb-border);
  border-radius: var(--mtb-radius-md);
  font-size: var(--mtb-font-size-sm);
  font-weight: 500;
  background: var(--mtb-background);
  color: var(--mtb-foreground);
  transition: border-color 0.2s ease;
}

.legacy-quantity-input:focus {
  outline: none;
  border-color: var(--mtb-ring);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* ========================================
   BUTTONS - MINIMAL
   ======================================== */
.booking-action-btn {
    display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mtb-space-2);
  padding: var(--mtb-space-3) var(--mtb-space-4);
  border: none;
  border-radius: var(--mtb-radius-md);
  font-size: var(--mtb-font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 40px;
  width: 100%;
}

.booking-action-btn.primary {
  background: var(--mtb-primary);
  color: var(--mtb-primary-foreground);
}

.booking-action-btn.primary:hover {
  background: #2563eb;
}

.booking-action-btn.secondary {
  background: var(--mtb-secondary);
  color: var(--mtb-secondary-foreground);
  border: 1px solid var(--mtb-border);
}

.booking-action-btn.secondary:hover {
  background: var(--mtb-muted);
}

.booking-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   BOOKING SUMMARY - MINIMAL
   ======================================== */
.booking-summary-step,
#booking-summary {
  background: var(--mtb-input);
  border-radius: var(--mtb-radius-md);
  padding: var(--mtb-space-4);
  border: 1px solid var(--mtb-border);
  margin-top: var(--mtb-space-4);
}

.summary-header h5 {
    display: flex;
    align-items: center;
  gap: var(--mtb-space-2);
  color: var(--mtb-foreground);
  font-size: var(--mtb-font-size-base);
    font-weight: 600;
  margin: 0 0 var(--mtb-space-3) 0;
}

.summary-content {
  background: var(--mtb-background);
  border-radius: var(--mtb-radius-md);
  padding: var(--mtb-space-3);
  margin-bottom: var(--mtb-space-3);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--mtb-space-2) 0;
  border-bottom: 1px solid var(--mtb-border);
}

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

.summary-package {
  flex: 1;
}

.summary-package strong {
  color: var(--mtb-foreground);
  font-size: var(--mtb-font-size-sm);
  font-weight: 500;
}

.summary-package small {
  color: var(--mtb-muted-foreground);
  font-size: var(--mtb-font-size-xs);
}

.summary-price {
  font-weight: 600;
  color: var(--mtb-primary);
  font-size: var(--mtb-font-size-sm);
}

.summary-date {
  display: flex;
  align-items: center;
  gap: var(--mtb-space-2);
  padding: var(--mtb-space-2);
  background: var(--mtb-primary);
    color: white;
  border-radius: var(--mtb-radius-md);
  margin: var(--mtb-space-2) 0;
  font-weight: 500;
  font-size: var(--mtb-font-size-sm);
}

.summary-total {
  font-size: var(--mtb-font-size-base);
  font-weight: 600;
  color: white;
  text-align: center;
  padding: var(--mtb-space-2);
  background: var(--mtb-success);
  border-radius: var(--mtb-radius-md);
  margin-bottom: var(--mtb-space-3);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--mtb-space-6);
  }
  
  .booking-widget-column {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--mtb-font-size-2xl);
    }
    
  .hero-meta {
        flex-direction: column;
    gap: var(--mtb-space-2);
  }
  
  .method-header {
    flex-direction: column;
    text-align: center;
    gap: var(--mtb-space-2);
  }
  
  .step-content {
    padding-left: 0;
  }
  
  .legacy-category-item {
    flex-direction: column;
    align-items: stretch;
    gap: var(--mtb-space-2);
  }
  
  .category-price {
    margin: 0;
    text-align: center;
  }
  
  .quantity-controls {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--mtb-space-3);
  }
  
  .hero-content {
    padding: var(--mtb-space-4);
  }
  
  .hero-title {
    font-size: var(--mtb-font-size-xl);
  }
  
  .booking-widget-container {
    margin: 0 calc(-1 * var(--mtb-space-2));
    padding: var(--mtb-space-3);
  }
  
  .trip-description-column {
    padding: var(--mtb-space-4);
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--mtb-primary); }
.text-muted { color: var(--mtb-muted-foreground); }
.text-success { color: var(--mtb-success); }

.bg-background { background-color: var(--mtb-background); }
.bg-muted { background-color: var(--mtb-muted); }

.rounded-sm { border-radius: var(--mtb-radius-sm); }
.rounded-md { border-radius: var(--mtb-radius-md); }
.rounded-lg { border-radius: var(--mtb-radius-lg); }

.shadow-sm { box-shadow: var(--mtb-shadow-sm); }
.shadow-md { box-shadow: var(--mtb-shadow-md); }

.transition { transition: all 0.2s ease; }