/* ChristmasWanders trip mode. Phone first: one hand, cold fingers, bad light.
   Colours and fonts are the site's own (pine, cream, gold, red; Playfair Display,
   STIX Two Text, Archivo). No italics anywhere. */

:root {
  --pine0: #081209;
  --pine: #0b180e;
  --pine1: #112918;
  --pine2: #14321d;
  --pine3: #1d3f27;
  --cream: #faf4e7;
  --paper: #fefbf4;
  --sand: #f3ead6;
  --sand2: #eadfc6;
  --line: #d8cfb8;
  --ink: #191c13;
  --ink2: #45473d;
  --ink3: #5e5f55;
  --red: #a8302a;
  --red2: #8b2318;
  --gold: #e3bc72;
  --gold2: #c79a4a;
  --brass: #7e5b14;
  --ok: #2e6b3a;
  --me: #1a73e8;
  --amber: #b4610b;
  --amber0: #fff1dc;
  --hd: "Playfair Display", Georgia, serif;
  --bd: "STIX Two Text", Georgia, serif;
  --ui: Archivo, Arial, sans-serif;
  --top: env(safe-area-inset-top, 0px);
  --bot: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--pine0); }
body {
  font-family: var(--bd);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
em, i, cite, var, address, dfn { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--brass); }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; }

/* ---------- frame ---------- */
.tm {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  max-width: 520px; margin: 0 auto;
  background: var(--cream);
  font-variant-numeric: lining-nums;
}
@media (min-width: 560px) {
  .tm { box-shadow: 0 0 0 1px rgba(227, 188, 114, .25), 0 30px 80px rgba(0, 0, 0, .5); }
}

/* ---------- top ---------- */
.tm-top {
  flex: none;
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px;
  padding: calc(var(--top) + 10px) 16px 11px;
  background: linear-gradient(105deg, var(--pine0) 0%, var(--pine1) 60%, var(--pine2) 100%);
  border-bottom: 3px solid var(--gold);
  color: var(--cream);
}
.tm-brand {
  display: inline-block;
  font: 600 10.5px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  padding: 2px 0 6px;
}
.tm-city { font: 900 30px/1 var(--hd); letter-spacing: -.3px; }
.tm-top-r { text-align: right; align-self: end; }
.tm-clock { display: block; font: 700 22px/1 var(--ui); letter-spacing: .01em; }
.tm-date { display: block; margin-top: 5px; font: 600 12px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: rgba(250, 244, 231, .72); }
.tm-sum { grid-column: 1 / -1; margin-top: 9px; font: 600 14px/1.3 var(--ui); color: rgba(250, 244, 231, .9); }
.tm-sum b { color: var(--gold); font-weight: 700; }

.tm-preview {
  flex: none;
  padding: 8px 16px;
  background: var(--red2); color: #fff;
  font: 600 12.5px/1.35 var(--ui);
}
.tm-preview a { color: #fff; font-weight: 700; white-space: nowrap; }

/* ---------- views ---------- */
.tm-main { flex: 1; min-height: 0; position: relative; }
.tm-view { position: absolute; inset: 0; display: flex; flex-direction: column; }
.tm-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 14px 28px; }
.tm-pad { padding: 20px 16px 32px; }

/* ---------- map ---------- */
.tm-mapwrap {
  flex: none; position: relative;
  height: 34vh; height: 34dvh; min-height: 200px; max-height: 400px;
  background: #e9e4d8;
  border-bottom: 1px solid var(--line);
  transition: height .25s ease;
}
.tm-mapwrap.small { height: 19vh; height: 19dvh; min-height: 130px; }
.tm-mapwrap.big { height: 68vh; height: 68dvh; max-height: none; }
.tm-map { position: absolute; inset: 0; }
.tm-mapmsg {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; font: 600 13px var(--ui); color: var(--ink3); pointer-events: none;
}
.tm-mapwrap.ready .tm-mapmsg { display: none; }
.tm-mapbtns { position: absolute; right: 10px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.tm-mb {
  width: 46px; height: 46px; padding: 0;
  display: grid; place-items: center;
  background: var(--paper); color: var(--pine1);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 2px 6px rgba(8, 18, 9, .28);
}
.tm-mb svg { width: 24px; height: 24px; }
.tm-mb[aria-pressed="true"] { background: var(--pine1); color: var(--gold); border-color: var(--pine1); }
.tm-mb-me[aria-pressed="true"] { background: var(--me); color: #fff; border-color: var(--me); }
.tm-mb-me.wait { animation: tmPulse 1s ease-in-out infinite; }
@keyframes tmPulse { 50% { opacity: .45; } }

.maplibregl-ctrl-attrib { font: 10px/1.3 var(--ui); }
.maplibregl-ctrl-bottom-left .maplibregl-ctrl { margin: 0 0 4px 4px; }

/* pins */
.tm-pin {
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  display: grid; place-items: center;
  font: 700 14px/1 var(--ui); color: var(--cream);
  background: var(--ink3);
  border: 2px solid var(--paper);
  box-shadow: 0 2px 5px rgba(8, 18, 9, .45);
  cursor: pointer;
}
.tm-pin.s-open { background: var(--ok); }
.tm-pin.s-last { background: var(--amber); }
.tm-pin.s-later { background: var(--brass); }
.tm-pin.s-unk { background: var(--paper); color: var(--brass); border: 2px dashed var(--brass); }
.tm-pin.s-closed, .tm-pin.s-pre, .tm-pin.s-post { background: #8d8a7c; }
.tm-pin.seen { opacity: .55; }
.tm-pin.sel { width: 38px; height: 38px; font-size: 17px; background: var(--red); color: #fff; border: 3px solid #fff; opacity: 1; z-index: 3; }
.tm-me {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--me); border: 3px solid #fff;
  box-shadow: 0 0 0 9px rgba(26, 115, 232, .22), 0 1px 4px rgba(0, 0, 0, .4);
}

/* ---------- location bar ---------- */
.tm-loc {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 12px; padding: 12px 14px;
  background: var(--sand); border: 1px solid var(--line); border-radius: 10px;
}
.tm-loc p { flex: 1; font: 500 14px/1.35 var(--ui); color: var(--ink2); }
.tm-loc p b { display: block; color: var(--ink); font-weight: 700; font-size: 15px; }
.tm-loc.warn { background: #f7e3dc; border-color: #e2b6aa; }

/* ---------- buttons ---------- */
.tm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px;
  font: 700 15px/1 var(--ui); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  border-radius: 8px; border: 2px solid transparent;
}
.tm-btn svg { width: 18px; height: 18px; flex: none; }
.tm-btn.red { background: var(--red); color: #fff; }
.tm-btn.red:active { background: var(--red2); }
.tm-btn.pine { background: var(--pine1); color: var(--cream); }
.tm-btn.gold { background: var(--gold); color: var(--pine0); }
.tm-btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.tm-btn.lineL { background: transparent; color: var(--cream); border-color: rgba(250, 244, 231, .55); }
.tm-btn.sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.tm-btn.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.tm-btn.kept { background: var(--gold); border-color: var(--gold); color: var(--pine0); }
.tm-hrt { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.tm-btn.kept .tm-hrt { fill: var(--red); stroke: var(--red); }
.tm-name .tm-hrt { width: 15px; height: 15px; margin-left: 7px; vertical-align: -1px; fill: var(--red); stroke: var(--red); }
.tm-mytrip { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin: 14px 0 4px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font: 600 14px/1 var(--ui); }
.tm-mytrip .tm-hrt { width: 18px; height: 18px; fill: var(--red); stroke: var(--red); }

/* ---------- next market ---------- */
.tm-next {
  margin: 0 0 18px; padding: 16px 16px 16px;
  background: linear-gradient(160deg, var(--pine1) 0%, var(--pine2) 100%);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(8, 18, 9, .22);
}
.tm-lbl { font: 700 11px/1.2 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.tm-next .tm-lbl { color: var(--gold); }
.tm-next h2 { margin-top: 8px; font: 800 26px/1.12 var(--hd); letter-spacing: -.2px; }
.tm-next .alt { margin-top: 3px; font: 500 13px/1.3 var(--ui); color: rgba(250, 244, 231, .7); }
.tm-next .meta { margin-top: 10px; font: 700 15px/1.3 var(--ui); color: #fff; }
.tm-next .meta span { color: var(--gold); }
.tm-next .why { margin-top: 10px; font-size: 16px; line-height: 1.45; color: rgba(250, 244, 231, .9); }
.tm-next .ev { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(227, 188, 114, .3); font: 500 14px/1.4 var(--ui); color: rgba(250, 244, 231, .92); }
.tm-next .ev b { color: var(--gold); font-weight: 700; }
.tm-next .acts { display: flex; gap: 10px; margin-top: 14px; }
.tm-next .acts .tm-btn { flex: 1; }
.tm-next.quiet h2 { font-size: 22px; }

/* ---------- list ---------- */
.tm-listhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 2px 9px; }
.tm-listhead h2 { font: 700 11px/1.2 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.tm-listhead span { font: 500 12px/1.2 var(--ui); color: var(--ink3); text-align: right; }

.tm-card { margin: 0 0 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tm-card.open { border-color: var(--pine1); box-shadow: 0 4px 14px rgba(8, 18, 9, .12); }
.tm-card.seen .tm-cardhead { opacity: .62; }
.tm-cardhead {
  display: grid; grid-template-columns: 38px 1fr 18px; gap: 12px; align-items: start;
  width: 100%; padding: 13px 13px 13px 12px;
  background: none; border: 0; text-align: left;
}
.tm-num {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 16px/1 var(--ui); color: var(--cream);
  background: var(--ink3);
}
.tm-num.s-open { background: var(--ok); }
.tm-num.s-last { background: var(--amber); }
.tm-num.s-later { background: var(--brass); }
.tm-num.s-unk { background: transparent; color: var(--brass); border: 2px dashed var(--brass); }
.tm-num.s-closed, .tm-num.s-pre, .tm-num.s-post { background: #8d8a7c; }
.tm-tag { display: block; margin-bottom: 3px; font: 700 10.5px/1.2 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.tm-name { display: block; font: 700 19px/1.2 var(--hd); color: var(--ink); }
.tm-alt { display: block; margin-top: 2px; font: 500 12.5px/1.3 var(--ui); color: var(--ink3); }
.tm-st { display: block; margin-top: 7px; font: 500 14px/1.3 var(--ui); color: var(--ink2); }
.tm-st b { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.tm-st.s-open b { color: var(--ok); }
.tm-st.s-last b { color: var(--amber); }
.tm-st.s-closed b, .tm-st.s-post b { color: var(--red); }
.tm-st.s-later b, .tm-st.s-unk b, .tm-st.s-pre b { color: var(--brass); }
.tm-dist { display: block; margin-top: 3px; font: 600 13.5px/1.3 var(--ui); color: var(--ink); }
.tm-dist.none { color: var(--ink3); font-weight: 500; }
.tm-chev { width: 18px; height: 18px; margin-top: 10px; color: var(--ink3); transition: transform .2s; }
.tm-card.open .tm-chev { transform: rotate(180deg); }

.tm-body { padding: 2px 14px 16px; border-top: 1px solid var(--line); }
.tm-body .desc { margin-top: 13px; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.tm-facts { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.tm-facts dt { font: 700 10.5px/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.tm-facts dd { margin-top: 3px; font: 600 14.5px/1.3 var(--ui); color: var(--ink); }
.tm-facts .wide { grid-column: 1 / -1; }
.tm-facts dd.plain { font: 400 15.5px/1.4 var(--bd); }
.tm-week { margin-top: 14px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.tm-week div { padding: 6px 0 7px; text-align: center; background: var(--sand); border-radius: 4px; }
.tm-week div.now { background: var(--pine1); color: var(--cream); }
.tm-week b { display: block; font: 700 10px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.tm-week span { display: block; margin-top: 5px; font: 600 10.5px/1.15 var(--ui); }
.tm-note { margin-top: 10px; font: 500 12.5px/1.4 var(--ui); color: var(--ink3); }
.tm-evs { margin-top: 14px; padding: 11px 12px; background: var(--sand); border-left: 4px solid var(--gold2); border-radius: 0 6px 6px 0; }
.tm-evs h3 { font: 700 10.5px/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.tm-evs li { margin-top: 7px; font: 500 14px/1.35 var(--ui); color: var(--ink); }
.tm-evs li b { font-weight: 700; color: var(--red); }
.tm-acts { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tm-acts .full { grid-column: 1 / -1; }
.tm-acts .alt { grid-column: 1 / -1; text-align: center; font: 500 13px/1.3 var(--ui); color: var(--ink3); }
.tm-foot { margin: 16px 4px 0; font: 500 12px/1.45 var(--ui); color: var(--ink3); }
.tm-foot + .tm-foot { margin-top: 8px; }

/* ---------- text views ---------- */
.tm-h { font: 900 30px/1.08 var(--hd); letter-spacing: -.3px; color: var(--ink); }
.tm-sub { margin-top: 7px; font: 600 13px/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.tm-sec { margin-top: 28px; }
.tm-sec > h3 { font: 700 11px/1.2 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--red); padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.tm-empty { margin-top: 12px; font-size: 16.5px; color: var(--ink2); }

.tm-tl li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tm-tl .t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font: 700 15px/1.25 var(--ui); color: var(--red); }
.tm-tl .t small { font: 700 10.5px/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }
.tm-tl .t small.past { color: var(--ink3); }
.tm-tl h4 { margin-top: 5px; font: 700 19px/1.25 var(--hd); color: var(--ink); }
.tm-tl .at { display: inline-block; margin-top: 4px; padding: 0; background: none; border: 0; font: 600 13.5px/1.3 var(--ui); color: var(--brass); text-decoration: underline; text-underline-offset: 2px; text-align: left; }
.tm-tl p { margin-top: 6px; font-size: 15.5px; line-height: 1.45; color: var(--ink2); }
.tm-tl li.past h4, .tm-tl li.past p, .tm-tl li.past .t { color: var(--ink3); }
.tm-day { margin-top: 18px; font: 700 15px/1.2 var(--ui); color: var(--ink); }

.tm-bul li { position: relative; margin-top: 10px; padding-left: 18px; font-size: 16.5px; line-height: 1.45; }
.tm-bul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--gold2); }
.tm-p { margin-top: 12px; font-size: 16.5px; line-height: 1.5; }

.tm-food li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.tm-food .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tm-food h4 { font: 700 21px/1.2 var(--hd); color: var(--ink); }
.tm-food .pr { flex: 0 1 auto; min-width: 0; max-width: 100%; text-align: right; font: 700 14.5px/1.2 var(--ui); color: var(--brass); }
.tm-food p { margin-top: 5px; font-size: 16.5px; line-height: 1.45; color: var(--ink2); }

.tm-box { margin-top: 14px; padding: 14px 15px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.tm-box h4 { font: 700 20px/1.2 var(--hd); color: var(--ink); }
.tm-box p { margin-top: 7px; font-size: 16px; line-height: 1.45; color: var(--ink2); }
.tm-box .tm-btn { margin-top: 13px; width: 100%; }
.tm-box .fine { margin-top: 9px; font: 500 12.5px/1.4 var(--ui); color: var(--ink3); }
.tm-box.dark { background: var(--pine1); border-color: var(--pine1); }
.tm-box.dark h4 { color: var(--cream); }
.tm-box.dark p { color: rgba(250, 244, 231, .85); }
.tm-box.dark .fine { color: rgba(250, 244, 231, .65); }
.tm-rows li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.tm-rows h4 { font: 700 18px/1.25 var(--hd); color: var(--ink); }
.tm-rows .m { margin-top: 3px; font: 600 13px/1.35 var(--ui); color: var(--brass); }
.tm-rows p { margin-top: 5px; font-size: 15.5px; line-height: 1.45; color: var(--ink2); }
.tm-rows a.go { display: inline-block; margin-top: 7px; font: 700 13.5px/1.2 var(--ui); color: var(--red); }
.tm-fine { margin-top: 26px; font: 500 12.5px/1.5 var(--ui); color: var(--ink3); }
.tm-fine a { color: var(--ink2); }

/* ---------- bottom nav ---------- */
.tm-nav {
  flex: none;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding-bottom: var(--bot);
  background: var(--pine0);
  border-top: 1px solid rgba(227, 188, 114, .28);
}
.tm-nav button {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 60px; padding: 0;
  background: none; border: 0;
  color: rgba(250, 244, 231, .62);
  font: 600 11.5px/1 var(--ui); letter-spacing: .06em;
}
.tm-nav svg { width: 23px; height: 23px; }
.tm-nav button.on { color: var(--gold); }
.tm-nav button.on::before { content: ""; position: absolute; bottom: 3px; left: 30%; right: 30%; height: 3px; background: var(--gold); }

/* ---------- 2.0: the trip bar on /trip/my-trip/ ---------- */
.tm-trip { flex: none; background: var(--pine1); border-bottom: 1px solid rgba(227, 188, 114, .35); color: var(--cream); min-width: 0; }
.tm-trip-row { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 12px 6px; scrollbar-width: none; }
.tm-trip-row::-webkit-scrollbar { display: none; }
.tm-trip-row button {
  flex: none; scroll-snap-align: center;
  min-height: 48px; min-width: 96px; max-width: 170px; padding: 6px 12px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px;
  background: rgba(250, 244, 231, .06); border: 1px solid rgba(250, 244, 231, .22); border-radius: 4px;
  color: var(--cream); text-align: left;
}
.tm-trip-row b { font: 700 15px/1.1 var(--hd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tm-trip-row span { font: 600 10.5px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: rgba(250, 244, 231, .7); }
.tm-trip-row button.today { border-color: var(--gold); }
.tm-trip-row button.today span { color: var(--gold); }
.tm-trip-row button.on { background: var(--gold); border-color: var(--gold); color: var(--pine0); }
.tm-trip-row button.on span { color: var(--pine1); }
.tm-trip-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 8px; }
.tm-trip-note { min-width: 0; font: 600 12px/1.25 var(--ui); color: rgba(250, 244, 231, .75); }
.tm-off { flex: none; min-height: 36px; padding: 0 10px; background: none; border: 1px solid var(--gold); border-radius: 4px; color: var(--gold); font: 700 12.5px/1 var(--ui); }
.tm-off.done { border-color: rgba(250, 244, 231, .3); color: rgba(250, 244, 231, .75); }
.tm-off[disabled] { opacity: .8; cursor: progress; }
.tm.loading .tm-main { opacity: .55; transition: opacity .15s; }
.tm-notrip .tm-mapwrap, .tm-notrip .tm-sos, .tm-notrip .tm-nav { display: none; }

/* ---------- right now: light, closing alerts, day of the trip ---------- */
.tm-skyline { margin: 0 0 12px; padding: 11px 14px; background: var(--pine1); color: var(--cream); border-left: 5px solid var(--gold); }
.tm-skyline p { font: 500 13.5px/1.35 var(--ui); color: rgba(250, 244, 231, .8); }
.tm-skyline b { display: block; font: 700 16px/1.25 var(--ui); color: var(--cream); }
.tm-skyline span { display: block; margin-top: 2px; }
.tm-skyline.dusk, .tm-skyline.blue { background: #142a4a; border-left-color: #8fb3e8; }
.tm-skyline.dark { background: var(--pine0); }
.tm-skyline.dark b { color: var(--gold); }
.tm-alert { margin: 0 0 12px; padding: 12px 14px; background: var(--amber0); border: 2px solid var(--amber); }
.tm-urgent { display: block; padding: 6px 10px; margin: -4px -6px 8px; background: var(--amber); color: #fff; font: 800 15px/1.25 var(--ui); letter-spacing: .02em; }
.tm-alert li + li { margin-top: 4px; }
.tm-alert li button { display: block; width: 100%; min-height: 40px; padding: 6px 0; background: none; border: 0; text-align: left; font: 500 14.5px/1.3 var(--ui); color: var(--ink); text-decoration: underline; text-decoration-color: rgba(180, 97, 11, .45); text-underline-offset: 3px; }
.tm-alert li b { font-weight: 700; }
.tm-alert .fine { margin-top: 6px; font: 500 12.5px/1.4 var(--ui); color: var(--ink2); }
.tm-dayline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 9px 12px; background: var(--sand); border: 1px solid var(--line); }
.tm-dayline p { min-width: 0; font: 500 13.5px/1.35 var(--ui); color: var(--ink2); }
.tm-dayline b { color: var(--ink); }
.tm-link { flex: none; min-height: 44px; padding: 0 4px; background: none; border: 0; font: 700 13.5px/1 var(--ui); color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.tm-sunrow { font: 600 14px/1.4 var(--ui); color: var(--ink2); }

/* ---------- before the lights come on ---------- */
.tm-dusk { margin: 0 0 14px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold2); }
.tm-dusk summary { display: grid; grid-template-columns: 1fr 18px; align-items: center; gap: 2px 10px; padding: 12px 14px; min-height: 52px; cursor: pointer; list-style: none; }
.tm-dusk summary::-webkit-details-marker { display: none; }
.tm-dusk summary .tm-lbl { grid-column: 1; font: 700 10.5px/1.2 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.tm-dusk summary b { grid-column: 1; font: 700 18px/1.2 var(--hd); color: var(--ink); }
.tm-dusk summary .tm-chev { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.tm-dusk[open] summary .tm-chev { transform: rotate(180deg); }
.tm-dusk ol { padding: 0 14px 4px; }
.tm-dusk li { position: relative; padding: 11px 0 12px 16px; border-top: 1px solid var(--line); }
.tm-dusk li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; background: var(--gold2); }
.tm-dusk li.end::before { background: var(--red); }
.tm-dusk .t { font: 700 13.5px/1.2 var(--ui); color: var(--red); }
.tm-dusk .t small { margin-left: 6px; font: 700 10px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.tm-dusk h4 { margin-top: 4px; font: 700 17px/1.25 var(--hd); color: var(--ink); overflow-wrap: anywhere; }
.tm-dusk p { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--ink2); }
.tm-dusk p.m { font: 600 12.5px/1.35 var(--ui); color: var(--brass); }
.tm-dusk a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 2px; font: 700 13.5px/1.2 var(--ui); color: var(--red); }
.tm-dusk a svg { width: 16px; height: 16px; }
.tm-credit { padding: 0 14px 12px; font: 500 11.5px/1.4 var(--ui); color: var(--ink3); }
.tm-sheet-body .tm-credit { padding: 6px 0 0; }

/* ---------- cold-hands drawer ---------- */
.tm-sos { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--pine); border-top: 1px solid rgba(227, 188, 114, .35); }
.tm-sos button {
  min-height: 52px; padding: 5px 2px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: none; border: 0; border-right: 1px solid rgba(250, 244, 231, .1);
  color: var(--cream);
}
.tm-sos button:last-child { border-right: 0; }
.tm-sos button span { font-size: 19px; line-height: 1; }
.tm-sos button b { font: 700 11px/1.1 var(--ui); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tm-sos button[aria-pressed="true"] { background: var(--gold); color: var(--pine0); }

.tm-sheet { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 40; background: rgba(8, 18, 9, .55); display: flex; align-items: flex-end; }
.tm-sheet-in { width: 100%; max-height: 86%; display: flex; flex-direction: column; background: var(--cream); border-top: 4px solid var(--gold); box-shadow: 0 -10px 30px rgba(0, 0, 0, .35); }
.tm-sheet-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.tm-sheet-top h2 { min-width: 0; font: 800 22px/1.15 var(--hd); color: var(--ink); }
.tm-x { flex: none; width: 48px; height: 48px; background: var(--pine1); color: var(--cream); border: 0; border-radius: 4px; font: 400 30px/1 var(--ui); }
.tm-sheet-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 16px calc(var(--bot) + 22px); }
.tm-lead { font-size: 16px; line-height: 1.45; color: var(--ink2); }
.tm-sh { margin-top: 20px; padding-bottom: 7px; border-bottom: 2px solid var(--ink); font: 700 11px/1.2 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.tm-places li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tm-places .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tm-places h4 { min-width: 0; font: 700 17.5px/1.25 var(--hd); color: var(--ink); overflow-wrap: anywhere; }
.tm-places .d { flex: none; font: 700 13px/1.2 var(--ui); color: var(--ok); }
.tm-places p { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--ink2); }
.tm-places p.m { font: 600 12.5px/1.4 var(--ui); color: var(--brass); }
.tm-places .tm-btn { margin-top: 9px; }
.tm-grid2 { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tm-box.warn { border: 2px solid var(--amber); background: var(--amber0); }
.tm-cur { margin-top: 2px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; background: var(--pine1); color: var(--cream); }
.tm-cur span { font: 700 11px/1.2 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.tm-cur b { font: 800 22px/1.1 var(--hd); }

.tm-diet { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tm-chip { min-height: 44px; padding: 0 13px; background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; font: 700 14px/1 var(--ui); color: var(--ink); }
.tm-chip.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.tm-dishes li { border-bottom: 1px solid var(--line); }
.tm-dishes li button { display: block; width: 100%; padding: 12px 0; background: none; border: 0; text-align: left; }
.tm-dishes .row, .tm-food .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
.tm-dishes b { min-width: 0; font: 700 19px/1.2 var(--hd); color: var(--ink); overflow-wrap: anywhere; }
.tm-dishes .pr { flex: 0 1 auto; min-width: 0; max-width: 100%; text-align: right; font: 700 14px/1.2 var(--ui); color: var(--brass); }
.tm-dishes .say, .tm-food .say { display: block; margin-top: 3px; font: 600 13px/1.35 var(--ui); color: var(--brass); }
.tm-dishes .ln { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--ink2); }
.tm-dishes li.hit { background: linear-gradient(90deg, rgba(46, 107, 58, .1), transparent 70%); border-left: 4px solid var(--ok); padding-left: 10px; }
.tm-dishes li.dim { opacity: .55; }
.tm-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tm-bdg { display: inline-block; padding: 4px 7px; border: 1px solid var(--line); background: var(--sand); font: 700 11px/1.1 var(--ui); letter-spacing: .04em; color: var(--ink2); }
.tm-bdg.hit { background: var(--ok); border-color: var(--ok); color: #fff; }
.tm-bdg.warn { background: #f7e3dc; border-color: #e2b6aa; color: var(--red2); }
.tm-phrase { display: block; width: 100%; margin-top: 8px; min-height: 56px; padding: 10px 13px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold2); text-align: left; }
.tm-phrase b { display: block; font: 700 18px/1.25 var(--hd); color: var(--ink); overflow-wrap: anywhere; }
.tm-phrase span { display: block; margin-top: 3px; font: 500 13px/1.35 var(--ui); color: var(--ink3); }
.tm-phrase.hit { border-left-color: var(--ok); background: #eef5ef; }

.tm-big { position: absolute; inset: 0; z-index: 60; background: #fff; display: flex; align-items: center; justify-content: center; padding: calc(var(--top) + 20px) 20px calc(var(--bot) + 20px); cursor: pointer; }
.tm-big-in { width: 100%; text-align: center; }
.tm-big .k { font: 700 12px/1.2 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.tm-big .local { margin-top: 18px; font: 800 clamp(34px, 10.5vw, 54px)/1.15 var(--hd); color: #000; overflow-wrap: anywhere; hyphens: auto; }
.tm-big .en { margin-top: 18px; font: 500 17px/1.4 var(--ui); color: var(--ink3); }
.tm-big .tm-btn { margin-top: 30px; min-width: 160px; }

/* ---------- empty trip: pick a city ---------- */
.tm-find { display: block; margin: 4px 0 10px; }
.tm-find span { display: block; font: 700 11px/1.2 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.tm-find input { width: 100%; min-height: 48px; margin-top: 6px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); font: 500 16px var(--ui); color: var(--ink); }
.tm-pick li button, .tm-pick li a { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 10px; min-height: 52px; padding: 10px 2px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; text-decoration: none; color: var(--ink); }
.tm-pick b { min-width: 0; font: 700 18px/1.2 var(--hd); }
.tm-pick span { flex: none; font: 600 12.5px/1.2 var(--ui); color: var(--ink3); }

/* ---------- on a computer: the page stays phone-sized, with a QR code beside it ---------- */
.tm-desk { display: none; }
@media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
  .tm { margin: 0; left: calc(50% - 470px); right: auto; width: 520px; }
  .tm-desk {
    display: block; position: fixed; top: 50%; left: calc(50% + 110px); width: 360px;
    transform: translateY(-50%);
    color: var(--cream);
  }
  .tm-desk .k { font: 600 11px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
  .tm-desk h2 { margin-top: 12px; font: 900 38px/1.06 var(--hd); letter-spacing: -.4px; color: var(--cream); text-wrap: balance; }
  .tm-desk p { margin-top: 14px; font-size: 18px; line-height: 1.5; color: rgba(250, 244, 231, .86); }
  .tm-desk .qr { margin-top: 24px; width: 212px; background: #fff; border: 3px solid var(--gold); }
  .tm-desk .qr svg { display: block; width: 100%; height: auto; }
  .tm-desk .s { margin-top: 18px; font: 500 14px/1.5 var(--ui); color: rgba(250, 244, 231, .66); }
}

/* ---------- live crowd (Crowd Escape) ----------
   The bar and the button sit on top of the map, so nothing in the list ever moves when they come or go.
   Both start hidden and only show once the crowd module has answered. Square corners, as on the site. */
.tm-crowd-esc {
  position: absolute; z-index: 6; left: 8px; right: 8px; top: 8px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center;
  padding: 8px 8px 8px 12px;
  background: var(--paper); border: 2px solid var(--red2); border-left-width: 8px;
  box-shadow: 0 3px 10px rgba(8, 18, 9, .3);
}
.tm-crowd-esc p { grid-column: 1; min-width: 0; font: 500 14px/1.3 var(--ui); color: var(--ink); overflow-wrap: anywhere; }
.tm-crowd-esc b { font-weight: 800; }
.tm-crowd-esc span { color: var(--ink2); }
.tm-crowd-esc .l3 { margin-top: 1px; font-size: 12.5px; color: var(--ink2); }
.tm-crowd-esc button {
  grid-column: 2; grid-row: 1 / span 3;
  min-width: 78px; min-height: 52px; padding: 0 12px;
  background: var(--red); color: #fff; border: 0; border-radius: 0;
  font: 700 14.5px/1.1 var(--ui);
}
.tm-crowd-esc button:active { background: var(--red2); }
/* On the shrunken map, and on a short phone where the map is small to begin with, the bar folds to two short
   lines and stops before the map's own buttons, so it never lies over them. */
.tm-mapwrap.small .tm-crowd-esc { right: 66px; }
.tm-mapwrap.small .tm-crowd-esc .l3, .tm-mapwrap.small .tm-crowd-esc span { display: none; }
.tm-mapwrap.small .tm-crowd-esc p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-height: 740px) {
  .tm-crowd-esc { right: 66px; }
  .tm-crowd-esc .l3, .tm-crowd-esc span { display: none; }
  .tm-crowd-esc p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.tm-crowd-btn {
  position: absolute; z-index: 6; left: 8px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 14px 0 11px;
  background: var(--pine1); color: var(--cream);
  border: 2px solid var(--gold); border-radius: 0;
  font: 700 14.5px/1 var(--ui); letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(8, 18, 9, .28);
}
.tm-crowd-btn svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
.tm-crowd-btn:active { background: var(--pine3); }
/* ---------- audio walks ----------
   The button sits on the map like "Crowd pulse", above it when both show, so nothing in the list moves. On the
   shrunken map it folds to its icon and count beside the map's own buttons. The strip (#tmAudioDock) is styled by
   the audio walks module's own stylesheet and stays hidden until a walk is playing. */
.tm-audio-btn {
  position: absolute; z-index: 6; left: 8px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; min-width: 52px; padding: 0 14px 0 11px;
  background: var(--gold); color: var(--pine0);
  border: 2px solid var(--pine1); border-radius: 0;
  font: 700 14.5px/1 var(--ui); letter-spacing: .02em; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(8, 18, 9, .28);
}
.tm-audio-btn svg { width: 22px; height: 22px; flex: none; }
.tm-audio-btn .c { margin-left: -4px; }
.tm-audio-btn:active { background: var(--gold2); }
.tm-crowd-btn:not([hidden]) ~ .tm-audio-btn { bottom: 68px; }
.tm-mapwrap.small .tm-audio-btn { left: auto; right: 66px; bottom: 12px; }
.tm-mapwrap.small .tm-audio-btn .l { display: none; }
/* the pulse sheet */
.tm-crowd-sel { display: block; margin-top: 12px; }
.tm-crowd-sel span { display: block; margin-bottom: 6px; font: 600 13px/1.3 var(--ui); color: var(--ink2); }
.tm-crowd-sel select { width: 100%; min-height: 52px; padding: 0 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 0; font: 600 16px var(--ui); color: var(--ink); }
.tm-crowd-lv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tm-crowd-lv button {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  min-height: 74px; padding: 8px 12px; text-align: left;
  background: var(--paper); border: 2px solid var(--ink); border-left: 8px solid var(--ok); border-radius: 0;
}
.tm-crowd-lv button.l2 { border-left-color: #6b7f3a; }
.tm-crowd-lv button.l3 { border-left-color: var(--amber); }
.tm-crowd-lv button.l4 { border-left-color: var(--red2); }
.tm-crowd-lv b { font: 800 20px/1.1 var(--hd); color: var(--ink); }
.tm-crowd-lv span { font: 500 12.5px/1.25 var(--ui); color: var(--ink2); }
.tm-crowd-pr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.tm-crowd-pr button { min-width: 0; min-height: 52px; padding: 0 2px; background: var(--paper); border: 2px solid var(--ink); border-radius: 0; font: 700 16px/1 var(--ui); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.tm-crowd-pr button { font-size: 15px; }
.tm-crowd-pr button.st { background: var(--sand); font-size: 22px; font-weight: 600; }
.tm-crowd-pr button.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.tm-crowd-gr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tm-crowd-gr button { min-height: 64px; padding: 6px; background: var(--pine1); color: var(--cream); border: 0; border-radius: 0; font: 700 15.5px/1.15 var(--ui); }
.tm-crowd-gr button:active { background: var(--pine3); }
.tm-crowd-f { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 8px; }
.tm-crowd-f button { min-height: 48px; padding: 0; background: none; border: 0; font: 600 15px/1.2 var(--ui); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tm-crowd-f button[disabled] { color: var(--ink3); text-decoration: none; opacity: .6; }
.tm-crowd-ok { display: flex; align-items: center; gap: 8px; font: 700 17px/1.3 var(--ui); color: var(--ok); }
.tm-crowd-ok svg { width: 24px; height: 24px; flex: none; }
.tm-crowd-err { margin-top: 12px; padding: 10px 12px; background: var(--amber0); border-left: 6px solid var(--amber); font: 600 14.5px/1.35 var(--ui); color: var(--ink); }
.tm-crowd-now li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 9px 0 9px 12px; border-bottom: 1px solid var(--line); border-left: 6px solid var(--ok); }
.tm-crowd-now li.l2 { border-left-color: #6b7f3a; }
.tm-crowd-now li.l3 { border-left-color: var(--amber); }
.tm-crowd-now li.l4 { border-left-color: var(--red2); }
.tm-crowd-now b { min-width: 0; font: 700 16.5px/1.3 var(--hd); color: var(--ink); overflow-wrap: anywhere; }
.tm-crowd-now strong { font: 800 14.5px/1.3 var(--ui); color: var(--ink); }
.tm-crowd-now span { grid-column: 1 / -1; font: 500 12.5px/1.4 var(--ui); color: var(--ink2); }
.tm-crowd-tip { margin-top: 12px; padding: 10px 12px; background: var(--paper); border: 2px solid var(--red2); border-left-width: 8px; font: 500 14.5px/1.4 var(--ui); color: var(--ink); }
.tm-crowd-tip b { font-weight: 800; }

@media (max-width: 350px) {
  .tm-city { font-size: 26px; }
  .tm-next h2 { font-size: 23px; }
  .tm-acts { grid-template-columns: 1fr; }
  .tm-sos button b { font-size: 10px; }
  .tm-trip-row button { min-width: 84px; }
  .tm-week span { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
