/* "Plan my trip" (owner, 8 Oct 2026; docs/mockups/trip, B A A B; the start screen redone 8 Oct evening): the trip page, the home's
   tokens and shapes. Cream everywhere, no white panels but the input boxes; the start as one centred heading, two twin cards
   and one button; the strip of days and the open day as one connected shape; the change box a bar at the foot on a phone and a
   column beside the days on a laptop; one postcard per day at the end. Phone first; a laptop is the same page, wider. */
.tp { display: grid; gap: var(--s4); min-width: 0; }
.tp-h2 { margin: 0; font: 400 var(--d-title)/1.05 var(--f-display); }
.tp-kick { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--t-label)/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--go); margin-bottom: var(--s2); } .tp-kick .ico { width: 14px; height: 14px; }
/* the photo top: the headline and its line in the middle, one composition on a phone and a laptop, nothing left blank */
.tp-start .phototop { display: grid; align-content: center; justify-items: center; text-align: center; padding-bottom: 96px; }   /* the credit line keeps its room under the words */
.tp-start .phototop .gq-hero { margin-inline: auto; margin-bottom: var(--s3); }
.tp-sub { margin: 0 auto; max-width: 40ch; color: rgba(255, 255, 255, .92); font: 500 var(--fs-md)/1.45 var(--f-body); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

/* ---- 1. start: the heading in the middle, two twin cards, one button ---- */
.tp-unit { display: grid; gap: var(--s4); }
.tp-uh { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 0 var(--s4); }
.tp-how { margin: 0; max-width: 40ch; color: var(--ink-2); font: 500 var(--fs-md)/1.4 var(--f-body); }
.tp-ug { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.tp-half { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; background: var(--bg-2); border-radius: var(--r-card); padding: var(--s4); }
.tp-ch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; } .tp-ch .ico { grid-row: 1 / 3; width: 24px; height: 24px; color: var(--accent); }
.tp-ch h3 { margin: 0; font: 400 22px/1.1 var(--f-display); } .tp-ch p { margin: 0; color: var(--ink-2); font: 500 13px/1.35 var(--f-body); }
.tp-or { justify-self: center; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); border: var(--hair) solid var(--line-2); color: var(--ink-2); font: italic 400 17px/1 var(--f-display); }
.tp-f { display: grid; gap: 6px; } .tp-f > .lab { margin: 0; }
.tp-say { width: 100%; min-height: 136px; resize: vertical; border: var(--hair) solid var(--line-2); border-radius: var(--radius); padding: var(--s3); background: var(--surface); color: var(--ink); font: 500 var(--fs-md)/1.4 var(--f-body); } .tp-say::placeholder { color: var(--ink-2); opacity: 1; font-weight: 500; }
.tp-seg, .tp-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--pill); border: var(--hair) solid var(--line-2); background: var(--surface); color: var(--ink); font: 500 var(--fs-sm, 14px)/1 var(--f-body); cursor: pointer; text-align: left; }
.tp-pill .ico { width: 15px; height: 15px; } .tp-pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tp-exb { min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); font: 600 12px/1 var(--f-body); cursor: pointer; } .tp-exb:hover { background: var(--line); }   /* the change box's quick lines */
/* how the days shape up (a laptop, under the words): one line a day, its theme colour, title, the words it is planned from, its energy */
.tp-prev { display: none; } .tp-prev .small { margin: 2px 0 0; color: var(--ink-2); }
.tp-pl { list-style: none; margin: 0; padding: 0; display: grid; }
.tp-pl li { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 7px 0; border-top: var(--hair) solid var(--line-2); font: 500 var(--fs-sm, 14px)/1.3 var(--f-body); }
.tp-pl b { flex: none; width: 64px; font: 400 17px/1 var(--f-display); white-space: nowrap; } .tp-plt { flex: 1; min-width: 0; display: grid; gap: 2px; } .tp-plt small { font: 400 12px/1.35 var(--f-body); color: var(--ink-2); } .tp-pl .tp-en { flex: none; }
.tp-dates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.tp-date { display: grid; gap: 2px; border: var(--hair) solid var(--line-2); border-radius: var(--radius); padding: 8px 10px; background: var(--surface); }
.tp-date small { font: 600 10px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
/* a date or time box: a button; the page draws the value (15/10/2026, 14:00, in both languages); a tap opens Vale's own
   calendar or clock under the dates (js/datepick.js) */
.tp-dv { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; margin: 0 -6px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 var(--fs-sm, 14px)/1.3 var(--f-body); cursor: pointer; text-align: left; }
.tp-dv > .ico { width: 15px; height: 15px; color: var(--ink-2); flex: none; } .tp-dvt { flex: 1; min-width: 0; }
.tp-dv.on { background: var(--bg-2); } .tp-dv.on .tp-dvt { font-weight: 600; }
.tp-in { width: 100%; min-height: 44px; border: var(--hair) solid var(--line-2); border-radius: var(--radius); padding: 0 var(--s3); background: var(--surface); color: var(--ink); font: 500 var(--fs-sm, 14px)/1.3 var(--f-body); } .tp-in::placeholder { color: var(--ink-2); opacity: 1; }
/* the calendar and the clock (js/datepick.js): one month, Monday first, the stay as one band; the 24 hours and :00 or :30 */
.tp-pk { display: grid; gap: var(--s3); border: var(--hair) solid var(--line-2); border-radius: var(--radius); padding: var(--s2); background: var(--bg); }   /* on the page's cream, no white panel; a phone: 44 px days in a 390 px screen */
.tp-pkh { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); } .tp-pkh b { font: 400 18px/1.15 var(--f-display); } .tp-pkh .link { min-height: 36px; }
.tp-cal { display: grid; gap: 4px; }
.tp-cah { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); } .tp-cah b { font: 600 var(--fs-md)/1.2 var(--f-body); }
.tp-can { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink); cursor: pointer; } .tp-can .ico { width: 18px; height: 18px; } .tp-can.prev .ico { transform: scaleX(-1); } .tp-can:disabled { opacity: .3; cursor: default; }
.tp-cad { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font: 600 10px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 6px 0 2px; }
.tp-cag { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; }
.tp-d { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 0; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 500 var(--fs-sm, 14px)/1 var(--f-body); cursor: pointer; }
.tp-d.pad { cursor: default; } .tp-d:not(.off):not(.pad):hover { background: var(--bg-2); } .tp-d.off:hover { background: none; }
.tp-d.off { color: var(--ink-2); opacity: .38; cursor: default; }   /* a past day, or one past the span: plainly faint, no hover */
.tp-d.today { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.tp-d.in { background: var(--accent-soft); border-radius: 0; }
.tp-d.start, .tp-d.end, .tp-d.start:hover, .tp-d.end:hover { background: var(--ink); color: var(--bg); } .tp-d.start { border-radius: 10px 0 0 10px; } .tp-d.end { border-radius: 0 10px 10px 0; } .tp-d.start.end { border-radius: 10px; }
.tp-d.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.tp-hrs { gap: 4px; grid-template-columns: repeat(6, 1fr); } .tp-hrs .tp-d.sel, .tp-hrs .tp-d.sel:hover { background: var(--ink); color: var(--bg); outline: 0; }
.tp-clk { display: grid; gap: 6px; } .tp-clk .tp-seg { gap: 8px; }
.tp-uf { display: grid; justify-items: center; gap: var(--s3); padding: var(--s2) var(--s4) var(--s2); text-align: center; } .tp-uf .small { margin: 0; color: var(--ink-2); }
.tp-uf .btn { display: inline-flex; min-width: 260px; min-height: 56px; margin: 0; padding: 0 var(--s6); border-radius: var(--pill); overflow: visible; white-space: nowrap; font-size: 18px; }   /* .go is also the home's card: the button keeps its own shape, on one line */
.tp-one { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; } .tp-one .ico { width: 14px; height: 14px; color: var(--accent); }

/* ---- 2. the plan: the strip and the open day ---- */
.tp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s3); flex-wrap: wrap; } .tp-head .small { margin: 4px 0 0; color: var(--ink-2); }
.tp-main { display: grid; gap: var(--s4); min-width: 0; }
.tp-daysw { display: grid; gap: 0; min-width: 0; }
.tp-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 0; margin: 0 calc(-1 * var(--s4)); padding-inline: var(--s4); } .tp-strip::-webkit-scrollbar { display: none; }
.tp-dy { flex: 0 0 150px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; text-align: left; padding: 10px 12px; border: 2px solid transparent; border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--bg-2); color: var(--ink); font: inherit; cursor: pointer; position: relative; }
.tp-dy b { font: 400 30px/1 var(--f-display); grid-row: 1 / 4; } .tp-dy small { font: 600 10px/1.25 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); min-width: 0; } .tp-dy .tp-when { display: none; }   /* "Thu · Arrive 14:00" may wrap */
.tp-dy .tp-dt { font: 400 15px/1.15 var(--f-display); } .tp-bar { display: block; height: 4px; border-radius: 2px; background: var(--line-2); }
.tp-dy.on { border-color: var(--ink); z-index: 1; } .tp-dy.on::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -4px; height: 6px; background: var(--bg-2); }
.tp-en { display: inline-flex; align-items: center; gap: 4px; font: 600 10px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); } .tp-en .ico { width: 12px; height: 12px; }
.tp-open { background: var(--bg-2); border: 2px solid var(--ink); border-radius: 0 var(--r-card) var(--r-card) var(--r-card); overflow: hidden; display: grid; min-width: 0; }
.tp-pic { position: relative; min-height: 220px; overflow: hidden; background: var(--night); } .tp-pic .tp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, 0) 48%, rgba(20, 12, 8, .56)); }   /* light enough for a night photo (La Venencia) */
.tp-pic .tp-ch, .tp-pic .tp-dn, .tp-pic .tp-cr { position: absolute; z-index: 1; } .tp-pic .tp-ch { left: var(--s3); top: var(--s3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tp-pic .tp-dn { left: var(--s3); right: var(--s3); bottom: var(--s3); color: #fff; font: 400 26px/1.05 var(--f-display); text-shadow: 0 2px 12px rgba(20, 12, 8, .6); } .tp-pic .tp-dn small { display: block; font: 500 11px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; opacity: .92; }
.tp-cr { left: var(--s3); right: var(--s3); bottom: var(--s2); top: auto; height: 16px; color: rgba(255, 255, 255, .95); font: 500 10px/16px var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tp-cr a, .tp-cr .credit { color: inherit; } .tp-cr * { display: inline; margin: 0; font: inherit; }   /* the credit: one small line under the title */
.tp-pic .tp-dn { bottom: 30px; }
.tp-pic .tp-en { color: #fff; background: rgba(20, 12, 8, .45); padding: 6px 9px; border-radius: var(--pill); }
.tp-chip { display: inline-flex; align-items: center; gap: 5px; font: 600 10px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: var(--pill); color: #fff; background: var(--ink); } .tp-chip .ico { width: 12px; height: 12px; }
.tp-chip.th-local, .tp-dot.th-local, .th-local .tp-bar { background: #C8582A; } .tp-chip.th-classic, .tp-dot.th-classic, .th-classic .tp-bar { background: #7A4A8C; } .tp-chip.th-out, .tp-dot.th-out, .th-out .tp-bar { background: #3B78B5; } .tp-chip.th-shop, .tp-dot.th-shop, .th-shop .tp-bar { background: #B7892A; } .tp-chip.th-museums, .tp-dot.th-museums, .th-museums .tp-bar { background: #2C7C84; }
.tp-stops.plan { display: block; padding: 0 var(--s3) var(--s3); min-width: 0; max-width: none; } .tp-stops .tl { border-top: 0; display: grid; gap: 0; }
.tp-legend { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: var(--s3); font: 500 12px/1 var(--f-body); color: var(--ink-2); } .tp-legend span { display: inline-flex; align-items: center; gap: 5px; } .tp-legend .ico { width: 13px; height: 13px; } .tp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .tp-lg { margin-left: auto; }

/* ---- 3. the change box: a bar at the foot on a phone, a column on a laptop ---- */
.tp-chat { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); align-content: start; background: var(--bg-2); border-radius: var(--r-card); padding: var(--s3) var(--s4) var(--s4); min-width: 0; }   /* the column never grows past the card: the talk box's own width (a text input and the Change button, wider in Spanish) would push Undo out of the card */
.tp-chh { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); } .tp-chh h3 { margin: 0; font: 400 22px/1.1 var(--f-display); }
.tp-chb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; } .tp-chb .ico { width: 18px; height: 18px; color: var(--ink-2); transition: transform var(--fast) var(--ease); } .tp-chat.open .tp-chb .ico { transform: rotate(180deg); }
.tp-log { display: grid; gap: 8px; }
.tp-msg { max-width: 92%; border-radius: 16px; padding: 9px 12px; font: 400 14px/1.4 var(--f-body); overflow-wrap: anywhere; } .tp-msg.me { margin-left: auto; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; } .tp-msg.vale { background: var(--surface); border-bottom-left-radius: 4px; } .tp-msg b { font-weight: 600; }
.tp-diff { display: grid; gap: 4px; margin-top: 6px; font-size: 12px; } .tp-diff span { display: flex; gap: 6px; align-items: center; } .tp-diff .ico { width: 12px; height: 12px; color: var(--accent); }
.tp-talk { display: flex; align-items: center; gap: 8px; border: var(--hair) solid var(--line-2); border-radius: var(--pill); padding: 4px 4px 4px 14px; background: var(--surface); }
.tp-talk input { flex: 1; min-width: 0; min-height: 40px; border: 0; background: none; color: var(--ink); font: 500 var(--fs-sm, 14px)/1.3 var(--f-body); } .tp-talk input::placeholder { color: var(--ink-2); opacity: 1; }
.tp-talk .btn { min-height: 40px; }

/* ---- 4. the end: postcards, the saved week, the link ---- */
.tp-saved { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font: 600 13px/1 var(--f-body); } .tp-saved .ico { width: 16px; height: 16px; }
.tp-share { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border-radius: var(--radius); padding: 8px 8px 8px 14px; } .tp-share > .ico { width: 18px; height: 18px; color: var(--ink-2); flex: none; } .tp-share b { flex: 1; font: 500 14px/1.3 var(--f-body); } .tp-link { flex: 1; min-width: 0; min-height: 40px; border: 0; background: var(--surface); border-radius: var(--pill); padding: 0 12px; font: 500 12px/1 var(--f-mono); color: var(--ink); }
.tp-posts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.tp-post { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; background: var(--night); } .tp-post .tp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-post::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, 0) 50%, rgba(20, 12, 8, .7)); }
.tp-post .tp-ch, .tp-post .tp-pt, .tp-post .tp-cr { position: absolute; z-index: 1; } .tp-post .tp-ch { left: var(--s3); top: var(--s3); }
.tp-post .tp-pt { left: var(--s3); right: var(--s3); bottom: 32px; color: #fff; display: grid; gap: 3px; } .tp-post .tp-pt b { font: 400 22px/1.05 var(--f-display); } .tp-post .tp-pt small { font: 500 11px/1.3 var(--f-body); opacity: .92; }
.tp-credits { margin: 0; color: var(--ink-2); }
.tp-endacts { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; } .tp-endacts .link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* ---- a laptop: the same page, wider ---- */
@media (min-width: 960px) {
  .tp-start .phototop { min-height: 460px; padding-bottom: 112px; } .tp-start .phototop .gq-hero { max-width: 30ch; } .tp-sub { font-size: 17px; }
  .tp-ug { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s4); align-items: stretch; } .tp-ug.pk-open { align-items: start; } .tp-or { align-self: center; }   /* with the calendar open the words box does not grow to match */
  .tp-half { padding: var(--s5); } .tp-pk { padding: var(--s3); }
  .tp-tell .tp-f-say { flex: 1 1 auto; grid-template-rows: auto 1fr; } .tp-tell .tp-say { height: 100%; min-height: 136px; }   /* the words box takes the height left over, so the twins stand as tall as each other */
  .tp-prev { display: grid; }
  /* the short rows pair up (budget | pace, staying at | anything specific); the wider right track holds the three paces in Spanish */
  .tp-pick { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s3) var(--s4); align-content: start; } .tp-pick .tp-f { align-content: start; } .tp-pick > .tp-ch, .tp-f-when, .tp-f-who, .tp-f-like, .tp-f-trips { grid-column: 1 / -1; }
  .tp-uf { padding: var(--s2) var(--s5) var(--s3); }
  .tp-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; padding-inline: 0; overflow: visible; gap: 12px; } .tp-dy { flex: 1 1 auto; } .tp-dy .tp-when { display: inline; }
  .tp-open { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } .tp-pic { position: sticky; top: var(--s4); height: 72vh; max-height: 640px; min-height: 360px; } .tp-stops.plan { padding: var(--s3) var(--s4) var(--s4) var(--s2); }
  /* the stops column is narrower than a day's: the cards stack photo over words, as on a phone */
  .tp-stops .it.card.pic .cbox { grid-template-columns: minmax(0, 1fr); } .tp-stops .it.card.pic .rpic { grid-column: 1; grid-row: auto; } .tp-stops .it.card.pic .cbox > :not(.rpic) { grid-column: 1; } .tp-stops .it.card .rpimg { min-height: 190px; height: 230px; } .tp-stops .it.card .rw { padding: var(--s3) var(--s4) var(--s4); }
  .tp-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .tp-chat { position: sticky; top: var(--s4); }
  .tp-posts { grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
}
@media (max-width: 959.98px) {
  /* a phone: the change box is a sheet at the foot of the screen, within reach while the day scrolls by; a tap on its title
     opens the last answers and the quick lines over the day (mock-up A) */
  .tp-chat { position: sticky; bottom: 0; z-index: 5; margin: 0 calc(-1 * var(--s4)); border-radius: 22px 22px 0 0; padding: 6px var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(43, 26, 18, .18); background: var(--bg-2); max-height: 80vh; overflow: auto; }
  .tp-chat:not(.open) .tp-log, .tp-chat:not(.open) .tp-quick { display: none; }
  .tp-chb .ico { transform: rotate(0); } .tp-chat.open .tp-chb .ico { transform: rotate(180deg); }
}
@media (min-width: 960px) { .tp-chb { pointer-events: none; } .tp-chb .ico { display: none; } }
@media (prefers-reduced-motion: no-preference) { .tp-dy, .tp-pill, .tp-d { transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease); } }
