/* Compact Route Pool rows — shared by /route-pools and the homepage.
   Light Bigfella tokens so this matches Popular Routes, not a dark template. */
.rp-board-theme,
.rp-board {
  --rp-blue: #2a7de1;
  --rp-blue-dark: #1a5cb5;
  --rp-line: #d7dee8;
  --rp-text: #121212;
  --rp-muted: #4a5568;
  --rp-surface: #ffffff;
  --rp-display: "Sora", system-ui, sans-serif;
  --rp-body: "Plus Jakarta Sans", system-ui, sans-serif;
}
.rp-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.rp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(132px, 0.65fr) minmax(200px, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--rp-line);
  border-radius: 6px;
  background: var(--rp-surface);
  color: var(--rp-text);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.04);
  min-width: 0;
}
.rp-row-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.rp-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--rp-blue);
}
.rp-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  background: var(--rp-blue);
  color: #fff;
}
.rp-btn:hover { background: var(--rp-blue-dark); }
.rp-btn:focus-visible {
  outline: 2px solid var(--rp-blue);
  outline-offset: 2px;
}
.rp-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
  color: #24532d;
  background: rgba(47, 107, 58, 0.08);
  border: 1px solid rgba(47, 107, 58, 0.16);
}
.rp-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f6b3a;
}
.rp-status.is-closed {
  color: var(--rp-muted);
  background: #f6f8fb;
  border-color: var(--rp-line);
}
.rp-status.is-closed i { background: #8aa0b8; }
.rp-row-title {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--rp-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--rp-text);
}
.rp-row-title > * { white-space: nowrap; }
.rp-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  font-style: normal;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232a7de1' stroke-width='2' viewBox='0 0 24 24'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
}
.rp-row-price { min-width: 0; }
.rp-row .rp-price {
  font-family: var(--rp-display);
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
  color: var(--rp-blue);
}
.rp-row .rp-price small {
  display: inline;
  margin-left: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--rp-muted);
  font-weight: 600;
}
.rp-row .rp-save {
  margin: 2px 0 0;
  color: #2f6b3a;
  font-size: 0.8rem;
  font-weight: 800;
}
.rp-row .rp-direct {
  margin: 2px 0 0;
  color: var(--rp-muted);
  font-size: 0.75rem;
}
.rp-row-meta {
  min-width: 0;
  color: var(--rp-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}
.rp-row-meta p,
.rp-row-meta > * { margin: 0; }
.rp-row-meta strong { color: var(--rp-text); font-weight: 600; }
.rp-btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.rp-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 16px;
}
.rp-lane-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rp-line);
  border-radius: 6px;
  background: var(--rp-surface);
  min-width: 0;
}
.rp-lane-row h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--rp-text);
}
.rp-lane-row p {
  margin: 0;
  color: var(--rp-muted);
  font-size: 0.75rem;
}
.rp-pin {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232a7de1' stroke-width='2' viewBox='0 0 24 24'><path d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z'/><circle cx='12' cy='10' r='2.2'/></svg>");
}
@media (max-width: 900px) {
  .rp-row {
    grid-template-columns: 1fr 1fr;
  }
  .rp-row-cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 700px) {
  .rp-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }
  .rp-row-title {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 1.08rem;
  }
  .rp-row-title > * { white-space: normal; }
  .rp-row-title .rp-arrow { transform: rotate(90deg); }
  .rp-row .rp-price { font-size: 1.35rem; }
  .rp-row-cta,
  .rp-row-cta .rp-btn { width: 100%; }
  .rp-lanes { grid-template-columns: 1fr; }
}
