/* ==========================================================================
   MossyTrips // Light Theme - Clean, Modern, Sunlit Editorial
   Distinctive, Crisp & Easy on the Eyes
   ========================================================================== */

:root {
  /* Light Theme Color Tokens */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  --border-card: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-focus: #0284c7;
  
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  /* Vibrant Clean Accents */
  --azure-primary: #0284c7;
  --azure-dark: #0369a1;
  --azure-light: #e0f2fe;
  
  --coral-accent: #f43f5e;
  --coral-light: #ffe4e6;
  
  --amber-accent: #f59e0b;
  --amber-light: #fef3c7;
  
  --emerald-accent: #10b981;
  --emerald-light: #d1fae5;
  
  /* Typography Families */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-grotesk: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-urbanist: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Active Font Mapping (Default: Editorial Luxury) */
  --font-display: var(--font-serif);
  --font-body: var(--font-grotesk);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px -3px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

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

.hidden {
  display: none !important;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Flavor Themes */
body[data-font="editorial"] {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body[data-font="grotesk"] {
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body[data-font="urbanist"] {
  --font-display: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Luxury Editorial & Character Headings */
.hero-title,
.dest-city-name,
.section-title,
.itinerary-headline,
.drawer-title {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

/* Subtle Sunlit Ambient Glows */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.45;
}

.glow-peach {
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, #fed7aa, transparent 70%);
}

.glow-sky {
  top: 30%;
  left: -200px;
  background: radial-gradient(circle, #bae6fd, transparent 70%);
}

/* Colors & Gradients */
.text-azure { color: var(--azure-primary); }
.text-coral { color: var(--coral-accent); }
.text-amber { color: var(--amber-accent); }
.text-emerald { color: var(--emerald-accent); }

.light-gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  padding: 14px 28px;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--azure-primary), #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-heading);
}

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--azure-primary);
  letter-spacing: 1.5px;
}

/* Origin Selector Pill */
.origin-selector-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.origin-selector-wrap:hover,
.origin-selector-wrap:focus-within {
  border-color: var(--azure-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.origin-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.origin-select {
  background: transparent;
  color: var(--text-heading);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  padding-right: 8px;
}

.origin-select optgroup {
  background: #ffffff;
  color: var(--azure-primary);
  font-weight: 800;
}

.origin-select option {
  background: #ffffff;
  color: var(--text-heading);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Typography Style Switcher */
.font-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 3px 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.font-switch-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 0 4px;
}

.font-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.font-btn:hover {
  color: var(--text-heading);
}

.font-btn.active {
  background: #ffffff;
  color: var(--azure-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

/* Header Status Pill */
.active-deals-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #065f46;
  letter-spacing: 0.5px;
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-accent);
  box-shadow: 0 0 8px var(--emerald-accent);
}

/* Main Content Area */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

/* Control Deck */
.control-deck {
  margin-bottom: 36px;
}

.deck-header {
  text-align: center;
  margin-bottom: 28px;
}

.hero-tag-pill {
  display: inline-block;
  background: var(--azure-light);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--azure-dark);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--text-heading);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
}

/* Control Matrix Grid (2x2 Balanced Cards) */
.control-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

/* Departure Airport Card */
.origin-code-tag {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  background: var(--azure-light);
  color: var(--azure-dark);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.origin-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.origin-select-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.origin-select-box:focus-within {
  border-color: var(--azure-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.origin-select-main {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  outline: none;
  cursor: pointer;
  width: 100%;
}

.origin-select-main optgroup {
  background: #ffffff;
  color: var(--azure-primary);
  font-weight: 800;
}

.origin-select-main option {
  background: #ffffff;
  color: var(--text-heading);
  font-weight: 500;
}

.origin-quick-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--border-card);
  padding-top: 12px;
}

.origin-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.origin-chip:hover {
  background: var(--bg-muted);
}

.origin-chip.active {
  background: var(--azure-primary);
  color: #fff;
  border-color: var(--azure-primary);
}

.matrix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.matrix-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-label-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.budget-value-display {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--azure-primary);
}

/* Clean Slider */
.budget-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  outline: none;
  margin: 10px 0 14px;
  cursor: pointer;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--azure-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}

.budget-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.budget-breakdown-bar {
  display: flex;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--bg-subtle);
}

.bar-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.bar-flight { background: #0284c7; }
.bar-hotel { background: #f43f5e; }
.bar-exp { background: #f59e0b; }

.budget-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}

.dot-flight { background-color: #0284c7; }
.dot-hotel { background-color: #f43f5e; }
.dot-exp { background-color: #f59e0b; }

/* Date & Duration Card */
.date-summary-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-heading);
}

.date-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-sublabel {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}

.date-input-wrap:focus-within {
  border-color: var(--azure-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.date-picker-input {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
  outline: none;
  cursor: pointer;
}

.date-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding-top: 16px;
}

.date-chip-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-chip-btn:hover {
  background: var(--bg-muted);
}

.date-chip-btn.active {
  background: var(--azure-primary);
  color: #fff;
  border-color: var(--azure-primary);
}

.duration-pills-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-card);
  padding-top: 12px;
}

.duration-pills {
  display: flex;
  gap: 8px;
}

.pill-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  background: var(--bg-muted);
}

.pill-btn.active {
  background: var(--text-heading);
  color: #fff;
  border-color: var(--text-heading);
}

/* Vibe Grid */
.vibe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.vibe-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.vibe-emoji {
  font-size: 1.15rem;
}

.vibe-btn:hover {
  background: #e0f2fe;
  border-color: var(--azure-primary);
  transform: translateY(-2px);
}

.vibe-btn.active {
  background: var(--azure-primary);
  border-color: var(--azure-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Primary Search CTA (No Spin Button) */
.action-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.primary-search-btn {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  padding: 16px 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
}

.primary-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.45);
}

.primary-search-btn:active {
  transform: translateY(1px);
}

.btn-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.btn-text-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.btn-sub {
  font-size: 0.74rem;
  color: #bae6fd;
  font-weight: 500;
}

.btn-count-tag {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Masterpiece Trip Section */
.masterpiece-trip-section {
  position: relative;
  margin-bottom: 50px;
}

.trip-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 50;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.trip-loading-overlay.hidden {
  display: none;
}

.loader-spinner-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clean-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--azure-primary);
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
}

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

.loading-plane-icon {
  position: absolute;
  color: var(--azure-primary);
  font-size: 1.2rem;
}

.loading-status-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
}

/* Featured Trip Card */
.featured-trip-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-trip-card.search-refresh-pulse {
  animation: cardRefreshPulse 0.45s ease-out;
}

@keyframes cardRefreshPulse {
  0% {
    transform: scale(0.985);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.25);
  }
  50% {
    transform: scale(1.008);
    box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.15);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-lg);
  }
}

/* Destination Banner */
.dest-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 60%, #fff1f2 100%);
  padding: 30px 36px 26px;
  border-bottom: 1px solid var(--border-card);
}

.banner-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.dest-country-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 6px;
}

.weather-pill {
  background: var(--amber-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.valuescore-badge {
  background: var(--bg-surface);
  border: 1.5px solid var(--amber-accent);
  padding: 6px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.vs-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--amber-accent);
}

.vs-number {
  font-size: 1.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-heading);
}

.vs-max {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.editorial-sub-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--azure-primary);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.dest-city-name {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.dest-tagline {
  font-size: 1.12rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* 3-Part Trip Architecture (Triptych Grid) */
.trip-triptych-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 28px 36px;
}

.triptych-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.triptych-card:hover {
  background: #ffffff;
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.comp-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-flight {
  background: var(--azure-light);
  color: var(--azure-dark);
}

.badge-hotel {
  background: var(--coral-light);
  color: #9f1239;
}

.badge-exp {
  background: var(--amber-light);
  color: #92400e;
}

.price-chip {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-heading);
}

/* Flight Details Display */
.flight-route-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px dashed var(--border-card);
  border-bottom: 1px dashed var(--border-card);
  margin-bottom: 14px;
}

.flight-node {
  display: flex;
  flex-direction: column;
}

.airport-code {
  font-size: 1.7rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-heading);
}

.airport-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.flight-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  padding: 0 12px;
}

.flight-duration {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--azure-primary);
}

.flight-line {
  width: 100%;
  height: 2px;
  background: #cbd5e1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flight-icon-mid {
  font-size: 0.75rem;
  color: var(--azure-primary);
  transform: rotate(90deg);
  background: var(--bg-subtle);
  padding: 2px;
}

.flight-direct-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #065f46;
  letter-spacing: 0.5px;
}

.flight-meta-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-row strong {
  color: var(--text-heading);
  font-weight: 600;
}

/* Hotel Details Display */
.hotel-photo-container {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.hotel-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-rating-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.star-icon {
  color: var(--amber-accent);
}

.hotel-stars {
  color: var(--amber-accent);
  font-size: 0.7rem;
}

.hotel-info {
  margin-bottom: 14px;
}

.hotel-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 3px;
  color: var(--text-heading);
}

.hotel-style, .hotel-district {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.hotel-perks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.perk-tag {
  background: #ffffff;
  border: 1px solid var(--border-card);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-body);
}

/* Secret Experience Display */
.exp-body {
  margin-bottom: 14px;
}

.exp-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.exp-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--text-heading);
}

.exp-duration {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.exp-highlight {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Card Action Links */
.card-footer-action {
  border-top: 1px solid var(--border-card);
  padding-top: 12px;
}

.direct-sub-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-heading);
  text-decoration: none;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.direct-sub-link:hover {
  background: var(--azure-light);
  border-color: var(--azure-primary);
  color: var(--azure-dark);
}

/* Hotel Comparison Hub */
.hotel-compare-hub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.compare-hub-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.provider-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.hotel-head-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.hotel-total-stay {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hotel-price-breakdown-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin-top: 10px;
}

.breakdown-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-val {
  font-size: 0.92rem;
  font-weight: 900;
  font-family: var(--font-mono);
}

.stat-val-total {
  color: #065f46;
  font-size: 1.05rem;
}

.breakdown-divider {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.5;
}

.provider-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.provider-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.provider-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.provider-price {
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-heading);
  background: var(--bg-subtle);
  padding: 2px 5px;
  border-radius: 4px;
}

.provider-price.best-deal {
  color: #065f46;
  background: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.deal-tag {
  background: #10b981;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 900;
  padding: 1px 3px;
  border-radius: 3px;
  margin-left: 2px;
}

.provider-pill:hover {
  transform: translateY(-1px);
  border-color: var(--azure-primary);
  background: var(--azure-light);
  color: var(--azure-dark);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1);
}

.provider-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.bg-booking { background: #003580; }
.bg-hotelscom { background: #d32f2f; }
.bg-agoda { background: #2563eb; }
.bg-expedia { background: #002244; color: #ffd207; }

.mini-icon {
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.ai-itinerary-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--azure-primary);
  padding: 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-itinerary-trigger-btn:hover {
  background: var(--azure-light);
  border-color: var(--azure-primary);
}

/* Aviation Route Map Canvas */
.aviation-map-wrapper {
  padding: 0 36px 24px;
}

.map-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-bottom: none;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.map-sub-text {
  font-family: var(--font-mono);
  color: var(--text-heading);
}

.route-map-canvas {
  width: 100%;
  height: 250px;
  border: 1px solid var(--border-card);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
}

/* Master Trip Checkout Bar */
.trip-checkout-bar {
  background: #ffffff;
  padding: 22px 36px;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.total-price-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.summary-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.summary-numbers {
  display: flex;
  align-items: center;
  gap: 12px;
}

.total-cost-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-heading);
}

.budget-diff-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
}

.checkout-actions-container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.checkout-cluster {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cluster-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.cluster-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.checkout-btn {
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 13px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  color: #fff;
}

.btn-google { background: #1a73e8; }
.btn-skyscanner { background: #00a4d8; }
.btn-kayak { background: #ff690f; }

.btn-booking { background: #003580; }
.btn-hotelscom { background: #d32f2f; }
.btn-google-hotel { background: #1e293b; }
.btn-agoda { background: #2563eb; }
.btn-expedia { background: #002244; }
.btn-airbnb { background: #ff385c; }

.bg-white-brand {
  background: #ffffff;
  border-radius: 3px;
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 900;
  flex-shrink: 0;
}

.text-booking { color: #003580; }
.text-hotelscom { color: #d32f2f; }
.text-agoda { color: #2563eb; }
.text-expedia { color: #002244; }

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.08);
}

.btn-price-badge {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 800;
  margin-left: 3px;
  letter-spacing: 0.3px;
}

.best-deal-badge {
  background: #10b981;
  color: #fff;
}

/* All Matching Escapes Section */
.all-escapes-section {
  margin-top: 50px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.fun-section-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--azure-primary);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-heading);
}

.section-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sort-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.sort-select {
  background: #ffffff;
  color: var(--text-heading);
  border: 1px solid var(--border-card);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.escapes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

/* Mini Escape Cards */
.escape-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.escape-mini-card:hover {
  border-color: var(--azure-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mini-card-photo {
  position: relative;
  width: 100%;
  height: 160px;
}

.mini-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-vs-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-heading);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-sm);
}

.mini-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.mini-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.mini-city-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
}

.mini-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mini-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--azure-primary);
}

.mini-price-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mini-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.35;
}

.mini-pricing-breakdown {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}

.mini-hotel-badge {
  background: var(--coral-light);
  color: #9f1239;
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mini-flight-badge {
  background: var(--azure-light);
  color: var(--azure-dark);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sub-total {
  opacity: 0.85;
  font-weight: 500;
  font-size: 0.68rem;
}

.mini-flight-row {
  border-top: 1px dashed var(--border-card);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* AI Drawer / Modal */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  justify-content: flex-end;
}

.drawer-overlay.active {
  display: flex;
}

.drawer-panel {
  width: 100%;
  max-width: 520px;
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--border-card);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-heading);
}

.drawer-sub {
  font-size: 0.75rem;
  color: var(--azure-primary);
  font-weight: 700;
}

.close-drawer-btn {
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-body);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-drawer-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-heading);
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.drawer-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  gap: 16px;
  color: var(--azure-primary);
  font-weight: 700;
}

.drawer-loader.hidden {
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-subtle);
  border-top-color: var(--azure-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.itinerary-headline {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 22px;
  color: var(--text-heading);
}

.itin-day-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.day-title-badge {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--text-heading);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-block {
  margin-bottom: 12px;
}

.time-block:last-child {
  margin-bottom: 0;
}

.time-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--azure-primary);
  letter-spacing: 0.5px;
}

.time-block h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 2px 0 3px;
}

.time-block p {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.4;
}

.itin-insider-box {
  background: var(--amber-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insider-row {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
}

.insider-row strong {
  color: #92400e;
  display: block;
  margin-bottom: 2px;
}

.insider-row p {
  color: #78350f;
}

/* Empty Search State for Featured Section */
.featured-no-match-box {
  background: var(--bg-surface);
  border: 1.5px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 50px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.featured-no-match-box.hidden {
  display: none !important;
}

.no-match-content {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.no-match-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--coral-light);
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.no-match-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-heading);
}

.no-match-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.reset-search-btn {
  background: var(--azure-primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.reset-search-btn:hover {
  background: var(--azure-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-card);
  padding: 28px 24px;
  background: #ffffff;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-heading);
}

.footer-copy, .footer-links {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .control-matrix {
    grid-template-columns: 1fr;
  }
  .trip-triptych-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }
  .trip-checkout-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .checkout-actions-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .cluster-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .dest-banner {
    padding: 22px;
  }
  .dest-city-name {
    font-size: 2.3rem;
  }
  .trip-triptych-grid {
    padding: 20px;
  }
}
