@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff !important;
  overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-color: #2563eb;
    --text-primary: #222222;
    --text-secondary: #717171;
    --text-tertiary: #999999;
    --text-inverse: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --accent-color: #2563eb;
    --accent-hover: #174bbd;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.1);
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

/* --- REMOVE WHITE SPACE BELOW BANNER ON BOTH PAGES --- */
header, .header, .aitinerate-banner {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.main-navigation {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body > header + *, body > .header + *, body > .aitinerate-banner + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove extra margin below header */
header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.main-navigation {
  background: #111 !important;
  color: #fff !important;
  border-bottom: 1px solid #222 !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  transition: all 0.3s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  font-size: 1.8rem;
}

.nav-actions {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.nav-btn {
  padding: 0.4rem 1.1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.nav-btn {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid #fff !important;
}

.nav-btn:hover {
  background: #2563eb !important;
  color: #fff !important;
  border-color: #2563eb !important;
}

.nav-btn.primary {
  background: #fff !important;
  color: #111 !important;
  border: 1.5px solid #fff !important;
}

.nav-btn.primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

/* Hero Section with Cool Background */
.hero {
  background: 
    linear-gradient(135deg, rgba(37,99,235,0.7) 0%, rgba(59,130,246,0.7) 100%),
    url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1500&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;
  margin-top: 0 !important;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37,99,235,0.25);
  border-radius: var(--radius-xl);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 3rem;
  opacity: 0.95;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Trip Form Container */
.trip-form-container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.trip-form {
  position: relative;
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e1e8ed;
  border-radius: 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.form-group input::placeholder {
  color: #999;
}

/* Destination Group */
.destination-group {
  position: relative;
}

.suggestions-dropdown {
  position: absolute;
  z-index: 10;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-top: 2px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: none;
}

.suggestion-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.suggestion-item:hover {
  background: #f0f4ff;
}

/* Advanced Options */
.advanced-toggle-container {
  margin-bottom: 1.5rem;
  text-align: center;
}

.advanced-toggle {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.advanced-toggle:hover {
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.advanced-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.advanced-options.expanded {
  max-height: 2000px;
}

/* Form Sections */
.form-section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #333;
  text-align: center;
}

/* Travel Style Options */
.style-options {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
}

.style-option {
  flex: 1 1 0;
  min-width: 0;
}

.style-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.7rem 0.5rem;
  border: 2px solid #e1e8ed;
  border-radius: 16px;
  transition: all 0.3s ease;
  background: white;
  height: 100%;
  min-width: 0;
  min-height: 60px;
  font-size: 0.95em;
}

.style-card:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.1);
}

.style-option.selected .style-card {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.style-icon {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.style-name {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: #333;
}

.style-desc {
  font-size: 0.8rem;
  color: #333 !important;
}

@media (max-width: 700px) {
  .style-options {
    flex-direction: row;
    gap: 0.3rem;
  }
  .style-card {
    padding: 0.5rem 0.2rem;
    font-size: 0.9em;
  }
  .style-icon {
    font-size: 1rem;
  }
  .style-name {
    font-size: 0.85rem;
  }
  .style-desc {
    font-size: 0.7rem;
  }
}

/* Budget Options */
.budget-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.budget-option {
  cursor: pointer;
  position: relative;
}

.budget-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.budget-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border: 2px solid #e1e8ed;
  border-radius: 16px;
  transition: all 0.3s ease;
  background: white;
  height: 100%;
}

.budget-card:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.1);
}

.budget-option.selected .budget-card {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.budget-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.budget-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.budget-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.interest-item {
  cursor: pointer;
  position: relative;
}

.interest-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.interest-card {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 2px solid #e1e8ed;
  border-radius: 16px;
  transition: all 0.3s ease;
  background: white;
}

.interest-card:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.interest-card.selected {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.interest-icon {
  font-size: 0.6em !important;
  margin-right: 0.3rem;
}

.interest-name {
  color: #222 !important;
  font-size: 0.65rem;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.btn-icon {
  font-size: 1.2rem;
}

/* Trending Destinations Section */
.trending-section {
  padding: 6rem 2rem;
  background: white;
}

.trending-container {
  max-width: 1400px;
  margin: 0 auto;
}

.trending-header {
  text-align: center;
  margin-bottom: 4rem;
}

.trending-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.trending-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.trending-card {
  position: relative;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.trending-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
  transition: opacity 0.3s ease;
}

.trending-card:hover .card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 1;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.card-description {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-link {
  color: #3b82f6;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.85rem;
}

.trending-card:hover .card-link {
  opacity: 1;
}

/* Coverage Options (Multi-City) */
.coverage-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.coverage-option {
  cursor: pointer;
  position: relative;
}

.coverage-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.coverage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border: 2px solid #e1e8ed;
  border-radius: 16px;
  transition: all 0.3s ease;
  background: white;
  height: 100%;
}

.coverage-card:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.1);
}

.coverage-option.selected .coverage-card {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.coverage-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.coverage-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.coverage-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* Inspirations Section - VRBO-style hodgepodge layout */
.inspirations-section {
  padding: 6rem 2rem;
  background: #f8fafc;
}

.inspirations-container {
  max-width: 1400px;
  margin: 0 auto;
}

.inspirations-header {
  text-align: center;
  margin-bottom: 4rem;
}

.inspirations-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.inspirations-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.view-all-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.view-all-btn:hover {
  background: rgba(37, 99, 235, 0.1);
  transform: translateX(4px);
}

/* Featured Section - Large hero grid */
.featured-section {
  margin-bottom: 4rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 400px 200px;
  gap: 1rem;
  margin-bottom: 3rem;
}

.featured-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
  color: white;
  text-decoration: none;
}

.featured-card:first-child {
  grid-row: 1 / 3;
}

.featured-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 700px) {
  .featured-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .featured-card {
    height: 200px;
    min-height: 140px;
  }
}

/* Weekend Section - Horizontal scroll */
.weekend-section {
  margin-bottom: 4rem;
}

.weekend-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.weekend-grid::-webkit-scrollbar {
  height: 6px;
}

.weekend-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.weekend-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.weekend-card {
  min-width: 280px;
  height: 350px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
  color: white;
  text-decoration: none;
  scroll-snap-align: start;
}

.weekend-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Adventure Section - Asymmetric grid */
.adventure-section {
  margin-bottom: 4rem;
}

.adventure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 1rem;
}

.adventure-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
  color: white;
  text-decoration: none;
}

.adventure-card:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.adventure-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Romantic Section - Square grid */
.romantic-section {
  margin-bottom: 4rem;
}

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

.romantic-card {
  position: relative;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
  color: white;
  text-decoration: none;
}

.romantic-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Family Section - Mixed sizes */
.family-section {
  margin-bottom: 4rem;
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 1rem;
}

.family-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
  color: white;
  text-decoration: none;
}

.family-card:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.family-card:nth-child(2) {
  grid-column: 3 / 5;
}

.family-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Group Section - Vertical layout */
.group-section {
  margin-bottom: 4rem;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.group-card {
  position: relative;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
  color: white;
  text-decoration: none;
}

.group-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Transportation Options */
.transport-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.transport-option {
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.transport-option input[type="checkbox"] {
    display: none;
}

.transport-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 48px;
}

.transport-card:hover {
    border-color: #FF4C4C;
    box-shadow: 0 4px 12px rgba(255, 76, 76, 0.15);
    transform: translateY(-2px);
}

.transport-card.selected {
    border-color: #FF4C4C;
    background: linear-gradient(135deg, #FF4C4C 0%, #FF7676 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 76, 76, 0.3);
}

.transport-icon {
    font-size: 32px !important;
    margin-bottom: 2px;
}
.transport-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

/* Dining Options */
.dining-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.dining-option {
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dining-option input[type="radio"] {
    display: none;
}

.dining-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 100px;
}

.dining-card:hover, .dining-option.selected .dining-card, .dining-card.selected {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.dining-icon {
    font-size: 14px !important;
    margin-bottom: 5px;
}

.dining-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.dining-desc {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.3;
}

/* Itinerary Cards */
#itinerary-cards-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    align-items: center !important; /* Center all cards horizontally */
    width: 100% !important;
    margin-bottom: 2rem !important;
    padding: 0;
}

.itinerary-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e0e4ea;
  box-shadow: 0 2px 12px rgba(37,99,235,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow 0.2s, border-color 0.2s;
  padding: 0.6rem 0.7rem 0.6rem 0.7rem;
  margin-bottom: 1px;
  border-radius: 8px;
}
.itinerary-card:hover {
  box-shadow: 0 8px 32px rgba(37,99,235,0.13);
  border-color: #2563eb;
  transform: translateY(-4px) scale(1.02);
}
.itinerary-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.itinerary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.7rem 0.4rem 0.7rem;
  font-size: 0.98rem;
  color: #2563eb;
  font-weight: 600;
  gap: 1rem;
  margin-bottom: 0.15rem;
}

.itinerary-card-header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.itinerary-card-time {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  color: #2563eb;
  font-weight: 600;
  gap: 0.3rem;
}
.time-icon {
  font-size: 1.3rem;
  color: #2563eb;
  margin-right: 0.1rem;
}

.itinerary-card-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 0 0 0 0;
  margin-bottom: 0.5rem;
}
.itinerary-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 1.25rem 1.25rem 1.25rem;
  margin-bottom: 0.1rem;
  font-size: 0.92rem;
}
.itinerary-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #222;
  margin: 0.5rem 0 0.25rem 0;
}
.itinerary-card-desc {
  color: #666;
  font-size: 1em;
  margin-bottom: 0.5rem;
}
.itinerary-card-meta {
  display: flex;
  gap: 1.2em;
  font-size: 0.97em;
  color: #4f8cff;
  align-items: center;
  margin-bottom: 0.5rem;
}
.itinerary-card-price .icon,
.itinerary-card-rating .icon {
  margin-right: 0.2em;
}
.price-level {
  color: #888;
  font-size: 0.95em;
  margin-left: 0.2em;
}
.itinerary-card-location {
  font-size: 0.87rem;
  color: #888;
  margin-bottom: 0.05rem;
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.itinerary-card-directions-btn {
  display: inline-block;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 0.55em 1.3em;
  margin: 0.5em 0 0.7em 0;
  text-decoration: none;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
  transition: background 0.2s, box-shadow 0.2s;
}
.itinerary-card-directions-btn:hover {
  background: #174bbd;
  box-shadow: 0 4px 16px rgba(37,99,235,0.18);
}
.itinerary-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 0.5em;
}
.itinerary-card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.85em;
  padding: 0.25em 0.8em;
  border-radius: 999px;
  font-weight: 500;
  background: #2563eb;
  color: #fff;
  margin-right: 0.3em;
  margin-bottom: 0.2em;
}
.icon {
  font-size: 1.1em;
  vertical-align: middle;
}

/* Itinerary Day Card: ensure centering and consistent width */
.itinerary-day-card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* Itinerary Day Header: optional styling for day/date/weather */
.itinerary-day-header {
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  border-radius: 18px 18px 0 0;
  padding: 0.4rem 0.7rem 0.4rem 0.7rem;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.itinerary-day-header-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.itinerary-day-header-weather {
  font-size: 1rem;
  opacity: 0.95;
}

/* Adjust itinerary card margin for better spacing */
.itinerary-card {
  margin: 0 0 1px 0 !important;
}

.itinerary-day-cards-wrapper {
  background: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 4px 24px rgba(37,99,235,0.07);
  padding: 0.7rem 0.7rem 1rem 0.7rem;
  gap: 0.6rem;
  margin-top: 0;
  margin-bottom: 2.5rem;
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  top: -8px;
  z-index: 1;
  left: unset;
  transform: unset;
}

@media (max-width: 600px) {
  header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .main-navigation {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  body > header + *, body > .header + *, body > .aitinerate-banner + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* --- MOBILE LAYOUT IMPROVEMENTS --- */
@media (max-width: 600px) {
  /* Where/Departure/Return: stack as 3 rows */
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  /* Travel Style: 3 horizontal rows */
  .style-options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }
  /* Interests: 2 columns */
  .interests-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }
  /* Budget: horizontal scroll if needed */
  .budget-options {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .budget-option {
    min-width: 180px;
    flex: 0 0 auto;
  }
  .featured-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .featured-card {
    height: 200px;
    min-height: 140px;
  }
  .interests-grid {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    overflow-x: visible !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .interest-item {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .interest-card {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body, html {
    overflow-x: hidden !important;
  }
}

/* Transport options: always dark font for readability */
.transport-card, .transport-card.selected {
  color: #222 !important;
}
.transport-card.selected .transport-name {
  color: #fff !important;
}

/* Dining options: always dark font for readability */
.dining-card, .dining-card.selected {
  color: #222 !important;
}
.dining-card.selected .dining-name {
  color: #fff !important;
}

/* Make all form text darker for readability */
.form-group label,
.section-title,
.style-name,
.budget-name,
.coverage-name,
.dining-name,
.transport-name,
.interest-name {
  color: #181818 !important;
}

/* Remove radio/checkbox bubbles for custom options */
.style-option input[type="radio"],
.budget-option input[type="radio"],
.coverage-option input[type="radio"],
.dining-option input[type="radio"],
.transport-option input[type="checkbox"],
.interest-item input[type="checkbox"] {
  display: none !important;
}

/* Condense advanced section: reduce vertical spacing */
.advanced-options .form-section {
  margin-bottom: 1.1rem;
  padding-bottom: 0.2rem;
}
.coverage-options,
.budget-options,
.transport-options,
.dining-options {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

/* Reduce padding in advanced cards */
.coverage-card,
.budget-card,
.transport-card,
.dining-card {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Shrink trending card city name and meta text */
.trending-card-title {
  font-size: 1rem !important;
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.trending-card-meta {
  font-size: 0.85rem !important;
}

/* Shrink nav actions for login/signup to fit one row */
.nav-actions {
  gap: 0.1rem !important;
}
.nav-btn, .nav-btn.primary {
  font-size: 0.85rem !important;
  padding: 0.25rem 0.7rem !important;
  border-radius: 7px !important;
}

/* Shrink and unfreeze export menu on second page */
.actions-preview-bar {
  position: static !important;
  background: var(--bg-primary) !important;
  box-shadow: none !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 0.5rem 0 !important;
  margin-top: 2rem !important;
}
.actions-container {
  max-width: 1000px !important;
  margin: 0 auto !important;
  display: flex !important;
  gap: 0.3rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}
.action-button {
  min-width: 70px !important;
  padding: 0.3rem 0.7rem !important;
  font-size: 0.9rem !important;
  border-radius: 7px !important;
  flex-direction: row !important;
  gap: 0.3rem !important;
  align-items: center !important;
}
.action-icon {
  font-size: 1.1rem !important;
}

/* Preference Toggles */
.preference-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.2rem;
  max-width: 420px;
  margin: 0 auto 1.2rem auto;
  justify-items: stretch;
}

@media (max-width: 600px) {
  .preference-toggles {
    grid-template-columns: 1fr;
    gap: 0.4rem 0;
    max-width: 95vw;
  }
}

/* Force action and regenerate buttons to display icons on the right */
.action-button, .regenerate-button {
  flex-direction: row-reverse !important;
}

/* Results Page: Two-column layout for itinerary and map */
@media (min-width: 1000px) {
  .results-flex-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
  }
  .results-main-col {
    flex: 2 1 0;
    min-width: 0;
  }
  .results-map-col {
    flex: 1 1 350px;
    min-width: 350px;
    max-width: 500px;
    position: sticky;
    top: 40px;
    align-self: flex-start;
  }
  #map-container {
    margin-bottom: 0;
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 999px) {
  .results-flex-layout {
    display: block;
  }
  .results-map-col {
    max-width: 100%;
    margin-top: 2rem;
  }
}

/* Flatpickr override for compact form */
.flatpickr-calendar {
  font-family: inherit;
  font-size: 1rem;
  z-index: 2000 !important;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day:hover {
  background: var(--accent-color, #2563eb);
  color: #fff;
}

/* Modern search bar styles for compact-trip-form */
.modern-search-bar {
  background: #f7f7f8;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 32px 24px 18px 24px;
  max-width: 1200px;
  margin: 32px auto 0 auto;
}
.search-fields-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  flex: 1 1 0;
}
.form-group label {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 7px;
  color: #222;
}
.form-group input,
.form-group select {
  height: 44px;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 17px;
  background: #fff;
  transition: border 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: #1a2aff;
  outline: none;
}
.outlined-btn {
  height: 44px;
  border: 2px solid #1a2aff;
  background: #fff;
  color: #1a2aff;
  border-radius: 22px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.outlined-btn:hover {
  background: #1a2aff;
  color: #fff;
}
.update-btn-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 140px;
}
.update-btn {
  width: 100%;
  margin-bottom: 0;
}
.advanced-link {
  color: #1a2aff;
  font-size: 15px;
  text-decoration: underline;
  margin-top: 2px;
  margin-left: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.suggestions-dropdown {
  position: absolute;
  z-index: 10;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-top: 2px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: none;
}

.pac-container {
  z-index: 2000 !important;
  position: absolute !important;
}

@media (max-width: 900px) {
  .search-fields-row {
    flex-direction: column;
    gap: 16px;
  }
  .modern-search-bar {
    padding: 18px 8px 12px 8px;
  }
}

/* Modern Trip Bar Styles */
.modern-trip-bar-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
  position: static;
  overflow-x: auto;
}
.modern-trip-bar-fields {
  display: flex;
  flex-direction: row;
  gap: 1.1rem;
  flex: 1 1 0;
  min-width: 0;
}
.floating-update-btn {
  margin-left: 1.2rem;
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
  font-size: 1.25rem;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  border: none;
  transition: background 0.2s;
}
.floating-update-btn:hover {
  background: var(--accent-hover);
}

/* Modern Trip Search Bar Styles */
.modern-trip-search-bar {
  background: #fff;
  border-radius: 2.5rem;
  box-shadow: 0 4px 24px rgba(37,99,235,0.10);
  padding: 1.2rem 2rem 1.2rem 2rem;
  margin: 2rem auto 1.2rem auto;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}
.modern-trip-search-fields {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
}
.modern-trip-search-field {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 2rem;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 1px 4px rgba(37,99,235,0.04);
  min-width: 150px;
  flex: 1 1 0;
}
.modern-trip-search-field input,
.modern-trip-search-field select {
  border: none;
  background: transparent;
  font-size: 1rem;
  padding: 0.3rem 0.5rem;
  outline: none;
}
.modern-trip-search-field input:focus,
.modern-trip-search-field select:focus {
  background: #e9ecef;
  border-radius: 1.5rem;
}
.modern-search-btn-pill {
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
  margin-left: 0.2rem;
  margin-right: 0.2rem;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.modern-search-btn-pill:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(37,99,235,0.18);
  transform: translateY(-2px);
}

/* --- Refine Results Button: smaller, cleaner --- */
.refine-results-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: #f6f8fa;
  color: #2563eb;
  border: 1px solid #d6e0ef;
  border-radius: 18px;
  padding: 0.18em 1em;
  font-size: 0.93rem;
  font-weight: 500;
  box-shadow: none;
  transition: background 0.13s, color 0.13s, border 0.13s;
  cursor: pointer;
  outline: none;
  height: auto;
  min-height: 0;
  min-width: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.refine-results-btn::before {
  content: '';
  display: none;
}
.refine-results-btn:hover, .refine-results-btn:focus {
  background: #e9f0fb;
  color: #1746a0;
  border-color: #b6c6e3;
}

/* --- Modern Trip Search Actions: cleaner, less clumped --- */
.modern-trip-search-actions {
  gap: 0.3em !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  margin-top: 0.3em !important;
}

/* --- Pill Buttons: smaller, more modern --- */
#open-interests-modal,
#open-custom-instructions-link,
.modern-pill-btn,
.modern-trip-search-actions .modern-pill-btn {
  width: auto !important;
  min-width: unset !important;
  padding: 0.35em 1em !important;
  font-size: 0.95em !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 0 0.15em !important;
  background: #f8f9fa;
  color: var(--accent-color);
  border: none;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(37,99,235,0.04);
  transition: background 0.18s, color 0.18s;
}
#open-interests-modal:hover,
#open-custom-instructions-link:hover,
.modern-pill-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

/* --- Advanced Search Link: match pill style --- */
.modern-advanced-link {
  background: #f8f9fa;
  color: var(--accent-color);
  border-radius: 999px;
  padding: 0.35em 1em;
  font-size: 0.95em;
  font-weight: 500;
  margin: 0 0.15em !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.18s, color 0.18s;
}
.modern-advanced-link:hover {
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
}

/* --- Modern Trip Search Fields: reduce gap --- */
.modern-trip-search-fields {
  gap: 0.7rem !important;
}

/* --- Modern Trip Search Field: reduce padding --- */
.modern-trip-search-field input,
.modern-trip-search-field select {
  padding: 0.65rem 2.2rem 0.65rem 36px !important;
  font-size: 0.97rem !important;
}

/* --- Modern Search Button (magnifier): smaller, cleaner --- */
.modern-search-btn-pill {
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
  margin-left: 0.2rem;
  margin-right: 0.2rem;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.modern-search-btn-pill:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(37,99,235,0.18);
  transform: translateY(-2px);
}

/* --- Responsive: stack fields on mobile --- */
@media (max-width: 900px) {
  .modern-trip-search-fields {
    flex-direction: column;
    gap: 0.5rem !important;
  }
  .modern-trip-search-actions {
    flex-direction: column;
    gap: 0.5rem !important;
    align-items: stretch !important;
  }
}

/* Modern Action Button */
.modern-action-btn {
  background: #f8f9fa;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  color: #2563eb;
  font-size: 1.5rem;
  margin: 0 0.2rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.modern-action-btn:hover, .modern-action-btn:focus {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.18);
  outline: none;
}

/* Material Icons */
.material-icons {
  font-family: 'Material Icons', Arial, sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded');

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded', 'Material Icons', Arial, sans-serif;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Specific Button Enhancements */
.add-activity-btn.modern-action-btn {
  margin: 0.7rem auto 0.2rem auto;
  background: #eaf1ff;
  color: #2563eb;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}
.add-activity-btn.modern-action-btn:hover, .add-activity-btn.modern-action-btn:focus {
  background: #2563eb;
  color: #fff;
}
.itinerary-card-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  justify-content: flex-end;
  margin-bottom: 0.2rem;
}

/* --- INTERESTS: Make bigger and bolder --- */
.interests-grid {
  gap: 1.3rem;
}
.interest-card {
  padding: 1.35rem 1.7rem;
  font-size: 1.15rem;
  min-height: 64px;
}
.interest-icon {
  font-size: 2.1rem !important;
  margin-right: 0.7rem;
}
.interest-name {
  font-size: 1.13rem;
  font-weight: 600;
}

/* --- ADVANCED SECTION: Make a bit smaller --- */
.coverage-card,
.budget-card,
.dining-card,
.transport-card {
  padding: 0.7rem 0.5rem !important;
  font-size: 0.98rem !important;
  min-height: 44px !important;
}
.coverage-icon,
.budget-icon,
.dining-icon,
.transport-icon {
  font-size: 1.45rem !important;
  margin-bottom: 0.3rem !important;
}
.coverage-name,
.budget-name,
.dining-name,
.transport-name {
  font-size: 1.01rem !important;
  font-weight: 600;
}
.coverage-desc,
.budget-desc,
.dining-desc {
  font-size: 0.85rem !important;
}

/* --- Reduce grid gaps for advanced options --- */
.coverage-options,
.budget-options,
.dining-options,
.transport-options {
  gap: 0.7rem !important;
}

/* --- FINAL MOBILE INTERESTS GRID OVERRIDE --- */
@media (max-width: 700px) {
  .interests-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .interest-item {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .interest-card {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 0.85rem !important;
    padding: 0.55rem 0.2rem !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .interest-icon {
    font-size: 1.1rem !important;
    margin-right: 0.3rem !important;
  }
  .interest-name {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
  }
}

/* Hide weekend section on mobile */
@media (max-width: 768px) {
  .weekend-section {
    display: none !important;
  }
}

/* Shrink Interests and Custom Instructions buttons to fit text */
    #open-interests-modal,
    #open-custom-instructions-link {
      width: auto !important;
      min-width: unset !important;
      padding: 0.4em 1em !important;
      font-size: 0.95em !important;
      border-radius: 999px !important;
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      margin: 0 0.2em !important;
    }
    /* Make menu less clumped and more balanced */
    .modern-trip-search-actions {
      gap: 0.5em !important;
      flex-wrap: wrap !important;
      justify-content: flex-start !important;
      margin-top: 0.5em !important;
    }
    .modern-trip-search-fields {
      gap: 0.7em !important;
    }
    /* Top banner: white text on black background */
    header {
      background: #fff !important;
      color: #222 !important;
      border-bottom: none !important;
      margin-bottom: 1.2rem !important;
    }
header h1, header p {
  color: #222 !important;
}
    /* Remove extra margin below header */
    header {
      margin-bottom: 1.2rem !important;
      padding: 1.2rem 0 0.7rem 0; /* Reduce top/bottom padding */
    }
    .nav-brand, .brand-logo, .logo-icon {
    color: #fff !important;
}
.nav-brand .brand-logo {
    color: #fff !important;
}

/* --- COMPACT CENTERED MOBILE SEARCH DRAWER MODAL --- */
#mobile-search-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,34,34,0.18);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#mobile-search-drawer.open {
  display: flex !important;
}
#mobile-search-drawer > .modern-trip-search-bar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 98vw;
  max-width: 420px;
  min-width: 0;
  padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  box-sizing: border-box;
}
#mobile-search-drawer .modern-trip-search-fields {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
}
#mobile-search-drawer .modern-trip-search-field {
  width: 100%;
  min-width: 0;
  flex: 1 1 0;
  padding: 0.2rem 0.1rem;
  background: #f8f9fa;
  border-radius: 1.1rem;
  box-shadow: 0 1px 4px rgba(37,99,235,0.04);
  margin-bottom: 0.2rem;
}
#mobile-search-drawer .modern-trip-search-field input,
#mobile-search-drawer .modern-trip-search-field select {
  width: 100%;
  font-size: 1.08rem;
  padding: 0.7rem 1.2rem 0.7rem 2.2rem;
  border-radius: 1rem;
  background: transparent;
  border: none;
  text-align: center;
}
#mobile-search-drawer .modern-trip-bar-icon {
  left: 0.7rem;
  font-size: 1.2rem;
}
#mobile-search-drawer .modern-trip-search-actions {
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}
#mobile-search-drawer .modern-pill-btn {
  font-size: 1rem !important;
  padding: 0.5em 1.3em !important;
  border-radius: 999px !important;
  min-width: 120px !important;
  white-space: nowrap;
  margin: 0 0.2em 0 0 !important;
  box-sizing: border-box;
}
/* Accordion sections in drawer */
#mobile-search-drawer .accordion-group {
  margin-top: 0.7rem;
}
#mobile-search-drawer .accordion-section {
  border-radius: 0.7rem;
  background: #f8f9fa;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(37,99,235,0.04);
}
#mobile-search-drawer .accordion-toggle {
  width: 100%;
  background: none;
  border: none;
  font-size: 1.01rem;
  font-weight: 600;
  color: #2563eb;
  padding: 0.7rem 1.2rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
#mobile-search-drawer .accordion-content {
  padding: 0.7rem 1.2rem 1rem 1.2rem;
}
/* Refine Results Button: smaller, pill-like */
#open-search-drawer.refine-results-btn, .refine-results-btn {
  font-size: 0.92rem !important;
  padding: 0.32em 0.9em !important;
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 999px !important;
  margin: 0.2rem auto 0.2rem auto !important;
}
@media (max-width: 600px) {
  #open-search-drawer.refine-results-btn, .refine-results-btn {
    font-size: 0.92rem !important;
    padding: 0.32em 0.9em !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 999px !important;
    margin: 0.2rem auto 0.2rem auto !important;
  }
  header {
    padding: 1.2rem 0 0.7rem 0 !important;
    margin-bottom: 0.7rem !important;
  }
}
@media (min-width: 601px) {
  #open-search-drawer.refine-results-btn, .refine-results-btn {
    display: inline-flex !important;
    position: static !important;
    top: unset !important;
    right: unset !important;
    left: unset !important;
    bottom: unset !important;
    background: #f6f8fa !important;
    color: #2563eb !important;
    border: 1px solid #d6e0ef !important;
    box-shadow: none !important;
    font-size: 0.93rem !important;
    padding: 0.18em 1em !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 18px !important;
    margin: 0.5rem 0 1.2rem 0 !important;
    z-index: auto !important;
  }
  #open-search-drawer {
    position: static !important;
    width: auto !important;
    height: auto !important;
    border-radius: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    margin: 0.5rem 0 1.2rem 0 !important;
    background: #f6f8fa !important;
    color: #2563eb !important;
    border: 1px solid #d6e0ef !important;
    font-size: 0.93rem !important;
  }
  #open-search-drawer .material-symbols-rounded {
    display: none !important;
  }
}

/* --- DESKTOP REFINE MODAL: COLLAPSIBLE ACCORDION MENU --- */
@media (min-width: 601px) {
  #refine-modal .accordion-group {
    margin-top: 1.2rem;
  }
  #refine-modal .accordion-section {
    border-radius: 0.7rem;
    background: #f8f9fa;
    margin-bottom: 0.7rem;
    box-shadow: 0 1px 4px rgba(37,99,235,0.04);
  }
  #refine-modal .accordion-toggle {
    width: 100%;
    background: none;
    border: none;
    font-size: 1.08rem;
    font-weight: 600;
    color: #2563eb;
    padding: 0.8rem 1.3rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 0.7rem 0.7rem 0 0;
  }
  #refine-modal .accordion-content {
    padding: 0.8rem 1.3rem 1.1rem 1.3rem;
    background: #f8f9fa;
    border-radius: 0 0 0.7rem 0.7rem;
  }
  #refine-modal .accordion-section:not(.expanded) .accordion-content {
    display: none;
  }
  #refine-modal .accordion-section.expanded .accordion-content {
    display: block;
  }
}

/* Fix search button overlap and alignment in mobile search drawer on desktop */
@media (min-width: 601px) {
  #mobile-search-drawer .modern-trip-search-bar {
    padding-bottom: 0 !important;
  }
  #mobile-search-drawer .modern-search-btn-pill {
    margin-left: 0 !important;
    margin-top: 1.2rem !important;
    margin-bottom: 0 !important;
    align-self: stretch !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
  }
  #mobile-search-drawer .modern-trip-search-actions {
    margin-bottom: 0 !important;
  }
}

/* --- Force search button to bottom right in mobile popup menu --- */
@media (max-width: 600px) {
  #mobile-search-drawer {
    position: fixed !important;
    bottom: 0; left: 0; right: 0; top: 0;
    /* already set, but reinforce for stacking context */
    z-index: 1000;
    overflow-y: auto;
  }
  #mobile-search-drawer #update-itinerary {
    position: static !important;
    right: unset !important;
    bottom: unset !important;
    width: 100%;
    max-width: 220px;
    margin: 1.2rem 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-radius: 2rem !important;
    font-size: 1.2rem !important;
    box-shadow: 0 4px 16px rgba(37,99,235,0.10) !important;
  }
  #mobile-search-drawer #update-itinerary .modern-search-icon {
    font-size: 2rem !important;
    margin: 0 !important;
  }
  #mobile-search-drawer .modern-trip-search-actions {
    padding-bottom: 0 !important;
  }
}

/* --- Mobile search submit button: full width, right-aligned, below actions --- */
@media (max-width: 600px) {
  #mobile-search-drawer .mobile-search-submit,
  #mobile-search-drawer #update-itinerary {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 0 0 0.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 1.3rem !important;
    box-shadow: 0 2px 8px rgba(37,99,235,0.10) !important;
    position: static !important;
    vertical-align: middle !important;
  }
  #mobile-search-drawer .modern-trip-search-actions {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding-bottom: 0 !important;
  }
}

/* --- Modern search submit row: flex, advanced left, search right --- */
.modern-search-submit-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.7rem;
}
.modern-search-submit-row .modern-advanced-link {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: auto;
}
.modern-search-submit-row .modern-search-btn-pill,
.modern-search-submit-row .mobile-search-submit {
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 0;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
@media (max-width: 600px) {
  .modern-search-submit-row {
    margin-top: 0.7rem;
    gap: 0.7rem;
  }
  .modern-search-submit-row .modern-advanced-link {
    font-size: 1rem;
    padding: 0.5em 1.3em;
  }
  .modern-search-submit-row .modern-search-btn-pill,
  .modern-search-submit-row .mobile-search-submit {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    font-size: 1.3rem;
  }
}