/* Trip Finder ("Plan my trip", website only): a full-screen map with a floating "Your trip" panel on the left and
   the trips list or a trip's details on the right. Phones: the map fills the screen, the list is a bottom sheet you
   drag, the filters open as a sheet. Uses the website's Paper & Ink tokens from zine.css. */
html.zn body.tf-on{overflow:hidden}
html.zn #tf{position:fixed;inset:0;z-index:45;background:var(--bg);color:var(--ink);font-family:var(--f-sans)}
/* the sticky site header stays on top; Trip Finder starts below it (owner, 28 Nov 2026). */
html.zn body.tf-on #tf{top:var(--hdr,101px)}
html.zn #tf[hidden]{display:none}
html.zn #tf button{min-height:0;box-shadow:none;transform:none}
html.zn #tf .tf-map{position:absolute;inset:0;background:#EEF0EC}
html.zn #tf .tf-mapmsg{position:absolute;inset:auto 0 50% 0;text-align:center;color:var(--muted);padding:0 20px}

/* top bar */
html.zn #tf .tf-top{position:absolute;left:12px;right:12px;top:12px;z-index:3;display:flex;align-items:center;gap:10px;pointer-events:none}
html.zn #tf .tf-top>*{pointer-events:auto}
html.zn #tf .tf-x{width:44px;height:44px;padding:0;border-radius:50%;background:var(--card);border:1px solid var(--line);color:var(--ink);font:700 1.1rem/1 var(--f-sans);box-shadow:var(--shadow-s)}
html.zn #tf .tf-logo{display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 8px;border-radius:999px;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-s);font:900 1rem/1 var(--f-disp);letter-spacing:-.02em}
html.zn #tf .tf-sum{margin:0 auto;padding:9px 16px;border-radius:999px;background:var(--ink);color:var(--bg);font:600 .84rem/1.2 var(--f-sans);box-shadow:var(--shadow-s);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40vw}
html.zn #tf .tf-known{min-height:44px;padding:0 16px;border-radius:999px;background:var(--card);border:1px solid var(--line);color:var(--ink);font:700 .86rem/1 var(--f-sans);box-shadow:var(--shadow-s)}
html.zn #tf .tf-known:hover{border-color:var(--ink)}
html.zn #tf .tf-fbtn{display:none}

/* floating panels */
html.zn #tf .tf-left,html.zn #tf .tf-right{position:absolute;top:68px;bottom:12px;z-index:2;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);overflow:hidden}
html.zn #tf .tf-left{left:12px;width:340px}
html.zn #tf .tf-right{right:12px;width:380px}
html.zn #tf .tf-in{flex:1;overflow:auto;overscroll-behavior:contain;padding:18px 18px 22px;scrollbar-width:thin}
html.zn #tf .tf-grab,html.zn #tf .tf-fclose{display:none}
html.zn #tf h2{font:900 1.5rem/1.05 var(--f-disp);letter-spacing:-.03em;margin:0}
html.zn #tf .tf-link{border:0;background:none;padding:6px 2px;color:var(--sakura-ink);font:700 .85rem/1 var(--f-sans);cursor:pointer}

/* left: your trip */
html.zn #tf .tf-lh{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
html.zn #tf .tf-l{display:block;margin:16px 0 0;font:700 .78rem/1.2 var(--f-sans);color:var(--ink)}
html.zn #tf .tf-l small{color:var(--muted);font-weight:500}
html.zn #tf select{display:block;width:100%;margin-top:7px;min-height:44px;padding:8px 12px;border-radius:14px;border:1.5px solid var(--line);background:var(--bg-soft);color:var(--ink);font:600 .92rem/1.2 var(--f-sans)}
html.zn #tf select:focus{border-color:var(--ink);outline:0}
html.zn #tf .tf-bh{display:flex;justify-content:space-between;align-items:center;gap:8px}
html.zn #tf .tf-bh .tf-seg{margin:0}
html.zn #tf .tf-big{margin:8px 0 4px;font:500 .8rem/1 var(--f-sans);color:var(--muted)}
html.zn #tf .tf-big b{font:900 1.9rem/1 var(--f-disp);color:var(--ink);letter-spacing:-.03em;margin-right:4px}
html.zn #tf input[type=range]{width:100%;accent-color:var(--sakura);min-height:0;margin:6px 0 4px}
html.zn #tf .tf-pre{display:flex;flex-wrap:wrap;gap:6px}
html.zn #tf .tf-mini{min-height:32px;padding:5px 11px;border-radius:999px;border:1.5px solid var(--line);background:var(--card);color:var(--ink);font:600 .8rem/1 var(--f-sans);cursor:pointer}
html.zn #tf .tf-mini[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
html.zn #tf .tf-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
html.zn #tf .tf-step{display:flex;align-items:center;justify-content:space-between;margin-top:7px;padding:4px;border-radius:14px;background:var(--bg-soft)}
html.zn #tf .tf-step b{font:900 1.15rem/1 var(--f-disp)}
html.zn #tf .tf-step button{width:36px;height:36px;padding:0;border-radius:10px;border:0;background:var(--card);color:var(--ink);font:700 1.1rem/1 var(--f-sans);cursor:pointer}
html.zn #tf .tf-step button:hover{background:var(--ink);color:var(--bg)}
html.zn #tf .tf-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
html.zn #tf .tf-chip{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:6px 12px;border-radius:999px;border:1.5px solid var(--line);background:var(--card);color:var(--ink);font:600 .82rem/1 var(--f-sans);cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
html.zn #tf .tf-chip:hover{border-color:var(--ink)}
html.zn #tf .tf-chip[aria-pressed=true]{background:var(--pink-soft);border-color:var(--sakura);color:var(--ink)}
html.zn #tf .tf-chip .sgi-w,html.zn #tf .tf-chip>span[aria-hidden]{color:var(--sakura)}
html.zn #tf .tf-seg{display:flex;gap:2px;margin-top:8px;padding:3px;border-radius:12px;background:var(--bg-soft)}
html.zn #tf .tf-seg .tf-chip{flex:1;justify-content:center;border:0;border-radius:9px;background:transparent;min-height:32px;padding:5px 8px;font-size:.8rem}
html.zn #tf .tf-seg .tf-chip[aria-pressed=true]{background:var(--card);color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.12)}
html.zn #tf .tf-tg{display:grid;gap:9px;margin-top:9px}
html.zn #tf .tf-sw{display:flex;align-items:center;gap:10px;margin:0;font:500 .84rem/1.3 var(--f-sans);cursor:pointer}
html.zn #tf .tf-sw input{position:absolute;opacity:0;width:1px;height:1px}
html.zn #tf .tf-sw i{flex:none;position:relative;width:36px;height:21px;border-radius:999px;background:var(--line-strong);transition:background-color .2s ease}
html.zn #tf .tf-sw i::after{content:"";position:absolute;left:3px;top:3px;width:15px;height:15px;border-radius:50%;background:#fff;transition:transform .2s ease}
html.zn #tf .tf-sw input:checked+i{background:var(--sakura)}
html.zn #tf .tf-sw input:checked+i::after{transform:translateX(15px)}
html.zn #tf .tf-sw input:focus-visible+i{outline:3px solid var(--sakura);outline-offset:2px}
html.zn #tf .tf-show{display:none}

/* right: list */
html.zn #tf .tf-rh{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
html.zn #tf .tf-rh p{margin:6px 0 0;color:var(--muted);font-size:.8rem;line-height:1.35}
html.zn #tf .tf-n{color:var(--sakura)}
html.zn #tf .tf-sur{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 12px;border-radius:999px;border:1.5px solid var(--line);background:var(--card);color:var(--ink);font:700 .8rem/1 var(--f-sans);cursor:pointer}
html.zn #tf .tf-sur:hover{border-color:var(--ink)}
html.zn #tf .tf-tip{display:flex;align-items:center;gap:10px;margin:14px 0 0;padding:9px 12px 9px 8px;border-radius:16px 16px 16px 6px;background:var(--pink-soft)}
html.zn #tf .tf-tip img{flex:none}
html.zn #tf .tf-tip p{margin:0;font:600 .82rem/1.4 var(--f-sans)}
html.zn #tf .tf-sort{display:flex;gap:4px;margin:14px 0 10px;overflow-x:auto;scrollbar-width:none}
html.zn #tf .tf-sort .tf-chip{flex:none;min-height:32px;font-size:.78rem}
html.zn #tf .tf-sort .tf-chip[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
html.zn #tf .tf-list{display:grid;gap:8px}
html.zn #tf .tf-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:start;width:100%;padding:12px;border-radius:18px;border:1.5px solid var(--line);background:var(--card);color:var(--ink);text-align:start;cursor:pointer;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}
html.zn #tf .tf-card:hover{border-color:var(--ink);transform:translateY(-1px);box-shadow:var(--shadow-s)}
html.zn #tf .tf-ph{width:48px;height:48px;border-radius:14px;object-fit:cover;display:block;background:var(--bg-soft)}
html.zn #tf .tf-hero{position:relative;margin:10px 0 0;border-radius:18px;overflow:hidden;aspect-ratio:16/9;background:var(--bg-soft)}
html.zn #tf .tf-hero img{width:100%;height:100%;object-fit:cover;display:block}
html.zn #tf .tf-hero figcaption{position:absolute;right:6px;bottom:6px;max-width:calc(100% - 12px);padding:2px 7px;border-radius:6px;background:rgba(0,0,0,.5);color:#fff;font:500 .6rem/1.3 var(--f-sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.zn #tf .tf-ic{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;font-size:1.3rem;color:var(--ink)}
html.zn #tf .tone-0{background:var(--peach)}html.zn #tf .tone-1{background:var(--lilac)}html.zn #tf .tone-2{background:var(--mint)}html.zn #tf .tone-3{background:var(--pink-soft)}
html.zn #tf .tf-cm b{display:block;font:800 1rem/1.2 var(--f-sans)}
html.zn #tf .tf-cm small{display:block;color:var(--muted);font-size:.76rem;margin-top:1px}
html.zn #tf .tf-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px}
html.zn #tf .h-tag{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;background:var(--bg-soft);color:var(--ink);font:600 .7rem/1.2 var(--f-sans)}
html.zn #tf .h-pink{background:var(--pink-soft)}html.zn #tf .h-mint{background:var(--mint)}html.zn #tf .h-lilac{background:var(--lilac)}html.zn #tf .h-peach{background:var(--peach)}
html.zn #tf .tf-cp{text-align:end}
html.zn #tf .tf-cp b{display:block;font:900 1.05rem/1.1 var(--f-disp);letter-spacing:-.02em;white-space:nowrap}
html.zn #tf .tf-cp small{display:block;color:var(--muted);font-size:.7rem}
html.zn #tf .tf-fit{display:inline-block;margin-top:6px;padding:2px 7px;border-radius:999px;font:700 .66rem/1.3 var(--f-sans);background:var(--mint)}
html.zn #tf .tf-fit.over,html.zn #tf .tf-fit.no{background:var(--peach)}
html.zn #tf .tf-empty{display:flex;flex-wrap:wrap;gap:6px}
html.zn #tf .tf-note{margin:14px 2px 0;color:var(--muted);font-size:.72rem;line-height:1.45}
html.zn #tf .tf-skel{display:grid;gap:10px}
html.zn #tf .tf-skel i{display:block;height:78px;border-radius:18px;background:linear-gradient(90deg,var(--bg-soft),var(--card),var(--bg-soft));background-size:200% 100%;animation:tf-sh 1.2s linear infinite}
@keyframes tf-sh{to{background-position:-200% 0}}

/* right: one trip */
html.zn #tf .tf-back{border:0;background:none;padding:4px 0;color:var(--ink);font:700 .85rem/1 var(--f-sans);cursor:pointer}
html.zn #tf .tf-back:hover{color:var(--sakura-ink)}
html.zn #tf .tf-dh h2{font-size:2rem;margin-top:10px}
html.zn #tf .tf-dh p{margin:8px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:var(--muted);font-size:.84rem}
html.zn #tf .tf-dh .tf-blurb{color:var(--ink);font-size:.95rem;line-height:1.45}
html.zn #tf .tf-boxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:16px}
html.zn #tf .tf-boxes div{padding:10px;border-radius:14px;background:var(--bg-soft)}
html.zn #tf .tf-boxes div.on{background:var(--pink-soft);box-shadow:inset 0 0 0 1.5px var(--sakura)}
html.zn #tf .tf-boxes div.ok{background:var(--mint)}html.zn #tf .tf-boxes div.bad{background:var(--peach)}
html.zn #tf .tf-boxes small{display:block;font:600 .68rem/1.2 var(--f-sans);color:var(--muted)}
html.zn #tf .tf-boxes b{display:block;margin-top:4px;font:900 1.02rem/1 var(--f-disp);letter-spacing:-.02em;white-space:nowrap}
html.zn #tf .tf-h3{margin:20px 0 8px;font:800 .95rem/1.2 var(--f-sans)}
html.zn #tf .tf-h3 small{display:block;color:var(--muted);font-weight:500;font-size:.74rem;margin-top:2px}
html.zn #tf .tf-opts{display:grid;gap:6px}
html.zn #tf .tf-opt{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;padding:9px 12px 9px 9px;border-radius:14px;border:1.5px solid var(--line);background:var(--card);color:var(--ink);text-align:start;cursor:pointer}
html.zn #tf .tf-opt:hover:not(:disabled){border-color:var(--ink)}
html.zn #tf .tf-opt.on{border-color:var(--sakura);background:var(--pink-soft)}
html.zn #tf .tf-opt:disabled{opacity:.5;cursor:not-allowed}
html.zn #tf .tf-oi{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--bg-soft);color:var(--sakura)}
html.zn #tf .tf-opt b{display:block;font:700 .86rem/1.2 var(--f-sans)}
html.zn #tf .tf-opt small{display:block;color:var(--muted);font-size:.72rem}
html.zn #tf .tf-op{font:900 .95rem/1 var(--f-disp);white-space:nowrap}
html.zn #tf .tf-bar{display:flex;height:12px;border-radius:999px;overflow:hidden;background:var(--bg-soft)}
html.zn #tf .tf-bar i{display:block;height:100%}
html.zn #tf .tf-leg{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:5px}
html.zn #tf .tf-leg li{display:grid;grid-template-columns:12px 1fr auto;gap:8px;align-items:center;font-size:.8rem}
html.zn #tf .tf-leg li i{width:10px;height:10px;border-radius:3px}
html.zn #tf .tf-leg b{font-weight:700}
html.zn #tf .tf-visa{margin:14px 0 0;padding:9px 12px;border-radius:12px;background:var(--lilac);font-size:.8rem;line-height:1.4}
html.zn #tf .tf-plan{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:18px;min-height:54px;border-radius:16px;border:0;background:var(--btn-bg);color:var(--btn-fg);font:800 1rem/1 var(--f-sans);cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
html.zn #tf .tf-plan:hover{transform:translateY(-1px);box-shadow:var(--shadow-s)}
html.zn #tf .tf-plan .sgi-w,html.zn #tf .tf-plan>span[aria-hidden]{color:var(--sakura)}
html.zn #tf .tf-live{display:grid;grid-template-columns:1fr 1fr;gap:6px}
html.zn #tf .tf-live button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;border-radius:12px;border:1.5px solid var(--line);background:var(--card);color:var(--ink);font:700 .82rem/1 var(--f-sans);cursor:pointer}
html.zn #tf .tf-live button:hover{border-color:var(--ink)}
html.zn #tf .tf-live .sgi-w,html.zn #tf .tf-live button>span[aria-hidden]{color:var(--sakura)}
html.zn #tf .tf-how{margin-top:14px;font-size:.78rem;color:var(--muted)}
html.zn #tf .tf-how summary{cursor:pointer;font-weight:700;color:var(--ink)}
html.zn #tf .tf-how p{line-height:1.5}

/* map pins and lines */
html.zn #tf .tf-pin{display:inline-flex;align-items:center;gap:5px;min-height:0;padding:5px 10px;border-radius:999px;border:0;background:#151515;color:#fff;font:700 .72rem/1 var(--f-sans);white-space:nowrap;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.25);transition:background-color .15s ease,padding .15s ease}
html.zn #tf .tf-pin::after{content:"";position:absolute;left:50%;bottom:-4px;width:8px;height:8px;background:inherit;transform:translateX(-50%) rotate(45deg)}
/* no scale/transform on pins: MapLibre positions them with transform, and scaling would move them off their place */
html.zn #tf .tf-pin:hover,html.zn #tf .tf-pin.hl{z-index:3;background:var(--sakura)}
html.zn #tf .tf-pin.on{background:#E5487F;z-index:4;padding:7px 13px;font-size:.8rem}
html.zn #tf .tf-pin.over{background:#6B6157}
html.zn #tf .tf-pin.home{background:#fff;color:#111;border:2px solid #E5487F;cursor:default}
html.zn #tf .maplibregl-ctrl-group{border-radius:12px;overflow:hidden;box-shadow:var(--shadow-s)}
html.zn #tf .maplibregl-ctrl-bottom-right{right:404px;bottom:84px}
html.zn #tf .maplibregl-ctrl-attrib{font-size:10px}

/* tablets: narrower panels */
@media (max-width:1100px){
  html.zn #tf .tf-left{width:300px}html.zn #tf .tf-right{width:340px}
  html.zn #tf .maplibregl-ctrl-bottom-right{right:364px}
  html.zn #tf .tf-sum{display:none}
}
/* phones: full-screen map, list in a bottom sheet, filters in their own sheet */
@media (max-width:860px){
  html.zn #tf .tf-top{left:10px;right:10px;top:10px;gap:8px}
  html.zn #tf .tf-known{display:none}
  html.zn #tf .tf-logo{margin-right:auto}
  html.zn #tf .tf-fbtn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border-radius:999px;border:0;background:var(--ink);color:var(--bg);font:700 .88rem/1 var(--f-sans);box-shadow:var(--shadow-s)}
  html.zn #tf .tf-left{inset:auto 0 0 0;top:auto;width:auto;height:min(88vh,calc(100% - 60px));border-radius:24px 24px 0 0;transform:translateY(105%);transition:transform .3s cubic-bezier(.2,.8,.2,1);z-index:5}
  html.zn #tf.tf-fopen .tf-left{transform:none}
  html.zn #tf .tf-fclose{display:grid;place-items:center;position:absolute;top:12px;right:12px;width:38px;height:38px;padding:0;border-radius:50%;border:0;background:var(--bg-soft);color:var(--ink);font-size:1rem}
  html.zn #tf .tf-left .tf-in{padding-bottom:90px}
  html.zn #tf .tf-left .tf-lh{padding-right:52px}
  html.zn #tf .tf-show{display:block;position:absolute;left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));min-height:52px;border-radius:16px;border:0;background:var(--btn-bg);color:var(--btn-fg);font:800 1rem/1 var(--f-sans);z-index:2}
  html.zn #tf .tf-right{inset:auto 0 0 0;top:auto;width:auto;border-radius:24px 24px 0 0;transition:height .3s cubic-bezier(.2,.8,.2,1);padding-bottom:env(safe-area-inset-bottom,0px)}
  html.zn #tf[data-sheet=peek] .tf-right{height:128px}
  html.zn #tf[data-sheet=half] .tf-right{height:52vh}
  html.zn #tf[data-sheet=full] .tf-right{height:calc(100% - 64px)}
  html.zn #tf.tf-drag .tf-right{transition:none}
  html.zn #tf .tf-grab{display:grid;justify-items:center;gap:6px;padding:8px 16px 6px;cursor:grab;touch-action:none;user-select:none}
  html.zn #tf .tf-grab i{width:42px;height:5px;border-radius:999px;background:var(--line-strong)}
  html.zn #tf .tf-sheet-t{display:none}
  html.zn #tf[data-sheet=peek] .tf-right .tf-in{overflow:hidden}
  html.zn #tf .tf-right .tf-in{padding-top:6px}
  html.zn #tf .maplibregl-ctrl-bottom-right{right:0;bottom:136px}
  html.zn #tf .tf-pin{font-size:.68rem;padding:4px 8px}
}
@media (prefers-reduced-motion:reduce){
  html.zn #tf *{transition:none!important;animation:none!important}
}
html.zn #tf .maplibregl-ctrl-group button{width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:0;background-color:#fff;box-shadow:none}
html.zn #tf .maplibregl-ctrl-group button+button{border-top:1px solid #E9E2D8}
/* the Sakura chat button sits beside the list on wide screens; on phones the sheet owns the bottom */
html.zn body.tf-on #sakfab{z-index:46;right:408px;bottom:20px}
@media (max-width:1100px){html.zn body.tf-on #sakfab{right:368px}}
@media (max-width:860px){html.zn body.tf-on #sakfab{display:none}}

/* photo credit at the bottom of a place, not on the photo (owner, 23 Nov 2026) */
html.zn #tf .tf-cred{margin:14px 0 0;font-size:.68rem;color:var(--mut)}

/* Mascot in Trip Finder: stretch vertically only, keep the width (owner, 28 Nov 2026). */
html.zn #tf .tf-logo img{width:30px;height:44px;object-fit:fill}
html.zn #tf .tf-tip img{width:34px;height:48px;object-fit:fill}
