/* ============================================================
   WHEELS ON FIRE — a listing: the section head, the filters and the grid
   of cards.

   Lifted out of tours.html, where it was written inline, so MTB Packages
   can be the same page as Our Tours rather than a copy of it. The card
   itself is assets/tour-card.css; this is everything around it.

   .filters is sticky under the header on Our Tours, where three groups
   of buttons filter six cards. `.filters.is-static` drops that for a bar
   with one group: pinned, it would only cover the cards it filters.
   ============================================================ */
.list-sub{max-width:52ch;color:var(--ink-dim);font-size:14px;margin-bottom:20px}
/* Condition of the booking, not fine print — it sits with the intro rather than
   at the foot of the section, and carries the red mark the site uses for alerts. */
/* A fill at 5% cream turns the red rule into a box: on the dark ground the
   bare rule read as a stray line rather than as a note. Enough to separate it
   from the section, not enough to become a panel. */
.list-alert{display:inline-flex;align-items:center;gap:12px;font-family:var(--monob);font-size:12.5px;
  letter-spacing:.06em;color:var(--ink);border-left:2px solid var(--red);
  background:rgba(241,237,228,.05);padding:14px 20px 14px 16px;
  margin-bottom:clamp(32px,5vh,58px)}
.list-alert .list-i{width:19px;height:19px;flex:none;color:var(--red)}

/* sticky needs a containing block that spans map + cards, and no overflow clip */
.explore{position:relative;background:var(--ink)}
.explore .grid-lines{position:absolute;inset:0;z-index:0;opacity:.55;
  background-image:repeating-linear-gradient(0deg,transparent 0 54px,rgba(241,237,228,.04) 54px 55px),
                   repeating-linear-gradient(90deg,transparent 0 54px,rgba(241,237,228,.04) 54px 55px)}
.explore-head{position:relative;z-index:1;padding:0 var(--pad)}
.cards-wrap{position:relative;z-index:1;background:var(--ink);padding:clamp(54px,9vh,110px) var(--pad) clamp(58px,9vh,120px)}
/* The title and its line of intro on the left, the riding-level note off to
   the right. Both paragraphs came off a cream section, so they are recoloured
   for the dark ground they sit on now. */
.map-top{display:flex;justify-content:space-between;align-items:flex-end;
  gap:clamp(22px,4vw,64px);flex-wrap:wrap;margin-bottom:clamp(22px,3.4vh,38px)}
.map-top-lead{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(12px,1.8vh,18px)}
.map-top .list-sub{color:var(--cream-dim);margin-bottom:0}
.map-top .list-alert{color:var(--cream);margin-bottom:0;max-width:34ch}
.map-top h2{font-size:var(--fs-display-col)}
.map-top h2 .fire{color:var(--red)}
.map-top p{max-width:42ch;font-size:14px;color:var(--cream-dim)}
/* The three groups and the result count sit on one line, spread edge to edge.
   They only stack once there genuinely is not room — see the 1399px block. */
.filters{position:sticky;top:var(--hh,84px);z-index:40;display:flex;gap:clamp(16px,2.6vw,42px);
  flex-wrap:nowrap;justify-content:space-between;align-items:center;
  /* No side padding: the bar lives inside .cards-wrap, which already insets it,
     so the first button lines up with the left edge of the card grid. */
  padding:16px 0;border-top:1px solid var(--line-d);border-bottom:1px solid var(--line-d);
  margin-bottom:clamp(20px,3.4vh,38px);background:rgba(26,26,26,.94);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  box-shadow:0 16px 24px -20px rgba(0,0,0,.95)}
.fgroup{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;white-space:nowrap}
.fgroup > span{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--cream-dim)}
.fbtn{font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--cream-dim);background:transparent;border:1px solid var(--line-d);padding:7px 14px;cursor:pointer;transition:color .22s ease,border-color .22s ease,background .22s ease}
.fbtn:hover{color:var(--cream);border-color:rgba(241,237,228,.4)}
.fbtn[aria-pressed="true"]{background:var(--red);border-color:var(--red);color:var(--cream)}
.fcount{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--cream-dim);white-space:nowrap}
/* Our Tours' three groups and the count need about 1385px on one line —
   measured, not guessed: below that the count was pushed 28px past the
   page and the whole page scrolled sideways (at 1280, for one). So they
   wrap from 1400 down. */
@media (max-width:1399px){
  .filters{flex-wrap:wrap;justify-content:flex-start}
  .fcount{margin-left:auto}
}
/* On a phone .fgroup's nowrap was pushing the Level row to 486px inside a
   371px screen, so the whole page scrolled sideways. Each group now takes a
   line of its own, label above and buttons wrapping under it. The bar also
   stops being sticky here: three stacked groups are 190px tall, and pinning
   that to the top would cost a quarter of the screen for the whole scroll. */
@media (max-width:760px){
  .filters{position:static;flex-direction:column;align-items:stretch;gap:14px;
    padding:18px 0}
  .fgroup{flex-wrap:wrap;white-space:normal;align-items:center;gap:8px}
  .fgroup > span{flex:0 0 100%}
  /* 31px was under the thumb's comfortable minimum; these are the page's
     main control and they are tapped, not clicked. */
  .fbtn{font-size:11px;letter-spacing:.1em;padding:0 14px;
    min-height:42px;display:inline-flex;align-items:center}
  .fcount{margin-left:0}
}
.filters.is-static{position:static}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,1.9vw,26px)}
@media (max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width:700px){.cards{grid-template-columns:1fr}}
