/* ── TIMELINE PAGE ──────────────────────────────────────────────────────── */

.tl-wrap {
  position: relative;
}

/* Section labels (Upcoming / Visited) above/below the list */
.tl-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 0 0 10px 36px;
}

.tl-label-upcoming {
  color: var(--gold);
}

.tl-label-visited {
  color: var(--forest-mid);
  padding-top: 4px;
}

.tl-count {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: 0;
  text-transform: none;
}

/* The vertical list container with the continuous line */
.tl-list {
  position: relative;
}

/* Continuous vertical line running through node column */
.tl-list::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border2);
  border-radius: 1px;
  z-index: 0;
}

/* Each timeline entry row */
.tl-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

/* Node column (holds the dot) */
.tl-node-col {
  flex: 0 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
  z-index: 1;
}

/* The dot/node */
.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.tl-dot-planned {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-light);
}

.tl-dot-visited {
  background: var(--forest-mid);
  box-shadow: 0 0 0 2px var(--forest-light);
}

.tl-dot-today {
  width: 16px;
  height: 16px;
  background: var(--forest);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 3px var(--forest);
  animation: tl-today-pulse 2s ease-out infinite;
}

@keyframes tl-today-pulse {
  0%   { box-shadow: 0 0 0 3px var(--forest); }
  50%  { box-shadow: 0 0 0 6px color-mix(in srgb, var(--forest) 30%, transparent); }
  100% { box-shadow: 0 0 0 3px var(--forest); }
}

/* Card wrapping the park row */
.tl-card {
  flex: 1;
  min-width: 0;
}

.tl-card .park-row {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin: 0;
  transition: background 0.15s, box-shadow 0.15s;
}

.tl-card .park-row:hover {
  background: var(--surface2);
  box-shadow: var(--shadow-md);
}

.tl-card .park-row.visited {
  border-color: color-mix(in srgb, var(--forest-mid) 20%, var(--border));
}

/* Empty state entry */
.tl-empty-entry .tl-node-col {
  padding-top: 10px;
}

.tl-empty-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px dashed var(--border2);
  color: var(--text3);
  font-size: 13px;
  background: transparent;
}

/* Today separator */
.tl-today {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
  position: relative;
  z-index: 1;
}

.tl-today .tl-node-col {
  padding-top: 0;
  align-items: center;
}

.tl-today-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--forest);
  background: var(--forest-light);
  border: 1px solid color-mix(in srgb, var(--forest-mid) 25%, var(--border));
  border-radius: 20px;
  padding: 6px 14px;
  letter-spacing: -0.1px;
}


/* Visit note displayed below status pill on timeline */
.tl-card .park-row.visited .park-status { flex-direction: column; align-items: flex-end; }
.tl-visit-note {
  font-size: 12px; color: var(--text2); font-style: italic;
  line-height: 1.4; word-break: break-word; text-align: right;
  max-width: 200px;
}

/* Dark mode adjustments */
body.dark .tl-today-label {
  color: var(--forest-text, #6dbb8a);
}

body.dark .tl-dot-planned {
  box-shadow: 0 0 0 2px var(--gold-light);
}

body.dark .tl-dot-visited {
  box-shadow: 0 0 0 2px var(--forest-light);
}

body.dark .tl-dot-today {
  animation: tl-today-pulse-dark 2s ease-out infinite;
}

@keyframes tl-today-pulse-dark {
  0%   { box-shadow: 0 0 0 3px var(--forest-mid); }
  50%  { box-shadow: 0 0 0 6px color-mix(in srgb, var(--forest-mid) 30%, transparent); }
  100% { box-shadow: 0 0 0 3px var(--forest-mid); }
}
