/* Layout: route map + summary up top, then one timetable per base: days across, hours down, blocks coloured by what you're doing */
:root{
  --bg:#F2F6F4; --surface:#FFFFFF; --fg:#16211E; --muted:#5A6B66; --line:#D3DDD8; --grid:#E6ECE9; --accent:#0B7A63;
  --flight:#4B4FC9; --bus:#C98A00; --boat:#0A8FB0; --shuttle:#2E9A55; --hike:#C2412D; --walk:#7A6A9C;
  --food:#8A7F6E; --other:#8C9A96;
  --check-bg:#FFF4D6; --check-fg:#7A5300;
  --st-paid:#15803D; --st-booked:#2563EB; --st-research:#B45309; --st-guess:#6B7280;
  --f-display:"Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --f-body:"Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:"JetBrains Mono", ui-monospace, Menlo, monospace;
  --hour:60px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0E1614; --surface:#16211E; --fg:#E4EDE9; --muted:#94A6A0; --line:#2A3833; --grid:#1F2B28; --accent:#3CC3A1;
  --flight:#8F93FF; --bus:#F0B43A; --boat:#3FC4E6; --shuttle:#5ACF83; --hike:#F07560; --walk:#B5A4DA;
  --food:#BFB29C; --other:#7E8F8A;
  --check-bg:#3A2F12; --check-fg:#F6D27A; --st-paid:#4ADE80; --st-booked:#7AA7FF; --st-research:#F0A35A; --st-guess:#9AA5B1; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0E1614; --surface:#16211E; --fg:#E4EDE9; --muted:#94A6A0; --line:#2A3833; --grid:#1F2B28; --accent:#3CC3A1;
  --flight:#8F93FF; --bus:#F0B43A; --boat:#3FC4E6; --shuttle:#5ACF83; --hike:#F07560; --walk:#B5A4DA;
  --food:#BFB29C; --other:#7E8F8A;
  --check-bg:#3A2F12; --check-fg:#F6D27A; --st-paid:#4ADE80; --st-booked:#7AA7FF; --st-research:#F0A35A; --st-guess:#9AA5B1; color-scheme:dark}

*{box-sizing:border-box}
body{background:var(--bg);color:var(--fg);font:15px/1.5 var(--f-body);padding-inline:16px;padding-block:28px 64px}
.wrap{max-width:1040px;margin:0 auto;display:flex;flex-direction:column;gap:36px}
h1,h2,h3{font-family:var(--f-display);margin:0;text-wrap:balance}
.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}

html{scroll-snap-type:y proximity}
.slide,.place{scroll-snap-align:start;scroll-margin-top:12px}
.summary{display:grid;grid-template-columns:1fr 1.05fr;gap:40px;align-items:stretch;min-height:calc(100svh - 56px)}
.sum-left{display:flex;flex-direction:column;justify-content:space-between;gap:18px;min-width:0}
.sum-left > *{margin-top:0}
.cost .cost-t{flex:1}
.top-row .facts{display:flex;gap:10px;margin:0;align-items:baseline}
.top-row .facts div{display:flex;gap:4px;align-items:baseline}
.top-row .facts b{font:700 20px var(--f-mono);color:var(--fg);display:inline}
.top-row .facts span{font-size:14px}
.top-row .facts{gap:16px;order:-1}
#places{width:100%;min-width:0}
.place,.subgrid>div{min-width:0}
@media (min-width:1200px){.summary h1{font-size:clamp(64px,6vw,88px)}.hl figcaption{font-size:15px}.summary .sub{font-size:16px;max-width:48ch}}
.intro{display:flex;flex-direction:column;gap:14px}
.end{min-height:calc(100svh - 40px);display:flex;flex-direction:column;justify-content:center;gap:24px}
.highlights{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:8px}
.highlights li{display:grid;grid-template-columns:14px auto;column-gap:10px;align-items:baseline}
.highlights li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent);align-self:center}
.highlights b{font:700 17px var(--f-display)}
.highlights span{font-size:13px;color:var(--muted);grid-column:2}
.flags{display:flex;gap:18px;margin-top:22px;flex-wrap:wrap}
.flags figure{margin:0;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.flags svg{width:66px;height:44px;border-radius:5px;border:1px solid var(--line);display:block}
.flags figcaption{font:500 11px var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.hl-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:20px}
.hl{margin:0;display:flex;flex-direction:column;gap:6px;min-width:0}
.hl svg{width:100%;height:auto;aspect-ratio:1/1;border-radius:8px;border:1px solid var(--line);display:block}
.hl figcaption{font:700 13.5px/1.2 var(--f-display)}
.title-block{display:flex;flex-direction:column;gap:6px}
.title-block .sub{margin-top:12px}
.itin{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(8,auto);grid-auto-flow:column;column-gap:16px;border-top:1px solid var(--line)}
.itin button{all:unset;box-sizing:border-box;cursor:pointer;width:100%;display:grid;grid-template-columns:3.4em minmax(0,1fr);align-items:baseline;gap:6px;padding:4px 2px;border-bottom:1px dashed var(--line);font-size:13px;color:var(--fg)}
.itin button:hover b,.itin button:focus-visible b{text-decoration:underline}
.itin button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.itin .d{font:500 11px var(--f-mono);color:var(--accent)}
.itin .dt{font-size:12px;color:var(--muted);white-space:nowrap}
.itin b{font-weight:600;line-height:1.3;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--itin-fs,clamp(10px,2.75cqi,13px))}
.itin .dt{font-size:clamp(10px,2.5cqi,12px)}
.itin li{min-width:0}
.itin b i{font-style:normal;color:var(--accent);font-weight:700;padding:0 3px}
@media (max-width:720px){.itin{column-gap:12px}.itin button{grid-template-columns:2.9em minmax(0,1fr);gap:4px;padding:5px 0}.itin b{font-size:var(--itin-fs,12px)}.itin .dt{font-size:11px}}
.summary .sum-left{justify-content:flex-start}
.summary .sum-left{gap:18px}
.summary .hl-strip{margin-top:0}
.summary .hl svg{aspect-ratio:1/1}
.summary .sum-left .hint{margin-top:auto}
@media (max-width:720px){.summary .hl svg{aspect-ratio:1/1}}
.sum-left{container-type:inline-size}
.summary .title-block h1{white-space:nowrap;font-size:12.6cqi;margin-top:4px;margin-bottom:4px}
.top-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
.title-flags{margin-top:0;gap:14px}
.title-flags figure{flex-direction:row;align-items:center;gap:7px}
.title-flags svg{width:48px;height:32px;border-radius:4px}
.title-flags figcaption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.title-flags{gap:10px}
@media (max-width:720px){.hl-strip{gap:6px}.hl figcaption{font-size:11.5px}}
.flag-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px 28px;margin-top:20px}
.flag-row .flags{margin-top:0}
.flag-row .facts{margin-top:0}
.opt-cards.compact{margin-top:20px;gap:10px}
.opt-cards.compact .opt-card{padding:10px 14px;gap:2px;font-size:12.5px}
.opt-cards.compact .opt-card b{font-size:16px}
.opt-cards.compact .opt-cost{margin-top:6px;padding-top:6px;font-size:12px}
.opt-cards.compact .opt-cost b{font-size:15px}
.hint{margin:14px 0 0;font-size:13px;color:var(--muted)}
kbd{font:500 12px var(--f-mono);border:1px solid var(--line);border-bottom-width:2px;border-radius:4px;padding:0 5px;background:var(--surface);color:var(--fg)}
.cost-t .num{font:500 11px var(--f-mono);color:var(--accent);margin-right:8px}
.cost-t tr.tot th,.cost-t tr.tot td{border-top:1.5px solid var(--fg);font-weight:700;font-size:15px}
.cost-t tr.place-row th{cursor:pointer}
.cost-t tr.place-row th:hover b{text-decoration:underline}
.eyebrow{font:500 12px var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
h1{font-size:clamp(38px,7vw,64px);font-weight:800;line-height:.95;letter-spacing:-.02em;margin-top:10px}
.sub{color:var(--muted);margin:14px 0 0;max-width:42ch}
.facts{display:grid;grid-template-columns:repeat(3,auto);gap:6px 22px;margin-top:22px;justify-content:start}
.facts b{font:700 26px var(--f-display);display:block;line-height:1}
.facts span{font-size:12px;color:var(--muted)}
.map{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:8px}
.map svg{width:100%;height:auto;display:block}
.map text{font-family:var(--f-body);fill:var(--fg)}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;padding:6px 10px 4px;font-size:12px;color:var(--muted)}
.legend i{display:inline-block;width:18px;height:3px;border-radius:2px;vertical-align:middle;margin-right:5px}


.cost{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px 22px;display:flex;flex-direction:column;gap:8px;min-width:0}
.tot-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.tot-row .budget{align-self:center}
.paid-top{display:flex;flex-direction:column;line-height:1.1;padding-left:14px;border-left:1px solid var(--line)}
.paid-top span{font:500 10.5px var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.paid-top b{font:700 22px var(--f-display);color:var(--st-paid)}
.cost-t tr.cols td{border-top:0;padding:0 0 2px;font:500 10.5px var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.cost-t td.pd{padding-left:18px;color:var(--st-paid)}
.cost-t td.pd.none{color:var(--muted)}
.cost .total{font:700 clamp(30px,5vw,42px)/1.05 var(--f-display);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.budget{align-self:flex-start;font-size:13.5px;padding:4px 12px;border-radius:99px;background:color-mix(in srgb,var(--c) 14%,var(--surface));color:var(--c)}
.budget b{font-weight:700}
.budget.over{--c:var(--hike)} .budget.under{--c:var(--shuttle)}
.pp{margin:0;font-size:13.5px;color:var(--muted)}
.pp b{color:var(--fg);font-weight:600;font-size:13px}
.cost-t{width:100%;border-collapse:collapse;margin-top:6px;font-size:13.5px}
.cost-t th{text-align:left;font-weight:600;padding:8px 12px 8px 0;border-top:1px dashed var(--line)}
.cost-t th small{display:block;font-weight:400;color:var(--muted);font-size:12px}
.cost-t td{text-align:right;white-space:nowrap;padding:8px 0;border-top:1px dashed var(--line);vertical-align:top;font-size:13px}
.save{margin:6px 0 0;font-size:13.5px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--fg);border-radius:8px;padding:8px 12px}
.save b{color:var(--accent);font-size:14px}
.opts{display:flex;flex-direction:column;gap:10px}
.opts h2{font-size:clamp(24px,4vw,30px);font-weight:700}
.opts-sub{margin:0;color:var(--muted);font-size:14px}
.opt-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.opt-card{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:6px;background:var(--surface);border:1.5px solid var(--line);border-radius:14px;padding:16px 18px;font:14px/1.45 var(--f-body);color:var(--muted);transition:border-color .15s, background .15s}
.opt-card b{font:700 20px var(--f-display);color:var(--fg)}
.opt-card .opt-tag{font:500 11px var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.opt-card .opt-foot{font-size:12.5px;color:var(--fg)}
.opt-cost{margin-top:4px;padding-top:8px;border-top:1px dashed var(--line);font-size:13px;color:var(--muted)}
.opt-cost b{font:700 18px var(--f-mono);color:var(--fg);font-variant-numeric:tabular-nums;margin-right:4px}
.opt-card[aria-checked="true"] .opt-cost b{color:var(--accent)}
.opt-card:hover{border-color:var(--accent)}
.opt-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.opt-card[aria-checked="true"]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--surface))}
.opt-card[aria-checked="true"] .opt-tag{color:var(--accent)}
.opt-card[aria-checked="true"] .opt-tag::after{content:" · selected"}
@media (max-width:720px){.opt-cards{grid-template-columns:1fr}}
.tier{display:flex;gap:3px;margin:4px 0 2px}
.tier button{all:unset;cursor:pointer;font:600 11px var(--f-body);padding:2px 9px;border-radius:99px;border:1px solid var(--line);background:var(--bg);color:var(--muted)}
.tier button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--surface)}
.tier button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.cost-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}
.cs{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-left:1px solid var(--line);min-width:0}
.cs:first-child{border-left:0}
.cs-l{font:500 10.5px var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.cs-v{font-size:15px;font-weight:600;color:var(--fg)}
.per-night{font-size:12.5px;font-weight:500;color:var(--muted)}
.cs-n{font-size:11.5px;color:var(--muted)}
.cs-total{background:color-mix(in srgb,var(--accent) 11%,var(--surface))}
.cs-total .cs-l,.cs-total .cs-v{color:var(--accent)}
@media (max-width:720px){.cost-strip{grid-template-columns:1fr 1fr}.cs{border-left:0;border-top:1px solid var(--line)}.cs:nth-child(-n+2){border-top:0}.cs:nth-child(even){border-left:1px solid var(--line)}.cs-total{grid-column:1/-1}}
.cost-note{margin:4px 0 0;font-size:12px;color:var(--muted)}
.notes{display:flex;flex-wrap:wrap;gap:10px 22px;font-size:13px;color:var(--muted);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-block:12px}
.notes b{color:var(--fg);font-weight:600}

.key{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12.5px;color:var(--muted)}
.key span{display:inline-flex;align-items:center;gap:6px}
.key i{width:14px;height:14px;border-radius:3px;background:color-mix(in srgb,var(--c) 22%,var(--surface));border-left:3px solid var(--c)}

/* Place */
.place{display:flex;flex-direction:column;gap:12px;scroll-margin-top:12px}
.place-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.place-meta{display:inline-flex;align-items:center;gap:10px;font-size:13px;letter-spacing:.06em}
.mini-flag{width:30px;height:20px;border-radius:3px;border:1px solid var(--line);flex-shrink:0}
.place-head .facts-row{margin-left:auto}
@media (max-width:720px){.place-head .facts-row{margin-left:0}}
.place-head .num{font:500 12px var(--f-mono);color:var(--accent)}
.place-head h2{font-size:clamp(26px,4vw,34px);font-weight:700;letter-spacing:-.01em}
.country{font:500 11px var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.facts-row{display:flex;flex-wrap:wrap;gap:8px}
.pill{font-size:13px;background:var(--surface);border:1px solid var(--line);border-radius:99px;padding:3px 11px}
.pill b{font-weight:600}
.pill.stay{background:color-mix(in srgb,var(--accent) 12%,var(--surface));border-color:transparent;color:var(--accent);font-weight:600}
.blurb{color:var(--muted);font-size:14px;margin:0;max-width:70ch}
.scene{height:150px;border-radius:12px;overflow:hidden;border:1px solid var(--line);max-width:100%}
.scene svg{width:100%;height:100%;display:block}
@media (max-width:720px){.scene{height:96px}}
@media (min-width:721px) and (max-height:860px){.scene{height:96px}}
@media (min-width:721px) and (max-height:740px){.scene{display:none}}

.sched-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.sched{display:grid;grid-template-columns:52px repeat(var(--cols),minmax(132px,1fr));min-width:calc(52px + var(--cols) * 132px)}
.dh{position:sticky;top:0;padding:10px 8px 8px;border-bottom:1px solid var(--line);border-left:1px solid var(--line);background:var(--surface)}
.dh:first-child{border-left:0}
.dh b{display:block;font:700 15px var(--f-display)}
.dh span{font-size:12px;color:var(--muted)}
.dh em{font-style:normal;font:500 10.5px var(--f-mono);color:var(--check-fg);background:var(--check-bg);padding:1px 5px;border-radius:4px;margin-left:4px}
.axis{position:relative;height:calc(var(--hours) * var(--hour))}
.axis span{position:absolute;right:8px;transform:translateY(-50%);font:500 11px var(--f-mono);color:var(--muted)}
.col{position:relative;height:calc(var(--hours) * var(--hour));border-left:1px solid var(--line);
  background-image:repeating-linear-gradient(to bottom,var(--grid) 0 1px,transparent 1px var(--hour))}
.ev{position:absolute;left:4px;right:4px;border-radius:6px;background:color-mix(in srgb,var(--c) 18%,var(--surface));border-left:3px solid var(--c);padding:2px 6px;overflow:hidden;font-size:11.5px;line-height:1.25;min-height:16px}
.ev.a{right:calc(50% + 2px)} .ev.b{left:calc(50% + 2px)}
.ev.in-choice{outline:1.5px dashed var(--c);outline-offset:-1px}
.choice{display:flex;gap:3px;margin:1px 0 4px}
.choice button{all:unset;cursor:pointer;font:600 10.5px var(--f-body);padding:2px 8px;border-radius:99px;border:1px solid var(--line);background:var(--surface);color:var(--muted)}
.choice button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--surface)}
.choice button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.ev.chill{all:unset;box-sizing:border-box;position:absolute;cursor:pointer;border-radius:6px;border:1.5px dashed var(--line);background:transparent;padding:2px 7px;font-size:11.5px;line-height:1.25;color:var(--muted);overflow:hidden;display:block}
.ev.chill b{font-weight:600;color:var(--muted)}
.ev.chill .tm{color:var(--muted);font-weight:500}
.ev.chill .add{display:inline-block;margin-top:3px;font:600 11px var(--f-body);color:var(--accent);opacity:.55}
.ev.chill:hover,.ev.chill:focus-visible{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 6%,transparent)}
.ev.chill:hover .add,.ev.chill:focus-visible .add{opacity:1}
.ev.movable{cursor:grab;touch-action:none}
.ev.movable.dragging{cursor:grabbing;opacity:.85;z-index:5;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.ev.has-segs{padding:0;background:transparent;border-left:0;display:flex;flex-direction:column;gap:1px}
.seg{min-height:0;overflow:hidden;padding:1px 6px;border-left:3px solid var(--c);background:color-mix(in srgb,var(--c) 18%,var(--surface))}
.seg:first-child{border-top-left-radius:6px;border-top-right-radius:6px}
.seg:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}
.seg b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.seg .tm{display:block}
.seg-gap{min-height:0}
.seg + .seg-gap + .seg{border-top-left-radius:6px;border-top-right-radius:6px}
.seg:has(+ .seg-gap){border-bottom-left-radius:6px;border-bottom-right-radius:6px}
.ev .seg:not(.one) .tm{white-space:normal}
.seg.one{display:flex;align-items:center;gap:5px;padding-block:0}
.seg.one b{flex:1;min-width:0}
.seg.one .tm{flex-shrink:0}
.ev-x{all:unset;cursor:pointer;float:right;width:16px;height:16px;line-height:15px;text-align:center;border-radius:50%;font-size:13px;color:var(--muted);margin-left:4px}
.ev-x:hover,.ev-x:focus-visible{background:var(--line);color:var(--fg)}
.hint-inline{color:var(--muted);font-size:12.5px}
.acts-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.acts-head span{font-size:12px;color:var(--muted)}
.link{all:unset;cursor:pointer;color:var(--accent);font-size:12px;font-weight:600}
.link:hover,.link:focus-visible{text-decoration:underline}
.acts-list{list-style:none;margin:0;padding:0;display:grid}
.acts-list li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed var(--line)}
.acts-list .a-main{min-width:0}
.acts-list .a-main b{font-weight:600;font-size:13.5px}
.acts-list .a-main small{display:block;color:var(--muted);font-size:12px}
.acts-list li:not(.on) .a-main b{color:var(--muted)}
.mp{display:inline-flex;align-items:center;gap:2px;font:600 13px var(--f-mono);color:var(--fg)}
.mp input{width:56px;font:600 13px var(--f-mono);color:var(--fg);background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:3px 6px;text-align:right}
.mp input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.acts-list li.meals-head{border-bottom:1px solid var(--line);padding-top:14px;font:500 11px var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.acts-list .a-side{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex-shrink:0;font-size:12px}
.a-when{font:500 11px var(--f-mono);color:var(--accent)}
.a-btn{all:unset;cursor:pointer;font:600 12px var(--f-body);padding:3px 10px;border-radius:99px;background:var(--accent);color:var(--surface)}
.a-btn.rm{background:transparent;color:var(--muted);border:1px solid var(--line)}
.a-btn:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.picker{position:fixed;z-index:50;width:280px;max-height:60vh;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.25);font-size:13px}
.pk-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line);font:500 11px var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.pk-x{all:unset;cursor:pointer;font-size:16px;color:var(--muted);padding:0 4px}
.pk-list{display:grid}
.pk-list button{all:unset;cursor:pointer;display:block;padding:9px 12px;border-bottom:1px dashed var(--line)}
.pk-list button:hover,.pk-list button:focus-visible{background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
.pk-list b{display:block;font-weight:600;color:var(--fg)}
.pk-list small{color:var(--muted);font-size:12px}
.ev b{font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev .t{font:500 10px var(--f-mono);color:var(--muted)}
.ev small{display:block;color:var(--muted);font-size:10.5px;margin-top:1px}
.ev-link{display:inline-block;margin-top:3px;font:600 11px var(--f-body);color:var(--accent);text-decoration:underline;position:relative;z-index:3}
.lists a{color:var(--accent)}
.ev small.pfull{color:var(--fg);opacity:.8}
.ev.tall b{white-space:normal}
.k-flight{--c:var(--flight)} .k-bus{--c:var(--bus)} .k-boat{--c:var(--boat)} .k-shuttle{--c:var(--shuttle)}
.k-hike{--c:var(--hike)} .k-walk{--c:var(--walk)} .k-act{--c:var(--accent)} .k-food{--c:var(--food)} .k-other{--c:var(--other)}


.ev .tm{font:600 10px var(--f-mono);color:var(--fg);white-space:nowrap;display:block}
.ev.short{display:flex;align-items:center;gap:5px;padding-block:0}
.ev.short b{flex:1;min-width:0}
.ev.short .tm{flex-shrink:0}
.subgrid{display:grid;grid-template-columns:1fr 1.3fr;gap:18px 28px;align-items:start}
.sub-h{font:500 11px var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.tbl-wrap{overflow-x:auto}
.legs{width:100%;border-collapse:collapse;font-size:13px}
.legs th{text-align:left;font:500 11px var(--f-mono);color:var(--muted);padding:4px 8px 6px 0;border-bottom:1px solid var(--line)}
.legs td{padding:7px 10px 7px 0;border-bottom:1px dashed var(--line);vertical-align:top}
.legs td.mono{font-size:12px;white-space:nowrap}
.legs td i{display:inline-block;width:9px;height:9px;border-radius:2px;background:var(--c);margin-right:7px}
.legs td b{font-weight:600}
.legs td small{display:block;color:var(--muted);font-size:12px;margin-left:16px}
.legs td:nth-child(4){min-width:150px}
.st-paid{--sc:var(--st-paid)} .st-booked{--sc:var(--st-booked)} .st-research{--sc:var(--st-research)} .st-guess{--sc:var(--st-guess)}
.st{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:5px;cursor:pointer;font:600 11px var(--f-body);padding:2px 9px;border-radius:99px;white-space:nowrap;color:var(--sc);background:color-mix(in srgb,var(--sc) 13%,var(--surface));border:1px solid color-mix(in srgb,var(--sc) 45%,transparent)}
.st::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--sc)}
.st.st-guess{background:transparent;border-style:dashed}
.st.st-guess::before{background:transparent;border:1.5px dashed var(--sc);width:5px;height:5px}
.st:hover{border-color:var(--sc)}
.st:focus-visible{outline:2px solid var(--sc);outline-offset:1px}
span.st{cursor:default}
.sd{position:absolute;right:0;top:0;bottom:0;width:4px;background:var(--sc);z-index:2}
.sd.st-guess{background:repeating-linear-gradient(to bottom,var(--sc) 0 3px,transparent 3px 6px);opacity:.7}
.ev:not(.has-segs){padding-right:9px}
.ev[data-st]:not(.movable){cursor:pointer}
.ev[data-st]:hover{filter:brightness(.97)}
.status-key{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;font-size:12.5px;color:var(--muted)}
@media (max-width:720px){.subgrid{grid-template-columns:1fr}}
.prices{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:4px 24px;font-size:13px}
.prices li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed var(--line);padding-block:4px}
.prices li span:last-child{font-family:var(--f-mono);font-size:12px;white-space:nowrap}
.flag{font-size:12.5px;background:var(--check-bg);color:var(--check-fg);border-radius:6px;padding:5px 10px;margin:0;align-self:flex-start}
.flag b{font-weight:600}

.home{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px 20px;display:grid;gap:6px}
.home h2{font-size:24px}
.home p{margin:0;color:var(--muted);font-size:14px}

.lists{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.lists .card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px 20px}
.lists h2{font-size:20px;margin-bottom:10px}
.lists ol,.lists ul{margin:0;padding-left:20px;display:grid;gap:6px}
.lists li::marker{color:var(--accent);font-family:var(--f-mono)}

@media (max-width:720px){
  .summary,.lists{grid-template-columns:1fr}
  :root{--hour:56px}
}
/* Phone: one day at a time with day tabs, tap to move, bottom sheets */
.day-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.day-tabs::-webkit-scrollbar{display:none}
.day-tabs button{all:unset;box-sizing:border-box;cursor:pointer;flex:0 0 auto;display:flex;flex-direction:column;gap:1px;padding:7px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);min-width:84px}
.day-tabs b{font:700 14px var(--f-display)}
.day-tabs span{font-size:12px;color:var(--muted)}
.day-tabs button[aria-selected="true"]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--surface))}
.day-tabs button[aria-selected="true"] b{color:var(--accent)}
.day-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.swipe-hint{font-size:12px;color:var(--muted);margin:-4px 0 0}
.mv{display:grid;gap:12px;padding:14px}
.mv-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}
.mv-row label,.mv-row > span{color:var(--muted)}
.mv select,.mv input{font:500 16px var(--f-body);color:var(--fg);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 10px;min-width:0;max-width:65%}
.mv input{width:96px;text-align:right}
.mv-btns{display:flex;gap:10px;justify-content:flex-end}
.mv-btns .a-btn{padding:9px 18px;font-size:14px}
.hint-touch{display:none}
@media (hover:none){.hint-desk{display:none}.hint-touch{display:inline}}
@media (pointer:coarse){.ev.movable{touch-action:auto;cursor:pointer}}
@media (max-width:720px){
  html{scroll-snap-type:none}
  .summary{min-height:0;gap:24px}
  .end{min-height:0}
  .hl-strip{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:38%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:2px}
  .hl-strip::-webkit-scrollbar{display:none}
  .hl{scroll-snap-align:start}
  .scene{height:80px}
  .dh{display:none}
  .sched{grid-template-columns:44px minmax(0,1fr);min-width:0}
  .ev{font-size:12.5px}
  .ev .tm{font-size:11px}
  .ev.chill{font-size:12.5px}
  .tier button{padding:5px 12px;font-size:12px}
  .st{padding:4px 10px;font-size:12px}
  .cs{padding:10px 12px}
  .picker{left:0!important;right:0;top:auto!important;bottom:0;width:auto;max-height:75vh;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom,0px);font-size:14px}
  .pk-list button{padding:12px 14px}
  .pk-x{font-size:22px;padding:2px 8px}
  .place{gap:10px}
}
/* Phone: one swipe = one slide. Slides: summary, price card, one per stop (compact costs + one day of calendar), then home */
@media (max-width:720px){
  html{scroll-snap-type:y mandatory}
  .slide{scroll-snap-align:none}
  .sum-left,.summary .cost,.place,.home,.lists .card{scroll-snap-align:start;scroll-snap-stop:always;scroll-margin-top:12px}
  .scene{display:none}
  .sched-wrap{overflow:hidden;overflow:clip} /* not its own scroller: an up/down swipe on the calendar moves the whole slide */
  .day-tabs button{padding:4px 10px;min-width:74px}
  .day-tabs b{font-size:13px}
  .day-tabs span{font-size:11px}
  .cost-strip .cs-hotel .per-night{display:none}
  .cost-strip .cs-hotel .tier button{padding:3px 9px}
  .place-head{gap:4px 10px}
  .place-head h2{font-size:24px}
  .pill{font-size:12px;padding:2px 9px}
  .cost-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
  .cost-strip .cs{padding:5px 8px;gap:0;border-top:0;border-left:1px solid var(--line)}
  .cost-strip .cs:nth-child(2){border-left:0}
  .cost-strip .cs-hotel{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 10px;border-left:0;border-bottom:1px solid var(--line)}
  .cost-strip .cs-hotel .tier{margin:0}
  .cost-strip .cs-total{grid-column:auto}
  .cs-n{display:none}
  .cs-l{font-size:9.5px;letter-spacing:.02em;white-space:nowrap}
  .cs-v{font-size:13.5px}
  .sum-left{min-height:calc(100svh - 28px)} /* first screen is the summary only; the price card starts below it */
  .summary .cost{min-height:calc(100svh - 24px);padding:14px 16px;gap:4px}
  .home{padding:14px 16px}
  .home h2{font-size:20px}
  .legs thead{display:none}
  .legs tr{display:grid;grid-template-columns:4.6em minmax(0,1fr) auto;gap:2px 10px;padding:7px 0;border-bottom:1px dashed var(--line)}
  .legs td{padding:0;border:0}
  .legs td:nth-child(1){grid-row:span 2;font-size:11px}
  .legs td:nth-child(2){grid-column:2 / 4}
  .legs td:nth-child(3){display:none}
  .legs td small{margin-left:0}
  .legs td:nth-child(4){min-width:0;font-size:12px;color:var(--muted)}
  .cost .total{font-size:32px}
  .paid-top b{font-size:19px}
  .budget{font-size:12.5px;padding:3px 10px}
  .pp{font-size:12.5px}
  .cost-t{margin-top:2px;font-size:12.5px}
  .cost-t th,.cost-t td{padding-block:5px;font-size:12.5px}
  .cost-t th small{font-size:11px;line-height:1.3}
  .cost-t tr.tot th,.cost-t tr.tot td{font-size:14px}
  .cost-t tr.place-row th{max-width:0}
  .cost-t tr.place-row th small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:720px) and (max-height:700px){
  .summary .cost{padding:10px 14px;gap:2px}
  .cost .total{font-size:28px}
  .cost-t th,.cost-t td{padding-block:3px}
  .cost-t th small{font-size:10.5px;line-height:1.25}
}

/* Sample: floating button back to the planning page, hidden inside the planning page's phone frame */
.sample-bar{display:block;position:fixed;right:20px;bottom:calc(env(safe-area-inset-bottom) + 20px);z-index:60;border-radius:999px;box-shadow:0 8px 24px rgba(0,0,0,.3);padding:10px 18px;text-align:center;font:500 13px/1.3 var(--f-body);background:var(--accent);color:#fff;text-decoration:none}
.sample-bar b{font-weight:700}
.sample-bar:hover{filter:brightness(1.08)}
@media (max-width:700px){.sample-bar{bottom:calc(env(safe-area-inset-bottom) + 12px);right:12px;padding:8px 14px;font-size:12px}.sample-bar .long{display:none}}
.framed .sample-bar{display:none}
