/* Technical Dashboard Styles */

:root {
  /* === CLASSIC PINK THEME (Default) === */
  /* Brand colors */
  --coral: #E95D32; /* Primary coral/orange */
  --coral-light: #F07952; /* Lighter coral */
  --coral-dark: #D34822; /* Darker coral */
  --pink: #B45D9A; /* Mila pink/magenta */
  --pink-light: #C877AF; /* Lighter pink */
  --pink-dark: #9F4A85; /* Darker pink */

  /* SurfHackerSplash.png Palette */
  --teal: #4D9B8F; /* Main wave color */
  --teal-light: #7FBFB5; /* Wave highlights */
  --teal-dark: #3D7C72; /* Darker teal */
  --navy: #2C3E5E; /* Dark wave, data elements */
  --navy-light: #5B7C99; /* Steel blue mid-tone */
  --navy-dark: #1E2A42; /* Darker navy */
  --orange: #E95D32; /* Same as coral */
  --orange-light: #F8A887; /* Lighter orange */
  --orange-dark: #C74A23; /* Darker orange */
  --cream: #F5E6D3; /* Surfboard color */

  /* Base colors */
  --white: #FFFFFF; /* Pure white background */
  --off-white: #FAFAFA; /* Subtle off-white */
  --gray: #333333; /* Dark gray for text */
  --gray-light: #666666; /* Medium gray */
  --gray-lighter: #999999; /* Light gray */
  --border-color: #E5E5E5; /* Very light gray borders */

  /* Semantic colors - Ocean Wave theme (DEFAULT) */
  --primary: var(--teal); /* Teal for primary actions */
  --primary-dark: var(--teal-dark);
  --primary-light: var(--teal-light);
  --secondary: var(--navy); /* Navy for trust elements */
  --accent: var(--orange); /* Orange for accents/CTAs */
  --surface: #E6F4F2; /* Very light teal backgrounds */
  --text: var(--gray); /* Dark gray text on white */
  --text-muted: var(--gray-light);
  --text-light: var(--gray-lighter);
  --bg: var(--white);
  --bg-secondary: var(--off-white);
  --card-bg: var(--white);
  --border: var(--border-color);

  /* System colors */
  --danger: #ef4444;
  --success: #10b981;

  /* Shadows - very subtle for minimal design */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 8px -2px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 16px -4px rgba(0, 0, 0, 0.10);
}

/* === THEME 1: CLASSIC PINK === */
[data-theme="classic-pink"] {
  --primary: var(--pink);
  --primary-dark: var(--pink-dark);
  --primary-light: var(--pink-light);
  --secondary: var(--coral);
  --accent: var(--coral);
  --surface: var(--off-white);
}

/* === THEME 2: NAVY DEPTHS (Navy Primary) === */
[data-theme="navy-depths"] {
  --primary: var(--navy);
  --primary-dark: var(--navy-dark);
  --primary-light: var(--navy-light);
  --secondary: var(--teal);
  --accent: var(--orange);
  --surface: #E8ECEF; /* Very light navy */
}

/* === THEME 3: SUNSET SURF (Orange Primary) === */
[data-theme="sunset-surf"] {
  --primary: var(--orange);
  --primary-dark: var(--orange-dark);
  --primary-light: var(--orange-light);
  --secondary: var(--teal);
  --accent: var(--navy);
  --surface: #FEF2ED; /* Very light orange */
}

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

/* Lucide Icons - Global Styling */
i[data-lucide] {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 2;
  vertical-align: middle;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--white);
  pointer-events: none;
}

#app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

main {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

/* Bento Grid Layout */
.trip-section {
  grid-column: span 12;
}

/* Top Navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  margin: -2rem -1.5rem 3rem -1.5rem;
  padding: 0 1.5rem;
}

.top-nav-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  gap: 2rem;
}

.top-nav-brand {
  flex-shrink: 0;
}

.top-nav-logo-img {
  height: 100px;
  width: auto;
  display: block;
}

.top-nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.top-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-nav-link {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  padding: 0.5rem 0;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.top-nav-link:hover {
  color: var(--primary);
}

.top-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.top-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.top-nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.top-nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.top-nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .top-nav-hamburger {
    display: flex;
  }

  .top-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .top-nav-menu.active {
    display: flex;
  }

  .top-nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .top-nav-link:hover {
    background: rgba(0, 191, 165, 0.05);
  }

  .top-nav-link::after {
    display: none;
  }

  .api-status {
    margin: 0.5rem 1rem;
  }
}

/* Hero Section */
.hero {
  padding: 4rem 2rem;
  margin-bottom: 4rem;
  background: var(--white);
  border-radius: 0;
  border: none;
  position: relative;
  box-shadow: none;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 666px;
  height: auto;
  display: block;
  animation: fadeInSlide 0.8s ease-out;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 600px;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-description {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-steps {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
  min-width: 140px;
  max-width: 180px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 2px 8px rgba(59, 77, 97, 0.4);
}

.step-text {
  font-size: 0.875rem;
  color: var(--text);
  text-align: left;
  line-height: 1.4;
  font-weight: 500;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s ease;
  box-shadow: none;
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 93, 154, 0.2);
}

/* Planning Mode Comparison Cards */
.planning-mode-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 100%;
}

.planning-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.planning-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(180, 93, 154, 0.12);
  transform: translateY(-4px);
}

.planning-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.planning-card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.planning-card-btn {
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  align-self: flex-start;
}

.planning-card-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 93, 154, 0.25);
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-cta-primary {
  background: var(--primary);
  color: white;
  font-weight: 600;
  box-shadow: none;
}

.hero-cta-primary:hover {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 4px 12px rgba(180, 93, 154, 0.2);
  transform: translateY(-2px);
}

.hero-cta-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.hero-cta-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image {
    order: -1;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-steps {
    justify-content: center;
  }

  .hero-step {
    align-items: center;
  }

  .step-text {
    text-align: center;
  }

  .planning-mode-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .planning-card {
    padding: 1.5rem;
  }

  .planning-card-title {
    font-size: 1.25rem;
  }

  .planning-card-btn {
    width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .hero-cta {
    width: 100%;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .step-text {
    font-size: 0.8125rem;
  }
}

@media (min-width: 769px) {
  .hero {
    padding: 4rem 2rem;
  }
}

.api-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid var(--success);
  border-radius: 20px;
  font-weight: 600;
  color: var(--success);
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
  transition: all 0.3s ease;
}

.api-status:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Preview Section */
.preview-section {
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.03) 0%, rgba(77, 208, 225, 0.03) 100%);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 191, 165, 0.1);
}

.preview-header {
  text-align: center;
  margin-bottom: 2rem;
}

.preview-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.preview-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--gray);
  margin: 0;
}

.preview-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Preview Cards */
.preview-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 191, 165, 0.1);
  border-color: rgba(0, 191, 165, 0.3);
}

.preview-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}

/* Preview Mini Stats */
.preview-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.preview-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 191, 165, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 191, 165, 0.1);
}

.preview-stat-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.preview-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.preview-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--gray);
  text-align: center;
  margin-top: 0.25rem;
}

/* Preview Wave Gauge - Simplified */
.preview-wave-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Preview Score Bars */
.preview-score-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.preview-score-bar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.preview-score-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--gray);
}

.preview-score-bar-track {
  height: 8px;
  background: rgba(0, 191, 165, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.preview-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .preview-section {
    padding: 1.5rem 1rem;
  }

  .preview-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .preview-mini-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* How It Works Section */
.how-it-works-section {
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.03) 0%, rgba(77, 208, 225, 0.03) 100%);
  border-radius: 24px;
  padding: 3rem 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.how-it-works-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.how-it-works-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
}

.how-it-works-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.how-it-works-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.how-it-works-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 191, 165, 0.15);
  border-color: rgba(0, 191, 165, 0.3);
}

.how-it-works-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.1) 0%, rgba(77, 208, 225, 0.1) 100%);
  border-radius: 16px;
  margin-bottom: 0.5rem;
}

.how-it-works-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.how-it-works-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.how-it-works-card-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.feature-item {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  padding-left: 0.5rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .how-it-works-section {
    padding: 2rem 1rem;
  }

  .how-it-works-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Trust & Coverage Section */
.trust-section {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.trust-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.trust-stat {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.05) 0%, rgba(77, 208, 225, 0.05) 100%);
}

.trust-stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.trust-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.trust-stat-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-destinations {
  max-width: 1000px;
  margin: 0 auto 2.5rem auto;
}

.trust-destinations-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 1.5rem;
}

.trust-destinations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.destination-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.1) 0%, rgba(77, 208, 225, 0.1) 100%);
  border: 1px solid rgba(0, 191, 165, 0.2);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-text);
  transition: all 0.2s ease;
}

.destination-tag:hover {
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.2) 0%, rgba(77, 208, 225, 0.2) 100%);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.trust-cta {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .trust-section {
    padding: 2rem 1rem;
  }

  .trust-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trust-stat-number {
    font-size: 2rem;
  }

  .destination-tag {
    font-size: 0.8125rem;
    padding: 0.4rem 0.875rem;
  }
}

/* Modal Styles */
.old-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.old-modal[style*="display: block"] {
  opacity: 1;
  pointer-events: all;
}

.old-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.old-modal-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateZ(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  will-change: transform;
}

.old-modal[style*="display: block"] .old-modal-container {
  transform: scale(1) translateZ(0);
}

.old-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.05) 0%, rgba(77, 208, 225, 0.05) 100%);
}

.old-modal-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.old-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--gray);
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.old-modal-close:hover {
  background: rgba(0, 191, 165, 0.1);
  color: var(--primary);
}

.old-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.section-description-text {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Modal responsive */
@media (max-width: 768px) {
  .old-modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .old-modal-header {
    padding: 1rem 1.5rem;
  }

  .old-modal-header h2 {
    font-size: 1.5rem;
  }

  .old-modal-body {
    padding: 1.5rem;
  }
}

/* Section Styling */
.feature-section {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}


.section-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.section-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* Trip Planning Tabs */
.trip-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.trip-tab-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.trip-tab-btn:hover {
  background: var(--card);
  border-color: var(--primary);
  color: var(--text);
}

.trip-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 191, 165, 0.2);
}

/* Search Results Section */
#search-results-section {
  grid-column: 1 / -1; /* Span all 12 columns of the main grid */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  animation: fadeIn 0.3s ease-in;
  box-sizing: border-box;
}

/* Tab Panels (legacy - can be removed) */
.trip-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.trip-tab-panel.active {
  display: block;
}

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

/* Responsive tab styling */
@media (max-width: 768px) {
  .trip-tab-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .trip-tabs {
    flex-direction: column;
    gap: 0.75rem;
  }

  .trip-tab-btn {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }
}

.section-description {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Stacked Vertical Layout */
.trip-planning-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.filter-controls {
  /* Preferences panel - full width below search */
  width: 100%;
}

/* Search Controls */
.search-controls {
  max-width: 100%;
  margin: 0 0 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.control-group {
  margin-bottom: 0.75rem;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-group label {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}

.control-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--gray);
  font-style: italic;
  font-weight: 500;
}

.control-warning {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 600;
  padding: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 6px;
  border-left: 3px solid var(--secondary);
}

.select-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF6B4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.select-input:hover {
  border-color: var(--primary);
}

.select-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.3);
}

.select-input option {
  padding: 0.5rem;
  font-size: 0.8rem;
  background: var(--dark-card);
  color: var(--text);
}

/* City Search Autocomplete */
.popular-cities {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.popular-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.city-quick-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  background: white;
  border: 2px solid var(--light-gray);
  border-radius: 6px;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.city-quick-btn:hover {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-1px);
}

.city-quick-btn:active {
  transform: translateY(0);
}

.city-search-wrapper {
  position: relative;
  width: 100%;
}

.city-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  background: white;
  color: var(--dark);
  transition: all 0.2s ease;
}

.city-search-input:hover {
  border-color: var(--primary);
}

.city-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.city-search-input::placeholder {
  color: var(--gray);
  opacity: 0.6;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

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

.autocomplete-item:hover {
  background: rgba(6, 182, 212, 0.1);
}

.autocomplete-item.no-results {
  cursor: default;
  color: var(--gray);
  font-style: italic;
}

.autocomplete-item.no-results:hover {
  background: transparent;
}

.city-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.airport-info {
  font-size: 0.875rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.airport-code {
  font-weight: 700;
  color: var(--primary-text);
  padding: 0.125rem 0.5rem;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 4px;
}

.airport-distance {
  font-size: 0.75rem;
  color: var(--gray);
}

.no-airport {
  color: var(--danger);
  font-size: 0.75rem;
}

/* Selected City Display */
.selected-city {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0, 191, 165, 0.08);
  border: 2px solid var(--primary);
  border-radius: 10px;
  margin-top: 0.5rem;
}

.selected-city span {
  font-weight: 600;
  color: var(--dark);
}

.clear-city-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--gray);
  cursor: pointer;
  padding: 0 0.5rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.clear-city-btn:hover {
  color: var(--danger);
  transform: scale(1.2);
}

.range-values {
  text-align: center;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.dual-range {
  position: relative;
  height: 40px;
}

.range-input {
  position: absolute;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  pointer-events: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  pointer-events: all;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.range-input::-webkit-slider-thumb:hover {
  background: var(--primary-dark);
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(0, 191, 165, 0.4);
}

.range-input:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.range-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  pointer-events: all;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.range-input::-moz-range-thumb:hover {
  background: var(--primary-dark);
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(0, 191, 165, 0.4);
}

.range-input:focus::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.range-input:nth-child(2) {
  background: transparent;
}

.range-input:nth-child(2)::-webkit-slider-thumb {
  background: var(--secondary);
  border-color: var(--secondary);
}

.range-input:nth-child(2)::-moz-range-thumb {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* Sort Controls - Now just contains help button */
.sort-controls {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Filter Controls */
.filter-controls {
  width: 100%;
  margin: 0;
  padding: 0.75rem;
  background: rgba(0, 191, 165, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(0, 191, 165, 0.15);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 191, 165, 0.1);
}

.filter-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-header-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Toggle Filters Button */
.btn-toggle-filters {
  background: transparent;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-toggle-filters:hover {
  background: rgba(0, 191, 165, 0.08);
}

.toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.75rem;
  line-height: 1;
}

.btn-toggle-filters[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

/* Filter Categories Container - Collapsible */
.filter-categories-container {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 1;
}

.filter-categories-container.collapsed {
  max-height: 0;
  opacity: 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.filter-group {
  background: white;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.filter-group.compact-range {
  padding: 0.4rem 0.6rem;
}

.filter-group label {
  display: block;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.filter-group.compact-range label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.range-value {
  font-weight: 700;
  color: var(--primary-text);
  text-transform: none;
  font-size: 0.7rem;
}

.filter-values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.filter-values span:first-child {
  color: var(--primary-text);
}

.filter-values span:last-child {
  color: var(--secondary);
}

.filter-select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: white;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: var(--primary);
  background: rgba(0, 191, 165, 0.02);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.1);
}

.filter-select option {
  padding: 0.5rem;
}

.filter-select option:checked {
  background: rgba(0, 191, 165, 0.15);
  font-weight: 600;
}

.single-range {
  position: relative;
  width: 100%;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent;
  outline: none;
  margin: 0.5rem 0;
  padding: 0;
}

/* Firefox specific track styling */
.single-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #d1d5db;
  border: none;
}

/* Webkit track styling */
.single-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: #d1d5db;
  border: none;
}

.single-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  margin-top: -7px; /* (20px thumb - 6px track) / 2 = 7px offset */
}

.single-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.35);
}

.single-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.single-range::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.35);
}

.filter-category {
  margin-bottom: 0.5rem;
}

.filter-category-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.4rem 0;
  padding-bottom: 0;
  border-bottom: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.checkbox-wrapper:hover {
  border-color: var(--primary);
  background: rgba(0, 191, 165, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
  border-radius: 3px;
}

.filter-checkbox:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.checkbox-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

/* Score Weighting Controls */
.weighting-display {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding: 0.4rem 0.6rem;
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.03), rgba(6, 182, 212, 0.03));
  border-radius: 6px;
  border: 1px solid rgba(0, 191, 165, 0.1);
}

.weight-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.weight-label {
  font-size: 0.65rem;
  color: var(--secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

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

.weighting-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.15rem;
  font-size: 0.65rem;
  color: var(--secondary);
  font-weight: 500;
}

.weight-end-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.filter-results-count {
  text-align: center;
  padding: 0.4rem 0.6rem;
  background: white;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--dark);
  border: 1px solid rgba(6, 182, 212, 0.15);
  margin-top: 0.5rem;
}

/* Pill Button Styles */
.pill-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill-btn {
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
}

.pill-btn:hover {
  border-color: var(--primary);
  background: rgba(0, 191, 165, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.pill-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pill-btn:active {
  transform: translateY(0);
  background: var(--primary-dark);
}

.pill-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.3);
  border-color: var(--primary);
}

.pill-btn:focus:not(:focus-visible) {
  box-shadow: none;
}

.btn-reset {
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-reset:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: #ef4444;
}

.btn-reset:active {
  background: rgba(239, 68, 68, 0.2);
}

/* Reset Controls */
.reset-controls {
  max-width: 400px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.reset-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  border: 2px solid var(--gray);
  border-radius: 8px;
  background: white;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reset-btn:hover {
  background: var(--gray);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
}

.reset-btn:active {
  transform: translateY(0);
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 0.75rem;
  padding: 0.875rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: none;
  border-radius: 50px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 93, 154, 0.2);
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(180, 93, 154, 0.2);
  border-color: var(--primary-dark);
}

.btn-primary:focus:not(:focus-visible) {
  box-shadow: none;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
  border-radius: 50px;
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(180, 93, 154, 0.1);
  color: var(--primary-dark);
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(180, 93, 154, 0.2);
  border-color: var(--primary);
}

.btn-secondary:focus:not(:focus-visible) {
  box-shadow: none;
}

.btn-text {
  display: block;
  font-size: 0.75rem;
}

.btn-subtext {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  margin-top: 0.25rem;
  opacity: 0.8;
}

/* Loading */
.loading {
  text-align: center;
  padding: 2rem 1rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  border: 3px solid rgba(0, 191, 165, 0.15);
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
}

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

.loading p {
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* Trip Grid */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
  width: 100%;
}

/* Trip Cards - Compact Data-Driven Design */
.trip-card {
  background: var(--dark-card);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  overflow: visible;  /* Changed from hidden - allows carousel content to display fully */
}

.trip-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.trip-card.best {
  border: 3px solid var(--primary);
  background: rgba(0, 191, 165, 0.08);
  box-shadow: 0 4px 16px rgba(0, 191, 165, 0.15);
}

.badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 191, 165, 0.15);
  color: var(--primary);
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 191, 165, 0.2);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
}

.trip-card.best .badge {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.trip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.trip-header-content {
  flex: 1;
}

.trip-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem 0;
  padding-right: 60px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Mobile card toggle - hidden by default, shown on mobile */
.mobile-card-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.toggle-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Compact summary - hidden by default, shown on mobile when collapsed */
.trip-compact-summary {
  display: none;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

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

.compact-item strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.25rem;
}

/* Trip card content - wraps collapsible content */
.trip-card-content {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  overflow: hidden;
  max-height: 5000px;
  opacity: 1;
}

.trip-description {
  display: none;
}

.trip-pros {
  display: none;
}

.trip-cons {
  display: none;
}

.trip-scores {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(0, 191, 165, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 191, 165, 0.15);
}

.score-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.score-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.score-big {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
}

.score-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.trip-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed rgba(0, 0, 0, 0.08);
}

.trip-section h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.75rem 0;
}

.trip-dates {
  margin: 0 0 0.5rem 0;
  padding: 0;
  background: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  color: var(--dark);

}

.flight-details, .surf-details {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.detail {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--dark);
  font-weight: 500;
  white-space: nowrap;
}

.surf-time {
  margin: 0 0 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  color: var(--success);
  font-weight: 600;
  border-left: 4px solid var(--success);
}

.spots-label {
  margin: 0;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--gray);
  font-style: italic;
}

.flight-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.flight-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--dark);
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 2px solid var(--dark);
}

.flight-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.flight-link:active {
  transform: translateY(0);
}

/* Forecast Grid */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.forecast-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.forecast-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.forecast-card.best {
  background: rgba(0, 191, 165, 0.08);
  border: 3px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 191, 165, 0.25);
}

.forecast-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--dark);
}

.forecast-card .country {
  margin: 0;
  color: var(--gray);
  font-size: 0.75rem;
}

.forecast-card .date {
  margin: 0.5rem 0 0.75rem;
  color: var(--primary-text);
  font-weight: 600;
  font-size: 0.875rem;
}

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

.condition {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.condition .label {
  color: var(--gray);
  font-size: 0.875rem;
  font-weight: 500;
}

.condition .value {
  font-weight: 700;
  color: var(--dark);
}

.condition .score-value {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Find Flights Button in Forecast Cards */
.find-flights-btn {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.find-flights-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
  background: var(--primary-dark);
}

.find-flights-btn:active {
  transform: translateY(0);
}

/* Flight Link Card */
.flight-link-card {
  max-width: 700px;
  margin: 1.5rem auto;
  background: rgba(0, 191, 165, 0.04);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.flight-link-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px dashed rgba(6, 182, 212, 0.2);
}

.flight-link-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.5rem 0;
}

.flight-link-subtitle {
  font-size: 1rem;
  color: var(--gray);
  margin: 0;
  font-weight: 600;
}

.flight-link-info {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(6, 182, 212, 0.03);
  border-radius: 8px;
}

.info-row .info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-row .info-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
}

.flight-link-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.flight-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flight-link-btn.primary {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.flight-link-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.flight-link-btn.secondary {
  background: white;
  color: var(--dark);
  border-color: var(--light-gray);
}

.flight-link-btn.secondary:hover {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-2px);
}

.flight-link-btn:active {
  transform: translateY(0);
}

.flight-link-btn .btn-icon {
  font-size: 1.25rem;
}

.flight-link-note {
  text-align: center;
  margin: 0;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 10px;
  border-left: 4px solid var(--secondary);
  font-size: 0.875rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .flight-link-info {
    grid-template-columns: 1fr;
  }

  .flight-link-buttons {
    grid-template-columns: 1fr;
  }

  .flight-link-card {
    padding: 1.5rem;
  }
}

/* Spots Section */
.spots-section {
  background: white;
  border-radius: 16px;
  padding: 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.spots-grid ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 0;
}

.spots-grid li {
  padding: 1rem 1.5rem;
  background: rgba(0, 191, 165, 0.04);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.spots-grid li:hover {
  background: rgba(0, 191, 165, 0.08);
  transform: translateX(4px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  background: transparent;
}

.footer-main {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--primary-text);
  margin: 0.75rem 0;
  font-weight: 500;
}

.footer-tech {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}


.footer-info {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 191, 165, 0.04);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  border: 1px solid rgba(0, 191, 165, 0.12);
}

.error {
  color: var(--danger);
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.08);
  border: 2px solid var(--danger);
  border-radius: 20px;
  font-weight: 600;
}

/* Trip Details Button */
.trip-details-container {
  margin-top: 1.5rem;
}

/* Carousel Styles */
.trip-carousel {
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;  /* Clip slides properly during transitions */
  min-height: 400px; /* Fixed height for consistent card sizing */
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  max-width: 100%;  /* Prevent expansion */
  flex-shrink: 0;
  padding: 0;  /* No horizontal padding - card already has padding */
  box-sizing: border-box;
}

.carousel-slide.summary-slide {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.carousel-slide.details-slide {
  /* Details content styling handled by existing .details-grid styles */
}

/* Carousel Controls */
.carousel-controls {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-dots .dot:hover {
  background: var(--secondary);
  transform: scale(1.2);
}

.carousel-dots .dot.active {
  background: var(--primary);
  width: 12px;
  height: 12px;
  border-color: rgba(0, 191, 165, 0.2);
}

/* Adjust button to work within carousel controls */
.carousel-controls .details-view-btn {
  width: 100%;
  max-width: 300px;
}

/* Load More Button */
.load-more-btn {
  width: 100%;
  max-width: 400px;
  margin: 1.5rem auto 0;
  padding: 0.875rem 1.5rem;
  background: rgba(6, 182, 212, 0.08);
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.load-more-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

.details-view-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.details-view-btn:active {
  transform: translateY(0);
}

.details-view-btn .btn-icon {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.details-view-btn:hover .btn-icon {
  transform: translateY(-2px);
}

/* ==================== EXPANDABLE TRIP DETAILS ==================== */
/* NOTE: Replaced with carousel-based navigation (see .trip-carousel above) */

/* Old expandable styles - no longer used
.trip-details-expanded {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin-top 0.4s ease;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

.trip-details-expanded.expanded {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
*/

/* Details Grid Layout */
.details-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Detail Section */
.detail-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;  /* Ensure it doesn't exceed container */
  box-sizing: border-box;
}

.detail-section h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

/* Detail Items */
.detail-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;  /* Reduced from 1rem for better fit */
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .detail-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  overflow: hidden;
}

.detail-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* CTA Buttons in Details */
.detail-cta-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.detail-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.detail-cta-btn:active {
  transform: translateY(0);
}

/* Nearby Spots */
.detail-spots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.detail-spots-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-spot-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--dark-bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Container */
.modal-container {
  background: white;
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
  background: var(--primary);
  padding: 2.5rem 2rem 2rem;
  border-radius: 24px 24px 0 0;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.modal-title-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: white;
  letter-spacing: -0.01em;
}

.modal-airport {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
  font-weight: 500;
}

.modal-scores {
  flex-shrink: 0;
}

.modal-score-box {
  background: rgba(255, 255, 255, 0.25);
  padding: 1.25rem 1.75rem;
  border-radius: 20px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-score-box .score-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.modal-score-box .score-big {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: white;
  letter-spacing: -0.02em;
}

/* Modal Dates */
.modal-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 191, 165, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.date-item {
  text-align: center;
}

.date-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.date-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  letter-spacing: -0.01em;
}

.date-item.highlight {
  background: rgba(16, 185, 129, 0.08);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: 2px solid var(--success);
}

.date-item.highlight .date-label {
  color: var(--success);
}

.date-item.highlight .date-value {
  color: var(--success);
  font-size: 1.25rem;
}

.date-arrow {
  font-size: 1.5rem;
  opacity: 0.5;
}

/* Modal Body */
.modal-body {
  padding: 2rem;
}

.modal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.08);
}

.modal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.modal-section h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(6, 182, 212, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
  transform: translateY(-4px);
}

.info-card.highlight {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--success);
}

.info-card.highlight:hover {
  border-color: var(--success);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.info-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
}

.info-note {
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 500;
}

/* Price Warning */
.price-warning {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--secondary);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--dark);
  font-weight: 500;
}

.warning-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* CTA Buttons */
.modal-cta-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
}

.cta-btn.primary {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.cta-btn.secondary {
  background: white;
  color: var(--dark);
  border-color: var(--light-gray);
}

.cta-btn.secondary:hover {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-2px);
}

.cta-icon {
  font-size: 1.25rem;
}

/* Surf Spots List */
.surf-spots-list {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(6, 182, 212, 0.03);
  border-radius: 12px;
}

.surf-spots-list h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1rem 0;
}

.spots-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spot-tag {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s ease;
}

.spot-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Destination Section */
.modal-section.destination {
  background: rgba(212, 181, 232, 0.04);
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid rgba(139, 92, 246, 0.1);
}

.dest-badges-modal {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.badge-modal {
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid;
}

.badge-modal.wave {
  background: rgba(0, 191, 165, 0.12);
  color: var(--primary);
  border-color: var(--primary);
}

.badge-modal.skill {
  background: rgba(245, 158, 11, 0.15);
  color: var(--secondary);
  border-color: var(--secondary);
}

.badge-modal.season {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-color: var(--success);
}

.dest-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--dark);
  margin: 0 0 1.5rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border-left: 4px solid #8b5cf6;
}

.dest-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dest-detail {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dest-detail h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.75rem 0;
}

.dest-detail p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray);
}

/* Surf Camps Section */
.surf-camps {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.surf-camps h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.surf-camps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.surf-camp-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.surf-camp-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.camp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.camp-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  flex: 1;
  line-height: 1.3;
}

.camp-price {
  font-weight: 700;
  font-size: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.surf-camp-card:has(.camp-price:contains('$$')) .camp-price {
  background: rgba(212, 181, 232, 0.15);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
}

.surf-camp-card:has(.camp-price:contains('$$$$')) .camp-price {
  background: rgba(0, 191, 165, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.camp-type {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.camp-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray);
  margin: 0;
  flex: 1;
}

.camp-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.highlight-badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent);
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
}

.camp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
  width: fit-content;
}

.camp-link:hover {
  color: var(--accent-glow);
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .trip-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .forecast-grid {
    grid-template-columns: 1fr;
  }

  .spots-grid ul {
    grid-template-columns: 1fr;
  }

  .flight-links {
    grid-template-columns: 1fr;
  }

  .trip-header h3 {
    padding-right: 60px;
    font-size: 1rem;
  }

  /* Mobile Accordion Cards */
  .trip-header {
    cursor: pointer;
    user-select: none;
  }

  .mobile-card-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-width: 36px;
    min-height: 36px;
  }

  .trip-compact-summary {
    display: flex;
  }

  .trip-card-content.mobile-collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
  }

  .trip-card {
    padding: 1rem;
  }

  .hero {
    padding: 1.5rem 1rem;
  }

  .hero-title {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }

  .hero-description {
    font-size: 0.875rem !important;
  }

  .hero-steps {
    gap: 1rem;
    flex-direction: column;
  }

  .hero-step {
    min-width: 100%;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .step-text {
    font-size: 0.875rem;
  }

  .hero-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  .feature-section {
    padding: 1.5rem 1rem;
  }

  /* Preview section mobile */
  .preview-section {
    padding: 1.5rem 1rem;
  }

  .preview-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .preview-title {
    font-size: 1.25rem;
  }

  .preview-subtitle {
    font-size: 0.875rem;
  }

  /* Mobile layout adjustments */
  .trip-planning-layout {
    gap: 1rem;
  }

  /* Search controls mobile */
  .search-controls {
    padding: 0.875rem;
  }

  .control-group {
    margin-bottom: 0.75rem;
  }

  .control-group label {
    font-size: 0.8125rem;
  }

  .control-hint {
    font-size: 0.6875rem;
  }

  /* Buttons mobile - ensure 44px minimum touch target */
  .btn-primary, .btn-secondary {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    min-height: 44px;
  }

  .btn-hero {
    padding: 1rem 1.5rem;
    min-height: 48px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-header {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .filter-controls {
    padding: 0.875rem;
  }

  .filter-header h3 {
    font-size: 0.8125rem;
  }

  .filter-category-title {
    font-size: 0.875rem;
  }

  .filter-group label {
    font-size: 0.6875rem;
  }

  /* Ensure form controls are touch-friendly */
  .range-input {
    min-height: 44px;
    padding: 0.75rem 0;
  }

  .select-input {
    min-height: 44px;
    font-size: 0.9375rem;
  }

  .pill-btn {
    min-height: 36px;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }

  .checkbox-wrapper {
    min-height: 44px;
  }

  /* App-level mobile adjustments */
  #app {
    padding-bottom: 2rem;
  }

  /* Footer mobile */
  footer {
    padding: 2rem 1rem;
  }

  .footer-main {
    font-size: 0.875rem;
  }

  .footer-tech {
    font-size: 0.75rem;
  }

  .footer-disclaimer {
    font-size: 0.6875rem;
  }

  /* Section headers */
  .section-header h2 {
    font-size: 1.25rem;
  }

  /* Trip grid spacing */
  .trip-grid {
    gap: 0.875rem;
  }

  /* Modal Responsive */
  .modal-overlay {
    padding: 0;
  }

  .modal-container {
    border-radius: 0;
    max-height: 100vh;
  }

  .modal-header {
    flex-direction: column;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 0;
  }

  .modal-title-section h2 {
    font-size: 1.5rem;
  }

  .modal-score-box {
    width: 100%;
  }

  .modal-dates {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .date-item {
    width: 100%;
  }

  .date-arrow {
    transform: rotate(90deg);
  }

  .modal-body {
    padding: 1.5rem 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .surf-camps-grid {
    grid-template-columns: 1fr;
  }

  .surf-camp-card {
    padding: 1.25rem;
  }

  .modal-cta-buttons {
    grid-template-columns: 1fr;
  }

  .dest-details-grid {
    grid-template-columns: 1fr;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
}

/* Destination Info Section */
.destination-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px dashed rgba(0, 0, 0, 0.08);
}

.learn-more-btn {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(0, 191, 165, 0.06);
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.learn-more-btn:hover {
  background: rgba(0, 191, 165, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.learn-more-btn:active {
  transform: translateY(0);
}

.learn-more-btn .arrow {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
  color: var(--primary);
  font-weight: 700;
}

.dest-details {
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  border: 2px solid rgba(6, 182, 212, 0.15);
  animation: slideDown 0.3s ease;
}

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

.dest-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dest-badges span {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-wave {
  background: rgba(0, 191, 165, 0.12);
  color: var(--primary-text);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0, 191, 165, 0.15);
}

.badge-skill {
  background: rgba(212, 181, 232, 0.15);
  color: var(--secondary);
  border: 2px solid var(--secondary);
  box-shadow: 0 2px 6px rgba(212, 181, 232, 0.15);
}

.badge-season {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 2px solid var(--success);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

.dest-summary {
  margin: 0 0 1rem 0;
  padding: 1rem;
  background: rgba(212, 181, 232, 0.06);
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--dark);
  border-left: 4px solid #8b5cf6;
}

.dest-culture, .dest-cuisine {
  margin: 0.75rem 0;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.dest-culture strong, .dest-cuisine strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dest-culture {
  color: var(--dark);
}

.dest-cuisine {
  color: var(--dark);
}

/* Alert Management Section */
.alerts-container {
  max-width: 900px;
  margin: 0 auto;
}

.alert-form-wrapper {
  margin-bottom: 2rem;
}

.alert-form-container {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.alert-form-container h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1.5rem;
}

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

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  background: white;
  color: var(--dark);
  transition: all 0.2s ease;
}

.form-input:hover {
  border-color: var(--primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--gray);
  font-style: italic;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-cancel {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  border: 2px solid var(--gray);
  border-radius: 10px;
  background: white;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-cancel:hover {
  background: var(--gray);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
}

.btn-cancel:active {
  transform: translateY(0);
}

/* Alerts List */
.alerts-list h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1rem;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
  font-style: italic;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  border: 2px dashed var(--light-gray);
}

.alert-item {
  background: white;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.alert-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.alert-item.paused {
  opacity: 0.7;
  background: rgba(0, 0, 0, 0.02);
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.alert-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.active {
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.status-indicator.paused {
  background: var(--gray);
}

.status-text {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alert-actions {
  display: flex;
  gap: 0.5rem;
}

.alert-btn {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pause-btn {
  background: var(--secondary);
  color: white;
  border: 2px solid var(--secondary);
}

.pause-btn:hover {
  background: #ea8a0a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.delete-btn {
  background: white;
  color: var(--danger);
  border: 2px solid var(--danger);
}

.delete-btn:hover {
  background: var(--danger);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.alert-btn:active {
  transform: translateY(0);
}

.alert-details {
  font-size: 0.875rem;
}

.alert-field {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.alert-field strong {
  color: var(--dark);
  font-weight: 700;
}

.alert-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--gray);
}

.alert-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Tiered Trips Container */
.tiered-trips-container {
  margin-top: 1.5rem;
}

.trip-tier {
  margin-bottom: 3rem;
}

.tier-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 191, 165, 0.06);
  border-radius: 16px;
  border: 2px solid rgba(6, 182, 212, 0.2);
}

.tier-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.tier-description {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 500;
  margin: 0;
}

.trip-quick-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
  background: none;
}

.summary-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Override for button container */
.summary-item.summary-button-item {
  background: none;
  border: none;
  padding: 0;
}

.summary-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.125rem;
  font-family: 'Inter', sans-serif;
}

.summary-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.price-searching-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding: 0.375rem 0.625rem;
  background: rgba(0, 191, 165, 0.06);
  border-radius: 6px;
  font-size: 0.6875rem;
  color: #0369a1;
  font-weight: 600;
  animation: pulse 2s ease-in-out infinite;
}

.price-searching-indicator .spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 191, 165, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.25rem;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .alert-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .alert-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .trip-quick-summary {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .tier-header {
    padding: 1rem;
  }
}

/* Progress Bar Styles */
.progress-bar-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 30px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 15px;
  margin: 1rem auto;
  overflow: hidden;
  border: 2px solid rgba(6, 182, 212, 0.3);
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 15px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--dark);
  text-shadow: 0 0 3px white;
}

/* Progress Log Styles */
.loading-message {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.progress-log {
  max-height: 200px;
  overflow-y: auto;
  background: rgba(0, 191, 165, 0.04);
  border-radius: 16px;
  padding: 1rem;
  border: 2px solid rgba(0, 191, 165, 0.2);
}

.progress-entry {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--dark);
  border-left: 4px solid var(--success);
  animation: slideIn 0.3s ease;
}

.progress-entry.error {
  border-left-color: var(--danger);
  color: var(--danger);
  background: rgba(239, 68, 68, 0.05);
}

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

.progress-log::-webkit-scrollbar {
  width: 8px;
}

.progress-log::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.progress-log::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.progress-log::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Score Help Icon and Modal */
.help-icon {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: rgba(0, 191, 165, 0.04);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
}

.help-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.3);
}

.help-icon:active {
  transform: translateY(0);
}

/* Score Modal */
.score-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.score-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.score-modal-content {
  position: relative;
  background: var(--dark-card);
  border-radius: 2px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid var(--border);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.score-modal-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1.5rem 0;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.score-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid var(--border);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: #ef4444;
}

.score-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--dark);
  border-radius: 2px;
  border: 1px solid var(--border);
}

.score-section:last-child {
  margin-bottom: 0;
}

.score-section h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-text);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-section p {
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
  color: var(--text);
  font-size: 0.8rem;
}

.score-section code {
  display: block;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--primary-text);
  font-weight: 500;
  margin: 0.75rem 0;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.score-section ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.25rem;
}

.score-section li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: var(--text);
  font-size: 0.8rem;
}

.score-section strong {
  color: var(--primary-text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .score-modal-content {
    padding: 1rem;
    max-height: 100vh;
    border-radius: 0;
  }

  .score-modal-content h3 {
    font-size: 1rem;
  }

  .score-section {
    padding: 0.75rem;
  }

  .score-section h4 {
    font-size: 1.125rem;
  }

  .help-icon {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Daily Forecasts Section */
.daily-forecasts {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.daily-forecasts h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1.5rem 0;
}

.daily-forecast-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.daily-forecast-item {
  background: rgba(0, 191, 165, 0.03);
  border: 2px solid rgba(6, 182, 212, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.daily-forecast-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.daily-forecast-item.best-day {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--success);
  border-width: 3px;
}

.daily-forecast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.daily-date {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.best-day-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--success);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.daily-conditions {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.daily-conditions.excellent {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.daily-conditions.good {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
}

.daily-conditions.fair {
  background: rgba(234, 179, 8, 0.15);
  color: #d97706;
}

.daily-conditions.moderate {
  background: rgba(156, 163, 175, 0.15);
  color: var(--gray);
}

.daily-forecast-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.daily-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.daily-stat-label {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.daily-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
}

.daily-description {
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .daily-forecast-body {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .daily-forecast-item {
    padding: 1rem;
  }

  .daily-stat-value {
    font-size: 1.125rem;
  }

  .daily-date {
    font-size: 0.9rem;
  }

  .best-day-badge,
  .daily-conditions {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
}

/* ==================== INFOGRAPHICS & VISUALIZATIONS ==================== */

/* Score Breakdown Bars */
.score-breakdown {
  margin-top: 1.25rem;
  padding: 0.75rem;
  background: rgba(0, 191, 165, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(0, 191, 165, 0.1);
}

.score-breakdown-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.score-bar-item {
  margin-bottom: 0.75rem;
}

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

.score-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.score-bar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.score-bar-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
}

.score-bar-track {
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.score-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.score-bar-fill.excellent {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.score-bar-fill.good {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.score-bar-fill.moderate {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.score-bar-fill.low {
  background: linear-gradient(90deg, #6b7280 0%, #9ca3af 100%);
}

/* Wave Height Gauge */
.wave-gauge-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 1.25rem;
}

.wave-gauge {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.wave-gauge-svg {
  transform: rotate(-90deg);
}

.wave-gauge-bg {
  fill: none;
  stroke: var(--light-gray);
  stroke-width: 8;
}

.wave-gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wave-gauge-fill.beginner {
  stroke: #10b981;
}

.wave-gauge-fill.intermediate {
  stroke: var(--primary);
}

.wave-gauge-fill.advanced {
  stroke: #f59e0b;
}

.wave-gauge-fill.expert {
  stroke: #ef4444;
}

.wave-gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.wave-gauge-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.wave-gauge-unit {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 600;
}

.wave-gauge-info {
  flex: 1;
}

.wave-gauge-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.wave-gauge-level {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.wave-gauge-scale {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.wave-gauge-scale-item {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.wave-gauge-scale-item.beginner {
  background: #10b981;
}

.wave-gauge-scale-item.intermediate {
  background: var(--primary);
}

.wave-gauge-scale-item.advanced {
  background: #f59e0b;
}

.wave-gauge-scale-item.expert {
  background: #ef4444;
}

.wave-gauge-scale-item.active {
  opacity: 1;
}

/* Consistency Gauge (for historical trips) */
.consistency-gauge-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 1.25rem;
}

.consistency-gauge {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.consistency-gauge-svg {
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: var(--light-gray);
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke-width: 8;
  transition: stroke-dashoffset 0.5s ease;
}

.gauge-fill.excellent {
  stroke: #22c55e;
}

.gauge-fill.good {
  stroke: #3b82f6;
}

.gauge-fill.moderate {
  stroke: #f59e0b;
}

.gauge-fill.low {
  stroke: #ef4444;
}

.consistency-gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1;
}

.consistency-gauge-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.consistency-gauge-unit {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.consistency-gauge-info {
  flex: 1;
}

.consistency-gauge-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.consistency-gauge-desc {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Historical Section Specific - now handled by tabs */

.historical-section .section-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.date-inputs {
  display: flex;
  gap: 1rem;
}

.date-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.date-input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s ease;
}

.date-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Daily Forecast Mini-Chart */
.daily-forecast-chart {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.daily-forecast-chart-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.daily-forecast-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 100px;
  padding: 0.5rem 0;
}

.forecast-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.forecast-bar-column {
  width: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  position: relative;
  min-height: 4px;
  cursor: pointer;
}

.forecast-bar-column:hover {
  opacity: 0.8;
  transform: scaleY(1.05);
}

.forecast-bar-column.best-day {
  background: linear-gradient(180deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.forecast-bar-value {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text);
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.forecast-bar-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.25rem;
}

.forecast-bar-best-badge {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-0.25rem);
  background: var(--success);
  color: white;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* Filter Impact Visualization */
.filter-impact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.05) 0%, transparent 100%);
  border-radius: 10px;
  border: 1px solid rgba(0, 191, 165, 0.2);
  margin-top: 1rem;
}

.filter-impact-chart {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.filter-donut {
  transform: rotate(-90deg);
}

.filter-donut-bg {
  fill: none;
  stroke: var(--light-gray);
  stroke-width: 6;
}

.filter-donut-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-impact-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.filter-impact-info {
  flex: 1;
}

.filter-impact-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.filter-impact-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.filter-impact-bar {
  margin-top: 0.5rem;
  height: 6px;
  background: var(--light-gray);
  border-radius: 3px;
  overflow: hidden;
}

.filter-impact-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Score Component Breakdown */
.score-components {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.score-component-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem;
}

.score-component-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.score-component-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-component-total {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.score-component-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.score-component-label {
  font-size: 0.7rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.score-component-weight {
  font-size: 0.625rem;
  color: var(--gray);
  font-weight: 500;
}

.score-component-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

/* Metric Pills */
.metric-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.metric-pill {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(0, 191, 165, 0.08);
  border: 1px solid rgba(0, 191, 165, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
}

.metric-pill:hover {
  background: rgba(0, 191, 165, 0.15);
  transform: translateY(-1px);
}

.metric-pill-icon {
  font-size: 0.875rem;
}

.metric-pill-value {
  color: var(--primary);
  font-family: 'Inter', sans-serif;
}

/* Responsive Adjustments for Visualizations */
@media (max-width: 768px) {
  .trip-stats-grid {
    grid-template-columns: 1fr;
  }

  .score-components {
    grid-template-columns: 1fr;
  }

  .wave-gauge-container {
    flex-direction: column;
    text-align: center;
  }

  .daily-forecast-bars {
    gap: 0.25rem;
  }

  .forecast-bar-value {
    font-size: 0.55rem;
  }

  .forecast-bar-label {
    font-size: 0.55rem;
  }
}

/* ==========================================
   WIZARD STYLES
   ========================================== */

.wizard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wizard-container {
  background: var(--card-bg);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

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

/* Progress Bar */
.wizard-progress {
  padding: 1.5rem 2rem 0;
  position: relative;
}

.wizard-steps-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0;
}

/* Connecting line between dots */
.wizard-steps-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--border-color);
  transform: translateY(-50%);
  z-index: 0;
}

/* Progress fill line */
.wizard-progress-bar {
  position: absolute;
  top: 50%;
  left: 18px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  width: 0%;
  transform: translateY(-50%);
  transition: width 0.4s ease;
  z-index: 1;
}

.wizard-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid var(--light-gray);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.wizard-step-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.2);
}

.wizard-step-dot.completed {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Step Content */
.wizard-step {
  display: none;
  padding: 2rem 1.5rem;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.wizard-step-content {
  text-align: center;
}

.wizard-question {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.wizard-hint {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.wizard-label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-align: left;
}

/* Section divider between questions */
.wizard-section-divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
  position: relative;
}

.wizard-section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 3px;
  background: var(--card-bg);
}

/* City Select */
.wizard-select {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.wizard-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Timing Options */
.wizard-timing-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wizard-timing-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-timing-btn:hover {
  border-color: var(--primary);
  background: rgba(0, 191, 165, 0.05);
}

.wizard-timing-btn.active {
  border-color: var(--primary);
  background: rgba(0, 191, 165, 0.1);
}

.timing-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timing-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.timing-desc {
  font-size: 0.75rem;
  color: var(--gray);
}

/* Timing Details */
.wizard-timing-details {
  background: var(--bg);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}

/* Timing Presets */
.wizard-timing-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.wizard-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.wizard-preset-btn:hover {
  border-color: var(--primary);
  background: rgba(0, 191, 165, 0.05);
}

.wizard-preset-btn.active {
  border-color: var(--primary);
  background: rgba(0, 191, 165, 0.1);
}

.preset-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.preset-dates {
  font-size: 0.75rem;
  color: var(--gray);
}

.wizard-range::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--light-gray);
  border-radius: 3px;
}

.wizard-range:first-child::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--light-gray) 0%, var(--primary) 50%, var(--light-gray) 100%);
}

/* Date Inputs */
.wizard-date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wizard-date-group {
  text-align: left;
}

.wizard-date-input {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
}

.wizard-date-input:focus {
  outline: none;
  border-color: var(--primary);
}

.wizard-date-input:hover {
  border-color: var(--primary);
  background: var(--bg);
}

/* Date input error state */
.wizard-date-input.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.wizard-date-input.error:focus {
  border-color: #dc2626;
}

.wizard-date-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.wizard-date-hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Mobile optimizations for date inputs */
@media (max-width: 768px) {
  .wizard-date-inputs {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .wizard-date-input {
    padding: 1rem;
    font-size: 1.0625rem; /* 17px - prevents iOS zoom on focus */
    min-height: 48px; /* Better touch target */
    -webkit-appearance: none;
    appearance: none;
  }

  .wizard-date-group label {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
  }

  .wizard-date-hint {
    font-size: 0.8125rem;
  }
}

/* Skill Cards */
.wizard-skill-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wizard-skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.wizard-skill-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.wizard-skill-card.active {
  border-color: var(--primary);
  background: rgba(0, 191, 165, 0.1);
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.2);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.skill-icon i[data-lucide] {
  width: 2rem;
  height: 2rem;
  stroke-width: 2;
}

.skill-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.skill-desc {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.skill-waves {
  font-size: 0.7rem;
  color: var(--primary-text);
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 191, 165, 0.1);
  border-radius: 4px;
}

/* Budget Cards */
.wizard-budget-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wizard-budget-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-budget-card:hover {
  border-color: var(--primary);
}

.wizard-budget-card.active {
  border-color: var(--primary);
  background: rgba(0, 191, 165, 0.1);
}

.budget-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.budget-icon i[data-lucide] {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 2;
}

.budget-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.budget-amount {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Layover Options */
.wizard-layover-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.wizard-layover-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-layover-btn:hover {
  border-color: var(--primary);
}

.wizard-layover-btn.active {
  border-color: var(--primary);
  background: rgba(0, 191, 165, 0.1);
}

.layover-icon {
  font-size: 1.25rem;
  margin-bottom: 0.375rem;
  color: var(--primary);
}

.layover-icon i[data-lucide] {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

/* Travel Distance Options */
.wizard-distance-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.wizard-distance-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-distance-btn:hover {
  border-color: var(--primary);
}

.wizard-distance-btn.active {
  border-color: var(--primary);
  background: rgba(0, 191, 165, 0.1);
}

.distance-icon {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
  color: var(--primary);
}

.distance-icon i[data-lucide] {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 2;
}

.distance-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.distance-desc {
  font-size: 0.75rem;
  color: var(--gray);
}

.layover-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.125rem;
}

.layover-desc {
  font-size: 0.7rem;
  color: var(--gray);
}

/* Summary */
.wizard-summary {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.wizard-summary .summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.wizard-summary .summary-item:first-child {
  padding-top: 0;
}

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

.wizard-summary .summary-label {
  color: #6b7280;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.wizard-summary .summary-value {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95rem;
}

/* Priority Slider */
.wizard-priority {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.wizard-priority .wizard-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.priority-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.75rem;
}

.priority-label {
  font-size: 0.85rem;
  color: #6b7280;
  min-width: 85px;
  font-weight: 500;
}

.priority-label:first-child {
  text-align: right;
}

.priority-label:last-child {
  text-align: left;
}

.wizard-priority-slider {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--coral), var(--pink));
  border-radius: 4px;
  cursor: pointer;
}

.wizard-priority-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: white;
  border: 3px solid var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.wizard-priority-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: white;
  border: 3px solid var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.priority-display {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
}

.priority-display span {
  font-weight: 700;
  color: var(--primary-text);
}

/* Navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem 1.5rem;
  gap: 1rem;
}

.wizard-btn {
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.wizard-btn-back {
  background: transparent;
  color: var(--gray);
  padding: 0.875rem 1rem;
}

.wizard-btn-back:hover {
  color: var(--text);
}

.wizard-btn-close {
  background: transparent;
  color: var(--gray);
  border: none;
  font-size: 0.9rem;
  padding: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wizard-btn-close:hover {
  color: var(--text);
}

.wizard-btn-next {
  background: var(--primary);
  color: white;
  flex: 1;
  max-width: 240px;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  box-shadow: none;
  border-radius: 50px;
}

.wizard-btn-next:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 93, 154, 0.2);
}

.wizard-btn-search {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  max-width: 280px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .wizard-container {
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
  }

  .wizard-timing-options,
  .wizard-skill-cards,
  .wizard-budget-cards {
    grid-template-columns: 1fr;
  }

  .wizard-layover-options,
  .wizard-distance-options {
    grid-template-columns: 1fr;
  }

  .wizard-question {
    font-size: 1.25rem;
  }

  .wizard-nav {
    flex-wrap: wrap;
  }

  .wizard-btn-next {
    order: -1;
    max-width: 100%;
    width: 100%;
  }
}

/* Quick Search Link for returning users */
.wizard-quick-search {
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: -0.5rem;
}

.wizard-quick-search-link {
  color: var(--primary-text);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.wizard-quick-search-link:hover {
  color: var(--primary-dark);
}

/* ============================================================================
   AUTHENTICATION & PAYMENT UI STYLES
   ============================================================================ */

/* Top Nav Auth Buttons */
.nav-auth-btn,
.nav-auth-btn-secondary {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.nav-auth-btn {
  background: var(--primary);
  color: white;
  border-radius: 50px;
}

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

.nav-auth-btn-secondary {
  background: transparent;
  color: var(--primary-text);
  border: 1px solid var(--border);
}

.nav-auth-btn-secondary:hover {
  background: var(--bg-secondary);
}

.nav-user-email {
  font-size: 0.9rem;
  color: var(--secondary-text);
  margin-right: 1rem;
}

.nav-user-plan {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 1rem;
}

.nav-user-plan.pro {
  background: linear-gradient(135deg, #9B8FC2 0%, #B8A5D9 100%);
  color: white;
}

.nav-user-plan.free {
  background: var(--bg-secondary);
  color: var(--secondary-text);
}

/* Modal Base Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10001;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--secondary-text);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--primary-text);
}

/* Auth Modal Styles */
#auth-modal h2 {
  font-size: 1.75rem;
  color: var(--primary-text);
  margin-bottom: 0.5rem;
}

.auth-modal-subtitle {
  color: var(--secondary-text);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.auth-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(155, 143, 194, 0.3);
}

.auth-note {
  text-align: center;
  color: var(--secondary-text);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Auth Success State */
.auth-success-icon {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.auth-success-icon i[data-lucide] {
  width: 4rem;
  height: 4rem;
  stroke-width: 2;
}

.auth-success-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-text);
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-success-subtitle {
  color: var(--secondary-text);
  text-align: center;
  line-height: 1.6;
}

/* Auth Error State */
#auth-error {
  background: #FEE;
  border: 1px solid #FCC;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

.auth-error-text {
  color: #C33;
  font-size: 0.9rem;
  margin: 0;
}

/* Upgrade Modal Styles */
#upgrade-modal h2 {
  font-size: 1.75rem;
  color: var(--primary-text);
  margin-bottom: 0.5rem;
  text-align: center;
}

.upgrade-subtitle {
  color: var(--secondary-text);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.upgrade-pricing {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #9B8FC2 0%, #B8A5D9 100%);
  border-radius: 1rem;
  color: white;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.upgrade-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.upgrade-features li {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--primary-text);
}

.feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.upgrade-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.upgrade-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(155, 143, 194, 0.4);
}

.upgrade-note {
  text-align: center;
  color: var(--secondary-text);
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* About Modal */
.about-modal-content {
  max-width: 650px;
}

.about-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.about-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.25rem;
}

.about-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 1rem;
}

.about-content h3:first-of-type {
  margin-top: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.about-stat {
  text-align: center;
}

.about-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-tech {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-tech p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Help Modal */
.help-modal-content {
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
}

.help-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.help-section {
  margin-bottom: 2.5rem;
}

.help-section:last-child {
  margin-bottom: 0;
}

.help-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.help-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.help-faq {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}

.faq-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Help Form */
.help-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.help-submit-btn {
  padding: 0.875rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.help-submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(180, 93, 154, 0.3);
}

.help-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.help-success {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.success-icon i {
  width: 32px;
  height: 32px;
}

.success-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.success-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.help-error {
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  border-radius: 10px;
  color: var(--danger);
  font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-content {
    padding: 2rem 1.5rem;
    max-width: 95%;
  }

  .nav-user-email {
    display: none;
  }

  .nav-user-plan {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    margin-right: 0.5rem;
  }

  .upgrade-pricing {
    padding: 1rem;
  }

  .price {
    font-size: 2.5rem;
  }
}

/* ========================================
   Historical Data Modal Styles
   ======================================== */

/* Button in trip card quick summary */
.summary-button-item {
  grid-column: span 2;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

/* Historical data modal content - Infographic Style */
.historical-data-modal-content {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  background: #ffffff;
}

/* Timeline Header */
.timeline-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--card-border);
}

.timeline-header h2 {
  color: var(--primary);
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.timeline-dates {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
}

.years-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(180, 93, 154, 0.1);
  border: 1px solid var(--primary);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Timeline Section */
.timeline-section {
  margin-bottom: 2rem;
}

.timeline-section-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

.timeline-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timeline-year-row {
  display: grid;
  grid-template-columns: 60px 1fr 120px;
  gap: 1rem;
  align-items: center;
}

.timeline-year-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  text-align: right;
}

.timeline-bar-container {
  position: relative;
  height: 36px;
  background: var(--background);
  border-radius: 8px;
  overflow: hidden;
}

.timeline-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  border-radius: 8px;
  transition: width 0.5s ease;
  position: relative;
}

.timeline-bar-value {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.timeline-bar-excellent {
  background: linear-gradient(90deg, var(--success), #059669);
}

.timeline-bar-good {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.timeline-bar-moderate {
  background: linear-gradient(90deg, var(--accent), var(--coral-dark));
}

.timeline-bar-poor {
  background: linear-gradient(90deg, var(--danger), #dc2626);
}

.timeline-stats {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.timeline-stat {
  color: var(--text-primary);
}

.timeline-stat-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.timeline-stat-period {
  margin-left: 0.25rem;
}

/* Timeline Legend */
.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background: var(--background);
  border-radius: 8px;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.excellent {
  background: var(--success);
}

.legend-dot.good {
  background: var(--primary);
}

.legend-dot.moderate {
  background: var(--accent);
}

.legend-dot.poor {
  background: var(--danger);
}

/* Stats Summary Cards */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--background);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  align-items: center;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 93, 154, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-card-icon i {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.stat-card-content {
  flex: 1;
  min-width: 0;
}

.stat-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1;
}

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

/* Responsive styles for timeline modal */
@media (max-width: 768px) {
  .historical-data-modal-content {
    padding: 1.5rem;
    max-height: 95vh;
  }

  .timeline-header h2 {
    font-size: 1.4rem;
  }

  .timeline-year-row {
    grid-template-columns: 50px 1fr 100px;
    gap: 0.75rem;
  }

  .timeline-year-label {
    font-size: 0.9rem;
  }

  .timeline-bar-container {
    height: 32px;
  }

  .timeline-stats {
    font-size: 0.85rem;
  }

  .stats-summary {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .historical-data-modal-content {
    padding: 1rem;
  }

  .timeline-header h2 {
    font-size: 1.2rem;
  }

  .years-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .timeline-year-row {
    grid-template-columns: 45px 1fr;
    gap: 0.5rem;
  }

  .timeline-stats {
    display: none;
  }

  .timeline-bar-container {
    height: 28px;
  }

  .timeline-bar-value {
    font-size: 0.8rem;
  }

  .timeline-legend {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .stat-card {
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .stat-card-icon {
    width: 40px;
    height: 40px;
  }

  .stat-card-icon i {
    width: 20px;
    height: 20px;
  }

  .stat-card-value {
    font-size: 1.25rem;
  }
}

/* ====================================== */
/* THEME PICKER MODAL STYLES */
/* ====================================== */

.theme-picker-modal-content {
  max-width: 900px;
  padding: 2.5rem;
}

.theme-picker-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-align: center;
}

.theme-picker-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.theme-option {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
}

.theme-option:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.theme-option.selected {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb, 180, 93, 154), 0.05);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb, 180, 93, 154), 0.2);
}

.theme-option-current {
  position: relative;
}

.theme-preview {
  margin-bottom: 1rem;
}

.theme-preview-colors {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.theme-color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.theme-preview-ui {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.theme-preview-button {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.theme-preview-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.theme-info {
  position: relative;
}

.theme-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.theme-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.theme-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-badge-recommended {
  background: var(--success);
  color: white;
}

.theme-badge-current {
  background: var(--primary);
  color: white;
}

.theme-picker-footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.theme-picker-apply-btn {
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-picker-apply-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb, 180, 93, 154), 0.3);
}

.theme-picker-cancel-btn {
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-picker-cancel-btn:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .theme-picker-modal-content {
    padding: 2rem 1.5rem;
  }

  .theme-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .theme-picker-title {
    font-size: 1.5rem;
  }

  .theme-picker-subtitle {
    font-size: 0.9rem;
  }

  .theme-option {
    padding: 1.25rem;
  }

  .theme-color-swatch {
    width: 32px;
    height: 32px;
  }

  .theme-picker-footer {
    flex-direction: column;
  }

  .theme-picker-apply-btn,
  .theme-picker-cancel-btn {
    width: 100%;
  }
}
