/* ─────────────────────────────────────────────────────────────
   The GGuide — My Trips (trips.html). A travel journal, not a scheduler:
   typography first, Playfair italic for accents, cream paper, one colour per day.
   Tokens from style.css: --black --cream --beige --red --font --serif.
   ───────────────────────────────────────────────────────────── */
.tr { --nav-h: 76px; --bar-h: 62px; --ink: #0a0a0a; --muted: rgba(10,10,10,.64); --hair: rgba(10,10,10,.12); --paper: #F0EBE1; --paper-2: #F6F2EA;
  background: var(--paper); color: var(--ink); min-height: 70vh; }
.tr-loading { min-height: 80vh; display: flex; align-items: center; justify-content: center; background: #0b0b0b; color: rgba(255,255,255,.5);
  font-family: var(--serif); font-style: italic; font-size: 20px; }
.tr em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ── hero ── */
.tr-hero { position: relative; overflow: hidden; background: #0b0b0b; color: #fff; display: flex; align-items: flex-end; min-height: 64vh; padding: 140px 48px 56px; }
.tr-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transform: scale(1.05); animation: trZoom 16s ease forwards; }
@keyframes trZoom { to { transform: scale(1); } }
.tr-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,7,.55) 0%, rgba(8,8,7,.08) 38%, rgba(8,8,7,.88) 100%); }
.tr-hero-in { position: relative; z-index: 2; max-width: 1180px; width: 100%; }
.tr-hero--trip { min-height: 78vh; }
.tr-hero--form { min-height: 46vh; }
.tr-hero--soon { min-height: 86vh; }
.tr-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tr-hero .tr-eyebrow { color: rgba(255,255,255,.72); }
.tr-title { font-weight: 800; letter-spacing: -.035em; line-height: .98; font-size: clamp(40px, 7vw, 104px); max-width: 16ch; }
.tr-title em { color: #F0EBE1; letter-spacing: -.01em; }
.tr-hero--trip .tr-title em { display: block; margin-top: .06em; }
.tr-hero--list .tr-title em, .tr-hero--soon .tr-title em, .tr-hero--form .tr-title em { color: var(--red); }
.tr-dek { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 24px); line-height: 1.45; color: rgba(255,255,255,.78); max-width: 38ch; margin: 22px 0 30px; }
.tr-dateline { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); color: rgba(255,255,255,.88); }
.tr-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); max-width: 980px; }
.tr-facts span { font-size: 15px; font-weight: 600; color: #fff; display: flex; flex-direction: column; gap: 7px; }
.tr-facts i { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.tr-crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 26px; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.tr-crumbs a { color: rgba(255,255,255,.72); padding: 8px 0; }
.tr-crumbs a:hover { color: #fff; }
.tr-crumbs span { color: rgba(255,255,255,.35); }
.tr-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* ── buttons, chips, tags ── */
.tr-btn { display: inline-flex; align-items: center; gap: 10px; font: 800 11px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; background: var(--red); color: #fff;
  border: 0; padding: 17px 30px; border-radius: 40px; cursor: pointer; transition: transform .2s, background .2s; text-decoration: none; }
.tr-btn:hover { background: #9c3a28; transform: translateY(-1px); }
.tr-btn:disabled { opacity: .4; transform: none; cursor: default; }
.tr-btn--sm { padding: 13px 22px; font-size: 10px; }
.tr-btn--light { background: #F0EBE1; color: #0a0a0a; }
.tr-link { background: none; border: 0; padding: 6px 0; font: 700 10px/1.2 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); cursor: pointer; border-bottom: 1px solid transparent; }
.tr-link:hover { color: var(--red); border-bottom-color: currentColor; }
.tr-link--light { color: rgba(255,255,255,.8); margin-left: 18px; }
.tr-link--danger { color: var(--red); margin-left: auto; }
.tr-chip { display: inline-flex; align-items: center; gap: 8px; font: 700 10px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: rgba(10,10,10,.6);
  background: none; border: 1px solid rgba(10,10,10,.2); border-radius: 40px; padding: 10px 16px; cursor: pointer; transition: all .18s; }
.tr-chip:hover { border-color: var(--ink); color: var(--ink); }
.tr-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tr-chip:disabled { opacity: .35; cursor: default; }
.tr-chip button { background: none; border: 0; color: inherit; font-size: 14px; line-height: 1; cursor: pointer; padding: 0 0 0 4px; opacity: .7; }
.tr-tag { display: inline-block; font: 800 8.5px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; padding: 5px 8px; border: 1px solid rgba(10,10,10,.22); color: rgba(10,10,10,.6); vertical-align: middle; }
.tr-tag--must { border-color: var(--red); background: var(--red); color: #fff; }
.tr-tag--fixed { border-color: var(--ink); color: var(--ink); }
.tr-tag--fixed::before { content: '◆ '; font-size: 7px; }
.tr-tag--you { border-color: #2F2B26; background: #2F2B26; color: #F0EBE1; }
.tr-tag--sample { border-color: transparent; color: rgba(182,70,50,.85); padding-left: 0; padding-right: 0; }
.tr-card-date .tr-tag--sample, .tr-hero .tr-tag--sample { border-color: rgba(182,70,50,.5); padding: 5px 8px; background: rgba(182,70,50,.06); }
.tr-hero .tr-tag--sample { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.tr-fine { font-size: 12px; line-height: 1.5; color: var(--muted); }
.tr-fine a { color: var(--red); text-decoration: underline; }
.tr-err { color: var(--red); font-size: 13px; font-weight: 600; min-height: 1em; }

/* ── list ── */
.tr-body { padding: 70px 48px 120px; }
.tr-wrap { max-width: 1180px; margin: 0 auto; }
.tr-list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.tr-h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.03em; display: flex; align-items: baseline; gap: 14px; }
.tr-h2 span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); font-size: .7em; }
.tr-cards { list-style: none; }
.tr-card a { display: grid; grid-template-columns: 56px 220px minmax(0, 1fr) 40px; gap: 32px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--hair); color: var(--ink); transition: padding .3s cubic-bezier(.2,.7,.3,1); }
.tr-card a:hover { padding-left: 10px; }
.tr-card-no { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--red); }
.tr-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #1a1917; }
.tr-card-img img { transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.tr-card a:hover .tr-card-img img { transform: scale(1.05); }
.tr-card-txt { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.tr-card-date { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red); display: flex; gap: 10px; align-items: center; }
.tr-card-name { font-weight: 800; letter-spacing: -.03em; font-size: clamp(26px, 3vw, 42px); line-height: 1.02; }
.tr-card-name em { color: var(--red); }
.tr-card-dest { font-family: var(--serif); font-style: italic; font-size: 18px; color: rgba(10,10,10,.7); }
.tr-card-meta { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tr-card-go { font-size: 24px; color: rgba(10,10,10,.3); transition: transform .3s, color .3s; }
.tr-card a:hover .tr-card-go { transform: translateX(6px); color: var(--red); }
.tr-empty { padding: 70px 0 30px; max-width: 560px; }
.tr-empty-h { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin-bottom: 14px; }
.tr-empty p { font-size: 15px; line-height: 1.7; color: rgba(10,10,10,.6); margin-bottom: 18px; }
.tr-empty-s { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15px; padding: 14px 0; }

/* ── form ── */
.tr-form { display: block; }
.tr-form-start { font-family: var(--serif); font-style: italic; font-size: 18px; padding: 18px 22px; background: var(--paper-2); border-left: 3px solid var(--red); margin-bottom: 18px; }
.tr-frow { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--hair); }
.tr-frow:first-of-type { border-top: 1px solid var(--ink); }
.tr-flabel { font-weight: 800; font-size: 18px; letter-spacing: -.01em; display: flex; flex-direction: column; gap: 6px; }
.tr-flabel small { font-weight: 500; font-size: 12px; line-height: 1.5; color: var(--muted); letter-spacing: 0; }
.tr-fn { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); font-size: 16px; }
.tr-fctl { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tr-in { font: 500 15px/1.4 var(--font); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(10,10,10,.3); padding: 10px 2px; width: 100%; border-radius: 0; outline: none; }
.tr-in:focus { border-bottom-color: var(--red); }
.tr-in--big { font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.02em; }
.tr-in--sm { font-size: 13px; padding: 8px 2px; }
select.tr-in { cursor: pointer; }
.tr-area { border: 1px solid rgba(10,10,10,.2); padding: 14px; resize: vertical; font-family: var(--serif); font-style: italic; font-size: 17px; }
.tr-dest { position: relative; display: flex; flex-direction: column; gap: 12px; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tr-dest-list { list-style: none; border: 1px solid var(--hair); background: #fff; max-height: 300px; overflow: auto; }
.tr-dest-list:empty { display: none; }
.tr-dest-list li { padding: 12px 14px; cursor: pointer; border-bottom: 1px solid rgba(10,10,10,.06); font-size: 15px; }
.tr-dest-list li span { color: var(--muted); font-size: 12px; }
.tr-dest-list li:hover, .tr-dest-list li:focus { background: var(--beige); outline: none; }
.tr-dest-list li.tr-none { cursor: default; font-family: var(--serif); font-style: italic; color: var(--muted); }
.tr-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 30px; }
.tr-dates label { display: flex; flex-direction: column; gap: 4px; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tr-dates .tr-in { width: 190px; }
.tr-days-count { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink); padding-bottom: 8px; }
.tr-days-count.bad { color: var(--red); }
.tr-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-pace { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--hair); }
.tr-pace-o { position: relative; padding: 18px 18px 20px; border-left: 1px solid var(--hair); cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: background .2s; }
.tr-pace-o:first-child { border-left: 0; }
.tr-pace-o input { position: absolute; opacity: 0; }
.tr-pace-o b { font-size: 16px; font-weight: 800; }
.tr-pace-o span { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); line-height: 1.4; }
.tr-pace-o:has(input:checked) { background: var(--ink); color: #fff; }
.tr-pace-o:has(input:checked) span { color: rgba(255,255,255,.7); }
.tr-pace-o:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: -2px; }
.tr-switchrow { display: flex; align-items: center; gap: 14px; cursor: pointer; font-weight: 600; }
.tr-switchrow input { position: absolute; opacity: 0; }
.tr-sw { width: 42px; height: 24px; border-radius: 20px; background: rgba(10,10,10,.2); position: relative; transition: background .2s; flex: 0 0 auto; }
.tr-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tr-switchrow input:checked + .tr-sw { background: var(--red); }
.tr-switchrow input:checked + .tr-sw::after { transform: translateX(18px); }
.tr-switchrow input:focus-visible + .tr-sw { outline: 2px solid var(--red); outline-offset: 2px; }
.tr-form-actions { display: flex; align-items: center; gap: 26px; padding-top: 34px; flex-wrap: wrap; }

/* ── sticky day bar ── */
.tr-bar { position: sticky; top: var(--nav-h); z-index: 400; background: rgba(240,235,225,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.tr-bar-in { display: flex; align-items: center; gap: 18px; padding: 0 48px; min-height: var(--bar-h); }
.tr-days { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; align-self: stretch; }
.tr-days::-webkit-scrollbar { display: none; }
.tr-tab { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0 16px; font: 800 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: rgba(10,10,10,.45); cursor: pointer; transition: color .2s; }
.tr-tab small { font-weight: 600; letter-spacing: .06em; color: rgba(10,10,10,.4); }
.tr-tab i { width: 8px; height: 8px; border-radius: 50%; background: var(--day, var(--ink)); }
.tr-tab::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--day, var(--ink)); transform: scaleX(0); transition: transform .25s; }
.tr-tab:hover { color: var(--ink); }
.tr-tab.on { color: var(--ink); }
.tr-tab.on::after { transform: scaleX(1); }
.tr-tab.drop { background: rgba(182,70,50,.1); color: var(--red); }
.tr-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.tr-act { font: 700 9.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: none; border: 1px solid rgba(10,10,10,.2); border-radius: 40px; padding: 10px 14px; cursor: pointer; white-space: nowrap; transition: all .18s; }
.tr-act:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.tr-act:disabled { opacity: .35; cursor: default; background: none; color: var(--ink); border-color: rgba(10,10,10,.2); }
.tr-act--plan { background: var(--red); border-color: var(--red); color: #fff; }
.tr-act--plan:hover { background: #9c3a28; border-color: #9c3a28; }
.tr-switch { display: none; }

/* ── split: journal + map ── */
.tr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 42%); align-items: start; }
.tr-journal { padding: 56px 56px 120px 48px; min-width: 0; }
.tr-mapcol { position: sticky; top: calc(var(--nav-h) + var(--bar-h)); height: calc(100vh - var(--nav-h) - var(--bar-h)); border-left: 1px solid var(--hair); background: #e8e4dd; }
.tr-mapbox { position: relative; height: 100%; display: flex; flex-direction: column; }
.tr-map { flex: 1 1 auto; min-height: 280px; background: #e8e4dd; z-index: 0; }
.tr-map-off { padding: 40px; font-family: var(--serif); font-style: italic; color: var(--muted); }
.tr-map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 20px 0; background: var(--paper); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(10,10,10,.6); }
.tr-map-legend:empty { display: none; }
.tr-map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tr-map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tr-map-legend i.star { width: auto; height: auto; font-style: normal; font-size: 11px; color: var(--ink); }
.tr-legend-off { color: var(--red); }
.tr-map-note { padding: 10px 20px 14px; background: var(--paper); font-family: var(--serif); font-style: italic; font-size: 13px; color: rgba(10,10,10,.6); border-top: 0; }

/* ── overview ── */
.tr-ov-notes { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.45; color: rgba(10,10,10,.78); max-width: 32ch; margin: 0 0 54px; padding-left: 24px; border-left: 2px solid var(--red); }
.tr-ov-day { border-top: 1px solid var(--ink); padding: 0 0 30px; margin-bottom: 8px; }
.tr-ov-head { width: 100%; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: baseline; gap: 18px; background: none; border: 0; padding: 22px 0 16px; text-align: left; cursor: pointer; font-family: var(--font); color: var(--ink); }
.tr-ov-n { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--day, var(--red)); line-height: 1; }
.tr-ov-date { font-weight: 800; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.tr-ov-count { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.tr-ov-head:hover .tr-ov-count { color: var(--red); }
.tr-ov-stops { list-style: none; margin-left: 168px; }
.tr-ov-stop { display: grid; grid-template-columns: 30px 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 8px 9px 0; border-bottom: 1px solid rgba(10,10,10,.06); cursor: pointer; transition: background .2s, padding .2s; }
.tr-ov-stop:hover, .tr-ov-stop.is-sel { background: rgba(255,255,255,.55); padding-left: 8px; }
.tr-ov-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tr-ov-name small { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tr-ov-meta { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.tr-ov-note { font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(10,10,10,.6); padding: 6px 0 10px 44px; }
.tr-ov-empty { margin-left: 168px; font-family: var(--serif); font-style: italic; color: var(--muted); }
.tr-ov-short { border-top-style: dashed; }
.tr-ov-shortnames { margin-left: 168px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.6; }
.tr-ov-shortnames i { color: var(--red); font-style: normal; }
.tr-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--day, var(--red)); color: #fff; font: 800 11px/1 var(--font); flex: 0 0 auto; }

/* ── a day: the journal page ── */
.tr-day-head { padding-bottom: 26px; margin-bottom: 10px; border-bottom: 1px solid var(--ink); }
.tr-day-n { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 40px); color: var(--day, var(--red)); line-height: 1; margin-bottom: 10px; }
.tr-day-h { font-weight: 800; letter-spacing: -.035em; font-size: clamp(34px, 4.4vw, 60px); line-height: 1; }
.tr-day-sum { margin-top: 14px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tr-day-hours { margin-top: 6px; font-size: 12px; line-height: 1.45; color: rgba(10,10,10,.5); }
.tr-day-add { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; }
.tr-day-add .tr-link { color: var(--red); }
.tr-slot { margin-top: 30px; }
.tr-slot-h { display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; color: rgba(10,10,10,.72); margin-bottom: 4px; }
.tr-slot-h::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.tr-stops { list-style: none; }
.tr-stop { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 24px 12px 24px 0; border-bottom: 1px solid rgba(10,10,10,.07); transition: background .25s, padding .25s; }
.tr-stop.has-photo { grid-template-columns: 44px minmax(0, 1fr) minmax(140px, 30%); }
.tr-stop.is-sel { background: rgba(255,255,255,.62); padding-left: 12px; box-shadow: inset 3px 0 0 var(--day, var(--red)); }
.tr-stop.dragging { opacity: .4; }
.tr-stop.drop-before { box-shadow: inset 0 3px 0 var(--red); }
.tr-stop.drop-after { box-shadow: inset 0 -3px 0 var(--red); }
.tr-rail { position: relative; display: flex; justify-content: center; padding-top: 2px; }
.tr-rail::before { content: ''; position: absolute; top: 34px; bottom: -26px; left: 50%; width: 1px; background: rgba(10,10,10,.14); }   /* the journal's margin line, not a route */
.tr-stops > .tr-stop:last-child .tr-rail::before { display: none; }
.tr-rail .tr-num { width: 32px; height: 32px; font-size: 13px; box-shadow: 0 0 0 4px var(--paper); position: relative; }
.tr-stop.is-sel .tr-num { transform: scale(1.12); }
.tr-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(10,10,10,.45); margin-top: 10px; background: var(--paper); position: relative; }
.tr-stop-main { min-width: 0; cursor: pointer; }
.tr-stop-kicker { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tr-stop-kicker b { font-size: 13px; letter-spacing: .04em; color: var(--day, var(--red)); }
.tr-stop-name { font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; line-height: 1.1; }
.tr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tr-stop-note { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.55; color: rgba(10,10,10,.7); margin-top: 10px; max-width: 54ch; }
.tr-stop-facts { margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.tr-stop-facts i { font-style: normal; color: rgba(10,10,10,.4); }
.tr-stop-facts span { color: rgba(10,10,10,.25); }
.tr-booking { margin-top: 14px; padding: 12px 16px; border: 1px solid rgba(10,10,10,.18); background: rgba(255,255,255,.5); display: flex; flex-direction: column; gap: 5px; max-width: 520px; }
.tr-booking-h { font-size: 8.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tr-booking-row { font-weight: 700; font-size: 14px; }
.tr-booking-row code { font-family: var(--font); font-weight: 800; letter-spacing: .06em; background: var(--beige); padding: 2px 6px; }
.tr-booking-notes { font-family: var(--serif); font-style: italic; font-size: 14px; color: rgba(10,10,10,.65); }
.tr-private { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; color: #4a3f33; background: #f8f1e1; padding: 12px 16px; border-left: 2px solid #D8A250; max-width: 520px; }
.tr-private span { display: block; font-family: var(--font); font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #a07a35; margin-bottom: 4px; }
/* place photography: the site's own photo, else a typographic card in the category colour; fixed frames, no layout shift */
.tr-fig { margin: 0; position: relative; overflow: hidden; background: #1a1917; aspect-ratio: 4 / 5; align-self: start; }
.tr-fig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.tr-stop:hover .tr-fig img { transform: scale(1.04); }
.tr-fig--type { background: var(--cat, #B64632); color: #F6F2EA; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 14px 12px;
  background-image: linear-gradient(rgba(10,10,10,.14), rgba(10,10,10,.14)); background-blend-mode: multiply; }
.tr-fig--type::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(246,242,234,.32); pointer-events: none; }
.tr-fig-k { font: 800 8.5px/1.2 var(--font); letter-spacing: .24em; text-transform: uppercase; opacity: .85; position: relative; z-index: 1; }
.tr-fig-i { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(56px, 6vw, 92px); line-height: .8; align-self: flex-start; position: relative; z-index: 1; }
.tr-fig-c { font-family: var(--serif); font-style: italic; font-size: 13px; opacity: .85; position: relative; z-index: 1; min-height: 1em; }
.tr-fig--thumb { width: 48px; height: 48px; aspect-ratio: 1; }
.tr-fig--thumb.tr-fig--type, .tr-fig--add.tr-fig--type { padding: 0; align-items: center; justify-content: center; }
.tr-fig--thumb .tr-fig-k, .tr-fig--thumb .tr-fig-c, .tr-fig--add .tr-fig-k, .tr-fig--add .tr-fig-c, .tr-fig--cmp .tr-fig-c { display: none; }
.tr-fig--thumb .tr-fig-i, .tr-fig--add .tr-fig-i { font-size: 28px; align-self: center; }
.tr-fig--thumb.tr-fig--type::after, .tr-fig--add.tr-fig--type::after { inset: 3px; }
.tr-fig--blank { background: transparent; border: 1px dashed rgba(10,10,10,.2); }
.tr-fig--add { width: 52px; height: 52px; aspect-ratio: 1; }
.tr-stop--note .tr-note-text { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: rgba(10,10,10,.75); }
.tr-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 16px; opacity: .55; transition: opacity .2s; }
.tr-stop:hover .tr-ctl, .tr-stop:focus-within .tr-ctl, .tr-stop.is-sel .tr-ctl { opacity: 1; }
.tr-ctl button, .tr-ctl select, .tr-ctl-read { font: 700 9px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: rgba(10,10,10,.7); background: none; border: 1px solid rgba(10,10,10,.16); border-radius: 30px; padding: 8px 11px; cursor: pointer; }
.tr-ctl select { padding-right: 8px; max-width: 150px; }
.tr-ctl button:hover, .tr-ctl select:hover, .tr-ctl-read:hover { border-color: var(--ink); color: var(--ink); }
.tr-ctl .tr-ctl-rm:hover { border-color: var(--red); color: var(--red); }
.tr-ctl-read { border-color: transparent; color: var(--red); }
.tr-grip { cursor: grab; color: rgba(10,10,10,.35); font-size: 12px; letter-spacing: -2px; padding: 0 6px 0 0; user-select: none; }
.tr-edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 16px; padding: 20px; background: #fff; border: 1px solid var(--hair); cursor: default; }
.tr-edit label { display: flex; flex-direction: column; gap: 6px; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tr-edit label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.tr-edit input:not([type=checkbox]), .tr-edit select, .tr-edit textarea { font: 500 14px/1.4 var(--font); color: var(--ink); border: 0; border-bottom: 1px solid rgba(10,10,10,.25); padding: 7px 0; background: transparent; letter-spacing: 0; text-transform: none; outline: none; }
.tr-edit textarea { border: 1px solid rgba(10,10,10,.2); padding: 9px; font-family: var(--serif); font-style: italic; font-size: 15px; resize: vertical; }
.tr-edit input:focus, .tr-edit select:focus, .tr-edit textarea:focus { border-color: var(--red); }
.tr-e-wide { grid-column: 1 / -1; }
.tr-e-check, .tr-edit .tr-e-check { flex-direction: row !important; align-items: center; gap: 9px !important; font-size: 11px !important; letter-spacing: .06em !important; color: var(--ink) !important; cursor: pointer; }
.tr-e-res { grid-column: 1 / -1; border: 1px dashed rgba(10,10,10,.22); padding: 14px 16px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.tr-e-res legend { padding: 0 6px; }
.tr-e-res .tr-fine { grid-column: 1 / -1; margin-top: -6px; }
.tr-e-actions { grid-column: 1 / -1; display: flex; gap: 20px; align-items: center; margin-top: 4px; }
.tr-edit--quick { margin-top: 20px; }
.tr-empty--day { padding: 46px 0; }

/* ── drawer (Add places, Plan with GGuide) ── */
.tr-scrim { position: fixed; inset: 0; background: rgba(8,8,7,.5); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 6100; }
.tr-scrim.open { opacity: 1; visibility: visible; }
.tr-drawer { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: 520px; max-width: 100vw; z-index: 6101; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; transform: translateX(102%); transition: transform .42s cubic-bezier(.4,0,.2,1); box-shadow: -30px 0 80px rgba(0,0,0,.25); }
.tr-drawer.open { transform: none; }
.tr-dr-head { padding: 34px 34px 18px; border-bottom: 1px solid var(--hair); position: relative; }
.tr-dr-head .tr-eyebrow { margin-bottom: 10px; }
.tr-dr-x { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(10,10,10,.2); background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.tr-dr-x:hover { border-color: var(--ink); }
.tr-dr-h { font-weight: 800; font-size: 34px; letter-spacing: -.03em; line-height: 1; margin-bottom: 14px; }
.tr-dr-h em { color: var(--red); }
.tr-dr-dek { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.5; color: rgba(10,10,10,.65); }
.tr-dr-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 34px 30px; }
.tr-dr-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 34px; border-top: 1px solid var(--hair); background: var(--paper-2); }
.tr-dr-foot label { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tr-dr-foot select { font: 600 13px var(--font); border: 0; border-bottom: 1px solid rgba(10,10,10,.3); background: transparent; padding: 6px 0; }
.tr-dr-foot .tr-btn { margin-left: auto; }
.tr-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--hair); margin: 6px 0 12px; overflow-x: auto; scrollbar-width: none; }
.tr-tabs button { flex: 0 0 auto; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px 12px 0; margin-right: 14px; font: 800 10px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: rgba(10,10,10,.45); cursor: pointer; }
.tr-tabs button.on { color: var(--ink); border-bottom-color: var(--red); }
.tr-add-list { display: flex; flex-direction: column; }
.tr-add-row { display: grid; grid-template-columns: 20px 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(10,10,10,.07); cursor: pointer; }
.tr-add-row:hover { background: rgba(255,255,255,.5); }
.tr-add-row input { accent-color: var(--red); width: 16px; height: 16px; }

.tr-add-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tr-add-t b { font-weight: 700; font-size: 15px; }
.tr-add-t small { font-size: 11px; color: var(--muted); line-height: 1.4; }
.tr-add-row.is-in { opacity: .5; cursor: default; }
.tr-add-in { font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.tr-add-group { margin-top: 14px; }
.tr-add-gh { font-size: 9px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.tr-add-gh i { width: 8px; height: 8px; border-radius: 50%; }
.tr-add-gh span { color: var(--red); }
.tr-add-city { font-family: var(--serif); font-style: italic; font-size: 24px; margin-top: 8px; }
.tr-add-city span { font-family: var(--font); font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.tr-add-more { margin-top: 18px; }
.tr-add-more summary { cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 8px 0; }

/* planner */
.tr-dna { font-size: 13px; line-height: 1.55; padding: 14px 16px; background: var(--paper-2); border-left: 2px solid var(--red); margin-bottom: 18px; color: rgba(10,10,10,.75); }
.tr-dna a { color: var(--red); }
.tr-plan-acts { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.tr-prop { padding-top: 18px; }
.tr-prop-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.tr-prop-head b { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.tr-prop-head small { font-size: 11px; color: var(--muted); }
.tr-mode { font: 800 8.5px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; padding: 6px 9px; background: var(--ink); color: #fff; }
.tr-mode--ai { background: var(--red); }
.tr-mode--sample { background: none; color: var(--red); border: 1px solid var(--red); }
.tr-warn { list-style: none; margin: 0 0 14px; padding: 10px 14px; background: rgba(182,70,50,.07); border-left: 2px solid var(--red); font-size: 12.5px; line-height: 1.5; }
.tr-prop-day { margin-bottom: 18px; }
.tr-prop-dh { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--day, var(--ink)); padding: 8px 0; border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
.tr-prop-dh small { font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: none; margin-left: 8px; }
.tr-prop-day ol { list-style: none; }
.tr-prop-day li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(10,10,10,.05); }
.tr-prop-day .tr-num { width: 22px; height: 22px; font-size: 10px; }
.tr-prop-t > b:first-child { font-size: 14px; }
.tr-prop-t .tr-tag { margin-left: 6px; }
.tr-prop-t i { font-style: normal; font-weight: 700; color: var(--red); font-size: 12px; margin-left: 4px; }
.tr-prop-t small { display: block; font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); margin-top: 3px; }
.tr-prop-t .tr-prop-w { color: var(--red); }
.tr-prop-pick { margin-top: 4px; font-size: 10px !important; }
.tr-prop-k { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6b655c; margin-bottom: 2px; }
.tr-prop-note .tr-prop-t em { display: block; font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.45; color: var(--ink); }
.tr-prop-dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--day, var(--ink)); justify-self: center; margin-top: 6px; }
.tr-prop-day li.is-fixed .tr-num { background: var(--paper); color: var(--day, var(--ink)); box-shadow: inset 0 0 0 1.5px var(--day, var(--ink)); }
/* Regenerate whole trip: before → after, kept stops and why, one secondary option */
.tr-regen { margin: 4px 0 18px; padding: 12px 14px 10px; background: var(--paper-2); border-left: 2px solid var(--ink); }
.tr-regen-sum { font-size: 13.5px; line-height: 1.5; margin: 2px 0 8px; }
.tr-regen-sum b { font-weight: 800; }
.tr-regen-l { margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; }
.tr-regen-r { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 6px 0; border-top: 1px solid rgba(10,10,10,.06); font-size: 13px; }
.tr-regen-r b { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.tr-regen-r span { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: rgba(10,10,10,.62); }
.tr-regen-l--kept .tr-regen-r span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 13px; letter-spacing: 0; }
.tr-regen-opt { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(10,10,10,.75); }
.tr-regen-note { margin: 0; }
.tr-tag--kept { border-style: dashed; }

/* map popups: the place card */
.tr-popup .leaflet-popup-content-wrapper { border-radius: 0; padding: 0; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.tr-popup .leaflet-popup-content { margin: 0; width: 260px !important; font-family: var(--font); }
.tr-pop img { width: 100%; height: 130px; object-fit: cover; display: block; }
.tr-pop-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.tr-pop-k { font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(10,10,10,.5); display: flex; align-items: center; gap: 7px; }
.tr-pop-k i { font-style: normal; color: #fff; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; letter-spacing: 0; }
.tr-pop-n { font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1.15; }
.tr-pop-you { font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #2F2B26; }
.tr-pop-note { font-family: var(--serif); font-style: italic; font-size: 13.5px; line-height: 1.45; color: rgba(10,10,10,.72); }
.tr-pop-t { font-size: 10.5px; font-weight: 600; color: rgba(10,10,10,.5); }
.tr-pop a { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red) !important; margin-top: 4px; }

.tr-toast { position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 12px); opacity: 0; transition: .25s; z-index: 2147483002; background: #0a0a0a; color: #F0EBE1;
  padding: 13px 18px; font: 500 13px/1.4 var(--font); max-width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.tr-toast.show { opacity: 1; transform: translate(-50%, 0); }
body.tr-noscroll { overflow: hidden; }
.tr button:focus-visible, .tr a:focus-visible, .tr select:focus-visible, .tr input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ── responsive ── */
@media (max-width: 1180px) {
  .tr-bar-in { flex-wrap: wrap; padding: 0 24px; gap: 0 12px; }
  .tr-days { flex-basis: 100%; min-height: 50px; }
  .tr-actions { padding: 8px 0 10px; }
  .tr { --bar-h: 108px; }
  .tr-split { grid-template-columns: minmax(0, 1fr) minmax(340px, 40%); }
  .tr-journal { padding: 44px 32px 100px 24px; }
  .tr-ov-stops, .tr-ov-empty, .tr-ov-shortnames { margin-left: 0; }
  .tr-ov-head { grid-template-columns: minmax(0, 1fr) auto; }
  .tr-ov-n { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .tr { --nav-h: 76px; --bar-h: 112px; }   /* the site nav is 76px once solid on phones too */
  .tr-hero { padding: 120px 24px 40px; min-height: 58vh; }
  .tr-hero--trip { min-height: 72vh; }
  .tr-facts { gap: 14px 26px; }
  .tr-body { padding: 46px 24px 90px; }
  .tr-card a { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
  .tr-card-no, .tr-card-go { display: none; }
  .tr-frow { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tr-pace { grid-template-columns: minmax(0, 1fr); }
  .tr-pace-o { border-left: 0; border-top: 1px solid var(--hair); }
  .tr-pace-o:first-child { border-top: 0; }
  .tr-bar-in { padding: 0 16px; }
  .tr-actions { flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .tr-actions::-webkit-scrollbar { display: none; }
  .tr-switch { display: flex; flex: 0 0 auto; border: 1px solid var(--ink); border-radius: 40px; overflow: hidden; margin: 8px 0 10px; }
  .tr-switch button { background: none; border: 0; padding: 9px 13px; font: 800 9.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
  .tr-switch button.on { background: var(--ink); color: #fff; }
  .tr-split { display: block; }
  .tr-mapcol { display: none; position: sticky; border-left: 0; }
  .tr-split.show-map .tr-journal { display: none; }
  .tr-split.show-map .tr-mapcol { display: block; height: calc(100vh - var(--nav-h) - var(--bar-h)); height: calc(100dvh - var(--nav-h) - var(--bar-h)); }
  .tr-journal { padding: 34px 16px 110px; }
  .tr-stop, .tr-stop.has-photo { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
  .tr-fig--stop { grid-column: 2; grid-row: 1; aspect-ratio: 16 / 9; margin-bottom: 4px; }
  .tr-fig--stop .tr-fig-i { font-size: 64px; }
  .tr-stop.has-photo .tr-rail { grid-row: 1 / span 2; }
  .tr-stop.has-photo .tr-stop-main { grid-column: 2; grid-row: 2; }
  .tr-rail .tr-num { width: 28px; height: 28px; font-size: 12px; }
  .tr-ctl { opacity: 1; }
  .tr-ctl button span { display: none; }
  .tr-edit, .tr-e-res { grid-template-columns: minmax(0, 1fr); }
  .tr-ov-stop { grid-template-columns: 28px 44px minmax(0, 1fr); gap: 12px; }
  .tr-fig--thumb { width: 44px; height: 44px; }
  .tr-ov-meta { grid-column: 3; justify-content: flex-start; text-align: left; }
  .tr-drawer { width: 100vw; }
  .tr-dr-head, .tr-dr-body, .tr-dr-foot { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 420px) {
  .tr-title { font-size: 40px; }
  .tr-card a { grid-template-columns: 84px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tr-hero-img { animation: none; transform: none; }
  .tr-drawer, .tr-card a, .tr-stop { transition: none; }
}
.tr-conflict { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--red); }

/* Preview sandbox bar (gg-sandbox.js) must not cover the drawer footer (Add / Apply) while a drawer is open. */
body.tr-noscroll #gg-sbx { opacity: 0; visibility: hidden; pointer-events: none; }

/* ── QA polish (G Maps 2.0 integration) ──
   · drawer + scrim sit above the site's mobile menu button (main.js .mnav-btn, z 6000), which covered the drawer's ×;
     still under the loader (9000) and the custom cursor (9997+)
   · tap targets ≥ 40px on phones; the actions row fades at the edge so it reads as scrollable */
.tr-drawer:focus { outline: none; }
.tr-dr-x:focus-visible, .tr-tab:focus-visible, .tr-chip:focus-visible, .tr-act:focus-visible, .tr-drawer input:focus-visible, .tr-drawer select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 900px) {
  .tr-act, .tr-chip, .tr-switch button, .tr-ctl button, .tr-ctl select, .tr-day-add .tr-link, .tr-e-actions .tr-link, .tr-dr-foot select, .tr-tabs button { min-height: 40px; }
  .tr-ctl { gap: 6px; }
  .tr-actions { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 24px; }
  .tr-dr-x { width: 44px; height: 44px; }
}

/* Safari/iOS ignore min-height on natively drawn selects; draw them ourselves so tap targets stay ≥ 40px */
.tr-ctl select, .tr-dr-foot select, .tr-edit select, select.tr-in {
  -webkit-appearance: none; appearance: none; border-radius: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%230a0a0a' fill-opacity='.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 24px;
}
.tr-edit select, .tr-dr-foot select { border-radius: 0; background-position: right 2px center; }

/* ═══════════ Stage 2: Plan My Trip, chapters, edit mode, AI transparency, Travel DNA compare, before → after ═══════════ */
.tr-btn--ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tr-btn--ghost:hover { background: var(--ink); color: #fff; }
.tr-btn--big { padding: 21px 40px; font-size: 12px; }

/* Plan My Trip */
.tr-hero--plan { min-height: 52vh; }
.tr-where { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.tr-where-o { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); cursor: pointer; transition: background .2s; min-height: 44px; }
.tr-where-o input { position: absolute; opacity: 0; }
.tr-where-n { font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.05; }
.tr-where-c { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); }
.tr-where-o:hover { background: rgba(255,255,255,.5); }
.tr-where-o:has(input:checked), .tr-where-o.on { background: var(--ink); color: #fff; }
.tr-where-o:has(input:checked) .tr-where-c, .tr-where-o.on .tr-where-c { color: rgba(255,255,255,.72); }
.tr-where-o:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: -2px; }
.tr-where-o a, .tr-empty-s a { color: var(--red); text-decoration: underline; }
.tr-seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 40px; overflow: hidden; align-self: flex-start; }
.tr-seg label { position: relative; cursor: pointer; }
.tr-seg input { position: absolute; opacity: 0; }
.tr-seg span { display: block; padding: 13px 20px; font: 800 10px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.tr-seg input:checked + span { background: var(--ink); color: #fff; }
.tr-seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: -4px; }
.tr-when-days { display: flex; align-items: center; gap: 18px; }
.tr-when-days[hidden], .tr-dates[hidden] { display: none; }
.tr-step { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(10,10,10,.3); background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.tr-step:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.tr-when-days output { font-family: var(--serif); font-style: italic; font-size: 34px; min-width: 4.6em; text-align: center; }
.tr-stay-more { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.tr-stay-more .tr-link { color: var(--red); }
.tr-plan-go { padding-top: 34px; max-width: 760px; }
.tr-plan-sum { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 24px); line-height: 1.45; margin-bottom: 10px; }
.tr-plan-sum b { font-family: var(--font); font-style: normal; font-weight: 800; }
.tr-plan-sum a { color: var(--red); text-decoration: underline; }
.tr-plan-go .tr-form-actions { padding-top: 18px; }
.tr-plan-go > .tr-fine { margin-top: 18px; max-width: 60ch; }
/* Plan My Trip: more than one city ("Add another city") */
.tr-also { margin-top: 14px; }
.tr-also:empty { display: none; }
.tr-also .tr-also-add { color: var(--red); min-height: 40px; }
.tr-also-list { border: 0; padding: 0; margin: 0; min-width: 0; }
.tr-also-h { padding: 0 0 12px; font: 800 10px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.tr-also-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.tr-also-o { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 16px 46px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); cursor: pointer; min-height: 44px; transition: background .2s; }
.tr-also-o input { position: absolute; left: 18px; top: 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.tr-also-n { font-weight: 800; font-size: 17px; letter-spacing: -.01em; line-height: 1.1; }
.tr-also-c { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); }
.tr-also-o:hover { background: rgba(255,255,255,.5); }
.tr-also-o.on, .tr-also-o:has(input:checked) { background: rgba(10,10,10,.06); }
.tr-also-o:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: -2px; }
.tr-also .tr-fine { margin-top: 10px; max-width: 60ch; }

/* starting point picker */
.tr-start { display: flex; flex-direction: column; gap: 12px; }
.tr-start-now { font-size: 16px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; min-height: 24px; }
.tr-start-mk { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: #F0EBE1; color: #0a0a0a; border: 2px solid #0a0a0a; font-size: 13px; }
.tr-start-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-start-opts [hidden] { display: none; }

/* bar: reading vs edit */
.tr-act--back { display: none; }
.tr-act--edit.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tr.is-edit .tr-bar { box-shadow: inset 0 -2px 0 var(--red); }
.tr-switch button[aria-pressed] { min-width: 64px; }

/* journal: chapters */
.tr-day-n { letter-spacing: -.005em; }
.tr-day-h em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--day, var(--red)); }
.tr-day-date { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 20px; color: rgba(10,10,10,.7); }
.tr-day-tools { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; }
.tr-day-tools .tr-link { color: var(--red); }
.tr-day-tools .tr-link[aria-pressed="true"] { color: var(--ink); border-bottom-color: currentColor; }
.tr-slot-h { text-transform: none; }
.tr-why { margin-top: 10px; font-size: 13px; line-height: 1.5; color: rgba(10,10,10,.72); max-width: 56ch; }
.tr-why span { font-size: 8.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--day, var(--red)); margin-right: 8px; }
.tr-read { margin-top: 12px; }
.tr-read a { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); padding: 8px 0; display: inline-block; }
.tr-note-sub { margin-top: 4px; font-size: 14px; line-height: 1.55; color: rgba(10,10,10,.62); max-width: 56ch; }
.tr-daynav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 54px; border-top: 1px solid var(--ink); }
.tr-daynav button { background: none; border: 0; text-align: left; padding: 22px 16px 22px 0; cursor: pointer; font: 800 17px/1.25 var(--font); letter-spacing: -.01em; color: var(--ink); display: flex; flex-direction: column; gap: 6px; min-height: 44px; }
.tr-daynav button.nx { text-align: right; align-items: flex-end; padding: 22px 0 22px 16px; border-left: 1px solid var(--hair); }
.tr-daynav small { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.tr-daynav button:hover { color: var(--red); }
.tr-jfoot { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 60px; padding-top: 18px; border-top: 1px solid var(--hair); }
.tr-jfoot a { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(10,10,10,.62); padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.tr-jfoot a:hover { color: var(--red); }

/* overview: contents */
.tr-ov-date { display: flex; flex-direction: column; gap: 4px; }
.tr-ov-date b { font-weight: 800; }
.tr-ov-date b em { color: var(--day, var(--red)); }
.tr-ov-date i { font-family: var(--serif); font-weight: 400; font-size: 16px; color: rgba(10,10,10,.6); letter-spacing: 0; }
.tr-ov-slot { list-style: none; font-family: var(--serif); font-style: italic; font-size: 14px; color: rgba(10,10,10,.55); padding: 14px 0 4px; }
.tr-un { list-style: none; margin-left: 168px; }
.tr-un li { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid rgba(10,10,10,.06); cursor: pointer; }
.tr-un li b { font-weight: 700; font-size: 16px; }
.tr-un li span { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); }
.tr-un li.is-sel { background: rgba(255,255,255,.55); }

/* How GGuide planned it */
.tr-how { margin: 0 0 46px; padding: 24px 26px 22px; background: var(--paper-2); border: 1px solid var(--hair); position: relative; }
.tr-how-k { font-size: 9px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.tr-how-big { display: flex; align-items: baseline; gap: 16px; font-weight: 800; letter-spacing: -.03em; font-size: clamp(34px, 4vw, 54px); line-height: 1; }
.tr-how-big span { color: rgba(10,10,10,.38); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(182,70,50,.6); }
.tr-how-big i { font-style: normal; font-weight: 400; color: var(--red); font-size: .6em; }
.tr-how-l { margin-top: 10px; font-size: 13px; line-height: 1.5; color: rgba(10,10,10,.7); max-width: 60ch; }
.tr-how-l em { color: var(--ink); }
.tr-how-m { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 6px; font-size: 12px; color: var(--muted); }
.tr-how-m b { color: var(--ink); font-weight: 800; }
.tr-how .tr-link { color: var(--red); margin-top: 6px; min-height: 40px; }

/* drawer: wide mode (compare, before → after) */
.tr-drawer.is-wide { width: min(1120px, 100vw); }
.tr-dr-back { margin-bottom: 14px; color: var(--red); }
.tr-modes { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 18px; border: 1px solid var(--hair); }
.tr-modes legend { font-size: 9px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 0 0 8px; }
.tr-mode-o { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; cursor: pointer; border-left: 1px solid var(--hair); }
.tr-mode-o:first-of-type { border-left: 0; }
.tr-mode-o input { position: absolute; opacity: 0; }
.tr-mode-o b { font-weight: 800; font-size: 15px; }
.tr-mode-o span { font-family: var(--serif); font-style: italic; font-size: 13px; line-height: 1.4; color: var(--muted); }
.tr-mode-o:has(input:checked) { background: var(--ink); color: #fff; }
.tr-mode-o:has(input:checked) span { color: rgba(255,255,255,.72); }
.tr-mode-o:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: -2px; }
.tr-demo { margin-bottom: 18px; padding: 12px 14px; border: 1px dashed rgba(182,70,50,.45); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.tr-demo-h { flex-basis: 100%; font-size: 8.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.tr-demo-row { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tr-demo select { font: 600 13px var(--font); border: 0; border-bottom: 1px solid rgba(10,10,10,.3); background: transparent; padding: 8px 22px 8px 0; min-height: 40px; letter-spacing: 0; text-transform: none; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%230a0a0a' fill-opacity='.55'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; }
.tr-demo .tr-link { color: var(--red); }
.tr-dna .tr-link { color: var(--red); margin-left: 6px; }
.tr-send { margin: 4px 0 6px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.tr-send[hidden] { display: none; }
.tr-send summary { cursor: pointer; padding: 14px 0; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tr-send summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
#trSendBody { padding: 0 0 16px; font-size: 13px; line-height: 1.55; }
.tr-send-l { list-style: none; margin: 0 0 10px; }
.tr-send-l li { padding: 4px 0 4px 14px; position: relative; }
.tr-send-l li::before { content: '—'; position: absolute; left: 0; color: var(--red); }
.tr-send-d { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0 0 10px; }
.tr-send-d dt { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.tr-send-cost { font-weight: 700; margin: 8px 0; }
.tr-send-raw summary { padding: 8px 0; }
.tr-send-raw pre { max-height: 260px; overflow: auto; background: #fff; border: 1px solid var(--hair); padding: 12px; font: 500 11px/1.45 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.tr-fallback { margin: 0 0 14px; padding: 12px 14px; background: #0a0a0a; color: #F0EBE1; font-size: 13px; line-height: 1.5; }
.tr-ev-wrap { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; }
.tr-ev-row { font-size: 12px; }
.tr-ev-f { font-size: 8.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tr-ev { font-family: var(--serif); font-style: italic; font-size: 13px; color: rgba(10,10,10,.75); quotes: none; }   /* the planner's evidence already quotes the matched field */
.tr-why-s { color: var(--red) !important; }

/* compare travellers */
.tr-cmp-tabs { display: none; }
.tr-cmp { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 0 28px; }
.tr-cmp-note { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.tr-prop-km { margin: 4px 0 14px; font-size: 12.5px; color: rgba(10,10,10,.72); }
.tr-prop-km i { font-style: normal; color: var(--muted); }
.tr-un--prop { margin-left: 0; }
.tr-cmp-col header { padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.tr-cmp-col header .tr-eyebrow { margin-bottom: 6px; }
.tr-cmp-col h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; line-height: 1.15; }
.tr-cmp-col ol { list-style: none; }
.tr-cmp-col li { display: grid; grid-template-columns: 18px 56px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid rgba(10,10,10,.07); align-items: start; }
.tr-cmp-n { font-family: var(--serif); font-style: italic; color: var(--red); font-size: 18px; }
.tr-fig--cmp { width: 56px; height: 70px; aspect-ratio: 4 / 5; }
.tr-fig--cmp.tr-fig--type { padding: 6px; }
.tr-fig--cmp .tr-fig-k { font-size: 6.5px; letter-spacing: .14em; }
.tr-fig--cmp .tr-fig-i { font-size: 34px; }
.tr-fig--cmp.tr-fig--type::after { inset: 3px; }
.tr-cmp-k { font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tr-cmp-name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; display: block; }
.tr-cmp-why { font-size: 13px; line-height: 1.45; margin-top: 4px; color: rgba(10,10,10,.75); }
.tr-cmp-foot { margin-top: 18px; }

/* before → after */
.tr-ba-tabs { display: none; }
.tr-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tr-ba-col { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tr-ba-col figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.tr-ba-t { font-size: 13px; color: rgba(10,10,10,.65); }
.tr-ba-col figcaption b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; color: var(--ink); margin-right: 8px; }
.tr-ba-m { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tr-ba-map { height: min(56vh, 520px); background: #e8e4dd; border: 1px solid var(--hair); }
.tr-how-m--panel { margin-top: 18px; font-size: 13px; }

/* map: the starting point is the cream star; the stay the black one */
.tr-mk-from .gg-mk-start { background: #F0EBE1; color: #0a0a0a; border-color: #0a0a0a; }
.tr-map-legend i.star--from { color: var(--ink); }

/* focus + motion */
.tr-where-o:focus-within, .tr-step:focus-visible, .tr-daynav button:focus-visible, .tr-jfoot a:focus-visible, .tr-crumbs a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

@media (max-width: 1180px) {
  .tr-un { margin-left: 0; }
}
@media (max-width: 900px) {
  .tr-crumbs { margin-bottom: 18px; }
  .tr-act--back { display: inline-flex; align-items: center; }
  /* the bar: day tabs (thumb-sized) on the first row; Journal ⇄ Map and the actions on the second */
  .tr-bar-in { flex-wrap: wrap; gap: 0 10px; }
  .tr-days { flex-basis: 100%; order: 1; min-height: 52px; }
  .tr-tab { min-height: 48px; padding: 0 14px; font-size: 11.5px; }
  .tr-switch { order: 2; margin: 6px 0 10px; }
  .tr-switch button { min-height: 44px; padding: 0 16px; font-size: 10px; }
  .tr-actions { order: 3; padding: 6px 0 10px; }
  .tr-where { grid-template-columns: 1fr 1fr; }
  .tr-where-n { font-size: 19px; }
  .tr-modes { grid-template-columns: 1fr; }
  .tr-mode-o { border-left: 0; border-top: 1px solid var(--hair); }
  .tr-mode-o:first-of-type { border-top: 0; }
  .tr-un { margin-left: 0; }
  .tr-how { padding: 20px 18px; margin-bottom: 34px; }
  .tr-day-tools .tr-link, .tr-how .tr-link, .tr-stay-more .tr-link, .tr-demo .tr-link, .tr-dna .tr-link, .tr-dr-back { min-height: 40px; display: inline-flex; align-items: center; }
  .tr-daynav button { font-size: 15px; padding: 18px 10px 18px 0; }
  .tr-daynav button.nx { padding: 18px 0 18px 10px; }
  .tr-cmp-tabs, .tr-ba-tabs { display: flex; border: 1px solid var(--ink); border-radius: 40px; overflow: hidden; margin-bottom: 18px; }
  .tr-cmp-tabs button, .tr-ba-tabs button { flex: 1 1 0; min-height: 44px; background: none; border: 0; font: 800 10px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer; padding: 0 10px; }
  .tr-cmp-tabs button[aria-selected="true"], .tr-ba-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
  .tr-cmp, .tr-ba { grid-template-columns: minmax(0, 1fr); }
  .tr-cmp-col, .tr-ba-col { display: none; }
  .tr-cmp-col.on, .tr-ba-col.on { display: flex; flex-direction: column; }
  .tr-ba-map { height: 52vh; }
  .tr-seg span { padding: 15px 16px; }
}
@media (max-width: 420px) {
  .tr-where { grid-template-columns: minmax(0, 1fr); }
  .tr-how-big { font-size: 32px; }
}

/* ═══════════ Stage 3 (U): the result as an editorial chapter · mobile first · thumb-reach dock ═══════════
   One idea per screen: a hero that says where and how long, a contents page, then one chapter per day.
   Tools are secondary (outlined, small); explanations stay folded until asked for. */
.tr-origin { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.7vw, 22px); color: rgba(255,255,255,.84); }
.tr-origin b { font-family: var(--font); font-style: normal; font-weight: 800; letter-spacing: -.01em; }
.tr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tr-quiet { color: rgba(10,10,10,.42); }

/* bar: contents tabs read like a table of contents; tools quiet */
.tr-tab i { width: auto; height: auto; border-radius: 0; background: none; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--day, var(--ink)); line-height: 1; }
.tr-tab--un small { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(10,10,10,.08); color: var(--ink); }
.tr-dock { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.tr-act--plan, .tr-act--plan:disabled { background: none; border-color: rgba(10,10,10,.2); color: var(--ink); }
.tr-act--plan:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.tr-act[hidden] { display: none; }

/* contents (overview) */
.tr-toc-k { font-size: 9px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.tr-toc { border-bottom: 1px solid var(--ink); }
.tr-toc-day { border-top: 1px solid var(--ink); padding: 0 0 24px; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; }
.tr-toc-day + .tr-toc-day { border-top-color: rgba(10,10,10,.22); }
.tr-toc-head { grid-column: 1 / -1; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; width: 100%; background: none; border: 0; padding: 24px 0 14px; text-align: left; cursor: pointer; color: var(--ink); font-family: var(--font); min-height: 44px; }
.tr-toc-rn { font-family: var(--serif); font-style: italic; font-size: 36px; line-height: .9; color: var(--day, var(--red)); }
.tr-toc-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tr-toc-n { font-family: var(--serif); font-style: italic; font-size: 16px; color: rgba(10,10,10,.6); }
.tr-toc-h { font-weight: 800; font-size: clamp(22px, 2.3vw, 31px); letter-spacing: -.028em; line-height: 1.06; transition: color .2s; }
.tr-toc-h em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--day, var(--red)); }
.tr-toc-head:hover .tr-toc-h { color: var(--day, var(--red)); }
.tr-toc-c { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tr-toc-stops { list-style: none; margin-left: 80px; grid-column: 1; }
.tr-toc-ph { grid-column: 2; grid-row: 2 / span 2; display: grid; grid-template-columns: repeat(3, 70px); gap: 6px; align-self: start; padding-top: 6px; }
.tr-toc-ph img { width: 70px; height: 88px; object-fit: cover; display: block; background: #1a1917; }
.tr-toc-stops .tr-ov-stop, .tr-toc-note { display: grid; grid-template-columns: 88px 26px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 8px 8px 0; border-bottom: 1px solid rgba(10,10,10,.06); min-height: 44px; }
.tr-toc-stops .tr-ov-stop:hover, .tr-toc-stops .tr-ov-stop.is-sel { background: rgba(255,255,255,.6); padding-left: 0; box-shadow: inset 3px 0 0 var(--day, var(--red)); }
.tr-toc-note em { grid-column: 3; font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(10,10,10,.62); }
.tr-toc-slot { font-family: var(--serif); font-style: italic; font-size: 14px; color: rgba(10,10,10,.55); }
.tr-toc-name { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.tr-toc-empty { margin-left: 80px; font-family: var(--serif); font-style: italic; color: var(--muted); }

/* places that didn't fit — kept, each with its honest reason */
.tr-ov-short { border-top-style: solid; }
.tr-un2-lede { margin: 0 0 6px 80px; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; color: rgba(10,10,10,.62); max-width: 52ch; grid-column: 1 / -1; }
.tr-day--short .tr-un2-lede { margin-left: 0; margin-top: 12px; }
.tr-un2 { list-style: none; margin-left: 80px; grid-column: 1 / -1; }
.tr-un2-i { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 18px 8px 18px 0; border-bottom: 1px solid rgba(10,10,10,.08); cursor: pointer; transition: background .2s; }
.tr-un2-i.is-sel { background: rgba(255,255,255,.6); }
.tr-fig.tr-fig--un { width: 64px; height: 80px; aspect-ratio: auto; }
.tr-un2-k { font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); min-height: 1em; }
.tr-un2-n { display: block; margin-top: 4px; font-weight: 800; font-size: 19px; letter-spacing: -.015em; line-height: 1.15; }
.tr-un2-why { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.5; color: rgba(10,10,10,.72); max-width: 56ch; }
.tr-un2-acts { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; }
.tr-addday { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tr-addday-b, .tr-addday-o button { font: 800 9.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: none; border: 1px solid rgba(10,10,10,.28); border-radius: 40px; padding: 0 14px; min-height: 40px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.tr-addday-b:hover, .tr-addday-b[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tr-addday-o { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tr-addday-o[hidden] { display: none; }
.tr-addday-o button i { width: 8px; height: 8px; border-radius: 50%; background: var(--day); }
.tr-addday-o button:hover { border-color: var(--day); color: var(--day); }
.tr-q { background: none; border: 0; padding: 0; min-height: 40px; cursor: pointer; font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(10,10,10,.62); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
.tr-q:hover, .tr-q[aria-expanded="true"] { color: var(--ink); }
.tr-assist { margin-top: 8px; padding: 12px 16px; background: var(--paper-2); border-left: 2px solid var(--day, var(--ink)); font-size: 14px; line-height: 1.55; color: rgba(10,10,10,.76); max-width: 58ch; }
.tr-assist[hidden] { display: none; }
.tr-assist ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tr-assist li::before { content: '— '; color: var(--day, var(--red)); }
.tr-assist-h { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.tr-assist-l { margin-top: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* How GGuide planned it: one sentence, two small maps */
.tr-how { margin: 56px 0 0; padding: 30px 0 0; background: none; border: 0; border-top: 1px solid var(--ink); }
.tr-how-s { font-family: var(--serif); font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; max-width: 42ch; color: rgba(10,10,10,.84); }
.tr-how-s b { font-family: var(--font); font-weight: 800; font-size: .9em; letter-spacing: -.01em; }
.tr-how-s em { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.tr-how-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; max-width: 620px; }
.tr-how-fig { margin: 0; }
.tr-how-map { aspect-ratio: 1 / 1; width: 100%; background: #e8e4dd; z-index: 0; }
.tr-how-fig figcaption { margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.tr-how-fig figcaption b { display: block; font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }
.tr-dotmk { display: flex; width: 18px; height: 18px; border-radius: 50%; background: var(--mk, #B64632); color: #fff; font: 800 8.5px/1 var(--font); align-items: center; justify-content: center; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.tr-dotmk--stay { background: #0a0a0a; color: #F0EBE1; font-size: 9px; }

/* refine my plan */
.tr-refine { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--hair); max-width: 640px; }
.tr-refine-l { display: block; font-family: var(--serif); font-style: italic; font-size: 18px; margin-bottom: 8px; }
.tr-refine-q { resize: vertical; min-height: 66px; font-size: 16px; border: 1px solid rgba(10,10,10,.25); padding: 12px 14px; background: rgba(255,255,255,.4); }
.tr-refine-go { display: flex; gap: 12px 22px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.tr-refine-out { margin-top: 12px; }
.tr-refine + .tr-jfoot, .tr-how + .tr-jfoot { margin-top: 48px; }
.tr-understood p { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.tr-understood span { font-size: 9px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tr-understood b, .tr-understood i { font: 600 12px/1 var(--font); font-style: normal; padding: 7px 11px; border-radius: 30px; border: 1px solid var(--ink); }
.tr-understood i { border-style: dashed; border-color: rgba(10,10,10,.35); color: rgba(10,10,10,.6); }
.tr-drawer .tr-understood { margin-bottom: 14px; }

/* a day: the chapter */
.tr-day-rn { font-size: .66em; margin-right: 14px; opacity: .75; }
.tr-day-from { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(10,10,10,.7); }
.tr-day-from .tr-start-mk { width: 24px; height: 24px; font-size: 11px; background: #0a0a0a; color: #F0EBE1; border: 0; flex: 0 0 auto; }
.tr-day-tools { align-items: center; }
.tr-day-tools .tr-link { color: rgba(10,10,10,.62); }
.tr-day-tools .tr-link:hover { color: var(--ink); border-bottom-color: currentColor; }
.tr-assist--day { margin-top: 14px; }
.tr-stop-own { margin-top: 8px; font-size: 13px; line-height: 1.5; color: rgba(10,10,10,.58); max-width: 54ch; }
.tr-stop-facts { font-size: 11px; font-weight: 500; letter-spacing: .02em; color: rgba(10,10,10,.45); }
.tr-links { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; margin-top: 8px; }
.tr-rd { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); min-height: 40px; display: inline-flex; align-items: center; gap: 4px; }
.tr-stop .tr-un2-acts { margin-top: 12px; }

/* typographic plate: when GGuide has no licensed photograph — never stock, never invented imagery */
.tr-stop.has-plate { grid-template-columns: 44px minmax(0, 1fr) 112px; }
.tr-fig.tr-fig--plate { background: var(--paper-2); color: var(--cat, var(--ink)); box-shadow: inset 0 0 0 1px rgba(10,10,10,.12); }
.tr-fig.tr-fig--plate::after { inset: 5px; border-color: currentColor; opacity: .35; }
.tr-fig--plate .tr-fig-k { color: rgba(10,10,10,.55); font-size: 7.5px; }
.tr-fig--plate .tr-fig-c { color: rgba(10,10,10,.5); font-size: 12px; }
.tr-fig--plate .tr-fig-i { font-size: 52px; }
.tr-fig--stop.tr-fig--plate { aspect-ratio: 4 / 5; padding: 11px 11px 9px; }
.tr-fig--un.tr-fig--plate { padding: 0; align-items: center; justify-content: center; }
.tr-fig--un.tr-fig--plate .tr-fig-k, .tr-fig--un.tr-fig--plate .tr-fig-c { display: none; }
.tr-fig--un.tr-fig--plate .tr-fig-i { font-size: 32px; align-self: center; }

/* replace: alternatives and the preview */
.tr-alt-l { border: 0; display: flex; flex-direction: column; }
.tr-alt-o { cursor: pointer; }
.tr-alt-o:has(input:checked) { background: rgba(255,255,255,.7); box-shadow: inset 3px 0 0 var(--red); }
.tr-alt-prev:not(:empty) { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink); }
.tr-alt-sum { font-size: 18px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin-bottom: 8px; }
.tr-alt-sum span { width: 100%; font-size: 9px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tr-alt-sum s { color: rgba(10,10,10,.45); font-weight: 600; }
.tr-alt-sum i { font-style: normal; color: var(--red); }

/* ── tablet & phone: the reading column first; contents on top, tools in a dock at the bottom (thumb reach) ── */
@media (max-width: 1180px) {
  .tr-toc-stops, .tr-toc-empty, .tr-un2, .tr-un2-lede { margin-left: 0; }
  .tr-toc-head { grid-template-columns: 48px minmax(0, 1fr) auto; }
}
@media (max-width: 900px) {
  .tr { --bar-h: 52px; --dock-h: 66px; }
  .tr-bar-in { flex-wrap: nowrap; padding: 0 4px; gap: 0; }
  .tr-days { flex: 1 1 auto; flex-basis: auto; min-height: 52px; }
  .tr-tab { padding: 0 13px; min-height: 52px; }
  .tr-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 450; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(240,235,225,.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--hair); box-shadow: 0 -8px 24px rgba(0,0,0,.06); }
  .tr-switch { margin: 0; }
  .tr-switch button[aria-pressed] { min-width: 66px; }
  .tr-actions { flex: 1 1 0; justify-content: flex-end; padding: 0; -webkit-mask-image: none; mask-image: none; }
  /* editing on a phone: every tool in reach, nothing behind a fade — two rows: Add places · Trip details · Done on top,
     the view switch, Undo and Re-plan below (VISUAL-QA O9) */
  .tr.is-edit .tr-dock { flex-wrap: wrap; row-gap: 4px; }
  .tr.is-edit .tr-dock::before { content: ''; flex: 0 0 100%; height: 0; order: 2; }
  .tr.is-edit .tr-actions { display: contents; }
  .tr.is-edit .tr-act { order: 1; flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
  .tr.is-edit .tr-act--undo, .tr.is-edit .tr-act--plan { order: 3; flex: 0 1 auto; }
  .tr.is-edit .tr-switch { order: 3; }
  .tr.is-edit .tr-journal { padding-bottom: 120px; }
  .tr-act, .tr-switch button { min-height: 44px; padding-left: 13px; padding-right: 13px; }
  body.tr-trip-page { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
  body.tr-trip-page .tr-toast { bottom: calc(var(--dock-h) + 18px + env(safe-area-inset-bottom)); }
  body.tr-trip-page #gg-sbx { bottom: calc(var(--dock-h, 66px) + 10px + env(safe-area-inset-bottom)) !important; }   /* --dock-h lives on .tr, not on body: the fallback keeps the sandbox bar fixed */
  body.tr-trip-page #gg-sbx.collapsed { right: auto !important; }
  .tr-split.show-map .tr-mapcol { height: calc(100vh - var(--nav-h) - var(--bar-h) - var(--dock-h)); height: calc(100dvh - var(--nav-h) - var(--bar-h) - var(--dock-h) - env(safe-area-inset-bottom)); }
  .tr-journal { padding-bottom: 60px; }
  .tr-hero--trip { min-height: 64vh; }
  .tr-facts { gap: 12px 24px; margin-top: 24px; padding-top: 16px; }

  .tr-toc-day { grid-template-columns: minmax(0, 1fr); }
  .tr-toc-head { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0 12px; }
  .tr-toc-rn { font-size: 28px; }
  .tr-toc-c { grid-column: 2; }
  .tr-toc-ph { grid-column: 1; grid-row: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 10px; padding: 0; }
  .tr-toc-ph img { width: 100%; height: 92px; }
  .tr-toc-stops .tr-ov-stop, .tr-toc-note { grid-template-columns: 72px 26px minmax(0, 1fr); gap: 10px; }
  .tr-un2-i { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .tr-fig.tr-fig--un { width: 56px; height: 70px; }
  .tr-addday-b, .tr-addday-o button, .tr-q, .tr-rd, .tr-day-tools .tr-link, .tr-daynav button { min-height: 44px; }
  .tr-day-tools { gap: 2px 20px; }

  .tr-stop.has-plate { grid-template-columns: 36px minmax(0, 1fr) 60px; }
  .tr-stop.has-plate .tr-fig--stop { grid-column: 3; grid-row: 1; width: 60px; aspect-ratio: 1 / 1; margin: 0; padding: 0; align-items: center; justify-content: center; }
  .tr-stop.has-plate .tr-fig--stop .tr-fig-k, .tr-stop.has-plate .tr-fig--stop .tr-fig-c { display: none; }
  .tr-stop.has-plate .tr-fig--stop .tr-fig-i { font-size: 30px; align-self: center; }
  .tr-stop.has-photo .tr-fig--stop { aspect-ratio: 3 / 2; }
  .tr-how-maps { gap: 10px; }
  .tr-how { margin-top: 44px; }
}
@media (min-width: 640px) and (max-width: 900px) {
  /* tablet (768): a wider reading column, the photo beside the text again */
  .tr-journal { padding-left: 32px; padding-right: 32px; }
  .tr-stop.has-photo { grid-template-columns: 40px minmax(0, 1fr) minmax(160px, 34%); }
  .tr-stop.has-photo .tr-fig--stop { grid-column: 3; grid-row: 1; aspect-ratio: 4 / 5; }
  .tr-stop.has-photo .tr-rail { grid-row: 1; }
  .tr-stop.has-photo .tr-stop-main { grid-column: 2; grid-row: 1; }
  .tr-toc-head { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .tr-toc-c { grid-column: auto; }
}
@media (max-width: 420px) {
  .tr-act, .tr-switch button { padding-left: 11px; padding-right: 11px; letter-spacing: .1em; }
  .tr-switch button[aria-pressed] { min-width: 60px; }
}

/* Travel DNA, itinerary level (stage 3): personalised only where the planner said so, with its evidence */
.tr-pers { margin-top: 10px; font-size: 13px; line-height: 1.5; color: rgba(10,10,10,.72); max-width: 56ch; }
.tr-pers span { font-size: 8.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #7E6FA3; margin-right: 8px; }
.tr-pers q { font-family: var(--serif); font-style: italic; color: rgba(10,10,10,.6); }
.tr-tag--pers { border-color: #7E6FA3; color: #7E6FA3; }
.tr-dna-fx { margin: 6px 0 14px; padding: 12px 14px; background: var(--paper-2); border-left: 2px solid #7E6FA3; font-size: 13px; line-height: 1.5; }
.tr-dna-fx ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.tr-dna-fx q { font-family: var(--serif); font-style: italic; color: rgba(10,10,10,.6); }
.tr-cmp-same { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 16px; color: rgba(10,10,10,.6); }
.tr-cmp-lines { list-style: none; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; color: rgba(10,10,10,.78); }
.tr-cmp-lines li::before { content: '— '; color: #7E6FA3; }
.tr-cmp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; padding: 10px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.tr-cmp-stats dt { font-size: 8.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tr-cmp-stats dd { margin: 4px 0 0; font-weight: 800; font-size: 17px; }
.tr-cmp-days { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tr-cmp-dh { font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--day, var(--ink)); }
.tr-cmp-st { margin-top: 3px; font-size: 13.5px; line-height: 1.5; }
.tr-cmp-st i { font-style: normal; color: rgba(10,10,10,.3); }
.tr-cmp-st .is-pers, .tr-cmp-key.is-pers { font-weight: 800; color: #5e4f86; }
.tr-cmp-st .is-new { text-decoration: underline; text-decoration-color: #7E6FA3; text-underline-offset: 3px; }
.tr-cmp-out { margin-top: 10px; font-size: 12.5px; color: rgba(10,10,10,.62); }
.tr-cmp-out span { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.tr-how-map .leaflet-control-attribution { font-size: 7.5px; line-height: 1.3; padding: 0 4px; background: rgba(255,255,255,.7); }
.tr-how-map .leaflet-control-attribution a { color: inherit; }
@media (max-width: 900px) {
  /* a fixed dock must not sit inside a filtered ancestor (backdrop-filter makes it the containing block) */
  .tr-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
}
.tr-understood-n { list-style: none; margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ── Visual QA (1 Nov, see docs/gmaps2/VISUAL-QA.md) ───────────────────────────────────────────────────────────── */
/* headlines and short decks never strand one word on the last line; reading copy avoids one-word last lines */
.tr-title, .tr-day-h, .tr-toc-name, .tr-dr-h, .tr-cmp-col h4, .tr-dek, .tr-dateline, .tr-origin { text-wrap: balance; }
.tr-how-s, .tr-why, .tr-un2-why, .tr-dr-dek, .tr-fine, .tr-cmp-why, .tr-cmp-lines li, .tr-why-s, .tr-plan-sum, .tr-un2-lede { text-wrap: pretty; }
/* the tagline heroes read as two lines: "Save the places." / "We'll plan the days." */
.tr-hero--list .tr-title em, .tr-hero--plan .tr-title em { display: block; margin-top: .04em; }
.tr-hero--list .tr-title, .tr-hero--plan .tr-title { max-width: none; }
/* Compare travellers: the day lists and the difference lines are plain blocks, not the three-column stop grid
   (they inherited `.tr-cmp-col li`, which squeezed every name into an 18px column: one word a line) */
.tr-cmp-col .tr-cmp-lines li { display: block; padding: 0; border-bottom: 0; }
.tr-cmp-col .tr-cmp-days li { display: block; padding: 0 0 10px; }
.tr-cmp-col .tr-cmp-days li:last-child { border-bottom: 0; }
/* evidence said in words: a small label, then the value as GGuide wrote it */
.tr-ev-row .tr-ev { quotes: '“' '”' '‘' '’'; }
@media (max-width: 900px) {
  /* the scrolling chapter strip fades at its edges instead of cutting a word in half */
  .tr-days { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 24px), transparent); }
}
/* Compare travellers: a label that wraps to two lines no longer pushes its figure below its neighbours' */
.tr-cmp-stats > div { display: flex; flex-direction: column; justify-content: space-between; }
/* the planner's start offer (no hotel set): one quiet line in the preview, never applied without a tap */
.tr-start-offer { margin: 4px 0 14px; padding: 10px 0 10px 14px; border-left: 2px solid var(--red); font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.45; color: rgba(10,10,10,.78); }
.tr-start-offer b { font-family: var(--font); font-style: normal; font-weight: 800; }
.tr-start-offer .tr-link { margin-left: 6px; min-height: 44px; }

/* ── one secondary-action style in the journal (VISUAL-QA O3): "Why this day", "Replace", "Why not scheduled?",
   "Re-optimise this day", "Edit day" and "Read on GGuide ↗" are the same small tracked capitals in muted ink;
   hover or open = ink, underlined. Primary actions keep their buttons. ── */
.tr-q, .tr-rd, .tr-day-tools .tr-link { font: 700 10px/1.2 var(--font); font-style: normal; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(10,10,10,.62); background: none; border: 0; border-bottom: 1px solid transparent; padding: 0; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; cursor: pointer; }
.tr-q:hover, .tr-q[aria-expanded="true"], .tr-rd:hover, .tr-day-tools .tr-link:hover, .tr-day-tools .tr-link[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 900px) { .tr-q, .tr-rd, .tr-day-tools .tr-link { min-height: 44px; } }

/* ═══════════ The simple journey (founder decision 6): Save → Plan My Trip → destination + days → Plan ═══════════
   The form shows two decisions and one button; everything else sits under one quiet "More options" disclosure.
   The Plan button stays in reach (a bar that sticks to the bottom of the screen while the form is on it).
   On the result, the itinerary leads (days, then how GGuide planned it); Refine folds away. */
.tr-hero.tr-hero--plan { min-height: 0; padding-top: 124px; padding-bottom: 36px; }
.tr-hero--plan .tr-crumbs { margin-bottom: 16px; }
.tr-hero--plan .tr-title { font-size: clamp(38px, 4.6vw, 66px); }
.tr-hero--plan .tr-dek { margin: 14px 0 0; font-size: clamp(17px, 1.6vw, 20px); max-width: none; }
.tr-body:has(> .tr-planf) { padding-top: 34px; }
.tr-planf .tr-frow { padding: 24px 0; }
.tr-planf .tr-frow--sub { padding: 22px 0; }
.tr-planf .tr-frow--sub .tr-flabel { font-size: 15px; }
.tr-planf .tr-frow--sub:last-child { border-bottom: 0; }
/* More options: the button sits in the label column, its one-line summary beside it */
.tr-more { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 40px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.tr-more-b { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; justify-self: start;
  font: 800 11px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid transparent; }
.tr-more-b:hover span { text-decoration: underline; text-underline-offset: 4px; }
.tr-more-b:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.tr-more-b i { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.tr-more-b[aria-expanded="true"] i { transform: translateY(2px) rotate(-135deg); }
.tr-more-sum { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.tr-more-dot { color: rgba(10,10,10,.3); }
.tr-more-box { grid-column: 1 / -1; margin-top: 16px; }
.tr-more-box[hidden] { display: none; }
.tr-dates .tr-link { color: var(--red); min-height: 44px; }
.tr-step:disabled { opacity: .3; cursor: default; background: none; color: var(--ink); border-color: rgba(10,10,10,.3); }
.tr-plan-sum { margin: 30px 0 0; max-width: 760px; }
/* the action bar: sticky at the bottom of the screen while the form is on it, then settles at the end of the form */
.tr-plan-bar { position: sticky; bottom: 0; z-index: 40; margin-top: 18px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  background: rgba(240,235,225,.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--hair); }
.tr-plan-bar .tr-err:empty { display: none; }
.tr-plan-bar .tr-err { margin-bottom: 8px; }
.tr-plan-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; }
.tr-plan-short { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; color: rgba(10,10,10,.78); min-width: 0; }
.tr-plan-short b { display: block; font-family: var(--font); font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 3px; }
.tr-plan-bar .tr-btn--big { flex: 0 0 auto; min-height: 52px; justify-content: center; }
.tr-plan-foot { padding-top: 6px; }
.tr-plan-foot .tr-form-actions { padding-top: 14px; }
.tr-plan-foot .tr-link { min-height: 44px; display: inline-flex; align-items: center; }
.tr-plan-foot > .tr-fine { margin-top: 12px; max-width: 60ch; }
body.tr-plan-page #gg-sbx { bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
@media (max-width: 900px) {
  .tr-hero.tr-hero--plan { min-height: 0; padding: 104px 24px 28px; }
  .tr-hero--plan .tr-crumbs { margin-bottom: 12px; }
  .tr-hero--plan .tr-eyebrow { margin-bottom: 12px; }
  .tr-hero--plan .tr-dek { font-size: 17px; margin-top: 12px; }
  .tr-body:has(> .tr-planf) { padding-top: 20px; }
  .tr-planf .tr-frow { padding: 16px 0 18px; gap: 10px; }
  /* phones: the numeral sits on the label's line ("01 Where"), the hint below it */
  .tr-planf .tr-flabel { display: block; }
  .tr-planf .tr-fn { margin-right: 8px; }
  .tr-planf .tr-flabel small { display: block; margin-top: 4px; font-size: 12px; }
  .tr-more { grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding: 12px 0 16px; }
  .tr-more-sum { font-size: 14px; }
  .tr-plan-sum { margin-top: 22px; font-size: 18px; }
  .tr-plan-bar { margin: 14px -24px 0; padding: 10px 24px calc(10px + env(safe-area-inset-bottom)); }
  .tr-plan-short { font-size: 14px; }
  .tr-plan-short b { font-size: 10px; }
  .tr-plan-bar .tr-btn--big { padding: 0 24px; min-height: 52px; }
  .tr-dates .tr-in { width: 100%; min-height: 44px; }
  .tr-dates label { flex: 1 1 140px; }
  .tr-planf .tr-switchrow { min-height: 44px; }
  .tr-planf .tr-stay-more .tr-link { min-height: 44px; }
  .tr-planf select.tr-in, .tr-planf .tr-dest .tr-in { min-height: 44px; }
  .tr-planf .tr-pace-o { min-height: 44px; }
  body.tr-plan-page #gg-sbx { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-more-b i, .tr-step, .tr-where-o, .tr-pace-o, .tr-also-o, .tr-sw, .tr-sw::after { transition: none; }
}
/* result: days → how GGuide planned it → what didn't fit → (folded) Refine my plan */
.tr-ov .tr-how { margin-top: 44px; }
.tr-how + .tr-toc--un { margin-top: 48px; }
.tr-refine-h { margin: 0; font: inherit; }
.tr-refine-t { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 18px; width: 100%; min-height: 44px; padding: 4px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); }
.tr-refine-t .tr-how-k { margin-bottom: 4px; }
.tr-refine-d { grid-column: 1; font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.tr-refine-t i { grid-column: 2; grid-row: 1 / span 2; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.tr-refine-t[aria-expanded="true"] i { transform: translateY(2px) rotate(-135deg); }
.tr-refine-t:hover .tr-refine-d { color: var(--ink); }
.tr-refine-t:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.tr-refine-body { margin-top: 14px; }
.tr-refine-body[hidden] { display: none; }
@media (max-width: 900px) { .tr-refine .tr-link, .tr-refine .tr-btn { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .tr-refine-t i { transition: none; } }

/* Days not planned yet (after Undo of the first plan, or places never planned): one clear call to plan them */
.tr-plan-days { margin: 8px 0 34px; padding: 26px 28px 28px; background: #0a0a0a; color: #F0EBE1; max-width: 640px; }
.tr-plan-days-h { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; margin-bottom: 10px; }
.tr-plan-days p:not(.tr-plan-days-h) { font-size: 15px; line-height: 1.6; color: rgba(240,235,225,.78); margin-bottom: 18px; }
.tr-plan-days .tr-btn { min-height: 48px; }
.tr-day .tr-plan-days { margin-top: 28px; }
@media (max-width: 760px) { .tr-plan-days { padding: 20px 18px 22px; margin-left: 0; margin-right: 0; } .tr-plan-days .tr-btn { width: 100%; justify-content: center; } }

/* ═══════════ The journey (JOURNEY-ARCHITECTURE.md): route, travel days, provenance and label chips ═══════════
   Calm and editorial: hairlines, small caps labels, one accent. Chips say who proposes a stop (source) and how sure a
   value is (basis); they are text, never colour alone. */
.tr-chip { display: inline-flex; align-items: center; gap: 6px; font: 800 8.5px/1.2 var(--font); letter-spacing: .16em; text-transform: uppercase; padding: 5px 8px; border: 1px solid rgba(10,10,10,.25); color: rgba(10,10,10,.72); vertical-align: middle; }
.tr-chip--saved { border-color: var(--ink); color: var(--ink); }
.tr-chip--gguide { border-color: var(--red); color: var(--red); }
.tr-chip--external { border-style: dashed; border-color: #5D8190; color: #3d5f6c; }
.tr-chip--reservation { border-color: #2F2B26; background: #2F2B26; color: #F0EBE1; }
.tr-chip--transport { border-color: #7E6FA3; color: #5f5287; }
/* the re-plan drawer's instruction chips are BUTTONS sharing .tr-chip with the provenance labels above: keep the label look, but a
   ≥ 24 px target on every screen (WCAG 2.2 2.5.8; ln-free UX audit — they measured 22 px on desktop) */
button.tr-chip { min-height: 32px; padding: 7px 12px; cursor: pointer; }
.tr-attr { font-size: 11px; color: var(--muted); margin-left: 8px; }
.tr-attr a { color: inherit; text-decoration: underline; }
.tr-prov { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.tr-sug-k { font-size: 11px; font-style: italic; font-family: var(--serif); color: var(--muted); }
.tr-basis { display: inline-block; font: 700 9px/1.25 var(--font); letter-spacing: .08em; padding: 3px 7px; border-radius: 999px; border: 1px solid rgba(10,10,10,.2); color: rgba(10,10,10,.7); white-space: normal; }
.tr-basis--verified { border-color: #3F8F7E; color: #2c6c5e; text-decoration: none; }
a.tr-basis--verified:hover { background: #3F8F7E; color: #fff; }
.tr-basis--simulated { border-color: #D8A250; background: rgba(216,162,80,.14); color: #7a5418; }
.tr-basis--assumption { border-style: dashed; color: rgba(10,10,10,.72); }
.tr-basis--unknown { border-color: rgba(182,70,50,.5); color: #8f3626; }
.tr-val { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tr-val-t { font-weight: 600; }

/* plan form: the destinations, in order; the journey options */
.tr-jroute { margin-top: 16px; }
.tr-jroute-k { font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tr-jroute-l { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 8px; padding: 0; }
.tr-jroute-l li { display: inline-flex; align-items: center; gap: 6px; }
.tr-jroute-l li > span { font-weight: 700; padding: 10px 12px; border: 1px solid var(--ink); }
.tr-jroute-l small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.tr-jroute-a { color: var(--red); }
.tr-jroute-x { min-width: 44px; min-height: 44px; background: none; border: 1px solid var(--hair); cursor: pointer; font-size: 12px; }
.tr-dest-add { margin-left: auto; min-height: 44px; padding: 0 12px; background: none; border: 1px solid var(--ink); font: 700 9.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.tr-dest-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.tr-stays { display: grid; gap: 12px; }
.tr-stays-o { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 12px; font-weight: 700; }
.tr-booked { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.tr-booked li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.tr-link--add, .tr-booked .tr-link { min-height: 44px; }
.tr-bookf { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 16px; margin-top: 12px; padding: 16px; background: var(--paper-2); border: 1px solid var(--hair); }
.tr-bookf label { display: grid; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.tr-bookf-w, .tr-bookf .tr-e-actions, .tr-bookf .tr-err { grid-column: 1 / -1; }
.tr-dna-sample { display: grid; gap: 6px; margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }

/* your journey (overview) */
.tr-jn { margin: 0 0 48px; padding: 0 0 40px; border-bottom: 1px solid var(--ink); }
.tr-jn-h3 { font-size: 9px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.tr-route { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 6px 0 26px; padding: 0; }
.tr-route-leg { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: var(--ink); color: var(--paper); }
.tr-route-leg b { font-weight: 800; font-size: clamp(18px, 2.2vw, 26px); letter-spacing: -.02em; }
.tr-route-leg span { font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(240,235,225,.75); }
.tr-route-tr { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tr-route-tr i { font-style: normal; font-weight: 800; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #5f5287; }
.tr-route-tr small { font-size: 11px; }
.tr-jn-why { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; padding: 22px 24px; background: var(--paper-2); border: 1px solid var(--hair); }
.tr-jn-why p { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: rgba(10,10,10,.84); margin: 0 0 8px; max-width: 46ch; }
.tr-jn-alt span, .tr-gap-k, .tr-ba-dk { display: block; font-family: var(--font); font-size: 9px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tr-jn-alt { font-size: 15px !important; color: var(--muted) !important; }
.tr-jn-ov { grid-column: 1 / -1; }
.tr-adj { margin: 18px 0 8px; }
.tr-adj .tr-btn, .tr-gaps .tr-btn { min-height: 44px; }
.tr-adj-b { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--hair); background: #fff; }
.tr-adj-l { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.tr-adj-l > li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.tr-adj-l > li > b { min-width: 110px; font-weight: 800; }
.tr-adj-o, .tr-adj-d { display: inline-flex; align-items: center; gap: 6px; }
.tr-adj-o button, .tr-adj-d button { min-width: 44px; min-height: 44px; background: none; border: 1px solid var(--ink); font-size: 16px; cursor: pointer; }
.tr-adj-o button:disabled, .tr-adj-d button:disabled { opacity: .3; cursor: default; }
.tr-adj-d output { min-width: 64px; text-align: center; font-weight: 700; }
.tr-adj-tr label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tr-adj-tr select { min-height: 44px; }
.tr-jprev { margin-top: 14px; padding: 16px 18px; border-left: 3px solid var(--red); background: var(--paper-2); }
.tr-jprev .tr-route { margin-bottom: 12px; }
.tr-jprev-l { margin: 0 0 12px 18px; font-size: 14px; line-height: 1.5; }
.tr-jprev .tr-btn, .tr-jprev .tr-link { min-height: 44px; }

/* travel-day cards: a quiet vertical timeline */
.tr-tday { margin: 22px 0; padding: 20px 22px; border: 1px solid var(--hair); background: #fff; }
.tr-tday-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.tr-tday-k { width: 100%; font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #5f5287; margin: 0; }
.tr-tday-t { font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.02em; margin: 0; }
.tr-tday-t i { font-style: normal; color: var(--red); }
.tr-tday p { margin: 8px 0; font-size: 14px; line-height: 1.5; }
.tr-tday-use { font-family: var(--serif); font-style: italic; font-size: 16px !important; }
.tr-tday .tr-link { min-height: 44px; }
.tr-tline { list-style: none; margin: 16px 0 10px; padding: 0 0 0 4px; }
.tr-tseg { position: relative; display: flex; gap: 14px; padding: 0 0 16px; }
.tr-tseg::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--hair); }
.tr-tseg:last-child::before { display: none; }
.tr-tseg-dot { flex: none; width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; border: 2px solid #7E6FA3; background: #fff; }
.tr-tseg--leg .tr-tseg-dot { background: #7E6FA3; }
.tr-tseg-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tr-tseg-b > b { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tr-tseg-s { font-size: 14px; color: rgba(10,10,10,.8); }
.tr-assume { min-height: 32px; }
.tr-assume-f { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 8px; }
.tr-assume-f label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; }
.tr-assume-f input { width: 110px; }
.tr-assume-out { width: 100%; }
/* fp-travel: a PLANNED travel day — the day in one line, parts of the day on the timeline, free time as plan text */
.tr-tday-sum { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 12px !important; font-family: var(--serif); font-size: 17px !important; line-height: 1.45 !important; color: rgba(10,10,10,.82); }
.tr-tday-sum b { font-family: var(--font); font-size: 9.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #5f5287; margin-right: 4px; }
.tr-tday-sum i { font-style: normal; color: var(--muted); padding: 0 8px; }
.tr-tseg-p { font-family: var(--serif); font-style: italic; font-size: 15px; color: #5f5287; margin: -2px 0 2px; }
.tr-tseg-v { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; }
.tr-tseg-v .tr-val-t { font-weight: 500; }
.tr-tseg--buffer .tr-val-t, .tr-tseg--check-out .tr-val-t, .tr-tseg--check-in .tr-val-t, .tr-tseg--arrival-procedures .tr-val-t, .tr-tseg--to-station-or-airport .tr-val-t, .tr-tseg--transfer-to-hotel .tr-val-t { font-weight: 400; color: rgba(10,10,10,.8); }
.tr-tseg--main-leg .tr-tseg-dot { background: #7E6FA3; }
.tr-tseg--free-time .tr-tseg-dot { border-color: var(--day, #3F8F7E); background: var(--day, #3F8F7E); }
.tr-tfree { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.tr-tfree li, .tr-free-b { display: grid; gap: 2px; }
.tr-tfree b, .tr-free-b b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; line-height: 1.25; color: var(--ink); }
.tr-tfree span, .tr-free-b span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.tr-basis--mine { border-color: #2F2B26; color: #2F2B26; border-style: dotted; }
.tr-tday-rv { margin: 10px 0 0; font-size: 13px; }
.tr-tday-rv summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8f3626; }
.tr-tday-rv ul { margin: 0 0 6px 18px; line-height: 1.6; color: rgba(10,10,10,.75); }
/* planned free blocks inside a day (beach / slow days): intentional, quiet, never "empty" */
.tr-free-l { list-style: none; margin: 6px 0 0; padding: 10px 0 10px 16px; border-left: 2px solid var(--day, #3F8F7E); display: grid; gap: 10px; }
.tr-slot--free .tr-slot-h { color: rgba(10,10,10,.55); }
.tr-toc-tsum { grid-column: 1; margin: 0 0 8px 80px; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; color: rgba(10,10,10,.7); max-width: 60ch; }
.tr-toc-free em { color: rgba(10,10,10,.55); }
.tr-toc-day--travel .tr-toc-c { white-space: normal; line-height: 1.5; }
.tr-day--travel .tr-day-h { font-size: clamp(30px, 3.6vw, 50px); }
.tr-day--travel .tr-day-h em { color: #5f5287; }
.tr-nowrap { white-space: nowrap; }
/* Free multi-city trips: the city changes today — a quiet marker, no transport guidance */
.tr-moving { margin: 18px 0 6px; padding: 14px 16px; border-left: 2px solid #7E6FA3; background: var(--paper-2); }
.tr-moving-h { margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35; }
.tr-moving-n { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.tr-moving-n a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tr-toc-moving { color: #5f5287; }
@media (max-width: 1180px) { .tr-toc-tsum { margin-left: 0; } }
.tr-flights { margin-top: 10px; }
.tr-flights-k { font-size: 9px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr-flights-l { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; font-size: 13px; }

/* what's missing, before → after, the legend */
.tr-gaps { margin: 30px 0 0; }
.tr-gaps-l { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tr-gap { padding: 14px 16px; border-left: 2px solid var(--hair); background: var(--paper-2); }
.tr-gap--warn { border-left-color: #D8A250; }
.tr-gap p { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.tr-gap-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.tr-ba { margin: 34px 0 0; }
.tr-ba-t { display: inline-flex; border: 1px solid var(--ink); margin-bottom: 14px; }
.tr-ba-t button { min-height: 44px; min-width: 96px; padding: 0 16px; background: none; border: 0; font: 800 10px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.tr-ba-t button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tr-ba-big { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; margin: 0 0 12px; }
.tr-ba-big b { font-family: var(--font); font-weight: 800; font-size: .85em; }
.tr-ba-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; margin-bottom: 10px; }
.tr-ba-cols ul { margin: 0 0 0 16px; font-size: 13px; line-height: 1.6; color: rgba(10,10,10,.75); }
.tr-ba-m { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.tr-ba-m b { color: var(--ink); font-weight: 800; }
.tr-legend { margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--hair); }
.tr-legend dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 26px; margin: 0 0 10px; }
.tr-legend dl > div { display: grid; gap: 4px; }
.tr-legend dd { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(10,10,10,.75); }
.tr-legend small { color: var(--muted); }

/* the journey's days */
.tr-day-shape { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.8vw, 21px); color: rgba(10,10,10,.75); margin: 6px 0 0; }
.tr-toc-shape { display: block; margin-top: 4px; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); }
.tr-day-jn { margin: 8px 0 0 18px; font-size: 13px; color: var(--muted); }
.tr-move { font-size: 11px; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.tr-move::before { content: '· · ·  '; letter-spacing: .1em; }
.tr-sug { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tr-sug-b { min-height: 44px; min-width: 76px; padding: 0 14px; background: none; border: 1px solid var(--ink); font: 800 9.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.tr-sug-b:hover { background: var(--ink); color: var(--paper); }
.tr-sug-b[data-jremove]:hover { background: var(--red); border-color: var(--red); }

@media (max-width: 760px) {
  .tr-jn-why { grid-template-columns: 1fr; padding: 18px 16px; }
  .tr-stays-o { grid-template-columns: 1fr; gap: 6px; }
  .tr-tday { padding: 16px 14px; }
  .tr-assume { min-height: 44px; }
  .tr-tday-sum { display: grid; gap: 6px; font-size: 16px !important; }
  .tr-tday-sum i { display: none; }
  .tr-tday-sum span { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; align-items: baseline; }
  .tr-route-leg { padding: 10px 12px; }
  .tr-adj-l > li > b { min-width: 0; width: 100%; }
  .tr-sug-b { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-sug-b, .tr-basis, .tr-ba-t button { transition: none !important; }
}
.tr-basis--booking { border-color: #2F2B26; background: #2F2B26; color: #F0EBE1; }
.tr-tseg-n, .tr-tday-says { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.tr-tday-says { font-family: var(--serif); font-style: italic; font-size: 15px !important; }
.tr-jprev-s { font-weight: 700; font-size: 15px; margin: 0 0 10px; }
.tr-jwarn { margin: 12px 0; padding: 12px 16px; border: 1px solid #B64632; background: rgba(182,70,50,.06); }
.tr-jwarn-h { font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #8f3626; margin: 0 0 6px; }
.tr-jwarn ul { margin: 0 0 0 18px; font-size: 14px; line-height: 1.5; }
.tr-jask { margin: 12px 0; padding: 14px 16px; background: var(--paper-2); border-left: 3px solid #7E6FA3; }
.tr-jask p { margin: 0 0 10px; font-family: var(--serif); font-size: 16px; line-height: 1.45; }
.tr-jask-b { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-jask-b .tr-btn { min-height: 44px; }
.tr-jlock { margin: 18px 0 0; }
.tr-jlock .gm-lock { border-left: 3px solid var(--red); background: var(--paper-2); padding: 16px 18px; }
.tr-jlock .gm-lock-a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Free vs Plus (fp-ui): two ways to plan, the credit line, the result header, the Free upsell line, the locked own-words box.
   Calm and editorial: hairlines, type, one terracotta accent for Plus — not a pricing wall. ── */
.tr-modes-pick { margin: 0 auto 26px; }
.tr-origin-how { font-style: italic; }
.tr-mp-h { font-size: 9px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.tr-mp { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "free plus"; border-top: 1px solid var(--ink); }
.tr-mp--locked { grid-template-areas: "free plus" "free lock"; }
.tr-mp-o { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 26px 20px 0; cursor: pointer; color: var(--ink); min-width: 0; grid-area: free; }
.tr-mp-o--plus { grid-area: plus; padding: 18px 0 20px 26px; border-left: 1px solid var(--hair); }
.tr-mp-lock { grid-area: lock; padding: 0 0 20px 26px; border-left: 1px solid var(--hair); }
.tr-mp-o input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tr-mp-k { font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.tr-mp-o--plus .tr-mp-k { color: var(--red); }
.tr-mp-t { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; display: flex; align-items: center; gap: 10px; }
.tr-mp-o:not(.tr-mp-o--locked) .tr-mp-t::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(10,10,10,.45); box-sizing: border-box; }
.tr-mp-o.on .tr-mp-t::before { border: 4px solid var(--ink); }
.tr-mp-o--plus.on .tr-mp-t::before { border-color: var(--red); }
.tr-mp-o:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.tr-mp-d { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.45; color: rgba(10,10,10,.78); text-wrap: pretty; }
.tr-mp-f { font-size: 12px; line-height: 1.4; color: var(--muted); }
.tr-mp-o:not(.on):not(.tr-mp-o--locked) { opacity: .72; }
.tr-mp-o:not(.on):not(.tr-mp-o--locked):hover { opacity: 1; }
.tr-mp-o--locked { cursor: default; }
.tr-mp-o--locked .tr-mp-d { color: var(--muted); }
.tr-mp-lock.tr-jlock { margin: 0; }
.tr-mp-lock .gm-lock { padding: 12px 14px; }
.tr-mp-lock .gm-lock-k { display: none; }
.tr-mp-lock .gm-lock-t { font-size: 13.5px; margin-bottom: 4px; }
.tr-brief { resize: vertical; min-height: 64px; border: 1px solid rgba(10,10,10,.25); padding: 12px 14px; background: rgba(255,255,255,.45); font-size: 16px; }
.tr-brief-n { margin-top: 6px; }
.tr-go { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 620px; }
.tr-credit { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); text-align: right; }
.tr-credit b { color: var(--ink); font-weight: 800; white-space: nowrap; }
.tr-credit i { font-style: normal; color: var(--red); }
/* the result header: how this trip was planned */
.tr-planhow { margin: 0 0 40px; padding: 0 0 26px; border-bottom: 1px solid var(--hair); max-width: 820px; }
.tr-ph-b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 0; }
.tr-ph-badge { font: 800 10px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; padding: 8px 10px 7px; border: 1px solid var(--ink); color: var(--ink); }
.tr-ph-badge--ai { background: var(--ink); color: var(--paper); }
.tr-ph-l { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.45; color: rgba(10,10,10,.8); }
.tr-ph-c { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tr-ph-brief { margin: 14px 0 0; font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.tr-ph-brief span, .tr-ph-k, .tr-upsell-k { display: block; font: 800 9px/1.2 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tr-ph-sum { margin: 14px 0 0; font-size: 15px; line-height: 1.55; max-width: 66ch; }
.tr-ph-themes { margin-top: 16px; }
.tr-ph-themes ol { list-style: none; margin: 0; padding: 0; }
.tr-ph-themes li { padding: 8px 0; border-top: 1px solid var(--hair); font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.4; }
.tr-ph-themes li b { font: 800 10px/1 var(--font); font-style: normal; letter-spacing: .16em; text-transform: uppercase; margin-right: 10px; }
.tr-planhow > .tr-fine { margin-top: 12px; }
.tr-upsell { margin: 18px 0 0; padding: 14px 16px; border-left: 3px solid var(--red); background: var(--paper-2); font-size: 14px; line-height: 1.55; }
.tr-upsell a { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.tr-nl-l { margin-top: 10px; }
.tr-nl-meta { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.tr-nl-lock .gm-lock { border-left: 3px solid var(--red); padding: 14px 16px; }
.tr-nl-lock .gm-lock-a { display: inline-flex; align-items: center; min-height: 44px; }
.tr-nl-lock + .tr-refine-go { margin-top: 10px; }
@media (max-width: 900px) {
  .tr-modes-pick { margin-bottom: 14px; }
  .tr-mp, .tr-mp--locked { grid-template-columns: 1fr 1fr; grid-template-areas: "free plus" "lock lock"; }
  .tr-mp-o { padding: 12px 12px 12px 0; gap: 4px; min-height: 44px; }
  .tr-mp-o--plus { padding: 12px 0 12px 12px; }
  .tr-mp-t { font-size: 15px; gap: 8px; align-items: flex-start; }
  .tr-mp-o:not(.tr-mp-o--locked) .tr-mp-t::before { margin-top: 2px; }
  .tr-mp-k { font-size: 8.5px; letter-spacing: .16em; }
  .tr-mp-d, .tr-mp-f { display: none; }
  .tr-mp-lock { padding: 0 0 4px; border-left: 0; }
  .tr-mp-lock .gm-lock { padding: 10px 12px; }
  .tr-mp-lock .gm-lock-t { font-size: 13px; line-height: 1.45; }
  .tr-mp-lock .gm-lock-a { min-height: 40px; display: inline-flex; align-items: center; }
  .tr-go:has(.tr-credit) { align-items: stretch; max-width: none; flex: 1 1 auto; }
  .tr-plan-bar-in:has(.tr-credit) { flex-wrap: wrap; }
  .tr-plan-bar-in:has(.tr-credit) .tr-plan-short { display: none; }
  .tr-credit { text-align: left; }
  .tr-planhow { margin-bottom: 30px; }
}

/* stg-qa UX audit (2 Nov 2026, docs/staging/UX-AUDIT.md; a stray '}' that closed nothing was removed above — it made browsers drop the next rule added to this file): phone tap targets for the breadcrumbs and "Or start a blank trip"
   (30 and 25 px tall → 44 px, the visible layout unchanged by matching negative margins), and air between the empty
   state's button and its preview note. */
@media (max-width: 900px) {
  .tr-crumbs a { display: inline-block; padding: 15px 0; margin: -7px 0; }
  .tr-hero-cta .tr-link--light { display: inline-block; padding: 16px 0; margin-top: -10px; margin-bottom: -10px; }
}
.tr-empty .tr-btn + .tr-fine { margin-top: 16px; }
/* near the month's Plus planning limit (journey-ai planning: 'low') — a quiet line, never a number */
.tr-near { border-left: 2px solid var(--red); padding: 2px 0 2px 10px; margin: 8px 0; color: var(--ink, #0a0a0a); }

/* G Concierge in the natural-language surfaces (BRIEF-COMMERCE-4): a booking the member asked for in their own words. Quiet and
   typographic: a terracotta rule, their words in Playfair italic, one plain line of truth, one optional action. No badges. */
.tr-cgo { margin: 18px 0 0; display: grid; gap: 14px; max-width: 640px; }
.tr-cgo-i { border-left: 2px solid var(--red); padding: 2px 0 4px 16px; }
.tr-cgo-k { font: 800 9px/1.2 var(--font); letter-spacing: .26em; text-transform: uppercase; color: var(--red); margin: 0 0 8px; }
.tr-cgo-k span { color: var(--muted); letter-spacing: .2em; }
.tr-cgo-q { display: block; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ink); quotes: '“' '”'; overflow-wrap: anywhere; }
.tr-cgo-s { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 58ch; }
.tr-cgo-b { margin-top: 12px; display: inline-flex; align-items: center; min-height: 44px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 40px; background: none; color: var(--ink);
  font: 800 10px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.tr-cgo-b:hover { background: var(--ink); color: var(--paper); }
.tr-cgo-b:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.tr-cgo-off { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.tr-cgo-off .tr-cgo-q { display: inline; font-size: 15px; }
.tr-planhow .tr-cgo { margin-top: 16px; }
#trBriefAsk .tr-cgo { margin-top: 12px; }
/* a place the member added that GGuide can no longer read: their own name for it, marked */
.tr-tag--missing { border-style: dashed; border-color: rgba(10,10,10,.4); color: rgba(10,10,10,.66); }

/* writes in flight (gg-trips.js pend / guard, lc-2): the trip's action controls take no pointer while a save or its redraw runs; dimmed
   only if it lasts (no flicker on a quick redraw); a refused click says "Saving your last change — one moment." */
.tr-busy :is([data-act], #trUndo, #trApply, [data-do], [data-replan], [data-i], [data-add], [data-act-j], [data-replace], [data-jprev], #trAnother, #trPlanGo, #trDnaOn) {
  pointer-events: none; cursor: progress; opacity: .55; transition: opacity .2s ease .3s; }
