/* Treks page (/treks): layout, header and footer come from /style.css, shared
   with the homepage. This file only adds the trip list and the trip cards,
   which keep their existing look for now. */

.main-row.main-row-top {
  align-items: flex-start;
  padding-block: 80px;
}

/* The Trips and Treks box looks like the homepage's link, but on this page
   it's plain text: no pointer cursor, no hover change. */
.format-text .link-static,
.format-text .link-static:hover {
  cursor: default;
  color: var(--text-soft);
  text-decoration-color: rgba(102, 102, 102, 0.3);
}

/* Location line under the trip name on trip pages: smaller and lighter than
   the name, like the footer text. */
.page-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.25rem;
}

.trip-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

/* ===== Trip cards: one per row, full column width ===== */
/* Same background and border as the homepage's tags and Trips and Treks box;
   text at the tags' 12px size. */
.trip-card {
  display: block;
  text-decoration: none;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.trip-card .cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--border);
}

/* Route-render posters burn the stats overlay across the frame in a couple
   of different layouts (some left-anchored, some spread edge-to-edge) — no
   single crop position is safe for all of them. Use the native 16:9 ratio
   instead of cropping to 4:3, so the whole overlay is always visible no
   matter which layout a given render used. Regular photo covers still get
   the normal 4:3 crop. */
.trip-card .cover-route {
  aspect-ratio: 16 / 9;
}
.trip-card .body {
  padding: 12px 16px 14px;
  font-size: 0.75rem;
  line-height: 1.25rem;
}
.trip-card h2 {
  margin: 0;
  color: var(--text);
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  transition: color 0.15s ease;
}
.trip-card .location { color: var(--text-soft); }
.trip-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  white-space: nowrap;
}
.chip.warm { color: var(--text); }

@media (hover: hover) {
  .trip-card:hover { border-color: var(--border-strong); }
}

.empty-state {
  margin-top: 32px;
  border: 1px dashed var(--border-strong);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-soft);
}
.empty-state code {
  font-family: var(--font-mono);
  background: var(--bg-depth);
  border: 1px solid var(--border);
  padding: 2px 6px;
}
