/* ============================================================================
   Banff Anniversary Trip Planner — Stylesheet
   John & Marti's 29th Anniversary Trip
   ============================================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f5f0;
  --bg-card: #ffffff;
  --bg-header: #1a1a2e;
  --bg-nav: #16213e;
  --text: #1a1a1a;
  --text-muted: #666;
  --text-light: #999;
  --border: #e0ddd5;
  --accent: #2d6a4f;
  --accent-light: #40916c;
  --accent-hover: #1b4332;
  --love: #e63946;
  --maybe: #f4a261;
  --pass: #adb5bd;
  --gold: #d4a843;
  --gold-bg: #fdf6e3;
  --success: #2d6a4f;
  --error: #c1121f;
  --info: #0077b6;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-sm: 4px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Category colors */
  --cat-hike: #2d6a4f;
  --cat-water: #0077b6;
  --cat-horse: #8b5e3c;
  --cat-drive: #457b9d;
  --cat-town: #6c4f9e;
  --cat-food: #e76f51;
  --cat-photo: #daa520;
  --cat-unique: #e63946;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* --- Dark Mode --- */
body.dark-mode {
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --text: #e0e0e0;
  --text-muted: #a0a0a0;
  --text-light: #777;
  --border: #2a2a3e;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.4);
  --gold-bg: #2a2518;
}

/* --- Header --- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s;
}

.header-btn:hover { background: rgba(255,255,255,0.22); }

.voter-wrapper { position: relative; }

.voter-btn { font-weight: 600; }

.voter-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  z-index: 200;
  min-width: 120px;
  margin-top: 4px;
}

.voter-menu.active { display: block; }

.voter-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
}

.voter-menu button:hover { background: var(--bg); }

/* --- Navigation --- */
.app-nav {
  display: flex;
  background: var(--bg-nav);
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-tab {
  padding: 12px 20px;
  color: rgba(255,255,255,0.6);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.nav-tab:hover { color: rgba(255,255,255,0.85); }
.nav-tab.active {
  color: #fff;
  border-bottom-color: var(--accent-light);
}

/* --- Main Container --- */
.app-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.view { min-height: 400px; }

/* --- Discover View --- */
.discover-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
}

.search-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.sort-select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-surprise {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.btn-surprise:hover { background: var(--accent-hover); }

.progress-counter {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
  padding: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

/* --- Filter Bar --- */
.filter-bar {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.filter-group:last-child { margin-bottom: 0; }

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 70px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-pill {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- Trip Card Grid --- */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.trip-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.trip-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.trip-card-header {
  padding: 16px 16px 8px;
}

.trip-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.trip-card-badge.both-love {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  background: #fff0f0;
  color: var(--love);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

body.dark-mode .trip-card-badge.both-love { background: #3a1a1a; }

.trip-card-tagline {
  padding: 0 16px 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.trip-card-stats {
  display: flex;
  gap: 12px;
  padding: 0 16px 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.trip-card-badges {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.trip-card-votes {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
}

.vote-btn {
  flex: 1;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}

.vote-btn:hover { border-color: var(--accent); }

.vote-btn.voted[data-vote="love"] {
  background: #fff0f0; border-color: var(--love); color: var(--love);
}
.vote-btn.voted[data-vote="maybe"] {
  background: #fff8f0; border-color: var(--maybe); color: #b87333;
}
.vote-btn.voted[data-vote="pass"] {
  background: #f0f0f0; border-color: var(--pass); color: #666;
}

body.dark-mode .vote-btn.voted[data-vote="love"] { background: #3a1a1a; }
body.dark-mode .vote-btn.voted[data-vote="maybe"] { background: #3a2a18; }
body.dark-mode .vote-btn.voted[data-vote="pass"] { background: #2a2a2a; }

.trip-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.btn-shortlist, .btn-details {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s;
}

.btn-shortlist:hover, .btn-details:hover { border-color: var(--accent); color: var(--accent); }

.btn-shortlist.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  overflow-y: auto;
  padding: 40px 20px;
}

.modal.active { display: flex; align-items: flex-start; justify-content: center; }

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 700px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: var(--text); }

.modal-header {
  padding: 24px 24px 16px;
}

.modal-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-tagline {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.95rem;
}

.modal-body { padding: 0 24px 16px; }

.modal-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-section:last-child { border-bottom: none; }

.modal-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.modal-section ul {
  list-style: disc;
  padding-left: 20px;
}

.modal-section li { margin-bottom: 4px; font-size: 0.9rem; }
.modal-section a { color: var(--accent); text-decoration: underline; }

.modal-footer { padding: 16px 24px 24px; border-top: 1px solid var(--border); }

.modal-comment { margin-bottom: 16px; }

.modal-comment label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.modal-comment-input {
  width: 100%;
  min-height: 60px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  resize: vertical;
}

.modal-tags { margin-bottom: 16px; }
.modal-tags label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }

.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-chip {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
}

.tag-chip:hover { border-color: var(--accent); }
.tag-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.modal-actions { display: flex; gap: 8px; }

.btn { padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: all 0.15s; }
.btn-small { padding: 6px 12px; font-size: 0.8rem; }
.btn-primary { background: var(--accent); color: #fff; border: none; }
.btn-primary:hover { background: var(--accent-hover); }

/* --- Shortlist View --- */
.shortlist-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.summary-stat {
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.summary-label { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.summary-value { display: block; font-size: 1.4rem; font-weight: 700; margin-top: 4px; }

.shortlist-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.shortlist-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shortlist-card-header {
  padding: 14px 16px 8px;
}

.shortlist-card-header h3 { font-size: 1rem; font-weight: 600; }

.shortlist-card-content { padding: 0 16px 12px; }

.shortlist-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.shortlist-card-votes {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.shortlist-card-comment {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 6px;
}

.shortlist-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.shortlist-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.btn-itinerary, .btn-remove {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-itinerary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-remove:hover { background: var(--error); color: #fff; border-color: var(--error); }

/* --- Build / Calendar View --- */
.calendar-layout {
  display: flex;
  gap: 20px;
  min-height: 600px;
}

.calendar-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  max-height: 80vh;
  overflow-y: auto;
  position: sticky;
  top: 120px;
}

.calendar-sidebar h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.draggable-trip {
  padding: 8px 12px;
  margin-bottom: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: grab;
  transition: all 0.15s;
}

.draggable-trip:hover { border-color: var(--accent); }
.draggable-trip:active { cursor: grabbing; }

.calendar-container {
  flex: 1;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.calendar-day {
  min-width: 180px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-day.anniversary {
  border-color: var(--gold);
  background: var(--gold-bg);
  box-shadow: 0 0 0 1px var(--gold);
}

.calendar-day.stampede {
  border-color: #8b5e3c;
}

.day-header { text-align: center; }

.day-title { font-weight: 700; font-size: 0.9rem; }
.day-number { font-size: 0.75rem; color: var(--text-muted); }

.day-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 4px;
}

.anniversary .day-badge { background: var(--gold); color: #fff; }
.stampede .day-badge { background: #8b5e3c; color: #fff; }

.day-label {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  background: var(--bg);
  color: var(--text);
}

.time-slots { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.time-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  min-height: 50px;
}

.slot-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.slot-content { min-height: 30px; }
.slot-content.drag-over { background: rgba(45,106,79,0.1); border-radius: var(--radius-sm); }

.assigned-trip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.btn-unassign {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 4px;
}

.btn-unassign:hover { color: #fff; }

.day-note {
  width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  resize: vertical;
}

/* --- Cost Analysis View --- */
.cost-header {
  margin-bottom: 24px;
}

.cost-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.cost-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.cost-gauge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.gauge-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.gauge-status {
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 14px;
  border-radius: 20px;
}

.gauge-under { background: #e8f5e9; color: #2e7d32; }
.gauge-on-track { background: #fff8e1; color: #f57f17; }
.gauge-over { background: #ffebee; color: #c62828; }

body.dark-mode .gauge-under { background: #1b3a1b; }
body.dark-mode .gauge-on-track { background: #3a3018; }
body.dark-mode .gauge-over { background: #3a1a1a; }

.gauge-amount {
  font-size: 1.2rem;
  font-weight: 600;
}

.gauge-track {
  position: relative;
  height: 16px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: visible;
}

.gauge-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s ease;
}

.gauge-fill.gauge-under { background: #4caf50; }
.gauge-fill.gauge-on-track { background: #ff9800; }
.gauge-fill.gauge-over { background: #f44336; }

.gauge-target-low, .gauge-target-high {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--text-muted);
}

.gauge-target-low::after, .gauge-target-high::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
}

.gauge-range {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cost-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.cost-total-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.cost-total-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.cost-total-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.cost-total-actual { border-color: var(--accent); }
.cost-total-actual .cost-total-value { color: var(--accent); }

.cost-total-activities { border-color: var(--info); }
.cost-total-activities .cost-total-value { color: var(--info); }

.cost-section {
  margin-bottom: 32px;
}

.cost-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cost-section-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.cost-table th {
  background: var(--bg);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

.cost-table td {
  padding: 8px 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.cost-item-label { font-weight: 600; }

.cost-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
}

.cost-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.cost-input[type="number"] { max-width: 100px; }
.cost-notes { min-width: 150px; }

.cost-actual {
  font-weight: 600;
}

.cost-table-total td {
  border-top: 2px solid var(--text);
  border-bottom: none;
  padding-top: 12px;
  font-size: 0.95rem;
}

.cost-details {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cost-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* --- Report View --- */
.report-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

.report-header { text-align: center; margin-bottom: 32px; }

.report-header h1 { font-size: 1.6rem; }

.report-date-range {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.report-summary {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.report-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.report-section h2 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.report-day {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.report-day h3 { font-size: 0.95rem; margin-bottom: 8px; }

.report-day ul { list-style: disc; padding-left: 20px; font-size: 0.88rem; }
.report-day li { margin-bottom: 6px; }

.day-empty { color: var(--text-light); font-size: 0.85rem; font-style: italic; }

.day-note-display {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
}

.checklist a { color: var(--accent); margin-left: 8px; font-size: 0.82rem; }

.packing-list {
  list-style: disc;
  padding-left: 20px;
}

.packing-list li { padding: 4px 0; font-size: 0.9rem; }

.report-actions {
  text-align: center;
  margin-top: 24px;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: toastIn 0.3s ease;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--error); }
.toast-info { background: var(--info); }

.toast-exit { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }

/* --- Confetti --- */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2000;
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall 2.5s ease-out forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* --- Print Styles --- */
@media print {
  .app-header, .app-nav, .toast-container, .confetti-container,
  .report-actions, .btn, button { display: none !important; }

  .app-main { padding: 0; max-width: 100%; }

  .report-container {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  body { background: #fff; color: #000; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .app-header { padding: 10px 16px; }
  .app-title { font-size: 1rem; }
  .app-main { padding: 16px; }

  .trip-grid { grid-template-columns: 1fr; }
  .shortlist-container { grid-template-columns: 1fr; }

  .calendar-layout {
    flex-direction: column;
  }

  .calendar-sidebar {
    width: 100%;
    position: static;
    max-height: 200px;
  }

  .calendar-container {
    flex-direction: column;
  }

  .calendar-day { min-width: 100%; }

  .cost-totals { grid-template-columns: 1fr; }

  .cost-table { font-size: 0.82rem; }
  .cost-input[type="number"] { max-width: 80px; }

  .modal-content { margin: 10px; }

  .report-container { padding: 20px; }

  .discover-controls { flex-direction: column; }
  .search-input { min-width: 100%; }

  .nav-tab { padding: 10px 14px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .app-nav { padding: 0; }
  .nav-tab { padding: 8px 0; font-size: 0.75rem; flex: 1; text-align: center; }

  .cost-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cost-table { min-width: 560px; }
  .cost-table th, .cost-table td { padding: 6px 8px; font-size: 0.78rem; }
  .gauge-amount { font-size: 1rem; }
}
