/* ==========================================================================
   Europe 2026 Travel Tracker - Vibrant Mediterranean Summer Edition
   Traveler: Jonathan Kin Wa Lui
   ========================================================================== */

/* Universal Scrollbar Elimination (Chrome, Safari, Edge, Firefox, iOS, Android) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none !important;        /* Firefox */
  -ms-overflow-style: none !important;     /* IE and Edge */
}
*::-webkit-scrollbar {
  display: none !important;                /* Chrome, Safari, Opera */
  width: 0 !important;
  height: 0 !important;
}

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Vibrant Mediterranean Summer Palette (Default) */
  --bg-main: #faf7f2;               /* Warm sun-bleached linen */
  --bg-canvas: #f4eee3;             /* Sandy terracotta-tinged canvas */
  --bg-surface: #ffffff;            /* Crisp sunlit white */
  --bg-surface-elevated: #fcf9f5;   /* Subtle warm elevation */
  --bg-surface-subtle: #f7f2eb;     /* Soft sand tint */
  --border: rgba(180, 140, 100, 0.18);
  --border-strong: rgba(180, 140, 100, 0.32);

  --text-primary: #1e293b;          /* Deep marine slate */
  --text-secondary: #576574;        /* Mediterranean stone */
  --text-muted: #8395a7;            /* Soft drift */
  --text-inverse: #ffffff;

  /* Vibrant Summer Accents */
  --accent-terracotta: #e76f51;     /* Portuguese tile terracotta */
  --accent-gold: #f4a261;           /* Golden Mediterranean sun */
  --accent-sunshine: #e9c46a;       /* Bright citrus yellow */
  --accent-turquoise: #2a9d8f;      /* Balearic crystal waters */
  --accent-navy: #1d3557;           /* Deep Atlantic marine */
  --accent-coral: #ff6b6b;          /* Summer sunset coral */
  --accent-emerald: #10b981;        /* Sintra pine green */

  /* Category Specific Vivid Badges */
  --cat-flight: #0284c7;            /* Sky blue */
  --cat-train: #10b981;             /* Coastal rail green */
  --cat-lodging: #e76f51;           /* Terracotta stay */
  --cat-restaurant: #f59e0b;        /* Gourmet gold */
  --cat-transfer: #8b5cf6;          /* Executive violet */
  --cat-activity: #06b6d4;          /* Azure excursion */

  --shadow-sm: 0 2px 6px rgba(160, 100, 60, 0.05);
  --shadow-md: 0 8px 24px rgba(160, 100, 60, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 36px rgba(160, 100, 60, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 8px 24px rgba(231, 111, 81, 0.2);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Optional Sunset / Twilight Mode */
[data-theme="dark"] {
  --bg-main: #0f141f;
  --bg-canvas: #090c13;
  --bg-surface: #171f2f;
  --bg-surface-elevated: #1f2a3f;
  --bg-surface-subtle: #1a2335;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f141f;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 8px 24px rgba(244, 162, 97, 0.25);
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   NAVIGATION BAR (POLISHED & NO SCROLLBAR)
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  transition: var(--transition);
}
[data-theme="dark"] .top-nav {
  background: rgba(23, 31, 47, 0.9);
}

.nav-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e76f51, #f4a261);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 14px rgba(231, 111, 81, 0.35);
}
.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}
.brand-text span {
  font-size: 0.75rem;
  color: var(--accent-terracotta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Nav View Tabs - Sleek Horizontal Container without Scrollbar */
.view-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 650px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.tab-btn svg {
  width: 16px;
  height: 16px;
}
.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
}
.tab-btn.active {
  background: var(--bg-surface);
  color: var(--accent-terracotta);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, #e76f51, #f4a261);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(231, 111, 81, 0.3);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(231, 111, 81, 0.4);
}
.btn-primary svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   HERO BANNER - VIBRANT SUMMER PANORAMA
   ========================================================================== */
.hero-banner {
  background: linear-gradient(180deg, rgba(250, 247, 242, 0.7) 0%, rgba(244, 238, 227, 0.95) 100%),
              radial-gradient(circle at 10% 10%, rgba(244, 162, 97, 0.25), transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(42, 157, 143, 0.2), transparent 50%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .hero-banner {
  background: linear-gradient(180deg, rgba(15, 20, 31, 0.85) 0%, rgba(9, 12, 19, 0.98) 100%),
              radial-gradient(circle at 10% 10%, rgba(231, 111, 81, 0.15), transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(42, 157, 143, 0.15), transparent 50%);
}

.hero-content {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  z-index: 2;
}

.hero-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(231, 111, 81, 0.1);
  border: 1px solid rgba(231, 111, 81, 0.25);
  color: var(--accent-terracotta);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Summer Destination Photo Mosaic Banner */
.summer-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
@media (max-width: 880px) {
  .summer-photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .summer-photo-strip {
    display: none;
  }
}

.photo-card-preview {
  position: relative;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
}
.photo-card-preview:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.photo-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-card-preview:hover img {
  transform: scale(1.08);
}
.photo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
  color: white;
}
.photo-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.photo-card-tag {
  font-size: 0.72rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Live Countdown & Status Box (Warm Card) */
.live-status-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  min-width: 330px;
}

.countdown-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.countdown-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-terracotta);
  line-height: 1;
  font-family: var(--font-mono);
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  line-height: 1.2;
}

.status-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
}

.active-context {
  flex: 1;
}
.active-context-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.active-context-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 3px;
}
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-turquoise);
  box-shadow: 0 0 10px var(--accent-turquoise);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Route Ribbon - Completely Free of Ugly Scrollbars */
.route-ribbon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0;
}

.route-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.route-step:hover, .route-step.active {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.route-step .city-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-turquoise);
}
.route-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Time-Travel Scrubber Bar */
.time-traveler-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.tt-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.tt-left svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
}

.tt-slider-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  max-width: 520px;
}
.tt-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border-strong);
  outline: none;
  cursor: pointer;
}
.tt-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-terracotta);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(231, 111, 81, 0.4);
  transition: transform 0.1s;
}
.tt-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.tt-indicator {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  background: rgba(231, 111, 81, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  min-width: 90px;
  text-align: center;
}

.tt-reset-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.tt-reset-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  flex: 1;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.section-title-group h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-title-group p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Filter Bar - No Scrollbars */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap svg {
  position: absolute;
  left: 0.85rem;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem 0.9rem 0.5rem 2.4rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  outline: none;
  transition: var(--transition);
  min-width: 200px;
  box-shadow: var(--shadow-sm);
}
.search-input:focus {
  border-color: var(--accent-terracotta);
  box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.15);
}

.filter-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
}
.filter-chip:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}
.filter-chip.active {
  background: var(--accent-terracotta);
  color: white;
  border-color: var(--accent-terracotta);
  box-shadow: 0 3px 10px rgba(231, 111, 81, 0.3);
}

/* View Panels */
.view-panel {
  display: none;
}
.view-panel.active {
  display: block;
  animation: fadeIn 0.22s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   VIEW 1: MASTER TIMELINE (DAY BY DAY)
   ========================================================================== */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  position: relative;
}

.timeline-day-group {
  position: relative;
  padding-left: 2.75rem;
}
.timeline-day-group::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: -24px;
  width: 2px;
  background: var(--border-strong);
}
.timeline-day-group:last-child::before {
  display: none;
}

.timeline-day-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.day-dot {
  position: absolute;
  left: -2.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2.5px solid var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-terracotta);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.day-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.day-meta-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-navy);
  background: rgba(42, 157, 143, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.day-events-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Event Cards - Summer Refined */
.event-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.event-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}
.event-card.cat-flight::before { background: var(--cat-flight); }
.event-card.cat-train::before { background: var(--cat-train); }
.event-card.cat-lodging::before { background: var(--cat-lodging); }
.event-card.cat-restaurant::before { background: var(--cat-restaurant); }
.event-card.cat-transfer::before { background: var(--cat-transfer); }
.event-card.cat-activity::before { background: var(--cat-activity); }

.event-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.event-icon-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.category-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.category-icon-badge svg {
  width: 20px;
  height: 20px;
}
.cat-flight .category-icon-badge { background: rgba(2, 132, 199, 0.12); color: var(--cat-flight); }
.cat-train .category-icon-badge { background: rgba(16, 185, 129, 0.12); color: var(--cat-train); }
.cat-lodging .category-icon-badge { background: rgba(231, 111, 81, 0.12); color: var(--cat-lodging); }
.cat-restaurant .category-icon-badge { background: rgba(245, 158, 11, 0.12); color: var(--cat-restaurant); }
.cat-transfer .category-icon-badge { background: rgba(139, 92, 246, 0.12); color: var(--cat-transfer); }
.cat-activity .category-icon-badge { background: rgba(6, 182, 212, 0.12); color: var(--cat-activity); }

.event-title-block h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.event-subtitle {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.event-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-pill.status-confirmed {
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}
.badge-pill.status-reserved {
  border-color: rgba(245, 158, 11, 0.3);
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
}

/* Event Details Grid */
.event-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  margin-top: 0.75rem;
  font-size: 0.84rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}
.detail-value {
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-notes {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: rgba(244, 162, 97, 0.06);
  border-left: 3px solid var(--accent-gold);
  padding: 0.5rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.event-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.action-link-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.action-link-btn:hover {
  color: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  background: var(--bg-surface-elevated);
}
.action-link-btn svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   VIEW 2: MAP & GEOGRAPHIC ROUTE
   ========================================================================== */
.map-view-container {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.75rem;
  height: 660px;
}
@media (max-width: 960px) {
  .map-view-container {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.map-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  min-height: 480px;
}

#trip-map {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  max-height: 660px;
}

.map-poi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}
.map-poi-card:hover {
  border-color: var(--accent-terracotta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.map-poi-img {
  height: 100px;
  width: 100%;
  object-fit: cover;
}
.map-poi-body {
  padding: 0.85rem 1rem;
}
.map-poi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.poi-city-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}
.poi-nights {
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(231, 111, 81, 0.12);
  color: var(--accent-terracotta);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}
.poi-hotel {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   VIEW 3: TRANSIT & BOARDING PASSES
   ========================================================================== */
.passes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

.boarding-pass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
}
.boarding-pass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.pass-header {
  padding: 1.1rem 1.4rem;
  background: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.pass-carrier {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}
.pass-carrier svg {
  width: 19px;
  height: 19px;
  color: var(--accent-terracotta);
}
.pass-type-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(231, 111, 81, 0.12);
  color: var(--accent-terracotta);
  text-transform: uppercase;
}

.pass-body {
  padding: 1.4rem;
}

.pass-flight-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.route-airport {
  display: flex;
  flex-direction: column;
}
.route-airport.text-right {
  text-align: right;
}
.iata-code {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.airport-city {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 3px;
}

.route-flight-path {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}
.flight-path-line {
  width: 100%;
  height: 2px;
  border-top: 2px dashed var(--accent-gold);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.6rem 0;
}
.flight-path-line svg {
  width: 18px;
  height: 18px;
  color: var(--accent-terracotta);
  background: var(--bg-surface);
  padding: 0 3px;
}
.flight-duration-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

.pass-times-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.time-col h4 {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  font-weight: 700;
}
.time-col p {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}
.time-col span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.pass-perforation {
  position: relative;
  height: 20px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.pass-perforation::before, .pass-perforation::after {
  content: "";
  position: absolute;
  top: 0;
  width: 16px;
  height: 20px;
  background: var(--bg-main);
  border-radius: 0 10px 10px 0;
  border: 1px solid var(--border);
  border-left: none;
}
.pass-perforation::after {
  right: 0;
  border-radius: 10px 0 0 10px;
  border-left: 1px solid var(--border);
  border-right: none;
}
.perforation-line {
  flex: 1;
  border-bottom: 2px dashed var(--border);
  margin: 0 20px;
}

.pass-stub {
  padding: 1rem 1.4rem;
  background: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.stub-barcode {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
}
.barcode-bar {
  width: 2px;
  height: 100%;
  background: var(--text-muted);
}
.barcode-bar.thick { width: 4px; }
.barcode-bar.thin { width: 1px; }

/* ==========================================================================
   VIEW 4: DINING GUIDE (VIBRANT FOOD & WINE)
   ========================================================================== */
.dining-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.75rem;
}

.dining-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.dining-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.dining-photo {
  height: 180px;
  width: 100%;
  object-fit: cover;
  position: relative;
}

.dining-header-info {
  padding: 1.25rem 1.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.dining-city-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(231, 111, 81, 0.12);
  color: var(--accent-terracotta);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}
.dining-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dining-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}
.dining-res-pill {
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.dining-body {
  padding: 0 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.dining-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.dining-tag {
  font-size: 0.74rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.dining-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.must-try-box {
  background: rgba(244, 162, 97, 0.08);
  border: 1px solid rgba(244, 162, 97, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  font-size: 0.84rem;
}
.must-try-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dining-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   VIEW 5: CITY DOSSIERS & HOTELS (WITH SUMMER PHOTOS)
   ========================================================================== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.75rem;
}

.city-dossier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.city-dossier-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.city-hero-photo-wrap {
  position: relative;
  height: 180px;
  width: 100%;
}
.city-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.city-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.25rem 1.4rem;
  color: white;
}
.city-hero-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.city-hero-dates {
  font-size: 0.8rem;
  opacity: 0.95;
  font-weight: 600;
}

.city-weather-badge {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #1e293b;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.city-weather-badge svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
}

.city-dossier-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.hotel-spotlight {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.hotel-spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.hotel-spotlight-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hotel-spotlight-name svg {
  width: 17px;
  height: 17px;
  color: var(--accent-terracotta);
}

.city-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.highlight-row {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.highlight-row svg {
  width: 14px;
  height: 14px;
  color: var(--accent-turquoise);
  flex-shrink: 0;
}

/* ==========================================================================
   VIEW 6: TRAVEL TOOLKIT & EMAIL INGESTION STATUS
   ========================================================================== */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.75rem;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}
.tool-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent-terracotta);
}

/* Email Ingestion Banner in Tools */
.email-sync-card {
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.08) 0%, rgba(231, 111, 81, 0.08) 100%);
  border: 1.5px dashed var(--accent-turquoise);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.email-sync-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.email-sync-address {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
}

/* Currency Converter */
.currency-row {
  display: flex;
  align-items: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
}
.currency-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  outline: none;
}
.currency-unit {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.quick-denominations {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.denom-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.denom-btn:hover {
  background: var(--accent-terracotta);
  color: white;
  border-color: var(--accent-terracotta);
}

/* Packing Checklist */
.packing-progress-bar {
  width: 100%;
  height: 7px;
  background: var(--bg-surface-subtle);
  border-radius: 4px;
  overflow: hidden;
}
.packing-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2a9d8f, #10b981);
  transition: width 0.3s ease;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 280px;
  overflow-y: auto;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.check-item:hover {
  background: var(--bg-surface-subtle);
}
.check-item.checked {
  color: var(--text-muted);
  text-decoration: line-through;
}
.check-box-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.check-item.checked .check-box-custom {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: white;
}
.check-box-custom svg {
  width: 13px;
  height: 13px;
}

.add-item-row {
  display: flex;
  gap: 0.5rem;
}
.simple-input {
  flex: 1;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  outline: none;
}
.simple-input:focus {
  border-color: var(--accent-terracotta);
}

/* Expenses */
.expense-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
}
.expense-total-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent-turquoise);
  font-family: var(--font-mono);
}
.expense-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 240px;
  overflow-y: auto;
}
.expense-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
}
.expense-del-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.expense-del-btn:hover {
  color: var(--accent-coral);
}

/* Modal Styling */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}
.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  padding: 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}
.modal-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal-footer {
  padding: 1.1rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-surface-subtle);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--text-primary);
  color: var(--bg-surface);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slideUp 0.22s ease-out;
}
.toast svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
}
@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Print Stylesheet */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .top-nav, .time-traveler-bar, .filter-bar, .nav-actions, .event-card-actions, .tab-btn, .summer-photo-strip {
    display: none !important;
  }
  .view-panel {
    display: block !important;
  }
  .event-card, .boarding-pass-card, .dining-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
    color: black !important;
    background: white !important;
  }
  .hero-banner {
    background: white !important;
    border-bottom: 2px solid #000 !important;
    color: black !important;
    padding: 1rem 0 !important;
  }
}

/* Responsive Fixes for Mobile & iPad (Eliminate Clipping & Overflow) */
@media (max-width: 900px) {
  .nav-wrapper {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .view-tabs {
    order: 3;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .live-status-card {
    min-width: 100%;
  }
  .passes-grid, .dining-grid, .cities-grid, .toolkit-grid {
    grid-template-columns: 1fr;
  }
  .main-wrapper {
    padding: 1.25rem 1rem;
  }
  .tab-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }
}
