/* ==========================================
   CSS Core & Variables (MASA Masha Camping & Warm Mid-Autumn Golden Theme)
   ========================================== */

:root {
  /* Color Palette - Masha Camping Warm Golden Mid-Autumn Theme */
  --color-bg: #fdfaf2;            /* Warm Full Moon Ivory */
  --color-card-bg: rgba(255, 255, 255, 0.88);
  --color-primary: #854d0e;       /* Deep Golden Brown / Autumn Ochre */
  --color-secondary: #b45309;     /* Warm Amber Harvest */
  --color-accent: #d97724;        /* Golden Honey / Autumn Glow */
  --color-accent-light: #fef3c7;  /* Warm Pale Moon Glow */
  --color-yellow: #eab308;        /* Bright Golden Moon Yellow */
  --color-yellow-light: #fffbeb;  /* Warm Sunlight Ivory */
  --color-water: #0284c7;         /* Water Splash Blue */
  --color-water-light: #e0f2fe;   /* Pool Blue */
  --color-sand: #e6c875;          /* Warm Golden Sand */
  --color-sand-light: #fef9e7;    /* Warm Linen */
  --color-dark: #382d1d;          /* Deep Roasted Chestnut */
  --color-muted: #786b59;         /* Soft Warm Earth Gray */
  --color-white: #ffffff;
  
  /* Warnings & Highlights */
  --color-warning: #ea580c;       /* Sun Alert */
  --color-danger: #dc2626;        /* Crimson Alert */
  
  /* Fonts */
  --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 8px 30px rgba(180, 83, 9, 0.07);
  --shadow-hover: 0 16px 40px rgba(180, 83, 9, 0.15);
  --border-glass: 1px solid rgba(245, 158, 11, 0.25);
}

/* ==========================================
   Reset & Base Styles
   ========================================== */

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.font-outfit {
  font-family: var(--font-display);
}

/* Decorative Background Blobs (Warm Golden Moon Glow) */
.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
}

.bg-circle-1 {
  top: -100px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #fde047 0%, rgba(255,255,255,0) 70%);
}

.bg-circle-2 {
  top: 35%;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #fed7aa 0%, rgba(255,255,255,0) 75%);
}

.bg-circle-3 {
  bottom: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #fef08a 0%, rgba(255,255,255,0) 70%);
}

/* ==========================================
   Header Section
   ========================================== */

header {
  padding: 2.8rem 0 2rem;
  position: relative;
  z-index: 1;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background-color: var(--color-accent-light);
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 12px;
  display: inline-block;
  border: 1px solid rgba(217, 119, 36, 0.2);
}

.main-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: 20px;
}

/* Meta Badge Bar */
.trip-meta-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 22px;
  border-radius: 40px;
  border: var(--border-glass);
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
  color: var(--color-dark);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.meta-item i {
  color: var(--color-secondary);
}

.meta-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-sand);
}

/* ==========================================
   Dashboard Grid (Top 3 Cards)
   ========================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}

.glassmorphism {
  background: var(--color-card-bg);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.glassmorphism:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.alert-icon {
  background-color: #fef3c7;
  color: #b45309;
}

.camp-icon {
  background-color: #fef3c7;
  color: #b45309;
}

.traffic-icon {
  background-color: #e0f2fe;
  color: #0369a1;
}

.contact-icon {
  background-color: #fee2e2;
  color: #dc2626;
}

.btn-line {
  background-color: #06c755;
  color: #ffffff;
}

.btn-line:hover {
  background-color: #05a847;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.contact-action-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.card-subtitle {
  font-size: 0.78rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.card-body {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

/* Weather & Camp Specific UI */
.weather-metrics-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.weather-metric-box {
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-secondary);
  text-align: center;
}

.weather-metric-label {
  font-size: 0.74rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2px;
}

.weather-metric-val {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 700;
}

.badge-dry-pack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fcd34d;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
}

.weather-tips-box {
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.83rem;
  line-height: 1.45;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.weather-tip-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.weather-tip-line i {
  margin-top: 3px;
  font-size: 0.88rem;
  flex-shrink: 0;
}

/* Feature Item Rows */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-secondary);
}

.feature-item i {
  color: var(--color-secondary);
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

.feature-text strong {
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

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

.btn-primary:hover {
  background-color: #713f12;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}

.btn-secondary:hover {
  background-color: rgba(59, 122, 87, 0.08);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* ==========================================
   Interactive Tools Section (Timer + Packing Checklist)
   ========================================== */

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 22px;
  margin-bottom: 30px;
}

/* 2-Hour Spray Timer */
.timer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.timer-box {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin: 10px 0;
  border: 1px dashed rgba(217, 119, 36, 0.3);
}

.timer-display {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  font-family: var(--font-display);
}

.timer-progress-wrap {
  width: 100%;
  height: 8px;
  background-color: #f1f5f2;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

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

.timer-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

/* Packing Checklist */
.checklist-card {
  display: flex;
  flex-direction: column;
}

.checklist-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checklist-progress-badge {
  font-size: 0.82rem;
  font-weight: 700;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(217, 119, 36, 0.25);
}

.checklist-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background-color: #eaf0ec;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0 16px;
}

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

.checklist-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.checklist-category-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checklist-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s;
  user-select: none;
}

.check-item:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.check-item input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.check-item input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: var(--color-muted);
}

/* ==========================================
   Row 3: Traffic & Highway Real-Time Card
   ========================================== */

.traffic-banner-card {
  margin-bottom: 32px;
  padding: 24px;
}

.traffic-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.traffic-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-info-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.traffic-status-pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.traffic-status-pill {
  background: #ffffff;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid #0284c7;
  display: flex;
  flex-direction: column;
}

.traffic-pill-name {
  font-size: 0.76rem;
  color: var(--color-muted);
  font-weight: 600;
}

.traffic-pill-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-dark);
}

.traffic-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* ==========================================
   Metro-Style Traffic Pipeline & ETA Banner Styles
   ========================================== */

.traffic-mode-badge {
  font-size: 0.72rem;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.25);
  padding: 2px 9px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.traffic-mode-badge.live {
  background: #dcfce7;
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.3);
}

.traffic-ctrl-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.traffic-direction-group {
  display: inline-flex;
  background: rgba(254, 243, 199, 0.6);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(217, 119, 36, 0.25);
  width: fit-content;
  max-width: 100%;
}

.dir-btn {
  border: none;
  background: transparent;
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #92400e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.dir-btn.active {
  background: linear-gradient(135deg, #b45309, #d97724);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.25);
}

.traffic-route-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-btn {
  border: 1px solid rgba(180, 83, 9, 0.2);
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.route-btn:hover {
  background: #fffbeb;
  border-color: var(--color-accent);
}

.route-btn.active {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* ETA Banner */
.traffic-eta-banner {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.85) 0%, rgba(253, 230, 138, 0.6) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.06);
}

.eta-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eta-label {
  font-size: 0.82rem;
  color: #92400e;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eta-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.eta-time {
  font-size: 1.75rem;
  font-weight: 800;
  color: #78350f;
  font-family: var(--font-display);
  letter-spacing: -0.5px;
}

.eta-dist {
  font-size: 0.88rem;
  font-weight: 700;
  color: #b45309;
  background: rgba(255, 255, 255, 0.65);
  padding: 3px 10px;
  border-radius: 12px;
}

.eta-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.traffic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.traffic-badge.badge-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.traffic-badge.badge-yellow {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid rgba(202, 138, 4, 0.3);
}

.traffic-badge.badge-red {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.traffic-badge.badge-purple {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid rgba(126, 34, 206, 0.3);
}

.traffic-speed-avg {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 600;
}

/* Metro Pipeline Track */
.metro-pipeline-wrap {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px;
  margin-bottom: 18px;
}

.metro-pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

.metro-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.green { background: #22c55e; }
.legend-dot.yellow { background: #eab308; }
.legend-dot.red { background: #ef4444; }
.legend-dot.purple { background: #a855f7; }

.metro-pipeline-track {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 10px 4px 18px 4px;
  scrollbar-width: thin;
  scrollbar-color: #d97724 #fef3c7;
}

.metro-pipeline-track::-webkit-scrollbar {
  height: 6px;
}

.metro-pipeline-track::-webkit-scrollbar-track {
  background: #fef3c7;
  border-radius: 3px;
}

.metro-pipeline-track::-webkit-scrollbar-thumb {
  background-color: #d97724;
  border-radius: 3px;
}

.metro-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  flex-shrink: 0;
  text-align: center;
  position: relative;
}

.metro-node-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
  z-index: 2;
  transition: transform 0.2s;
}

.metro-node:hover .metro-node-dot {
  transform: scale(1.2);
  border-color: var(--color-accent);
}

.metro-node-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.25;
}

.metro-node-sub {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 2px;
}

.metro-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  flex: 1;
  flex-shrink: 0;
  position: relative;
  padding: 0 4px;
}

.metro-segment-bar {
  height: 8px;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  transition: background-color 0.3s;
}

.metro-segment-bar.green { background: #22c55e; }
.metro-segment-bar.yellow { background: #eab308; }
.metro-segment-bar.red { background: #ef4444; }
.metro-segment-bar.purple { background: #a855f7; }

.metro-segment-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.metro-speed-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.metro-speed-badge.green { background: #16a34a; }
.metro-speed-badge.yellow { background: #ca8a04; color: #ffffff; }
.metro-speed-badge.red { background: #dc2626; }
.metro-speed-badge.purple { background: #9333ea; }

.metro-segment-meta {
  font-size: 0.7rem;
  color: var(--color-muted);
  white-space: nowrap;
}


/* ==========================================
   Timeline & Itinerary Section
   ========================================== */

.itinerary-section {
  margin-bottom: 40px;
}

.section-header-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Day Filter Tabs */
.timeline-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid rgba(39, 86, 59, 0.15);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background: var(--color-white);
  border-color: var(--color-secondary);
}

.tab-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.25);
}

/* Timeline Layout */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.day-anchor-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0 10px;
}

.day-pill {
  background: linear-gradient(90deg, #854d0e, #d97724);
  color: var(--color-white);
  padding: 6px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2);
}

.day-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(217, 119, 36, 0.25), transparent);
}

/* Timeline Event Card */
.timeline-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  background: var(--color-card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.timeline-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--color-secondary);
}

.timeline-card.highlight::before {
  background-color: var(--color-accent);
}

.timeline-card.water::before {
  background-color: var(--color-water);
}

.time-badge-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  border-right: 1px dashed rgba(0, 0, 0, 0.08);
  padding-right: 12px;
}

.time-str {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-display);
}

.duration-str {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 2px;
}

.content-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.event-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
}

.event-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background-color: #f1f5f2;
  color: var(--color-muted);
}

.event-desc {
  font-size: 0.88rem;
  color: #3f4d45;
  line-height: 1.5;
}

.event-highlight-box {
  background: rgba(255, 255, 255, 0.75);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  font-size: 0.82rem;
  color: #4a554f;
  margin-top: 4px;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  margin-top: 4px;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 6px;
  background-color: #e0f2fe;
  transition: var(--transition-smooth);
}

.nav-link-btn:hover {
  background-color: #bae6fd;
}

/* ==========================================
   Error Handling & Emergency Section
   ========================================== */

.error-handling-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.error-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--color-card-bg);
  border: var(--border-glass);
  box-shadow: var(--shadow-subtle);
}

.error-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.error-card.rain .error-card-title {
  color: #0369a1;
}

.error-card.emergency .error-card-title {
  color: #b91c1c;
}

.error-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.contact-pill-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.contact-pill a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================
   Footer
   ========================================== */

footer {
  text-align: center;
  padding: 30px 0 40px;
  font-size: 0.85rem;
  color: var(--color-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer p {
  margin-bottom: 4px;
}

/* ==========================================
   Responsive Media Queries
   ========================================== */

@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

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

  .traffic-grid-layout {
    grid-template-columns: 1fr;
  }

  .error-handling-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .main-title {
    font-size: 1.8rem;
  }

  .traffic-status-pill-grid {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .time-badge-col {
    border-right: none;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding-right: 0;
    padding-bottom: 6px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .trip-meta-badge {
    flex-direction: column;
    gap: 6px;
  }

  .meta-separator {
    display: none;
  }
}
