/* TrailTrack AI planner studio: builders, live generation screens and guides.
   Loaded after the legacy ai-guide layers; scoped to .tp-studio / .tp-gen. */

/* ---------- Tokens ---------- */
.tp-studio,
.tp-gen,
.tp-toasts {
    --tp-ink: #13201a;
    --tp-ink-2: #2a3a31;
    --tp-muted: #627067;
    --tp-faint: #8e9b93;
    --tp-bg: #f6f3ec;
    --tp-card: #ffffff;
    --tp-card-2: #fbfaf6;
    --tp-line: rgba(19, 32, 26, .09);
    --tp-line-2: rgba(19, 32, 26, .15);
    --tp-forest: #1d4a37;
    --tp-forest-2: #2c6a4e;
    --tp-moss: #e9f2eb;
    --tp-moss-2: #d6e8db;
    --tp-accent: #ff6a1a;
    --tp-accent-2: #ef540c;
    --tp-accent-soft: #fff1e7;
    --tp-accent-ink: #b5470f;
    --tp-amber: #f2a922;
    --tp-danger: #d64035;
    --tp-r-xl: 30px;
    --tp-r-lg: 22px;
    --tp-r-md: 16px;
    --tp-r-sm: 12px;
    --tp-shadow-sm: 0 1px 2px rgba(19, 32, 26, .05), 0 6px 18px rgba(19, 32, 26, .05);
    --tp-shadow: 0 2px 6px rgba(19, 32, 26, .04), 0 22px 50px rgba(19, 32, 26, .09);
    --tp-shadow-lg: 0 34px 90px rgba(13, 31, 23, .2);
    --tp-ease: cubic-bezier(.22, 1, .36, 1);
    --tp-spring: cubic-bezier(.34, 1.56, .64, 1);
    --tp-sticky-top: 88px;
}
html[data-theme="dark"] .tp-studio,
html[data-theme="dark"] .tp-gen,
html[data-theme="dark"] .tp-toasts,
.dark-mode .tp-studio {
    --tp-ink: #eef4ef;
    --tp-ink-2: #d4dfd8;
    --tp-muted: #a3b2a9;
    --tp-faint: #7d8c83;
    --tp-bg: #0b1410;
    --tp-card: #121d18;
    --tp-card-2: #17241e;
    --tp-line: rgba(214, 232, 219, .09);
    --tp-line-2: rgba(214, 232, 219, .17);
    --tp-forest: #3f9a6e;
    --tp-forest-2: #59b386;
    --tp-moss: #1b2c24;
    --tp-moss-2: #24392f;
    --tp-accent-soft: rgba(255, 106, 26, .13);
    --tp-accent-ink: #ffab7a;
    --tp-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    --tp-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 22px 50px rgba(0, 0, 0, .35);
}

/* ---------- Guard against site-wide polish layers ----------
   site-polish.css / site-redesign.css force heading colours, weights,
   zero tracking and white inputs with !important. `:not(#tp-x)` lifts these
   rules above them without touching the rest of the site. */
:is(.tp-studio, .tp-gen, .tp-toasts):not(#tp-x) :is(h1, h2, h3, h4, h5, h6) { color: inherit; font-weight: 800 !important; letter-spacing: -.03em !important; }
:is(.tp-studio, .tp-gen):not(#tp-x) :is(.tp-hero h1, .tp-cover__copy h2, .tp-gen__head h2, .ai-guide__result-top h2, .tp-summary__city) { font-weight: 830 !important; letter-spacing: -.045em !important; }
:is(.tp-studio, .tp-gen):not(#tp-x) :is(.tp-day__grid h5) { letter-spacing: .08em !important; }
:is(.tp-studio, .tp-gen, .tp-toasts):not(#tp-x) :is(.tp-cta, .tp-glass, .tp-ghost, .tp-seg button, .tp-tabs button, .tp-switch__item, .tp-modes button, .tp-examples button, .tp-filters button, .tp-stepper button, .tp-gen__cancel, .tp-link, .tp-ribbon__day, .tp-daycard, .tp-highlight, .tp-icon-button, .hike-history-open, .tp-studio-head__how) { font-weight: 750 !important; letter-spacing: 0 !important; text-transform: none !important; }
:is(.tp-studio, .tp-gen):not(#tp-x) :is(.tp-chip, .tp-radio, .tp-tile, .tp-gear, .tp-tiles legend, .tp-chips legend) { font-weight: 700 !important; letter-spacing: 0 !important; }
:is(.tp-studio, .tp-gen):not(#tp-x) :is(.tp-kicker, .tp-step-heading > span, .tp-search__label, .tp-chip-group__title, .tp-gen__brand, .tp-gen__now small, .tp-place__category, .tp-facts span, .tp-preview__stats dt, .tp-variant__stats dt, .tp-daycard__num) { letter-spacing: .1em !important; }
:is(.tp-studio, .tp-gen):not(#tp-x) :is(.tp-field, .tp-plan-edit) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { border-color: var(--tp-line-2) !important; background-color: var(--tp-card-2) !important; color: var(--tp-ink) !important; font-weight: 600 !important; }
:is(.tp-studio, .tp-gen):not(#tp-x) :is(.tp-field, .tp-plan-edit) :is(input, select, textarea):focus { border-color: var(--tp-accent) !important; background-color: var(--tp-card) !important; box-shadow: 0 0 0 4px rgba(255, 106, 26, .14) !important; }
:is(.tp-studio):not(#tp-x) .tp-prompt textarea { border-color: var(--tp-line-2) !important; background-color: var(--tp-card-2) !important; color: var(--tp-ink) !important; font-size: clamp(16px, 1.5vw, 19px) !important; font-weight: 550 !important; }
:is(.tp-studio):not(#tp-x) .tp-prompt textarea:focus { border-color: transparent !important; background-color: var(--tp-card) !important; box-shadow: 0 16px 36px rgba(239, 84, 12, .1) !important; }
:is(.tp-studio):not(#tp-x) :is(.tp-search__cell input, span.tp-stepper input) { border: 0 !important; background-color: transparent !important; color: var(--tp-ink) !important; box-shadow: none !important; font-weight: 750 !important; }
:is(.tp-studio):not(#tp-x) :is(.tp-field, .tp-search__cell) span.tp-stepper input:not([type="checkbox"]):not([type="radio"]) { border: 0 !important; background-color: transparent !important; box-shadow: none !important; font-weight: 800 !important; font-size: 18px !important; }
:is(.tp-studio):not(#tp-x) .tp-search__cell input { font-size: 17px !important; min-height: 32px; }
:is(.tp-studio):not(#tp-x) :is(.tp-stepper__btn, .tp-icon-button) { min-width: 0; min-height: 0; }

/* The site sets `overflow-x: hidden` on html/body, which turns body into a
   scroll container and silently disables every `position: sticky` inside it
   (guide tabs, side cards). `clip` keeps the horizontal guard without that.
   Scroll locks (classes or an inline style) still win. */
html:not(.overflow-hidden):not(.ai-guide-is-generating):has(> body.page-ai-guide:not(.overflow-hidden):not(.ai-guide-is-generating):not(.ai-guide-modal-open):not(.ai-guide-editor-open):not([style*="overflow"])),
body.page-ai-guide:not(.overflow-hidden):not(.ai-guide-is-generating):not(.ai-guide-modal-open):not(.ai-guide-editor-open):not([style*="overflow"]) { overflow-x: clip !important; overflow-y: visible !important; }

/* ---------- Base ---------- */
.tp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tp-ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ai-guide.tp-studio { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 96px 0 104px; color: var(--tp-ink); }
.tp-studio *, .tp-gen * { box-sizing: border-box; }
.tp-studio [hidden], .tp-gen [hidden] { display: none !important; }
.tp-studio button { font: inherit; }
.tp-studio :focus-visible, .tp-gen :focus-visible { outline: 3px solid rgba(255, 106, 26, .55); outline-offset: 2px; }
.tp-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--tp-accent-ink); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tp-kicker .tp-ico { width: 15px; height: 15px; }
.tp-muted { color: var(--tp-muted); font-size: 13px; line-height: 1.5; }
.tp-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; border: 0; background: none; color: var(--tp-accent-ink); font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.tp-link .tp-ico { transition: transform .3s var(--tp-ease); }
.tp-link:hover .tp-ico { transform: translateX(3px); }
.tp-card { border: 1px solid var(--tp-line); border-radius: var(--tp-r-lg); background: var(--tp-card); box-shadow: var(--tp-shadow-sm); }
.tp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--tp-moss); color: var(--tp-forest); font-size: 13px; font-weight: 800; white-space: nowrap; }
.tp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.tp-section-head h2, .tp-section-head h3 { margin: 6px 0 0; color: var(--tp-ink); font-size: clamp(21px, 2.2vw, 27px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.tp-section-head p { max-width: 640px; margin: 6px 0 0; color: var(--tp-muted); font-size: 14px; line-height: 1.55; }

.tp-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; overflow: hidden; border: 0; border-radius: 15px; background: linear-gradient(135deg, #ff7f30, var(--tp-accent-2)); color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; letter-spacing: -.005em; box-shadow: 0 12px 26px rgba(239, 84, 12, .3), inset 0 1px 0 rgba(255, 255, 255, .25); cursor: pointer; transition: transform .3s var(--tp-ease), box-shadow .3s var(--tp-ease), opacity .2s; }
.tp-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--tp-ease); }
.tp-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(239, 84, 12, .36), inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff; }
.tp-cta:hover::after { transform: translateX(120%); }
.tp-cta:active { transform: translateY(0) scale(.98); }
.tp-cta .tp-ico { transition: transform .35s var(--tp-ease); }
.tp-cta:hover .tp-ico:last-child { transform: translateX(3px); }
.tp-cta:disabled { opacity: .55; cursor: wait; transform: none; }
.tp-cta--soft { background: var(--tp-moss); color: var(--tp-forest); box-shadow: none; }
.tp-cta--soft:hover { background: var(--tp-moss-2); color: var(--tp-forest); box-shadow: none; }
.tp-cta--xl { min-height: 58px; padding: 0 30px; border-radius: 17px; font-size: 17px; }
.tp-cta--block { width: 100%; }
.tp-glass { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 14px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 14px; font-weight: 750; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: pointer; transition: background .25s, transform .3s var(--tp-ease); }
.tp-glass:hover { background: rgba(255, 255, 255, .24); transform: translateY(-1px); }
.tp-glass:disabled { opacity: .6; cursor: wait; }
.tp-glass--dark { border-color: var(--tp-line-2); background: var(--tp-card); color: var(--tp-ink); backdrop-filter: none; }
.tp-glass--dark:hover { background: var(--tp-card-2); }
.tp-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--tp-line-2); border-radius: 14px; background: var(--tp-card); color: var(--tp-ink-2); font-weight: 750; cursor: pointer; }
.tp-ghost:hover { border-color: var(--tp-forest); }
.tp-icon-button { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--tp-line); border-radius: 12px; background: var(--tp-card); color: var(--tp-muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.tp-icon-button:hover { border-color: rgba(214, 64, 53, .35); background: rgba(214, 64, 53, .06); color: var(--tp-danger); }
.tp-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--tp-line); border-radius: var(--tp-r-md); background: var(--tp-card-2); color: var(--tp-ink-2); font-size: 13.5px; line-height: 1.55; }
.tp-note .tp-ico { width: 20px; height: 20px; margin-top: 1px; color: var(--tp-forest); }
.tp-empty { display: flex; align-items: flex-start; gap: 16px; padding: 26px; border: 1.5px dashed var(--tp-line-2); border-radius: var(--tp-r-lg); background: var(--tp-card-2); color: var(--tp-muted); }
.tp-empty > .tp-ico { width: 34px; height: 34px; padding: 7px; border-radius: 12px; background: var(--tp-moss); color: var(--tp-forest); }
.tp-empty strong { display: block; color: var(--tp-ink); font-size: 16px; }
.tp-empty p { margin: 5px 0 0; font-size: 14px; line-height: 1.5; }
.tp-status { margin: 12px 0 0; color: var(--tp-accent-ink); font-size: 14px; font-weight: 650; min-height: 1px; }
.tp-status:empty { display: none; }

/* ---------- Studio header and planner switch ---------- */
.tp-studio-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.tp-studio-head__brand { display: inline-flex; align-items: center; gap: 11px; color: var(--tp-ink); text-decoration: none; }
.tp-studio-head__brand b { display: block; font-size: 15px; letter-spacing: -.01em; }
.tp-studio-head__brand small { display: block; color: var(--tp-muted); font-size: 12px; font-weight: 600; }
.tp-studio-head__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--tp-forest), #12352a); color: #ffcfae; box-shadow: 0 10px 22px rgba(29, 74, 55, .28); }
.tp-studio-head__mark .tp-ico { width: 22px; height: 22px; animation: tp-twinkle 4s ease-in-out infinite; }
.tp-switch, .tp-modes { position: relative; display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--tp-line); border-radius: 999px; background: var(--tp-card); box-shadow: var(--tp-shadow-sm); isolation: isolate; }
.tp-switch__item, .tp-modes button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--tp-muted); font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .35s var(--tp-ease); }
.tp-switch__item:hover, .tp-modes button:hover { color: var(--tp-ink); }
.tp-switch__item.is-active, .tp-modes button.is-active { color: #fff; }
.tp-switch__thumb, .tp-modes__thumb, .tp-tabs__thumb { position: absolute; top: 5px; left: 0; z-index: 0; height: calc(100% - 10px); border-radius: 999px; background: linear-gradient(135deg, var(--tp-forest-2), var(--tp-forest)); box-shadow: 0 8px 18px rgba(29, 74, 55, .28); transition: transform .5s var(--tp-ease), width .5s var(--tp-ease); }
.tp-switch:not(.has-thumb) .tp-switch__item.is-active, .tp-modes:not(.has-thumb) button.is-active { background: var(--tp-forest); }
.tp-studio-head__links { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tp-studio-head__brand span { white-space: nowrap; }
.tp-studio .tp-studio-head__how { font-size: 13.5px !important; }
@media (max-width: 1100px) { .tp-studio-head__brand > span:not(.tp-studio-head__mark) { display: none; } }
.tp-studio-head__links a, .tp-studio-head__how { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px; border: 0; border-radius: 12px; background: transparent; color: var(--tp-ink-2); font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s; }
.tp-studio-head__links a:hover, .tp-studio-head__how:hover { background: var(--tp-card); color: var(--tp-ink); }

/* ---------- Hero ---------- */
.tp-hero { position: relative; display: flex; align-items: flex-start; min-height: 400px; padding: clamp(30px, 5vw, 60px) clamp(24px, 5vw, 60px) 130px; overflow: hidden; border-radius: var(--tp-r-xl); background: #10261c; color: #fff; isolation: isolate; }
.tp-hero__media { position: absolute; inset: 0; z-index: -1; }
.tp-hero__media img { position: absolute; inset: -6% 0 0; width: 100%; height: 112%; object-fit: cover; transform: scale(1.08); will-change: transform; animation: tp-kenburns 26s ease-in-out infinite alternate; }
.tp-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 22, 16, .94) 0%, rgba(8, 22, 16, .78) 38%, rgba(8, 22, 16, .25) 72%, rgba(8, 22, 16, .1) 100%), linear-gradient(0deg, rgba(8, 22, 16, .6), transparent 45%); }
.tp-hero--travel .tp-hero__media::after { background: linear-gradient(100deg, rgba(12, 22, 30, .93) 0%, rgba(14, 26, 32, .76) 40%, rgba(14, 26, 32, .2) 74%, rgba(14, 26, 32, .05) 100%), linear-gradient(0deg, rgba(10, 18, 24, .6), transparent 45%); }
.tp-hero__topo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.2; }
.tp-hero__topo path { stroke-dasharray: 6 9; animation: tp-dash-drift 40s linear infinite; }
.tp-hero__topo .tp-hero__trail { stroke: #ffb17f; stroke-width: 3; stroke-dasharray: 1400; stroke-dashoffset: 1400; filter: drop-shadow(0 0 8px rgba(255, 140, 70, .7)); animation: tp-draw 3.2s .5s var(--tp-ease) forwards; opacity: .9; }
.tp-hero__topo circle { fill: #ffb17f; stroke: none; opacity: 0; animation: tp-pop .5s var(--tp-spring) forwards; }
.tp-hero__topo circle:nth-of-type(1) { animation-delay: .7s; } .tp-hero__topo circle:nth-of-type(2) { animation-delay: 1.5s; } .tp-hero__topo circle:nth-of-type(3) { animation-delay: 2.3s; } .tp-hero__topo circle:nth-of-type(4) { animation-delay: 3.1s; }
.tp-hero__copy { position: relative; z-index: 2; max-width: 650px; }
.tp-hero__copy .tp-kicker { padding: 8px 13px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #ffd2b5; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tp-hero h1 { margin: 18px 0 14px; color: #fff; font-size: clamp(34px, 4.7vw, 62px); font-weight: 820; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.tp-hero p { max-width: 560px; margin: 0; color: rgba(255, 255, 255, .84); font-size: clamp(15px, 1.4vw, 17.5px); line-height: 1.6; }
.tp-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tp-hero__facts li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #f4f7f4; font-size: 13px; font-weight: 650; border: 1px solid rgba(255, 255, 255, .14); }
.tp-hero__facts .tp-ico { color: #ffbe94; }
.tp-word { display: inline-block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: top; }
.tp-word > span { display: inline-block; transform: translateY(108%); animation: tp-rise .95s var(--tp-ease) forwards; animation-delay: calc(var(--tp-i, 0) * 55ms + 120ms); }

/* ---------- Workspace (form + side card) ---------- */
.tp-workspace { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .86fr); gap: 20px; align-items: start; margin: -92px clamp(10px, 2.2vw, 28px) 0; }
.tp-composer, .tp-builder { padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--tp-line); border-radius: 28px; background: var(--tp-card); box-shadow: var(--tp-shadow-lg); }
.tp-composer__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.tp-step-heading { margin-bottom: 18px; }
.tp-step-heading > span { display: inline-block; color: var(--tp-accent-ink); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tp-step-heading h2, .tp-step-heading h3 { margin: 6px 0 6px; color: var(--tp-ink); font-size: clamp(21px, 2.1vw, 26px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.tp-step-heading p { max-width: 640px; margin: 0; color: var(--tp-muted); font-size: 14.5px; line-height: 1.55; }

.tp-prompt { position: relative; display: block; border-radius: 22px; }
.tp-prompt textarea { position: relative; z-index: 1; display: block; width: 100%; min-height: 128px; max-height: 260px; padding: 20px 22px; border: 1.5px solid var(--tp-line-2); border-radius: 20px; background: var(--tp-card-2); color: var(--tp-ink); font: inherit; font-size: clamp(16px, 1.5vw, 19px); font-weight: 550; line-height: 1.5; resize: none; transition: border-color .25s, box-shadow .35s var(--tp-ease), background .25s; }
.tp-prompt textarea::placeholder { color: var(--tp-faint); }
.tp-prompt textarea:focus { outline: 0; border-color: transparent; background: var(--tp-card); box-shadow: 0 16px 36px rgba(239, 84, 12, .1); }
.tp-prompt__glow { position: absolute; inset: -2px; z-index: 0; border-radius: 22px; padding: 2px; background: conic-gradient(from var(--tp-angle, 0deg), #ff7a2b, #f2a922, #2c6a4e, #2f6fd0, #ff7a2b); opacity: 0; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .35s; animation: tp-spin 5s linear infinite; }
.tp-prompt:focus-within .tp-prompt__glow { opacity: 1; }
@property --tp-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.tp-intent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 36px; margin-top: 14px; color: var(--tp-muted); font-size: 13.5px; line-height: 1.45; }
.tp-intent__chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1.5px solid transparent; border-radius: 999px; background: var(--tp-moss); color: var(--tp-forest); font-size: 13px; font-weight: 750; animation: tp-pop .45s var(--tp-spring) both; }
.tp-intent__chip:nth-child(2) { animation-delay: .04s; } .tp-intent__chip:nth-child(3) { animation-delay: .08s; } .tp-intent__chip:nth-child(4) { animation-delay: .12s; } .tp-intent__chip:nth-child(5) { animation-delay: .16s; }
.tp-intent__chip.is-missing { border-color: rgba(239, 84, 12, .35); border-style: dashed; background: var(--tp-accent-soft); color: var(--tp-accent-ink); }
.tp-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.tp-examples > span { margin-right: 4px; color: var(--tp-faint); font-size: 13px; font-weight: 700; }
.tp-examples button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border: 1px solid var(--tp-line-2); border-radius: 999px; background: var(--tp-card); color: var(--tp-ink-2); font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .2s, transform .3s var(--tp-ease), background .2s; }
.tp-examples button:hover { border-color: var(--tp-accent); background: var(--tp-accent-soft); transform: translateY(-2px); }
.tp-examples .tp-ico { color: var(--tp-accent); }
.tp-composer__actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--tp-line); }
.tp-composer__actions .hike-planner__hint { max-width: 420px; margin: 0; color: var(--tp-muted); font-size: 13px; line-height: 1.5; }
.tp-composer .hike-planner__hint { color: var(--tp-muted); font-size: 13px; line-height: 1.5; }

.tp-stepper { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 22px; padding-bottom: 14px; }
.tp-stepper button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px 6px 6px; border: 0; border-radius: 14px; background: transparent; color: var(--tp-muted); text-align: left; cursor: pointer; transition: background .25s, color .25s; }
.tp-stepper button span { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 11px; background: var(--tp-card-2); border: 1.5px solid var(--tp-line-2); font-size: 13px; font-weight: 800; transition: all .35s var(--tp-ease); }
.tp-stepper button b { font-size: 13.5px; font-weight: 750; }
.tp-stepper button:hover { background: var(--tp-card-2); color: var(--tp-ink); }
.tp-stepper button.is-active { background: var(--tp-accent-soft); color: var(--tp-ink); }
.tp-stepper button.is-active span { border-color: var(--tp-accent); background: var(--tp-accent); color: #fff; transform: scale(1.06); }
.tp-stepper button.is-complete span { border-color: var(--tp-forest); background: var(--tp-forest); color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-size: 16px; background-position: center; background-repeat: no-repeat; }
.tp-stepper__bar { position: absolute; left: 6px; right: 6px; bottom: 0; height: 4px; border-radius: 99px; background: var(--tp-line); overflow: hidden; }
.tp-stepper__bar i { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tp-forest-2), var(--tp-accent)); transition: width .6s var(--tp-ease); }
.tp-stepper:has([data-hike-step-button="1"].is-active) .tp-stepper__bar i { width: 50%; }
.tp-stepper:has([data-hike-step-button="2"].is-active) .tp-stepper__bar i { width: 75%; }
.tp-stepper:has([data-hike-step-button="3"].is-active) .tp-stepper__bar i { width: 100%; }
.tp-step:not([hidden]), .tp-quick:not([hidden]) { animation: tp-fade-up .5s var(--tp-ease) both; }
.tp-step-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--tp-line); }
.tp-step-actions > span { flex: 1; color: var(--tp-muted); font-size: 13px; text-align: center; }

/* Fields */
.tp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.tp-grid > .tp-field--wide, .tp-grid > fieldset { grid-column: 1 / -1; }
.tp-studio .tp-field { position: relative; display: grid; gap: 8px; margin: 0; min-width: 0; }
.tp-studio .tp-field > span { color: var(--tp-ink-2); font-size: 13px; font-weight: 750; }
.tp-studio .tp-field > span small { color: var(--tp-faint); font-weight: 600; }
.tp-studio .tp-field > small { color: var(--tp-muted); font-size: 12.5px; line-height: 1.5; }
.tp-studio .tp-field input:not([type="checkbox"]):not([type="radio"]),
.tp-studio .tp-field select,
.tp-studio .tp-field textarea { width: 100%; min-height: 50px; padding: 0 16px; border: 1.5px solid var(--tp-line-2); border-radius: 14px; background: var(--tp-card-2); color: var(--tp-ink); font: inherit; font-size: 16px; font-weight: 600; transition: border-color .2s, box-shadow .25s, background .2s; }
.tp-studio .tp-field textarea { min-height: 96px; padding: 13px 16px; line-height: 1.5; resize: vertical; }
.tp-studio .tp-field input:focus, .tp-studio .tp-field select:focus, .tp-studio .tp-field textarea:focus { outline: 0; border-color: var(--tp-accent); background: var(--tp-card); box-shadow: 0 0 0 4px rgba(255, 106, 26, .14); }
.tp-studio .tp-field.is-invalid input, .tp-search__cell.is-invalid { box-shadow: inset 0 0 0 2px rgba(214, 64, 53, .55); }
.tp-native-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 !important; opacity: 0; pointer-events: none; }
.tp-seg { display: flex; flex-wrap: wrap; gap: 7px; }
.tp-seg button { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 14px; border: 1.5px solid var(--tp-line-2); border-radius: 14px; background: var(--tp-card); color: var(--tp-ink-2); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .3s var(--tp-ease), box-shadow .3s; }
.tp-seg button:hover { border-color: var(--tp-forest-2); transform: translateY(-1px); }
.tp-seg button.is-active { border-color: var(--tp-forest); background: var(--tp-forest); color: #fff; box-shadow: 0 10px 20px rgba(29, 74, 55, .22); }
.tp-seg button.is-active .tp-ico { animation: tp-pop .4s var(--tp-spring); }
.tp-stepper { }
.tp-studio .tp-stepper:not(nav):not(div.tp-stepper) { }
span.tp-stepper { display: flex; align-items: center; gap: 4px; min-height: 50px; padding: 3px; border: 1.5px solid var(--tp-line-2); border-radius: 14px; background: var(--tp-card-2); }
span.tp-stepper:focus-within { border-color: var(--tp-accent); box-shadow: 0 0 0 4px rgba(255, 106, 26, .14); }
span.tp-stepper input { flex: 1; min-width: 0; min-height: 40px !important; padding: 0 4px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--tp-ink); font-size: 18px !important; font-weight: 800 !important; text-align: center; -moz-appearance: textfield; }
span.tp-stepper input::-webkit-inner-spin-button, span.tp-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tp-stepper__btn { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 11px; background: var(--tp-card); color: var(--tp-ink-2); box-shadow: var(--tp-shadow-sm); cursor: pointer; transition: background .2s, transform .2s; }
.tp-stepper__btn:hover { background: var(--tp-moss); color: var(--tp-forest); }
.tp-stepper__btn:active { transform: scale(.92); }
span.tp-stepper.is-bumped input { animation: tp-bump .35s var(--tp-spring); }

.tp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.tp-tiles legend, .tp-chips legend { margin-bottom: 10px; padding: 0; color: var(--tp-ink-2); font-size: 13px; font-weight: 750; }
.tp-tile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--tp-line-2); border-radius: 18px; background: var(--tp-card); cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--tp-ease), box-shadow .3s; }
.tp-tile input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tp-tile:hover { transform: translateY(-2px); box-shadow: var(--tp-shadow-sm); }
.tp-tile__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--tp-moss); color: var(--tp-forest); transition: background .3s, color .3s; }
.tp-tile__icon .tp-ico { width: 22px; height: 22px; }
.tp-tile__copy b { display: block; color: var(--tp-ink); font-size: 14.5px; }
.tp-tile__copy small { display: block; margin-top: 2px; color: var(--tp-muted); font-size: 12px; line-height: 1.35; }
.tp-tile__check { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--tp-line-2); border-radius: 50%; color: transparent; transition: all .3s var(--tp-spring); }
.tp-tile__check .tp-ico { width: 14px; height: 14px; stroke-width: 3; }
.tp-tile:has(input:checked) { border-color: var(--tp-forest); background: color-mix(in srgb, var(--tp-moss) 55%, var(--tp-card)); }
.tp-tile:has(input:checked) .tp-tile__icon { background: var(--tp-forest); color: #fff; }
.tp-tile:has(input:checked) .tp-tile__check { border-color: var(--tp-forest); background: var(--tp-forest); color: #fff; transform: scale(1.08); }
.tp-tile:has(input:focus-visible), .tp-chip:has(input:focus-visible), .tp-radio:has(input:focus-visible), .tp-gear:has(input:focus-visible) { outline: 3px solid rgba(255, 106, 26, .55); outline-offset: 2px; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.tp-chips legend { width: 100%; }
.tp-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px 0 12px; border: 1.5px solid var(--tp-line-2); border-radius: 999px; background: var(--tp-card); color: var(--tp-ink-2); font-size: 14px; font-weight: 650; cursor: pointer; user-select: none; transition: background .25s, border-color .25s, color .25s, transform .3s var(--tp-ease); }
.tp-chip input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tp-chip > .tp-ico { order: -1; width: 17px; height: 17px; color: var(--tp-accent); transition: color .25s; }
.tp-chip:hover { border-color: var(--tp-forest-2); transform: translateY(-1px); }
.tp-chip:has(input:checked) { border-color: var(--tp-forest); background: var(--tp-forest); color: #fff; }
.tp-chip:has(input:checked) > .tp-ico { color: #ffd2b5; animation: tp-pop .4s var(--tp-spring); }
.tp-studio .tp-note.hike-planner__safety { margin-top: 16px; }
.tp-studio .tp-note.hike-planner__safety b { color: var(--tp-ink); }

/* Live hike preview */
.tp-preview, .tp-summary { position: sticky; top: var(--tp-sticky-top); display: grid; gap: 16px; }
.tp-preview { padding: 22px; border: 1px solid var(--tp-line); border-radius: 28px; background: var(--tp-card); box-shadow: var(--tp-shadow); }
.tp-preview__head b { display: block; margin-top: 6px; color: var(--tp-ink); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.tp-preview__map { position: relative; overflow: hidden; border-radius: 20px; background: radial-gradient(120% 90% at 20% 10%, #f3f7ef, #e4ede2); aspect-ratio: 320 / 210; }
html[data-theme="dark"] .tp-preview__map { background: radial-gradient(120% 90% at 20% 10%, #1d2c24, #142019); }
.tp-preview__map svg { display: block; width: 100%; height: 100%; }
.tp-preview__contours path { fill: none; stroke: rgba(29, 74, 55, .14); stroke-width: 1.2; }
.tp-preview__shadow { fill: none; stroke: rgba(255, 255, 255, .95); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .tp-preview__shadow { stroke: rgba(10, 18, 14, .8); }
.tp-preview__line { fill: none; stroke: var(--tp-day, var(--tp-accent)); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tp-preview.is-drawn .tp-preview__line { animation: tp-draw-unit .9s var(--tp-ease) both; animation-delay: calc(var(--tp-i, 0) * 180ms); }
.tp-preview__stay circle { fill: #fff; stroke: var(--tp-forest); stroke-width: 2; }
.tp-preview__stay path { fill: var(--tp-forest); }
.tp-preview.is-drawn .tp-preview__stay { animation: tp-pop .5s var(--tp-spring) both; animation-delay: calc(var(--tp-i, 0) * 180ms + 600ms); transform-box: fill-box; transform-origin: center; }
.tp-preview__start { fill: var(--tp-accent); stroke: #fff; stroke-width: 3; }
.tp-preview__finish { fill: var(--tp-forest); stroke: #fff; stroke-width: 3; }
.tp-preview__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.tp-preview__stats div { padding: 11px 13px; border-radius: 14px; background: var(--tp-card-2); border: 1px solid var(--tp-line); min-width: 0; }
.tp-preview__stats dt { color: var(--tp-faint); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tp-preview__stats dd { margin: 3px 0 0; overflow: hidden; color: var(--tp-ink); font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.tp-load { padding: 14px; border-radius: 16px; background: var(--tp-card-2); border: 1px solid var(--tp-line); }
.tp-load__head { display: flex; justify-content: space-between; gap: 10px; color: var(--tp-muted); font-size: 13px; font-weight: 700; }
.tp-load__head b { color: var(--tp-ink); }
.tp-load__meter { height: 8px; margin: 10px 0 8px; overflow: hidden; border-radius: 99px; background: var(--tp-line); }
.tp-load__meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #36a46b, #8bc34a); transition: width .7s var(--tp-ease), background .4s; }
.tp-load[data-level="moderate"] .tp-load__meter i { background: linear-gradient(90deg, #36a46b, var(--tp-amber)); }
.tp-load[data-level="hard"] .tp-load__meter i { background: linear-gradient(90deg, var(--tp-amber), var(--tp-danger)); }
.tp-load small { display: block; color: var(--tp-muted); font-size: 12.5px; line-height: 1.45; }
.tp-load[data-level="hard"] small { color: var(--tp-danger); }
.tp-preview__how { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tp-preview__how li { display: flex; align-items: center; gap: 10px; color: var(--tp-ink-2); font-size: 13px; font-weight: 600; }
.tp-preview__how .tp-ico { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--tp-accent-soft); color: var(--tp-accent-ink); }

/* ---------- Travel builder ---------- */
.ai-guide.tp-studio:not(.is-result-view) .ai-guide__layout.tp-travel { display: block; margin: 0; }
.ai-guide.tp-studio.is-result-view > .ai-guide__layout { display: none !important; }
.ai-guide.tp-studio:not(.is-result-view) { color: var(--tp-ink); }
.tp-search { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1.5px solid var(--tp-line-2); border-radius: 22px; background: var(--tp-line); }
.tp-search__cell { position: relative; display: grid; grid-column: span 2; gap: 4px; min-width: 0; padding: 13px 16px 11px; background: var(--tp-card-2); cursor: text; transition: background .25s, box-shadow .25s; }
.tp-search__cell:nth-child(-n + 2) { grid-column: span 3; }
.tp-search__cell:focus-within { z-index: 1; background: var(--tp-card); box-shadow: inset 0 0 0 2px var(--tp-accent), 0 12px 26px rgba(239, 84, 12, .1); }
.tp-search__cell--accent { background: color-mix(in srgb, var(--tp-accent-soft) 60%, var(--tp-card-2)); }
.tp-search__label { display: flex; align-items: center; gap: 6px; color: var(--tp-muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tp-search__label .tp-ico { color: var(--tp-accent); }
.tp-studio .tp-search__cell input { width: 100%; min-width: 0; height: 32px; padding: 0; border: 0; background: transparent; color: var(--tp-ink); font: inherit; font-size: 17px; font-weight: 750; outline: 0; box-shadow: none; }
.tp-studio .tp-search__cell input::placeholder { color: var(--tp-faint); font-weight: 600; }
.tp-search__cell span.tp-stepper { min-height: 34px; padding: 0; border: 0; background: transparent; box-shadow: none !important; }
.tp-search__cell .tp-stepper__btn { width: 30px; height: 30px; border-radius: 9px; }
.tp-search__cell span.tp-stepper input { min-height: 30px !important; font-size: 17px !important; }
.tp-form__hint { margin: 10px 4px 0; color: var(--tp-faint); font-size: 12.5px; line-height: 1.5; }
.tp-block { margin-top: 28px; }
.tp-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.tp-block__head h3 { margin: 0; color: var(--tp-ink); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.tp-block__head p { margin: 5px 0 0; color: var(--tp-muted); font-size: 13.5px; line-height: 1.5; }
.tp-studio .tp-interests, .tp-studio .tp-acc__body { min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.tp-interests { position: relative; display: grid; gap: 16px; margin: 0; }
.tp-counter { position: absolute; top: -46px; right: 0; padding: 6px 11px; border-radius: 999px; background: var(--tp-moss); color: var(--tp-forest); font-size: 12.5px; font-weight: 800; transition: background .25s, color .25s; }
.tp-counter.is-warning { background: rgba(242, 169, 34, .14); color: #a86605; }
.tp-chip-group__title { display: block; margin-bottom: 9px; color: var(--tp-faint); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tp-acc { margin-top: 12px; overflow: hidden; border: 1.5px solid var(--tp-line); border-radius: 20px; background: var(--tp-card); transition: border-color .25s, box-shadow .3s; }
.tp-acc[open] { border-color: var(--tp-line-2); box-shadow: var(--tp-shadow-sm); }
.tp-acc > summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; list-style: none; cursor: pointer; }
.tp-acc > summary::-webkit-details-marker { display: none; }
.tp-acc__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--tp-accent-soft); color: var(--tp-accent-ink); }
.tp-acc__icon .tp-ico { width: 21px; height: 21px; }
.tp-acc__copy { flex: 1; min-width: 0; }
.tp-acc__copy b { display: block; color: var(--tp-ink); font-size: 15.5px; }
.tp-acc__copy small { display: block; margin-top: 2px; overflow: hidden; color: var(--tp-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tp-acc__chev { width: 20px; height: 20px; color: var(--tp-faint); transition: transform .35s var(--tp-ease); }
.tp-acc[open] .tp-acc__chev { transform: rotate(90deg); color: var(--tp-accent); }
.tp-acc__body { display: grid; gap: 16px; margin: 0; padding: 4px 16px 18px; border: 0; animation: tp-fade-up .45s var(--tp-ease) both; }
.tp-radio-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tp-radio-row > span { margin-right: 4px; color: var(--tp-muted); font-size: 13px; font-weight: 700; }
.tp-radio { position: relative; display: inline-flex; min-height: 38px; align-items: center; padding: 0 15px; border: 1.5px solid var(--tp-line-2); border-radius: 12px; color: var(--tp-ink-2); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .25s; }
.tp-radio input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tp-radio:has(input:checked) { border-color: var(--tp-accent); background: var(--tp-accent-soft); color: var(--tp-accent-ink); }
.tp-field--note { margin-top: 24px !important; }
.tp-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--tp-line); }
.tp-form__submit .tp-status { margin: 0; }

.tp-summary__card { position: relative; overflow: hidden; padding: 22px; border: 1px solid var(--tp-line); border-radius: 28px; background: var(--tp-card); box-shadow: var(--tp-shadow); }
.tp-summary__cover { position: relative; height: 104px; margin: -22px -22px 18px; overflow: hidden; background: linear-gradient(135deg, #17392b 0%, #245a43 55%, #e9783d 140%); }
.tp-summary__cover::before { content: ''; position: absolute; top: 18px; right: 30px; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #ffd8a8, #ffb26b); box-shadow: 0 0 40px rgba(255, 178, 107, .7); animation: tp-float 6s ease-in-out infinite; }
.tp-summary__cover svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 80%; }
.tp-summary__skyline { fill: rgba(8, 24, 17, .55); }
.tp-summary__city { margin: 6px 0 4px; color: var(--tp-ink); font-size: 28px; font-weight: 820; letter-spacing: -.035em; line-height: 1.1; overflow-wrap: anywhere; }
.tp-summary__route { margin: 0; color: var(--tp-muted); font-size: 14px; }
.tp-summary__facts { display: grid; gap: 2px; margin: 16px 0 0; }
.tp-summary__facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--tp-line); }
.tp-summary__facts dt { display: flex; align-items: center; gap: 7px; color: var(--tp-muted); font-size: 13px; font-weight: 650; }
.tp-summary__facts dd { margin: 0; color: var(--tp-ink); font-size: 14px; font-weight: 750; line-height: 1.4; }
.tp-summary__days { display: flex; gap: 4px; margin: 14px 0 0; }
.tp-summary__days:empty { display: none; }
.tp-summary__days i { flex: 1; height: 8px; border-radius: 99px; background: var(--tp-day); animation: tp-grow-x .5s var(--tp-ease) both; animation-delay: calc(var(--tp-i) * 50ms); transform-origin: left; }
.tp-summary__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.tp-summary__tags span { padding: 6px 10px; border-radius: 999px; background: var(--tp-moss); color: var(--tp-forest); font-size: 12px; font-weight: 750; animation: tp-pop .35s var(--tp-spring) both; }
.tp-summary__tags .is-more { background: var(--tp-accent-soft); color: var(--tp-accent-ink); }
.tp-summary__note { margin: 10px 0 0; color: var(--tp-faint); font-size: 12px; text-align: center; }
.tp-summary__history { padding: 20px; border: 1px solid var(--tp-line); border-radius: 24px; background: var(--tp-card); }
.tp-summary__history .tp-section-head { margin-bottom: 12px; }
.tp-history-list { display: grid; gap: 8px; }
.tp-history-list .ai-guide__history-row { position: relative; display: flex; align-items: stretch; gap: 6px; }
.tp-history-list .ai-guide__history-item { display: grid; flex: 1; gap: 2px; min-width: 0; padding: 12px 14px; border: 1px solid var(--tp-line); border-radius: 16px; background: var(--tp-card-2); color: var(--tp-ink); text-decoration: none; transition: border-color .2s, transform .3s var(--tp-ease); }
.tp-history-list .ai-guide__history-item:hover { border-color: var(--tp-accent); transform: translateX(2px); }
.tp-history-list .ai-guide__history-item strong { font-size: 15px; }
.tp-history-list .ai-guide__history-item span { overflow: hidden; color: var(--tp-muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.tp-history-list .ai-guide__history-delete { flex: none; padding: 0 10px; border: 1px solid var(--tp-line); border-radius: 14px; background: var(--tp-card); color: var(--tp-muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.tp-history-list .ai-guide__history-delete:hover { border-color: rgba(214, 64, 53, .35); color: var(--tp-danger); }
.tp-history-list .ai-guide__history-empty { padding: 4px 0; text-align: left; }
.tp-history-list .ai-guide__history-empty > strong { font-size: 15px !important; }
.tp-history-list .ai-guide__history-art, .tp-history-list .ai-guide__history-skeletons { display: none !important; }
.tp-history-list .ai-guide__history-empty > p { margin: 6px 0 12px !important; font-size: 13px !important; }
.tp-mobilebar { display: none; }

/* ---------- Hike history ---------- */
.tp-history { margin-top: 42px; }
.tp-history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.tp-history-card { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--tp-line); border-radius: 20px; background: var(--tp-card); box-shadow: var(--tp-shadow-sm); transition: transform .35s var(--tp-ease), box-shadow .35s; }
.tp-history-card:hover { transform: translateY(-2px); box-shadow: var(--tp-shadow); }
.tp-history-card .hike-history-open { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; padding: 8px; border: 0; border-radius: 14px; background: none; color: var(--tp-ink); text-align: left; cursor: pointer; }
.tp-history-card__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: linear-gradient(135deg, var(--tp-forest-2), var(--tp-forest)); color: #fff; }
.tp-history-card__icon .tp-ico { width: 22px; height: 22px; }
.tp-history-card__copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.tp-history-card__copy b { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.tp-history-card__copy small { overflow: hidden; color: var(--tp-muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.tp-status-pill { flex: none; padding: 5px 9px; border-radius: 999px; background: var(--tp-card-2); color: var(--tp-muted); font-size: 11.5px; font-weight: 800; }
.tp-status-pill.is-ok { background: var(--tp-moss); color: var(--tp-forest); }
.tp-status-pill.is-busy { background: rgba(47, 111, 208, .1); color: #2f6fd0; }
.tp-status-pill.is-warn { background: rgba(214, 64, 53, .09); color: var(--tp-danger); }

/* ---------- Full-screen generation ---------- */
.ai-guide__generation.tp-gen { display: block; padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: radial-gradient(80% 60% at 85% 0%, rgba(255, 122, 43, .26), transparent 60%), radial-gradient(70% 70% at 0% 100%, rgba(44, 106, 78, .55), transparent 60%), linear-gradient(160deg, #0b1d16 0%, #0f2a1f 55%, #0b1813 100%); color: #fff; }
.ai-guide__generation.tp-gen::before { opacity: .55; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.ai-guide__generation.tp-gen::after { content: ''; position: absolute; top: -20%; left: 30%; z-index: -1; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255, 140, 70, .16), transparent 62%); animation: tp-aurora 14s ease-in-out infinite alternate; pointer-events: none; }
.tp-gen__inner { display: grid; gap: 22px; width: min(1180px, 100%); min-height: 100%; margin: 0 auto; align-content: center; animation: tp-fade-up .6s var(--tp-ease) both; }
.tp-gen__head { display: grid; gap: 12px; }
.tp-gen__brand { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 13px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .07); color: #ffd2b5; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tp-gen__brand .tp-ico { animation: tp-twinkle 2.4s ease-in-out infinite; }
.tp-gen__head h2 { margin: 0; color: #fff; font-size: clamp(28px, 3.6vw, 46px); font-weight: 820; letter-spacing: -.04em; line-height: 1.06; }
.tp-gen__head h2 em { font-style: normal; background: linear-gradient(90deg, #ffb27a, #ff7a2b, #ffcf6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-gen__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-gen__meta span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .86); font-size: 13.5px; }
.tp-gen__meta b { font-weight: 750; }
.tp-gen__meta .tp-ico { color: #ffb27a; }
.tp-gen__body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .9fr); gap: 20px; align-items: stretch; }
.tp-gen__scene { position: relative; overflow: hidden; min-height: 360px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 28px; background: radial-gradient(90% 80% at 30% 30%, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.tp-gen__scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tp-gen__tracker { display: grid; gap: 16px; align-content: start; padding: 22px; border-radius: 28px; background: rgba(250, 248, 243, .97); color: #13201a; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .tp-gen__tracker { background: rgba(20, 31, 26, .96); color: #eef4ef; }
.tp-gen__now { display: flex; gap: 14px; align-items: flex-start; }
.tp-gen__pulse { position: relative; width: 14px; height: 14px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--tp-accent); }
.tp-gen__pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--tp-accent); animation: tp-ping 1.6s ease-out infinite; }
.tp-gen__now small { color: #8a978f; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tp-gen__now h3 { margin: 3px 0 5px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; animation: tp-fade-up .45s var(--tp-ease) both; }
.tp-gen__now p { margin: 0; color: #5d6b63; font-size: 14px; line-height: 1.55; }
html[data-theme="dark"] .tp-gen__now p { color: #a3b2a9; }
.tp-gen__counters { display: flex; flex-wrap: wrap; gap: 7px; }
.tp-gen__counters:empty { display: none; }
.tp-gen__counter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 12px; background: #eef4ef; color: #33433a; font-size: 12.5px; font-weight: 650; }
html[data-theme="dark"] .tp-gen__counter { background: #1b2c24; color: #d4dfd8; }
.tp-gen__counter b { color: #1d4a37; font-size: 14px; font-weight: 850; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .tp-gen__counter b { color: #7fd1a3; }
.tp-gen__counter .tp-ico { color: #ef540c; }
.tp-gen__progress-head { display: flex; justify-content: space-between; color: #6b786f; font-size: 13px; font-weight: 700; }
.tp-gen__progress-head strong { color: #13201a; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .tp-gen__progress-head strong { color: #eef4ef; }
.tp-gen__progress { position: relative; height: 10px; margin-top: -8px; overflow: hidden; border-radius: 99px; background: rgba(19, 32, 26, .08); }
.tp-gen__progress span { position: absolute; inset: 0 auto 0 0; display: block; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2c6a4e, #ff7a2b, #ffb347); background-size: 200% 100%; transition: width .8s var(--tp-ease); animation: tp-shimmer-bg 2.2s linear infinite; }
.tp-gen.is-legacy .tp-gen__progress span { width: 35% !important; animation: tp-indeterminate 1.6s ease-in-out infinite; }
.tp-gen__steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tp-gen__steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: #8a978f; font-size: 14px; font-weight: 650; transition: background .4s, color .4s; }
.tp-gen__steps li .tp-ico { width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: rgba(19, 32, 26, .06); transition: all .45s var(--tp-ease); }
.tp-gen__steps li i { width: 18px; height: 18px; border-radius: 50%; }
.tp-gen__steps li.is-active { background: #fff1e7; color: #13201a; }
html[data-theme="dark"] .tp-gen__steps li.is-active { background: rgba(255, 106, 26, .12); color: #fff; }
.tp-gen__steps li.is-active .tp-ico { background: #ef540c; color: #fff; transform: scale(1.06); box-shadow: 0 8px 18px rgba(239, 84, 12, .32); }
.tp-gen__steps li.is-active i { border: 2.5px solid rgba(239, 84, 12, .25); border-top-color: #ef540c; animation: tp-spin-r .8s linear infinite; }
.tp-gen__steps li.is-complete { color: #2a3a31; }
html[data-theme="dark"] .tp-gen__steps li.is-complete { color: #d4dfd8; }
.tp-gen__steps li.is-complete .tp-ico { background: #1d4a37; color: #fff; }
.tp-gen__steps li.is-complete i { background: #1d4a37 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; animation: tp-pop .4s var(--tp-spring); }
.tp-gen__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid rgba(19, 32, 26, .08); }
.tp-gen__foot p { display: flex; gap: 8px; margin: 0; color: #6b786f; font-size: 12.5px; line-height: 1.45; }
.tp-gen__foot .tp-ico { color: #2c6a4e; margin-top: 1px; }
.tp-gen__cancel { flex: none; min-height: 40px; padding: 0 16px; border: 1.5px solid rgba(19, 32, 26, .16); border-radius: 12px; background: transparent; color: #2a3a31; font-weight: 750; cursor: pointer; }
.tp-gen__cancel:hover { border-color: #d64035; color: #d64035; }
.tp-gen.is-complete .tp-gen__pulse { background: #2c6a4e; }
.tp-gen.is-complete .tp-gen__pulse::after { border-color: #2c6a4e; }
.tp-gen.is-error .tp-gen__pulse { background: #d64035; }
.tp-gen.is-error .tp-gen__pulse::after { border-color: #d64035; animation: none; }
.tp-gen.is-error .tp-gen__now h3 { color: #d64035; }

/* Shared scene pieces */
.tp-scene__contours path { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1.3; stroke-dasharray: 5 8; animation: tp-dash-drift 30s linear infinite; }
.tp-scene__grid path { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.tp-scene__river path { fill: none; stroke: rgba(91, 164, 230, .35); stroke-width: 14; stroke-linecap: round; }
.tp-scene__blocks rect { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .08); }
.tp-scene__ring { fill: none; stroke: rgba(255, 178, 122, .7); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: tp-ring 2.4s ease-out infinite; }
.tp-scene__ring--2 { animation-delay: 1.2s; }
.tp-scene__dot { fill: #0f2a1f; }
.tp-scene__label { fill: #fff; font-size: 15px; font-weight: 800; paint-order: stroke; stroke: rgba(10, 24, 18, .8); stroke-width: 4px; }
.tp-scene__start path { fill: #ff7a2b; stroke: #fff; stroke-width: 2.5; }
.tp-scene__start { transform-box: fill-box; transform-origin: 50% 100%; animation: tp-drop .8s var(--tp-spring) both .2s; }
.tp-scene__start-halo { fill: rgba(255, 122, 43, .25); transform-box: fill-box; transform-origin: center; animation: tp-ring 2s ease-out infinite; }
.tp-scene__cand { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
.tp-scene__day { fill: none; stroke-width: 5.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .25)); }
.tp-scene__day--1 { stroke: #ff7a2b; } .tp-scene__day--2 { stroke: #4aa3ff; } .tp-scene__day--3 { stroke: #63c983; }
.tp-scene__stay circle { fill: #fff; } .tp-scene__stay path { fill: #1d4a37; }
.tp-scene__pois circle, .tp-scene__ideas circle, .tp-scene__places circle { fill: #fff; }
.tp-scene__pois path { fill: #ef540c; stroke: #ef540c; stroke-width: 1.5; stroke-linejoin: round; }
.tp-scene__pois > g, .tp-scene__ideas > g, .tp-scene__places > g, .tp-scene__photos > g, .tp-scene__meals > g, .tp-scene__stay { transform-box: fill-box; transform-origin: center; }

/* Hike scene: groups appear as data-step advances (0..4). */
.tp-gen__scene--hike [data-scene-step] { opacity: 0; transition: opacity .6s var(--tp-ease); }
.tp-gen__scene--hike[data-step="0"] [data-scene-step="0"],
.tp-gen__scene--hike[data-step="1"] :is([data-scene-step="0"], [data-scene-step="1"]),
.tp-gen__scene--hike[data-step="2"] :is([data-scene-step="1"], [data-scene-step="2"]),
.tp-gen__scene--hike[data-step="3"] :is([data-scene-step="1"], [data-scene-step="2"], [data-scene-step="3"]),
.tp-gen__scene--hike[data-step="4"] :is([data-scene-step="2"], [data-scene-step="3"]) { opacity: 1; }
.tp-gen__scene--hike:not([data-step="0"]):not([data-step="1"]) .tp-scene__candidates { opacity: .22 !important; }
.tp-gen__scene--hike[data-step="1"] .tp-scene__cand { animation: tp-march 1.1s linear infinite; }
.tp-gen__scene--hike[data-step="1"] .tp-scene__cand--2 { animation-duration: 1.4s; }
.tp-gen__scene--hike[data-step="1"] .tp-scene__cand--3 { animation-duration: 1.7s; }
.tp-gen__scene--hike:is([data-step="2"], [data-step="3"], [data-step="4"]) .tp-scene__day { animation: tp-draw-600 1.4s var(--tp-ease) forwards; }
.tp-gen__scene--hike:is([data-step="2"], [data-step="3"], [data-step="4"]) .tp-scene__day--2 { animation-delay: .9s; }
.tp-gen__scene--hike:is([data-step="2"], [data-step="3"], [data-step="4"]) .tp-scene__day--3 { animation-delay: 1.8s; }
.tp-gen__scene--hike .tp-scene__stay { transform: scale(0); }
.tp-gen__scene--hike:is([data-step="2"], [data-step="3"], [data-step="4"]) .tp-scene__stay { animation: tp-pop-in .5s var(--tp-spring) 1.6s forwards; }
.tp-gen__scene--hike:is([data-step="2"], [data-step="3"], [data-step="4"]) .tp-scene__stay--2 { animation-delay: 2.5s; }
.tp-gen__scene--hike .tp-scene__pois > g { transform: scale(0); }
.tp-gen__scene--hike:is([data-step="3"], [data-step="4"]) .tp-scene__pois > g { animation: tp-pop-in .5s var(--tp-spring) forwards; }
.tp-gen__scene--hike .tp-scene__pois > g:nth-child(2) { animation-delay: .35s; } .tp-gen__scene--hike .tp-scene__pois > g:nth-child(3) { animation-delay: .7s; }
.tp-gen__scene--hike .tp-scene__pois > g:nth-child(4) { animation-delay: 1.05s; } .tp-gen__scene--hike .tp-scene__pois > g:nth-child(5) { animation-delay: 1.4s; } .tp-gen__scene--hike .tp-scene__pois > g:nth-child(6) { animation-delay: 1.75s; }
.tp-gen__scene--hike[data-step="3"]::after { content: ''; position: absolute; top: 0; bottom: 0; width: 24%; background: linear-gradient(90deg, transparent, rgba(255, 178, 122, .16), transparent); animation: tp-scan 3.2s ease-in-out infinite; }
.tp-gen__scene--hike[data-step="4"] { box-shadow: inset 0 0 0 2px rgba(99, 201, 131, .5), 0 0 60px rgba(99, 201, 131, .18); }

/* Travel scene: guide.js toggles .is-active / .is-complete per visual. */
.tp-gen__scene--travel [data-guide-generation-visual] { opacity: 0; transition: opacity .6s var(--tp-ease); }
.tp-gen__scene--travel [data-guide-generation-visual].is-active,
.tp-gen__scene--travel [data-guide-generation-visual].is-complete { opacity: 1; }
.tp-gen__scene--travel .tp-scene__city path { fill: #ff7a2b; stroke: #fff; stroke-width: 2.5; }
.tp-gen__scene--travel .tp-scene__journey > path { fill: none; stroke: rgba(255, 210, 181, .8); stroke-width: 2.5; stroke-dasharray: 6 8; animation: tp-march 1s linear infinite; }
.tp-gen__scene--travel .tp-scene__plane { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.tp-gen__scene--travel .tp-scene__journey > g { animation: tp-fly 3.2s var(--tp-ease) infinite; }
.tp-gen__scene--travel .tp-scene__ideas circle { fill: rgba(255, 178, 122, .2); stroke: rgba(255, 178, 122, .65); }
.tp-gen__scene--travel .tp-scene__ideas path { fill: #ffcf6b; }
.tp-gen__scene--travel .tp-scene__ideas > g { animation: tp-twinkle 2.2s ease-in-out infinite; }
.tp-gen__scene--travel .tp-scene__ideas > g:nth-child(2) { animation-delay: .5s; } .tp-gen__scene--travel .tp-scene__ideas > g:nth-child(3) { animation-delay: 1s; }
.tp-gen__scene--travel .tp-scene__places circle { fill: #fff; stroke: #ff7a2b; stroke-width: 4; }
.tp-gen__scene--travel .tp-scene__places > g { transform: scale(0); }
.tp-gen__scene--travel .tp-scene__places:is(.is-active, .is-complete) > g { animation: tp-pop-in .45s var(--tp-spring) forwards; }
.tp-gen__scene--travel .tp-scene__places > g:nth-child(2) { animation-delay: .2s; } .tp-gen__scene--travel .tp-scene__places > g:nth-child(3) { animation-delay: .4s; } .tp-gen__scene--travel .tp-scene__places > g:nth-child(4) { animation-delay: .6s; }
.tp-gen__scene--travel .tp-scene__places > g:nth-child(5) { animation-delay: .8s; } .tp-gen__scene--travel .tp-scene__places > g:nth-child(6) { animation-delay: 1s; } .tp-gen__scene--travel .tp-scene__places > g:nth-child(7) { animation-delay: 1.2s; } .tp-gen__scene--travel .tp-scene__places > g:nth-child(8) { animation-delay: 1.4s; }
.tp-gen__scene--travel .tp-scene__photos rect { fill: #fff; stroke: rgba(0, 0, 0, .1); }
.tp-gen__scene--travel .tp-scene__photos path { fill: #9ccfa8; }
.tp-gen__scene--travel .tp-scene__photos:is(.is-active, .is-complete) > g { animation: tp-deal .7s var(--tp-spring) both; }
.tp-gen__scene--travel .tp-scene__photos > g:nth-child(2) { animation-delay: .3s; }
.tp-gen__scene--travel .tp-scene__days:is(.is-active, .is-complete) .tp-scene__day { animation: tp-draw-600 1.3s var(--tp-ease) forwards; }
.tp-gen__scene--travel .tp-scene__days .tp-scene__day--2 { animation-delay: .8s !important; } .tp-gen__scene--travel .tp-scene__days .tp-scene__day--3 { animation-delay: 1.6s !important; }
.tp-gen__scene--travel .tp-scene__meals rect { fill: #ffcf6b; } .tp-gen__scene--travel .tp-scene__meals path { fill: none; stroke: #4a2c0b; stroke-width: 2; stroke-linecap: round; }
.tp-gen__scene--travel .tp-scene__meals:is(.is-active, .is-complete) > g { animation: tp-pop-in .45s var(--tp-spring) both; }
.tp-gen__scene--travel .tp-scene__meals > g:nth-child(2) { animation-delay: .25s; }
.tp-gen.is-complete .tp-gen__scene { box-shadow: inset 0 0 0 2px rgba(99, 201, 131, .5), 0 0 60px rgba(99, 201, 131, .18); }

/* ---------- Hike result: the guide ---------- */
.tp-hike.is-results-mode > .tp-hero,
.tp-hike.is-results-mode > .tp-workspace { display: none; }
.tp-result { margin-top: 6px; }
.tp-guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tp-guide > *, .tp-panel, .tp-panel > * { min-width: 0; }
.tp-cover { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 46vw, 500px); padding: clamp(24px, 4vw, 44px); overflow: hidden; border-radius: var(--tp-r-xl); background: #10261c; color: #fff; isolation: isolate; }
.tp-tabs { position: sticky; top: var(--tp-sticky-top); z-index: 40; display: flex; gap: 4px; justify-self: center; max-width: 100%; padding: 5px; overflow-x: auto; border: 1px solid var(--tp-line); border-radius: 999px; background: color-mix(in srgb, var(--tp-card) 88%, transparent); box-shadow: var(--tp-shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); scrollbar-width: none; isolation: isolate; }
.tp-tabs::-webkit-scrollbar { display: none; }
.tp-tabs button { position: relative; z-index: 1; display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--tp-muted); font-size: 14.5px; font-weight: 750; cursor: pointer; transition: color .35s var(--tp-ease); }
.tp-tabs button:hover { color: var(--tp-ink); }
.tp-tabs button.is-active { color: #fff; }
.tp-tabs:not(.has-thumb) button.is-active { background: var(--tp-forest); }
.tp-panel:not([hidden]) { animation: tp-fade-up .55s var(--tp-ease) both; }
.tp-panel > .tp-section-head { margin-top: 8px; }
.tp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tp-stat { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--tp-line); border-radius: 20px; background: var(--tp-card); box-shadow: var(--tp-shadow-sm); }
.tp-stat > .tp-ico { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--tp-accent-soft); color: var(--tp-accent-ink); }
.tp-stat:nth-child(2) > .tp-ico, .tp-stat:nth-child(4) > .tp-ico { background: var(--tp-moss); color: var(--tp-forest); }
.tp-stat b { margin-top: 4px; color: var(--tp-ink); font-size: clamp(22px, 2.4vw, 30px); font-weight: 830; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tp-stat b small { color: var(--tp-muted); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.tp-stat > span { color: var(--tp-muted); font-size: 13px; font-weight: 600; }
.tp-overview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; margin-top: 16px; }
.tp-ribbon { display: flex; gap: 4px; margin: 20px 0 6px; }
.tp-ribbon__day { position: relative; display: grid; align-content: center; gap: 1px; min-width: 0; min-height: 58px; padding: 8px 12px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--tp-day), color-mix(in srgb, var(--tp-day) 70%, #000)); color: #fff; text-align: left; cursor: pointer; overflow: hidden; transform-origin: left; animation: tp-grow-x .8s var(--tp-ease) both; transition: transform .3s var(--tp-ease), filter .3s; }
.tp-ribbon__day:nth-child(2) { animation-delay: .12s; } .tp-ribbon__day:nth-child(3) { animation-delay: .24s; } .tp-ribbon__day:nth-child(4) { animation-delay: .36s; } .tp-ribbon__day:nth-child(5) { animation-delay: .48s; }
.tp-ribbon__day:hover { filter: brightness(1.08); transform: translateY(-2px); }
.tp-ribbon__day b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tp-ribbon__day span { overflow: hidden; font-size: 12px; opacity: .88; text-overflow: ellipsis; white-space: nowrap; }
.tp-ribbon__day i { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(255, 255, 255, .22); }
.tp-ribbon__day i .tp-ico { width: 14px; height: 14px; }
.tp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tp-facts li { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--tp-card-2); border: 1px solid var(--tp-line); }
.tp-facts .tp-ico { grid-row: 1 / 3; width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: var(--tp-moss); color: var(--tp-forest); }
.tp-facts span { color: var(--tp-faint); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tp-facts b { overflow: hidden; color: var(--tp-ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.tp-route-svg__shadow { fill: none; stroke: rgba(255, 255, 255, .95); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .tp-variant .tp-route-svg__shadow { stroke: rgba(10, 18, 14, .85); }
.tp-route-svg__line { fill: none; stroke: var(--tp-day, var(--tp-accent)); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tp-draw-unit 1.3s var(--tp-ease) forwards; animation-delay: calc(var(--tp-i, 0) * 260ms + 200ms); }
.tp-route-svg__start { fill: var(--tp-accent); stroke: #fff; stroke-width: 3; }
.tp-route-svg__finish { fill: var(--tp-forest); stroke: #fff; stroke-width: 3; }
.tp-route-svg__stay circle { fill: #fff; stroke: #13201a; stroke-width: 1.5; }
.tp-route-svg__stay path { fill: #1d4a37; }
.tp-route-svg__stay { animation: tp-fade-in .4s 1.2s both; }

.tp-highlights, .tp-dayline { margin-top: 28px; }
.tp-highlight { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; border: 1px solid var(--tp-line); border-radius: 22px; background: var(--tp-card); color: var(--tp-ink); text-align: left; cursor: pointer; scroll-snap-align: start; box-shadow: var(--tp-shadow-sm); transition: transform .45s var(--tp-ease), box-shadow .45s; animation: tp-fade-up .6s var(--tp-ease) both; animation-delay: calc(var(--tp-i, 0) * 70ms); }
.tp-highlight::after, .tp-variant::after, .tp-daycard::after, .tp-history-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, -100px) var(--my, -100px), rgba(255, 140, 70, .12), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tp-highlight:hover::after, .tp-variant:hover::after, .tp-daycard:hover::after, .tp-history-card:hover::after { opacity: 1; }
.tp-highlight:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow); }
.tp-highlight__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tp-moss); }
.tp-highlight__body { display: grid; gap: 5px; padding: 13px 15px 15px; }
.tp-highlight__body small { display: flex; align-items: center; gap: 6px; color: var(--tp-accent-ink); font-size: 12px; font-weight: 750; }
.tp-highlight__body b { font-size: 15.5px; line-height: 1.3; }
.tp-highlight__credit { overflow: hidden; color: var(--tp-faint); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tp-highlight__credit a { color: inherit; }
.tp-daycard { position: relative; display: grid; gap: 6px; padding: 18px; overflow: hidden; border: 1px solid var(--tp-line); border-top: 4px solid var(--tp-day); border-radius: 20px; background: var(--tp-card); color: var(--tp-ink); text-align: left; cursor: pointer; box-shadow: var(--tp-shadow-sm); transition: transform .4s var(--tp-ease), box-shadow .4s; animation: tp-fade-up .6s var(--tp-ease) both; animation-delay: calc(var(--tp-i, 0) * 80ms); }
.tp-daycard:hover { transform: translateY(-3px); box-shadow: var(--tp-shadow); }
.tp-daycard b { font-size: 22px; font-weight: 830; letter-spacing: -.03em; }
.tp-daycard small { display: flex; align-items: center; gap: 7px; overflow: hidden; color: var(--tp-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

/* Photo states shared by highlights, day thumbs and place cards */
[data-hike-place-photo] { position: relative; overflow: hidden; background: linear-gradient(110deg, var(--tp-moss) 30%, color-mix(in srgb, var(--tp-moss) 50%, var(--tp-card)) 50%, var(--tp-moss) 70%); background-size: 220% 100%; }
[data-hike-place-photo].is-searching { animation: tp-shimmer 1.4s linear infinite; }
[data-hike-place-photo] img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--tp-ease), opacity .5s; }
[data-hike-place-photo] .hike-place-photo-link img { opacity: 0; }
[data-hike-place-photo].is-loaded .hike-place-photo-link img { opacity: 1; }
.tp-highlight:hover [data-hike-place-photo] img, .tp-place:hover [data-hike-place-photo] img { transform: scale(1.06); }
[data-hike-place-photo] .hike-place-photo-link { display: block; width: 100%; height: 100%; }
.hike-photo-searching { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .78); color: var(--tp-forest); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
html[data-theme="dark"] .hike-photo-searching { background: rgba(18, 29, 24, .8); }
[data-hike-place-photo].hike-place-card__photo--empty > span, .hike-photo-badge { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; border-radius: 8px; background: rgba(8, 20, 15, .66); color: #fff; font-size: 10.5px; font-weight: 750; letter-spacing: .02em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Day timeline */
.tp-timeline { display: grid; gap: 16px; }
.tp-day { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; scroll-margin-top: calc(var(--tp-sticky-top) + 70px); }
.tp-day__body { padding: clamp(18px, 2.4vw, 24px); border: 1px solid var(--tp-line); border-radius: 22px; background: var(--tp-card); box-shadow: var(--tp-shadow-sm); }
.tp-day__body header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tp-day__body header .tp-kicker { color: var(--tp-day); }
.tp-day__body h4 { margin: 4px 0 0; color: var(--tp-ink); font-size: clamp(18px, 1.9vw, 22px); font-weight: 800; letter-spacing: -.025em; line-height: 1.25; }
.tp-day__body > .tp-muted { margin: 14px 0 0; }
.tp-plan-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tp-plan-edit .hike-plan-summary { color: var(--tp-muted); font-size: 13px; font-weight: 700; }
.tp-plan-edit label { display: inline-flex; align-items: center; gap: 8px; color: var(--tp-muted); font-size: 13px; font-weight: 700; }
.tp-plan-edit select { min-height: 42px; padding: 0 12px; border: 1.5px solid var(--tp-line-2); border-radius: 12px; background: var(--tp-card); color: var(--tp-ink); font: inherit; font-weight: 700; }
.tp-plan-edit .tp-cta { min-height: 42px; }
.tp-logistics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.tp-logistics .tp-card { display: grid; gap: 4px; padding: 18px; }
.tp-logistics .tp-card > .tp-ico { width: 38px; height: 38px; margin-bottom: 6px; padding: 9px; border-radius: 12px; background: var(--tp-accent-soft); color: var(--tp-accent-ink); }
.tp-logistics b { color: var(--tp-ink); font-size: 16px; }
.tp-logistics p { margin: 0; color: var(--tp-muted); font-size: 13.5px; }
.tp-logistics .tp-link { justify-self: start; }

/* Places */
.tp-filters { display: flex; gap: 8px; margin: 0 -2px 16px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.tp-filters::-webkit-scrollbar { display: none; }
.tp-filters button { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--tp-line-2); border-radius: 999px; background: var(--tp-card); color: var(--tp-ink-2); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .25s; }
.tp-filters button:hover { border-color: var(--tp-forest-2); }
.tp-filters button.is-active { border-color: var(--tp-forest); background: var(--tp-forest); color: #fff; }
.tp-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tp-place { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--tp-line); border-radius: 22px; background: var(--tp-card); box-shadow: var(--tp-shadow-sm); transition: transform .45s var(--tp-ease), box-shadow .45s; animation: tp-fade-up .55s var(--tp-ease) both; }
.tp-place:nth-child(3n + 2) { animation-delay: .06s; } .tp-place:nth-child(3n + 3) { animation-delay: .12s; }
.tp-place:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow); }
.tp-place .hike-place-card__photo { aspect-ratio: 16 / 10; }
.tp-place .hike-place-card__body { display: grid; gap: 7px; align-content: start; padding: 15px 16px 16px; }
.tp-place__category { display: inline-flex; align-items: center; gap: 6px; color: var(--tp-accent-ink); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tp-place h4 { margin: 0; color: var(--tp-ink); font-size: 17px; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }
.tp-place p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--tp-muted); font-size: 13.5px; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tp-place .hike-place-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tp-place .hike-place-card__meta span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 9px; background: var(--tp-card-2); border: 1px solid var(--tp-line); color: var(--tp-ink-2); font-size: 12px; font-weight: 700; }
.tp-place .hike-place-card__credit { overflow: hidden; color: var(--tp-faint); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tp-place .hike-place-card__credit a { color: inherit; }
.tp-studio .hike-hotels { margin-top: 18px; padding: 20px; }
.tp-studio .hike-hotels__brand { color: var(--tp-muted); font-size: 12px; font-weight: 700; }

/* Gear */
.tp-gear-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tp-gear { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--tp-line); border-radius: 18px; background: var(--tp-card); cursor: pointer; transition: border-color .25s, background .25s; }
.tp-gear input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tp-gear__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--tp-accent-soft); color: var(--tp-accent-ink); transition: all .3s; }
.tp-gear .hike-gear-item__copy b { display: block; color: var(--tp-ink); font-size: 14.5px; transition: color .3s; }
.tp-gear .hike-gear-item__copy small { display: block; margin-top: 2px; color: var(--tp-muted); font-size: 12.5px; }
.tp-gear__check { display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--tp-line-2); border-radius: 50%; color: transparent; transition: all .3s var(--tp-spring); }
.tp-gear__check .tp-ico { width: 14px; height: 14px; stroke-width: 3; }
.tp-gear:has(input:checked) { border-color: var(--tp-moss-2); background: color-mix(in srgb, var(--tp-moss) 60%, var(--tp-card)); }
.tp-gear:has(input:checked) .tp-gear__icon { background: var(--tp-forest); color: #fff; }
.tp-gear:has(input:checked) .tp-gear__check { border-color: var(--tp-forest); background: var(--tp-forest); color: #fff; transform: scale(1.1); }
.tp-gear:has(input:checked) .hike-gear-item__copy b { color: var(--tp-muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* Candidate variants */
.tp-choose .tp-section-head { margin-bottom: 18px; }
.tp-variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.tp-variant { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1.5px solid var(--tp-line); border-radius: 24px; background: var(--tp-card); box-shadow: var(--tp-shadow-sm); transition: transform .45s var(--tp-ease), box-shadow .45s, border-color .3s; animation: tp-fade-up .6s var(--tp-ease) both; animation-delay: calc(var(--tp-i, 0) * 90ms); }
.tp-variant:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow); }
.tp-variant.is-selected { border-color: var(--tp-accent); }
.tp-variant__art { position: relative; aspect-ratio: 320 / 170; background: radial-gradient(120% 90% at 20% 10%, #f3f7ef, #dfe9dc); }
html[data-theme="dark"] .tp-variant__art { background: radial-gradient(120% 90% at 20% 10%, #1d2c24, #121d18); }
.tp-variant__art svg, .tp-variant__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-variant__number { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 10px; background: var(--tp-card); color: var(--tp-ink); font-size: 12px; font-weight: 850; box-shadow: var(--tp-shadow-sm); }
.tp-variant__body { display: grid; gap: 10px; align-content: start; padding: 18px; }
.tp-variant__body h4 { margin: 0; color: var(--tp-ink); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.tp-variant__body > p { margin: 0; color: var(--tp-muted); font-size: 13.5px; line-height: 1.55; }
.tp-variant__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.tp-variant__stats div { padding: 10px; border-radius: 12px; background: var(--tp-card-2); border: 1px solid var(--tp-line); }
.tp-variant__stats dt { color: var(--tp-faint); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tp-variant__stats dd { margin: 3px 0 0; color: var(--tp-ink); font-size: 14px; font-weight: 800; }
.tp-variant__warning { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(242, 169, 34, .1); color: #8a5a06; font-size: 12.5px; line-height: 1.45; }
.tp-variant .tp-cta { width: 100%; margin-top: 4px; }

/* Map shell (ported from the legacy hike stylesheet) */
.tp-map-shell { position: relative; height: clamp(420px, 60vh, 640px); overflow: hidden; border: 1px solid var(--tp-line); border-radius: 24px; background: #e9efe6; box-shadow: var(--tp-shadow-sm); }
.tp-map-shell .hike-route-map { width: 100%; height: 100%; }
.hike-map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: calc(100% - 24px); padding: 9px 12px; border: 1px solid rgba(19, 32, 26, .08); border-radius: 13px; background: rgba(255, 255, 255, .92); color: #2a3a31; font-size: 12px; font-weight: 650; box-shadow: 0 8px 24px rgba(19, 32, 26, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hike-map-legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hike-map-legend i { width: 18px; height: 4px; border-radius: 5px; background: var(--hike-day-color, #ff5722); }
.hike-map-legend .hike-map-key { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border: 1.5px solid #fff; border-radius: 50%; background: var(--hike-place-color, #56675b); color: #fff; }
.hike-map-key .tp-ico { width: 15px; height: 15px; stroke-width: 1.8; }
.hike-map-categories { position: static; }
.hike-map-categories[hidden] { display: none; }
.hike-map-categories > summary { display: flex; align-items: center; gap: 5px; padding: 2px; cursor: pointer; list-style: none; }
.hike-map-categories > summary::-webkit-details-marker { display: none; }
.hike-map-categories > summary::after { content: '⌃'; margin-left: 4px; }
.hike-map-categories[open] > summary::after { content: '⌄'; }
.hike-map-category-list { position: absolute; bottom: calc(100% + 12px); left: 0; display: grid; gap: 9px; box-sizing: border-box; width: 280px; max-width: 100%; max-height: min(200px, 35vh); padding: 12px; overflow-y: auto; border: 1px solid rgba(19, 32, 26, .12); border-radius: 14px; background: #fff; color: #2a3a31; box-shadow: 0 6px 20px rgba(19, 32, 26, .18); }
.hike-map-category-list .hike-map-category { white-space: normal; }
.hike-map-categories > summary:focus-visible { outline: 2px solid #2563a6; outline-offset: 3px; border-radius: 4px; }
.hike-map-fallback { display: grid; place-items: center; min-height: 100%; padding: 28px; color: #59675e; text-align: center; }
.hike-map-pin { display: grid; place-items: center; box-sizing: border-box; width: 36px; height: 36px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--hike-place-color, #56675b); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .28); cursor: pointer; }
.hike-map-pin .tp-ico { width: 20px; height: 20px; color: #fff; stroke: #fff; pointer-events: none; }
.hike-map-pin:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 3px 10px rgba(0, 0, 0, .3); }
.hike-map-pin:focus-visible { outline: 3px solid #13201a; outline-offset: 3px; }
.hike-map-endpoint { padding: 5px 9px; border: 2px solid #fff; border-radius: 10px; background: #13201a; color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.hike-map-popup { display: grid; gap: 5px; max-width: 260px; color: #202923; font-size: 13px; }
.hike-map-popup strong { font-size: 14px; }
.hike-map-popup small { color: #68766c; }
.hike-map-popup a { color: #b84f24; font-weight: 700; }

/* Toasts */
.tp-toasts { position: fixed; left: 50%; bottom: 24px; z-index: 6500; display: grid; gap: 8px; justify-items: center; width: min(520px, calc(100vw - 32px)); transform: translateX(-50%); pointer-events: none; }
.tp-toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: #13201a; color: #fff; font-size: 14px; font-weight: 650; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); animation: tp-toast-in .45s var(--tp-spring) both; }
.tp-toast .tp-ico { color: #7fd1a3; }
.tp-toast.is-error .tp-ico { color: #ff8a7a; }
.tp-toast.is-leaving { animation: tp-toast-out .3s var(--tp-ease) forwards; }

/* ---------- Travel result restyle ---------- */
.tp-studio.is-result-view { padding-top: 92px; }
.tp-studio .ai-guide__result { padding: clamp(14px, 2vw, 22px); border: 1px solid var(--tp-line); border-radius: 32px; background: var(--tp-card); box-shadow: var(--tp-shadow); animation: tp-fade-up .7s var(--tp-ease) both; }
.tp-studio .ai-guide__result-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.tp-studio .ai-guide__result-toolbar .ai-guide__reset { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--tp-line-2); border-radius: 13px; background: var(--tp-card); color: var(--tp-ink); font-weight: 750; cursor: pointer; }
.tp-studio .ai-guide__result-toolbar .ai-guide__reset::before { content: '+'; color: var(--tp-accent); font-size: 18px; font-weight: 800; }
.tp-studio .ai-guide__result-top { position: relative; min-height: clamp(360px, 40vw, 470px); padding: clamp(24px, 4vw, 44px) !important; overflow: hidden; border: 0 !important; border-radius: 26px !important; background-color: #10261c !important; background-size: cover !important; background-position: center !important; color: #fff; isolation: isolate; display: flex !important; flex-direction: column; justify-content: flex-end; gap: 22px; }
.tp-studio .ai-guide__result-top::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 20, 15, .93) 0%, rgba(8, 20, 15, .55) 48%, rgba(8, 20, 15, .12) 85%), linear-gradient(90deg, rgba(8, 20, 15, .5), transparent 65%) !important; }
.tp-studio .ai-guide__result-top:not(.has-hero-image) { background-image: radial-gradient(80% 90% at 85% 10%, rgba(255, 122, 43, .45), transparent 60%), linear-gradient(135deg, #17392b, #0d2219) !important; }
.tp-studio .ai-guide__result-top .ai-guide__eyebrow { display: inline-flex; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ffd2b5 !important; backdrop-filter: blur(8px); }
.tp-studio .ai-guide__result-top .ai-guide__draft-badge { display: inline-flex; margin-left: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 106, 26, .22) !important; color: #ffe1cf !important; border: 1px solid rgba(255, 170, 120, .35) !important; font-size: 12px; font-weight: 750; }
.tp-studio .ai-guide__result-top h2 { margin: 14px 0 10px !important; color: #fff !important; font-size: clamp(34px, 5vw, 64px) !important; font-weight: 830 !important; letter-spacing: -.045em !important; line-height: 1 !important; }
.tp-studio .ai-guide__result-top h2 [data-guide-title-dates] { display: block; margin-top: 8px; color: rgba(255, 255, 255, .78); font-size: .42em; font-weight: 700; letter-spacing: -.01em; }
.tp-studio .ai-guide__result-top p { max-width: 680px; color: rgba(255, 255, 255, .84) !important; font-size: 16px !important; line-height: 1.6 !important; }
.tp-studio .ai-guide__result-actions { display: flex !important; flex-wrap: wrap; gap: 8px !important; justify-content: flex-start !important; max-width: none !important; }
.tp-studio .ai-guide__result-actions .ai-guide__outline-action { min-height: 42px !important; padding: 0 14px !important; border: 1px solid rgba(255, 255, 255, .28) !important; border-radius: 13px !important; background: rgba(255, 255, 255, .13) !important; color: #fff !important; font-size: 13.5px !important; font-weight: 750 !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .25s, transform .3s var(--tp-ease); }
.tp-studio .ai-guide__result-actions .ai-guide__outline-action:hover { background: rgba(255, 255, 255, .24) !important; transform: translateY(-1px); }
.tp-studio .ai-guide__result-actions .ai-guide__outline-action--danger { border-color: rgba(255, 138, 122, .4) !important; color: #ffd0c8 !important; }
.tp-studio .ai-guide__guide-nav { position: sticky; top: var(--tp-sticky-top); z-index: 40; margin-top: 16px !important; padding: 8px 8px 8px 18px !important; border: 1px solid var(--tp-line) !important; border-radius: 22px !important; background: color-mix(in srgb, var(--tp-card) 90%, transparent) !important; box-shadow: var(--tp-shadow) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.tp-studio .ai-guide__guide-nav-tabs button { border-radius: 14px !important; transition: background .3s var(--tp-ease), color .3s !important; }
.tp-studio .ai-guide__guide-nav-tabs button.is-active { background: var(--tp-forest) !important; color: #fff !important; box-shadow: 0 8px 18px rgba(29, 74, 55, .25) !important; }
.tp-studio .ai-guide__guide-nav-tabs button.is-active span { color: #ffd2b5 !important; }
.tp-studio .ai-guide__metric { border-radius: 20px !important; border-color: var(--tp-line) !important; box-shadow: var(--tp-shadow-sm) !important; transition: transform .4s var(--tp-ease), box-shadow .4s; animation: tp-fade-up .6s var(--tp-ease) both; }
.tp-studio .ai-guide__metric:nth-child(2) { animation-delay: .07s; } .tp-studio .ai-guide__metric:nth-child(3) { animation-delay: .14s; } .tp-studio .ai-guide__metric:nth-child(4) { animation-delay: .21s; }
.tp-studio .ai-guide__metric:hover { transform: translateY(-3px); box-shadow: var(--tp-shadow) !important; }
.tp-studio .ai-guide__metric strong { font-size: clamp(22px, 2.4vw, 28px) !important; letter-spacing: -.03em; }
.tp-studio .ai-guide__day-tabs { gap: 8px !important; }
.tp-studio .ai-guide__day-tab { border-radius: 16px !important; transition: transform .3s var(--tp-ease), background .3s, box-shadow .3s !important; }
.tp-studio .ai-guide__day-tab:hover { transform: translateY(-2px); }
.tp-studio .ai-guide__day-tab.is-active { background: linear-gradient(135deg, #ff7f30, var(--tp-accent-2)) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 12px 24px rgba(239, 84, 12, .28) !important; }
.tp-studio .ai-guide__day-tab.is-active span, .tp-studio .ai-guide__day-tab.is-active strong { color: #fff !important; }
.tp-studio .ai-guide__place-card { border-radius: 22px !important; border-color: var(--tp-line) !important; box-shadow: var(--tp-shadow-sm) !important; transition: box-shadow .4s var(--tp-ease), transform .4s var(--tp-ease); }
.tp-studio .ai-guide__place:hover .ai-guide__place-card { box-shadow: var(--tp-shadow) !important; }
.tp-studio .ai-guide__place { animation: tp-fade-up .6s var(--tp-ease) both; }
.tp-studio .ai-guide__place-gallery { border-radius: 18px !important; overflow: hidden; }
.tp-studio .ai-guide__place-gallery img { transition: transform .8s var(--tp-ease); }
.tp-studio .ai-guide__place-card:hover .ai-guide__place-gallery img { transform: scale(1.04); }
.tp-studio .ai-guide__stop-number { background: linear-gradient(135deg, #ff7f30, var(--tp-accent-2)) !important; box-shadow: 0 8px 18px rgba(239, 84, 12, .3); }
.tp-studio .ai-guide__map { border-radius: 22px !important; overflow: hidden; }
.tp-studio .ai-guide__day-content:not(:empty) { animation: tp-fade-up .5s var(--tp-ease) both; }
.tp-studio .ai-guide__overview > *, .tp-studio .ai-guide__journey > *, .tp-studio .ai-guide__budget-summary > * { animation: tp-fade-up .6s var(--tp-ease) both; }
.tp-studio .ai-guide__submit.ai-guide__route-edit-action { background: linear-gradient(135deg, #ff7f30, var(--tp-accent-2)) !important; }

.tp-studio .ai-guide__day-tabs { top: calc(var(--tp-sticky-top) + 78px) !important; }
.tp-studio .ai-guide__guide-nav-tabs { scrollbar-width: none; }
.tp-studio .ai-guide__guide-nav-tabs button { font-size: 14px !important; white-space: nowrap; }
.tp-studio .ai-guide__result :is(.ai-guide__outline-action, .ai-guide__day-controls button, .ai-guide__section-spoiler-action, .ai-guide__overview-summary-action) { font-size: 13.5px !important; }
@media (max-width: 1180px) {
    .tp-studio .ai-guide__guide-nav-copy { display: none !important; }
    .tp-studio .ai-guide__guide-nav { padding: 6px !important; }
    .tp-studio .ai-guide__guide-nav-tabs { width: 100%; overflow-x: auto; }
}
@media (max-width: 767px) {
    .tp-studio .ai-guide__guide-nav { position: static !important; }
    .tp-studio .ai-guide__day-tabs, .tp-studio.ai-guide[data-guide-view="route"] .ai-guide__day-tabs { top: var(--tp-sticky-top) !important; }
}

/* ---------- Reveal on scroll ---------- */
.tp-studio [data-tp-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--tp-ease), transform .8s var(--tp-ease); }
.tp-studio [data-tp-reveal].is-in { opacity: 1; transform: none; }
.tp-studio .tp-workspace > [data-tp-reveal]:nth-child(2) { transition-delay: .12s; }

/* ---------- Keyframes ---------- */
@keyframes tp-kenburns { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
@keyframes tp-rise { to { transform: translateY(0); } }
@keyframes tp-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tp-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tp-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes tp-pop-in { from { transform: scale(0); } 70% { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes tp-bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes tp-draw { to { stroke-dashoffset: 0; } }
@keyframes tp-draw-unit { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tp-draw-600 { to { stroke-dashoffset: 0; } }
@keyframes tp-dash-drift { to { stroke-dashoffset: -300; } }
@keyframes tp-march { to { stroke-dashoffset: -22; } }
@keyframes tp-spin { to { --tp-angle: 360deg; } }
@keyframes tp-spin-r { to { transform: rotate(360deg); } }
@keyframes tp-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
@keyframes tp-ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
@keyframes tp-drop { from { transform: translateY(-40px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tp-twinkle { 0%, 100% { transform: scale(.85) rotate(0); opacity: .75; } 50% { transform: scale(1.1) rotate(12deg); opacity: 1; } }
@keyframes tp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tp-aurora { from { transform: translate(-10%, 0) scale(1); } to { transform: translate(15%, 12%) scale(1.25); } }
@keyframes tp-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes tp-shimmer-bg { from { background-position: 0 0; } to { background-position: -200% 0; } }
@keyframes tp-indeterminate { 0% { transform: translateX(-110%); } 100% { transform: translateX(310%); } }
@keyframes tp-scan { 0% { left: -25%; } 100% { left: 100%; } }
@keyframes tp-fly { 0% { transform: translate(-40px, -10px) rotate(14deg); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(150px, 80px) rotate(24deg); opacity: 0; } }
@keyframes tp-deal { from { opacity: 0; transform: translateY(30px) rotate(-12deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes tp-grow-x { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes tp-toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tp-toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
}
@media (max-width: 1024px) {
    .tp-workspace { grid-template-columns: minmax(0, 1fr); }
    .tp-preview, .tp-summary { position: static; }
    .tp-preview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
    .tp-preview__head, .tp-preview__how { grid-column: 1 / -1; }
    .tp-gen__body { grid-template-columns: minmax(0, 1fr); }
    .tp-gen__scene { min-height: 280px; aspect-ratio: 640 / 380; }
    .tp-overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .tp-studio-head { flex-wrap: wrap; }
    .tp-studio-head__brand { flex: 1; }
    .tp-switch { order: 3; width: 100%; }
    .tp-switch__item { flex: 1; justify-content: center; }
    .tp-mobilebar { position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border: 1px solid var(--tp-line); border-radius: 22px; background: color-mix(in srgb, var(--tp-card) 92%, transparent); box-shadow: 0 18px 50px rgba(13, 31, 23, .22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .45s var(--tp-ease), opacity .3s; }
    .tp-mobilebar > div { display: grid; min-width: 0; }
    .tp-mobilebar b { overflow: hidden; color: var(--tp-ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
    .tp-mobilebar small { overflow: hidden; color: var(--tp-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
    .tp-mobilebar .tp-cta { min-height: 46px; padding: 0 18px; }
    .tp-mobilebar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
    body.page-ai-guide:has(.tp-mobilebar:not(.is-hidden)) #site-scroll-to-top { bottom: 104px !important; }
    .tp-studio.is-result-view .tp-mobilebar, .tp-studio.is-generating .tp-mobilebar { display: none; }
    .tp-summary__card .tp-cta--block, .tp-summary__note { display: none; }
    .tp-summary__card { display: none; }
}
@media (max-width: 767px) {
    .ai-guide.tp-studio { width: calc(100% - 24px); padding: 84px 0 calc(var(--mobile-nav-clearance, 88px) + 90px); }
    .tp-studio, .tp-gen { --tp-sticky-top: 76px; }
    .tp-mobilebar { bottom: calc(var(--mobile-nav-clearance, 88px) + 8px); }
    body.page-ai-guide:has(.tp-mobilebar:not(.is-hidden)) #site-scroll-to-top { bottom: calc(var(--mobile-nav-clearance, 88px) + 84px) !important; }
    .tp-toasts { bottom: calc(var(--mobile-nav-clearance, 88px) + 12px); }
    .tp-studio-head__brand small { display: none; }
    .tp-studio-head__links a, .tp-studio-head__how { padding: 0 9px; font-size: 12.5px; }
    .tp-studio-head__links a:first-child { display: none; }
    .tp-hero { min-height: 0; padding: 26px 20px 110px; border-radius: 24px; }
    .tp-hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
    .tp-hero p { font-size: 14.5px; }
    .tp-hero__facts { display: none; }
    .tp-hero__copy .tp-kicker { font-size: 10.5px; letter-spacing: .08em !important; }
    .tp-workspace { margin: -84px 6px 0; }
    .tp-composer, .tp-builder { padding: 18px 16px; border-radius: 24px; }
    .tp-composer__top { flex-wrap: wrap; margin-bottom: 18px; }
    .tp-modes { width: 100%; }
    .tp-modes button { flex: 1; justify-content: center; padding: 0 10px; font-size: 13.5px; }
    .tp-composer__top .tp-link { display: none; }
    .tp-prompt textarea { min-height: 112px; padding: 16px; font-size: 16px; }
    .tp-composer__actions { flex-direction: column; align-items: stretch; }
    .tp-composer__actions .tp-cta { width: 100%; }
    .tp-stepper { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
    .tp-stepper button { flex: none; }
    .tp-stepper button:not(.is-active) b { display: none; }
    .tp-grid { grid-template-columns: minmax(0, 1fr); }
    .tp-tiles { grid-template-columns: minmax(0, 1fr); }
    .tp-step-actions { flex-wrap: wrap; }
    .tp-step-actions > span { order: -1; flex-basis: 100%; text-align: left; }
    .tp-step-actions .tp-cta { flex: 1; }
    .tp-preview { grid-template-columns: minmax(0, 1fr); padding: 18px; border-radius: 24px; }
    .tp-search { border-radius: 20px; }
    .tp-search__cell, .tp-search__cell:nth-child(-n + 2), .tp-search__cell--narrow { grid-column: 1 / -1; }
    .tp-search__cell:nth-child(3), .tp-search__cell:nth-child(4) { grid-column: span 3; }
    .tp-counter { position: static; justify-self: start; }
    .tp-block__head { display: block; }
    .tp-chip { min-height: 38px; padding: 0 12px 0 10px; font-size: 13.5px; }
    .tp-form__submit .tp-cta { width: 100%; }
    .tp-cover { min-height: 460px; padding: 22px 18px; border-radius: 24px; }
    .tp-cover { flex-direction: column; justify-content: flex-end; align-items: stretch; }
    .tp-tabs { justify-self: stretch; border-radius: 18px; }
    .tp-tabs button { padding: 0 13px; font-size: 13.5px; }
    .tp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tp-stats .tp-stat:last-child { grid-column: 1 / -1; }
    .tp-stat { padding: 14px; }
    .tp-facts { grid-template-columns: minmax(0, 1fr); }
    .tp-ribbon__day { min-height: 52px; padding: 6px 8px; }
    .tp-ribbon__day i { display: none; }
    .tp-day { grid-template-columns: minmax(0, 1fr); }
    .tp-day__body { padding-top: 66px; }
    .tp-gear-list { grid-template-columns: minmax(0, 1fr); }
    .tp-places { grid-template-columns: minmax(0, 1fr); }
    .tp-map-shell { height: 62vh; border-radius: 20px; }
    .tp-section-head { flex-wrap: wrap; align-items: flex-start; }
    .ai-guide__generation.tp-gen { padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); }
    .tp-gen__inner { align-content: start; gap: 16px; }
    .tp-gen__head h2 { font-size: 27px; }
    .tp-gen__meta span { padding: 6px 10px; font-size: 12.5px; }
    .tp-gen__scene { min-height: 0; aspect-ratio: 640 / 400; border-radius: 22px; }
    .tp-gen__tracker { padding: 18px; border-radius: 22px; gap: 14px; }
    .tp-gen__steps li { padding: 6px 8px; font-size: 13.5px; }
    .tp-gen__steps li:not(.is-active):not(.is-complete) { opacity: .7; }
    .tp-gen__foot { flex-direction: column; align-items: stretch; }
    .tp-gen__cancel { width: 100%; }
    .tp-studio .ai-guide__result { padding: 10px; border-radius: 26px; }
    .tp-studio .ai-guide__result-top { min-height: 420px; border-radius: 20px !important; }
    .tp-studio .ai-guide__result-actions { display: grid !important; grid-template-columns: 1fr 1fr; }
    .tp-studio .ai-guide__result-actions .ai-guide__outline-action { width: 100%; justify-content: center; padding: 0 8px !important; font-size: 12.5px !important; }
}
@media (max-width: 380px) {
    .tp-hero h1 { font-size: 28px; }
    .tp-switch__item { padding: 0 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .tp-studio *, .tp-studio *::before, .tp-studio *::after, .tp-gen *, .tp-gen *::before, .tp-gen *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .tp-word > span { transform: none; }
    .tp-studio [data-tp-reveal] { opacity: 1; transform: none; }
    .tp-scene__day, .tp-route-svg__line, .tp-preview__line, .tp-hero__topo .tp-hero__trail { stroke-dashoffset: 0 !important; }
    .tp-gen__scene--hike .tp-scene__stay, .tp-gen__scene--hike .tp-scene__pois > g, .tp-gen__scene--travel .tp-scene__places > g { transform: none; }
}
.tp-plus-access{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;margin-bottom:24px;border:1px solid var(--tp-line, #dde3df);border-radius:20px;background:var(--tp-card, #fff);color:var(--tp-ink, #15251c)}
.tp-plus-access p{margin:6px 0;max-width:850px;font-size:14px;line-height:1.55}
.tp-plus-access small{font-size:12px;line-height:1.5;color:var(--tp-muted, #617368)}
.tp-plus-access .tp-cta{flex-shrink:0;color:var(--tp-ink, #15251c)}
.tp-preview-lock{position:relative;min-height:280px;margin:24px 0;overflow:hidden;border:1px solid var(--tp-line, #dde3df);border-radius:24px;background:var(--tp-card, #fff)}
.tp-preview-lock__skeleton{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:24px;filter:blur(8px);opacity:.8;pointer-events:none}
.tp-preview-lock__skeleton div{height:230px;border-radius:20px;background:linear-gradient(135deg,#527366,#b6c5ad 55%,#eee6d4)}
.tp-preview-lock__skeleton div::after{content:"";display:block;margin:130px 20px 0;height:70px;border-radius:12px;background:repeating-linear-gradient(to bottom,#fff8 0 8px,transparent 8px 20px)}
.tp-preview-lock__copy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;background:color-mix(in srgb,var(--tp-card, #fff) 65%,transparent)}
.tp-preview-lock__copy h3{margin:0 0 12px;font-size:22px;line-height:1.3;color:var(--tp-ink, #15251c)}
.tp-preview-lock__copy p{max-width:580px;margin:0 0 20px;font-size:14px;line-height:1.6;color:var(--tp-muted, #617368)}
@media(max-width:640px){.tp-plus-access{align-items:flex-start;flex-direction:column;padding:18px;gap:14px}.tp-preview-lock{min-height:340px}.tp-preview-lock__copy h3{font-size:20px}.tp-preview-lock__skeleton{grid-template-columns:1fr}.tp-preview-lock__skeleton div:not(:first-child){display:none}}
