/* Interlaken Guide: Made by Creative Dump */
:root {
  --teal: #0B6E78; --teal-d: #08535A; --teal-l: #CFE9EA; --teal-bg: #DFF0F0;
  --ink: #10201B; --muted: #4F5E58; --line: #E3E8E6; --line-2: #D5DDDA;
  --bg: #F3F5F4; --card: #FFFFFF;
  --green: #1F7A3A; --green-bg: #E4F2E8; --amber: #8F5000; --amber-bg: #FBEFD9;
  --grey-bg: #E8ECEA; --blue: #1F4FA0; --blue-bg: #E3EBF7;
  --orange: #B4530A; --part-ink: #8A3F06; --part-bg: #FDF1E6; --part-line: #F0D9C2;
  --r: 16px; --shadow: 0 2px 10px rgba(16,32,27,.12);
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--body); font-size: 16px; line-height: 1.4; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; }
h1 { font-weight: 800; font-size: 32px; }
h2 { font-weight: 600; font-size: 20px; }
p { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-d); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.ic { display: inline-flex; width: 24px; height: 24px; flex: none; }
.ic svg { width: 100%; height: 100%; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-rows: 1fr auto; height: 100vh; height: 100dvh; }
main { overflow-y: auto; overflow-x: hidden; position: relative; -webkit-overflow-scrolling: touch; }
.view { min-height: 100%; padding-bottom: 28px; }
.view[hidden] { display: none; }
.wrap { padding-left: 20px; padding-right: 20px; }

.tabs { order: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 1000; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; min-height: 48px; color: var(--muted); font-size: 11px; font-weight: 600; border-radius: 12px; }
.tabs a[aria-current="page"] { color: var(--teal); font-weight: 700; }
.tabs .brand, .tabs .credit.side { display: none; }

/* ---------- common blocks ---------- */
.page-head { padding-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.block { display: flex; flex-direction: column; gap: 10px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.list-card { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r); }
.list-card li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.list-card li:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 5px; flex: none; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.name { font-weight: 600; font-size: 16px; }
.tag { align-self: flex-start; display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.tag.partner { color: var(--part-ink); background: var(--part-bg); }
.tag.sight { color: var(--teal); background: var(--teal-bg); }
.tag.easy, .tag.hike { color: var(--green); background: var(--green-bg); }
.tag.medium { color: var(--amber); background: var(--amber-bg); }
.tag.neutral { color: var(--muted); background: var(--grey-bg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 0 14px; height: 48px; }
.search .ic { width: 20px; height: 20px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 16px var(--body); color: var(--ink); }
.search:focus-within { border-color: var(--teal); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip .dot { width: 10px; height: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 700; font-size: 15px; }
.btn:hover { color: var(--ink); border-color: var(--muted); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-d); color: #fff; }
.btn .ic { width: 20px; height: 20px; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 140px; }
.round { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--card); color: var(--ink); }
.round .ic { width: 22px; height: 22px; }
.round.ghost { background: transparent; border: 1.5px solid var(--teal-l); color: #fff; }
.float { box-shadow: var(--shadow); border: 0; }

/* ---------- today ---------- */
.hero { position: relative; background: var(--teal); color: #fff; padding: 28px 20px 0; overflow: hidden; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-l); }
.hero h1 { font-size: 34px; }
.now { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.now-icon { width: 60px; height: 60px; display: inline-flex; }
.now-icon svg { width: 100%; height: 100%; }
.now-temp { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; }
.now-text { font-size: 14px; color: var(--teal-l); }
.hours { display: flex; gap: 6px; overflow-x: auto; margin: 16px -20px 0; padding: 0 20px 6px; scrollbar-width: none; }
.hours::-webkit-scrollbar { display: none; }
.hour { flex: none; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 13px; }
.hour .ic { width: 26px; height: 26px; }
.hour b { font-size: 15px; }
.hour .rain { color: #BFE3FF; font-size: 11px; font-weight: 600; min-height: 14px; }
.hero-peaks { display: block; width: calc(100% + 40px); height: 56px; margin: 6px -20px 0; }

.today-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 8px; }
.block { min-width: 0; }
.pick-why { font-size: 14px; color: var(--muted); }
.picks { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.picks::-webkit-scrollbar { display: none; }
.pick { flex: 0 0 210px; background: var(--card); border: 0; border-radius: var(--r); overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; }
.pick .art { height: 104px; }
.pick-text { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.pick-text b { font-size: 15px; }
.pick-text span { font-size: 13px; color: var(--muted); }

/* category illustrations (drawn, no photos needed) */
.art { position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.art svg { width: 100%; height: 100%; display: block; }

/* ---------- cards (explore, hikes, local) ---------- */
.cards { display: grid; gap: 12px; padding-top: 14px; }
.card { width: 100%; text-align: left; background: var(--card); border: 0; border-radius: var(--r); padding: 12px; display: flex; gap: 14px; color: var(--ink); }
a.card:hover, button.card:hover { box-shadow: var(--shadow); color: var(--ink); }
.card .art { width: 88px; height: 88px; flex: none; border-radius: 12px; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card-body .name { font-weight: 700; }
.card-body .blurb { font-size: 14px; color: var(--muted); }
.meta { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--teal); margin-top: auto; padding-top: 4px; }
.meta .ic { width: 16px; height: 16px; }
.stats-inline { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: auto; padding-top: 4px; }
.empty { background: var(--card); border-radius: var(--r); padding: 24px; text-align: center; color: var(--muted); }

/* partner card */
.partner-card { background: var(--card); border: 1.5px solid var(--part-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.partner-card .art { height: 130px; }
.partner-card .art .tag { position: absolute; top: 12px; left: 12px; background: #fff; }
.partner-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.partner-body .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.partner-body .name { font-size: 18px; font-weight: 700; }
.offer { display: flex; align-items: center; gap: 8px; background: var(--part-bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; color: #6B3205; }
.offer .ic { width: 18px; height: 18px; }
.sample-note { font-size: 12px; color: var(--part-ink); font-weight: 600; }
.partner-mini { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1.5px solid var(--part-line); border-radius: var(--r); padding: 14px; color: var(--ink); width: 100%; text-align: left; }
.partner-mini .art { width: 64px; height: 64px; border-radius: 12px; flex: none; }
.partner-mini:hover { color: var(--ink); box-shadow: var(--shadow); }

.local-grid { display: grid; gap: 16px; }
.pitch { background: var(--ink); color: #fff; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; align-self: start; margin-top: 14px; }
.pitch p { color: #C9D3CF; font-size: 15px; }
.pitch .btn { background: #fff; color: var(--ink); border-color: #fff; align-self: flex-start; }
.foot { padding-top: 28px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- hike detail ---------- */
.hike-layout { display: flex; flex-direction: column; }
.hike-map-wrap { position: relative; }
.hike-map { height: 260px; background: #E9EFE6; }
.back { position: absolute; top: 16px; left: 16px; z-index: 500; box-shadow: var(--shadow); }
.hike-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.hike-body h1 { font-size: 28px; }
.stats { background: var(--card); border-radius: var(--r); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats div { padding: 14px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats span { font-size: 12px; color: var(--muted); }
.stats b { font-family: var(--display); font-weight: 600; font-size: 19px; }
.panel { background: var(--card); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.panel h2 { font-family: var(--body); font-size: 15px; font-weight: 700; }
.step { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.step i { flex: none; font-style: normal; width: 24px; height: 24px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.alt-line { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.alt-line .bar { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--green)); }

/* ---------- map ---------- */
.view-map { position: absolute; inset: 0; padding: 0; min-height: 0; }
.map { position: absolute; inset: 0; background: #E9EFE6; z-index: 1; }
.map-top { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 600; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-bar { display: flex; gap: 8px; }
.map-bar .search { flex: 1; min-width: 0; border: 0; box-shadow: var(--shadow); }
.map-top .chips { padding-top: 6px; padding-bottom: 8px; }
.map-top .chip { border: 0; box-shadow: var(--shadow); }
.map-top .chip[aria-pressed="true"] { background: var(--ink); }
.map-side { position: absolute; right: 16px; bottom: 200px; z-index: 600; display: flex; flex-direction: column; gap: 10px; }
.map-side .round { width: 48px; height: 48px; border-radius: 24px; color: var(--teal); }
#m-trails[aria-pressed="false"] { color: var(--muted); }
#m-locate.on { background: var(--teal); color: #fff; }
.sheet { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 600; background: var(--card); border-radius: 20px; box-shadow: 0 4px 20px rgba(16,32,27,.16); padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.sheet::before { content: ''; align-self: center; width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); }
.sheet-row { display: flex; gap: 12px; align-items: center; }
.sheet-row .art { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.sheet .name { font-size: 17px; font-weight: 700; }
.sheet .btn { height: 44px; }

.pin { width: 30px; height: 30px; border-radius: 15px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(16,32,27,.35); display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .12s; }
.pin svg { width: 14px; height: 14px; }
.pin.sel { transform: scale(1.3); outline: 3px solid currentColor; }
.pin-wrap { background: none; border: 0; }
.pin-label { background: #fff; color: var(--ink); font: 700 12px var(--body); padding: 3px 8px; border-radius: 8px; box-shadow: var(--shadow); white-space: nowrap; }
.me { width: 18px; height: 18px; border-radius: 9px; background: #1F6FEB; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(31,111,235,.25); }
.leaflet-container { font-family: var(--body); }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-bottom.leaflet-right { bottom: 0; }

/* ---------- dialog + toast ---------- */
.detail { border: 0; padding: 0; width: 100%; max-width: 560px; margin: auto auto 0; border-radius: 22px 22px 0 0; background: var(--bg); color: var(--ink); max-height: 88vh; }
.detail::backdrop { background: rgba(16,32,27,.45); }
.detail .art { height: 170px; }
.d-inner { padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.d-close { position: absolute; top: 14px; right: 14px; z-index: 2; box-shadow: var(--shadow); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 3000; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- tablet / desktop: fill the screen ---------- */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .pick { flex: none; }
  .detail { margin: auto; border-radius: 22px; }
}
@media (min-width: 960px) {
  .app { grid-template-rows: none; grid-template-columns: 236px 1fr; }
  .tabs { order: 0; display: flex; flex-direction: column; gap: 4px; padding: 24px 14px; border-top: 0; border-right: 1px solid var(--line); }
  .tabs a { flex-direction: row; gap: 12px; justify-content: flex-start; font-size: 15px; padding: 12px 14px; min-height: 48px; }
  .tabs a[aria-current="page"] { background: var(--teal-bg); }
  .tabs .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; padding: 0 8px 22px; }
  .tabs .brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--teal) url('icon.svg') center / cover; }
  .tabs .credit.side { display: block; margin-top: auto; font-size: 12px; color: var(--muted); padding: 0 14px; }
  .wrap { padding-left: 36px; padding-right: 36px; }
  .page-head { padding-top: 36px; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .page-head .search { width: min(440px, 100%); }
  .page-head p { flex-basis: 100%; }
  .hero { padding: 36px 36px 0; }
  .hours { margin: 18px -36px 0; padding: 0 36px 6px; }
  .hero-peaks { width: calc(100% + 72px); margin: 6px -36px 0; height: 70px; }
  .today-grid { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); align-items: start; gap: 28px 32px; }
  .today-grid > :nth-child(2) { grid-row: span 2; }
  .hike-layout { flex-direction: row-reverse; height: 100%; min-height: calc(100vh - 0px); }
  .hike-map-wrap { flex: 1 1 55%; position: sticky; top: 0; height: 100vh; }
  .hike-map { height: 100%; }
  .hike-body { flex: 1 1 45%; max-width: 620px; padding: 36px; }
  #view-hike { padding-bottom: 0; }
  .local-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .local-grid .cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .sheet { left: auto; right: 16px; top: 140px; bottom: auto; width: 360px; }
  .sheet::before { display: none; }
  .map-side { bottom: 32px; right: 392px; }
  .map-top { right: 392px; max-width: 760px; }
  .toast { bottom: 32px; }
}
