/* Trek pages (/treks/ and /treks/<slug>/), on top of home.css */
.crumbs { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 18px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* hero: the trek's photo, like the app's trek page */
.trek-hero { min-height: min(78vh, 760px); }
.trek-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; max-width: 18ch; }
.trek-hero .lead { margin-top: 12px; }

.trek-main { padding-top: 8px; padding-bottom: 20px; max-width: 920px; }

/* facts: the app's fact card, icon tile + value + label in two columns */
.facts { background: var(--surface); border-radius: var(--r-card); padding: 8px 22px; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 26px; }
.fact { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.fact:nth-last-child(-n+3) { border-bottom: 0; }
.fact .ico { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--primary); display: grid; place-items: center; }
.fact .ico svg { width: 22px; height: 22px; }
.fact div { min-width: 0; }
.fact strong { display: block; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact span { display: block; font-size: 14px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sec { padding: 56px 0 0; }
.sec > h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 20px; }
.prose p { font-size: 18px; margin: 0 0 14px; max-width: 68ch; }
.card { background: var(--surface); border-radius: var(--r-card); padding: 20px 22px; margin: 0; }
.note { font-size: 15px; color: var(--soft); margin-top: 14px; }

.tiles { list-style: none; padding: 0; margin: 0; }
.tiles.two { grid-template-columns: repeat(2, 1fr); }

.days { list-style: none; padding: 6px 22px; }
.days li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.days li:last-child { border-bottom: 0; }
.dnum { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--tint); color: var(--primary); font-weight: 600; display: grid; place-items: center; }
.days h3 { font-size: 18px; margin: 6px 0 2px; }
.dstats { font-size: 14px; color: var(--soft); margin: 0 0 6px !important; }
.days p { color: var(--soft); font-size: 16px; }

.places { list-style: none; padding: 6px 22px; }
.places li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.places li:last-child { border-bottom: 0; }
.places strong { display: block; font-weight: 600; }
.places span { color: var(--soft); font-size: 16px; }

.profile { width: 100%; height: auto; display: block; }
.profile .area { fill: var(--skyline); opacity: .7; }
.profile .line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
.profile text { font-size: 12px; fill: var(--soft); font-family: var(--font); }
.profile text.hi { font-weight: 600; fill: var(--ink); font-size: 13px; }

.trek-grid.more { grid-template-columns: repeat(3, 1fr); }
.trek-grid.more .trek { height: 240px; }

/* the closing card: app icon, a line and the store buttons */
.get-card { margin: 72px 0 64px; background: var(--surface); border-radius: var(--r-card); padding: 30px; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; }
.get-card > img { border-radius: 16px; grid-row: span 2; align-self: start; }
.get-card h2 { font-size: clamp(24px, 3vw, 32px); }
.get-card p { color: var(--soft); margin-top: 6px; max-width: 58ch; }
.get-card .cta-row { grid-column: 2; margin-top: 16px; }

/* /treks/ */
.list-main { padding-top: 8px; }
.list-head { padding: 56px 0 8px; }
.list-head .crumbs { color: var(--soft); }
.list-head h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 300; }
.list-head h1 b { font-weight: 600; }
.list-head .lead { color: var(--soft); font-size: 19px; max-width: 56ch; margin-top: 14px; }
.country { font-size: clamp(30px, 4vw, 42px); font-weight: 600; padding: 64px 0 0; }
.country span { font-size: 17px; font-weight: 400; color: var(--soft); margin-left: 8px; }
.area { font-size: 20px; font-weight: 600; padding: 36px 0 14px; }

@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .fact:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 640px) {
  .facts { padding: 4px 16px; column-gap: 16px; }
  .fact { gap: 10px; }
  .fact .ico { width: 38px; height: 38px; border-radius: 12px; }
  .fact strong { font-size: 16px; }
  .fact span { font-size: 13px; }
  .tiles.two, .trek-grid.more { grid-template-columns: 1fr; }
  .sec { padding-top: 44px; }
  .card, .days, .places { padding-left: 16px; padding-right: 16px; }
  .get-card { grid-template-columns: 1fr; padding: 24px; }
  .get-card > img { grid-row: auto; }
  .get-card .cta-row { grid-column: 1; }
  .country { padding-top: 44px; }
}

/* best time to go: 12 month cells */
.months { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.months li { border-radius: 12px; padding: 12px 0 10px; text-align: center; background: var(--rule); color: var(--soft); }
.months li span { display: block; font-weight: 600; font-size: 15px; }
.months li small { display: block; font-size: 11px; margin-top: 2px; }
.months li.m2 { background: var(--primary); color: var(--on-primary); }
.months li.m1 { background: var(--tint); color: var(--primary); }
.sec.faq { max-width: none; }
.foot .foot-treks { order: 3; flex-basis: 100%; }
@media (max-width: 640px) {
  .months { grid-template-columns: repeat(6, 1fr); }
}
