/* ==========================================================================
   Alfa Trips - Design System & Custom Stylesheet
   Modern, Luxury Adventure Travel Web Application
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Dark Premium Default */
  --bg-primary: #090d16;
  --bg-secondary: #111726;
  --bg-card: rgba(21, 29, 46, 0.75);
  --bg-card-hover: rgba(30, 41, 64, 0.85);
  --bg-glass: rgba(17, 23, 38, 0.65);
  --bg-glass-heavy: rgba(10, 14, 23, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);

  /* Brand Accents */
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-emerald: #00e676;
  --accent-amber: #ffb300;
  --accent-coral: #ff5e62;
  --accent-purple: #7f00ff;
  --accent-gold: #ffd700;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-emerald: linear-gradient(135deg, #00e676 0%, #1de9b6 100%);
  --gradient-amber: linear-gradient(135deg, #ff9900 0%, #ff5e62 100%);
  --gradient-dark: linear-gradient(180deg, rgba(9, 13, 22, 0.4) 0%, #090d16 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(9, 13, 22, 0.35) 0%, rgba(9, 13, 22, 0.85) 75%, #090d16 100%);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #00f2fe;

  /* Shadows & Elevation */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.15);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.3);

  /* Layout Constants */
  --container-max: 1320px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Text/icon colour used on top of the brand gradient or solid cyan */
  --on-brand: #050b14;
  /* Faint fills that must invert between themes */
  --bg-subtle: rgba(255, 255, 255, 0.03);
  --track-color: rgba(255, 255, 255, 0.1);

  color-scheme: dark;
}

/* Light Theme Overrides */
[data-theme="light"] {
  color-scheme: light;

  /* The neon accents are unreadable on white, so light mode uses deeper tones */
  --accent-cyan: #0e7490;
  --accent-blue: #1d4ed8;
  --accent-emerald: #047857;
  --accent-amber: #b45309;
  --accent-coral: #e11d48;
  --accent-gold: #a16207;

  --gradient-brand: linear-gradient(135deg, #0e7490 0%, #1d4ed8 100%);
  --gradient-emerald: linear-gradient(135deg, #047857 0%, #0f766e 100%);
  --gradient-amber: linear-gradient(135deg, #d97706 0%, #e11d48 100%);

  --on-brand: #ffffff;
  --bg-subtle: rgba(15, 23, 42, 0.04);
  --track-color: rgba(15, 23, 42, 0.12);

  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-heavy: rgba(255, 255, 255, 0.92);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 114, 255, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-highlight: #0284c7;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.2);

  --gradient-dark: linear-gradient(180deg, rgba(248, 250, 252, 0.2) 0%, #f8fafc 100%);
  /* Top stop darkened: the header is now white-on-image in light mode too */
  --gradient-hero-overlay: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.8) 75%, #f8fafc 100%);
}

/* --------------------------------------------------------------------------
   2. Base Reset & Reset Utilities
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Offset anchor jumps so the fixed header never covers section titles */
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
}

/* Lock background scroll while a modal or the nav drawer is open */
body.no-scroll {
  overflow: hidden;
}

/* Every interactive element gets fast taps (no 300ms delay) on Android */
button, a, select, input, label, .quiz-option-card, .trip-card {
  touch-action: manipulation;
}

/* Nothing may push the page wider than the viewport */
img, svg, video, iframe, table, pre {
  max-width: 100%;
}

/* Visible focus ring for keyboard + switch-access users */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect the OS "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-emerald-text {
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--on-brand);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
  }
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
  }
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1.5px solid var(--accent-cyan);
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    background: rgba(0, 242, 254, 0.1);
    box-shadow: var(--shadow-glow);
  }
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-brand {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.badge-gold {
  background: rgba(255, 215, 0, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-emerald {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

/* --------------------------------------------------------------------------
   3. Header & Navigation System
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-brand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-brand);
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.4);
  transform: rotate(-4deg);
  transition: transform var(--transition-bounce);
}

@media (hover: hover) and (pointer: fine) {
  .brand-logo:hover .logo-icon {
    transform: rotate(4deg) scale(1.08);
  }
}

.brand-name {
  color: var(--text-primary);
}

.brand-name span {
  color: var(--accent-cyan);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link.active {
  color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--text-primary); }
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link.active::after {
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after { width: 100%; }
}

/* Action Controls (Currency, Wishlist, Theme) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
  }
}

.icon-btn:active {
  transform: scale(0.92);
}

.icon-btn .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-coral);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

.currency-select {
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.currency-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.mobile-nav-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 92vh;
  min-height: 92svh; /* Android URL bar collapses without a layout jump */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 25s infinite alternate ease-in-out;
}

@keyframes heroZoom {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 860px;
  margin: 3rem 0;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 720px;
  line-height: 1.7;
}

/* Quick Search & Filter Bar */
.search-filter-box {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 1rem;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.filter-input, .filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  transition: border-color var(--transition-fast);
}

.filter-input:focus, .filter-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.filter-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Stats Counter Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   5. Section Headers & Category Tabs
   -------------------------------------------------------------------------- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Controls Bar (Filter Tags, View Switcher, Sort) */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.category-tags {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tag-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.tag-btn.active {
  background: var(--accent-cyan);
  color: var(--on-brand);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .tag-btn:hover {
    background: var(--accent-cyan);
    color: var(--on-brand);
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
  }
}

.view-sort-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.view-toggle {
  display: flex;
  background: var(--bg-secondary);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.view-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.view-btn.active {
  background: var(--accent-cyan);
  color: var(--on-brand);
}

/* Compare Floating Pill */
.compare-pill {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  border: 1.5px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  padding: 0.8rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   6. Trip Cards Grid & Layouts
   -------------------------------------------------------------------------- */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 2rem;
}

.trips-grid.list-view {
  grid-template-columns: 1fr;
}

.trips-grid.list-view .trip-card {
  flex-direction: row;
  height: 260px;
}

.trips-grid.list-view .card-image-wrapper {
  width: 40%;
  height: 100%;
}

/* Single Trip Card */
.trip-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(10px);
}

@media (hover: hover) and (pointer: fine) {
  .trip-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg);
  }
}

.card-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .trip-card:hover .card-image {
    transform: scale(1.08);
  }
}

.card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  z-index: 5;
}

.card-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.wishlist-btn, .compare-check-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.wishlist-btn.active {
  background: var(--accent-coral);
  color: white;
  border-color: var(--accent-coral);
}

@media (hover: hover) and (pointer: fine) {
  .wishlist-btn:hover {
    background: var(--accent-coral);
    color: white;
    border-color: var(--accent-coral);
  }
}

.compare-check-btn.active {
  background: var(--accent-cyan);
  color: var(--on-brand);
  border-color: var(--accent-cyan);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .trip-card:hover .card-title {
    color: var(--accent-cyan);
  }
}

.card-excerpt {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Spec Chips Bar */
.spec-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.8rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
}

.spec-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spec-chip-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-chip-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Card Footer Price & Action */
.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.price-block {
  display: flex;
  flex-direction: column;
}

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

.price-amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   7. Interactive Quiz & Finder Wizard
   -------------------------------------------------------------------------- */
.quiz-section {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.05) 0%, rgba(79, 172, 254, 0.05) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.quiz-container {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.quiz-option-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quiz-option-card.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  transform: translateY(-4px);
}

@media (hover: hover) and (pointer: fine) {
  .quiz-option-card:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.08);
    transform: translateY(-4px);
  }
}

.quiz-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  display: block;
}

/* Progress bar */
.quiz-progress {
  height: 6px;
  background: var(--track-color);
  border-radius: 3px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--gradient-brand);
  width: 25%;
  transition: width 0.4s ease;
}

/* --------------------------------------------------------------------------
   8. Modals, Drawers & Overlay Interfaces
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 1050px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .modal-close-btn:hover {
    background: var(--accent-coral);
    color: white;
  }
}

/* Modal Tab Bar */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  background: var(--bg-primary);
  gap: 1.5rem;
}

.modal-tab-btn {
  padding: 1.2rem 0;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
}

.modal-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

@media (hover: hover) and (pointer: fine) {
  .modal-tab-btn:hover {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
  }
}

/* Day-by-Day Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Booking Drawer Form */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.price-summary-box {
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
}

/* Side-by-Side Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  padding: 1.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.comparison-table th {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-weight: 700;
  width: 20%;
}

/* --------------------------------------------------------------------------
   9. Footer & Utilities
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--accent-cyan);
  }
}

.newsletter-box {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-emerald);
  color: var(--text-primary);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   10. Mobile Navigation Drawer
   -------------------------------------------------------------------------- */
.mobile-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 20, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 140;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.mobile-nav-backdrop.open { opacity: 1; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 340px);
  z-index: 150;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: calc(1.25rem + env(safe-area-inset-top)) 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  padding-right: calc(1.25rem + env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform var(--transition-smooth), visibility var(--transition-smooth);
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.5rem 0.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: color var(--transition-fast);
}

.mobile-nav-link:active { color: var(--accent-cyan); }

.mobile-nav-controls {
  margin-top: auto;
  padding-top: 1.5rem;
}

.mobile-nav-controls .filter-label { margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   11. Helper classes replacing hard-coded inline layout
   -------------------------------------------------------------------------- */
.eco-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eco-title {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  margin-bottom: 1rem;
}

.eco-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 360px;
}

.eco-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-question {
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  text-align: center;
}

.trips-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.sort-select {
  width: auto;
  padding: 0.5rem 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links a { color: var(--text-muted); }

/* Modal / rendered-markup grids (used by app.js) */
.modal-overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

.modal-highlights-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  list-style: none;
}

.modal-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.quiz-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.modal-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
}

.modal-body-pad { padding: 2rem; }
.modal-section-pad { padding: 2.5rem 2rem; }

/* Toast + compare pill respect Android gesture bar */
.toast-container {
  bottom: calc(2rem + env(safe-area-inset-bottom));
  left: calc(2rem + env(safe-area-inset-left));
}

.compare-pill {
  bottom: calc(2rem + env(safe-area-inset-bottom));
  right: calc(2rem + env(safe-area-inset-right));
}

/* Let Android draw its native select sheet, just themed correctly */
select, input, textarea {
  color-scheme: inherit;
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* ---- Large tablets / small laptops ---- */
@media (max-width: 1180px) {
  .trips-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  .nav-menu { gap: 1.25rem; }
  .header-actions { gap: 0.6rem; }
}

/* ---- Tablets ---- */
@media (max-width: 1024px) {
  :root { --header-height: 72px; }

  .search-filter-box { grid-template-columns: 1fr 1fr; }
  .search-filter-box .btn { grid-column: 1 / -1; width: 100%; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .section { padding: 4.5rem 0; }

  .eco-panel {
    padding: 2.5rem 2rem;
    gap: 2rem;
  }
  .eco-image { height: 300px; }

  .modal-overview-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .quiz-container { padding: 2rem; }
}

/* ---- Nav collapses to the drawer here ---- */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .desktop-only { display: none !important; }
  .mobile-nav-toggle { display: flex; }

  .site-header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--header-height) + env(safe-area-inset-top));
  }

  .trips-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

  .modal-two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .quiz-results-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Phones (landscape) & small tablets ---- */
@media (max-width: 768px) {
  :root {
    --header-height: 66px;
    --radius-lg: 18px;
    --radius-md: 12px;
  }

  .container { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-desc { font-size: 1rem; }

  /* --- Header --- */
  .brand-logo { font-size: 1.3rem; gap: 0.55rem; }
  .logo-icon { width: 38px; height: 38px; }
  .logo-icon svg { width: 20px; height: 20px; }
  .icon-btn { width: 44px; height: 44px; flex-shrink: 0; }
  .header-actions { gap: 0.5rem; flex-shrink: 0; }
  .header-inner { gap: 0.5rem; }
  .brand-logo { min-width: 0; }
  .brand-name { white-space: nowrap; }

  /* --- Hero --- */
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 1.5rem);
    padding-bottom: 3rem;
  }
  .hero-bg-image { animation: none; transform: none; }
  .hero-content { margin: 1rem 0; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
  }
  .hero-badge-row { gap: 0.5rem; margin-bottom: 1rem; }
  .badge { font-size: 0.68rem; padding: 0.3rem 0.7rem; }

  .search-filter-box {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.85rem;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.78rem; }

  /* --- Controls bar: chips become a swipeable rail --- */
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.9rem 0 0.9rem 0.9rem;
    margin-bottom: 1.75rem;
  }

  .category-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 0.15rem 0.9rem 0.6rem 0;
    scrollbar-width: none;
  }
  .category-tags::-webkit-scrollbar { display: none; }

  .tag-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 44px;
    padding: 0.6rem 1rem;
  }

  .view-sort-group {
    justify-content: space-between;
    gap: 0.6rem;
    padding-right: 0.9rem;
  }
  .sort-select {
    flex: 1;
    min-width: 0;
    width: auto;
  }
  .view-toggle { flex-shrink: 0; }
  .view-btn { width: 44px; height: 44px; }

  /* --- Cards --- */
  .trips-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* List view can't be horizontal on a phone */
  .trips-grid.list-view .trip-card {
    flex-direction: column;
    height: auto;
  }
  .trips-grid.list-view .card-image-wrapper {
    width: 100%;
    height: 200px;
  }

  .card-image-wrapper { height: 200px; }
  .card-content { padding: 1.15rem; }
  .card-title { font-size: 1.15rem; }
  .card-meta-top { font-size: 0.78rem; gap: 0.5rem; }

  /* Card action buttons must clear the 44px touch minimum */
  .wishlist-btn, .compare-check-btn { width: 44px; height: 44px; }
  .card-actions { gap: 0.4rem; top: 0.75rem; right: 0.75rem; }
  .card-badges { top: 0.75rem; left: 0.75rem; }

  .card-footer {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .card-footer .btn { flex: 1; min-height: 44px; }
  .price-amount { font-size: 1.3rem; }

  .spec-chips { padding: 0.7rem 0.5rem; }
  .spec-chip-label { font-size: 0.62rem; }
  .spec-chip-val { font-size: 0.78rem; }

  /* --- Quiz --- */
  .quiz-container { padding: 1.5rem 1.15rem; }
  .quiz-options-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
  }
  .quiz-option-card { padding: 1rem 0.75rem; }
  .quiz-option-card h4 { font-size: 0.95rem; }
  .quiz-icon { font-size: 1.8rem; margin-bottom: 0.4rem; }
  .quiz-results-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* --- Modals become full-screen sheets --- */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: none;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .modal-close-btn {
    position: fixed;
    top: calc(0.75rem + env(safe-area-inset-top));
    right: 0.75rem;
    width: 44px;
    height: 44px;
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    z-index: 20;
  }

  .modal-hero { height: 220px; border-radius: 0; }
  .modal-hero-caption { bottom: 1.15rem; left: 1.15rem; right: 1.15rem; }
  .modal-hero-caption h2 { font-size: 1.4rem; }

  .modal-body-pad { padding: 1.25rem 1.15rem 2.5rem; }
  .modal-section-pad { padding: 4rem 1.15rem 2.5rem; }

  .modal-tabs {
    padding: 0 1.15rem;
    gap: 1.15rem;
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .modal-tabs::-webkit-scrollbar { display: none; }
  .modal-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 1rem 0;
  }

  .modal-highlights-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
  .timeline { padding-left: 1.5rem; margin: 1.5rem 0; }
  .timeline-dot { left: -1.5rem; }

  .comparison-table-wrapper {
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table { min-width: 620px; }
  .comparison-table th, .comparison-table td {
    padding: 0.85rem;
    font-size: 0.875rem;
  }
  .comparison-table th { width: auto; min-width: 140px; }

  /* --- Compare pill docks to the bottom edge --- */
  .compare-pill {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    justify-content: space-between;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  .compare-pill span { font-size: 0.82rem !important; }
  .compare-pill .btn { padding: 0.5rem 0.85rem; font-size: 0.8rem; }

  .toast-container {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }
  .toast { font-size: 0.9rem; }

  /* --- Eco panel --- */
  .eco-panel {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem;
    gap: 1.75rem;
  }
  .eco-image { height: 220px; order: -1; }

  /* --- Footer --- */
  .site-footer {
    padding: 3rem 0 calc(1.5rem + env(safe-area-inset-bottom));
    margin-top: 3.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }
  .footer-col h4 { margin-bottom: 1rem; }
  .footer-links a { min-height: 40px; display: flex; align-items: center; }

  .newsletter-box { flex-direction: column; }
  .newsletter-box .btn { width: 100%; min-height: 46px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }
  .footer-legal-links { gap: 1rem; }

  /* Frosted glass is expensive on mid-range Android GPUs */
  .trip-card,
  .btn-secondary,
  .quiz-container,
  .search-filter-box {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---- Standard Android phones (Pixel / Galaxy, 360-412px) ---- */
@media (max-width: 600px) {
  /* 16px minimum stops Android Chrome auto-zooming on focus */
  .filter-input,
  .filter-select,
  .form-control,
  .currency-select,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  /* Comfortable 48px touch targets on all form controls */
  .filter-input,
  .filter-select,
  .form-control {
    min-height: 48px;
    padding: 0.7rem 0.9rem;
  }

  .btn { min-height: 46px; padding: 0.7rem 1.25rem; }
  .btn-sm { min-height: 44px; padding: 0.55rem 0.95rem; }
  .btn-lg { min-height: 50px; padding: 0.85rem 1.5rem; font-size: 1rem; }

  .quiz-options-grid { grid-template-columns: 1fr; }
  .quiz-option-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-align: left;
    padding: 0.9rem 1rem;
    min-height: 64px;
  }
  .quiz-icon { margin-bottom: 0; font-size: 1.6rem; flex-shrink: 0; }
  .quiz-option-card p { margin-top: 0.15rem !important; }

  .hero-title { font-size: clamp(1.75rem, 8.5vw, 2.2rem); }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }

  .spec-chips { grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }
}

/* ---- Small / older Android phones (<= 380px) ---- */
@media (max-width: 380px) {
  .container { padding: 0 0.85rem; }
  .brand-logo { font-size: 1.1rem; gap: 0.45rem; }
  .logo-icon { width: 34px; height: 34px; }
  .logo-icon svg { width: 18px; height: 18px; }
  .header-actions { gap: 0.35rem; }
  .icon-btn { width: 42px; height: 42px; }
  .mobile-nav-toggle { width: 42px; height: 42px; }
  .hero-stats-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-number { font-size: 1.35rem; }
  .card-footer { flex-direction: column; align-items: stretch; }
  .card-footer .btn { width: 100%; }
  .spec-chips { grid-template-columns: 1fr; gap: 0.4rem; }
  .spec-chip { flex-direction: row; justify-content: space-between; text-align: left; }
  .badge { font-size: 0.62rem; }
}

/* ---- Phone in landscape: keep modals usable on short screens ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section { min-height: auto; padding-bottom: 2.5rem; }
  .modal-hero { height: 150px; }
  .quiz-options-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Booking modal is narrower on desktop, full-bleed sheet on phones */
.modal-content-narrow { max-width: 650px; }

@media (max-width: 768px) {
  .modal-content-narrow { max-width: 100%; }
}

/* --------------------------------------------------------------------------
   13. Light theme: elements that sit on the dark hero photo
   --------------------------------------------------------------------------
   The header and hero copy are layered over a darkened image in BOTH themes,
   so their text must stay light even when the page is in light mode.
   -------------------------------------------------------------------------- */

/* --- Header while transparent (i.e. before the page scrolls) --- */
.site-header:not(.scrolled) .brand-name,
.site-header:not(.scrolled) .nav-link {
  color: #ffffff;
}

.site-header:not(.scrolled) .brand-name span {
  color: #00f2fe;
}

.site-header:not(.scrolled) .nav-link.active::after {
  background: #00f2fe;
}

.site-header:not(.scrolled) .icon-btn,
.site-header:not(.scrolled) .mobile-nav-toggle,
.site-header:not(.scrolled) .currency-select {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header:not(.scrolled) .icon-btn .badge-count {
  border-color: rgba(255, 255, 255, 0.4);
}

/* --- Hero copy --- */
.hero-title {
  color: #ffffff;
}

.hero-description {
  color: rgba(255, 255, 255, 0.88);
}

.hero-stats-row {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.hero-section .stat-number {
  color: #00f2fe;
}

.hero-section .stat-label {
  color: rgba(255, 255, 255, 0.82);
}

/* Hero badges keep their bright-on-dark treatment */
.hero-badge-row .badge-gold {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.35);
}

.hero-badge-row .badge-brand {
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.18);
  border-color: rgba(0, 242, 254, 0.35);
}

/* --- Softer brand glows in light mode (neon halos look wrong on white) --- */
[data-theme="light"] .btn-primary {
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.3);
}

[data-theme="light"] .logo-icon {
  box-shadow: 0 4px 12px rgba(14, 116, 144, 0.35);
}

[data-theme="light"] .tag-btn.active {
  box-shadow: 0 4px 12px rgba(14, 116, 144, 0.28);
}

[data-theme="light"] .timeline-dot {
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15);
}

[data-theme="light"] .filter-input:focus,
[data-theme="light"] .filter-select:focus {
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.18);
}

[data-theme="light"] .price-summary-box {
  background: rgba(14, 116, 144, 0.06);
  border-color: rgba(14, 116, 144, 0.22);
}

[data-theme="light"] .quiz-section {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.06) 0%, rgba(37, 99, 235, 0.05) 100%);
}

[data-theme="light"] .quiz-option-card.selected {
  background: rgba(14, 116, 144, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  [data-theme="light"] .quiz-option-card:hover {
    background: rgba(14, 116, 144, 0.08);
  }
}

/* Cards need a visible edge on a white page, not just a faint glow */
[data-theme="light"] .trip-card,
[data-theme="light"] .controls-bar,
[data-theme="light"] .eco-panel,
[data-theme="light"] .quiz-container {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-sm);
}
