/* Journey listing — filters + grid, with journey-detail.css (tripcard) */

.jarchive {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 1.1rem 3rem;
}
@media (min-width: 768px) {
  .jarchive { padding: 2.5rem 2rem 3.5rem; }
}
@media (min-width: 1024px) {
  .jarchive { padding: 3rem 2.5rem 4rem; }
}

.jarchive__bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

/* Section intro head: eyebrow + h2 + subtext */
.jarchive__intro-head {
  margin-bottom: 0.5rem;
}
.jarchive__intro-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--garnet-red);
  margin: 0 0 0.5rem;
}
.jarchive__intro-h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6rem;
  text-transform: none;
}
@media (min-width: 1024px) {
  .jarchive__intro-h2 {
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  }
}
.jarchive__intro {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}
.jarchive__moods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
}
.jarchive__moods > span {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  width: 100%;
}
.jarchive__mood {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.jarchive__mood:hover { border-color: var(--garnet-red); color: var(--garnet-red); }
.jarchive__mood.is-active {
  background: var(--garnet-red);
  color: #fff;
  border-color: var(--garnet-red);
}
.jarchive__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}
.jarchive__count {
  font-size: 0.82rem;
  color: var(--muted);
}
.jarchive__count b { color: var(--ink); }
.jf-select {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.jf-select label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.jf-select select {
  font: inherit;
  min-width: 10rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

/* Grid: mobile rail feel → desktop 4-up */
.jarchive__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 400px) {
  .jarchive__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .jarchive__grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
.jarchive__grid .tripcard {
  flex: initial;
  min-width: 0;
  max-width: none;
  scroll-snap-align: none;
}
@media (max-width: 1023px) {
  /* single column on very narrow, 2-up from 400 */
}

/* Pagination (visual) */
.jarchive__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 2.5rem 0 0;
}
.jpager {
  min-width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  cursor: default;
  pointer-events: none;
}
.jpager[href] {
  cursor: pointer;
  pointer-events: auto;
}
.jpager[href]:hover { border-color: var(--garnet-red); color: var(--garnet-red); }
.jpager.is-active, .page-numbers.current {
  background: var(--garnet-red);
  color: #fff;
  border-color: var(--garnet-red);
}
