@font-face { font-family: "Jost"; font-weight: 300 700; font-display: swap; src: url(vendor/jost.woff2) format("woff2"); }
@font-face { font-family: "Italiana"; font-weight: 400; font-display: swap; src: url(vendor/italiana.woff2) format("woff2"); }
:root {
  --bg: #f5f6f1; --surface: #fbfcf9; --raised: #ffffff; --surface-2: #eef1e9; --line: #29392b1c;
  --ink: #1a1614; --ink-2: #5c5956; --ink-3: #8d9688;
  --accent: #546939; --accent-ink: #fafbf7; --accent-soft: #e6ebdc;
  --warn: #a54700; --warn-soft: #f7e6d8; --bad: #a33f2d; --bad-soft: #f6e1dc;
  --must: #b07e25; --sky: #4f6778; --sky-soft: #e3e9ed;
  --radius: 10px; --shadow: 0 1px 2px rgba(26,22,20,.04);
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Italiana", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1614; --surface: #221e1b; --raised: #2b2724; --surface-2: #2b2724; --line: #fafbf71a;
    --ink: #fafbf7; --ink-2: #b3b0aa; --ink-3: #86837d;
    --accent: #9fb486; --accent-ink: #1a1614; --accent-soft: #2c3324;
    --warn: #e08a4f; --warn-soft: #3a2519; --bad: #e07a66; --bad-soft: #3b201a;
    --must: #d9ac55; --sky: #9fb6c8; --sky-soft: #232c33;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1614; --surface: #221e1b; --raised: #2b2724; --surface-2: #2b2724; --line: #fafbf71a;
  --ink: #fafbf7; --ink-2: #b3b0aa; --ink-3: #86837d;
  --accent: #9fb486; --accent-ink: #1a1614; --accent-soft: #2c3324;
  --warn: #e08a4f; --warn-soft: #3a2519; --bad: #e07a66; --bad-soft: #3b201a;
  --must: #d9ac55; --sky: #9fb6c8; --sky-soft: #232c33;
  --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 300 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0; } h3 { font-weight: 500; }
h1 { font-size: 2.3rem; } h2 { font-size: 1.7rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .6em; }
.muted { color: var(--ink-2); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand svg { width: 22px; height: 22px; fill: var(--accent); }
#topnav { margin-left: auto; display: flex; gap: 4px; }
#topnav a { padding: 6px 10px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .9rem; }
#topnav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
main { max-width: 1180px; margin: 0 auto; padding: 16px 16px 96px; }
.netbar { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .85rem; padding: 6px 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 500;
  cursor: pointer; min-height: 40px; text-decoration: none; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

label.f { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 4px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 11px; width: 100%; min-height: 40px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
input[type=checkbox] { width: auto; min-height: 0; }
.field { margin-bottom: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: .88rem; cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); }
.badge.must { background: var(--must); color: #fff; } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.ok { background: var(--accent-soft); color: var(--accent); } .badge.sky { background: var(--sky-soft); color: var(--sky); }

/* trips list */
.group-title { margin: 22px 0 8px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.trip-card { display: flex; gap: 0; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; color: inherit; }
.trip-card .cover { height: 120px; background: var(--surface-2) center/cover no-repeat; }
.trip-card .body { padding: 12px 14px; }
.trip-card .count { font-weight: 600; color: var(--accent); }
.empty { text-align: center; padding: 40px 16px; }

/* trip view */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 8px 0 14px; scrollbar-width: none; }
.tabs a { padding: 10px 12px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.tabs svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.profile { max-width: 640px; margin: 0 auto; }
.profile h2 { margin-top: 24px; }
.profile summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--accent); }
.setrows { border-top: 1px solid var(--line); margin: 12px 0 16px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; border-bottom: 1px solid var(--line); }
.setrow > input:not(.sw), .setrow > select, .setrow > .pair, .setrow > .btn { width: 220px; flex: none; }
.pair { display: flex; gap: 8px; } .pair input { min-width: 0; }
input.sw { appearance: none; flex: none; width: 40px; height: 24px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: var(--ink-3); position: relative; cursor: pointer; transition: background .15s; }
input.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(26,22,20,.25); transition: left .15s; }
input.sw:checked { background: var(--accent); } input.sw:checked::after { left: 19px; } input.sw:disabled { opacity: .55; cursor: default; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 8px 0 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; min-height: 104px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.tile svg { width: 22px; height: 22px; } .tile b { color: var(--ink); font-weight: 500; text-transform: capitalize; } .tile span { font-size: .78rem; }
.tile.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tile.on::after { content: "✓"; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 11px; display: grid; place-items: center; }
.raised { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.raised.mono { padding: 10px 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85rem; word-break: break-all; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: var(--radius); }
.seg button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .85rem; min-height: 34px; padding: 0 14px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--raised); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(26,22,20,.08); }
.banner { border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner.sky { background: var(--sky-soft); color: var(--sky); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.ok { background: var(--accent-soft); color: var(--accent); }

.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.mapbox { position: sticky; top: 72px; height: calc(100vh - 100px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
#map { height: 100%; width: 100%; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; scroll-snap-align: start; min-height: 200px; }
.day.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.day-head { cursor: pointer; padding: 2px 2px 8px; }
.day-head .d { font-weight: 600; }
.day-head .wx { font-size: .8rem; color: var(--ink-2); }
.explain { font-size: .82rem; color: var(--ink-2); margin: 4px 0 8px; }
.items { min-height: 40px; }
.item { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; cursor: grab; position: relative; border: 1px solid transparent; }
.item:active { cursor: grabbing; }
.item.meal { background: transparent; border: 1px dashed var(--line); padding: 5px 10px; }
.item.custom { background: var(--sky-soft); }
.item.has-warn { border-color: var(--warn); }
.item .t { font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.item .n { font-weight: 600; font-size: .92rem; }
.item .w { color: var(--warn); font-size: .78rem; margin-top: 2px; }
.item .lock { position: absolute; right: 8px; top: 8px; font-size: .75rem; }
.leg { font-size: .74rem; color: var(--ink-3); margin: -2px 0 4px 10px; }
.sortable-ghost { opacity: .35; }
.day-foot { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }

/* discover */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters select, .filters input { width: auto; min-width: 120px; }
.place { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.place .ph { height: 150px; background: var(--surface-2) center/cover no-repeat; position: relative; }
.place .ph .badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.place .body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.place .why { color: var(--ink-2); font-size: .88rem; flex: 1; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: .82rem; margin: 8px 0; }
.facts dt { color: var(--ink-3); } .facts dd { margin: 0; }
.place .acts { display: flex; gap: 6px; }
.sticky-foot { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 10px; z-index: 40; }

/* today */
.today-hero { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 18px; }
.today-hero .big { font-size: 1.4rem; font-weight: 700; }
.today-hero .btn { background: rgba(255,255,255,.15); border-color: transparent; color: inherit; }
.timeline .tl { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline .tl.past { opacity: .5; }
.timeline .tl.now .time { color: var(--accent); font-weight: 700; }
.conf { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85rem; background: var(--surface-2); padding: 6px 8px; border-radius: 8px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }

/* budget */
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; position: relative; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 999px; }
.bar > b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-3); }
.bar.over > i { background: var(--bad); }
.cat-row { display: grid; grid-template-columns: 100px 1fr 150px; gap: 10px; align-items: center; padding: 6px 0; font-size: .9rem; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.say { display: flex; gap: 8px; }
.say input { flex: 1; }
.mic.rec { background: var(--bad); border-color: var(--bad); color: #fff; }
table.list { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.list td, table.list th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.list th { color: var(--ink-3); font-weight: 500; font-size: .8rem; }

/* sheet + toast */
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { background: var(--surface); width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0;
  padding: 18px 16px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-card { border-radius: 18px; } }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 10px 14px; border-radius: 10px; z-index: 200; font-size: .9rem; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); }
.toast button { background: none; border: 0; color: var(--accent-soft); font: inherit; font-weight: 600; cursor: pointer; }
.auth { max-width: 400px; margin: 40px auto; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.leaflet-container { background: var(--surface-2); font: inherit; }
.num-marker { background: var(--accent); color: var(--accent-ink); border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.num-marker.eat { background: var(--must); color: #fff; }
.num-marker.home { background: var(--ink); color: var(--bg); }

@media (max-width: 900px) {
  .plan-layout { grid-template-columns: 1fr; }
  .mapbox { position: relative; top: 0; height: 300px; order: -1; }
  .cat-row { grid-template-columns: 80px 1fr; } .cat-row .num { grid-column: 2; text-align: left; }
}
@media (max-width: 520px) {
  .two, .three { grid-template-columns: 1fr; }
  .days { grid-auto-columns: 86%; }
  #topnav a { padding: 6px 8px; }
  .brand span { display: none; }
}
.filters input[type=checkbox] { min-width: 0; }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* P1 additions */
#topnav a.bell { position: relative; }
#topnav .dot { position: absolute; top: 0; right: 0; background: var(--bad); color: #fff; border-radius: 999px; font-size: .65rem; padding: 0 5px; line-height: 1.4; }
ul.tips { list-style: none; margin: 6px 0; padding: 0; font-size: .85rem; }
ul.tips li { margin: 3px 0; }
.who { color: var(--sky); margin-top: 2px; }
.alert-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.alert-chips a { text-decoration: none; }
.votes { margin-left: auto; display: inline-flex; }
.votes .btn.on { color: var(--accent); font-weight: 700; }
.place .acts { flex-wrap: wrap; }
.comment { padding: 6px 0; border-bottom: 1px solid var(--line); }
.alert-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.alert-row:last-child { border-bottom: 0; }
.guide { columns: 2 320px; column-gap: 24px; }
.guide > div { break-inside: avoid; margin-bottom: 8px; }
label.pack { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; padding: 5px 0; font-size: .9rem; cursor: pointer; }
label.pack.done span { text-decoration: line-through; color: var(--ink-3); }
a.note { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
a.note.unread b::before { content: "● "; color: var(--accent); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; word-break: break-all; }
label.row { flex-wrap: nowrap; align-items: flex-start; }
label.row input[type=checkbox] { margin-top: 3px; flex: none; }
.opt { padding: 10px 0; border-bottom: 1px solid var(--line); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
label.linkish { color: var(--accent); cursor: pointer; text-decoration: underline; }
.player { position: fixed; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 150; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px 10px; display: flex; gap: 8px; align-items: center; max-width: 640px; margin: 0 auto; }
.player .pt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
label.pack.skipped span { text-decoration: line-through; color: var(--ink-3); }
.jnote { padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.jnote img { display: block; max-width: 100%; max-height: 360px; border-radius: 10px; margin-top: 6px; }
.recap { max-width: 760px; margin: 0 auto; }
.recap-visits { display: grid; gap: 8px; }
.rv { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; }
.rv .ph { width: 64px; height: 48px; border-radius: 8px; background: var(--surface-2) center/cover; }
label.pack.planned span { color: var(--ink-2); }
.campus { max-width: 1180px; margin: 0 auto; }
.campus .ask { max-width: 560px; }
.campus .ask .ph { height: 180px; border-radius: 10px; background: var(--surface-2) center/cover; margin: -4px 0 10px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; max-width: 560px; margin-top: 10px; }
.progress > i { display: block; height: 100%; background: var(--accent); }
.stop.here { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.campus-cta { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; margin-top: 14px; border-color: var(--accent); }
.badge.pick { background: #c2185b; color: #fff; }
.picknote { color: var(--ink); font-style: italic; }
li.picknote { font-style: normal; }
.pickblock { border-left: 3px solid #c2185b; padding-left: 8px; margin: 6px 0; }
.photostrip { display: flex; gap: 6px; overflow-x: auto; margin: 6px 0; }
.photostrip img { height: 90px; border-radius: 8px; }
.photostrip .ph { position: relative; }
.photostrip .ph button { position: absolute; top: 2px; right: 2px; background: var(--surface); }
.hl { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hl img, .hl .noimg { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.hl.current { background: var(--accent-soft); border-radius: 10px; }
.btn.rec { background: var(--bad); border-color: var(--bad); color: #fff; }

/* place pictures: a photo over a small map of where the place is */
.ph { position: relative; overflow: hidden; }
.mapthumb { position: absolute; inset: 0; overflow: hidden; }
.mapthumb img { position: absolute; width: 256px; height: 256px; max-width: none; filter: saturate(.4); opacity: .9; }
.mapthumb .dot { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.phimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph .badges { z-index: 1; }
.sheetpic .ph { height: 160px; border-radius: 10px; margin-bottom: 10px; background: var(--surface-2); }
.notpick { margin-top: 2px; }
/* Leaflet layers use z-index 400+; keep each map in its own layer so sheets and toasts stay on top */
.leaflet-container { isolation: isolate; }

/* front page: a magazine masthead, the headline beside a photo, top trip boxes, collections with a small photo each */
.masthead { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-top: 20px; padding: 9px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: end; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 6.4rem); line-height: 1; margin: 0 0 20px; }
.hero .standfirst { font-size: 1.1rem; color: var(--ink-2); max-width: 480px; padding-top: 16px; border-top: 1px solid var(--line); }
.hero form { max-width: 560px; margin: 18px 0 10px; flex-wrap: nowrap; }
.where { flex: 1; min-width: 0; } .where input { min-height: 48px; background: var(--raised); box-shadow: var(--shadow); }
.hero .btn.primary { min-height: 48px; padding: 0 22px; white-space: nowrap; }
.hero figure { margin: 0; } .hero .pic { position: relative; height: 480px; background: var(--surface-2); }
.hero .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero figcaption { margin-top: 8px; font-size: .78rem; } .hero figcaption a { color: var(--ink-2); text-decoration: none; }
.hero figcaption b { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.section-head { margin: 8px 0 20px; align-items: flex-end; } .section-head h2 { font-size: 2.6rem; margin: 0; line-height: 1.05; }
.tcard { position: relative; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.tcard:hover { transform: translateY(-2px); }
.tcard a { color: inherit; text-decoration: none; }
.tcard .cover { position: relative; height: 190px; background: var(--surface-2); overflow: hidden; } .tcard .cover a { position: absolute; inset: 0; }
.tcard .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; } .tcard:hover .cover img { transform: scale(1.03); }
.tcard .days { position: absolute; left: 12px; top: 12px; font-size: .75rem; font-weight: 500; color: #1a1614; background: rgba(255,255,255,.88); padding: 3px 9px; border-radius: 999px; }
.tcard .body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.tcard h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.tcard .meta, .coll .meta { font-size: .8rem; color: var(--ink-2); }
.tcard .blurb, .coll p { margin: 0; font-size: .9rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard.lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-bottom: 20px; }
.tcard.lead .cover { height: auto; min-height: 300px; }
.tcard.lead .body { padding: 32px; justify-content: center; gap: 14px; }
.tcard.lead h3 { font-family: var(--display); font-weight: 400; font-size: 2.8rem; line-height: 1.05; }
.tcard.lead .blurb { -webkit-line-clamp: 4; }
.kicker { align-self: flex-start; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
.more { color: var(--accent); font-weight: 500; margin-top: 6px; }
.grid.tcards { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
#alltrips { display: flex; margin: 24px auto 0; }
.colls { margin: 64px 0 48px; } .colls #collq { width: 240px; max-width: 100%; } .colls .chips { margin-bottom: 20px; }
.chip.city.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.coll { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; }
.coll:hover { border-color: var(--ink-3); } .coll > div { flex: 1; min-width: 0; }
.coll > img, .coll > span { flex: none; width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.coll .meta { display: flex; justify-content: space-between; gap: 8px; } .coll .by { color: var(--accent); font-weight: 500; }
.coll h3 { margin: 6px 0; font-size: 1.08rem; }
.trip-hero .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-hero h1 { margin: 0; }
.byline { margin-top: 10px; font-weight: 600; font-size: .9rem; color: #c2185b; }
.byline.plain { color: var(--ink-2); font-weight: 500; }
.trip-hero .meta { margin-top: 4px; font-size: .82rem; color: var(--ink-3); }
.credit { position: absolute; right: 4px; bottom: 3px; z-index: 1; font-size: .42rem; line-height: 1.2; color: rgba(255,255,255,.75);
  text-shadow: 0 0 2px rgba(0,0,0,.7); max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit a { color: inherit; text-decoration: none; }
.credit a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .byline:not(.plain) { color: #f06292; } }
:root[data-theme="dark"] .byline:not(.plain) { color: #f06292; }

/* trip page header: same order as the box */
.trip-hero { margin: 8px 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.trip-hero .cover { position: relative; height: 240px; background: var(--surface-2); }
.trip-hero .head { padding: 18px 20px 20px; }
.trip-hero h1 { font-size: 1.7rem; }
.trip-hero p { margin: 12px 0 14px; max-width: 680px; color: var(--ink-2); line-height: 1.55; }

/* itinerary: day tabs and a timeline instead of boxes */
.daytabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.daytabs button { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 8px 16px;
  font: inherit; font-weight: 500; cursor: pointer; }
.daytabs button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.day-explain { margin: 0 0 10px; }
.timeline2 { list-style: none; margin: 0; padding: 0; }
.timeline2 .stop { display: grid; grid-template-columns: 48px 30px minmax(0, 1fr); gap: 10px; align-items: start; position: relative; padding: 4px 0; }
.timeline2 .stop[data-n] { cursor: pointer; }
.timeline2 .stop::before { content: ""; position: absolute; left: 72px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline2 .stop:first-child::before { top: 18px; }
.timeline2 .stop:last-child::before { bottom: calc(100% - 18px); }
.timeline2 .time { font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 6px; text-align: right; }
.timeline2 .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 700; border: 3px solid var(--bg); }
.timeline2 .stop.eat .dot { background: var(--must); color: #fff; }
.timeline2 .stop.meal .dot, .timeline2 .stop.breakfast .dot { background: var(--surface-2); color: var(--ink); font-size: .85rem; }
.timeline2 .stop.custom .dot { background: var(--sky-soft); color: var(--sky); }
.timeline2 .what { padding: 4px 0 14px; min-width: 0; }
.timeline2 .name { font-weight: 600; }
.timeline2 .heart { color: #c2185b; font-size: .85rem; }
.timeline2 .desc { color: var(--ink-2); font-size: .88rem; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.timeline2 .sfacts { font-size: .78rem; color: var(--ink-3); margin-top: 4px; }
.timeline2 .sfacts .note { color: var(--warn); }
.timeline2 .sfacts a { color: var(--accent); }
.timeline2 .sfacts .lnk { white-space: nowrap; }
.timeline2 .sfacts span:not(:empty) + .lnk { margin-left: 10px; }
.timeline2 .stop.breakfast .name { color: var(--ink-2); }
.timeline2 .hop { font-size: .74rem; color: var(--ink-3); padding: 0 0 6px 92px; position: relative; }
.timeline2 .hop::before { content: ""; position: absolute; left: 72px; top: -4px; bottom: 0; width: 2px; background: var(--line); }
.bfast { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin: 6px 0 0; }
.bfast span { white-space: nowrap; }

/* make it your trip */
.make { margin-top: 22px; border-color: var(--accent); }
.make h2 { margin-bottom: 10px; }
.make .how { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.make .how b { color: var(--ink); }
.make-seg { display: flex; width: 100%; }
.make-seg button { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 8px 6px; }
.make-seg small { font-size: .68rem; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
@media (max-width: 520px) {
  .timeline2 .stop { grid-template-columns: 42px 28px minmax(0, 1fr); gap: 8px; }
  .timeline2 .stop::before, .timeline2 .hop::before { left: 63px; }
  .timeline2 .hop { padding-left: 78px; }
  .trip-hero .cover { height: 180px; }
}
