/* =====================================================================
   Place page, redesign "X" (port 8823; xp-place.html + xp-place.js). Built after a full audit of the page.
   What the audit found, and the rule each fix follows:
   1. Too many type sizes and gaps        -> one scale: 13 / 14.5 / 16 / 18 / 22 px text; 4-8-12-16-24-32-48 spacing; radius 12 / 16 / 20.
   2. States said the same thing 4 ways   -> one language:
        where you are  (section bar)        = bold ink text + a 3px blue underline; nothing else changes
        what you chose (style, options)     = white tile, 2px blue outline, ink text
        what you can do                     = yellow (the one main action) > solid blue (swap, add) > blue outline > blue text
        information only                    = no outline, no hover (the journey comparison is not clickable, so it no longer looks it)
   3. Stops had no pictures; days had a random one -> every stop and idea has its own photo (or an honest icon tile);
      the day's map sits beside the stops and follows as you scroll them.
   4. The journey buried the day          -> one compact block: total on the header, three legs side by side, comparison below.
   5. Three "free days" with repeated ideas -> "Open day": ideas are shared out, never repeated.
   6. No real "at a glance"               -> the place in two lines, the trip as a strip of days, four things you can change.
   7. Boxes inside boxes (other ways)     -> groups of plain cards.
   No shadows, no eyebrows, one neutral ground; colours keep their roles (yellow = main action, green = money,
   blue = interactive, amber = caution).
   ===================================================================== */
body[data-xp] {
  --x-band: #f7f7f7; --x-sunk: #f2f2f2; --x-line: #e3e3e3; --x-line2: #c8c8c8;
  --x-ink: #1d1d1f; --x-ink2: #545454; --x-ink3: #6a6a6a; --x-body: #333336;
  --x-blue: #0063ba; --x-blue-d: #00478a; --x-blue-1: #f4f9fe; --x-blue-2: #eaf3fc;
  --x-green: #0e6b3d; --x-green-s: #11804a; --x-green-2: #e6f5eb;
  --x-f: 'Cabin', system-ui, sans-serif;
  --x-bar-h: 52px; --r-bar-h: 52px;
}
body[data-xp] .x-money { color: var(--x-green); font-weight: 700; }

/* ---------- buttons: three levels under the yellow main action ---------- */
body[data-xp] .x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; font: 700 15.5px var(--x-f); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
body[data-xp] .x-btn svg { width: 17px; height: 17px; flex: none; }
body[data-xp] .x-btn.sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
body[data-xp] .x-btn.solid { background: var(--x-blue); border-color: var(--x-blue); color: #fff; }
body[data-xp] .x-btn.solid:hover { background: var(--x-blue-d); border-color: var(--x-blue-d); }
body[data-xp] .x-btn.line { background: #fff; border-color: var(--x-blue); color: var(--x-blue); }
body[data-xp] .x-btn.line:hover { background: var(--x-blue-2); }
body[data-xp] .x-btn small { padding: 1px 8px; border-radius: 999px; background: #fff; color: var(--x-blue); font: 700 12.5px var(--x-f); }
body[data-xp] :is(.x-btn, .x-feat, .x-rm, .x-bar a, .x-strip a, .x-more summary, .x-add summary):focus-visible { outline: 2px solid var(--x-blue); outline-offset: 2px; }

/* ---------- section bar: where you are = bold + underline ---------- */
body[data-xp] .x-bar { position: sticky; top: var(--nav-h); z-index: 36; background: var(--x-sunk); border-block: 1px solid var(--x-line); }
body[data-xp] .x-bar-in { display: flex; gap: 4px; padding-inline: var(--edge); overflow-x: auto; scrollbar-width: none; }
body[data-xp] .x-bar-in::-webkit-scrollbar { display: none; }
body[data-xp] .x-bar a:not(#_) { flex: none; display: inline-flex; align-items: center; gap: 8px; height: var(--x-bar-h); padding: 0 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--x-ink2) !important; font: 600 15px var(--x-f); text-decoration: none !important; background: none; transition: color 160ms ease, border-color 160ms ease; }
body[data-xp] .x-bar a:first-child:not(#_) { padding-left: 0; }
body[data-xp] .x-bar a svg { width: 16px; height: 16px; color: var(--x-ink3); flex: none; }
body[data-xp] .x-bar a small { padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--x-line); color: var(--x-ink2); font: 600 12.5px var(--x-f); white-space: nowrap; }
body[data-xp] .x-bar a:hover:not(#_) { color: var(--x-ink) !important; }
body[data-xp] .x-bar a[aria-current]:not(#_) { color: var(--x-ink) !important; font-weight: 700; border-bottom-color: var(--x-blue); }
body[data-xp] .x-bar a[aria-current] svg { color: var(--x-ink); }
body[data-xp] .z-grid { margin-top: 28px; }
body[data-xp] :is(.x-day, .x-sec):not(#_) { scroll-margin-top: calc(var(--nav-h) + var(--x-bar-h) + 16px) !important; }

/* ---------- section heads: one pattern everywhere ---------- */
body[data-xp] .x-sec > .z-lead:not(#_) { margin: 0 0 28px; font: 400 17px/1.55 var(--x-f); color: var(--x-body); max-width: 44em !important; }
body[data-xp] .x-h3 { margin: 40px 0 14px; font: 700 22px/1.25 var(--x-f); color: var(--x-ink); }

/* ---------- photos: the image over an icon tile (the tile shows when there is no honest photo) ---------- */
body[data-xp] .x-ph { position: relative; display: block; overflow: hidden; background: var(--x-sunk); }
body[data-xp] .x-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
body[data-xp] .x-ph img:is(.ph-none, :not([src])) { opacity: 0; }
body[data-xp] .x-ph-i { position: absolute; inset: 0; display: grid; place-items: center; color: #a3a3a3; }
body[data-xp] .x-ph-i svg { width: 30px; height: 30px; }
body[data-xp] .x-ph.sq { flex: none; width: 56px; height: 56px; border-radius: 10px; }
body[data-xp] .x-ph.sq .x-ph-i svg { width: 22px; height: 22px; }
body[data-xp] .x-ph.sq.ico .x-ph-i { color: var(--x-ink2); }

/* ---------- at a glance ---------- */
body[data-xp] .z-main > .x-glance:not(#_) { padding-top: 48px !important; }
body[data-xp] .x-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
body[data-xp] .x-strip a:not(#_) { display: flex; align-items: center; gap: 12px; height: 100%; box-sizing: border-box; padding: 10px 12px 10px 10px; border: 1px solid var(--x-line); border-radius: 14px; background: #fff; color: var(--x-ink) !important; text-decoration: none !important; transition: border-color 160ms ease, background-color 160ms ease; }
body[data-xp] .x-strip a:hover:not(#_) { border-color: var(--x-ink); background: var(--x-band); }
body[data-xp] .x-strip-b { display: grid; gap: 1px; min-width: 0; font: 400 14.5px/1.35 var(--x-f); }
body[data-xp] .x-strip-b b { font-weight: 700; color: var(--x-ink); }
body[data-xp] .x-strip-b span { color: var(--x-ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body[data-xp] .x-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
body[data-xp] .x-feats li { display: grid; }
body[data-xp] .x-feat { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 18px; border: 1px solid transparent; border-radius: 16px; background: var(--x-band); color: var(--x-ink); text-align: left; cursor: pointer; font: inherit; transition: background-color 160ms ease, border-color 160ms ease; }
body[data-xp] .x-feat:hover { background: var(--x-blue-1); border-color: var(--x-blue); }
body[data-xp] .x-feat-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--x-line); color: var(--x-blue); }
body[data-xp] .x-feat-i svg { width: 20px; height: 20px; }
body[data-xp] .x-feat-b { display: grid; gap: 4px; align-content: start; }
body[data-xp] .x-feat-b b { font: 700 18px/1.25 var(--x-f); }
body[data-xp] .x-feat-b small { font: 400 14.5px/1.45 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-feat-go { display: inline-flex; align-items: center; gap: 6px; font: 700 14.5px var(--x-f); color: var(--x-blue); }
body[data-xp] .x-feat-go svg { width: 16px; height: 16px; transition: transform 160ms ease; }
body[data-xp] .x-feat:hover .x-feat-go svg { transform: translateX(3px); }

/* ---------- a day ---------- */
body[data-xp] .x-days { display: grid; gap: 24px; }
body[data-xp] .x-day { padding: 24px; border: 1px solid var(--x-line); border-radius: 20px; background: #fff; }
body[data-xp] .x-day-h { display: flex; align-items: flex-start; gap: 14px; }
body[data-xp] .x-day-n { flex: none; margin-top: 1px; padding: 5px 12px; border-radius: 999px; background: var(--x-ink); color: #fff; font: 700 14px var(--x-f); white-space: nowrap; }
body[data-xp] .x-day-t h3:not(#_) { margin: 0; font: 700 22px/1.25 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-day-t p { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font: 400 14.5px/1.4 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-day-t p svg { width: 16px; height: 16px; flex: none; color: var(--x-ink3); }
body[data-xp] .x-day-g { margin-top: 20px; }
body[data-xp] .x-day-g.has-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 32%); gap: 24px; align-items: start; }
body[data-xp] .x-day-r { position: sticky; top: calc(var(--nav-h) + var(--x-bar-h) + 16px); }
body[data-xp] .x-map { height: 300px; border: 1px solid var(--x-line); border-radius: 16px; overflow: hidden; background: var(--x-sunk); isolation: isolate; }
body[data-xp] .x-day.travel .x-map { height: 240px; }

/* the journey: total on the header, the legs side by side, then the comparison */
body[data-xp] .x-jour { margin-top: 20px; padding: 18px 20px 20px; border-radius: 16px; background: var(--x-band); }
body[data-xp] .x-day.travel .x-jour { margin-top: 0; }
body[data-xp] .x-jour-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
body[data-xp] .x-jour-t { display: inline-flex; align-items: center; gap: 8px; color: var(--x-ink); }
body[data-xp] .x-jour-t svg { width: 19px; height: 19px; }
body[data-xp] .x-jour-t b { font: 700 18px var(--x-f); }
body[data-xp] .x-from { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 30px 0 12px; height: 36px; border: 1px solid #767676; border-radius: 999px; background: #fff; font: 400 14.5px var(--x-f); color: var(--x-ink2); cursor: pointer; }
body[data-xp] .x-from select { appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0; font: 700 14.5px var(--x-f); color: var(--x-ink); cursor: pointer; max-width: 180px; text-overflow: ellipsis; outline: none; }
body[data-xp] .x-from svg { position: absolute; right: 10px; width: 15px; height: 15px; pointer-events: none; color: var(--x-ink2); }
body[data-xp] .x-from:focus-within { border-color: var(--x-blue); box-shadow: 0 0 0 1px var(--x-blue); }
body[data-xp] .x-jour-tot { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 700 15.5px var(--x-f); color: var(--x-ink); }
body[data-xp] .x-jour-tot svg { width: 17px; height: 17px; color: var(--x-ink3); }
body[data-xp] .x-legs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; padding: 0; list-style: none; }
body[data-xp] .x-legs li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-content: start; padding: 0 16px; border-left: 1px dashed var(--x-line2); }
body[data-xp] .x-legs li:first-child { padding-left: 0; border-left: 0; }
body[data-xp] .x-leg-i { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--x-line); color: var(--x-ink); }
body[data-xp] .x-leg-i svg { width: 19px; height: 19px; }
body[data-xp] .x-leg-b { display: grid; gap: 2px; }
body[data-xp] .x-leg-b b { font: 700 15.5px/1.3 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-leg-b small { font: 400 14px/1.4 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-leg-n { grid-column: 2; display: flex; align-items: baseline; gap: 8px; font: 700 15px var(--x-f); color: var(--x-ink); }
body[data-xp] .x-leg-n small { font: 600 13.5px var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-leg-n small.x-money { color: var(--x-green); }
body[data-xp] .x-jopts { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--x-line); }
body[data-xp] .x-jopts h5 { margin: 0 0 10px; font: 700 16px var(--x-f); color: var(--x-ink); }
body[data-xp] .x-jopts ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
body[data-xp] .x-jopt { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-content: start; padding: 14px 16px; border: 1px solid var(--x-line); border-radius: 14px; background: #fff; }
body[data-xp] .x-jopt-tag { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--x-sunk); font: 700 12.5px var(--x-f); color: var(--x-ink); }
body[data-xp] .x-jopt.inc .x-jopt-tag { background: var(--x-green-2); color: var(--x-green); }
body[data-xp] .x-jopt-tag svg { width: 13px; height: 13px; }
body[data-xp] .x-jopt-b { grid-column: 1 / -1; display: grid; gap: 2px; }
body[data-xp] .x-jopt-b b { display: inline-flex; align-items: center; gap: 7px; font: 700 15.5px/1.3 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-jopt-b b svg { width: 17px; height: 17px; flex: none; color: var(--x-ink2); }
body[data-xp] .x-jopt-b small { font: 400 14px/1.4 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-jopt-t { align-self: end; display: inline-flex; align-items: center; gap: 6px; font: 700 15px var(--x-f); color: var(--x-ink); }
body[data-xp] .x-jopt-t svg { width: 15px; height: 15px; color: var(--x-ink3); }
body[data-xp] .x-jopt-p { display: grid; justify-items: end; gap: 1px; }
body[data-xp] .x-jopt-p b { font: 700 16px var(--x-f); }
body[data-xp] .x-jopt-p small { font: 500 13px var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-fine { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; font: 400 13px/1.45 var(--x-f); color: var(--x-ink3); }
body[data-xp] .x-fine svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
body[data-xp] .x-jalt { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--x-line); border-radius: 14px; background: #fff; }
body[data-xp] .x-jalt > svg { width: 20px; height: 20px; flex: none; color: var(--x-ink2); }
body[data-xp] .x-jalt > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
body[data-xp] .x-jalt b { font: 700 15.5px var(--x-f); color: var(--x-ink); }
body[data-xp] .x-jalt small { font: 400 14px/1.4 var(--x-f); color: var(--x-ink2); }

/* stops: photo, name, actions, facts, one sentence */
body[data-xp] .x-stops { display: grid; margin: 0; padding: 0; list-style: none; }
body[data-xp] .x-stop { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; }
body[data-xp] .x-stop-ph { position: relative; }
body[data-xp] .x-stop-ph .x-ph { width: 132px; height: 104px; border-radius: 12px; }
body[data-xp] .x-pin { position: absolute; top: -8px; left: -8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--x-blue); border: 2px solid #fff; color: #fff; font: 700 13px var(--x-f); }
body[data-xp] .x-stop-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
body[data-xp] .x-stop-h h4:not(#_) { margin: 6px 0 0; font: 700 19px/1.25 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-stop-a { flex: none; display: flex; align-items: center; gap: 4px; }
body[data-xp] .x-rm { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--x-ink3); cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
body[data-xp] .x-rm:hover { background: var(--x-sunk); color: var(--x-ink); }
body[data-xp] .x-rm svg { width: 18px; height: 18px; }
body[data-xp] .x-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; font: 600 14.5px var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-facts span { display: inline-flex; align-items: center; gap: 6px; }
body[data-xp] .x-facts svg { width: 15px; height: 15px; flex: none; color: var(--x-ink3); }
body[data-xp] .x-facts .x-money svg { color: var(--x-green); }
body[data-xp] .x-about { margin: 8px 0 0; font: 400 16px/1.55 var(--x-f); color: var(--x-body); max-width: 40em; }
body[data-xp] .x-more { margin-top: 8px; }
body[data-xp] .x-more > summary { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; list-style: none; cursor: pointer; font: 700 14.5px var(--x-f); color: var(--x-blue); border-radius: 6px; }
body[data-xp] .x-more > summary::-webkit-details-marker { display: none; }
body[data-xp] .x-more > summary svg { width: 16px; height: 16px; transition: transform 160ms ease; }
body[data-xp] .x-more[open] > summary svg { transform: rotate(180deg); }
body[data-xp] .x-more > :not(summary) { max-width: 40em; }
body[data-xp] .x-hop { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; }
body[data-xp] .x-hop::before { content: ''; position: absolute; left: 65px; top: 2px; bottom: 2px; border-left: 2px dashed var(--x-line2); }
body[data-xp] .x-hop-i { position: relative; justify-self: center; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--x-sunk); border: 2px solid #fff; color: var(--x-ink); }
body[data-xp] .x-hop-i svg { width: 18px; height: 18px; }
body[data-xp] .x-hop-b { display: grid; gap: 2px; min-width: 0; }
body[data-xp] .x-hop-b b { font: 700 15px/1.3 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-hop-b small { font: 400 14px/1.4 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-hop-p { font: 700 15px var(--x-f); white-space: nowrap; padding-right: 8px; }
body[data-xp] .x-eat { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--x-band); }
body[data-xp] .x-eat-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--x-line); color: var(--x-ink); }
body[data-xp] .x-eat-i svg { width: 18px; height: 18px; }
body[data-xp] .x-eat h5 { margin: 0; font: 700 16px/1.3 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-eat p { margin: 3px 0 0; font: 400 14.5px/1.5 var(--x-f); color: var(--x-ink2); max-width: 40em; }
body[data-xp] .x-add { margin-top: 16px; }
body[data-xp] .x-add > summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1.5px dashed var(--x-blue); border-radius: 14px; background: #fff; color: var(--x-blue); font: 700 15.5px var(--x-f); cursor: pointer; list-style: none; transition: background-color 160ms ease; }
body[data-xp] .x-add > summary::-webkit-details-marker { display: none; }
body[data-xp] .x-add > summary:hover, body[data-xp] .x-add[open] > summary { background: var(--x-blue-1); border-style: solid; }
body[data-xp] .x-add > summary svg { width: 18px; height: 18px; transition: transform 160ms ease; }
body[data-xp] .x-add[open] > summary svg { transform: rotate(45deg); }
body[data-xp] .x-add .x-ideas { margin-top: 14px; }

/* ideas: one card design for "add a stop" and for open days */
body[data-xp] .x-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
body[data-xp] .x-idea { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--x-line); border-radius: 16px; overflow: hidden; background: #fff; }
body[data-xp] .x-idea > .x-ph { aspect-ratio: 16 / 10; }
body[data-xp] .x-idea-b { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 14px 16px 16px; }
body[data-xp] .x-idea-b h4:not(#_) { margin: 0; font: 700 18px/1.25 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-idea-l { margin: 0; font: 400 14.5px/1.4 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-idea-b .x-facts { margin: 2px 0 8px; align-self: start; }
body[data-xp] .x-idea-b .x-btn { align-self: end; }
body[data-xp] .x-empty { display: flex; gap: 8px; align-items: center; margin: 0; font: 400 15px/1.5 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-empty svg { width: 18px; height: 18px; flex: none; }
body[data-xp] .x-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; font: 700 15px var(--x-f); color: var(--x-ink); }
body[data-xp] .x-route svg { width: 17px; height: 17px; color: var(--x-blue); }

/* ---------- other ways: groups of plain cards ---------- */
body[data-xp] .x-mine { display: grid; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--x-band); }
body[data-xp] .x-mine-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font: 400 15.5px var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-mine-t svg { width: 19px; height: 19px; color: var(--x-blue); }
body[data-xp] .x-mine-t b { font-weight: 700; color: var(--x-ink); }
body[data-xp] .x-mine .v4-key:not(#_) { margin: 0; }
body[data-xp] .x-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 24px; margin-top: 28px; }
body[data-xp] .x-wgroup { display: grid; gap: 12px; align-content: start; }
body[data-xp] .x-wgroup h3:not(#_) { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 20px/1.25 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-wgroup h3 svg { width: 21px; height: 21px; flex: none; color: var(--x-ink2); }
body[data-xp] .x-way { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--x-line); border-radius: 16px; background: #fff; }
body[data-xp] .x-way.on { border: 2px solid var(--x-blue); padding: 15px 17px; }
body[data-xp] .x-way-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
body[data-xp] .x-way-h h4:not(#_) { margin: 0; font: 700 18px/1.25 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-way-p { font: 700 20px var(--x-f); white-space: nowrap; }
body[data-xp] .x-way-n { margin: 0; font: 400 14.5px/1.45 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-way-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
body[data-xp] .x-way-f .x-btn { margin-left: auto; }
body[data-xp] .x-way-d { font: 600 14px var(--x-f); color: var(--x-ink2); }

/* ---------- summary card: what you chose = white tile + blue outline, ink text ---------- */
body[data-xp] .z-card .r-set .z-segc:not(#_) { background: var(--x-sunk) !important; border: 0 !important; padding: 3px; gap: 3px; }
body[data-xp] .z-card .r-set .z-segc button:not(#_) { background: none !important; color: var(--x-ink2) !important; border: 1.5px solid transparent !important; font-weight: 600; min-height: 34px; }
body[data-xp] .z-card .r-set .z-segc button:hover:not(#_) { color: var(--x-ink) !important; }
body[data-xp] .z-card .r-set .z-segc button[aria-pressed="true"]:not(#_) { background: #fff !important; color: var(--x-ink) !important; border-color: var(--x-blue) !important; font-weight: 700; }
body[data-xp] .z-card .r-set { background: var(--x-band) !important; }
body[data-xp] .z-card .z-step button:disabled { opacity: .35; cursor: not-allowed; }
body[data-xp] .r-set.x-flash { animation: x-flash 1.4s ease-out 1; }
@keyframes x-flash { 0%, 55% { outline: 2px solid var(--x-blue); outline-offset: 3px; } 100% { outline: 2px solid transparent; outline-offset: 3px; } }

/* ---------- phones and narrow screens ---------- */
@media (max-width: 1000px) {
  body[data-xp] .x-day-g.has-side { grid-template-columns: 1fr; }
  body[data-xp] .x-day-r { position: static; order: 2; }
  body[data-xp] .x-map { height: 220px; }
}
@media (max-width: 700px) {
  body[data-xp] .x-day { padding: 16px; border-radius: 16px; }
  body[data-xp] .x-day-t h3:not(#_) { font-size: 20px; }
  body[data-xp] .x-jour { padding: 14px; }
  body[data-xp] .x-jour-tot { margin-left: 0; flex-basis: 100%; }
  body[data-xp] .x-legs { grid-template-columns: 1fr; gap: 12px; }
  body[data-xp] .x-legs li { padding: 12px 0 0; border-left: 0; border-top: 1px dashed var(--x-line2); }
  body[data-xp] .x-legs li:first-child { padding-top: 0; border-top: 0; }
  body[data-xp] .x-jalt { flex-wrap: wrap; } body[data-xp] .x-jalt .x-btn { margin-left: 32px; }
  body[data-xp] .x-stop { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  body[data-xp] .x-stop-ph .x-ph { width: 84px; height: 84px; }
  body[data-xp] .x-stop-h { flex-wrap: wrap; row-gap: 8px; } body[data-xp] .x-stop-h h4:not(#_) { flex: 1 1 100%; margin-top: 0; }
  body[data-xp] .x-stop-a { order: 2; } body[data-xp] .x-facts { margin-top: 8px; }
  body[data-xp] .x-hop { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  body[data-xp] .x-hop::before { left: 41px; }
  body[data-xp] .x-hop-p { grid-column: 2; padding: 0; }
  body[data-xp] :is(.x-ideas, .x-strip) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  body[data-xp] :is(.x-ideas, .x-strip)::-webkit-scrollbar { display: none; }
  body[data-xp] .x-idea { flex: 0 0 76%; scroll-snap-align: start; }
  body[data-xp] .x-strip li { flex: 0 0 210px; scroll-snap-align: start; }
  body[data-xp] .x-feats { grid-template-columns: 1fr; gap: 10px; }
  body[data-xp] .x-feat { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; padding: 14px; }
  body[data-xp] .x-feat-go { grid-column: 2; }
  body[data-xp] .x-h3 { margin-top: 28px; font-size: 20px; }
  body[data-xp] .x-ways { grid-template-columns: 1fr; }
  body[data-xp] .x-bar-in { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { body[data-xp] .r-set.x-flash { animation: none; } }

/* open days: up to three ideas across the card */
body[data-xp] .x-ideas.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* other ways: two columns of groups */
@media (min-width: 701px) { body[data-xp] .x-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- suggestions: one card design for both rows, on the page's own bands (no dark block) ---------- */
body[data-xp] .pl-rails:not(#_) { padding: 0 !important; margin: 0 !important; max-width: none !important; background: none !important; }
body[data-xp] .x-rail { padding-block: clamp(48px, 6vw, 72px); background: #fff; }
body[data-xp] .x-rail.band { background: var(--x-band); }
body[data-xp] .x-rail-in { padding-inline: var(--edge); }
body[data-xp] .x-rail-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
body[data-xp] .x-rail-h h2:not(#_) { margin: 0; font: 400 clamp(32px, 3.2vw, 44px)/1 'League Gothic', 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .01em; color: var(--x-ink); }
body[data-xp] .x-rail-h p { margin: 8px 0 0; font: 400 17px/1.5 var(--x-f); color: var(--x-body); }
body[data-xp] .x-rail-nav { display: flex; gap: 8px; flex: none; }
body[data-xp] .x-rail-nav button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--x-line2); border-radius: 50%; background: #fff; color: var(--x-ink); cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
body[data-xp] .x-rail-nav button:hover { border-color: var(--x-ink); }
body[data-xp] .x-rail-nav svg { width: 20px; height: 20px; }
body[data-xp] .x-rail-row { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
body[data-xp] .x-rail-row::-webkit-scrollbar { display: none; }
body[data-xp] .x-rc { position: relative; flex: 0 0 calc((100% - 48px) / 4); min-width: 232px; scroll-snap-align: start; }
body[data-xp] .x-rc a:not(#_) { display: grid; gap: 12px; color: var(--x-ink) !important; text-decoration: none !important; }
body[data-xp] .x-rc .x-ph { aspect-ratio: 4 / 3; border-radius: 16px; }
body[data-xp] .x-rc .x-ph img { transition: transform 400ms cubic-bezier(.2, .8, .2, 1); }
body[data-xp] .x-rc a:hover .x-ph img { transform: scale(1.04); }
body[data-xp] .x-rc-b { display: grid; gap: 2px; font: 400 14.5px/1.4 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-rc-b > b { font: 700 18px/1.25 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-rc-p { margin-top: 6px; color: var(--x-ink2); }
body[data-xp] .x-rc-p b { font-size: 17px; }
body[data-xp] .x-rc-save { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: var(--x-ink); cursor: pointer; }
body[data-xp] .x-rc-save svg { width: 18px; height: 18px; }
body[data-xp] .x-rc-save[aria-pressed="true"] svg { fill: var(--x-ink); }
body[data-xp] .x-rc-save:focus-visible, body[data-xp] .x-rail-nav button:focus-visible { outline: 2px solid var(--x-blue); outline-offset: 2px; }
@media (max-width: 700px) {
  body[data-xp] .x-ideas.three { display: flex; }
  body[data-xp] .x-rc { flex-basis: 70%; }
  body[data-xp] .x-rail-nav { display: none; }
  body[data-xp] .x-rail-in { padding-inline: 16px; }
}
@media (max-width: 1000px) and (min-width: 701px) { body[data-xp] .x-ideas.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } body[data-xp] .x-rc { flex-basis: calc((100% - 32px) / 3); } }

/* travel day: the route map is a wide strip under the journey */
body[data-xp] .x-day.travel .x-map { height: 220px; margin-top: 16px; }
/* the swap dialog uses the same photo tile */
.r-cmp-ph .x-ph { position: absolute; inset: 0; background: #f2f2f2; display: block; overflow: hidden; }
.r-cmp-ph .x-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-cmp-ph .x-ph img:is(.ph-none, :not([src])) { opacity: 0; }
.r-cmp-ph .x-ph-i { position: absolute; inset: 0; display: grid; place-items: center; color: #a3a3a3; }
.r-cmp-ph .x-ph-i svg { width: 44px; height: 44px; }
/* narrow screens: every block keeps to the column (wide rows scroll inside themselves) */
@media (max-width: 1000px) { body[data-xp] .z-main > *:not(#_) { min-width: 0; max-width: 100%; align-self: stretch; box-sizing: border-box; } }

/* ===== round 81 (8822): travel hop, compare/remove buttons, add something, free day, own stop ===== */
/* travel between two stops: one clear row, same column as the photos, text at full strength */
body[data-xp] .x-hop { grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: stretch; padding: 10px 0; }
body[data-xp] .x-hop::before { left: 65px; top: 0; bottom: 0; }
body[data-xp] .x-hop-i { align-self: center; width: 40px; height: 40px; background: #fff; border: 2px solid var(--x-line2); }
body[data-xp] .x-hop-c { display: grid; gap: 4px; padding: 12px 16px; border-radius: 12px; background: var(--x-band); border: 1px solid var(--x-line); min-width: 0; }
body[data-xp] .x-hop-c > p { margin: 0; }
body[data-xp] .x-hop-r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
body[data-xp] .x-hop-r b { font: 700 16px/1.3 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-hop-p { font: 700 16px var(--x-f); white-space: nowrap; padding: 0; }
body[data-xp] .x-hop-m { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 600 14.5px/1.4 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-hop-m span { display: inline-flex; align-items: center; gap: 6px; }
body[data-xp] .x-hop-m svg { width: 15px; height: 15px; color: var(--x-ink2); }
body[data-xp] .x-hop-n { font: 400 14.5px/1.4 var(--x-f); color: var(--x-ink2); }
/* compare = outline action, remove = quiet text action, kept apart */
body[data-xp] .x-stop-a { gap: 14px; }
body[data-xp] .x-swap { white-space: nowrap; }
body[data-xp] .x-rm { width: auto; height: 38px; border-radius: 999px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; font: 600 14.5px var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-rm svg { width: 16px; height: 16px; }
/* add something to this day */
body[data-xp] .x-add > summary { flex-direction: column; gap: 2px; min-height: 64px; padding: 10px 16px; }
body[data-xp] .x-add .x-add-s { display: inline-flex; align-items: center; gap: 8px; }
body[data-xp] .x-add > summary small { padding: 0; background: none; border-radius: 0; font: 400 14.5px var(--x-f); color: var(--x-ink2); }
/* add your own */
body[data-xp] .x-own { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 14px; padding: 20px; border: 1.5px dashed var(--x-line2); border-radius: 16px; background: #fff; }
body[data-xp] .x-ideas + .x-own, body[data-xp] .x-ideas.three + .x-own { margin-top: 16px; }
body[data-xp] .x-own h4:not(#_) { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 18px/1.25 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-own h4 svg { width: 18px; height: 18px; color: var(--x-blue); }
body[data-xp] .x-own > p { margin: 0; font: 400 15px/1.45 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-own-g { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
body[data-xp] .x-fld { display: grid; gap: 4px; min-width: 0; }
body[data-xp] .x-fld.wide { grid-column: span 2; }
body[data-xp] .x-own-g .x-fld:first-child { grid-column: 1; }
body[data-xp] .x-fld > span { font: 600 14px var(--x-f); color: var(--x-ink); }
body[data-xp] .x-fld :is(input, select) { height: 44px; padding: 0 12px; border: 1px solid var(--x-line2); border-radius: 10px; background: #fff; color: var(--x-ink); font: 400 16px var(--x-f); min-width: 0; }
body[data-xp] .x-fld :is(input, select):focus { outline: 2px solid var(--x-blue); outline-offset: 1px; border-color: var(--x-blue); }
body[data-xp] .x-own .x-btn { justify-self: start; }
body[data-xp] .x-day.open .x-day-l { display: grid; gap: 0; }
@media (max-width: 700px) {
  body[data-xp] .x-hop { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  body[data-xp] .x-hop::before { left: 41px; }
  body[data-xp] .x-hop-p { grid-column: auto; }
  body[data-xp] .x-own-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body[data-xp] .x-own-g .x-fld:first-child, body[data-xp] .x-fld.wide { grid-column: 1 / -1; }
  body[data-xp] .x-rm span { display: none; }
}

/* ===== round 81, part 2: journey blocks, question headings, spacing rhythm, similar trips ===== */
/* rhythm: 8 · 16 · 24 · 32 · 48 · 72 — every section, card and gap uses these */
body[data-xp] { --x-s1: 8px; --x-s2: 16px; --x-s3: 24px; --x-s4: 32px; --x-s5: 48px; --x-s6: clamp(48px, 6vw, 72px); }
body[data-xp] .z-main > :is(.z-story, .z-sec):not(#_) { padding-top: var(--x-s6) !important; padding-bottom: var(--x-s6) !important; }
body[data-xp] .z-main > .x-glance:not(#_) { padding-top: var(--x-s6) !important; }
body[data-xp] .z-main > :is(.z-story, .z-sec) > h2:not(#_) { margin: 0 0 var(--x-s2); }
body[data-xp] .x-sec > .z-lead:not(#_) { margin: 0 0 var(--x-s4); }
body[data-xp] .x-h3 { margin: var(--x-s5) 0 var(--x-s2); }
body[data-xp] .x-h3.first { margin-top: 0; }
body[data-xp] .x-days { gap: var(--x-s3); }
body[data-xp] .x-day-g { margin-top: var(--x-s3); }
body[data-xp] .x-stops { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
body[data-xp] .x-stop { padding: 0; }
body[data-xp] .x-eat { margin-top: var(--x-s3); }
body[data-xp] .x-add { margin-top: var(--x-s2); }
body[data-xp] .x-ways { gap: var(--x-s5) var(--x-s3); margin-top: var(--x-s4); }
body[data-xp] .x-wgroup { gap: var(--x-s2); }
body[data-xp] .x-way { gap: 12px; padding: var(--x-s2) var(--x-s3); }
body[data-xp] .x-way.on { padding: 15px 23px; }
body[data-xp] .x-feats { gap: var(--x-s2); }
body[data-xp] .x-strip { gap: 12px; }
body[data-xp] .cb-top, body[data-xp] .cb-cards { margin-bottom: var(--x-s3); }
@media (max-width: 700px) { body[data-xp] .x-sec > .z-lead:not(#_) { margin-bottom: var(--x-s3); } body[data-xp] .x-h3 { margin-top: var(--x-s4); } }

/* going home and getting there share one block: a title, where from and to, the three legs, the options */
body[data-xp] .x-day .x-jour { margin-top: var(--x-s3); padding: var(--x-s3); border-radius: 16px; background: var(--x-band); border: 1px solid var(--x-line); }
body[data-xp] .x-day .x-jour.home { margin-top: var(--x-s4); }
body[data-xp] .x-day.travel .x-jour { margin-top: 0; }
body[data-xp] .x-jour-t { display: flex; align-items: center; gap: 12px; }
body[data-xp] .x-jour-t > svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: #fff; border: 1px solid var(--x-line); color: var(--x-ink); flex: none; }
body[data-xp] .x-jour-t h3:not(#_) { margin: 0; font: 700 20px/1.25 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-jour-t p { margin: 2px 0 0; font: 400 15px/1.4 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-legs { margin-top: var(--x-s3); }
body[data-xp] .x-jopts { margin-top: var(--x-s3); padding-top: var(--x-s3); }
body[data-xp] .x-jopts h4 { margin: 0 0 12px; font: 700 17px/1.3 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-jopts ul { gap: 12px; }
body[data-xp] .x-jalt { margin-top: 12px; }

/* similar trips: tall photo cards, name on the photo, outline button (after Black Tomato; the country sits under the title) */
body[data-xp] .x-rail-row { gap: var(--x-s3); }
body[data-xp] .x-rc { flex: 0 0 calc((100% - 3 * var(--x-s3)) / 4); min-width: 240px; }
body[data-xp] .x-rc a:not(#_) { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--x-sunk); color: #fff !important; }
body[data-xp] .x-rc .x-ph { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
body[data-xp] .x-rc .x-ph img { width: 100%; height: 100%; object-fit: cover; }
body[data-xp] .x-rc-b { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: var(--x-s2); background: rgba(20, 20, 22, .72); color: #fff; font: 400 15px/1.4 var(--x-f); }
body[data-xp] .x-rc-b > b { font: 700 19px/1.25 var(--x-f); color: #fff; }
body[data-xp] .x-rc-b > span { color: #fff; }
body[data-xp] .x-rc-p { margin-top: 4px; color: #fff; }
body[data-xp] .x-rc-p b { font-size: 16px; color: #fff; }
body[data-xp] .x-rc-go { justify-self: start; margin-top: 8px; padding: 8px 16px; border: 1.5px solid #fff; border-radius: 999px; font: 700 14.5px var(--x-f); color: #fff; transition: background-color 160ms ease, color 160ms ease; }
body[data-xp] .x-rc a:hover .x-rc-go { background: #fff; color: var(--x-ink); }
body[data-xp] .x-rc a:focus-visible { outline: 3px solid var(--x-blue); outline-offset: 3px; }
@media (max-width: 700px) { body[data-xp] .x-rc { flex-basis: 72%; } }
@media (max-width: 1000px) and (min-width: 701px) { body[data-xp] .x-rc { flex-basis: calc((100% - 2 * var(--x-s3)) / 3); } }

/* ===== round 82: similar trips after Black Tomato: dark band with contour lines, heading left, tall photo cards ===== */
body[data-xp] .x-rail-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h nav" "row row"; align-items: end; gap: var(--x-s3) var(--x-s2); }
body[data-xp] .x-rail-h { grid-area: h; margin: 0; }
body[data-xp] .x-rail-nav { grid-area: nav; }
body[data-xp] .x-rail-row { grid-area: row; }
body[data-xp] .x-rc { flex: 0 0 clamp(240px, 19.5vw, 280px); min-width: 0; }
body[data-xp] .x-rc a:not(#_) { aspect-ratio: 9 / 16; border-radius: 4px; }
body[data-xp] .x-rc a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .55) 32%, rgba(0, 0, 0, 0) 62%); pointer-events: none; }
body[data-xp] .x-rc-b { z-index: 1; background: none; gap: 6px; padding: 22px 20px; }
body[data-xp] .x-rc-b > b { font: 700 19px/1.25 var(--x-f); }
body[data-xp] .x-rc-b > span { color: rgba(255, 255, 255, .92); }
body[data-xp] .x-rc-go { margin-top: 14px; padding: 11px 20px; border-radius: 2px; border-width: 1px; font-size: 14.5px; }
body[data-xp] .x-rc-save { z-index: 2; background: rgba(255, 255, 255, .92); }
body[data-xp] .x-rail.dark { position: relative; overflow: hidden; background: radial-gradient(ellipse 70% 90% at 78% 30%, #3d3d3d 0%, #262626 58%, #1a1a1a 100%); }
body[data-xp] .x-rail.dark::before { content: ''; position: absolute; left: -90px; bottom: -120px; width: 560px; height: 600px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22560%22 height=%22600%22 viewBox=%220 0 560 600%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-opacity=%22.20%22 stroke-width=%221.5%22%3E%3Cpath d=%22M284.6%2C300.0 L287.9%2C304.7 L287.0%2C309.6 L282.0%2C312.8 L275.5%2C313.8 L270.2%2C314.1 L266.2%2C315.3 L262.3%2C317.1 L257.6%2C318.1 L252.9%2C317.6 L248.3%2C316.2 L243.4%2C314.8 L238.1%2C312.8 L234.1%2C309.2 L233.8%2C304.5 L237.1%2C300.0 L241.4%2C296.8 L243.6%2C294.2 L243.6%2C290.4 L243.7%2C285.5 L246.5%2C281.2 L251.6%2C279.2 L257.3%2C279.4 L262.6%2C280.3 L267.5%2C281.5 L272.0%2C283.3 L275.1%2C286.5 L276.5%2C290.4 L277.5%2C293.8 L280.2%2C296.6Z%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M310.7%2C300.0 L316.2%2C309.6 L313.7%2C319.1 L303.0%2C325.0 L289.7%2C326.4 L279.2%2C326.6 L271.9%2C329.3 L264.5%2C334.2 L255.0%2C338.0 L244.6%2C337.8 L235.1%2C334.5 L226.1%2C330.1 L217.2%2C324.9 L210.6%2C317.6 L209.9%2C308.5 L215.7%2C300.0 L223.3%2C293.8 L226.9%2C288.2 L226.2%2C280.3 L226.1%2C269.9 L231.7%2C260.8 L242.5%2C257.0 L254.6%2C258.7 L264.9%2C262.4 L274.0%2C265.5 L282.6%2C268.7 L289.7%2C273.6 L294.1%2C280.2 L297.4%2C286.7 L302.8%2C292.7Z%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M337.5%2C300.0 L343.5%2C314.2 L338.7%2C328.0 L322.5%2C336.3 L302.7%2C337.9 L287.5%2C338.1 L277.4%2C342.8 L266.9%2C352.2 L252.1%2C359.9 L235.4%2C360.5 L220.8%2C354.3 L209.0%2C345.3 L198.5%2C335.8 L190.2%2C324.8 L188.6%2C312.1 L195.0%2C300.0 L204.1%2C290.5 L208.5%2C281.6 L207.2%2C269.3 L207.3%2C253.2 L216.2%2C239.4 L233.4%2C234.4 L252.0%2C238.8 L267.0%2C246.5 L279.5%2C252.1 L292.1%2C255.6 L304.4%2C260.6 L313.7%2C268.8 L320.4%2C278.5 L328.0%2C288.4Z%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M363.8%2C300.0 L368.3%2C318.4 L360.8%2C335.9 L340.1%2C346.5 L315.1%2C348.9 L295.9%2C349.7 L283.2%2C357.2 L269.4%2C371.6 L249.0%2C383.9 L225.5%2C385.0 L206.1%2C374.7 L192.8%2C359.7 L182.4%2C345.1 L173.3%2C330.9 L169.4%2C315.4 L173.8%2C300.0 L182.5%2C286.8 L187.2%2C274.1 L186.3%2C257.2 L187.9%2C236.0 L200.9%2C218.1 L224.5%2C212.7 L249.5%2C220.4 L268.8%2C232.7 L284.2%2C240.5 L301.1%2C243.1 L319.9%2C246.7 L336.1%2C255.8 L346.9%2C269.1 L355.2%2C283.8Z%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M388.5%2C300.0 L389.5%2C322.0 L379.5%2C342.6 L356.1%2C355.8 L327.7%2C360.1 L305.3%2C362.7 L289.9%2C373.5 L272.2%2C392.8 L245.7%2C409.2 L215.2%2C410.2 L191.5%2C394.9 L178.1%2C372.8 L169.1%2C352.8 L159.3%2C335.9 L151.3%2C318.5 L151.0%2C300.0 L157.2%2C282.5 L162.5%2C265.3 L163.9%2C244.2 L168.8%2C218.9 L186.5%2C198.2 L216.5%2C192.8 L247.4%2C203.9 L270.5%2C220.2 L288.6%2C229.5 L310.3%2C230.3 L337.0%2C231.6 L361.3%2C241.1 L376.2%2C258.6 L383.6%2C279.0Z%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M410.2%2C300.0 L406.4%2C324.9 L394.9%2C348.0 L371.2%2C364.6 L341.5%2C372.4 L316.4%2C378.2 L297.5%2C392.4 L275.2%2C415.7 L242.3%2C434.9 L205.3%2C434.8 L177.9%2C413.7 L165.2%2C384.2 L158.3%2C359.1 L147.2%2C340.2 L133.0%2C321.6 L125.2%2C300.0 L127.7%2C277.5 L134.5%2C255.3 L140.6%2C230.6 L150.8%2C203.0 L173.9%2C180.7 L209.4%2C175.5 L245.4%2C188.9 L272.1%2C208.1 L293.3%2C217.9 L320.4%2C216.3 L355.9%2C214.8 L388.9%2C225.1 L407.5%2C247.5 L411.8%2C274.2Z%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M428.5%2C300.0 L419.2%2C327.1 L407.6%2C352.6 L386.4%2C373.5 L357.5%2C386.6 L329.9%2C396.8 L306.3%2C414.0 L278.3%2C439.5 L239.0%2C459.6 L196.1%2C457.3 L165.8%2C430.5 L154.0%2C394.1 L149.0%2C364.5 L135.4%2C344.4 L113.2%2C325.0 L96.0%2C300.0 L94.0%2C271.8 L103.9%2C244.4 L117.4%2C217.1 L135.0%2C188.9 L163.6%2C166.4 L203.5%2C161.0 L243.6%2C174.9 L273.8%2C195.0 L298.9%2C204.3 L332.1%2C200.2 L376.5%2C196.5 L418.0%2C208.2 L439.2%2C236.2 L438.5%2C269.7Z%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M443.1%2C300.0 L428.7%2C328.7 L419.0%2C356.6 L403.0%2C383.1 L376.4%2C403.4 L345.9%2C419.0 L316.1%2C438.1 L281.4%2C463.2 L236.1%2C481.8 L188.3%2C476.6 L155.4%2C444.9 L144.0%2C403.0 L139.6%2C370.0 L122.4%2C349.0 L90.7%2C328.8 L63.1%2C300.0 L57.0%2C265.5 L71.8%2C233.0 L95.5%2C204.4 L122.1%2C177.5 L155.9%2C155.7 L198.7%2C149.0 L241.7%2C160.9 L275.8%2C179.5 L305.7%2C187.5 L345.4%2C181.6 L398.3%2C177.1 L447.0%2C191.3 L469.5%2C225.4 L462.4%2C265.6Z%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M454.7%2C300.0 L436.3%2C330.0 L430.6%2C360.8 L421.8%2C394.1 L398.5%2C423.1 L364.2%2C444.4 L326.5%2C463.8 L284.4%2C485.5 L233.7%2C500.3 L182.0%2C492.0 L146.7%2C457.0 L134.3%2C411.7 L128.6%2C376.4 L106.4%2C354.7 L64.9%2C333.2 L27.2%2C300.0 L18.2%2C258.9 L40.0%2C221.7 L76.0%2C193.0 L112.5%2C168.9 L150.5%2C148.2 L194.4%2C138.6 L239.7%2C145.4 L278.4%2C160.2 L314.1%2C166.7 L360.4%2C160.8 L420.4%2C157.5 L474.5%2C175.3 L496.9%2C215.6 L483.1%2C262.1Z%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M464.7%2C300.0 L444.3%2C331.3 L444.1%2C365.6 L443.8%2C406.8 L423.8%2C445.5 L384.4%2C472.4 L337.2%2C490.0 L287.0%2C505.3 L231.9%2C514.2 L177.5%2C503.2 L139.2%2C467.4 L123.6%2C421.2 L114.3%2C384.7 L86.1%2C361.9 L35.6%2C338.2 L-10.3%2C300.0 L-20.4%2C252.3 L10.2%2C211.0 L59.5%2C183.5 L106.0%2C163.1 L146.9%2C143.3 L190.4%2C128.6 L237.3%2C127.4 L281.5%2C136.3 L324.3%2C141.8 L376.7%2C138.3 L441.5%2C138.8 L498.6%2C161.3 L520.0%2C207.4 L500.3%2C259.1Z%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M475.0%2C300.0 L454.8%2C333.1 L461.1%2C371.6 L469.1%2C421.5 L451.4%2C470.1 L405.5%2C501.6 L347.4%2C515.2 L289.1%2C521.5 L230.7%2C523.2 L174.4%2C510.7 L132.2%2C477.0 L110.7%2C432.6 L95.2%2C395.8 L60.9%2C370.9 L3.6%2C343.6 L-47.5%2C300.0 L-56.3%2C246.2 L-16.2%2C201.6 L46.4%2C175.8 L101.8%2C159.4 L144.2%2C139.6 L186.0%2C117.7 L234.5%2C105.8 L285.3%2C107.5 L335.9%2C113.1 L393.5%2C115.0 L460.4%2C122.0 L518.0%2C150.1 L538.2%2C200.9 L514.7%2C256.7Z%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M487.9%2C300.0 L470.0%2C335.7 L482.7%2C379.3 L497.3%2C437.9 L480.2%2C495.6 L426.2%2C530.3 L356.7%2C538.1 L290.7%2C533.5 L230.1%2C527.8 L172.5%2C515.6 L124.9%2C487.3 L94.4%2C447.1 L70.6%2C410.1 L30.7%2C381.7 L-29.8%2C349.3 L-82.1%2C300.0 L-87.6%2C240.9 L-38.1%2C193.8 L36.2%2C169.9 L98.8%2C156.8 L141.2%2C135.4 L180.6%2C104.4 L231.1%2C80.0 L289.7%2C74.3 L348.6%2C81.9 L409.9%2C92.4 L475.8%2C108.2 L531.7%2C142.1 L551.4%2C196.2 L527.7%2C254.5Z%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") no-repeat; pointer-events: none; }
body[data-xp] .x-rail.dark .x-rail-in { grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "h row"; align-items: center; gap: 0 var(--x-s4); }
body[data-xp] .x-rail.dark .x-rail-h { align-self: center; }
body[data-xp] .x-rail.dark .x-rail-h h2:not(#_) { color: #fff; font-size: clamp(36px, 3.4vw, 48px); }
body[data-xp] .x-rail.dark .x-rail-h h2 .p-hic { display: none; }
body[data-xp] .x-rail.dark .x-rail-h p { color: rgba(255, 255, 255, .8); }
body[data-xp] .x-rail.dark .x-rail-row { margin-right: calc(-1 * var(--edge)); padding-right: var(--edge); }
body[data-xp] .x-rail.dark .x-rail-nav { position: absolute; right: calc(var(--edge) - 22px); top: 50%; transform: translateY(-50%); z-index: 3; }
body[data-xp] .x-rail.dark .x-rail-nav button[data-rail="-1"] { display: none; }
body[data-xp] .x-rail.dark .x-rail-nav button { background: rgba(255, 255, 255, .95); border-color: transparent; }
@media (max-width: 1000px) { body[data-xp] .x-rail.dark .x-rail-in { grid-template-columns: 1fr; grid-template-areas: "h" "row"; gap: var(--x-s3); } body[data-xp] .x-rail.dark::before { opacity: .6; } }
@media (max-width: 700px) { body[data-xp] .x-rc { flex-basis: 68%; } body[data-xp] .x-rail.dark .x-rail-row { margin-right: -16px; padding-right: 16px; } }
body[data-xp] .x-rail-h { display: block; }
body[data-xp] .x-rail-h p { margin: 8px 0 0; max-width: 36em; }
body[data-xp] .x-rail.dark .x-rail-in { padding-right: 0; }
body[data-xp] .x-rail.dark .x-rail-nav { right: 28px; }
body[data-xp] .x-rail.dark .x-rail-row { margin-right: 0; padding-right: var(--edge); }
body[data-xp] .x-rail.dark .x-rail-h h2:not(#_) { max-width: 6.5em; line-height: 1; }
@media (max-width: 1000px) { body[data-xp] .x-rail.dark .x-rail-in { padding-right: 16px; } body[data-xp] .x-rail.dark .x-rail-row { margin-right: -16px; padding-right: 16px; } }

body[data-xp] .x-rail.dark .x-rail-h h2:not(#_) { font-size: clamp(40px, 3.6vw, 52px); }
body[data-xp] .x-rail.dark { background: radial-gradient(ellipse 60% 100% at 80% 25%, #4a4a4a 0%, #2a2a2a 55%, #181818 100%); }
body[data-xp] .x-rail.dark .x-rail-h h2:not(#_) { font-size: clamp(40px, 3.6vw, 52px) !important; line-height: 1 !important; }

/* similar trips hover, as on the reference: the photo darkens and a short "what's included" line slides open above the button */
body[data-xp] .x-rc a::before { content: ''; position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, .38); opacity: 0; transition: opacity 300ms ease-in-out; pointer-events: none; }
body[data-xp] .x-rc-x { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-height: 0; opacity: 0; font: 400 14.5px/1.45 var(--x-f); color: #fff; transition: max-height 300ms ease-in-out, opacity 300ms ease-in-out; }
body[data-xp] .x-rc a:hover::before, body[data-xp] .x-rc a:focus-visible::before { opacity: 1; }
body[data-xp] .x-rc a:hover .x-rc-x, body[data-xp] .x-rc a:focus-visible .x-rc-x { max-height: 90px; opacity: 1; }
body[data-xp] .x-rc a:hover .x-rc-go, body[data-xp] .x-rc a:focus-visible .x-rc-go { background: #fff; color: var(--x-ink); }
@media (hover: none) { body[data-xp] .x-rc-x { max-height: 90px; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body[data-xp] .x-rc a::before, body[data-xp] .x-rc-x, body[data-xp] .x-rc .x-ph img { transition: none; } }

/* ===== round 83: similar-trips cards, hover and drag copied from the reference (measured live) ===== */
/* the black layer: a gradient over the whole photo, 53% at rest, 100% on hover, 0.3s ease-in-out */
body[data-xp] .x-rc a::before { content: none; }
body[data-xp] .x-rc a::after { background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); opacity: .53; transition: opacity 300ms ease-in-out; }
body[data-xp] .x-rc a:hover::after, body[data-xp] .x-rc a:focus-visible::after { opacity: 1; }
/* no photo zoom and no button fill on hover: the reference only darkens the card and opens the text */
body[data-xp] .x-rc a:hover .x-ph img { transform: none; }
body[data-xp] .x-rc a:hover .x-rc-go, body[data-xp] .x-rc a:focus-visible .x-rc-go { background: transparent; color: #fff; }
body[data-xp] .x-rc-x { font-style: normal; }
body[data-xp] .x-rc a { cursor: pointer; }
body[data-xp] .x-rail-row { cursor: grab; }
body[data-xp] .x-rail-row.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
body[data-xp] .x-rail-row.drag a { pointer-events: none; }
body[data-xp] .x-rail-nav button[hidden] { display: none; }
body[data-xp] .x-rail.dark .x-rail-nav button[data-rail="-1"] { display: grid; }
body[data-xp] .x-rail.dark .x-rail-nav button[data-rail="-1"][hidden] { display: none; }
body[data-xp] .x-rail.dark .x-rail-nav { display: flex; gap: 8px; }
@media (prefers-reduced-motion: reduce) { body[data-xp] .x-rc a::after { transition: none; } }
@media (max-width: 700px) { body[data-xp] .x-rail .x-rail-nav, body[data-xp] .x-rail.dark .x-rail-nav { display: none; } }

/* ===== round 84: scroll arrows as on the reference (measured live): 43px circle, 30% black, white chevron, 25px from the edge, centred on the cards ===== */
body[data-xp] .x-rail.dark .x-rail-nav { display: contents; position: static; transform: none; }
body[data-xp] .x-rail.dark .x-rail-nav button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 0; border-radius: 100%; background: rgba(0, 0, 0, .3); color: #fff; cursor: pointer; transition: background-color 200ms ease; }
body[data-xp] .x-rail.dark .x-rail-nav button:hover { background: rgba(0, 0, 0, .55); }
body[data-xp] .x-rail.dark .x-rail-nav button[data-rail="1"] { right: 25px; left: auto; }
body[data-xp] .x-rail.dark .x-rail-nav button[data-rail="-1"] { left: calc(var(--edge) + 260px + var(--x-s4) + 25px); right: auto; }
body[data-xp] .x-rail.dark .x-rail-nav button[hidden] { display: none; }
body[data-xp] .x-rail.dark .x-rail-nav svg { width: 20px; height: 20px; }
@media (max-width: 1000px) { body[data-xp] .x-rail.dark .x-rail-nav button[data-rail="-1"] { left: 25px; } }
@media (max-width: 700px) { body[data-xp] .x-rail.dark .x-rail-nav { display: none; } }

/* ===== round 85: the whole strip (heading + cards) is one row that scrolls, as on the reference; one arrow click = one card + gap ===== */
body[data-xp] .x-rail.dark .x-rail-in { display: block; padding: 0; }
body[data-xp] .x-rail.dark .x-rail-row { display: flex; align-items: center; gap: var(--x-s3); margin: 0; padding: 0 var(--edge); scroll-snap-type: none; overflow-x: auto; }
body[data-xp] .x-rail.dark .x-rail-hd { flex: 0 0 260px; margin-right: var(--x-s2); list-style: none; }
body[data-xp] .x-rail.dark .x-rail-h { margin: 0; }
body[data-xp] .x-rail.dark .x-rc { scroll-snap-align: none; }
body[data-xp] .x-rail.dark .x-rail-nav button[data-rail="-1"] { left: 25px; }
@media (max-width: 1000px) { body[data-xp] .x-rail.dark .x-rail-row { padding: 0 16px; } body[data-xp] .x-rail.dark .x-rail-hd { flex-basis: 220px; } }

/* ===== round 86: "Similar trips" copied exactly from the reference (every value measured live on the reference page) ===== */
body[data-xp] .x-rail.dark { padding-block: 60px; }
body[data-xp] .x-rail.dark .x-rail-row { gap: 25px; padding: 0 25px 0 var(--edge); align-items: center; }
body[data-xp] .x-rail.dark .x-rail-hd { flex: 0 0 223px; margin: 0; }
body[data-xp] .x-rail.dark .x-rail-h h2:not(#_) { margin: 0; max-width: none; font: 400 45px/45px 'League Gothic', 'Oswald', sans-serif !important; letter-spacing: 2.25px; text-transform: uppercase; color: #fff; }
/* card: 310 × 550, square corners; the photo fills it; the content sits over it: tag top right, text bottom */
body[data-xp] .x-rc { flex: 0 0 310px; width: 310px; min-width: 0; }
body[data-xp] .x-rc a:not(#_) { display: block; height: 550px; aspect-ratio: auto; border-radius: 0; }
body[data-xp] .x-rc a::after { z-index: 0; }
body[data-xp] .x-rc-c { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; }
body[data-xp] .x-rc-n { align-self: flex-end; padding: 24px; font: 700 12px/19.55px var(--x-f); letter-spacing: .6px; text-transform: uppercase; color: #fff; }
body[data-xp] .x-rc-o { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; color: #fff; }
body[data-xp] .x-rc-r { margin: 0 0 5.67px; font: 700 11px/19.55px var(--x-f); letter-spacing: 1.1px; text-transform: uppercase; color: #fff; }
body[data-xp] .x-rc-t { margin: 0 0 5px; font: 700 16px/22.4px var(--x-f); letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
body[data-xp] .x-rc-x { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-height: 0; opacity: 0; margin: 0; font: 400 17px/19.55px var(--x-f); letter-spacing: .85px; color: #fff; transition: max-height 300ms ease-in-out, opacity 300ms ease-in-out, margin 300ms ease-in-out; }
body[data-xp] .x-rc a:hover .x-rc-x, body[data-xp] .x-rc a:focus-visible .x-rc-x { max-height: 200px; opacity: 1; margin-bottom: 12.75px; }
body[data-xp] .x-rc-go { display: inline-flex; align-items: center; margin-top: 12px; padding: 10px 20px; border: 1px solid #fff; border-radius: 3px; background: transparent; font: 700 12px/12px var(--x-f); letter-spacing: 1.2px; text-transform: uppercase; color: #fff; text-decoration: none; transition: color .5s, background-color .5s, border-color .5s, opacity .5s; }
body[data-xp] .x-rc a:hover .x-rc-go, body[data-xp] .x-rc a:focus-visible .x-rc-go { background: transparent; color: #fff; }
/* the last card: "Create your own itinerary" */
body[data-xp] .x-rc-make .x-rc-o { margin-top: auto; height: 385px; justify-content: space-between; }
body[data-xp] .x-rc-mt { display: block; margin: 32px 0 0; max-width: 259px; font: 400 45px/45px 'League Gothic', 'Oswald', sans-serif; letter-spacing: 1.8px; text-transform: uppercase; color: #fff; }
/* "View all" after the last card */
body[data-xp] .x-rail-end { flex: 0 0 auto; list-style: none; }
body[data-xp] .x-rail-end .x-rc-go { margin: 0; }
body[data-xp] .x-rail-end .x-rc-go:hover { background: #fff; color: var(--x-ink); }
@media (max-width: 700px) { body[data-xp] .x-rc { flex-basis: min(310px, 78vw); width: min(310px, 78vw); } body[data-xp] .x-rc a:not(#_) { height: auto; aspect-ratio: 310 / 550; } body[data-xp] .x-rail.dark .x-rail-row { padding: 0 16px; } body[data-xp] .x-rail.dark .x-rail-hd { flex-basis: 200px; } body[data-xp] .x-rail.dark .x-rail-h h2:not(#_) { font-size: 38px !important; line-height: 38px !important; } }
body[data-xp] .x-rail-end a.x-rc-go:not(#_) { color: #fff !important; text-decoration: none !important; }
body[data-xp] .x-rail-end a.x-rc-go:not(#_):hover { background: #fff; color: var(--x-ink) !important; }
body[data-xp] .x-rc-go { box-sizing: border-box; min-height: 40px; }
/* the reference sets its small text in Brandon Grotesque Bold, which is lighter than Cabin Bold at the same size; Cabin SemiBold matches its look */
body[data-xp] :is(.x-rc-r, .x-rc-t, .x-rc-n, .x-rc-go) { font-weight: 600; }

/* ===== round 87: summary strip above the days and a "what is in this day" line in each day header (ideas from the MakeMyTrip itinerary) ===== */
body[data-xp] .x-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--x-s2); margin: 0 0 var(--x-s4); padding: 0; list-style: none; }
body[data-xp] .x-sum li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: var(--x-s2) var(--x-s3); border: 1px solid var(--x-line); border-radius: 16px; background: #fff; }
body[data-xp] .x-sum svg { grid-row: span 2; width: 22px; height: 22px; color: var(--x-ink2); }
body[data-xp] .x-sum b { font: 700 26px/1.1 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-sum span { font: 400 14.5px/1.3 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-day-i { margin-left: auto; flex: none; display: flex; align-items: center; gap: 16px; padding-top: 4px; font: 600 14.5px var(--x-f); color: var(--x-ink); }
body[data-xp] .x-day-i span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
body[data-xp] .x-day-i svg { width: 16px; height: 16px; color: var(--x-ink2); }
body[data-xp] .x-day-i .x-money svg { color: var(--x-green); }
@media (max-width: 1000px) { body[data-xp] .x-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { body[data-xp] .x-day-h { flex-wrap: wrap; } body[data-xp] .x-day-i { margin-left: 0; flex-basis: 100%; padding-top: 0; } body[data-xp] .x-sum b { font-size: 22px; } }

/* ===== round 88: fewer boxes, one rhythm. Flat transit rows, one blue "add to your day" banner, hairlines instead of nested panels ===== */
/* day card: 32px inside; blocks inside it are separated by hairlines and 32px, never by boxes in boxes */
body[data-xp] .x-day { padding: var(--x-s4); }
body[data-xp] .x-day-g { margin-top: var(--x-s4); }
body[data-xp] .x-day .x-jour { margin: var(--x-s3) 0 0; padding: 0 0 var(--x-s4); background: none; border: 0; border-bottom: 1px solid var(--x-line); border-radius: 0; }
body[data-xp] .x-day .x-jour.home { margin: var(--x-s4) 0 0; padding: var(--x-s4) 0 0; border-bottom: 0; border-top: 1px solid var(--x-line); }
body[data-xp] .x-day.travel .x-jour { margin: 0; padding: 0; border: 0; }
body[data-xp] .x-day .x-jour + .x-day-g { margin-top: var(--x-s4); }
body[data-xp] .x-jour-t > svg { background: var(--x-band); border-color: transparent; }
body[data-xp] .x-leg-i { background: var(--x-band); border-color: transparent; }
body[data-xp] .x-jlink { display: flex; align-items: center; gap: 8px; margin: var(--x-s3) 0 0; font: 600 15px var(--x-f); }
body[data-xp] .x-jlink svg { width: 17px; height: 17px; color: var(--x-blue); }
body[data-xp] .x-jlink a:not(#_) { color: var(--x-blue); text-decoration: none; }
body[data-xp] .x-jlink a:hover { text-decoration: underline; }
/* stops and the transit between them */
body[data-xp] .x-stop { padding-bottom: 0; }
body[data-xp] .x-more { margin-top: 4px; }
body[data-xp] .x-hop { padding: var(--x-s3) 0; align-items: center; }
body[data-xp] .x-hop::before { top: 0; bottom: 0; border-left: 2px dashed var(--x-line2); }
body[data-xp] .x-hop-i { background: var(--x-blue-2); border: 2px solid #fff; color: var(--x-blue); }
body[data-xp] .x-hop-c { padding: 0; border: 0; background: none; gap: 4px; }
body[data-xp] .x-hop-r b { font: 700 16px/1.3 var(--x-f); }
body[data-xp] .x-hop-m, body[data-xp] .x-hop-n { color: var(--x-ink2); font-weight: 400; }
body[data-xp] .x-hop-m svg { color: var(--x-ink3); }
/* where to eat: one quiet line */
/* body[data-xp] .x-eat { margin-top: var(--x-s4); padding: var(--x-s3) 0 0; border-top: 1px solid var(--x-line); border-radius: 0; background: none; } */
body[data-xp] .x-eat {
  margin-top: var(--x-s3);
  padding: var(--x-s2) var(--x-s3);
  border: 1px solid #F3E8D0;
  border-radius: 20px;
  background: #FEFAF2;
}
/* add to your day */
body[data-xp] .x-add { margin-top: var(--x-s3); display: block; width: 100%; box-sizing: border-box; }

body[data-xp] .x-add > summary { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: var(--x-s2); min-height: 0; padding: var(--x-s2) var(--x-s3); border: 2px dashed #B8D0EB; border-radius: 20px; background: transparent; color: var(--x-ink); text-align: center; }

body[data-xp] .x-add > summary:hover, body[data-xp] .x-add[open] > summary { background: transparent; border: 2px dashed #B8D0EB; }

body[data-xp] .x-add-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: transparent; color: var(--x-blue); }

body[data-xp] .x-add > summary svg { width: 20px; height: 20px; transition: transform 160ms ease; }

body[data-xp] .x-add[open] .x-add-ic svg { transform: rotate(45deg); }

body[data-xp] .x-add-t { display: grid; gap: 2px; min-width: 0; }

body[data-xp] .x-add-t b { font: 700 17px/1.3 var(--x-f); color: var(--x-ink); }

body[data-xp] .x-add > summary small { padding: 0; background: none; font: 400 14.5px/1.4 var(--x-f); color: var(--x-ink2); }

body[data-xp] .x-add-go { display: none; }

body[data-xp] .x-add .x-ideas, body[data-xp] .x-add .x-own { margin-top: var(--x-s3); }

@media (max-width: 700px) {
  body[data-xp] .x-day { padding: 20px; }
  body[data-xp] .x-day-g { margin-top: var(--x-s3); }
}

body[data-xp] .x-add .x-own { margin-top: var(--x-s3); padding: 0; border: 0; border-radius: 0; background: none; }

body[data-xp] .x-add.own[open] .x-add-ic svg { transform: none; }

body[data-xp] .x-ideas + .x-add { margin-top: var(--x-s3); }

body[data-xp] .x-day.open .x-day-l { display: block; }


/* ===== round 89: colour for what matters (after Black Tomato: key facts coloured, important moments on a tinted ground) =====
   blue = journeys and information · green = money, free days · amber = morning · ink = evening/day number */
/* journeys: arriving and leaving are the big moments of the trip, so they sit on a light-blue ground */
body[data-xp] .x-day .x-jour { margin: var(--x-s3) 0 0; padding: var(--x-s3); background: #eaf3fc; border: 0; border-radius: 16px; }
body[data-xp] .x-day .x-jour.home { margin: var(--x-s4) 0 0; padding: var(--x-s3); border: 0; }
body[data-xp] .x-day .x-jour + .x-day-g { margin-top: var(--x-s4); }
body[data-xp] .x-day.travel .x-jour { margin: 0; padding: var(--x-s3); }
body[data-xp] .x-jour-t > svg, body[data-xp] .x-leg-i { background: #fff; color: var(--x-blue); border-color: transparent; }
body[data-xp] .x-jour-t h3:not(#_) { color: var(--x-ink); }
body[data-xp] .x-legs li { border-left-color: #b8d3ee; }
body[data-xp] .x-jour-tot { color: #00478a; }
body[data-xp] .x-jour-tot svg { color: var(--x-blue); }
body[data-xp] .x-jlink { margin-top: var(--x-s2); }
/* day number: ink for a day of stops, blue for a travel day, green for a free day */
body[data-xp] .x-day.travel .x-day-n { background: var(--x-blue); }
body[data-xp] .x-day.open .x-day-n { background: var(--x-green); }
body[data-xp] .x-day.open { border-color: #bfe0cb; }
body[data-xp] .x-day.open .x-day-h { margin: calc(var(--x-s4) * -1) calc(var(--x-s4) * -1) 0; padding: var(--x-s3) var(--x-s4); background: var(--x-green-2); border-radius: 19px 19px 0 0; }
body[data-xp] .x-day.open .x-day-g { margin-top: var(--x-s4); }
/* facts on a stop as small coloured chips: when (amber/blue/ink), how long (grey), cost (green) */
body[data-xp] .x-facts { display: flex; flex-wrap: wrap; gap: 8px; }
body[data-xp] .x-facts > span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--x-sunk); color: var(--x-ink); font: 600 14px/1.4 var(--x-f); }
body[data-xp] .x-facts > span svg { width: 14px; height: 14px; }
body[data-xp] .x-facts .x-slot.morning { background: #fff1cf; color: #6b4300; }
body[data-xp] .x-facts .x-slot.afternoon { background: #e3effb; color: #00478a; }
body[data-xp] .x-facts .x-slot.evening { background: var(--x-ink); color: #fff; }
body[data-xp] .x-facts .x-money { background: var(--x-green-2); color: var(--x-green); }
body[data-xp] .x-facts .x-money svg { color: var(--x-green); }
body[data-xp] .x-idea .x-facts > span { font-size: 13.5px; }
/* what is in the day, in the header */
body[data-xp] .x-day-i .x-money { padding: 3px 10px; border-radius: 999px; background: var(--x-green-2); }
/* section headings get a blue icon, and the money and timing sections sit on tinted grounds */
body[data-xp] .z-main > :is(.z-story, .z-sec) > h2 .p-hic { background: #eaf3fc !important; color: var(--x-blue) !important; }
body[data-xp] .z-main > #z-ways::before { background: #fff; }
body[data-xp] .z-main > #z-cost::before { background: #eef8f2; }
body[data-xp] .z-main > #z-when::before { background: #eaf3fc; }
body[data-xp] .x-wgroup h3 svg { color: var(--x-blue); }
body[data-xp] .x-mine { background: #eaf3fc; }
body[data-xp] .x-mine-t svg { color: var(--x-blue); }

/* ===== round 90: the stop photo, the dashed line and the transit icon form one continuous rail ===== */
/* the photo is as tall as its stop, so the line starts at the photo's bottom edge and ends at the next photo's top edge */
body[data-xp] .x-stop { align-items: stretch; }
body[data-xp] .x-stop-ph { height: 100%; }
body[data-xp] .x-stop-ph .x-ph { width: 132px; height: 100%; min-height: 104px; }
body[data-xp] .x-stop-ph .x-ph img { height: 100%; object-fit: cover; }
body[data-xp] .x-hop { padding: var(--x-s3) 0; min-height: 96px; }
body[data-xp] .x-hop::before { left: 65px; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--x-line2); }
body[data-xp] .x-hop-i { position: relative; z-index: 1; justify-self: center; width: 40px; height: 40px; border: 3px solid #fff; }
@media (max-width: 700px) { body[data-xp] .x-stop-ph .x-ph { width: 84px; min-height: 84px; } body[data-xp] .x-hop::before { left: 41px; } }

/* phones: nothing may be wider than the screen; the stop photo stays a short square and the line carries on below it */
body[data-xp] .x-days { grid-template-columns: minmax(0, 1fr); }
body[data-xp] .x-day, body[data-xp] .x-day-g, body[data-xp] .x-day-l, body[data-xp] .x-jour, body[data-xp] .x-jour-h { min-width: 0; }
@media (max-width: 700px) {
  body[data-xp] .x-jour-h { gap: 10px; }
  body[data-xp] .x-from { max-width: 100%; }
  body[data-xp] .x-from select { max-width: 100%; }
  body[data-xp] .x-day-i { flex-wrap: wrap; gap: 8px 14px; }
  body[data-xp] .x-stop-ph .x-ph { height: 84px; min-height: 84px; }
  body[data-xp] .x-stop:has(+ .x-hop) .x-stop-ph::after { content: ''; position: absolute; left: 41px; top: 84px; bottom: 0; border-left: 2px dashed var(--x-line2); }
}

/* round 91: the banner's icon and its two text lines read as one aligned group (text starts at the same left edge, icon centred on both lines); the plus stays a plus when the banner opens */
body[data-xp] .x-add > summary { justify-content: center; text-align: left; }
body[data-xp] .x-add-t { justify-items: start; text-align: left; align-content: center; }
body[data-xp] .x-add-t b, body[data-xp] .x-add > summary small { display: block; margin: 0; text-align: left; }
body[data-xp] .x-add > summary small { font-size: 14.5px; line-height: 1.4; }
body[data-xp] .x-add[open] > summary svg, body[data-xp] .x-add[open] .x-add-ic svg, body[data-xp] .x-add.own[open] .x-add-ic svg { transform: none !important; }

/* ===== round 92: one vertical rhythm, taken from the reference's homepage (sections ~50px, heading to text ~12px, text to content ~25px, blocks ~25-38px) ===== */
body[data-xp] { --x-s6: clamp(40px, 4.4vw, 56px); }
body[data-xp] .z-main > :is(.z-story, .z-sec) > h2:not(#_) { margin: 0 0 12px; }
body[data-xp] .x-sec > .z-lead:not(#_) { margin: 0 0 var(--x-s3); }
/* "when" section was tighter than the others */
body[data-xp] #z-when .yp-head { margin: 0 0 var(--x-s3); }
body[data-xp] #z-when .yp-key { margin: var(--x-s2) 0 0; }
body[data-xp] #z-when .cb-note { margin: 8px 0 0; }
/* price section: the same gap between its blocks as everywhere else */
body[data-xp] #z-cost .cb-top { margin-bottom: var(--x-s3); }
body[data-xp] #z-cost .cb-cards { margin-bottom: var(--x-s3); }
/* day cards: the blocks inside one day are 24px apart, the days themselves 24px apart */
body[data-xp] .x-day .x-jour { margin-top: var(--x-s3); }
body[data-xp] .x-day .x-jour + .x-day-g, body[data-xp] .x-day-g { margin-top: var(--x-s3); }
body[data-xp] .x-day-l > * + * { margin-top: var(--x-s3); }
body[data-xp] .x-eat, body[data-xp] .x-add { margin-top: var(--x-s3); }
body[data-xp] .x-ways { margin-top: var(--x-s3); }
@media (max-width: 700px) { body[data-xp] { --x-s6: 40px; } }

/* ===== round 93: pinned card gets "Check flights" and "Download itinerary" (from the Kerala preview); journeys read top to bottom (from itinerary-revamp) ===== */
body[data-xp] .x-fl-wrap { margin: 4px 0; }
body[data-xp] .x-fl { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; background: #ffc300; border: 1.5px solid #a37a00; color: var(--x-ink) !important; text-decoration: none !important; transition: background-color 160ms ease; }
body[data-xp] .x-fl:hover { background: #ffcf33; }
body[data-xp] .x-fl .ic { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--x-ink); color: #ffd166; }
body[data-xp] .x-fl .ic svg { width: 18px; height: 18px; }
body[data-xp] .x-fl .tx { flex: 1; min-width: 0; line-height: 1.25; }
body[data-xp] .x-fl .tx b { display: block; font: 700 15px var(--x-f); }
body[data-xp] .x-fl .tx small { display: block; font: 500 12px var(--x-f); opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-xp] .x-fl .pr { font: 700 14px var(--x-f); white-space: nowrap; text-align: right; }
body[data-xp] .x-fl .pr small { display: block; font: 500 11px var(--x-f); opacity: .75; }
body[data-xp] .x-actions { display: grid; gap: 6px; margin-top: 12px; }
body[data-xp] .x-actions .z-save.x-secondary { margin: 0 !important; background: #fff !important; background-image: none !important; border: 1.5px solid var(--x-ink) !important; box-shadow: none !important; color: var(--x-ink) !important; }
body[data-xp] .x-dl { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 9px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--x-ink); font: 600 14px var(--x-f); cursor: pointer; transition: background-color 160ms ease; }
body[data-xp] .x-dl:hover { background: var(--x-sunk); }
body[data-xp] .x-dl svg { width: 16px; height: 16px; }
body[data-xp] .x-dl small { font: 500 12px var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-dl:focus-visible, body[data-xp] .x-fl:focus-visible { outline: 2px solid var(--x-blue); outline-offset: 2px; }

/* getting there / going home: one step under the other, a dotted line joining the icons, time and price on the right */
body[data-xp] .x-legs { grid-template-columns: 1fr; gap: 0; margin-top: var(--x-s3); }
body[data-xp] .x-legs li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 0; align-items: start; position: relative; padding: 0 0 var(--x-s3); border: 0; }
body[data-xp] .x-legs li:first-child { padding-left: 0; padding-top: 0; border: 0; }
body[data-xp] .x-legs li:last-child { padding-bottom: 0; }
body[data-xp] .x-legs li::before { content: ''; position: absolute; left: 19px; top: 44px; bottom: 4px; border-left: 2px dotted #9fc2e6; }
body[data-xp] .x-legs li:last-child::before { display: none; }
body[data-xp] .x-leg-i { grid-row: auto; }
body[data-xp] .x-leg-b { padding-top: 2px; }
body[data-xp] .x-leg-n { grid-column: 3; grid-row: 1; display: grid; justify-items: end; gap: 2px; padding-top: 2px; text-align: right; }
body[data-xp] .x-leg-n b { font: 700 15px var(--x-f); color: var(--x-ink); }
@media (max-width: 700px) { body[data-xp] .x-legs li { padding: 0 0 var(--x-s2); border: 0; } body[data-xp] .x-legs li:first-child { padding-top: 0; } }

/* the PDF: print only the plan */
@media print {
  body[data-xp] :is(.nav, [data-nav], .x-bar, [data-rbar], .z-card, .z-mini, .pl-rails, .x-rail, .z-switch, .u-skip, .x-add, .x-more summary, .x-swap, .x-rm, .x-jlink, .x-day-r, .leaflet-container, .x-actions, .u-tabbar, footer) { display: none !important; }
  body[data-xp] .z-grid { display: block !important; }
  body[data-xp] .z-main > :is(.z-story, .z-sec)::before { display: none !important; }
  body[data-xp] .x-day { break-inside: avoid; border: 1px solid #ccc; }
  body[data-xp] .x-day-g.has-side { display: block !important; }
  body[data-xp] .x-jour { background: #f2f2f2 !important; }
  body[data-xp] { background: #fff !important; }
}
body[data-xp] a.x-fl:not(#_), body[data-xp] a.x-fl:not(#_) * { color: var(--x-ink) !important; text-decoration: none !important; }
body[data-xp] a.x-fl:not(#_) .ic, body[data-xp] a.x-fl:not(#_) .ic * { color: #ffd166 !important; }
body[data-xp] .x-fl .tx small { white-space: normal; overflow: visible; text-overflow: clip; }

/* ===== round 94: "Compare ways to get there" opens in place ===== */
body[data-xp] .x-compare { margin-top: var(--x-s3); padding-top: var(--x-s2); border-top: 1px solid #b8d3ee; }
body[data-xp] .x-compare > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; color: var(--x-blue); font: 700 15px var(--x-f); }
body[data-xp] .x-compare > summary::-webkit-details-marker { display: none; }
body[data-xp] .x-compare > summary svg { width: 17px; height: 17px; }
body[data-xp] .x-compare > summary svg:last-child { transition: transform 160ms ease; }
body[data-xp] .x-compare[open] > summary svg:last-child { transform: rotate(180deg); }
body[data-xp] .x-compare > summary:focus-visible { outline: 2px solid var(--x-blue); outline-offset: 3px; border-radius: 6px; }
body[data-xp] .x-ways2 { display: grid; gap: 8px; margin: var(--x-s2) 0 0; padding: 0; list-style: none; }
body[data-xp] .x-way2 { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; background: #fff; }
body[data-xp] .x-way2.sel { border-color: var(--x-green); box-shadow: inset 0 0 0 1px var(--x-green); }
body[data-xp] .x-way2 .ic { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--x-sunk); color: var(--x-ink); }
body[data-xp] .x-way2 .ic svg { width: 18px; height: 18px; }
body[data-xp] .x-way2 b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 700 15px/1.3 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-way2 .tag { padding: 2px 8px; border-radius: 999px; background: var(--x-sunk); color: var(--x-ink2); font: 700 11.5px var(--x-f); }
body[data-xp] .x-way2 .tag.g { background: var(--x-green-2); color: var(--x-green); }
body[data-xp] .x-way2 em { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font: normal 400 13.5px/1.4 var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-way2 em svg { width: 14px; height: 14px; }
body[data-xp] .x-way2 .r { grid-row: 1 / span 2; grid-column: 3; display: grid; justify-items: end; text-align: right; font: 400 12.5px var(--x-f); color: var(--x-ink2); white-space: nowrap; }
body[data-xp] .x-way2 .r strong { font: 700 15px var(--x-f); color: var(--x-green); }
body[data-xp] .x-way2 .sw { grid-column: 2 / -1; justify-self: start; margin-top: 8px; }
@media (max-width: 700px) { body[data-xp] .x-way2 { grid-template-columns: 36px minmax(0, 1fr); } body[data-xp] .x-way2 .r { grid-row: auto; grid-column: 2; justify-items: start; text-align: left; margin-top: 4px; } }
body[data-xp] .x-way2 em .sep { margin: 0 2px; }

/* MapLibre maps: same frame as the old ones, markers keep their look */
body[data-xp] .x-map.maplibregl-map { font-family: var(--x-f); }
body[data-xp] .maplibregl-map .z-pinw { display: block; }
body[data-xp] .maplibregl-popup-content { padding: 10px 12px; border-radius: 10px; font: 400 13.5px/1.4 var(--x-f); color: var(--x-ink); }
body[data-xp] .maplibregl-ctrl-group { border-radius: 10px; }
body[data-xp] .maplibregl-ctrl-attrib { font-size: 11px; }
@media print { body[data-xp] .maplibregl-map { display: none !important; } }

/* ===== trek pages ===== */
body[data-xp] .x-tfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--x-s2); margin: 0 0 var(--x-s4); padding: 0; list-style: none; }
body[data-xp] .x-tfacts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: var(--x-s2) var(--x-s3); border: 1px solid var(--x-line); border-radius: 16px; background: #fff; }
body[data-xp] .x-tfacts .ti { grid-row: span 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eaf3fc; color: var(--x-blue); }
body[data-xp] .x-tfacts .ti svg { width: 20px; height: 20px; }
body[data-xp] .x-tfacts b { font: 700 24px/1.15 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-tfacts .tl { font: 600 14px/1.35 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-tfacts small { font: 400 12.5px/1.35 var(--x-f); color: var(--x-ink3); }
body[data-xp] .x-tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--x-s3); align-items: stretch; }
body[data-xp] .x-tmap { min-height: 460px; border-radius: 16px; overflow: hidden; border: 1px solid var(--x-line); background: var(--x-sunk); }
body[data-xp] .x-twp { padding: var(--x-s3); border: 1px solid var(--x-line); border-radius: 16px; background: #fff; max-height: 460px; overflow: auto; }
body[data-xp] .x-twp h3:not(#_) { margin: 0 0 12px; font: 700 18px/1.25 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-twp ol, body[data-xp] .x-tbey { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
body[data-xp] .x-twp li { display: grid; grid-template-columns: 52px 28px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--x-line); }
body[data-xp] .x-twp li:first-child { border-top: 0; }
body[data-xp] .x-twp li.top { background: #fff1cf; margin: 0 -12px; padding-inline: 12px; border-radius: 10px; border-top-color: transparent; }
body[data-xp] .x-twp .k { font: 700 13px var(--x-f); color: var(--x-green); white-space: nowrap; }
body[data-xp] .x-twp .i, body[data-xp] .x-tbey .i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--x-sunk); color: var(--x-ink); }
body[data-xp] .x-twp .i svg, body[data-xp] .x-tbey .i svg { width: 15px; height: 15px; }
body[data-xp] .x-twp .n, body[data-xp] .x-tbey .n { display: grid; gap: 1px; min-width: 0; }
body[data-xp] .x-twp .n b, body[data-xp] .x-tbey .n b { font: 700 14.5px/1.3 var(--x-f); color: var(--x-ink); }
body[data-xp] .x-twp .n small, body[data-xp] .x-tbey .n small { font: 400 12.5px var(--x-f); color: var(--x-ink2); }
body[data-xp] .x-tbey { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
body[data-xp] .x-tbey li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--x-line); border-radius: 14px; background: #fff; }
body[data-xp] .x-tsrc { display: flex; gap: 8px; margin: var(--x-s3) 0 0; font: 400 13.5px/1.5 var(--x-f); color: var(--x-ink2); max-width: 52em; }
body[data-xp] .x-tsrc svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
body[data-xp] .z-mpin.tw { width: 22px; height: 22px; background: #fff; border: 2px solid var(--x-ink); display: grid; place-items: center; }
body[data-xp] .tp { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--x-ink); }
body[data-xp] .tp.camp { background: var(--x-green); } body[data-xp] .tp.water { background: var(--x-blue); } body[data-xp] .tp.top { background: #d99a00; } body[data-xp] .tp.food { background: #a15c00; }
@media (max-width: 1000px) { body[data-xp] .x-tfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } body[data-xp] .x-tgrid { grid-template-columns: 1fr; } body[data-xp] .x-twp { max-height: none; } }
@media (max-width: 600px) { body[data-xp] .x-tfacts { grid-template-columns: 1fr; } body[data-xp] .x-tmap { min-height: 340px; } }
@media print { body[data-xp] .x-tmap { display: none !important; } }

/* round 95: the place is full, so the Days stepper explains what + will add (nearby / on the way) */
body[data-xp] .z-card .r-set .r-cap { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.4; color: var(--x-ink2); }
body[data-xp] .z-card .r-set .r-cap .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; }
body[data-xp] .z-card .r-set .r-cap b { color: var(--x-ink); font-weight: 600; }

/* round 97: stop cards never touch. A transit row sits between every two stops (xq-place.js hop); if two stops still end up
   side by side, they get the same air and a hairline, and the photo tiles stay separate blocks */
body[data-xp] .x-stops > .x-stop + .x-stop { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--x-line); }
body[data-xp] .x-hop.unknown .x-hop-c { background: #fff; border-style: dashed; }
