/* ==========================================================================
   Trips Section Styles - Modern High-Craft UX Design
   ========================================================================== */

:root {
  --tr-surface: #ffffff;
  --tr-bg: #f8fafc;
  --tr-border: #e2e8f0;
  --tr-border-focus: #cbd5e1;
  --tr-text-primary: #0f172a;
  --tr-text-secondary: #475569;
  --tr-text-muted: #64748b;
  --tr-accent: #2563eb;
  --tr-accent-soft: #eff6ff;
  --tr-green: #16a34a;
  --tr-green-soft: #dcfce7;
  --tr-amber: #d97706;
  --tr-amber-soft: #fef3c7;
  --tr-rose: #db2777;
  --tr-rose-soft: #fce7f3;
  --tr-radius: 12px;
  --tr-radius-sm: 8px;
  --tr-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --tr-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
}

.trip-viewport {
  max-width: 1000px;
  margin: 0 auto 80px auto;
  padding: 0 24px;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  color: var(--tr-text-primary);
  line-height: 1.5;
}

/* Trail */
.trip-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tr-text-muted);
  margin-bottom: 24px;
}
.trip-trail a {
  color: var(--tr-text-muted);
  text-decoration: none;
}
.trip-trail a:hover {
  color: var(--tr-accent);
  text-decoration: underline;
}
.trip-trail .sep {
  color: #cbd5e1;
}
.trip-trail .trail-active {
  color: var(--tr-text-primary);
  font-weight: 600;
}

/* Hero */
.trip-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tr-border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.hero-title-row h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--tr-text-primary);
  line-height: 1.15;
}
.country-flag {
  font-size: 30px;
  line-height: 1;
}
.hero-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--tr-text-muted);
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  padding: 2px 10px;
  border-radius: 9999px;
}
.hero-tagline {
  font-size: 16px;
  color: var(--tr-text-secondary);
  margin: 0;
}
.hero-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--tr-amber-soft);
  color: var(--tr-amber);
  border: 1px solid #fde68a;
}
.status-indicator .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}
.status-indicator.status-confirmed, .status-indicator.status-completed {
  background: var(--tr-green-soft);
  color: var(--tr-green);
  border-color: #bbf7d0;
}
.status-indicator.status-confirmed .pulse-dot, .status-indicator.status-completed .pulse-dot {
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}
.dates-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tr-text-secondary);
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  padding: 5px 12px;
  border-radius: 9999px;
}
.icon-calendar {
  color: var(--tr-text-muted);
}

/* Route Strip */
.route-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius);
  padding: 10px 16px;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.route-strip::-webkit-scrollbar {
  display: none;
}
.route-strip-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tr-text-muted);
  border-right: 1px solid var(--tr-border);
  padding-right: 12px;
  white-space: nowrap;
}
.route-strip-nodes {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.route-arrow {
  color: #94a3b8;
  display: flex;
  align-items: center;
}
.route-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--tr-border);
  border-radius: 9999px;
  padding: 3px 12px;
}
.node-city {
  font-size: 13px;
  font-weight: 700;
  color: var(--tr-text-primary);
}
.node-date {
  font-size: 11px;
  color: var(--tr-text-muted);
}

/* Segmented Control Tabs */
.tab-switcher {
  display: inline-flex;
  gap: 4px;
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  padding: 4px;
  border-radius: 9999px;
  margin-bottom: 32px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.tab-switcher::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tr-text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.tab-btn:hover {
  color: var(--tr-text-primary);
}
.tab-btn.active {
  background: #ffffff;
  color: var(--tr-text-primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.tab-icon {
  font-size: 14px;
}

/* Tab Panes */
.tab-pane {
  display: none;
  animation: fadeIn 0.18s ease-in-out;
}
.tab-pane.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Header Bar */
.panel-section {
  margin-bottom: 40px;
}
.section-label-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--tr-border);
  padding-bottom: 8px;
}
.section-label-bar h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--tr-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}
.label-hint {
  font-size: 12px;
  color: var(--tr-text-muted);
}

/* 1. Overview: Anchors Grid */
.anchors-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.anchor-tile {
  background: #ffffff;
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius);
  padding: 20px;
  box-shadow: var(--tr-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-top: 3px solid var(--tr-accent);
}
.anchor-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--tr-shadow-md);
}
.anchor-tile.tile-matchday { border-top-color: var(--tr-amber); }
.anchor-tile.tile-wedding { border-top-color: var(--tr-rose); }
.anchor-tile.tile-visit { border-top-color: var(--tr-accent); }

.tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.tile-category-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tr-text-muted);
}
.tile-status-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.tile-status-tag.status-confirmed {
  background: var(--tr-green-soft);
  color: var(--tr-green);
}
.tile-status-tag.status-pending {
  background: var(--tr-amber-soft);
  color: var(--tr-amber);
}
.tile-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: var(--tr-text-primary);
}
.tile-venue-line {
  font-size: 13px;
  color: var(--tr-text-secondary);
  margin-bottom: 6px;
}
.tile-venue-line .venue-name {
  font-weight: 600;
}
.tile-venue-line .venue-city {
  color: var(--tr-text-muted);
}
.tile-date-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tr-text-secondary);
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.tile-note {
  font-size: 13px;
  color: var(--tr-text-muted);
  margin: 0;
  line-height: 1.45;
}

/* 1. Overview: Journey Track */
.journey-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.track-card {
  background: #ffffff;
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: baseline;
  box-shadow: var(--tr-shadow-sm);
  transition: border-color 0.15s ease;
}
.track-card:hover {
  border-color: var(--tr-border-focus);
}
.track-meta {
  display: flex;
  flex-direction: column;
}
.track-date {
  font-size: 13px;
  font-weight: 800;
  color: var(--tr-text-primary);
}
.track-leg {
  font-size: 12px;
  color: var(--tr-accent);
  font-weight: 600;
}
.track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.track-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--tr-text-primary);
}
.badge-subtle {
  font-size: 11px;
  font-weight: 600;
  color: var(--tr-text-muted);
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  padding: 1px 8px;
  border-radius: 4px;
}
.track-summary {
  font-size: 13px;
  color: var(--tr-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   2. Calendar View (14-Day 2x7 Grid)
   ========================================================================== */
.cal-view-wrapper {
  margin-bottom: 40px;
}

/* Controls Bar */
.cal-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cal-badge-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tr-accent);
  margin-bottom: 2px;
}
.cal-heading {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tr-text-primary);
  margin: 0;
  line-height: 1.2;
}
.cal-subheading {
  font-size: 13px;
  color: var(--tr-text-muted);
}

/* Segmented Week Filter */
.cal-filter-group {
  display: inline-flex;
  gap: 4px;
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  padding: 3px;
  border-radius: 9999px;
  flex-wrap: wrap;
}
.cal-filter-btn {
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tr-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.cal-filter-btn:hover {
  color: var(--tr-text-primary);
}
.cal-filter-btn.active {
  background: #ffffff;
  color: var(--tr-text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Legend Strip */
.cal-legend-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius-sm);
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--tr-text-secondary);
}
.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-flight { background: #2563eb; }
.dot-wedding { background: #db2777; }
.dot-match { background: #16a34a; }
.dot-transit { background: #7c3aed; }
.dot-hotel { background: #0f172a; }

/* Calendar Board: contains weekday headers & 2x7 grid */
.cal-board {
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.cal-board::-webkit-scrollbar {
  height: 6px;
}
.cal-board::-webkit-scrollbar-track {
  background: var(--tr-bg);
  border-radius: 9999px;
}
.cal-board::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.cal-board::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.cal-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  min-width: 960px;
}
.cal-weekday-th {
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-th-day {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tr-text-primary);
}
.cal-th-hint {
  font-size: 10px;
  color: var(--tr-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 2x7 Grid Container */
.cal-grid-2x7 {
  display: grid;
  grid-template-columns: repeat(7, minmax(132px, 1fr));
  gap: 10px;
  min-width: 960px;
}

/* Day Cell */
.cal-day-cell {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius);
  padding: 12px;
  box-shadow: var(--tr-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  border-top: 3px solid transparent;
  min-height: 440px;
}
.cal-day-cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--tr-shadow-md);
  border-color: #cbd5e1;
}

/* Anchors Variations */
.cal-day-cell.is-anchor.anchor-flight {
  border-top-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 50px);
}
.cal-day-cell.is-anchor.anchor-wedding {
  border-top-color: #db2777;
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 50px);
}
.cal-day-cell.is-anchor.anchor-match {
  border-top-color: #16a34a;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 50px);
}

/* Cell Header */
.cal-cell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cal-cell-date {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.cal-day-name {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--tr-text-muted);
  letter-spacing: 0.04em;
}
.cal-day-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--tr-text-primary);
}
.cal-day-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  color: var(--tr-text-muted);
  padding: 1px 6px;
  border-radius: 9999px;
}

/* Cell City Tag */
.cal-cell-city {
  margin-bottom: 10px;
}
.cal-city-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cal-city-tag.city-tol {
  background: #fdf2f8;
  border-color: #fbcfe8;
  color: #9d174d;
}
.cal-city-tag.city-mad {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.cal-city-tag.city-lon {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}
.cal-city-tag.city-jfk-mad,
.cal-city-tag.city-mad-lon,
.cal-city-tag.city-lon-jfk {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.cal-city-tag.city-mad-tol,
.cal-city-tag.city-tol-mad {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #6b21a8;
}

/* Daytime Time Blocks */
.cal-time-blocks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
  flex: 1 1 auto;
}
.cal-block {
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 11.5px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.cal-block:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}
.cal-block-top {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}
.cal-block-icon {
  font-size: 11px;
  line-height: 1;
}
.cal-block-time {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tr-text-muted);
}
.cal-block-title {
  font-weight: 700;
  color: var(--tr-text-primary);
  font-size: 11.5px;
  line-height: 1.25;
  margin-bottom: 2px;
}
.cal-block-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.12s ease;
}
.cal-block-title-link:hover {
  text-decoration: underline;
}
.cal-block.block-wedding .cal-block-title-link:hover {
  color: #db2777;
}
.cal-block.block-match .cal-block-title-link:hover {
  color: #16a34a;
}
.cal-link-icon {
  font-size: 10px;
  opacity: 0.65;
  display: inline-block;
  transition: transform 0.12s ease, opacity 0.12s ease;
  line-height: 1;
}
a:hover .cal-link-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}
.cal-block-desc {
  font-size: 10.5px;
  color: var(--tr-text-secondary);
  line-height: 1.3;
}

/* Block Types */
.cal-block.block-flight {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.cal-block.block-flight .cal-block-title {
  color: #1e40af;
}
.cal-block.block-wedding {
  background: #fdf2f8;
  border-color: #fbcfe8;
}
.cal-block.block-wedding .cal-block-title {
  color: #9d174d;
}
.cal-block.block-match {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.cal-block.block-match .cal-block-title {
  color: #166534;
}
.cal-block.block-transit {
  background: #faf5ff;
  border-color: #e9d5ff;
}
.cal-block.block-transit .cal-block-title {
  color: #6b21a8;
}

/* Nighttime / Hotel Stay Block */
.cal-night-block {
  margin-top: auto;
  border-radius: 8px;
  padding: 9px 10px;
  transition: transform 0.12s ease;
}
.cal-night-block.is-hotel-stay {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.cal-night-block.is-night-transit {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.night-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.night-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.night-moon {
  font-size: 11px;
  line-height: 1;
}
.night-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}
.hotel-pill {
  font-size: 9px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hotel-pill.transit-pill {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}
.night-hotel-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 2px;
}
.night-hotel-name-link {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.12s ease;
}
.night-hotel-name-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}
.night-hotel-option {
  font-size: 10.5px;
  color: #38bdf8;
  line-height: 1.25;
  margin-bottom: 2px;
  font-weight: 600;
}
.night-hotel-option-link {
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.12s ease;
}
.night-hotel-option-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}
.venue-maps-link, .we-venue-link, .stay-maps-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.12s ease;
}
.venue-maps-link:hover, .we-venue-link:hover, .stay-maps-link:hover {
  color: var(--tr-accent);
  text-decoration: underline;
}
.wedding-venues-row .venue-maps-link:hover,
.we-venue-link:hover {
  color: var(--tr-rose);
}
.night-hotel-sub {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.2;
}

@media (min-width: 1200px) {
  .trip-viewport.tab-calendar-active,
  .trip-viewport:has(#tab-calendar.active) {
    max-width: 1240px;
    transition: max-width 0.2s ease-in-out;
  }
}

@media (max-width: 820px) {
  .cal-controls-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 767px) {
  .cal-weekday-row {
    display: none;
  }
  .cal-grid-2x7 {
    display: flex;
    flex-direction: column;
    min-width: unset;
    gap: 12px;
  }
  .cal-day-cell {
    min-height: unset;
  }
}

/* 2. Wedding Program Spotlight */
.wedding-spotlight {
  background: #ffffff;
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius);
  padding: 32px;
  box-shadow: var(--tr-shadow-sm);
  position: relative;
  overflow: hidden;
}
.wedding-spotlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ec4899 0%, #f43f5e 50%, #fb7185 100%);
}
.wedding-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--tr-border);
  padding-bottom: 20px;
}
.wedding-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tr-rose);
  margin-bottom: 6px;
}
.wedding-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  color: var(--tr-text-primary);
}
.wedding-venues-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.venue-item {
  display: flex;
  flex-direction: column;
}
.v-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--tr-text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.v-val {
  font-size: 14px;
  color: var(--tr-text-primary);
}

.wedding-schedule-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wedding-event-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
}
.we-time-col {
  display: flex;
  flex-direction: column;
}
.we-day {
  font-size: 13px;
  font-weight: 800;
  color: var(--tr-text-primary);
}
.we-time {
  font-size: 12px;
  color: var(--tr-text-muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.we-card {
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius-sm);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.we-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.we-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--tr-text-primary);
}
.we-tag {
  font-size: 11px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--tr-border);
  color: var(--tr-rose);
  padding: 1px 8px;
  border-radius: 9999px;
}
.we-venue-note {
  font-size: 12px;
  color: var(--tr-text-muted);
}

/* 3. Flights & Logistics */
.logistics-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
}
.boarding-passes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.boarding-pass-card {
  background: #ffffff;
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius);
  padding: 18px 20px;
  box-shadow: var(--tr-shadow-sm);
}
.bp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
}
.bp-airline {
  color: var(--tr-text-muted);
}
.bp-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 800;
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--tr-text-primary);
}
.bp-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--tr-accent);
}
.bp-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.bp-node {
  display: flex;
  flex-direction: column;
}
.bp-airport {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tr-text-primary);
}
.bp-city {
  font-size: 12px;
  color: var(--tr-text-muted);
}
.bp-vector {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 0 16px;
}
.bp-plane {
  font-size: 14px;
  color: var(--tr-accent);
  margin-bottom: 2px;
}
.bp-line {
  width: 100%;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
}
.bp-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--tr-border);
  padding-top: 10px;
  font-size: 12px;
  color: var(--tr-text-secondary);
}
.bp-lbl {
  color: var(--tr-text-muted);
  font-size: 11px;
  text-transform: uppercase;
  margin-right: 4px;
}
.bp-right {
  text-align: right;
}

/* Stays & Fast Logistics */
.stay-tiles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.stay-tile {
  background: #ffffff;
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius);
  padding: 16px 18px;
  box-shadow: var(--tr-shadow-sm);
}
.stay-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.stay-title {
  font-size: 15px;
  color: var(--tr-text-primary);
}
.stay-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--tr-rose);
  background: var(--tr-rose-soft);
  padding: 1px 8px;
  border-radius: 9999px;
}
.stay-tile-dates {
  font-size: 12px;
  color: var(--tr-accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.stay-note {
  font-size: 12px;
  color: var(--tr-text-muted);
  margin: 0;
  line-height: 1.4;
}

.transit-tips-card {
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius);
  padding: 16px 18px;
}
.transit-tips-card h4 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 10px 0;
  color: var(--tr-text-primary);
}
.tip-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tip-bullets li {
  font-size: 12px;
  color: var(--tr-text-secondary);
  line-height: 1.45;
}
.tip-bullets strong {
  color: var(--tr-text-primary);
}

/* 4. Research */
.research-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.research-box {
  background: #ffffff;
  border: 1px dashed var(--tr-border);
  border-radius: var(--tr-radius);
  padding: 20px;
  transition: border-color 0.15s ease;
}
.research-box:hover {
  border-color: var(--tr-border-focus);
}
.r-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.r-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--tr-text-primary);
}
.r-status-badge {
  font-size: 11px;
  color: var(--tr-text-muted);
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  padding: 1px 6px;
  border-radius: 4px;
}
.r-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tr-accent);
  margin-bottom: 8px;
}
.r-placeholder {
  font-size: 11px;
  color: var(--tr-text-muted);
  margin: 0;
  line-height: 1.4;
  font-style: italic;
}
.research-box.has-details {
  border-style: solid;
}
.r-summary {
  font-size: 12px;
  color: var(--tr-text-secondary);
  line-height: 1.45;
  margin: 0 0 12px 0;
}
.r-pros-cons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--tr-border);
}
.r-col-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}
.r-benefits .r-col-label {
  color: #15803d;
}
.r-drawbacks .r-col-label {
  color: #b91c1c;
}
.r-pros-cons ul {
  margin: 0;
  padding-left: 16px;
}
.r-pros-cons li {
  font-size: 11.5px;
  color: var(--tr-text-secondary);
  line-height: 1.4;
  margin-bottom: 3px;
}

/* Trip Notes */
.trip-notes-wrap {
  margin-top: 48px;
  border-top: 1px solid var(--tr-border);
  padding-top: 24px;
}

/* Hub Header & Showcase Directory (/trips/) */
.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tr-border);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0284c7;
  margin-bottom: 8px;
  font-family: 'Space Mono', 'Space Grotesk', monospace;
}
.hub-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.6);
  animation: pulse-glow 2s infinite ease-in-out;
}
.hub-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: -0.025em;
  color: var(--tr-text-primary);
}
.hub-subtitle {
  font-size: 16px;
  color: var(--tr-text-secondary);
  margin: 0;
}
.hub-meta-count .count-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--tr-text-muted);
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  padding: 4px 12px;
  border-radius: 9999px;
}

/* Showcase Container */
.trips-showcase-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.trip-showcase-card {
  background: #ffffff;
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: var(--tr-shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
/* Card Status Borders */
.trip-showcase-card.card-status-planning {
  border: 1.5px solid #f59e0b;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.08);
}
.trip-showcase-card.card-status-planning::before {
  background: #f59e0b;
}
.trip-showcase-card.card-status-planning:hover {
  border-color: #d97706;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.16);
}
.trip-showcase-card.card-status-confirmed,
.trip-showcase-card.card-status-booked {
  border: 1.5px solid #10b981;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);
}
.trip-showcase-card.card-status-confirmed::before,
.trip-showcase-card.card-status-booked::before {
  background: #10b981;
}
.trip-showcase-card.card-status-confirmed:hover,
.trip-showcase-card.card-status-booked:hover {
  border-color: #059669;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.16);
}
.trip-showcase-card.card-status-completed {
  border: 1.5px solid #94a3b8;
}
.trip-showcase-card.card-status-completed::before {
  background: #94a3b8;
}
.trip-showcase-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #0284c7 50%, #10b981 100%);
  opacity: 0.9;
}
.sc-card-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 480px;
  height: 190px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.trip-showcase-card:hover .sc-card-art {
  opacity: 0.9;
  transform: scale(1.03);
}
.trip-showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tr-shadow-md);
  border-color: var(--tr-border-focus);
  text-decoration: none !important;
}
.trip-showcase-card * {
  text-decoration: none !important;
}

.sc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.sc-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-pill-year, .sc-pill-country {
  font-size: 12px;
  font-weight: 700;
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  color: var(--tr-text-muted);
  padding: 3px 10px;
  border-radius: 6px;
}
.sc-telemetry-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: 'Space Mono', 'Space Grotesk', monospace;
}

.sc-main {
  margin-bottom: 20px;
}
.sc-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.sc-flag {
  font-size: 32px;
  line-height: 1;
}
.sc-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--tr-text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}
.sc-sub {
  font-size: 15px;
  color: var(--tr-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.sc-route-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tr-bg);
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius-sm);
  padding: 8px 16px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sc-route-strip::-webkit-scrollbar {
  display: none;
}
.sc-route-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tr-text-muted);
  border-right: 1px solid var(--tr-border);
  padding-right: 10px;
  white-space: nowrap;
}
.sc-route-nodes {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.sc-route-arrow {
  color: #94a3b8;
  font-size: 10px;
}
.sc-node-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--tr-text-primary);
}

.sc-anchors-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.sc-anchor-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: #ffffff;
  border: 1px solid var(--tr-border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--tr-text-secondary);
}
.sc-anchor-chip .chip-cat {
  font-weight: 700;
  color: var(--tr-text-muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.sc-anchor-chip .chip-title {
  font-weight: 600;
  color: var(--tr-text-primary);
}

.sc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--tr-border);
  padding-top: 18px;
  margin-top: auto;
}
.sc-dates {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tr-text-muted);
}
.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  padding: 6px 14px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}
.trip-showcase-card:hover .sc-btn {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}
.sc-arrow-glyph {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.trip-showcase-card:hover .sc-arrow-glyph {
  transform: translate(2px, -2px);
}

.empty-trips-state {
  padding: 48px 0;
  color: var(--tr-text-muted);
  font-size: 15px;
}
}

/* Responsive */
@media (max-width: 820px) {
  .trip-hero {
    flex-direction: column;
  }
  .logistics-grid {
    grid-template-columns: 1fr;
  }
  .track-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .wedding-event-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .trip-viewport {
    padding: 0 16px;
  }
}
