/* Ritter'Hoft — Randonnées : les boucles au départ des sentiers du Club Vosgien.
 *
 * Copied from velo-boucles.css rather than shared with it, so the cycling page
 * cannot break when this one changes. The tokens and the two-column shape are
 * deliberately identical: the two pages should read as one family.
 *
 * If you restyle one, restyle the other. That drift is exactly what produced
 * the off-brand pass this file was forked from.
 *
 * Unlike the cycling loops, these do NOT start at the hotel: no waymarked trail
 * comes within 3.7 km of Morsbronn. Each walk therefore carries a trailhead and
 * a drive time, which is what .rnd-card__head is for.
 */

.rnd-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 32px;
  align-items: start;
}

.rnd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-items: flex-end;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.rnd-filters fieldset { border: 0; padding: 0; margin: 0; }

.rnd-filters legend,
.rnd-filters label.rnd-lbl {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
  display: block;
  padding: 0;
}

.rnd-segs { display: flex; flex-wrap: wrap; gap: 6px; }

/* The radio itself is the accessible control; the label is the visible chip. */
.rnd-segs input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* Same pill idiom as .blog-topics / .menu-jump in styles.css. */
.rnd-segs span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}

.rnd-segs label:hover span { border-color: var(--gold); }
.rnd-segs input:checked + span {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--color-accent-ink);
}
.rnd-segs input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.rnd-filters select {
  font: inherit;
  font-size: .85rem;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
}

.rnd-count { margin: 18px 0 12px; font-size: .82rem; color: var(--ink-faint); }
.rnd-count b { font-family: var(--logo); font-size: 1.05rem; color: var(--gold-deep); }

.rnd-list { display: grid; gap: 12px; max-height: 700px; overflow-y: auto; padding-right: 4px; }

.rnd-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 16px 18px 14px;
  transition: border-color .18s, transform .18s;
}
.rnd-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.rnd-card:has(.rnd-card__open[aria-expanded="true"]) {
  border-color: var(--gold);
  background: var(--paper-2);
}

.rnd-card__open {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.rnd-card__open:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.rnd-card__tag {
  display: block;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.rnd-card__name {
  display: block;
  margin-top: 5px;
  font-family: var(--logo);
  font-size: 1.16rem;
  line-height: 1.25;
}

.rnd-card__goal {
  display: block;
  margin-top: 7px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.rnd-card__stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* Reads as .route__level in styles.css, which labels the same kind of data. */
.rnd-card__stats b {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
}

.rnd-card__via {
  margin: 12px 0 0;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

.rnd-card__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Card-scale version of .btn / .btn-teal / .btn-outline from styles.css:
   same charcoal-primary language, shorter so it sits inside a list card. */
.rnd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 2px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--color-accent-ink);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.rnd-btn:hover { background: var(--teal-700); border-color: var(--teal-700); transform: translateY(-2px); }
.rnd-btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.rnd-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.rnd-btn--ghost:hover {
  background: transparent;
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

.rnd-map__wrap { position: sticky; top: 100px; }

#rnd-map {
  height: 620px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--paper-2);
  z-index: 0; /* keep Leaflet panes under the site header */
}

.rnd-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
  font-size: .76rem;
  color: var(--ink-faint);
}
.rnd-legend span { display: inline-flex; align-items: center; gap: 7px; }
.rnd-legend i { width: 22px; height: 3px; border-radius: 2px; flex: none; }
/* Must stay in step with GOLD/INK in velo-boucles.js, which paints the same lines. */
.rnd-legend .k-sel { background: var(--gold); height: 4px; }
.rnd-legend .k-line { background: var(--teal); opacity: .5; }
.rnd-legend .k-hotel {
  width: 11px; height: 11px; border-radius: 50%; background: var(--gold);
  border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line);
}

.rnd-source { margin-top: 16px; font-size: .78rem; line-height: 1.6; color: var(--ink-faint); }
.rnd-source a { color: var(--gold-deep); }

.rnd-empty {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--ink-faint);
}

@media (max-width: 900px) {
  .rnd-layout { grid-template-columns: 1fr; }
  .rnd-map__wrap { position: static; order: -1; }
  #rnd-map { height: 380px; }
  .rnd-list { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rnd-card, .rnd-btn, .rnd-segs span { transition: none; }
}

.rnd-card__fee{margin:6px 0 0;font-size:.82rem;font-weight:600;color:#92500B;}
