/* ============================================
   Where2Go — Interactive Itinerary Maker
   ============================================ */

/* --- Variables & Reset --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Landing Section (Hero + Form) --- */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #1d4ed8 100%);
  position: relative;
  overflow: hidden;
}

.landing::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.landing-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.landing h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.landing h1 span {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- The Form Card --- */
.form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-row label .label-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- City Search (Autocomplete) --- */
.city-search-wrapper {
  position: relative;
}

.city-search-wrapper input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  background: #fff;
}

.city-search-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.city-input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  pointer-events: none;
}

.city-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
}

.city-dropdown.show { display: block; }

.city-dropdown-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.city-dropdown-item:last-child { border-bottom: none; }
.city-dropdown-item:hover, .city-dropdown-item.active {
  background: var(--primary-light);
}

.city-dropdown-item .city-name { font-weight: 600; font-size: 0.95rem; }
.city-dropdown-item .city-country { color: var(--text-muted); font-size: 0.8rem; }

/* --- Date Row --- */
.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.date-row input[type="date"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.date-row input[type="date"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* --- Interest Tags --- */
.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Form Sections --- */
.form-section {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* --- Transport Between Grid --- */
.transport-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.transport-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  user-select: none;
  background: #fff;
}

.transport-choice:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

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

.transport-choice input[type="checkbox"]:checked + .transport-label {
  color: var(--primary);
}

.transport-choice:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* --- City Badge on Day Cards --- */
.city-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.5rem;
}

/* --- Price Badge on Day Cards --- */
.price-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--success);
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* --- Transit Day Card --- */
.transit-day-card {
  border: 2px solid #f59e0b !important;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.transit-day-card .day-card-header {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.transit-day-card .day-number {
  background: #f59e0b;
}

.transit-highlight {
  background: #f59e0b !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.transit-day-card .day-neighbourhood h3 {
  color: #92400e;
}

/* --- Transit Day Info --- */
.transit-day-info {
  padding: 1rem;
}

.transit-route {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #92400e;
}

.transit-city-label {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #fff;
  border-radius: 999px;
  border: 2px solid #f59e0b;
  font-size: 1rem;
}

.transit-arrow {
  margin: 0 0.75rem;
  font-size: 1.5rem;
}

.transit-modes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.transit-mode-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.transit-mode-icon {
  font-size: 1.2rem;
  width: 32px;
  text-align: center;
}

.transit-mode-name {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 100px;
}

.transit-mode-cost {
  font-weight: 700;
  color: var(--success);
  font-size: 0.85rem;
  padding: 0.15rem 0.5rem;
  background: #d1fae5;
  border-radius: 999px;
  white-space: nowrap;
}

.transit-mode-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.transit-tip {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #1e40af;
  line-height: 1.6;
}

.interest-tag {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  user-select: none;
}

.interest-tag:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.interest-tag.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --- Submit Button --- */
.btn-primary {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Sample Cities Strip --- */
.sample-cities {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.sample-cities + .sample-cities {
  margin-top: 0.5rem;
}

.sample-cities-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  padding: 0.35rem 0.85rem;
  display: inline-flex;
  align-items: center;
}

.sample-city {
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.sample-city:hover {
  background: rgba(255,255,255,0.2);
}

/* --- Itinerary View (results) --- */
.itinerary-view {
  display: none;  /* shown after form submit */
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.itinerary-view.active { display: block; }

/* --- Trip Header --- */
.trip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.trip-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
}

.trip-header h2 .city-emoji { margin-right: 0.5rem; }

.trip-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

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

.btn-back {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.btn-back:hover { border-color: var(--primary); color: var(--primary); }

/* --- Trip Summary Bar --- */
.trip-summary {
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trip-summary .stat {
  text-align: center;
}

.trip-summary .stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.trip-summary .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Day Card --- */
.day-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  border: 2px solid transparent;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.day-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-lg); }

.day-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: grab;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}

.day-card-header:active { cursor: grabbing; }

.day-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.day-neighbourhood {
  flex: 1;
}

.day-neighbourhood h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.day-neighbourhood .vibe {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.day-transit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.drag-handle {
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: grab;
  padding: 0.25rem;
  user-select: none;
}

.drag-handle:active { cursor: grabbing; }

/* --- Day Body (collapsible) --- */
.day-body {
  padding: 1.25rem;
  display: none;
}

.day-body.open { display: block; }

/* Toggle expand button */
.expand-toggle {
  padding: 0.4rem 0.8rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.expand-toggle:hover {
  background: var(--bg);
  color: var(--text);
}

/* --- Map Container --- */
.map-container {
  height: 200px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.map-container .leaflet-container {
  border-radius: var(--radius-sm);
}

/* --- Activities List --- */
.activities-section {
  margin-bottom: 1rem;
}

.activities-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  cursor: pointer;
}

.activity-item .checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-item.done .checkbox {
  background: var(--success);
  border-color: var(--success);
}

.activity-item.done .checkbox::after {
  content: '✓';
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.activity-item.done { text-decoration: line-through; color: var(--text-muted); }

/* --- Hotel Section --- */
.hotel-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.hotel-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hotel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.hotel-name {
  font-weight: 600;
}

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

.hotel-tier {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
}

.hotel-tier.budget { background: #d1fae5; color: #065f46; }
.hotel-tier.mid { background: #dbeafe; color: #1e40af; }
.hotel-tier.splurge { background: #fef3c7; color: #92400e; }

/* --- SortableJS Ghost (drag visual) --- */
.day-card.sortable-chosen {
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
  border-color: var(--primary);
  transform: scale(1.02);
}

.day-card.sortable-ghost {
  opacity: 0.4;
  border: 2px dashed var(--primary);
  background: var(--primary-light);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .landing { padding: 1.5rem; }
  .form-card { padding: 1.25rem; }
  .date-row { grid-template-columns: 1fr; }
  .trip-header { flex-direction: column; }
  .trip-meta { flex-direction: column; gap: 0.3rem; }
  .day-card-header { flex-wrap: wrap; }
  .day-transit { order: 10; width: 100%; }
  .itinerary-view { padding: 1rem; }
  .trip-summary { flex-direction: column; text-align: center; }
  .hotel-item { flex-wrap: wrap; gap: 0.3rem; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.day-card {
  animation: fadeInUp 0.4s ease forwards;
}

.day-card:nth-child(2) { animation-delay: 0.05s; }
.day-card:nth-child(3) { animation-delay: 0.1s; }
.day-card:nth-child(4) { animation-delay: 0.15s; }
.day-card:nth-child(5) { animation-delay: 0.2s; }
.day-card:nth-child(6) { animation-delay: 0.25s; }
.day-card:nth-child(7) { animation-delay: 0.3s; }

/* --- Notification / Status --- */
.status-msg {
  text-align: center;
  padding: 0.75rem;
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.status-msg.error {
  display: block;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.status-msg.info {
  display: block;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

/* --- Loading Spinner --- */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-primary.loading .spinner { display: inline-block; }
.btn-primary.loading .btn-text { display: none; }

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

/* --- Scroll for transit scroll animation --- */
.transit-arrow {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  gap: 0.3rem;
}

/* --- No results fallback --- */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.no-results h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text); }

/* --- Affiliate Badges --- */
.affiliate-badge {
  font-size: 0.65rem;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.act-link {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.act-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.hotel-name-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.hotel-name-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* --- Book Day Button --- */
.btn-book-day {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}

.btn-book-day:hover {
  border-color: var(--accent);
  background: #fffbeb;
  color: #92400e;
}

/* --- Floating Book Bar (Bottom) --- */
.book-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.book-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
}

.book-bar-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.book-bar-text strong {
  font-size: 1rem;
}

.book-bar-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.book-bar-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-book-bar {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.btn-primary-booking {
  background: #003580;
  color: #fff;
  border: 2px solid #003580;
}

.btn-primary-booking:hover {
  background: #00224f;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,53,128,0.3);
}

.btn-secondary-tours {
  background: #ff5a5f;
  color: #fff;
  border: 2px solid #ff5a5f;
}

.btn-secondary-tours:hover {
  background: #e0484d;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255,90,95,0.3);
}

.book-bar-disclaimer {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 0.4rem;
  opacity: 0.7;
  max-width: 900px;
  margin: 0 auto;
}

/* Add bottom padding to itinerary so fixed bar doesn't overlap */
.itinerary-view.active {
  padding-bottom: 100px;
}

@media (max-width: 640px) {
  .book-bar-inner { flex-direction: column; text-align: center; }
  .book-bar-actions { justify-content: center; }
  .btn-book-bar { font-size: 0.8rem; padding: 0.5rem 1rem; }
}


/* ============================================
   New Form Fields & Results Enhancements
   ============================================ */

/* --- 1. Origin Row (two inputs side by side) --- */
.origin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- 2. Time Row (arrival & departure side by side) --- */
.time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.time-row input[type="time"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.time-row input[type="time"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* --- 3. Checkbox / Toggle Styles --- */
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 0.25rem;
}

.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.toggle-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 12px;
  transition: var(--transition);
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-wrapper input[type="checkbox"]:checked + .toggle-switch {
  background: var(--primary);
}

.toggle-wrapper input[type="checkbox"]:checked + .toggle-switch::after {
  left: 23px;
}

.toggle-wrapper input[type="checkbox"]:focus-visible + .toggle-switch {
  box-shadow: 0 0 0 3px var(--primary-light);
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* --- 4. Select Dropdown Styles --- */
.form-row select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 1rem center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.form-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row select option {
  padding: 0.5rem;
}

/* --- 5. Children Ages Section --- */
.children-ages-row {
  display: none;
}

.children-ages-row.visible {
  display: block;
}

.children-ages-row input[type="number"] {
  width: 100%;
  max-width: 120px;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.children-ages-row input[type="number"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* --- 6. Optional Field Indicator --- */
.label-note {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 0.4rem;
  background: var(--bg);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* --- 7. Interest Tags (shared class) --- */
/* No additional styles needed — existing .interest-tag rules apply. */

/* --- 8. Results Enhancements --- */

/* Trip Details Box */
.trip-details-box {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.trip-details-box .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.trip-details-box .detail-row:last-child {
  border-bottom: none;
}

.trip-details-box .detail-label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trip-details-box .detail-value {
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.trip-details-box .detail-value .flight-code {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: monospace;
}

/* Info Sections (collapsible) */
.info-section {
  margin-bottom: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.info-section:hover {
  border-color: var(--primary-light);
}

.info-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
  text-align: left;
  gap: 1rem;
}

.info-toggle:hover {
  background: var(--bg);
}

.info-toggle .toggle-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.info-toggle.open .toggle-icon {
  transform: rotate(180deg);
}

.info-body {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.info-body.open {
  max-height: 1000px;
  padding: 1rem 1.25rem 1.25rem;
}

.info-body p,
.info-body li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.info-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.info-body li {
  margin-bottom: 0.3rem;
}

/* Clothing Section */
.clothing-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 0.5rem 0;
}

.clothing-section h5 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.clothing-section .clothing-item {
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  margin: 0.15rem 0.25rem;
  color: var(--text);
}

/* Visa & Currency Section (side-by-side) */
.visa-currency-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.5rem 0;
}

.visa-currency-section .visa-box,
.visa-currency-section .currency-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.visa-currency-section h5 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.visa-currency-section p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
}

.visa-currency-section .currency-rate {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

/* Responsive tweaks for new elements */
@media (max-width: 640px) {
  .origin-row {
    grid-template-columns: 1fr;
  }
  .time-row {
    grid-template-columns: 1fr;
  }
  .checkbox-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .visa-currency-section {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   Where2Go — New dynamic section styles
   ============================================ */

/* --- Trip Details section --- */
.trip-details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.td-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.td-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.td-item .td-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.td-item strong {
  margin-right: 0.2rem;
}

/* --- Clothing recommendations --- */
.clothing-rec {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
}

.clothing-rec h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #92400e;
}

.clothing-rec ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clothing-rec li {
  font-size: 0.8rem;
  color: #78350f;
  padding: 0.15rem 0;
  line-height: 1.4;
}

.climate-badge {
  display: inline-block;
  font-size: 0.75rem;
  background: #fff7ed;
  color: #9a3412;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
  border: 1px solid #fed7aa;
}

/* --- Know Before You Go --- */
.know-before {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.kb-toggle {
  width: 100%;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  color: #166534;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kb-toggle:hover {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.kb-body {
  display: none;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

.kb-body.kb-open {
  display: block;
  animation: fadeInUp 0.3s ease forwards;
}

.kb-section {
  margin-bottom: 1.25rem;
}

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

.kb-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.kb-section p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.kb-note {
  font-style: italic;
  color: #6b7280;
  padding: 0.4rem 0.6rem;
  background: #f3f4f6;
  border-radius: var(--radius-sm);
  margin-top: 0.3rem;
}

.kb-transport-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.kb-transport-badge {
  display: inline-block;
  font-size: 0.78rem;
  background: var(--bg);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* --- Family-friendly note --- */
.family-note {
  font-size: 0.8rem;
  background: #ecfdf5;
  color: #065f46;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- Recommended hotel highlight --- */
.hotel-item.hotel-recommended {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

/* --- Responsive tweaks --- */
@media (max-width: 640px) {
  .td-grid {
    flex-direction: column;
    gap: 0.4rem;
  }
  .td-item {
    white-space: normal;
  }
  .kb-section p {
    font-size: 0.8rem;
  }
}
