/* ---- the Travel pages (TASK-0392, stayPages.ts): /travel and an area's where-to-stay. No script: the list's filters are radio buttons before the chips
   and the table, as the list of areas' (`.hub-f`); on a phone the table's rows become cards. Contrast: every pair below reaches 4.5:1 (#1b6b3c on #e3f3ea 6.4:1,
   #8a5300 on #fff2dc 5.9:1, --alpenglow-ink on #fff 5.3:1) ---- */
.stay-head .kicker, .travel-how .kicker, .travel-areas .kicker, .travel-why .kicker { margin: 22px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--alpenglow-ink); }
.travel-how .kicker, .travel-areas .kicker, .travel-why .kicker { margin: 0; }
.travel-how h2, .travel-areas h2, .travel-why h2 { margin-top: 6px; }
.stay-head h1 { font-size: clamp(34px, 5vw, 60px); }
.stay-head .answer { max-width: 760px; margin: 0 0 6px; font-size: 19px; }
.stay-head .definition { max-width: 760px; font-weight: 600; }
.stay-head .measured { margin: 0; }
.stay-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 6px; }
.stay-nums div { padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.stay-nums dt { font-size: 13px; color: var(--rock); }
.stay-nums dd { margin: 2px 0 0; font: 800 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stay-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; margin-top: 22px; }
.stay-list { flex: 999 1 560px; min-width: 0; }
.stay-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.stay-f { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.stay-chips { margin-bottom: 4px; }
.stay-chips label { background: #fff; color: var(--night); border-color: #8d9bab; }
#sf-all:checked ~ .stay-chips [for='sf-all'], #sf-5:checked ~ .stay-chips [for='sf-5'], #sf-10:checked ~ .stay-chips [for='sf-10'], #sf-ski:checked ~ .stay-chips [for='sf-ski'], #sf-hotel:checked ~ .stay-chips [for='sf-hotel'], #sf-chalet:checked ~ .stay-chips [for='sf-chalet'], #sf-hut:checked ~ .stay-chips [for='sf-hut'] { background: var(--night); color: var(--snow); border-color: var(--night); }
#sf-all:focus-visible ~ .stay-chips [for='sf-all'], #sf-5:focus-visible ~ .stay-chips [for='sf-5'], #sf-10:focus-visible ~ .stay-chips [for='sf-10'], #sf-ski:focus-visible ~ .stay-chips [for='sf-ski'], #sf-hotel:focus-visible ~ .stay-chips [for='sf-hotel'], #sf-chalet:focus-visible ~ .stay-chips [for='sf-chalet'], #sf-hut:focus-visible ~ .stay-chips [for='sf-hut'] { outline: 3px solid var(--alpenglow); outline-offset: 2px; }
#sf-5:checked ~ .stay-scroll tbody tr:not(.w5), #sf-10:checked ~ .stay-scroll tbody tr:not(.w10), #sf-ski:checked ~ .stay-scroll tbody tr:not(.ski), #sf-hotel:checked ~ .stay-scroll tbody tr:not(.k-hotel), #sf-chalet:checked ~ .stay-scroll tbody tr:not(.k-chalet), #sf-hut:checked ~ .stay-scroll tbody tr:not(.k-hut) { display: none; }
.stay-list .sorted { margin: 6px 0 0; }
.stay-scroll { overflow-x: auto; }
.stays { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.stays caption { padding: 0; text-align: left; font-size: 14px; color: var(--rock); }
.stays thead th { padding: 0 12px; text-align: left; font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rock); }
.stays tbody tr { background: #fff; }
.stays tbody td, .stays tbody th { padding: 12px; text-align: left; vertical-align: middle; font-weight: 400; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stays tbody tr > :first-child { border-left: 1px solid var(--line); border-radius: 14px 0 0 14px; }
.stays tbody tr > :last-child { border-right: 1px solid var(--line); border-radius: 0 14px 14px 0; }
.stays .walk { width: 84px; text-align: center; }
.stays .walk b { display: block; font: 800 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.stays .walk span { font-size: 12px; color: inherit; }
.stays .walk.near { background: #e3f3ea; color: #1b6b3c; }
.stays .walk.mid { background: #fff2dc; color: #8a5300; }
.stays .walk.approx, .stays .walk.none { color: var(--rock); }
.stays th b { font-size: 17px; }
.stays .kind { font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.stays .cell, .stays .lift small, .stays .nearer { display: block; }
.badge-ski { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e3f3ea; color: #1b6b3c; font-size: 12px; font-weight: 600; }
.stays .around { font-size: 14px; }
.stays .around span { display: inline-block; }
.stays .links { text-align: right; }
.stays .links .btn { margin: 3px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.disclosure { max-width: 760px; }
.stay-map, .stay-best { padding: 20px; border-radius: 16px; }
.stay-map { background: var(--night); color: var(--snow); }
.stay-map h2, .stay-best h2 { margin: 0 0 8px; font-size: 22px; }
.stay-map p { color: var(--mist); }
.stay-map .btn.play { width: 100%; font-size: 18px; }
.stay-best { background: #fff; border: 1px solid var(--line); }
.stay-best dl { margin: 0; }
.stay-best dl div { padding: 10px 0; border-top: 1px solid var(--line); }
.stay-best dt { font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--alpenglow-ink); }
.stay-best dd { margin: 2px 0 0; }
.stay-best dd span { color: var(--rock); }
.stay-best dd small { display: block; }
.stay-best .note { margin: 10px 0 0; font-size: 13px; }
.stay-bases .tile .count { color: var(--night); font-weight: 600; }
.stay-links h2 { margin-top: 0; }
.stay-cards, .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 0; margin: 16px 0; list-style: none; }
.stay-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--night); text-decoration: none; }
.stay-cards a:hover { border-color: var(--glacier); color: var(--night); }
.stay-cards b { font: 800 19px/1.2 var(--display); }
.stay-cards span { font-size: 14px; color: var(--rock); font-variant-numeric: tabular-nums; }
.stay-cards em { font-style: normal; display: inline-block; }
.stay-cards .go { margin-top: auto; color: var(--alpenglow-ink); font-weight: 600; font-size: 15px; }
.steps li { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.steps b { display: block; margin-bottom: 6px; font: 800 18px/1.25 var(--display); }
.steps span { color: var(--rock); }
.stay-credit { margin: 28px 0 0; }
@media (max-width: 760px) {
  .stays, .stays tbody, .stays tbody td, .stays tbody th { display: block; }
  .stays thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stays caption { display: block; width: 100%; }
  .stays tbody tr { display: grid; grid-template-columns: 76px minmax(0, 1fr); margin: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .stays tbody td, .stays tbody th { padding: 10px 12px; border: 0 !important; border-radius: 0 !important; }
  .stays .walk { grid-row: span 3; width: auto; display: flex; flex-direction: column; justify-content: center; }
  .stays .links { grid-column: 1 / -1; text-align: left; }
  .stays .links .btn { margin: 0 6px 6px 0; }
}

/* ---- TASK-0399: the pages made visual. A picture from the game first (the hero of the area's page, revitalization.css), the numbers big, the places as
   cards with the minutes the largest thing on them, the places on the relief, and the long words folded at the end (still in the HTML). ---- */
.stay-hero .cta .btn.ghost, .travel-hero .cta .btn.ghost { color: var(--snow); border-color: rgba(255, 255, 255, 0.7); }
.stay-best2 ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding: 0; margin: 14px 0 6px; list-style: none; }
.stay-best2 li { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--glacier); border-radius: 16px; }
.stay-best2 .pf-beginners { border-top-color: #2e9e5b; }
.stay-best2 .pf-sunny { border-top-color: #f2b33d; }
.stay-best2 .pf-terrain { border-top-color: #2f6fd6; }
.stay-best2 .pf { font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rock); }
.stay-best2 b { font: 800 24px/1.2 var(--display); }
.stay-best2 small { font-size: 15px; color: var(--night); }
.stay-best2 .lift { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--rock); }
.stay-best2 li { background: #fffaf3; border-color: #f0e1cc; }
/* the list: each row a card, three a line on a desktop; the minutes in a circle, the colour of the walk */
.stay-list h2 { margin-bottom: 10px; }
.stays caption, .stays thead, .stay-list .sorted, .stays .ul, .stay-list .sprite { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stays, .stays tbody { display: block; }
.stays tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 12px; }
.stays tbody tr { display: grid; grid-template-columns: 78px minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; column-gap: 14px; padding: 16px; background: #fffaf3; border: 1px solid #f0e1cc; border-radius: 18px; box-shadow: 0 6px 18px rgba(120, 72, 20, 0.07); }
.stays tbody td, .stays tbody th { display: block; padding: 0; border: 0 !important; border-radius: 0 !important; background: none; }
.stays .walk { grid-row: 1 / 3; width: 78px; height: 78px; border-radius: 50% !important; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #eef1f5 !important; }
.stays .walk b { font-size: 34px; }
.stays .walk span { font-size: 11px; line-height: 1.1; text-align: center; }
.stays .walk.near { background: #1f9d55 !important; color: #fff; }
.stays .walk.mid { background: #f0a020 !important; color: #2b1a00; }
.stays th b { display: block; margin-top: 6px; font-size: 18px; line-height: 1.25; }
/* (the kind with its icon, and ski-in/ski-out, warm, above the name: the card reads as a place to sleep) */
.stays .kindtag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; color: #7a4a14; background: #fbe9d0; border-radius: 999px; }
.stays .kindtag .kind { font-size: 12px; font-weight: 600; color: inherit; }
.stays .i { width: 16px; height: 16px; flex: none; }
.stays .badge-ski { display: inline-block; margin-left: 4px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: #fff; background: var(--alpenglow); border-radius: 999px; }
.stays .cell { display: block; color: var(--rock); font-size: 14px; }
.stays .lift { grid-column: 2; margin-top: 8px; font-size: 15px; color: var(--night); }
.stays .around { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--night); }
.stays .around .u { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: #fff; border: 1px solid #f0e1cc; border-radius: 8px; white-space: nowrap; }
.stays .around .u .i { color: #b4651c; }
.stays .around small { color: var(--rock); }
.stays .links { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 14px; text-align: left; }
.stays .links .btn { flex: 1; margin: 0; text-align: center; justify-content: center; }
#sf-all:checked ~ #sf-more:not(:checked) ~ .stay-scroll tbody tr:nth-child(n + 13) { display: none; } /* (13: SHOWN + 1, stayPages.ts) */
#sf-more:focus-visible ~ .stay-all { outline: 3px solid var(--glacier); outline-offset: 3px; }
/* what the icons mean, once */
.stay-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 0; font-size: 13px; color: var(--rock); }
.stay-key b { color: var(--night); }
.stay-key span { display: inline-flex; align-items: center; gap: 4px; }
.stay-key .i { width: 16px; height: 16px; color: #b4651c; }
#sf-more:checked ~ .stay-all, .stay-f:not(#sf-all):checked ~ .stay-all { display: none; }
.stay-all { display: flex; width: fit-content; margin: 18px auto 0; cursor: pointer; }
/* the places on the relief */
.stay-mapview { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 28px; align-items: center; margin: 48px 0; padding: 28px; background: var(--night); color: var(--snow); border-radius: 22px; }
.stay-mapview h2 { margin: 0 0 10px; color: var(--snow); font-size: 30px; }
.stay-mapview p { color: var(--mist); }
.stay-mapfig { position: relative; margin: 0; aspect-ratio: var(--ar); border-radius: 14px; overflow: hidden; background: #dfe6ee; }
.stay-mapfig img, .stay-mapfig svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stay-mapfig img { inset: auto; max-width: none; object-fit: fill; filter: saturate(0.6) brightness(1.05); }
/* (the frame on the villages: the relief bigger than the figure, placed by its own style; the names over their village) */
.stay-mapfig .vl { position: absolute; transform: translate(-50%, -150%); padding: 2px 9px; font: 700 13px/1.3 var(--display); white-space: nowrap; color: #fff; background: rgba(14, 27, 44, 0.82); border-radius: 999px; pointer-events: none; }
.stay-mapfig .vl.at-l { transform: translate(-12px, -150%); }
.stay-mapfig .vl.at-r { transform: translate(calc(12px - 100%), -150%); }
.stay-mapfig .runs { fill: none; stroke: rgba(47, 111, 214, 0.55); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.stay-mapfig .lifts { fill: none; stroke: rgba(14, 27, 44, 0.75); stroke-width: 1.5; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.stay-mapfig circle { stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.stay-mapfig figcaption { position: absolute; right: 8px; bottom: 6px; padding: 2px 6px; font-size: 11px; background: rgba(255, 255, 255, 0.85); color: var(--night); border-radius: 4px; }
.stay-mapfig figcaption a { color: var(--night); }
.m5 { fill: #1f9d55; background: #1f9d55; }
.m10 { fill: #f0a020; background: #f0a020; }
.mfar { fill: #8d9bab; background: #8d9bab; }
.stay-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 14px 0 20px; list-style: none; font-size: 15px; }
.stay-legend i { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid #fff; border-radius: 50%; }
/* what is folded: in the HTML, out of the way */
.stay-details { margin: 32px 0; padding: 4px 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.stay-details > summary { padding: 14px 0; cursor: pointer; font: 700 18px/1.3 var(--display); }
/* /travel: the cards with the station's picture and the one number */
.travel-areas .stay-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.travel-areas .stay-cards a { padding: 0 0 16px; overflow: hidden; gap: 4px; }
.travel-areas .stay-cards .ph { display: block; aspect-ratio: 16 / 10; background: #cdd7e2; }
.travel-areas .stay-cards img { display: block; width: 100%; height: 100%; object-fit: cover; }
.travel-areas .stay-cards .big { display: flex; align-items: baseline; gap: 8px; margin: 12px 16px 0; color: var(--rock); font-size: 13px; line-height: 1.2; }
.travel-areas .stay-cards .big b { font: 800 34px/1 var(--display); color: #1b6b3c; }
.travel-areas .stay-cards .name { margin: 4px 16px 0; font: 800 20px/1.2 var(--display); }
.travel-areas .stay-cards .where { margin: 0 16px; font-size: 13px; }
.big-steps { counter-reset: none; }
.big-steps li { display: flex; flex-direction: column; gap: 6px; }
.big-steps i { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%; background: var(--alpenglow); color: #fff; font: 800 20px/1 var(--display); font-style: normal; }
.big-steps span { font-size: 15px; }
@media (max-width: 760px) {
  .stays tbody { grid-template-columns: 1fr; }
  .stays tbody tr { grid-template-columns: 64px minmax(0, 1fr); padding: 14px; }
  .stays .walk { width: 64px; height: 64px; }
  .stays .walk b { font-size: 28px; }
  .stay-mapview { grid-template-columns: 1fr; padding: 20px; margin: 32px -4px; }
  .stay-mapview .btn.play { width: 100%; }
  .stay-best2 ul { grid-template-columns: 1fr; gap: 10px; }
  .stay-best2 li { padding: 12px 14px; border-top-width: 0; border-left: 6px solid var(--glacier); }
  .stay-best2 .pf-beginners { border-left-color: #2e9e5b; }
  .stay-best2 .pf-sunny { border-left-color: #f2b33d; }
  .stay-best2 .pf-terrain { border-left-color: #2f6fd6; }
  .stay-mapfig .vl { font-size: 11px; padding: 1px 6px; }
  .stay-best2 b { font-size: 20px; }
  .travel-areas .stay-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .travel-areas .stay-cards .big b { font-size: 28px; }
  .travel-areas .stay-cards .big { flex-direction: column; align-items: flex-start; gap: 2px; margin: 10px 12px 0; font-size: 12px; }
  .travel-areas .stay-cards .name { margin: 4px 12px 0; font-size: 16px; }
  .travel-areas .stay-cards .where { margin: 0 12px; font-size: 12px; }
}
/* TASK-0399, proposal (GEOPEAKS_STAY22_MAP): the partner's map on a click; our map is its facade until then */
.stay-live { margin: 4px 0 6px; }
.stay-live-btn { width: 100%; justify-content: center; background: #fff; color: var(--night); }
#stay-partner-note { margin: 0 0 16px; font-size: 12px; color: var(--mist); }
.stay-mapfig.live { aspect-ratio: auto; height: min(70vh, 560px); background: #fff; }
.stay-mapfig .stay-partner { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
