/* The v2 home page (resources/views/DefaultView/front.htm). Colours only from the tokens. */

/* ---- hero ---- */
.home-hero { margin-top: 8px; }
.home-hero .hero-content { justify-content: space-between; gap: 40px; }
.home-hero-text { display: flex; flex-direction: column; gap: 22px; padding-top: clamp(0px, 4vw, 56px); }
.home-hero-actions { margin-top: 6px; }
.home-search {
  height: 64px; padding: 0 10px 0 22px; border-radius: 18px; border: 0;
  background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-2);
}
.home-search .btn { height: 46px; }
.home-search-chips { display: flex; gap: 6px; }
.home-search-chips .chip { height: 30px; background: var(--c-primary-container); border-color: transparent; color: var(--c-primary-dark); }
@media (max-width: 1100px) { .home-search-chips { display: none; } }
@media (max-width: 560px) {
  .home-search { height: 54px; padding-right: 14px; }
  .home-search .btn { display: none; }
  .home-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .home-hero-actions .btn { justify-content: center; padding-inline: 12px; }
}

/* ---- the apps, the numbers, support ---- */
.home-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; }
.home-apps { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.home-badge { display: block; line-height: 0; }
.home-badge img { height: 44px; width: auto; }
/* Google's badge carries its own clear space around the artwork; Apple's does not */
.home-badge.gp img { height: 66px; margin: -11px -9px; }
.home-numbers { display: flex; align-items: center; gap: 28px; }
.home-numbers a:not(.btn) { display: flex; flex-direction: column; color: var(--c-text); }
.home-numbers b { font-size: 28px; font-weight: 800; line-height: 1.1; }
.home-numbers span { font-size: 13px; color: var(--c-text-2); white-space: nowrap; }
.home-appbanner { display: none; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-l); background: var(--c-text); color: #fff; }
.home-appbanner:hover { color: #fff; }
.home-appbanner .icon-tile { background: rgb(255 255 255 / .12); color: #fff; }
.home-appbanner .grow { flex-grow: 1; display: flex; flex-direction: column; }
.home-appbanner .grow span { font-size: 13px; opacity: .8; }
@media (max-width: 700px) {
  .home-apps { display: none; }
  .home-appbanner { display: flex; width: 100%; }
  .home-numbers { width: 100%; gap: 20px; flex-wrap: wrap; }
  .home-numbers .btn { margin-left: auto; }
  .home-numbers b { font-size: 22px; }
}

.home-banner { text-align: center; }
.home-banner img { margin-inline: auto; border-radius: var(--r-m); }

/* ---- routes ---- */
.section-head > .home-route-cats { flex-direction: row; align-items: center; }
.home-more { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-weight: 600; font-size: 15px; }
@media (max-width: 860px) {
  .home-route-cats .chip { display: none; }
  .grid.home-routes {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 320px);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter, 16px); scrollbar-width: none; --gap: 14px;
    margin-inline: calc(var(--gutter, 16px) * -1); padding-inline: var(--gutter, 16px); padding-bottom: 6px;
  }
  .home-routes::-webkit-scrollbar { display: none; }
  .home-routes > .card { scroll-snap-align: start; }
}

/* ---- the map teaser ---- */
.home-map { position: relative; height: 560px; border-radius: var(--r-xl); overflow: hidden; background: var(--c-surface-2); }
.home-map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.home-map-panel {
  position: absolute; left: 32px; top: 32px; bottom: 32px; width: min(400px, calc(100% - 64px));
  display: flex; flex-direction: column; gap: 18px; padding: 32px;
  background: color-mix(in srgb, var(--c-surface) 96%, transparent); border-radius: 22px; box-shadow: var(--shadow-2);
}
.home-map-panel .h2 { font-size: clamp(26px, 2.6vw, 34px); }
.home-map-panel p { font-size: 16px; line-height: 1.55; }
.home-map-panel .btn { align-self: flex-start; margin-top: auto; }
.dot.k-routes { background: var(--c-primary); }
.dot.k-peaks { background: var(--c-text); }
.dot.k-water { background: var(--c-info); }
.dot.k-camp { background: var(--c-accent); }
.dot.k-interest { background: var(--c-lvl3-fg); }
.home-map-credit { position: absolute; right: 10px; bottom: 8px; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgb(255 255 255 / .8); color: #333; }
@media (max-width: 700px) {
  .home-map { height: 340px; border-radius: var(--r-l); }
  .home-map-panel { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; padding: 14px 14px 14px 18px; gap: 4px; border-radius: 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .home-map-panel .eyebrow, .home-map-panel .chips { display: none; }
  .home-map-panel .h2 { font: 700 17px/1.3 var(--font-ui); grid-column: 1; }
  .home-map-panel p { display: none; }
  .home-map-panel .btn { grid-column: 2; margin: 0; width: 48px; padding: 0; justify-content: center; }
  .home-map-panel .btn .label { display: none; }
  .home-map-credit { bottom: auto; top: 8px; }
}

/* ---- where to go ---- */
@media (max-width: 560px) {
  .home-tiles .tile { aspect-ratio: 1 / 1; border-radius: var(--r-m); }
  .home-tiles .tile-caption { padding: 12px; }
  .home-tiles .tile-caption b { font-size: 16px; }
  .home-tiles .tile-caption span { display: none; }
}

/* ---- passport and quests ---- */
.grid.home-duo { --cols: 2; }
.grid.home-duo.single { --cols: 1; }
@media (max-width: 860px) { .grid.home-duo { --cols: 1; } }
.home-passport, .home-quests { position: relative; min-height: 420px; border-radius: var(--r-xl); overflow: hidden; color: #fff; }
.home-passport { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4vw, 48px); background: var(--c-primary); }
.home-passport .eyebrow, .home-quests .eyebrow { color: color-mix(in srgb, var(--c-accent) 45%, #fff); }
.home-passport .h2, .home-quests .h2 { color: #fff; font-size: clamp(28px, 3vw, 36px); }
.home-passport p { font-size: 16px; line-height: 1.55; max-width: 460px; color: rgb(255 255 255 / .86); }
.home-levels .chip { background: rgb(255 255 255 / .14); border-color: transparent; color: #fff; }
.home-levels .chip:hover { background: rgb(255 255 255 / .24); color: #fff; }
.home-levels .chip.is-on { background: var(--c-accent-container); color: var(--c-on-accent-container); }
.home-duo-actions { margin-top: auto; }
.home-quests { background: var(--c-primary-dark); display: flex; align-items: flex-end; }
.home-quests > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-quests::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(10 20 15 / .72) 0%, rgb(10 20 15 / .25) 70%); }
.home-quests-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 48px); }
.home-quests-text p { font-size: 16px; line-height: 1.55; max-width: 440px; color: rgb(255 255 255 / .9); }
.home-quests-text .btn { align-self: flex-start; }
@media (max-width: 560px) {
  .home-passport, .home-quests { min-height: 0; border-radius: var(--r-l); }
  .home-quests { min-height: 340px; }
  .home-levels { display: none; }
}

/* ---- community ---- */
.grid.home-community { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.home-community .card { gap: 12px; }
.home-community b { font-size: 20px; }
.home-community .muted { font-size: 15px; line-height: 1.5; }
