﻿:root {
  --ink: #20312e;
  --muted: #6f7772;
  --paper: #f5f1e8;
  --panel: #fffdf8;
  --forest: #24594c;
  --forest-dark: #173e35;
  --sage: #dbe5d8;
  --gold: #d7a448;
  --coral: #d97b61;
  --line: rgba(32, 49, 46, .13);
  --shadow: 0 24px 80px rgba(30, 52, 45, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(215,164,72,.12), transparent 28rem),
    radial-gradient(circle at 90% 4%, rgba(36,89,76,.1), transparent 30rem),
    var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
.page-shell { min-height: 100vh; }
.topbar {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1380px;
  margin: auto;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
}
.topbar p { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; color: var(--ink); text-decoration: none; font: 600 25px "Fraunces", serif; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: var(--forest); font-family: sans-serif; font-size: 16px; }
.text-button, .back-button { justify-self: end; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 700; }

.builder {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(520px, 1.12fr);
  max-width: 1240px;
  margin: 0 auto;
  min-height: calc(100vh - 76px);
  padding: 72px 42px 64px;
  gap: 88px;
  align-items: center;
}
.builder-copy { position: sticky; top: 130px; align-self: start; padding-top: 34px; }
.eyebrow { margin: 0 0 14px; color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.builder h1 { margin: 0; max-width: 520px; font: 600 clamp(46px, 5vw, 76px)/.99 "Fraunces", serif; letter-spacing: -.045em; }
.builder h1 em { color: var(--forest); font-weight: 500; }
.lede { max-width: 455px; margin: 27px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.journey-line { display: flex; align-items: center; width: 88%; margin: 54px 0 30px; color: var(--forest); }
.journey-path { flex: 1; border-top: 1px dashed rgba(36,89,76,.42); }
.journey-dot { width: 9px; height: 9px; border: 2px solid var(--forest); border-radius: 50%; background: var(--paper); }
.journey-dot.end { background: var(--forest); box-shadow: 0 0 0 5px rgba(36,89,76,.1); }
.journey-plane { padding: 0 13px; color: var(--gold); }
.trust-note { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; }
.avatar-stack { display: flex; }
.avatar-stack i { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -7px; border: 2px solid var(--paper); border-radius: 50%; background: var(--sage); font-style: normal; font-size: 14px; }
.avatar-stack i:first-child { margin-left: 0; }

.trip-form { background: rgba(255,253,248,.9); border: 1px solid rgba(255,255,255,.8); border-radius: 24px; box-shadow: var(--shadow); padding: 32px 36px 27px; backdrop-filter: blur(10px); }
.step-row { display: flex; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.step-count { color: var(--muted); font-weight: 500; }
.security-note { display: flex; align-items: center; gap: 10px; margin: 17px 0 -3px; padding: 10px 12px; border: 1px solid rgba(36,89,76,.14); border-radius: 9px; color: var(--forest); background: rgba(219,229,216,.52); }
.security-note > span { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border-radius: 50%; color: white; background: var(--forest); font-size: 11px; font-weight: 800; }
.security-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.security-note strong { color: var(--forest); }
.security-note > div { display: grid; gap: 4px; min-width: 0; }
.security-note .privacy-disclosure { color: #555e59; font-size: 9px; }
.field-group { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.field-group.last { padding-bottom: 22px; border-bottom: 0; }
.question-number { padding-top: 3px; color: var(--gold); font: 600 13px "Fraunces", serif; }
.field-content label { display: block; font: 600 21px "Fraunces", serif; }
.field-content > p { margin: 5px 0 15px; color: var(--muted); font-size: 12px; }
.input-wrap { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.input-wrap span { color: var(--forest); font-size: 19px; }
input, textarea { border: 0; outline: 0; color: var(--ink); background: transparent; }
.input-wrap input { width: 100%; height: 100%; }
input::placeholder, textarea::placeholder { color: #a4aaa6; }
.input-wrap:focus-within, .date-field:focus-within, textarea:focus { border-color: rgba(36,89,76,.55); box-shadow: 0 0 0 3px rgba(36,89,76,.09); }
.date-grid { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 8px; align-items: center; }
.date-field { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.field-content .date-field > label { display: block; margin-bottom: 2px; color: var(--muted); font: 700 9px/1.3 Aptos, "Aptos Display", "Segoe UI", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.date-field input { width: 100%; min-height: 24px; font-size: 13px; }
.date-arrow { color: var(--gold); text-align: center; }
.date-error { margin: 7px 0 0 !important; color: #b74c38 !important; min-height: 16px; }
textarea { width: 100%; resize: vertical; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; line-height: 1.55; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.prompt-chips button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #f8f5ed; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 600; }
.prompt-chips button:hover { border-color: var(--forest); color: var(--forest); background: var(--sage); }
.primary-button { width: 100%; min-height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border: 0; border-radius: 10px; color: white; background: var(--forest); cursor: pointer; font-weight: 700; box-shadow: 0 11px 25px rgba(36,89,76,.2); transition: transform .2s, background .2s; }
.primary-button:hover { transform: translateY(-2px); background: var(--forest-dark); }
.form-footnote { margin: 13px 0 0; color: var(--muted); text-align: center; font-size: 10px; }

.result[hidden], .builder[hidden] { display: none; }
.result { min-height: calc(100vh - 76px); }
.report-status { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.result-hero { position: relative; padding: 64px max(42px, calc((100vw - 1240px)/2)); color: white; overflow: hidden; background: linear-gradient(118deg, rgba(23,62,53,.98), rgba(36,89,76,.82)), radial-gradient(circle at 78% 30%, var(--gold), transparent 22rem); }
.result-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: 7%; top: -190px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.03), 0 0 0 110px rgba(255,255,255,.025); }
.result-topline { display: flex; justify-content: space-between; margin-bottom: 48px; }
.back-button { justify-self: auto; color: white; padding: 0; }
.saved-pill { position: relative; z-index: 2; padding: 7px 11px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; font-size: 10px; }
.eyebrow.light { color: #f5c96f; }
.result-hero h2 { position: relative; z-index: 2; max-width: 800px; margin: 0; font: 600 clamp(42px, 6vw, 70px)/1 "Fraunces", serif; letter-spacing: -.035em; }
.result-hero > p:not(.eyebrow) { margin: 15px 0 0; color: rgba(255,255,255,.78); }
.trip-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trip-stat { padding: 8px 12px; border-radius: 8px; color: rgba(255,255,255,.88); background: rgba(255,255,255,.1); font-size: 11px; }
.result-layout { display: grid; grid-template-columns: 260px 1fr; max-width: 1240px; margin: auto; padding: 42px; gap: 56px; }
.sidebar-label { margin: 0 0 14px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
#dayNav { display: grid; gap: 5px; }
.day-button { display: grid; grid-template-columns: 38px 1fr; gap: 10px; width: 100%; padding: 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.day-button:hover { background: rgba(255,255,255,.55); }
.day-button.active { color: white; background: var(--forest); }
.day-num { font: 600 22px "Fraunces", serif; }
.day-meta { display: grid; gap: 3px; align-content: center; }
.day-meta strong { font-size: 11px; }
.day-meta span { color: var(--muted); font-size: 9px; }
.day-button.active .day-meta span { color: rgba(255,255,255,.65); }
.sidebar-note { display: flex; gap: 10px; margin-top: 28px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.sidebar-note > span { color: var(--coral); }
.sidebar-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.sidebar-note strong { display: block; color: var(--ink); }
.itinerary-panel { min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: end; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 0; font: 600 32px "Fraunces", serif; }
.panel-heading .eyebrow { margin-bottom: 7px; }
.outline-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.day-content { padding-top: 24px; }
.activity-card { position: relative; display: grid; grid-template-columns: 60px 40px 1fr 30px; align-items: start; gap: 13px; padding: 18px 10px; border-bottom: 1px solid var(--line); outline: 0; }
.activity-card::before { content: ""; position: absolute; left: 82px; top: 59px; bottom: -19px; border-left: 1px dashed rgba(36,89,76,.23); }
.activity-card:last-child::before { display: none; }
.activity-card:focus { border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(36,89,76,.25); }
.activity-time { padding-top: 10px; color: var(--muted); font-size: 10px; font-weight: 700; }
.activity-icon { position: relative; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sage); font-size: 16px; }
.activity-copy { padding-top: 2px; }
.activity-type { color: var(--coral); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.activity-copy h4 { margin: 3px 0 5px; font: 600 18px "Fraunces", serif; }
.activity-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.activity-menu { margin-top: 7px; border: 0; background: transparent; color: var(--muted); cursor: pointer; letter-spacing: 2px; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr 1fr; padding: 0 22px; }
  .topbar p { display: none; }
  .builder { grid-template-columns: 1fr; gap: 42px; padding: 36px 22px 48px; }
  .builder-copy { position: static; padding-top: 0; }
  .builder h1 { max-width: 650px; }
  .journey-line, .trust-note { display: none; }
  .trip-form { padding: 27px 25px 23px; }
  .result-layout { grid-template-columns: 1fr; padding: 30px 22px; gap: 26px; }
  .trip-sidebar { overflow-x: auto; }
  #dayNav { display: flex; min-width: max-content; }
  .day-button { width: 170px; }
  .sidebar-note, .sidebar-label { display: none; }
  .result-hero { padding: 44px 22px; }
}

@media (max-width: 560px) {
  .topbar { height: 64px; }
  .builder { min-height: calc(100vh - 64px); }
  .builder h1 { font-size: 47px; }
  .trip-form { margin-inline: -8px; border-radius: 18px; padding: 23px 18px; }
  .field-group { grid-template-columns: 30px 1fr; gap: 7px; }
  .date-grid { grid-template-columns: 1fr; }
  .date-arrow { display: none; }
  .prompt-chips button:nth-child(n+4) { display: none; }
  .panel-heading { align-items: start; }
  .panel-heading h3 { font-size: 26px; }
  .activity-card { grid-template-columns: 45px 36px 1fr; gap: 8px; padding-inline: 0; }
  .activity-card::before { left: 62px; }
  .activity-icon { width: 36px; height: 36px; }
  .activity-menu { display: none; }
}

@media print {
  .topbar, .trip-sidebar, .result-topline, .outline-button { display: none !important; }
  .result-hero { padding: 30px; }
  .result-layout { display: block; padding: 30px; }
  .activity-card { break-inside: avoid; }
}

/* Final mobile swipe behavior for daily itinerary navigation */
@media(max-width:760px) {
  .report-day-bar { min-width:0; overflow:hidden; }
  .report-day-bar #dayNav.day-strip {
    display:flex !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    flex-wrap:nowrap !important;
    justify-content:flex-start !important;
    gap:8px;
    padding:3px 12px 9px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scroll-snap-type:x proximity;
    scroll-padding-inline:12px;
    scrollbar-width:thin;
    touch-action:pan-x pinch-zoom;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }
  .report-day-bar #dayNav.day-strip::-webkit-scrollbar { height:3px; }
  .report-day-bar #dayNav.day-strip::-webkit-scrollbar-thumb { border-radius:99px; background:rgba(255,255,255,.55); }
  .report-day-bar #dayNav.day-strip .day-button {
    flex:0 0 118px !important;
    width:118px !important;
    min-width:118px !important;
    scroll-snap-align:center;
    scroll-snap-stop:normal;
  }
}

/* Clickable workflow stages and branded creation transition */
.trip-form .form-progress span[role="button"] { cursor:pointer; user-select:none; }
.trip-form .form-progress span[role="button"]:hover { filter:brightness(.97) drop-shadow(0 4px 6px rgba(77,57,12,.12)); }
.trip-form .form-progress span[role="button"]:focus-visible { outline:none; }
.trip-form .form-progress span[role="button"]:focus-visible b { box-shadow:0 0 0 4px rgba(74,106,134,.3); }
.trip-creation-transition {
  position:fixed;
  z-index:10000;
  inset:0;
  display:grid;
  place-items:center;
  padding:24px;
  color:#17231f;
  background:radial-gradient(circle at 50% 38%,#fffdf6 0,#f5efe0 48%,#dfe9e6 100%);
  opacity:1;
  transition:opacity .28s ease;
}
.trip-creation-transition[hidden] { display:none; }
.trip-creation-transition.finishing { opacity:0; }
.trip-creation-transition-card { display:grid; width:min(100%,560px); justify-items:center; text-align:center; }
.trip-creation-transition-card img { width:clamp(180px,27vw,280px); height:clamp(180px,27vw,280px); object-fit:contain; filter:drop-shadow(0 18px 25px rgba(18,52,71,.16)); }
.trip-creation-transition-card .eyebrow { margin:9px 0 7px; color:#8a6500; font-size:10px; letter-spacing:.18em; }
.trip-creation-transition-card h2 { margin:0; color:#173e35; font-size:clamp(32px,6vw,52px); line-height:1; }
.trip-creation-transition-card > p:not(.eyebrow) { max-width:440px; margin:13px 0 0; color:#59645f; font-size:12px; line-height:1.55; }
.creation-progress { display:flex; gap:7px; margin-top:22px; }
.creation-progress i { width:8px; height:8px; border-radius:50%; background:#d3a62d; animation:creationDot 1.05s ease-in-out infinite; }
.creation-progress i:nth-child(2) { animation-delay:.14s; }
.creation-progress i:nth-child(3) { animation-delay:.28s; }
@keyframes creationDot { 0%,100%{transform:translateY(0);opacity:.35} 50%{transform:translateY(-7px);opacity:1} }
body.creating-trip { overflow:hidden !important; }
@media(prefers-reduced-motion:reduce) { .creation-progress i { animation:none; opacity:.75; } }

.print-day-heading { display:none; }

/* Final minimal print output: selected day only */
@media print {
  body.trip-mode .builder,
  body.trip-mode .topbar,
  body.trip-mode .trip-app-header,
  body.trip-mode .report-day-bar,
  body.trip-mode .app-nav,
  body.trip-mode .itinerary-overview-grid,
  body.trip-mode .home-overview-grid,
  body.trip-mode .trip-weather-card,
  body.trip-mode dialog,
  body.trip-mode .app-panel:not([data-panel="itinerary"]) { display:none !important; }
  body.trip-mode .page-shell,
  body.trip-mode .result,
  body.trip-mode .trip-app,
  body.trip-mode .trip-app-views,
  body.trip-mode .app-panel[data-panel="itinerary"],
  body.trip-mode .itinerary-panel,
  body.trip-mode .day-content { position:static !important; display:block !important; width:100% !important; max-width:none !important; height:auto !important; min-height:0 !important; overflow:visible !important; margin:0 !important; padding:0 !important; background:#fff !important; box-shadow:none !important; }
  .print-day-heading { display:block !important; margin:0 0 16px; padding:0 0 12px; border-bottom:2px solid #222; }
  .print-day-heading p { margin:0 0 5px; color:#555; font-size:10pt; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
  .print-day-heading h1 { margin:0; color:#111; font-size:22pt; line-height:1.15; }
  .route-flow-widget { margin:0 0 18px !important; }
  .route-flow-widget .widget-title { margin-bottom:10px; }
  .route-flow-widget .widget-title > span { display:none; }
}

/* Reference-theme pass: matches the original phone-first Tokyo planner */
:root {
  --ink: #1c1f26;
  --muted: #68707c;
  --paper: #f8f6f1;
  --panel: #ffffff;
  --cream: #f3efe4;
  --sage: #dfeadd;
  --aqua: #dcecf6;
  --rose: #f2dfdb;
  --gold: #f5c84b;
  --blue: #4472c4;
  --green: #547a4d;
  --coral: #b7584b;
  --forest: #2c6f67;
  --forest-dark: #214e49;
  --line: #e3e1dd;
  --shadow: 0 24px 70px rgba(28, 31, 38, .22);
}

html, body, button, input, textarea { font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 200, 75, .28), transparent 23rem),
    radial-gradient(circle at 88% 12%, rgba(68, 114, 196, .18), transparent 24rem),
    linear-gradient(135deg, #f6f1e7 0%, #f7f8f5 48%, #edf3f7 100%);
}
.page-shell {
  width: min(430px, calc(100% - 32px));
  height: min(920px, calc(100vh - 40px));
  min-height: 700px;
  display: flex;
  flex-direction: column;
  margin: 20px auto;
  overflow: hidden;
  border: 10px solid #101412;
  border-radius: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.topbar {
  flex: 0 0 58px;
  width: 100%;
  height: 58px;
  grid-template-columns: 1fr 1fr;
  padding: 0 18px;
  border: 0;
  color: white;
  background: #101412;
}
.topbar p { display: none; }
.topbar .brand { color: white; font-family: inherit; font-size: 21px; }
.topbar .brand-mark { background: var(--gold); color: #101412; }
.topbar .text-button { color: rgba(255,255,255,.78); }

.builder {
  min-height: 0;
  display: block;
  flex: 1;
  padding: 0;
  overflow-y: auto;
  background: var(--paper);
  scrollbar-width: thin;
}
.builder-copy {
  position: relative;
  top: auto;
  padding: 30px 22px 27px;
  color: white;
  background:
    radial-gradient(circle at 84% 13%, rgba(245,200,75,.4) 0 34px, transparent 35px),
    linear-gradient(135deg, rgba(28,31,38,.98), rgba(37,75,122,.9));
}
.builder-copy .eyebrow { margin-bottom: 8px; color: #fff1bf; letter-spacing: .06em; }
.builder h1 { max-width: 330px; color: white; font-family: inherit; font-size: 35px; font-weight: 600; line-height: 1.03; letter-spacing: -.025em; text-shadow: 0 1px 18px rgba(0,0,0,.25); }
.builder h1 em { color: #fff1bf; font-style: normal; font-weight: 600; }
.lede { margin-top: 13px; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.5; }
.journey-line, .trust-note { display: none; }
.trip-form { padding: 20px 18px 24px; border: 0; border-radius: 0; background: var(--paper); box-shadow: none; backdrop-filter: none; }
.step-row { padding-bottom: 14px; font-size: 12px; }
.security-note { margin-top: 13px; border-color: #cad9c6; border-radius: 8px; background: var(--sage); }
.security-note > span { background: var(--green); }
.security-note strong { color: #405d39; }
.field-group { grid-template-columns: 30px 1fr; gap: 6px; padding: 20px 0; }
.question-number { color: #8a6500; font-family: inherit; font-size: 11px; }
.field-content label { color: var(--ink); font-family: inherit; font-size: 17px; font-weight: 600; }
.field-content > p { margin: 4px 0 11px; font-size: 11px; }
.input-wrap, .date-field, textarea { border-radius: 8px; border-color: var(--line); background: white; }
.input-wrap { height: 46px; }
.input-wrap span { color: var(--blue); }
.date-grid { grid-template-columns: 1fr 18px 1fr; gap: 5px; }
.date-field { padding: 7px 9px; }
.date-field input { font-size: 11px; }
textarea { min-height: 100px; font-size: 12px; }
.prompt-chips { gap: 6px; }
.prompt-chips button { padding: 6px 8px; border-radius: 999px; color: #405d39; background: var(--sage); font-size: 9px; }
.prompt-chips button:hover { border-color: var(--gold); color: #5a4514; background: #fff1bf; }
.primary-button { min-height: 49px; border-radius: 8px; background: var(--ink); box-shadow: 0 8px 22px rgba(28,31,38,.16); font-size: 13px; }
.primary-button:hover { background: #30343c; }

body.trip-mode { display: grid; overflow: hidden; background:
  radial-gradient(circle at 12% 18%, rgba(245, 200, 75, .28), transparent 23rem),
  radial-gradient(circle at 88% 12%, rgba(68, 114, 196, .18), transparent 24rem),
  linear-gradient(135deg, #f6f1e7 0%, #f7f8f5 48%, #edf3f7 100%); }
body.trip-mode .page-shell { height: min(920px, calc(100vh - 40px)); margin: 20px auto; }
body.trip-mode .result { height: 100%; min-height: 0; }
.trip-app { width: 100%; height: 100%; background: var(--paper); box-shadow: none; }
.trip-app-header { flex-basis: 54px; padding: 0 16px; background: #101412; border-color: #101412; }
.trip-app-header .app-brand { color: white; font-family: inherit; }
.trip-app-header .brand-mark { background: var(--gold); color: #101412; }
.trip-app-header .app-destination { color: rgba(255,255,255,.62); }
.trip-app-header .back-button { color: white; }
.app-panel-body { max-width: none; padding: 16px 16px 26px; }

.app-home-hero {
  min-height: 200px;
  padding: 27px 20px 24px;
  background:
    radial-gradient(circle at 82% 22%, rgba(245,200,75,.45) 0 27px, rgba(245,200,75,.13) 28px 64px, transparent 65px),
    linear-gradient(135deg, #1c1f26, #254b7a);
}
.app-home-hero h2 { max-width: 350px; font-family: inherit; font-size: 31px; font-weight: 600; line-height: 1.02; letter-spacing: -.02em; }
.app-home-hero > p:not(.eyebrow) { font-size: 12px; }
.hero-orbit { display: none; }
.trip-stats { gap: 7px; margin-top: 18px; }
.trip-stat { padding: 6px 8px; border-radius: 999px; font-size: 9px; }
.welcome-row { margin-bottom: 11px; }
.welcome-row h3 { font-family: inherit; font-size: 18px; color: var(--blue); }
.welcome-row .saved-pill { color: #405d39; background: var(--sage); }
.today-card { padding: 14px; border-radius: 8px; background: linear-gradient(135deg, #ffffff, #fff7dc); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(26,36,33,.06); }
.today-card-head { border-bottom-color: var(--line); }
.today-card-head span { color: #8a6500; }
.today-card-head h4 { font-family: inherit; font-size: 16px; color: #254b7a; }
.today-card-head button { color: var(--blue); }
.today-stop time { color: #8a6500; }
.quick-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-card { padding: 13px; border-radius: 8px; box-shadow: 0 8px 22px rgba(26,36,33,.04); }
.quick-card > span { width: 32px; height: 32px; margin-bottom: 8px; background: #fff1bf; box-shadow: inset 0 0 0 2px rgba(245,200,75,.55); }
.quick-card strong { color: #2c6f67; }
.home-days { margin-top: 22px; }
.home-day-item { padding: 11px 4px; }
.home-day-item > span { color: #8a6500; font-family: inherit; font-size: 17px; }
.home-day-item strong { color: #254b7a; font-family: inherit; font-size: 12px; }

.compact-app-hero { min-height: 118px; padding: 24px 18px 18px; background: linear-gradient(135deg, #1c1f26, #254b7a); }
.compact-app-hero h2 { font-family: inherit; font-size: 26px; font-weight: 600; }
.places-hero { background: linear-gradient(135deg, #254b7a, #4472c4); }
.food-hero { background: linear-gradient(135deg, #633044, #9b5c7e); }
.shop-hero { background: linear-gradient(135deg, #4b3b68, #765f96); }
.day-strip { gap: 6px; padding: 9px 10px; }
.day-strip .day-button { padding: 7px 9px; border-radius: 8px; background: #f4f0e6; }
.day-strip .day-button.active { color: var(--ink); border-color: var(--gold); background: #fff1bf; box-shadow: inset 0 0 0 1px var(--gold); }
.day-strip .day-button.active .day-meta span { color: #6f5310; }
.day-strip .day-num { font-family: inherit; font-size: 14px; }
.itinerary-panel .panel-heading h3 { color: var(--blue); font-family: inherit; font-size: 21px; }
.activity-card { grid-template-columns: 43px 36px 1fr 18px; gap: 8px; margin-bottom: 10px; padding: 13px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 22px rgba(26,36,33,.04); }
.activity-card::before { display: none; }
.activity-time { color: #8a6500; font-size: 9px; }
.activity-icon { width: 34px; height: 34px; background: #fff1bf; box-shadow: inset 0 0 0 2px rgba(245,200,75,.55); }
.activity-type { color: var(--green); font-size: 7px; }
.activity-copy h4 { color: #254b7a; font-family: inherit; font-size: 14px; }
.activity-copy p { font-size: 10px; }
.collection-list { padding: 14px; }
.collection-card { border-radius: 8px; }
.collection-icon { border-radius: 50%; background: #fff1bf; box-shadow: inset 0 0 0 2px rgba(245,200,75,.5); }
.collection-day { color: #8a6500; }
.collection-card h3 { color: #254b7a; font-family: inherit; font-size: 14px; }
.app-nav { flex-basis: 70px; background: white; }
.app-nav-button > span { width: 34px; height: 34px; background: #f4f0e6; }
.app-nav-button.active > span { background: #fff1bf; box-shadow: inset 0 0 0 2px var(--gold), 0 6px 16px rgba(245,200,75,.26); }
.app-nav-button.active small { color: var(--ink); }

@media (max-width: 520px) {
  body { display: block; background: var(--paper); }
  .page-shell, body.trip-mode .page-shell {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .topbar { flex-basis: 56px; }
  .builder h1 { font-size: 34px; }
  .trip-form { margin: 0; border-radius: 0; }
  .trip-app-header { grid-template-columns: 1fr auto; }
  .app-home-hero h2 { font-size: 30px; }
  .today-stops { grid-template-columns: 1fr; }
  .today-stop { display: grid; grid-template-columns: 44px 1fr; }
  .activity-card { grid-template-columns: 43px 34px 1fr; }
}

/* Full-screen report layout with persistent date and section navigation */
body { display: block; overflow: hidden; }
.page-shell,
body.trip-mode .page-shell {
  width: 100%;
  height: 100vh;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.topbar {
  flex: 0 0 70px;
  height: 70px;
  padding-inline: clamp(22px, 4vw, 64px);
}
.builder {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(470px, 1.15fr);
  align-items: start;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(30px, 5vw, 74px);
  background:
    radial-gradient(circle at 12% 18%, rgba(245,200,75,.2), transparent 25rem),
    linear-gradient(135deg, #f8f6f1, #eef3f5);
}
.builder-copy {
  position: sticky;
  top: 0;
  min-height: min(650px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 70px);
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(28,31,38,.16);
}
.builder h1 { max-width: 520px; font-size: clamp(42px, 5vw, 68px); }
.builder-copy .lede { max-width: 520px; font-size: 15px; }
.trip-form {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 55px rgba(28,31,38,.12);
}
.field-group { grid-template-columns: 38px 1fr; gap: 10px; padding-block: 24px; }
.field-content label { font-size: 19px; }

body.trip-mode { display: block; }
.trip-app { max-width: none; }
.trip-app-header {
  flex: 0 0 62px;
  min-height: 62px;
  padding-inline: clamp(18px, 3vw, 48px);
}
.app-destination { max-width: 520px; font-size: 12px; }
.report-day-bar {
  z-index: 15;
  flex: 0 0 88px;
  display: grid;
  grid-template-columns: minmax(210px, 320px) 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(18px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.97);
  box-shadow: 0 5px 18px rgba(28,31,38,.05);
}
.report-day-heading { min-width: 0; }
.report-day-heading strong,
.report-day-heading span { display: block; }
.report-day-heading strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.report-day-heading span { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.report-day-bar .day-strip {
  min-width: 0;
  padding: 2px;
  border: 0;
  background: transparent;
}
.report-day-bar .day-button { min-height: 48px; }
.trip-app-views { background: var(--paper); }
.app-panel-body { max-width: 1180px; padding: 28px clamp(22px, 4vw, 54px) 48px; }
.app-home-hero { min-height: 260px; padding: 44px max(5vw, calc((100% - 1180px) / 2)); }
.app-home-hero h2 { max-width: 740px; font-size: clamp(38px, 5vw, 58px); }
.home-panel-body { max-width: 1180px; }
.quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.today-stops { grid-template-columns: repeat(3, 1fr); }
.compact-app-hero { min-height: 150px; padding: 35px max(5vw, calc((100% - 1180px) / 2)) 28px; }
.compact-app-hero h2 { font-size: 34px; }
.itinerary-panel.app-panel-body { max-width: 980px; padding-top: 32px; }
.activity-card { grid-template-columns: 58px 40px 1fr 24px; padding: 16px 18px; }
.activity-copy h4 { font-size: 16px; }
.activity-copy p { font-size: 11px; }
.collection-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1120px; margin-inline: auto; }
.bookings-hero { background: linear-gradient(135deg, #355d38, #70ad47); }
.maps-hero { background: linear-gradient(135deg, #254b7a, #4472c4); }
.photos-hero { background: linear-gradient(135deg, #155f62, #2c8b86); }
.empty-section {
  max-width: 650px;
  margin: 35px auto;
  padding: 52px 30px;
  border: 1px dashed #b8c9c1;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  text-align: center;
}
.empty-section > span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: #fff1bf; font-size: 27px; box-shadow: inset 0 0 0 2px rgba(245,200,75,.55); }
.empty-section h3 { margin: 0 0 7px; color: var(--ink); font-size: 18px; }
.empty-section p { max-width: 430px; margin: auto; font-size: 12px; line-height: 1.55; }
.app-nav {
  flex: 0 0 78px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding-inline: clamp(8px, 6vw, 130px);
}
.app-nav-button small { font-size: 9px; }

@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; padding: 24px; }
  .builder-copy { position: relative; min-height: 360px; }
  .trip-form { max-width: none; }
  .report-day-bar { grid-template-columns: 1fr; gap: 7px; padding-block: 8px; }
  .report-day-heading span { display: none; }
  .report-day-bar .day-strip { width: 100%; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .collection-list { grid-template-columns: 1fr; }
  .app-nav { padding-inline: 4px; }
}

@media (max-width: 620px) {
  .topbar { flex-basis: 58px; height: 58px; padding-inline: 16px; }
  .builder { padding: 0; }
  .builder-copy { min-height: 290px; border-radius: 0; box-shadow: none; }
  .trip-form { border-inline: 0; border-bottom: 0; border-radius: 0; box-shadow: none; }
  .trip-app-header { flex-basis: 54px; min-height: 54px; }
  .report-day-bar { flex-basis: 78px; padding-inline: 10px; }
  .report-day-heading { display: none; }
  .report-day-bar .day-button { min-height: 44px; }
  .app-home-hero { min-height: 220px; padding: 30px 20px; }
  .app-home-hero h2 { font-size: 34px; }
  .compact-app-hero { min-height: 125px; padding: 25px 18px 20px; }
  .compact-app-hero h2 { font-size: 27px; }
  .app-panel-body { padding: 20px 16px 34px; }
  .today-stops { grid-template-columns: 1fr; }
  .activity-card { grid-template-columns: 43px 34px 1fr; padding: 13px 10px; }
  .app-nav { flex-basis: 70px; }
  .app-nav-button > span { width: 31px; height: 31px; font-size: 16px; }
  .app-nav-button small { font-size: 7px; }
}

/* Animated PlanToGuide compass-X branding */
.brand-mark, .builder-brand > span { overflow:visible; padding:0; border:0; background:transparent !important; }
.brand-mark img, .builder-brand img { display:block; width:100%; height:100%; object-fit:contain; }
.brand-wordmark { font-weight:850; letter-spacing:-.035em; white-space:nowrap; }
.brand-x { display:inline-block; padding:0 .08em; color:#0e8fc3; animation:brandXPop .65s cubic-bezier(.2,.8,.2,1) 2.2s both; }
@keyframes brandXPop { 0%{transform:scale(.75) rotate(-18deg);opacity:.55} 70%{transform:scale(1.16) rotate(4deg);opacity:1} 100%{transform:scale(1) rotate(0);opacity:1} }
.builder-brand > span { width:38px; height:38px; }
.trip-header-actions .export-button.loading { display:inline-flex; align-items:center; gap:6px; }
.trip-header-actions .export-button.loading img { width:22px; height:22px; margin:-4px 0; }

/* Animated PlanToGuide identity */
.builder:not(.builder-wide) .builder-copy::after {
  content:"✈️";
  right:clamp(24px,7vw,112px);
  width:auto;
  height:auto;
  background:none;
  transform:translateY(-50%) rotate(-10deg);
  font-size:clamp(100px,18vw,250px);
  filter:drop-shadow(0 20px 22px rgba(0,0,0,.18));
  opacity:.88;
}
.builder:not(.builder-wide) .builder-brand { gap:14px; font-size:clamp(20px,2vw,30px); }
.builder:not(.builder-wide) .builder-brand > span { flex:0 0 clamp(82px,9vw,128px); width:clamp(82px,9vw,128px); height:clamp(92px,10vw,142px); }
.builder:not(.builder-wide) .builder-brand strong { font-size:inherit; }
.topbar .brand-mark { width:52px; height:52px; }
.trip-app-header .brand-mark { width:48px; height:48px; }
.brand-mark img,.builder-brand img { object-fit:contain; }
.trip-header-actions .export-button.loading img { width:30px; height:34px; margin:-7px 0; }
@media(max-width:780px) {
  .builder:not(.builder-wide) .builder-copy::after { right:10px; width:auto; height:auto; font-size:110px; opacity:.48; }
  .builder:not(.builder-wide) .builder-brand > span { flex-basis:74px; width:74px; height:84px; }
  .builder:not(.builder-wide) .builder-brand { gap:10px; font-size:20px; }
  .topbar .brand-mark,.trip-app-header .brand-mark { width:42px; height:42px; }
  .brand-wordmark { font-size:clamp(14px,4.2vw,19px); }
}

/* Definitive four-stage arrow flowchart */
.trip-form .form-progress {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  width:100%;
  height:auto;
  gap:5px;
  align-items:stretch;
  margin:12px 0 18px;
  overflow:visible;
}
.trip-form .form-progress span {
  position:relative;
  display:flex;
  width:auto;
  min-width:0;
  height:68px;
  gap:8px;
  align-items:center;
  justify-content:center;
  padding:9px 18px 9px 25px;
  border:0;
  border-radius:0;
  color:#25282b;
  background:#f7edcf;
  clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%,14px 50%);
  text-align:left;
  transition:color .2s ease,background .2s ease,transform .2s ease;
}
.trip-form .form-progress span:first-child {
  clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%);
  padding-left:15px;
}
.trip-form .form-progress span::after { display:none; content:none; }
.trip-form .form-progress span b {
  position:static;
  z-index:auto;
  display:grid;
  width:28px;
  height:28px;
  place-items:center;
  flex:0 0 28px;
  border:1px solid rgba(121,88,18,.24);
  border-radius:50%;
  color:#30343a;
  background:rgba(255,255,255,.7);
  font-size:9px;
  font-weight:800;
  transform:none;
  box-shadow:none;
}
.trip-form .form-progress span small {
  display:grid;
  width:max-content;
  max-width:calc(100% - 36px);
  min-width:0;
  gap:3px;
  overflow:visible;
  color:inherit;
  font-size:inherit;
  line-height:1.1;
  text-align:left;
  text-overflow:clip;
  white-space:normal;
}
.trip-form .form-progress span small strong {
  overflow:hidden;
  color:#202326;
  font-size:clamp(9px,.76vw,12px);
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.trip-form .form-progress span small em {
  overflow:hidden;
  color:#50555a;
  font-size:clamp(7px,.61vw,9px);
  font-style:normal;
  font-weight:500;
  opacity:1;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.trip-form .form-progress span.active {
  color:#24272a;
  background:#e8ca72;
}
.trip-form .form-progress span.active b {
  color:#fff;
  border-color:#a97510;
  background:#a97510;
}
.trip-form .form-progress span.current {
  z-index:2;
  color:#17191b;
  background:#d9a62e;
  filter:drop-shadow(0 3px 5px rgba(112,77,7,.2));
}
.trip-form .form-progress span.current b {
  color:#fff;
  border-color:#5c4308;
  background:#5c4308;
  transform:none;
  box-shadow:0 0 0 3px rgba(255,255,255,.38);
}
@media(max-width:700px) {
  .trip-form .form-progress { gap:2px; }
  .trip-form .form-progress span { height:64px; flex-direction:column; gap:3px; padding:6px 9px 6px 12px; clip-path:polygon(0 0,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,0 100%,8px 50%); text-align:center; }
  .trip-form .form-progress span:first-child { padding-left:5px; clip-path:polygon(0 0,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,0 100%); }
  .trip-form .form-progress span b { flex-basis:18px; width:18px; height:18px; font-size:7px; }
  .trip-form .form-progress span small { width:100%; max-width:100%; gap:2px; text-align:center; }
  .trip-form .form-progress span small strong { font-size:clamp(6px,1.65vw,8px); }
  .trip-form .form-progress span small em { font-size:clamp(5px,1.3vw,7px); }
}

/* Final four-step flow and automatic deliverables */
.homepage-tagline { width:max-content; max-width:none; white-space:nowrap; font-size:clamp(9px,.75vw,12px); letter-spacing:-.01em; }
.form-progress { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:14px 0 19px; }
.form-progress span { position:relative; display:grid; height:auto; min-width:0; justify-items:center; gap:5px; color:#958e80; background:transparent; text-align:center; }
.form-progress span::after { content:""; position:absolute; z-index:0; left:calc(50% + 15px); right:calc(-50% + 15px); top:14px; height:2px; background:#ded8ca; }
.form-progress span:last-child::after { display:none; }
.form-progress span b { position:relative; z-index:1; display:grid; width:29px; height:29px; place-items:center; border:2px solid #d8d1c2; border-radius:50%; color:#81796a; background:#f8f5ed; font-size:10px; transition:.2s ease; }
.form-progress span small { overflow:hidden; font-size:8px; font-weight:700; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.form-progress span.active::after { background:var(--gold); }
.form-progress span.active b { color:#fff; border-color:var(--gold); background:var(--gold); }
.form-progress span.active small { color:#725516; }
.form-progress span.current b { transform:scale(1.12); box-shadow:0 0 0 4px rgba(215,164,72,.18); }
@media(max-width:900px){.homepage-tagline{width:auto;white-space:normal;font-size:12px}.form-progress span small{font-size:7px}}

/* Compact single-line four-step progress path */
.form-progress { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; height:46px; gap:0; align-items:start; margin:12px 0 16px; overflow:visible; }
.form-progress span { position:relative; display:flex; min-width:0; height:46px; flex-direction:column; align-items:center; justify-content:flex-start; gap:4px; background:transparent; }
.form-progress span::after { left:calc(50% + 13px); right:calc(-50% + 13px); top:12px; height:2px; }
.form-progress span b { flex:0 0 26px; width:26px; height:26px; font-size:9px; }
.form-progress span small { display:block; width:100%; overflow:hidden; font-size:7px; line-height:1; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
.form-progress span.current b { transform:scale(1.06); box-shadow:0 0 0 3px rgba(215,164,72,.16); }
@media(max-width:480px){.form-progress{height:43px}.form-progress span{height:43px;gap:3px}.form-progress span b{flex-basis:23px;width:23px;height:23px;font-size:8px}.form-progress span::after{left:calc(50% + 11px);right:calc(-50% + 11px);top:10px}.form-progress span small{font-size:6px;letter-spacing:-.02em}}

/* Generated trip app — patterned after the original Tokyo itinerary */
body.trip-mode { overflow: hidden; background: #dfe7e2; }
body.trip-mode > .page-shell > .topbar { display: none; }
body.trip-mode .result { height: 100vh; min-height: 0; padding: 0; }
.trip-app {
  width: min(900px, 100%);
  height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 70px rgba(23, 62, 53, .18);
}
.trip-app-header {
  z-index: 20;
  flex: 0 0 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(14px);
}
.app-brand { font-size: 21px; }
.app-brand .brand-mark { width: 27px; height: 27px; font-size: 14px; }
/* Adtona lockup at the top-left of every workflow step (the builder form header). */
.workflow-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #1b2834;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  line-height: 1;
}
.workflow-brand-mark { display: inline-flex; flex: 0 0 30px; width: 30px; height: 30px; }
.workflow-brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.workflow-brand-go {
  padding-left: 9px;
  border-left: 1.5px solid rgba(20, 40, 55, .16);
  color: #e0531d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 380px) { .workflow-brand-go { display: none; } }

/* "Go. Now" brand tagline in the generated-site top nav (after the Adtona wordmark). */
.brand-go-now {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  padding-left: 8px;
  border-left: 1.5px solid rgba(255, 255, 255, .24);
  color: #e0531d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}
@media (max-width: 520px) { .brand-go-now { display: none; } }
.app-destination { max-width: 280px; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.trip-app-header .back-button { color: var(--forest); }
.trip-app-views { flex: 1; min-height: 0; overflow: hidden; }
.app-panel { display: none; height: 100%; overflow-y: auto; scrollbar-width: thin; }
.app-panel.active { display: block; animation: appFade .24s ease; }
@keyframes appFade { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.app-panel-body { max-width: 760px; margin: auto; padding: 24px 26px 36px; }

.app-home-hero {
  position: relative;
  min-height: 270px;
  padding: 42px max(28px, calc((100% - 760px) / 2));
  overflow: hidden;
  color: white;
  background: linear-gradient(125deg, #173e35, #2c6a5b);
}
.app-home-hero h2 { position: relative; z-index: 2; max-width: 650px; margin: 0; font: 600 clamp(39px, 6vw, 62px)/.98 "Fraunces", serif; letter-spacing: -.035em; }
.app-home-hero > p:not(.eyebrow) { position: relative; z-index: 2; margin: 12px 0 0; color: rgba(255,255,255,.76); font-size: 13px; }
.hero-orbit { position: absolute; width: 360px; height: 360px; right: -90px; top: -170px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.035), 0 0 0 96px rgba(255,255,255,.02); }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.welcome-row .eyebrow { margin-bottom: 5px; }
.welcome-row h3 { margin: 0; font: 600 26px "Fraunces", serif; }
.welcome-row .saved-pill { color: var(--forest); border-color: rgba(36,89,76,.16); background: var(--sage); }
.today-card { padding: 20px; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--forest), var(--forest-dark)); box-shadow: 0 12px 30px rgba(36,89,76,.17); }
.today-card-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.15); }
.today-card-head span { color: #f5c96f; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.today-card-head h4 { margin: 3px 0 0; font: 600 22px "Fraunces", serif; }
.today-card-head button { border: 0; color: white; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.today-stops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 14px; }
.today-stop { min-width: 0; }
.today-stop time { display: block; margin-bottom: 3px; color: rgba(255,255,255,.56); font-size: 9px; }
.today-stop strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 14px; }
.quick-card { min-width: 0; padding: 16px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; text-align: left; transition: transform .18s, border-color .18s; }
.quick-card:hover { transform: translateY(-2px); border-color: rgba(36,89,76,.34); }
.quick-card > span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 11px; border-radius: 50%; background: var(--sage); }
.quick-card strong, .quick-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-card strong { font-size: 11px; }
.quick-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.home-days { margin-top: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-heading button { border: 0; color: var(--forest); background: none; cursor: pointer; font-size: 10px; font-weight: 700; }
.home-day-item { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; }
.home-day-item > span { color: var(--gold); font: 600 21px "Fraunces", serif; }
.home-day-item strong { display: block; font: 600 14px "Fraunces", serif; }
.home-day-item small { color: var(--muted); font-size: 9px; }
.home-day-item > i { color: var(--muted); font-style: normal; }

/* Home tab — gold-standard sections: Day Plan, Next Stop, Next Reservation, Route & Transit, Checklist, Emergency */
.home-day-plan, .home-widget-slot { margin-top: 18px; }
.home-widget-slot:empty { display: none; margin-top: 0; }
.home-sec-label { margin: 0 0 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.home-widget { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 10px 26px rgba(28,31,38,.07); }
.home-widget-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: white; background: linear-gradient(135deg, #14303a, #1c3a2a); }
.home-widget-head.locked { background: linear-gradient(135deg, #1c2b1a, #0f2a1c); }
.home-widget-head.checklist-head { background: linear-gradient(135deg, #1a0a2e, #2d1060); }
.home-widget-label { color: rgba(255,255,255,.74); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-widget-note { margin-left: auto; color: rgba(255,255,255,.5); font-size: 10px; font-style: italic; }

.dayplan-card { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 12px 30px rgba(28,31,38,.08); cursor: pointer; transition: transform .18s, box-shadow .18s; }
.dayplan-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(28,31,38,.12); }
.dayplan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; color: white; background: linear-gradient(135deg, var(--forest), var(--forest-dark)); }
.dayplan-kicker { display: block; color: #f5c96f; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.dayplan-head strong { display: block; margin-top: 3px; font: 600 18px "Fraunces", serif; }
.dayplan-badge { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.25); font-size: 10px; font-weight: 700; }
.dayplan-body { padding: 8px 16px 4px; }
.dayplan-stop { display: grid; grid-template-columns: 52px 10px 18px 1fr; align-items: center; gap: 8px; padding: 6px 0; }
.dayplan-stop time { color: var(--muted); font-size: 11px; font-weight: 600; }
.dayplan-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.dayplan-dot.locked { background: var(--coral); }
.dayplan-dot.optional { background: var(--gold); }
.dayplan-icon { font-size: 14px; }
.dayplan-name { min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dayplan-more { padding: 2px 0 6px 62px; color: var(--muted); font-size: 11px; }
.dayplan-foot { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); color: var(--coral); font-size: 12px; font-weight: 700; }
.dayplan-foot span:last-child { color: var(--muted); font-weight: 600; }

.next-stop-widget.complete { display: flex; align-items: center; gap: 12px; padding: 14px; }
.next-stop-widget.complete .ns-emoji { font-size: 28px; }
.next-stop-widget.complete strong { display: block; color: var(--green); font-size: 14px; }
.next-stop-widget.complete small { color: var(--muted); font-size: 11px; }
.ns-body { padding: 11px 14px 4px; }
.ns-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ns-row strong { font-size: 15px; color: var(--ink); }
.ns-time { flex-shrink: 0; padding: 2px 8px; border-radius: 6px; color: white; background: #1a4a7a; font-size: 11px; font-weight: 700; }
.ns-addr { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.ns-actions { display: flex; gap: 8px; padding: 10px 14px 12px; }
.ns-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ns-btn.maps { background: var(--aqua); border-color: rgba(68,114,196,.3); color: #254b7a; }
.ns-preview { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ns-preview-emoji { font-size: 28px; }
.ns-preview-copy { min-width: 0; }
.ns-preview strong { display: block; font-size: 14px; color: var(--ink); }
.ns-preview small { color: var(--muted); font-size: 11px; }
.ns-preview .ns-btn { flex: 0 0 auto; margin-left: auto; padding: 6px 12px; }

.nrc-badge { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: rgba(84,122,77,.35); color: #c8f2c2; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.nrc-body { padding: 12px 14px 14px; }
.nrc-name { font-size: 16px; color: var(--ink); }
.nrc-when { margin: 4px 0 0; color: var(--forest); font-size: 12px; font-weight: 700; }
.nrc-addr, .nrc-conf { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.nrc-maps-btn { display: inline-flex; margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: var(--aqua); color: #254b7a; font-size: 12px; font-weight: 700; text-decoration: none; }

.rt-list { padding: 6px 14px 12px; }
.rt-stop { display: grid; grid-template-columns: 24px 1fr; }
.rt-rail { display: flex; flex-direction: column; align-items: center; padding-top: 12px; }
.rt-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.rt-dot.locked { background: var(--coral); }
.rt-dot.optional { background: var(--gold); }
.rt-line { flex: 1; width: 2px; min-height: 22px; background: var(--line); }
.rt-content { padding: 8px 0 0; }
.rt-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rt-name { min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rt-time { flex-shrink: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.rt-leg { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; padding: 5px 9px; border-radius: 7px; background: var(--paper); }
.rt-leg-mode { color: var(--blue); font-size: 11px; font-weight: 700; }
.rt-leg-dur { margin-left: auto; color: var(--ink); font-size: 11px; font-weight: 700; }

.checklist-count { margin-left: auto; color: rgba(255,255,255,.74); font-size: 11px; font-weight: 700; }
.checklist-list { display: block; }
.checklist-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.checklist-row:first-child { border-top: 0; }
.checklist-box { flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border: 2px solid #c3c8c2; border-radius: 5px; color: white; font-size: 12px; font-weight: 800; }
.checklist-row.done .checklist-box { border-color: #10b981; background: #10b981; }
.checklist-copy { min-width: 0; }
.checklist-text { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.checklist-row.done .checklist-text { color: var(--muted); text-decoration: line-through; }
.checklist-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

.emergency-widget { padding: 14px 16px; border: 1px solid rgba(183,88,75,.3); border-radius: 14px; background: var(--rose); box-shadow: none; }
.emg-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--coral); font-size: 13px; font-weight: 800; }
.emg-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(183,88,75,.18); }
.emg-row:first-of-type { border-top: 0; }
.emg-label { color: var(--muted); font-size: 12px; }
.emg-value { text-align: right; color: var(--coral); font-size: 12px; font-weight: 700; }
.emg-value a { color: var(--blue); text-decoration: underline; }
.emg-prompt { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.compact-app-hero { min-height: 142px; display: flex; align-items: end; justify-content: space-between; padding: 31px max(26px, calc((100% - 760px) / 2)) 24px; color: white; background: linear-gradient(120deg, #173e35, #2c6a5b); }
.compact-app-hero h2 { margin: 0; font: 600 34px "Fraunces", serif; }
.compact-app-hero p:not(.eyebrow) { margin: 6px 0 0; color: rgba(255,255,255,.65); font-size: 10px; }
.places-hero { background: linear-gradient(120deg, #244f66, #4b7781); }
.food-hero { background: linear-gradient(120deg, #733c31, #b96650); }
.shop-hero { background: linear-gradient(120deg, #574569, #846c91); }
.print-button { padding: 8px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; color: white; background: rgba(255,255,255,.08); cursor: pointer; font-size: 10px; font-weight: 700; }
.day-strip { display: flex; gap: 7px; overflow-x: auto; padding: 11px max(20px, calc((100% - 780px) / 2)); border-bottom: 1px solid var(--line); background: var(--panel); scrollbar-width: none; }
.day-strip::-webkit-scrollbar { display: none; }
.day-strip .day-button { flex: 0 0 auto; display: flex; grid-template-columns: none; align-items: center; gap: 7px; width: auto; padding: 8px 11px; border: 1px solid transparent; border-radius: 9px; background: #f2eee5; }
.day-strip .day-button:hover { background: #ebe7de; }
.day-strip .day-button.active { color: white; border-color: var(--forest); background: var(--forest); }
.day-strip .day-num { font-size: 16px; }
.day-strip .day-meta { display: block; }
.day-strip .day-meta strong { display: block; max-width: 120px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.day-strip .day-meta span { display: block; font-size: 8px; }
.itinerary-panel.app-panel-body { padding-top: 24px; }
.itinerary-panel .panel-heading { padding-bottom: 18px; }

.collection-list { display: grid; gap: 10px; }
.collection-card { display: grid; grid-template-columns: 46px 1fr 20px; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 5px 15px rgba(32,49,46,.04); }
.collection-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sage); font-size: 19px; }
.collection-day { color: var(--coral); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.collection-card h3 { margin: 3px 0 4px; font: 600 16px "Fraunces", serif; }
.collection-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.collection-arrow { color: var(--muted); font-size: 22px; }
.empty-collection { padding: 45px 20px; color: var(--muted); text-align: center; }

.app-nav { z-index: 30; flex: 0 0 76px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: rgba(255,253,248,.97); backdrop-filter: blur(15px); }
.app-nav-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; cursor: pointer; }
.app-nav-button > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; transition: .18s; }
.app-nav-button small { color: var(--muted); font-size: 8px; font-weight: 700; }
.app-nav-button.active > span { background: #fff0b9; box-shadow: inset 0 0 0 2px var(--gold); transform: scale(1.04); }
.app-nav-button.active small { color: var(--forest); }

@media (max-width: 620px) {
  .trip-app-header { grid-template-columns: 1fr auto; padding: 0 17px; }
  .app-destination { display: none; }
  .app-panel-body { padding: 20px 18px 30px; }
  .app-home-hero { min-height: 250px; padding: 34px 20px; }
  .app-home-hero h2 { font-size: 43px; }
  .today-stops { grid-template-columns: 1fr; gap: 9px; }
  .today-stop { display: grid; grid-template-columns: 48px 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .compact-app-hero { padding-inline: 20px; }
  .day-strip { padding-inline: 12px; }
  .activity-card { grid-template-columns: 45px 36px 1fr; gap: 8px; padding-inline: 0; }
  .activity-card::before { left: 62px; }
  .activity-menu { display: none; }
  .app-nav { flex-basis: 72px; padding-bottom: env(safe-area-inset-bottom); }
}

@media print {
  body.trip-mode { overflow: visible; background: white; }
  body.trip-mode .result, .trip-app, .trip-app-views, .app-panel { height: auto; overflow: visible; box-shadow: none; }
  .trip-app-header, .app-nav, .app-panel:not([data-panel="itinerary"]), .day-strip { display: none !important; }
  .app-panel[data-panel="itinerary"] { display: block !important; }
}

/* Final report cascade: full-screen and reference-faithful */
body.trip-mode {
  display: block;
  width: 100%;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}
body.trip-mode .page-shell,
body.trip-mode .result,
.trip-app {
  width: 100%;
  max-width: none;
  height: 100vh;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.trip-app-header {
  flex: 0 0 62px;
  min-height: 62px;
  padding: 0 clamp(18px, 3vw, 48px);
  border-color: #101412;
  background: #101412;
}
.trip-app-header .app-brand,
.trip-app-header .back-button { color: white; }
.trip-app-header .app-brand,
.app-home-hero h2,
.welcome-row h3,
.today-card-head h4,
.home-day-item > span,
.home-day-item strong,
.compact-app-hero h2,
.itinerary-panel .panel-heading h3,
.activity-copy h4,
.collection-card h3 { font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif; }
.trip-app-header .brand-mark { color: #101412; background: var(--gold); }
.trip-app-header .app-destination { max-width: 520px; color: rgba(255,255,255,.62); }
.report-day-bar {
  z-index: 25;
  flex: 0 0 88px;
  display: grid;
  grid-template-columns: minmax(210px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 10px clamp(18px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.98);
  box-shadow: 0 5px 18px rgba(28,31,38,.05);
}
.report-day-heading strong,
.report-day-heading span { display: block; }
.report-day-heading strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.report-day-heading span { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.report-day-bar .day-strip { min-width: 0; padding: 2px; border: 0; background: transparent; }
.report-day-bar .day-button { min-height: 48px; padding: 7px 10px; border-radius: 8px; background: #f4f0e6; }
.report-day-bar .day-button.active { color: var(--ink); border-color: var(--gold); background: #fff1bf; box-shadow: inset 0 0 0 1px var(--gold); }
.report-day-bar .day-button.active .day-meta span { color: #6f5310; }
.trip-app-views { flex: 1; min-height: 0; overflow: hidden; background: var(--paper); }
.app-panel-body { max-width: 1180px; padding: 28px clamp(22px, 4vw, 54px) 48px; }
.app-home-hero {
  min-height: 260px;
  padding: 44px max(5vw, calc((100% - 1180px) / 2));
  background:
    radial-gradient(circle at 82% 22%, rgba(245,200,75,.45) 0 27px, rgba(245,200,75,.13) 28px 64px, transparent 65px),
    linear-gradient(135deg, #1c1f26, #254b7a);
}
.app-home-hero h2 { max-width: 740px; font-size: clamp(38px, 5vw, 58px); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; }
.hero-orbit { display: none; }
.home-panel-body { max-width: 1180px; }
.welcome-row h3 { color: var(--blue); font-size: 24px; }
.welcome-row .saved-pill { color: #405d39; background: var(--sage); }
.today-card { padding: 18px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: linear-gradient(135deg,#fff,#fff7dc); box-shadow: 0 8px 22px rgba(26,36,33,.06); }
.today-card-head { border-bottom-color: var(--line); }
.today-card-head span,
.today-stop time { color: #8a6500; }
.today-card-head h4 { color: #254b7a; font-size: 18px; }
.today-card-head button { color: var(--blue); }
.quick-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.quick-card { border-radius: 8px; }
.quick-card > span { background: #fff1bf; box-shadow: inset 0 0 0 2px rgba(245,200,75,.55); }
.quick-card strong { color: #2c6f67; }
.home-day-item > span { color: #8a6500; font-size: 19px; }
.home-day-item strong { color: #254b7a; }
.compact-app-hero { min-height: 150px; padding: 35px max(5vw,calc((100% - 1180px)/2)) 28px; background: linear-gradient(135deg,#1c1f26,#254b7a); }
.compact-app-hero h2 { font-size: 34px; font-weight: 600; }
.bookings-hero { background: linear-gradient(135deg,#355d38,#70ad47); }
.maps-hero { background: linear-gradient(135deg,#254b7a,#4472c4); }
.food-hero { background: linear-gradient(135deg,#633044,#9b5c7e); }
.shop-hero { background: linear-gradient(135deg,#4b3b68,#765f96); }
.photos-hero { background: linear-gradient(135deg,#155f62,#2c8b86); }
.itinerary-panel.app-panel-body { max-width: 980px; padding-top: 32px; }
.itinerary-panel .panel-heading h3 { color: var(--blue); font-size: 23px; }
.activity-card { grid-template-columns: 58px 40px 1fr 24px; gap: 10px; margin-bottom: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 22px rgba(26,36,33,.04); }
.activity-card::before { display: none; }
.activity-time { color: #8a6500; }
.activity-icon { background: #fff1bf; box-shadow: inset 0 0 0 2px rgba(245,200,75,.55); }
.activity-type { color: var(--green); }
.activity-copy h4 { color: #254b7a; font-size: 16px; }
.collection-list { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 1120px; margin-inline: auto; }
.collection-card { border-radius: 8px; }
.collection-icon { border-radius: 50%; background: #fff1bf; box-shadow: inset 0 0 0 2px rgba(245,200,75,.5); }
.collection-day { color: #8a6500; }
.collection-card h3 { color: #254b7a; }
.empty-section { max-width: 650px; margin: 35px auto; padding: 52px 30px; border: 1px dashed #b8c9c1; border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.72); text-align: center; }
.empty-section > span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: #fff1bf; font-size: 27px; box-shadow: inset 0 0 0 2px rgba(245,200,75,.55); }
.empty-section h3 { margin: 0 0 7px; color: var(--ink); }
.empty-section p { max-width: 430px; margin: auto; font-size: 12px; line-height: 1.55; }
.app-nav { flex: 0 0 78px; grid-template-columns: repeat(7,minmax(0,1fr)); padding-inline: clamp(8px,6vw,130px); background: rgba(255,255,255,.98); }
.app-nav-button > span { background: #f4f0e6; }
.app-nav-button.active > span { background: #fff1bf; box-shadow: inset 0 0 0 2px var(--gold),0 6px 16px rgba(245,200,75,.26); }
.app-nav-button.active small { color: var(--ink); }

@media (max-width:900px) {
  .report-day-bar { grid-template-columns: 1fr; gap: 7px; padding-block: 8px; }
  .report-day-heading span { display: none; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .collection-list { grid-template-columns: 1fr; }
  .app-nav { padding-inline: 4px; }
}
@media (max-width:620px) {
  .trip-app-header { flex-basis: 54px; min-height: 54px; }
  .report-day-bar { flex-basis: 72px; padding-inline: 10px; }
  .report-day-heading { display: none; }
  .app-home-hero { min-height: 220px; padding: 30px 20px; }
  .app-home-hero h2 { font-size: 34px; }
  .compact-app-hero { min-height: 125px; padding: 25px 18px 20px; }
  .app-panel-body { padding: 20px 16px 34px; }
  .today-stops { grid-template-columns: 1fr; }
  .activity-card { grid-template-columns: 43px 34px 1fr; padding: 13px 10px; }
  .app-nav { flex-basis: 70px; }
  .app-nav-button > span { width: 31px; height: 31px; font-size: 16px; }
  .app-nav-button small { font-size: 7px; }
}

/* Date-led report navigation and no-cost seasonal weather */
.report-day-bar .day-button {
  min-width: 84px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  text-align: center;
}
.day-nav-icon {
  display: block;
  font-size: 20px;
  line-height: 1;
}
.day-nav-date {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.home-day-item {
  grid-template-columns: 105px 1fr auto;
}
.home-day-item > .home-day-date {
  color: #8a6500;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.trip-weather-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 14px;
  padding: 20px 22px 17px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #15365c 0%, #254b7a 56%, #2c6f67 100%);
  box-shadow: 0 10px 25px rgba(22, 47, 73, .18);
}
.trip-weather-bg {
  position: absolute;
  z-index: -1;
  right: 3%;
  bottom: -40px;
  opacity: .1;
  font-size: 150px;
  filter: grayscale(1);
}
.trip-weather-top,
.weather-main,
.weather-metrics-row {
  display: flex;
  align-items: center;
}
.trip-weather-top { justify-content: space-between; gap: 20px; }
.weather-location { margin: 0; font-size: 17px; font-weight: 800; }
.weather-kicker,
.weather-date { margin: 3px 0 0; color: rgba(255,255,255,.62); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.weather-main { gap: 12px; margin-top: 12px; }
.weather-icon { font-size: 35px; line-height: 1; }
.weather-main strong { font-size: 33px; line-height: 1; }
.weather-summary { margin: 9px 0 14px; color: rgba(255,255,255,.82); font-size: 11px; }
.weather-metrics-row { gap: 0; border-top: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); }
.weather-metrics-row > span { flex: 1; min-width: 0; padding: 11px 16px; border-right: 1px solid rgba(255,255,255,.17); }
.weather-metrics-row > span:first-child { padding-left: 0; }
.weather-metrics-row > span:last-child { border-right: 0; }
.weather-metrics-row small,
.weather-metrics-row strong { display: block; }
.weather-metrics-row small { margin-bottom: 3px; color: rgba(255,255,255,.55); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.weather-metrics-row strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.weather-disclaimer { display: block; margin-top: 10px; color: rgba(255,255,255,.55); font-size: 8px; }

@media (max-width: 620px) {
  .report-day-bar .day-button { min-width: 76px; }
  .home-day-item { grid-template-columns: 88px 1fr auto; }
  .weather-metrics-row { align-items: stretch; }
  .weather-metrics-row > span { padding-inline: 8px; }
  .weather-metrics-row strong { white-space: normal; }
}

/* Final navigation/content guard: keep the generated report visible and date-led. */
.report-day-bar {
  flex: 0 0 76px;
  display: block;
  padding: 10px clamp(14px, 3vw, 48px);
}
.report-day-heading { display: none; }
.report-day-bar #dayNav.day-strip {
  width: 100%;
  height: 56px;
  display: flex;
  grid-template-columns: none;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
}
.report-day-bar .day-button {
  flex: 1 0 88px;
  min-height: 52px;
  border: 1px solid #ded8ca;
  background: #f4f0e6;
}
.report-day-bar .day-button.active {
  border-color: var(--gold);
  background: #fff1bf;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.trip-app-views > .app-panel { display: none; }
.trip-app-views > .app-panel.active {
  display: block;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

@media (max-width: 620px) {
  .report-day-bar { flex-basis: 70px; padding: 8px 10px; }
  .report-day-bar #dayNav.day-strip { height: 54px; }
  .report-day-bar .day-button { flex-basis: 78px; min-height: 50px; }
}

/* Destination recommendation collections */
#foodList,
#shopList {
  display: block;
  max-width: 1180px;
}
.option-group { margin-bottom: 30px; }
.option-group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.option-group-heading > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff1bf;
  box-shadow: inset 0 0 0 2px rgba(245,200,75,.55);
  font-size: 20px;
}
.option-group-heading p,
.option-group-heading h3 { margin: 0; }
.option-group-heading p {
  color: #8a6500;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.option-group-heading h3 { color: var(--blue); font-size: 20px; }
.option-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.recommendation-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  min-height: 150px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  box-shadow: 0 8px 22px rgba(26,36,33,.05);
}
.recommendation-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4f0e6;
}
.recommendation-label {
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.recommendation-card h4 { margin: 4px 0 7px; color: var(--blue); font-size: 14px; }
.recommendation-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.recommendation-card small { display: block; margin-top: 9px; color: #8a6500; font-size: 9px; font-weight: 700; }
.planning-note {
  margin: 8px 0 0;
  padding: 12px 14px;
  border: 1px dashed #b8c9c1;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.65);
  font-size: 9px;
  line-height: 1.5;
}

.home-icon-trail { margin-right: 5px; letter-spacing: 2px; }
.route-flow-widget,
.route-map-widget {
  margin: 14px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #fffdf7, #f4f8f5);
  box-shadow: 0 10px 28px rgba(26,36,33,.06);
}
.widget-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.widget-title > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff1bf; font-size: 21px; }
.widget-title p,
.widget-title h3 { margin: 0; }
.widget-title p { color: #8a6500; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.widget-title h3 { color: var(--blue); font-size: 20px; }
.widget-title .google-maps-link { margin: 0 0 0 auto; }
.route-flow-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.route-flow-stop { display: grid; grid-template-columns: 34px 1fr; gap: 9px; min-width: 0; padding: 11px; border: 1px solid #e5dfd2; border-radius: 9px; background: white; }
.route-stop-marker { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #edf3f0; font-size: 16px; }
.route-flow-stop time { display: block; color: #8a6500; font-size: 8px; font-weight: 800; }
.route-flow-stop strong { display: block; margin: 2px 0 5px; color: var(--blue); font-size: 10px; line-height: 1.3; }
.route-flow-stop small { display: block; color: var(--muted); font-size: 8px; line-height: 1.35; }
.route-map-shell { padding-bottom: 0; }
.route-map-widget { margin-top: 0; }
.route-map-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(220px, .8fr); gap: 14px; }
.route-map-canvas { position: relative; min-height: 390px; overflow: hidden; border: 1px solid #c8d6cd; border-radius: 10px; background-color: #e9efe7; background-image: linear-gradient(28deg, transparent 48%, rgba(255,255,255,.72) 49%, rgba(255,255,255,.72) 51%, transparent 52%), linear-gradient(116deg, transparent 47%, rgba(255,255,255,.58) 48%, rgba(255,255,255,.58) 50%, transparent 51%); background-size: 94px 76px, 120px 104px; }
.map-water { position: absolute; right: -12%; bottom: -26%; width: 62%; height: 48%; border-radius: 50% 0 0 0; background: rgba(111,180,205,.42); transform: rotate(-7deg); }
.map-road { position: absolute; z-index: 1; height: 8px; border: 2px solid white; border-radius: 999px; background: #f2c65c; box-shadow: 0 1px 3px rgba(37,75,122,.18); transform-origin: left center; }
.road-one { left: 5%; top: 22%; width: 92%; transform: rotate(20deg); }
.road-two { left: 13%; top: 79%; width: 82%; transform: rotate(-37deg); }
.road-three { left: 22%; top: 4%; width: 76%; transform: rotate(74deg); }
.map-city-label { position: absolute; left: 5%; bottom: 5%; color: rgba(37,75,122,.24); font-size: clamp(28px,5vw,62px); font-weight: 900; letter-spacing: -.05em; text-transform: uppercase; }
.route-map-pin { position: absolute; z-index: 3; left: var(--pin-x); top: var(--pin-y); display: grid; grid-template-columns: 28px 17px; align-items: center; color: inherit; text-decoration: none; transform: translate(-50%,-50%); filter: drop-shadow(0 4px 4px rgba(13,25,37,.22)); }
.route-map-pin > span { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid white; border-radius: 50%; background: var(--forest); font-size: 14px; }
.route-map-pin > b { display: grid; place-items: center; width: 18px; height: 18px; margin-left: -4px; border: 2px solid white; border-radius: 50%; color: white; background: var(--blue); font-size: 7px; }
.route-map-pin:hover { z-index: 5; transform: translate(-50%,-50%) scale(1.12); }
.route-map-grid ol { max-height: 390px; overflow: auto; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--line); border-radius: 10px; background: white; }
.route-map-grid li { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 8px; padding: 9px 5px; border-bottom: 1px solid var(--line); color: var(--blue); font-size: 9px; font-weight: 700; }
.route-map-grid li:last-child { border-bottom: 0; }
.route-map-grid li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: white; background: var(--forest); font-size: 8px; }
.map-estimate-note { margin: 10px 0 0; color: var(--muted); font-size: 8px; }
.place-facts { display: grid; gap: 6px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.place-fact { color: var(--ink); font-size: 9px; line-height: 1.4; }
.place-fact b { display: block; color: #8a6500; font-size: 8px; letter-spacing: .04em; }
.place-fact em { color: var(--muted); font-style: normal; }
.recommendation-card { min-height: 245px; }

@media (max-width: 820px) {
  .option-card-grid { grid-template-columns: 1fr; }
  .recommendation-card { min-height: 0; }
  .route-map-grid { grid-template-columns: 1fr; }
  .route-map-canvas { min-height: 300px; }
  .route-map-grid ol { max-height: none; }
  .widget-title { flex-wrap: wrap; }
  .widget-title .google-maps-link { width: 100%; margin-left: 54px; }
}

/* Compact, reference-style date navigation */
.report-day-bar { padding-block: 6px; }
.report-day-bar #dayNav.day-strip { gap: 4px; height: 46px; padding: 0; }
.report-day-bar .day-button {
  flex: 0 0 auto;
  min-width: 66px;
  min-height: 40px;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,.13);
}
.report-day-bar .day-nav-icon { font-size: 14px; }
.report-day-bar .day-nav-date { font-size: 8px; letter-spacing: 0; }

@media (max-width: 640px) {
  .report-day-bar #dayNav.day-strip { height: 44px; }
  .report-day-bar .day-button { min-width: 62px; min-height: 38px; padding-inline: 6px; }
}

/* Selected-day editorial navigation */
.trip-app-header .app-destination { display: none; }
.trip-app-header { grid-template-columns: minmax(180px, 1fr) auto; }
.trip-header-actions .export-button {
  min-width: 82px;
  min-height: 38px;
  border-radius: 999px;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.trip-header-actions .export-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(0,0,0,.25);
}
.day-banner-source { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.report-day-bar::after { content: none; }
.report-day-bar {
  grid-template-columns: minmax(190px, 270px) minmax(0,1fr);
  min-height: 116px;
  padding: 14px clamp(18px,3vw,46px);
  transition: background-image .38s ease-in-out;
}
.report-day-heading { position: relative; z-index: 2; color: white; }
.report-day-heading strong { display: block; color: white; font-size: clamp(17px,2vw,25px); line-height: 1.05; }
.report-day-heading span { display: -webkit-box; max-width: 260px; margin-top: 7px; overflow: hidden; color: rgba(255,255,255,.86); font-size: 10px; line-height: 1.35; letter-spacing: 0; text-transform: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.report-day-bar #dayNav.day-strip { gap: 9px; align-items: stretch; }
.report-day-bar .day-button { min-width: 142px; min-height: 76px; flex-direction: row; justify-content: flex-start; gap: 9px; padding: 10px 12px; text-align: left; }
.report-day-bar .day-nav-icon { flex: 0 0 auto; font-size: 26px; }
.day-nav-copy { display: grid; min-width: 0; gap: 5px; }
.report-day-bar .day-nav-date { font-size: 12px; }
.report-day-bar .day-nav-title { max-width: 96px; overflow: hidden; color: rgba(255,255,255,.76); font-size: 9px; font-weight: 600; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.report-day-bar .day-button.active .day-nav-title { color: rgba(26,10,4,.7); }
.app-nav { flex-basis: 98px; min-height: 98px; padding-block: 8px max(12px,env(safe-area-inset-bottom)); }
.app-nav-button { gap: 6px; }
.app-nav-button > span { width: 56px; height: 56px; font-size: 26px; transition: transform .2s ease, background-color .2s ease; }
.app-nav-button:hover > span { transform: translateY(-3px) scale(1.04); }
.app-nav-button small { font-size: 11px; font-weight: 700; }

@media (max-width: 760px) {
  .report-day-bar { grid-template-columns: 1fr; min-height: 0; gap: 9px; padding: 11px 12px; }
  .report-day-heading span { max-width: none; -webkit-line-clamp: 1; }
  .report-day-bar .day-button { min-width: 124px; min-height: 66px; }
  .app-nav { flex-basis: 88px; min-height: 88px; }
  .app-nav-button > span { width: 48px; height: 48px; font-size: 22px; }
  .app-nav-button small { font-size: 9px; }
}

/* Final responsive questionnaire grid */
.builder.builder-wide .suggestion-board { display: block; width: 100%; }
.builder.builder-wide .suggestion-group { width: 100%; max-width: none; padding: 0; border: 0; }
.builder.builder-wide .suggestion-card-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); height: clamp(520px,66vh,780px); max-height: none; gap: 14px; padding: 4px 12px 18px 4px; align-content: start; }
.builder.builder-wide .suggestion-card-list .suggestion-bubble { grid-template-columns: 118px minmax(0,1fr); min-height: 164px; }
.builder.builder-wide .suggestion-card-image { width: 118px; min-height: 164px; }
@media (min-width: 1500px) {
  .builder.builder-wide .suggestion-card-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .builder.builder-wide .suggestion-card-list .suggestion-bubble { grid-template-columns: 108px minmax(0,1fr); }
  .builder.builder-wide .suggestion-card-image { width: 108px; }
}
@media (max-width: 1050px) {
  .builder.builder-wide .suggestion-card-list { grid-template-columns: repeat(2,minmax(0,1fr)); height: clamp(500px,64vh,720px); }
}
@media (max-width: 680px) {
  .builder.builder-wide .suggestion-card-list { grid-template-columns: 1fr; height: clamp(500px,68vh,720px); padding-right: 6px; }
  .builder.builder-wide .suggestion-card-list .suggestion-bubble { grid-template-columns: 105px minmax(0,1fr); min-height: 150px; }
  .builder.builder-wide .suggestion-card-image { width: 105px; min-height: 150px; }
}

/* Unified Aptos typography */
html, body, body *, button, input, select, textarea, dialog, option {
  font-family: Aptos, "Aptos Display", "Segoe UI", Arial, sans-serif !important;
}

/* Responsive multi-column questionnaire choices */
.builder.builder-wide .suggestion-board { display: block; width: 100%; }
.builder.builder-wide .suggestion-group { width: 100%; max-width: none; padding: 0; border: 0; }
.builder.builder-wide .suggestion-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  height: clamp(520px, 66vh, 780px);
  max-height: none;
  gap: 14px;
  padding: 4px 12px 18px 4px;
  align-content: start;
}
.builder.builder-wide .suggestion-card-list .suggestion-bubble {
  grid-template-columns: 118px minmax(0,1fr);
  min-height: 164px;
}
.builder.builder-wide .suggestion-card-image { width: 118px; min-height: 164px; }

@media (min-width: 1500px) {
  .builder.builder-wide .suggestion-card-list { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .builder.builder-wide .suggestion-card-list .suggestion-bubble { grid-template-columns: 108px minmax(0,1fr); }
  .builder.builder-wide .suggestion-card-image { width: 108px; }
}

@media (max-width: 1050px) {
  .builder.builder-wide .suggestion-card-list { grid-template-columns: repeat(2, minmax(0,1fr)); height: clamp(500px, 64vh, 720px); }
}

@media (max-width: 680px) {
  .builder.builder-wide .suggestion-card-list { grid-template-columns: 1fr; height: clamp(500px, 68vh, 720px); padding-right: 6px; }
  .builder.builder-wide .suggestion-card-list .suggestion-bubble { grid-template-columns: 105px minmax(0,1fr); min-height: 150px; }
  .builder.builder-wide .suggestion-card-image { width: 105px; min-height: 150px; }
}

/* One recommendation category per questionnaire step */
.builder.builder-wide .suggestion-board { grid-template-columns: minmax(0,1fr); }
.builder.builder-wide .suggestion-group { width: 100%; max-width: none; padding-right: 0; border-right: 0; }
.builder.builder-wide .suggestion-card-list { max-height: min(58vh, 620px); }

/* Full-width report pages and destination-image date banner */
.app-panel-body,
.home-panel-body,
.itinerary-panel.app-panel-body,
.collection-list,
#foodList,
#shopList {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.report-day-bar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom-color: rgba(255,255,255,.22);
  background-image: linear-gradient(90deg, rgba(13,25,37,.78), rgba(21,54,92,.56), rgba(13,25,37,.76)), var(--destination-banner);
  background-position: center;
  background-size: cover;
  box-shadow: 0 7px 22px rgba(13,25,37,.22);
}
.report-day-bar::after {
  content: attr(data-destination);
  position: absolute;
  z-index: -1;
  right: clamp(18px, 4vw, 60px);
  bottom: -12px;
  max-width: 48vw;
  overflow: hidden;
  color: rgba(255,255,255,.16);
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.report-day-bar #dayNav.day-strip { position: relative; z-index: 1; }
.report-day-bar .day-button {
  color: white;
  border-color: rgba(255,255,255,.34);
  background: rgba(17,29,43,.66);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  backdrop-filter: blur(5px);
}
.report-day-bar .day-button:hover { background: rgba(37,75,122,.82); }
.report-day-bar .day-button.active {
  color: #142132;
  border-color: #f5c84b;
  background: rgba(255,241,191,.94);
}
.selected-date-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 12px 15px;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: #fff7dc;
}
.selected-date-context span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.selected-date-context strong { color: var(--blue); font-size: 13px; }

/* Destination photography, glass date navigation, and detailed live weather */
.app-home-hero {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #132f2a;
  background-image:
    linear-gradient(90deg, rgba(8,24,22,.86) 0%, rgba(13,42,37,.58) 52%, rgba(8,24,22,.32) 100%),
    linear-gradient(0deg, rgba(8,24,22,.78) 0%, transparent 62%),
    var(--destination-banner);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.18);
}
.app-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 38%);
  pointer-events: none;
}
.app-home-hero .eyebrow,
.app-home-hero h2,
.app-home-hero > p,
.app-home-hero .trip-stats { text-shadow: 0 2px 12px rgba(0,0,0,.52); }

.report-day-bar .day-button,
.report-day-bar .day-button:hover {
  color: white;
  border-color: rgba(255,255,255,.46);
  background: rgba(8,23,34,.2);
  box-shadow: 0 5px 15px rgba(0,0,0,.15), inset 0 0 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(2px);
}
.report-day-bar .day-button:hover { background: rgba(255,255,255,.2); }
.report-day-bar .day-button.active {
  color: white;
  border-color: #f5c84b;
  background: rgba(255,255,255,.24);
  box-shadow: 0 6px 18px rgba(0,0,0,.2), inset 0 -3px 0 #f5c84b;
}

.home-weather-wrap {
  width: 100%;
  padding: 18px clamp(16px, 4vw, 48px) 4px;
  background: linear-gradient(180deg, #e9e3d6 0%, var(--panel) 100%);
}
.home-weather-wrap .trip-weather-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px clamp(20px, 3.5vw, 42px) 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 8%, rgba(245,200,75,.2), transparent 25%),
    linear-gradient(120deg, #123956 0%, #1e5870 48%, #286b62 100%);
  box-shadow: 0 16px 34px rgba(22,47,73,.22);
}
.weather-main { align-items: center; }
.weather-main > div { display: grid; gap: 3px; }
.weather-condition {
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 700;
}
.weather-summary { max-width: 850px; font-size: 12px; line-height: 1.55; }
.weather-metrics-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}
.weather-metrics-row > span { display: block; padding: 13px 14px; }
.weather-metrics-row small { font-size: 8px; }
.weather-metrics-row strong { font-size: 11px; line-height: 1.3; white-space: normal; }

@media (max-width: 900px) {
  .weather-metrics-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .weather-metrics-row > span:nth-child(3) { border-right: 0; }
  .weather-metrics-row > span:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.17); }
}

@media (max-width: 620px) {
  .app-home-hero { min-height: 290px; background-position: center; }
  .home-weather-wrap { padding: 12px 10px 2px; }
  .home-weather-wrap .trip-weather-card { padding: 20px 16px 16px; border-radius: 11px; }
  .weather-metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-metrics-row > span:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.17); }
  .weather-metrics-row > span:nth-child(even) { border-right: 0; }
  .weather-metrics-row > span:nth-child(-n+4) { border-bottom: 1px solid rgba(255,255,255,.17); }
}

/* Three-step itinerary questionnaire */
.builder.builder-wide { display: block; padding: 0; background: var(--paper); }
.builder.builder-wide .builder-copy { display: none; }
.builder.builder-wide .trip-form {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 70px);
  margin: 0;
  padding: clamp(24px, 3vw, 44px) clamp(24px, 5vw, 76px) 54px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.builder.builder-wide .suggestion-intro { padding-top: 14px; }
.form-step { display: none; }
.form-step.active { display: block; animation: form-step-in .28s ease both; }
@keyframes form-step-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.form-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0 15px; }
.form-progress span { height: 4px; border-radius: 999px; background: #e2ddd2; transition: background .2s; }
.form-progress span.active { background: var(--gold); }
.suggestion-intro { padding: 24px 0 13px; }
.suggestion-intro .eyebrow { margin: 0 0 5px; color: #8a6500; }
.suggestion-intro h2 { margin: 0; color: var(--ink); font: 600 29px/1.05 "Fraunces", serif; }
.suggestion-intro > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.suggestion-board { display: grid; gap: 17px; padding: 9px 0 5px; }
.suggestion-group { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.suggestion-group:last-child { border-bottom: 0; }
.suggestion-group-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.suggestion-group-heading > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff1bf; font-size: 15px; }
.suggestion-group-heading h3 { margin: 0; color: var(--ink); font-size: 12px; }
.suggestion-group-heading small { margin-left: auto; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.suggestion-bubbles { display: flex; flex-wrap: wrap; gap: 7px; }
.suggestion-card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 390px; padding: 2px 8px 8px 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--gold) #eee9de; }
.suggestion-bubble { position: relative; padding: 8px 11px; border: 1px solid #d9d3c6; border-radius: 999px; background: #f8f5ed; color: #42504c; cursor: pointer; font-size: 9px; font-weight: 700; line-height: 1.25; transition: transform .15s, border-color .15s, color .15s, background .15s; }
.suggestion-card-list .suggestion-bubble { display: flex; min-height: 152px; flex-direction: column; align-items: stretch; gap: 7px; padding: 14px; border-radius: 11px; text-align: left; }
.suggestion-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: var(--ink); font-size: 12px; line-height: 1.25; }
.suggestion-check { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border: 1px solid #d2cab9; border-radius: 50%; color: transparent; background: #fff; }
.suggestion-card-meta { color: #8a6500; font-size: 8px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.suggestion-card-detail { flex: 1; color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.5; }
.suggestion-map-link { align-self: flex-start; color: var(--forest); font-size: 8px; font-weight: 800; text-decoration: none; }
.suggestion-map-link:hover { text-decoration: underline; }
.suggestion-bubble:hover { transform: translateY(-1px); border-color: var(--forest); color: var(--forest); }
.suggestion-bubble.selected { padding-left: 28px; border-color: var(--forest); color: white; background: var(--forest); box-shadow: 0 5px 13px rgba(36,89,76,.18); }
.suggestion-bubble.selected::before { content: "✓"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #fff1bf; }
.suggestion-card-list .suggestion-bubble.selected { padding-left: 14px; background: #e5f0e9; color: var(--forest-dark); }
.suggestion-card-list .suggestion-bubble.selected::before { display: none; }
.suggestion-card-list .suggestion-bubble.selected .suggestion-check { border-color: var(--forest); color: white; background: var(--forest); }
.selection-summary { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 0; padding: 9px 12px; border-radius: 8px; background: var(--sage); color: var(--forest-dark); font-size: 10px; font-weight: 800; }
.selection-summary button { border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: 9px; font-weight: 800; }
.preference-field { margin-top: 8px; }
.trip-style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.style-question { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #faf8f2; }
.style-question > span { color: var(--ink); font-size: 12px; font-weight: 800; }
.style-question small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.style-question select, .style-question textarea { width: 100%; border: 1px solid #d9d3c6; border-radius: 7px; background: white; color: var(--ink); font: 600 10px/1.4 "Inter", sans-serif; }
.style-question select { min-height: 38px; padding: 8px 10px; }
.style-question textarea { resize: vertical; padding: 10px; }
.style-notes { margin-bottom: 0; }
.style-notes textarea { min-height: 42px; height: 42px; }
.google-maps-link { display: inline-flex; margin-top: 9px; color: var(--forest); font-size: 9px; font-weight: 800; line-height: 1.3; text-decoration: none; }
.google-maps-link:hover { color: var(--gold-dark); text-decoration: underline; }
.maps-destination-context { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--sage); }
.maps-destination-context span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.maps-destination-context strong { color: var(--forest-dark); font-size: 12px; }
.maps-destination-context .google-maps-link { margin: 0 0 0 auto; }
.maps-day-stops { display: grid; gap: 8px; }
.maps-stop-heading { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; margin-bottom: 4px; padding: 13px 15px; border-radius: 10px; color: white; background: linear-gradient(135deg,#17324d,#235a74); }
.maps-stop-heading > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 20px; }
.maps-stop-heading p, .maps-stop-heading h3 { margin: 0; }
.maps-stop-heading p { color: rgba(255,255,255,.68); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.maps-stop-heading h3 { margin-top: 2px; font-size: 15px; line-height: 1.25; }
.maps-stop-heading > strong { padding: 6px 9px; border-radius: 999px; color: #17324d; background: #fff1bf; font-size: 8px; white-space: nowrap; }
.maps-stop-list { display: grid; gap: 7px; }
.maps-stop-card { display: grid; grid-template-columns: 32px minmax(0,1fr) 20px; align-items: center; gap: 12px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; color: inherit; background: var(--panel); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.maps-stop-card:hover { transform: translateY(-1px); border-color: rgba(37,75,122,.42); box-shadow: 0 9px 22px rgba(32,49,46,.1); }
.maps-stop-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: white; background: var(--forest); font-size: 10px; font-weight: 900; }
.maps-stop-copy { min-width: 0; }
.maps-stop-copy h4 { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.3; }
.maps-stop-copy p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.maps-stop-copy small { display: block; margin-top: 6px; color: var(--blue); font-size: 9px; font-weight: 800; line-height: 1.35; }
.maps-stop-arrow { color: var(--muted); font-size: 16px; }
.wizard-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.wizard-actions .primary-button { min-width: 0; }
.secondary-button { min-width: 88px; border: 1px solid var(--line); border-radius: 8px; background: #f8f5ed; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 800; }
.secondary-button:hover { border-color: var(--forest); background: var(--sage); }

@media (max-width: 620px) {
  .builder.builder-wide .trip-form { min-height: calc(100vh - 64px); padding: 18px 16px 36px; }
  .suggestion-intro h2 { font-size: 25px; }
  .suggestion-bubble { padding: 8px 10px; font-size: 9px; }
  .suggestion-card-list { grid-template-columns: 1fr; max-height: 430px; }
  .wizard-actions { grid-template-columns: 82px minmax(0,1fr); }
  .trip-style-grid { grid-template-columns: 1fr; gap: 8px; }
  .maps-destination-context { align-items: flex-start; flex-direction: column; }
  .maps-destination-context .google-maps-link { margin-left: 0; }
  .maps-stop-heading { grid-template-columns: 36px minmax(0,1fr); padding: 12px; }
  .maps-stop-heading > strong { display: none; }
  .maps-stop-card { grid-template-columns: 30px minmax(0,1fr) 16px; gap: 9px; padding: 12px; }
}

/* Tokyo reference alignment: substantial date chips, full-width cards, image-backed route map */
.report-day-bar { padding: 10px 14px 12px; }
.report-day-bar #dayNav.day-strip { gap: 8px; height: auto; padding: 0 0 2px; }
.report-day-bar .day-button {
  flex: 0 0 auto; min-width: 82px; min-height: 68px; flex-direction: column;
  justify-content: center; gap: 4px; padding: 7px 10px;
  border: 1.5px solid rgba(255,255,255,.22); border-radius: 12px;
  background: rgba(255,255,255,.14); box-shadow: none;
}
.report-day-bar .day-nav-icon { font-size: 25px; line-height: 1; }
.report-day-bar .day-nav-date { color: rgba(255,255,255,.92); font-size: 12px; font-weight: 700; line-height: 1; }
.report-day-bar .day-button.active { color: #1a0a04; border-color: rgba(255,255,255,.95); background: rgba(255,255,255,.92); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.report-day-bar .day-button.active .day-nav-date { color: rgba(26,10,4,.72); }
.app-nav { flex-basis: 82px; padding: 6px clamp(6px,3vw,70px) max(10px,env(safe-area-inset-bottom)); }
.app-nav-button { gap: 4px; }
.app-nav-button > span { width: 46px; height: 46px; font-size: 21px; }
.app-nav-button small { font-size: 10px; font-weight: 600; }
.app-nav-button.active > span { background: rgba(255,236,153,.55); box-shadow: 0 0 0 2px rgba(255,193,7,.45); }
.collection-list, .option-card-grid, #mapsList, #foodList, #shopList { grid-template-columns: minmax(0,1fr); }
.option-card-grid { display: grid; gap: 12px; }
.recommendation-card, .collection-card { width: 100%; max-width: none; }
.recommendation-card { min-height: 0; grid-template-columns: 48px minmax(0,1fr); padding: 18px 20px; border-radius: 14px; box-shadow: var(--shadow); }
.recommendation-icon { width: 44px; height: 44px; font-size: 22px; }
.collection-card { grid-template-columns: 52px minmax(0,1fr) 24px; padding: 18px 20px; border-radius: 14px; box-shadow: var(--shadow); }
.route-map-grid { grid-template-columns: minmax(0,1.9fr) minmax(260px,.7fr); }
.route-map-canvas {
  min-height: 430px;
  background-image: linear-gradient(rgba(224,239,231,.72),rgba(224,239,231,.72)), linear-gradient(28deg,transparent 48%,rgba(255,255,255,.78) 49%,rgba(255,255,255,.78) 51%,transparent 52%), linear-gradient(116deg,transparent 47%,rgba(255,255,255,.65) 48%,rgba(255,255,255,.65) 50%,transparent 51%), var(--map-destination);
  background-position: center; background-size: cover,94px 76px,120px 104px,cover;
  background-blend-mode: normal,normal,normal,luminosity;
}
.map-city-label { color: rgba(26,74,122,.34); text-shadow: 0 1px 0 rgba(255,255,255,.9); }

@media (max-width: 820px) {
  .report-day-bar .day-button { min-width: 76px; min-height: 64px; padding: 6px 8px; }
  .report-day-bar .day-nav-icon { font-size: 23px; }
  .report-day-bar .day-nav-date { font-size: 11px; }
  .app-nav { flex-basis: 76px; padding-inline: 2px; }
  .app-nav-button > span { width: 40px; height: 40px; font-size: 19px; }
  .app-nav-button small { font-size: 8px; }
  .route-map-grid { grid-template-columns: 1fr; }
  .route-map-canvas { min-height: 320px; }
}

.trip-app-header .app-destination {
  max-width: min(52vw, 720px);
  color: #fff;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.28);
}

/* Full-width editorial questionnaire */
body:not(.trip-mode) .page-shell { width: 100%; max-width: none; margin: 0; }
.builder,
.builder.builder-wide {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--paper);
}
.builder:not(.builder-wide) .builder-copy {
  position: relative;
  top: auto;
  width: 100%;
  min-height: 230px;
  padding: clamp(34px, 5vw, 68px) clamp(24px, 6vw, 88px);
  border-radius: 0;
  box-shadow: none;
}
.builder:not(.builder-wide) .builder-copy > * { max-width: none; }
.builder:not(.builder-wide) .builder-copy h1 { width: 100%; max-width: none; font-size: clamp(48px, 6vw, 88px); }
.builder:not(.builder-wide) .builder-copy .lede { width: min(100%, 900px); max-width: none; }
.builder:not(.builder-wide) .trip-form { min-height: calc(100vh - 300px); }
.builder .trip-form,
.builder.builder-wide .trip-form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(24px, 6vw, 88px);
  font-family: "DM Sans", sans-serif;
}
.suggestion-card-list {
  grid-template-columns: 1fr;
  max-height: 520px;
}
.suggestion-card-list .suggestion-bubble {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 138px;
  gap: 0;
  padding: 0;
  overflow: hidden;
  font-family: "DM Sans", sans-serif;
}
.suggestion-card-list .suggestion-bubble.selected { padding-left: 0; }
.suggestion-card-image { width: 148px; height: 100%; min-height: 138px; object-fit: cover; background: var(--sage); }
.suggestion-card-body { display: flex; min-width: 0; flex-direction: column; gap: 7px; padding: 15px 17px; }
.suggestion-card-top strong { font-family: "DM Sans", sans-serif; font-size: 14px; }
.suggestion-card-detail { font-size: 10px; }

@media (max-width: 620px) {
  .builder:not(.builder-wide) .builder-copy { min-height: 205px; padding: 30px 20px; }
  .builder .trip-form, .builder.builder-wide .trip-form { padding-inline: 16px; }
  .suggestion-card-list .suggestion-bubble { grid-template-columns: 105px minmax(0, 1fr); }
  .suggestion-card-image { width: 105px; min-height: 155px; }
  .suggestion-card-body { padding: 13px; }
}
.selected-date-context .google-maps-link { margin: 0 0 0 auto; white-space: nowrap; }

@media (max-width: 640px) {
  .trip-app-header .app-destination { max-width: 44vw; font-size: clamp(17px, 5vw, 23px); }
  .selected-date-context { align-items: flex-start; flex-direction: column; gap: 7px; }
  .selected-date-context .google-maps-link { margin-left: 0; }
}

/* Survey is a full-page experience, not an app window */
body:not(.trip-mode) { margin: 0; background: var(--paper); }
body:not(.trip-mode) > .page-shell > .topbar { display: none; }
body:not(.trip-mode) .page-shell,
body:not(.trip-mode) .builder { width: 100%; max-width: none; min-height: 100vh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
body:not(.trip-mode) .builder-copy { width: 100%; border: 0; border-radius: 0; }
.suggestion-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 2px 0 16px; padding: 13px 15px; border: 1px solid #d6dfd8; border-radius: 10px; background: var(--sage); }
.suggestion-toolbar div { display: grid; gap: 2px; }
.suggestion-toolbar strong { color: var(--forest-dark); font-size: 11px; }
.suggestion-toolbar span { color: var(--muted); font-size: 9px; }
.suggestion-toolbar button { flex: 0 0 auto; min-height: 38px; padding: 8px 14px; border: 0; border-radius: 999px; color: white; background: var(--forest); cursor: pointer; font: 800 10px "DM Sans", sans-serif; box-shadow: 0 5px 14px rgba(36,89,76,.18); }
.suggestion-toolbar button:hover { background: var(--forest-dark); transform: translateY(-1px); }
.builder-copy { position: relative; overflow: hidden; }
.builder-copy::after { content: "✈️"; position: absolute; right: clamp(26px, 8vw, 130px); top: 50%; z-index: 0; transform: translateY(-50%) rotate(-10deg); font-size: clamp(100px, 18vw, 250px); filter: drop-shadow(0 18px 18px rgba(0,0,0,.2)); opacity: .88; }
.builder-copy > * { position: relative; z-index: 1; }
.builder-brand { display: inline-flex; width: fit-content; align-items: center; gap: 9px; margin-bottom: 24px; color: white; font-size: 16px; text-decoration: none; }
.builder-brand > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--gold); font-size: 17px; }
.field-group.no-number { display: block; }
.field-group.no-number .field-content { width: 100%; }
.compact-next-button { display: flex; width: fit-content; min-width: 230px; align-items: center; justify-content: center; gap: 9px; margin: 4px 0 0 auto; padding: 8px 17px; }
.preference-actions { display: flex; width: 100%; justify-content: space-between; gap: 8px; margin: 12px 0 8px; }
.preference-actions .icon-nav-button { width: auto; min-width: 0; min-height: 40px; padding: 6px 12px; border-radius: 999px; font-size: 10px; }
.icon-nav-button { display: flex; align-items: center; justify-content: center; gap: 9px; }
.nav-button-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; font-size: 15px; line-height: 1; }
.secondary-button .nav-button-icon { color: white; background: var(--forest); }
.primary-button .nav-button-icon { color: var(--ink); background: var(--gold); }
.preference-field.no-number { display: block; padding-top: 12px; }
.preference-field.no-number .field-content { width: 100%; }
.preference-field.no-number textarea { min-height: 62px; max-height: 92px; }
.compact-preference-error { margin: 4px 0 0; text-align: right; }
.final-actions { display: flex; align-items: center; justify-content: space-between; }
.final-actions .secondary-button { min-height: 42px; padding: 8px 15px; }
.final-create-button { width: auto; min-width: 210px; min-height: 42px; padding: 8px 16px; }

@media (min-width: 960px) {
  .builder.builder-wide .suggestion-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
  }
  .builder.builder-wide .suggestion-group {
    min-width: 0;
    padding: 0 14px 0 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .builder.builder-wide .suggestion-group:last-child { padding-right: 0; border-right: 0; }
  .builder.builder-wide .suggestion-card-list { max-height: min(42vh, 390px); padding-right: 8px; }
  .builder.builder-wide .suggestion-card-list .suggestion-bubble { grid-template-columns: 96px minmax(0, 1fr); min-height: 156px; }
  .builder.builder-wide .suggestion-card-image { width: 96px; min-height: 156px; }
  .builder.builder-wide .suggestion-card-body { padding: 13px 12px; }
  .builder.builder-wide .suggestion-card-top strong { font-size: 12px; }
  .builder.builder-wide .suggestion-card-detail { font-size: 9px; }
}

@media (max-width: 620px) {
  .suggestion-toolbar { align-items: stretch; flex-direction: column; }
  .suggestion-toolbar button { width: 100%; }
}

/* Destination imagery across the generated report */
.compact-app-hero,
.bookings-hero,
.maps-hero,
.food-hero,
.shop-hero,
.photos-hero {
  position: relative;
  background-color: #173e35;
  background-image: linear-gradient(110deg, rgba(18,45,39,.84), rgba(22,55,48,.48)), var(--destination-banner);
  background-position: center;
  background-size: cover;
}
.compact-app-hero > * { position: relative; z-index: 1; }
.activity-card { grid-template-columns: 58px 40px 150px minmax(0,1fr) 24px; align-items: center; }
.activity-photo { width: 150px; height: 104px; border-radius: 9px; object-fit: cover; background: var(--sage); }
.google-route-frame { width: 100%; min-height: 430px; border: 1px solid #c8d6cd; border-radius: 10px; background: #e9efe7; }
.route-map-grid li a { color: var(--blue); line-height: 1.35; text-decoration: none; }
.route-map-grid li a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .activity-card { grid-template-columns: 43px 34px 88px minmax(0,1fr); align-items: start; }
  .activity-photo { width: 88px; height: 82px; }
  .activity-menu { display: none; }
  .google-route-frame { min-height: 320px; }
}

/* Place photography for food and shopping recommendations */
.recommendation-card { grid-template-columns: 180px 48px minmax(0,1fr); align-items: center; }
.recommendation-photo { width: 180px; height: 132px; border-radius: 10px; object-fit: cover; background: var(--sage); }

@media (max-width: 680px) {
  .recommendation-card { grid-template-columns: 105px minmax(0,1fr); align-items: start; }
  .recommendation-photo { width: 105px; height: 105px; }
  .recommendation-card .recommendation-icon { display: none; }
}

/* Photos replace redundant place emojis */
.activity-card { grid-template-columns: 58px 150px minmax(0,1fr) 24px; }
.activity-card .activity-icon,
.recommendation-card .recommendation-icon { display: none; }
.recommendation-card { grid-template-columns: 180px minmax(0,1fr); }

@media (max-width: 720px) {
  .activity-card { grid-template-columns: 43px 88px minmax(0,1fr); }
}

@media (max-width: 680px) {
  .recommendation-card { grid-template-columns: 105px minmax(0,1fr); }
}

/* Export package controls */
.trip-header-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.export-button { min-height: 34px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; color: white; background: rgba(255,255,255,.1); cursor: pointer; font: 700 10px "DM Sans", sans-serif; }
.export-button:hover { border-color: var(--gold); color: #101412; background: var(--gold); }
a.export-button { display: inline-flex; align-items: center; text-decoration: none; }
.feedback-link { color: var(--forest); font-weight: 700; }
.export-dialog { width: min(520px, calc(100vw - 32px)); padding: 30px; border: 0; border-radius: 18px; color: var(--ink); background: #fffdf8; box-shadow: 0 28px 90px rgba(0,0,0,.34); }
.export-dialog::backdrop { background: rgba(8,18,15,.66); backdrop-filter: blur(5px); }
.export-dialog-close { position: absolute; right: 15px; top: 12px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 25px; }
.export-dialog-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 17px; border-radius: 50%; color: white; background: var(--forest); font-size: 22px; }
.export-dialog h2 { margin: 4px 0 10px; font: 600 28px/1.08 "Fraunces", serif; }
.export-dialog > p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.55; }
.export-dialog ul { margin: 18px 0; padding: 14px 14px 14px 31px; border-radius: 10px; background: var(--sage); color: var(--forest-dark); font-size: 10px; line-height: 1.8; }
.export-dialog .primary-button { width: 100%; }
.toast-container { position: fixed; right: 18px; bottom: 18px; z-index: 9999; display: grid; gap: 10px; width: min(360px, calc(100vw - 28px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 11px 13px; border: 1px solid rgba(36,89,76,.16); border-radius: 999px; color: var(--forest-dark); background: rgba(232,239,217,.97); box-shadow: 0 14px 40px rgba(16,20,18,.16); font-size: 11px; font-weight: 800; letter-spacing: .01em; opacity: 0; transform: translateY(10px); transition: opacity .18s ease, transform .18s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.leaving { opacity: 0; transform: translateY(8px); }
.toast-error { border-color: rgba(178,73,54,.25); color: #5e241c; background: rgba(255,239,225,.98); }
.toast-success { border-color: rgba(245,200,75,.42); background: linear-gradient(135deg, rgba(255,249,226,.98), rgba(232,239,217,.98)); }
.toast-manual-copy { display: grid; gap: 7px; border-radius: 16px; font-weight: 700; }
.toast-manual-copy strong { font-size: 12px; }
.toast-manual-copy span { color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.35; }
.toast-manual-copy textarea { width: 100%; min-height: 86px; resize: vertical; padding: 9px; border: 1px solid rgba(36,89,76,.18); border-radius: 10px; color: var(--ink); background: #fffdf8; font: 10px/1.45 "DM Sans", sans-serif; }

@media (max-width: 640px) {
  .trip-header-actions { gap: 6px; }
  .export-button { padding-inline: 10px; }
  .trip-header-actions .back-button { font-size: 10px; }
}

@media (max-width: 720px) {
  .toast-container { right: auto; left: 50%; bottom: 12px; transform: translateX(-50%); }
  .toast { text-align: center; }
  .toast-manual-copy { text-align: left; }
}

/* Final selected-day navigation sizing */
.trip-app-header .app-destination { display: none; }
.trip-app-header { grid-template-columns: minmax(180px,1fr) auto; }
.trip-header-actions .export-button { min-width: 82px; min-height: 38px; border-radius: 999px; transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease; }
.trip-header-actions .export-button:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(0,0,0,.25); }
.report-day-bar::after { content: none; }
.report-day-bar { grid-template-columns: minmax(190px,270px) minmax(0,1fr); min-height: 116px; padding: 14px clamp(18px,3vw,46px); transition: background-image .38s ease-in-out; }
.report-day-heading { position: relative; z-index: 2; color: white; }
.report-day-heading strong { display: block; color: white; font-size: clamp(17px,2vw,25px); line-height: 1.05; }
.report-day-heading span { display: -webkit-box; max-width: 260px; margin-top: 7px; overflow: hidden; color: rgba(255,255,255,.86); font-size: 10px; line-height: 1.35; letter-spacing: 0; text-transform: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.report-day-bar #dayNav.day-strip { height: auto; gap: 9px; align-items: stretch; }
.report-day-bar .day-button { flex: 0 0 auto; min-width: 142px; min-height: 76px; flex-direction: row; justify-content: flex-start; gap: 9px; padding: 10px 12px; text-align: left; }
.report-day-bar .day-nav-icon { flex: 0 0 auto; font-size: 26px; }
.day-nav-copy { display: grid; min-width: 0; gap: 5px; }
.report-day-bar .day-nav-date { font-size: 12px; }
.report-day-bar .day-nav-title { max-width: 96px; overflow: hidden; color: rgba(255,255,255,.76); font-size: 9px; font-weight: 600; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.report-day-bar .day-button.active .day-nav-title { color: rgba(26,10,4,.7); }
.app-nav { flex-basis: 98px; min-height: 98px; padding-block: 8px max(12px,env(safe-area-inset-bottom)); }
.app-nav-button { gap: 6px; }
.app-nav-button > span { width: 56px; height: 56px; font-size: 26px; transition: transform .2s ease, background-color .2s ease; }
.app-nav-button:hover > span { transform: translateY(-3px) scale(1.04); }
.app-nav-button small { font-size: 11px; font-weight: 700; }

@media (max-width: 760px) {
  .report-day-bar { grid-template-columns: 1fr; min-height: 0; gap: 9px; padding: 11px 12px; }
  .report-day-heading span { max-width: none; -webkit-line-clamp: 1; }
  .report-day-bar .day-button { min-width: 124px; min-height: 66px; }
  .app-nav { flex-basis: 88px; min-height: 88px; }
  .app-nav-button > span { width: 48px; height: 48px; font-size: 22px; }
  .app-nav-button small { font-size: 9px; }
}

/* Final responsive questionnaire grid */
.builder.builder-wide .suggestion-board { display: block; width: 100%; }
.builder.builder-wide .suggestion-group { width: 100%; max-width: none; padding: 0; border: 0; }
.builder.builder-wide .suggestion-card-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); height: clamp(520px,66vh,780px); max-height: none; gap: 14px; padding: 4px 12px 18px 4px; align-content: start; }
.builder.builder-wide .suggestion-card-list .suggestion-bubble { grid-template-columns: 118px minmax(0,1fr); min-height: 164px; }
.builder.builder-wide .suggestion-card-image { width: 118px; min-height: 164px; }
@media (min-width: 1500px) {
  .builder.builder-wide .suggestion-card-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .builder.builder-wide .suggestion-card-list .suggestion-bubble { grid-template-columns: 108px minmax(0,1fr); }
  .builder.builder-wide .suggestion-card-image { width: 108px; }
}
@media (max-width: 1050px) {
  .builder.builder-wide .suggestion-card-list { grid-template-columns: repeat(2,minmax(0,1fr)); height: clamp(500px,64vh,720px); }
}
@media (max-width: 680px) {
  .builder.builder-wide .suggestion-card-list { grid-template-columns: 1fr; height: clamp(500px,68vh,720px); padding-right: 6px; }
  .builder.builder-wide .suggestion-card-list .suggestion-bubble { grid-template-columns: 105px minmax(0,1fr); min-height: 150px; }
  .builder.builder-wide .suggestion-card-image { width: 105px; min-height: 150px; }
}

/* Unified Aptos typography */
html, body, body *, button, input, select, textarea, dialog, option { font-family: Aptos, "Aptos Display", "Segoe UI", Arial, sans-serif !important; }

/* Version 2 product experience */
.demo-showcase { display:grid; gap:6px; max-width:620px; margin-top:25px; padding:16px 18px; border:1px solid rgba(255,255,255,.28); border-radius:14px; background:rgba(255,255,255,.1); backdrop-filter:blur(8px); }
.demo-showcase strong { color:#fff; font-size:15px; }
.demo-showcase span { color:rgba(255,255,255,.78); font-size:11px; line-height:1.45; }
.demo-showcase a { width:fit-content; color:var(--gold); font-size:11px; font-weight:800; text-decoration:none; }
.style-question input, .style-question textarea { width:100%; padding:11px 12px; border:1px solid #d8d2c5; border-radius:8px; color:var(--ink); background:#fff; font-size:11px; }
.booking-input { margin:0; }
.template-picker, .mode-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0; }
.template-picker label, .mode-picker label { display:grid; grid-template-columns:auto 1fr; gap:4px 10px; padding:18px; border:1px solid var(--line); border-radius:14px; background:#fffdf8; cursor:pointer; box-shadow:0 8px 24px rgba(30,52,45,.08); }
.template-picker input, .mode-picker input { grid-row:1 / span 2; align-self:start; margin-top:3px; accent-color:var(--forest); }
.template-picker strong, .mode-picker strong { font-size:14px; }
.template-picker span, .mode-picker span { color:var(--muted); font-size:10px; line-height:1.4; }
.suggestion-transparency { display:flex; flex-wrap:wrap; gap:5px; }
.suggestion-transparency b, .suggestion-transparency i { padding:3px 6px; border-radius:999px; font-size:7px; font-style:normal; text-transform:uppercase; letter-spacing:.05em; }
.suggestion-transparency b { color:#24594c; background:#dbe5d8; }.suggestion-transparency i { color:#805d0c; background:#fff1bf; }
.activity-copy { position:relative; }.activity-status, .status-tag { display:inline-flex; width:fit-content; margin:0 0 5px 7px; padding:3px 7px; border-radius:999px; font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.activity-type + .activity-status { margin-left:6px; }.status-confirmed { color:#fff; background:#24704f; }.status-needs-booking { color:#603e00; background:#ffd977; }.status-optional { color:#34465f; background:#dce7f6; }.status-backup { color:#5e4566; background:#eadcf0; }.status-needs-verification { color:#7d351f; background:#f5d7cc; }.status-recommended { color:#24594c; background:#dbe5d8; }
.booking-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }.booking-cards article { padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:var(--shadow); }.booking-cards h3 { margin:8px 0 5px; font-size:16px; }.booking-cards p,.booking-cards small { color:var(--muted); font-size:10px; }
.during-trip-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:22px 0; }.during-trip-grid article { display:grid; grid-template-columns:38px 1fr; gap:10px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fff; }.during-trip-grid article>span { display:grid; width:36px; height:36px; place-items:center; border-radius:10px; background:var(--sage); font-size:19px; }.during-trip-grid strong { font-size:11px; }.during-trip-grid p { margin:4px 0 0; color:var(--muted); font-size:9px; line-height:1.4; }
.refine-panel { margin-top:24px; padding:18px; border:1px solid var(--line); border-radius:14px; background:#f0ebe0; }.refine-panel h3 { margin:2px 0 12px; }.refine-actions { display:flex; flex-wrap:wrap; gap:7px; }.refine-actions button,.ai-file-actions button,.export-action-grid button,.export-action-grid a { padding:8px 11px; border:1px solid #d2c9b7; border-radius:999px; color:var(--forest-dark); background:#fff; cursor:pointer; font-size:9px; font-weight:800; text-decoration:none; }.refine-actions button:hover,.ai-file-actions button:hover,.export-action-grid button:hover,.export-action-grid a:hover { color:#fff; border-color:var(--forest); background:var(--forest); }
.ai-file-panel .refine-panel { margin:0 0 22px; }
.refine-panel > div:first-child > p:last-child { margin:4px 0 14px; color:var(--muted); line-height:1.55; }
.refine-actions button.selected { color:#fff; border-color:var(--forest); background:var(--forest); box-shadow:0 3px 10px rgba(24,74,62,.18); }
.refine-actions button.selected::before { content:"✓ "; }
.refine-status { min-height:18px; margin:12px 0 0; color:var(--forest-dark); font-size:11px; font-weight:700; }
.ai-file-panel { display:grid; gap:14px; }.ai-file-actions,.export-action-grid { display:flex; flex-wrap:wrap; gap:8px; }.ai-file-panel pre { max-height:58vh; overflow:auto; margin:0; padding:22px; border-radius:14px; color:#d8f3e7; background:#10251f; font:11px/1.55 Consolas,monospace !important; white-space:pre-wrap; }
.ai-hero { background-image:linear-gradient(110deg,rgba(23,62,53,.9),rgba(40,52,83,.55)),var(--destination-banner); }
.app-nav { overflow-x:auto; justify-content:flex-start; scrollbar-width:thin; }.app-nav-button { flex:1 0 min(105px,13vw); }
.export-action-grid { margin:16px 0; }.export-action-grid>* { flex:1 1 180px; text-align:center; }
@media(max-width:780px){.template-picker,.mode-picker,.during-trip-grid{grid-template-columns:1fr}.app-nav-button{flex-basis:78px}.demo-showcase{margin-top:16px}}
.trip-app[data-template="executive"] .trip-app-views { background:#fff; }
.trip-app[data-template="executive"] .app-panel-body { max-width:1040px; margin:auto; }
.trip-app[data-template="executive"] .app-home-hero { min-height:240px; }
.trip-app[data-template="simple"] .app-home-hero { min-height:210px; }
.trip-app[data-template="simple"] .during-trip-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.trip-app[data-template="photo"] .photos-hero { min-height:260px; }

/* Version 2 mobile header and swipeable date navigation */
@media (max-width: 620px) {
  .trip-app-header { grid-template-columns:minmax(0,1fr) auto; min-height:56px; padding-inline:8px; column-gap:6px; }
  .trip-app-header .app-brand { min-width:0; gap:6px; font-size:13px; line-height:1; white-space:nowrap; }
  .trip-app-header .app-brand .brand-mark { flex:0 0 24px; width:24px; height:24px; font-size:12px; }
  .trip-app-header .app-brand > span:last-child { min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .trip-header-actions { min-width:0; gap:5px; }
  .trip-header-actions .export-button { min-width:0; min-height:32px; padding:6px 9px; font-size:9px; white-space:nowrap; }
  .report-day-bar { display:block; min-width:0; min-height:88px; padding:10px 0 8px; overflow:hidden; }
  .report-day-heading { display:none; }
  .report-day-bar #dayNav.day-strip { display:flex; width:100%; max-width:100%; height:70px; gap:8px; padding:2px 12px 8px; overflow-x:auto; overflow-y:hidden; flex-wrap:nowrap; scroll-snap-type:x proximity; scroll-padding-inline:12px; scrollbar-width:thin; touch-action:pan-x; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
  .report-day-bar #dayNav.day-strip::-webkit-scrollbar { display:block; height:3px; }
  .report-day-bar #dayNav.day-strip::-webkit-scrollbar-thumb { border-radius:99px; background:rgba(255,255,255,.52); }
  .report-day-bar .day-button { flex:0 0 118px; min-width:118px; min-height:58px; scroll-snap-align:start; }
}

/* Final animated compass-X branding and output list */
.brand-mark, .builder-brand > span { overflow:visible; padding:0; border:0; background:transparent !important; }
.brand-mark img, .builder-brand img { display:block; width:100%; height:100%; object-fit:contain; }
.builder-brand > span { width:38px; height:38px; }
.topbar .brand-mark { width:40px; height:45px; }
.trip-app-header .app-brand .brand-mark { flex:0 0 38px; width:38px; height:43px; }
.trip-header-actions .export-button.loading { display:inline-flex; align-items:center; gap:6px; }
.trip-header-actions .export-button.loading img { width:30px; height:34px; margin:-7px 0; }
@media(max-width:620px) {
  .trip-app-header .app-brand .brand-mark { flex-basis:24px; width:24px; height:27px; }
}

/* Final homepage brand lockup and airplane spacing */
.builder:not(.builder-wide) .builder-copy::after { content:"\2708\FE0F" !important; }
.builder:not(.builder-wide) .home-brand-lockup {
  display:inline-flex;
  width:fit-content;
  align-items:center;
  gap:11px;
  margin:0 0 17px;
  color:#fff;
  font-size:clamp(18px,1.7vw,25px);
  line-height:1;
  text-decoration:none;
}
.builder:not(.builder-wide) .home-brand-lockup > span {
  flex:0 0 58px;
  width:58px;
  height:58px;
}
.builder:not(.builder-wide) .home-brand-lockup strong { font-size:inherit; }
/* Adtona hero lockup: the full logo image (overrides the generic .builder-brand img sizing). */
.builder:not(.builder-wide) .home-brand-lockup .home-brand-logo { width:clamp(196px,44vw,300px); height:auto; }
.builder:not(.builder-wide) .demo-showcase {
  width:min(100%,460px);
  max-width:460px;
  margin-top:17px;
  padding:11px 14px;
  gap:4px;
}
.builder:not(.builder-wide) .demo-showcase strong { font-size:13px; }
.builder:not(.builder-wide) .demo-showcase span { font-size:9px; line-height:1.35; }
.builder:not(.builder-wide) .demo-showcase a { font-size:9px; }
.builder:not(.builder-wide) .import-callout { width:min(100%,460px); max-width:460px; margin-top:9px; padding:11px 14px; gap:4px; }
.builder:not(.builder-wide) .import-callout strong { font-size:13px; }
.builder:not(.builder-wide) .import-callout span { font-size:9px; line-height:1.35; }
.builder:not(.builder-wide) .import-callout .text-button { font-size:9px; }
@media(max-width:780px) {
  .builder:not(.builder-wide) .home-brand-lockup > span { flex-basis:48px; width:48px; height:48px; }
  .builder:not(.builder-wide) .home-brand-lockup { margin-bottom:13px; font-size:18px; }
  .builder:not(.builder-wide) .demo-showcase { width:min(100%,400px); max-width:400px; }
  .builder:not(.builder-wide) .import-callout { width:min(100%,400px); max-width:400px; }
}

/* Static output preview on the Trip Basics banner. */
.builder:not(.builder-wide) .home-showcase-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "example import"
    "deliverables deliverables";
  width: min(100%, 1320px);
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
}
.builder:not(.builder-wide) .home-showcase-row .demo-showcase,
.builder:not(.builder-wide) .home-showcase-row .import-callout {
  width: auto;
  max-width: none;
  min-height: 116px;
  margin-top: 0;
}
.builder:not(.builder-wide) .home-showcase-row .demo-showcase {
  grid-area: example;
  width: auto;
  justify-self: stretch;
}
.builder:not(.builder-wide) .home-showcase-row .import-callout {
  grid-area: import;
  align-self: stretch;
}
.home-deliverables-preview {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}
.builder:not(.builder-wide) .home-deliverables-preview {
  grid-area: deliverables;
}
.home-deliverables-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-deliverables-heading > span {
  color: #fff1bf;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-deliverables-heading > strong {
  color: white;
  font-size: 11px;
  text-align: right;
}
.home-deliverables-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
  gap: 6px;
}
.home-deliverable-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 7px;
  align-content: center;
  padding: 8px;
  overflow: visible;
  border: 1px solid rgba(36, 89, 76, .16);
  border-radius: 11px;
  color: #173e35;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(247, 239, 211, .92));
  box-shadow: 0 9px 22px rgba(8, 24, 39, .16);
  cursor: help;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.home-deliverable-card:hover,
.home-deliverable-card:focus,
.home-deliverable-card:focus-visible {
  z-index: 30;
  border-color: #d1a020;
  box-shadow: 0 14px 32px rgba(8, 24, 39, .24), 0 0 0 3px rgba(255, 214, 90, .28);
  transform: translateY(-2px);
}
.home-deliverable-card::after {
  position: absolute;
  z-index: 40;
  bottom: calc(100% + 9px);
  left: 50%;
  width: min(260px, calc(100vw - 36px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 214, 90, .44);
  border-radius: 10px;
  color: white;
  background: rgba(14, 36, 48, .97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  content: attr(data-description);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 7px) scale(.96);
  transform-origin: 50% 100%;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}
.home-deliverable-card:hover::after,
.home-deliverable-card:focus::after,
.home-deliverable-card:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
.home-deliverable-card:first-child::after {
  left: 0;
  transform: translate(0, 7px) scale(.96);
  transform-origin: 0 100%;
}
.home-deliverable-card:first-child:hover::after,
.home-deliverable-card:first-child:focus::after,
.home-deliverable-card:first-child:focus-visible::after {
  transform: translate(0, 0) scale(1);
}
.home-deliverable-card:last-child::after {
  right: 0;
  left: auto;
  transform: translate(0, 7px) scale(.96);
  transform-origin: 100% 100%;
}
.home-deliverable-card:last-child:hover::after,
.home-deliverable-card:last-child:focus::after,
.home-deliverable-card:last-child:focus-visible::after {
  transform: translate(0, 0) scale(1);
}
.home-deliverable-card > span {
  display: grid;
  width: 30px;
  height: 30px;
  grid-row: 1 / span 2;
  place-items: center;
  align-self: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #fff1bf, #dbe9e5);
  font-size: 15px;
}
.home-deliverable-card > strong {
  align-self: end;
  overflow: hidden;
  font-size: 8.5px;
  line-height: 1.12;
  text-overflow: ellipsis;
}
.home-deliverable-card > small {
  align-self: start;
  overflow: hidden;
  color: #65716c;
  font-size: 7px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .home-deliverable-card > strong { font-size: 9.5px; }
  .home-deliverable-card > small { font-size: 7.5px; }
}

@media (max-width: 900px) {
  .builder:not(.builder-wide) .home-showcase-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "example"
      "import"
      "deliverables";
    gap: 8px;
    margin-top: 14px;
  }
  .builder:not(.builder-wide) .home-showcase-row .demo-showcase,
  .builder:not(.builder-wide) .home-showcase-row .import-callout {
    width: 100%;
    max-width: none;
    min-height: 0;
  }
  .builder:not(.builder-wide) .home-deliverables-preview {
    width: 100%;
    padding: 10px;
  }
  .home-deliverables-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .home-deliverables-heading > strong {
    font-size: 10px;
    text-align: left;
  }
  .home-deliverables-cards {
    display: flex;
    overflow-x: auto;
    padding: 1px 2px 5px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .home-deliverable-card {
    flex: 0 0 154px;
    min-height: 66px;
    overflow: hidden;
    scroll-snap-align: start;
  }
  .home-deliverable-card::after,
  .home-deliverable-card:first-child::after,
  .home-deliverable-card:last-child::after {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    max-height: 0;
    padding: 0;
    border: 0;
    color: #59645f;
    background: transparent;
    box-shadow: none;
    font-size: 8px;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: max-height .2s ease, margin-top .2s ease, opacity .2s ease;
  }
  .home-deliverable-card:hover,
  .home-deliverable-card:focus,
  .home-deliverable-card:focus-visible {
    flex-basis: 260px;
    min-height: 108px;
    transform: none;
  }
  .home-deliverable-card:hover::after,
  .home-deliverable-card:focus::after,
  .home-deliverable-card:focus-visible::after,
  .home-deliverable-card:first-child:hover::after,
  .home-deliverable-card:first-child:focus::after,
  .home-deliverable-card:first-child:focus-visible::after,
  .home-deliverable-card:last-child:hover::after,
  .home-deliverable-card:last-child:focus::after,
  .home-deliverable-card:last-child:focus-visible::after {
    max-height: 74px;
    margin-top: 5px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* Step 4 uses compact one-row fields; users can still resize a field when
   entering longer booking or constraint details. */
.builder [data-form-step="4"] .style-question textarea {
  min-height: 40px;
  height: 40px;
  max-height: 120px;
  padding-block: 9px;
  resize: vertical;
}

/* Browser-local photo journal */
.photo-journal-panel { display:grid; gap:20px; }
.photo-manager { display:grid; grid-template-columns:minmax(220px,.8fr) minmax(360px,1.2fr); gap:22px; padding:20px; border:1px solid var(--line); border-radius:16px; background:#fffdf8; box-shadow:var(--shadow); }
.photo-manager h3 { margin:2px 0 7px; color:var(--ink); font-size:20px; }
.photo-manager p { margin:0; color:var(--muted); font-size:10px; line-height:1.5; }
.photo-manager-actions { display:grid; grid-template-columns:minmax(220px,420px); gap:9px; align-content:start; justify-content:end; }
.photo-upload-button,.photo-caption-field { display:flex; min-height:42px; align-items:center; border-radius:999px; font-size:10px; font-weight:800; }
.photo-upload-button { position:relative; justify-content:center; overflow:hidden; padding:9px 14px; border:1px solid var(--forest); color:#fff; background:var(--forest); cursor:pointer; text-align:center; }
.photo-upload-button:hover { color:#fff; border-color:var(--gold-deep); background:var(--gold-deep); }
.native-file-button { position:absolute; inset:0; z-index:1; width:100%; height:100%; margin:0; padding:0; opacity:.001; cursor:pointer; }
.photo-upload-button:focus-within { outline:3px solid #1c669c; outline-offset:3px; }
.photo-caption-field { gap:8px; padding:5px 12px; border:1px solid #d2c9b7; color:var(--forest-dark); background:#fff; }
.photo-caption-field span { flex:none; font-size:10px; font-weight:800; }
.photo-caption-field input { flex:1; min-width:0; padding:4px 0; border:0; outline:0; color:var(--ink); background:transparent; font:inherit; font-weight:500; }
.photo-bottom-upload { display:flex; justify-content:center; padding:18px 0 4px; }
.photo-bottom-upload[hidden] { display:none; }
.photo-bottom-upload .photo-upload-button,.photo-empty-upload { min-width:180px; }
.photo-empty-upload { width:max-content; margin:14px auto 0; }
.user-entry-manager { display:grid; grid-template-columns:minmax(220px,.72fr) minmax(360px,1.28fr); gap:22px; margin-top:20px; padding:20px; border:1px solid var(--line); border-radius:16px; background:#fffdf8; box-shadow:var(--shadow); }
.user-entry-manager h3 { margin:2px 0 7px; color:var(--ink); font-size:20px; }
.user-entry-manager p { margin:0; color:var(--muted); font-size:10px; line-height:1.5; }
.user-entry-form { display:grid; grid-template-columns:minmax(180px,1fr) minmax(145px,.45fr); gap:9px; }
.user-entry-field { display:grid; min-width:0; gap:5px; color:var(--forest-dark); font-size:9px; font-weight:800; letter-spacing:.02em; }
.user-entry-field > span { padding-left:2px; }
.user-entry-details { grid-column:1/-1; }
.user-entry-form input,.user-entry-form textarea { box-sizing:border-box; width:100%; padding:10px 12px; border:1px solid #d8d2c5; border-radius:12px; color:var(--ink); background:#fff; font:inherit; font-size:10px; }
.user-entry-form textarea { grid-column:1/-1; resize:vertical; }
.user-entry-form button { grid-column:1/-1; justify-self:end; min-height:40px; padding:9px 18px; border:1px solid var(--forest); border-radius:999px; color:#fff; background:var(--forest); cursor:pointer; font:inherit; font-size:10px; font-weight:800; }
.user-entry-form button:hover { border-color:var(--gold-deep); background:var(--gold-deep); }
.user-entry-status { grid-column:1/-1; min-height:1.3em; color:var(--forest) !important; font-weight:700; }
.user-entry-status.error { color:#9b382c !important; }
.user-saved-card-list { display:grid; gap:12px; }
.user-saved-card { width:100%; box-sizing:border-box; padding:18px 20px; border:1px solid var(--line); border-radius:15px; background:#fff; box-shadow:var(--shadow); }
.user-saved-card h4 { margin:9px 0 5px; color:var(--ink); font-size:17px; }
.user-saved-card p { margin:0 0 8px; color:var(--muted); font-size:11px; line-height:1.55; white-space:pre-wrap; }
.user-saved-card small { display:block; margin-bottom:8px; color:var(--forest); font-size:9px; font-weight:800; }
.photo-manager-note { grid-column:1/-1; min-height:1.3em; color:var(--forest) !important; font-weight:700; }
.photo-manager-note.error { color:#9b382c !important; }
.photo-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.photo-day-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; padding:4px 2px 0; }
.photo-day-heading h3 { margin:2px 0 0; color:var(--ink); font-size:22px; }
.photo-day-heading > span { padding:7px 11px; border-radius:999px; color:var(--forest-dark); background:var(--sage); font-size:10px; font-weight:800; }
.photo-day-map { overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:var(--shadow); }
.photo-day-map-head { display:flex; align-items:start; justify-content:space-between; gap:16px; padding:17px 18px; }
.photo-day-map-title { color:var(--ink); font-size:16px; font-weight:800; }
.photo-day-map-sub { margin-top:4px; color:var(--muted); font-size:10px; line-height:1.45; }
.photo-day-map-count { flex:none; padding:7px 10px; border-radius:999px; color:#fff; background:var(--forest); font-size:10px; font-weight:800; }
.photo-map-frame { position:relative; min-height:330px; background:#dfe7e3; }
.photo-map-frame iframe { display:block; width:100%; height:330px; border:0; }
.photo-map-open { position:absolute; right:12px; bottom:12px; padding:8px 12px; border-radius:999px; color:#fff; background:rgba(15,42,34,.86); font-size:10px; font-weight:800; text-decoration:none; backdrop-filter:blur(6px); }
.photo-map-legend { display:flex; gap:8px; overflow-x:auto; padding:12px 14px 15px; scrollbar-width:thin; }
.photo-map-place { display:grid; grid-template-columns:auto 1fr; align-items:center; flex:0 0 auto; gap:8px; max-width:260px; padding:8px 11px; border:1px solid var(--line); border-radius:999px; color:var(--forest-dark); background:#fffdf8; cursor:pointer; font-size:9px; text-decoration:none; }
.photo-map-place b { display:grid; width:24px; height:24px; place-items:center; border-radius:50%; color:#fff; background:var(--gold-deep); }
.photo-map-empty { padding:28px; color:var(--muted); text-align:center; }
.photo-map-empty strong { display:block; margin-bottom:5px; color:var(--ink); font-size:14px; }
.photo-card { position:relative; overflow:hidden; min-height:280px; border-radius:16px; background:#dfe7e3; box-shadow:var(--shadow); }
.photo-card img { display:block; width:100%; height:100%; min-height:280px; object-fit:cover; }
.photo-missing-image { display:grid; min-height:280px; place-items:center; padding:24px; color:#fff; background:linear-gradient(135deg,#52655e,#17221f); font-size:12px; font-weight:800; text-align:center; }
.photo-card figcaption { position:absolute; right:0; bottom:0; left:0; display:grid; gap:3px; padding:36px 14px 14px; color:#fff; background:linear-gradient(transparent,rgba(8,20,17,.88)); }
.photo-card figcaption strong { font-size:13px; }
.photo-card figcaption span { color:rgba(255,255,255,.78); font-size:9px; }
.photo-remove-button { position:absolute; top:10px; right:10px; z-index:2; width:32px; height:32px; border:0; border-radius:50%; color:#fff; background:rgba(11,25,21,.72); cursor:pointer; font-size:18px; }
.photo-remove-button:hover { background:#9b382c; }
.photo-location-button { position:absolute; top:10px; left:10px; z-index:2; padding:7px 10px; border:0; border-radius:999px; color:#fff; background:rgba(11,25,21,.72); cursor:pointer; font-size:9px; font-weight:800; }
.photo-location-button:hover { background:var(--gold-deep); }
.photo-card.photo-load-error::after { content:"Image link could not be displayed"; position:absolute; inset:0; display:grid; place-items:center; padding:24px; color:#fff; background:#52655e; font-size:11px; font-weight:700; text-align:center; }
.photo-gallery:not(:empty) + .empty-section { display:none; }
@media(max-width:760px){.photo-manager{grid-template-columns:1fr}.photo-manager-actions{grid-template-columns:1fr}.photo-card,.photo-card img,.photo-missing-image{min-height:230px}.photo-map-frame,.photo-map-frame iframe{min-height:260px;height:260px}.photo-day-map-head{padding:14px}.photo-day-heading{align-items:start}.photo-day-heading h3{font-size:18px}}
@media(max-width:760px){.user-entry-manager{grid-template-columns:1fr}.user-entry-form{grid-template-columns:1fr}.user-entry-details,.user-entry-form textarea,.user-entry-form button{grid-column:1}.user-entry-form button{width:100%;justify-self:stretch}}

/* Prominent generated-trip home banner */
.app-home-hero { min-height:410px; padding-top:58px; padding-bottom:52px; }
.app-home-hero .eyebrow { margin-bottom:11px; font-size:13px; letter-spacing:.17em; }
.app-home-hero h2 { max-width:900px; font-size:clamp(56px,6.7vw,84px); line-height:.94; }
.app-home-hero > #resultDates { margin-top:17px; color:rgba(255,255,255,.92); font-size:18px; font-weight:700; }
.app-home-hero .trip-stats { gap:10px; margin-top:22px; }
.app-home-hero .trip-stat { padding:9px 14px; background:rgba(255,255,255,.18); font-size:12px; font-weight:700; backdrop-filter:blur(7px); }
.hero-export-button {
  position:relative;
  z-index:2;
  display:inline-flex;
  width:fit-content;
  min-height:46px;
  align-items:center;
  justify-content:center;
  margin-top:22px;
  padding:11px 19px;
  border:1px solid rgba(255,255,255,.7);
  border-radius:999px;
  color:#17231f;
  background:#f5c84b;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
  transition:transform .2s ease,background .2s ease;
}
.hero-export-button:hover { background:#ffe17c; transform:translateY(-2px); }
@media(max-width:620px) {
  .app-home-hero { min-height:350px; padding:40px 20px 34px; }
  .app-home-hero .eyebrow { font-size:10px; }
  .app-home-hero h2 { font-size:clamp(46px,14vw,62px); }
  .app-home-hero > #resultDates { margin-top:13px; font-size:14px; }
  .app-home-hero .trip-stats { gap:6px; margin-top:16px; }
  .app-home-hero .trip-stat { padding:7px 10px; font-size:9px; }
  .hero-export-button { min-height:42px; margin-top:17px; padding:9px 15px; font-size:10px; }
}

/* Known-destination autocomplete */
.destination-help { display:block; margin-top:7px; color:var(--muted); font-size:9px; line-height:1.4; }
.destination-mode-badge { display:inline-flex; align-items:center; max-width:100%; margin:7px 0 0; padding:6px 9px; border:1px solid rgba(36,89,76,.14); border-radius:999px; color:var(--forest-dark); background:rgba(219,229,216,.55); font-size:9px; font-weight:800; line-height:1.25; }
.destination-mode-badge[hidden] { display:none; }
.destination-mode-badge.catalog { border-color:rgba(36,89,76,.2); background:rgba(219,229,216,.75); }
.destination-mode-badge.dynamic { border-color:rgba(49,101,145,.24); color:#244f66; background:rgba(219,235,245,.82); }
.destination-mode-badge.starter { border-color:rgba(138,101,0,.2); color:#6f560f; background:rgba(255,247,220,.78); }
.destination-error { min-height:15px; margin:5px 0 0; color:#76570b; font-size:9px; font-weight:700; }
#destination:invalid:not(:placeholder-shown) { border-color:#bb5b50; box-shadow:0 0 0 3px rgba(187,91,80,.1); }
.starter-suggestion-note { margin:7px 0 0; padding:8px 10px; border:1px solid rgba(138,101,0,.18); border-radius:9px; color:#6f560f; background:rgba(255,247,220,.76); font-size:10px; font-weight:700; line-height:1.35; }
.starter-suggestion-note[hidden] { display:none; }
.suggestion-retry-button { margin-left:4px; padding:0; border:0; background:none; color:#244f66; font:inherit; font-weight:800; text-decoration:underline; cursor:pointer; }
.suggestion-retry-button:hover, .suggestion-retry-button:focus-visible { color:#123447; }
.suggestion-board-loading { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:48px 20px; border:1px solid rgba(49,101,145,.18); border-radius:14px; background:rgba(219,235,245,.4); color:#244f66; text-align:center; }
.suggestion-board-loading-spinner { display:inline-block; font-size:22px; animation:suggestionLoadingSpin 1.1s linear infinite; }
.suggestion-board-loading p { margin:0; font-size:13px; font-weight:700; }
@keyframes suggestionLoadingSpin { to { transform:rotate(360deg); } }
.research-mode-notice { width:min(100%,430px); margin:0 0 18px auto; padding:12px 14px; border:1px solid #dfbd62; border-radius:12px; background:#fff5d8; box-shadow:0 8px 22px rgba(74,54,6,.08); }
.research-mode-notice[hidden] { display:none; }
.research-mode-notice h3 { margin:2px 0 5px; color:#24272a; font-size:16px; }
.research-mode-notice > p:not(.eyebrow) { margin:0; color:#565149; font-size:10px; line-height:1.45; }
@media(max-width:620px) { .research-mode-notice { width:100%; margin-right:0; } }

.source-credit {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 7px;
  color: #5c6f77;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.source-credit:hover {
  color: var(--forest);
  text-decoration: underline;
}
.recommendation-card .source-credit,
.collection-card .source-credit,
.activity-copy .source-credit {
  display: inline-flex;
  margin-top: 8px;
  font-size: 9px;
}

/* Trip-home overview: itinerary beside weather */
.home-overview-grid {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(330px,.85fr);
  gap:14px;
  align-items:stretch;
  padding:16px clamp(16px,3vw,38px);
  background:linear-gradient(180deg,#e9e3d6 0%,var(--panel) 100%);
}
.home-overview-grid .app-home-hero {
  min-height:340px;
  height:100%;
  padding:38px clamp(26px,4vw,52px) 34px;
  border-radius:14px;
}
.home-overview-grid .app-home-hero h2 { font-size:clamp(50px,5.5vw,74px); }
.home-overview-grid .app-home-hero > #resultDates { margin-top:13px; font-size:16px; }
.home-overview-grid .app-home-hero .trip-stats { margin-top:17px; }
.home-overview-grid .hero-export-button { margin-top:17px; }
.home-overview-grid .home-weather-wrap { width:auto; height:100%; padding:0; background:transparent; }
.home-overview-grid .home-weather-wrap .trip-weather-card {
  display:flex;
  width:100%;
  height:100%;
  min-height:340px;
  flex-direction:column;
  margin:0;
  padding:22px 20px 17px;
}
.home-overview-grid .weather-summary { margin-bottom:10px; font-size:10px; }
.home-overview-grid .weather-metrics-row { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:auto; }
.home-overview-grid .weather-metrics-row > span { padding:9px 8px; }
.home-overview-grid .weather-metrics-row > span:nth-child(odd) { border-right:1px solid rgba(255,255,255,.17); }
.home-overview-grid .weather-metrics-row > span:nth-child(even) { border-right:0; }
.home-overview-grid .weather-metrics-row > span:nth-child(-n+4) { border-bottom:1px solid rgba(255,255,255,.17); }
@media(max-width:980px) {
  .home-overview-grid { grid-template-columns:1fr; }
  .home-overview-grid .app-home-hero { min-height:320px; }
  .home-overview-grid .home-weather-wrap .trip-weather-card { min-height:0; }
  .home-overview-grid .weather-metrics-row { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:620px) {
  .home-overview-grid { gap:10px; padding:10px; }
  .home-overview-grid .app-home-hero { min-height:300px; padding:31px 20px 27px; }
  .home-overview-grid .app-home-hero h2 { font-size:clamp(42px,13vw,56px); }
  .home-overview-grid .home-weather-wrap .trip-weather-card { padding:20px 16px 16px; }
  .home-overview-grid .weather-metrics-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Glass weather overlays for Home and Itinerary */
.home-overview-grid,
.itinerary-overview-grid {
  position:relative;
  display:block;
  padding:14px clamp(14px,3vw,38px);
  background:linear-gradient(180deg,#e9e3d6 0%,var(--panel) 100%);
}
.home-overview-grid .app-home-hero {
  min-height:330px;
  padding:38px clamp(390px,38vw,510px) 34px clamp(26px,4vw,52px);
}
.home-overview-grid .home-weather-wrap,
.itinerary-weather-wrap {
  position:absolute;
  z-index:4;
  top:30px;
  right:clamp(28px,4.5vw,70px);
  width:min(34vw,410px);
  height:auto;
  padding:0;
  background:transparent;
}
.home-overview-grid .home-weather-wrap .trip-weather-card,
.itinerary-weather-wrap .trip-weather-card {
  display:flex;
  width:100%;
  min-height:0;
  height:auto;
  flex-direction:column;
  margin:0;
  padding:13px 16px 10px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(11,42,60,.68),rgba(24,81,91,.48));
  box-shadow:0 14px 30px rgba(6,24,34,.22);
  backdrop-filter:blur(12px) saturate(1.15);
}
.home-overview-grid .weather-location,
.itinerary-weather-wrap .weather-location { font-size:14px; }
.home-overview-grid .weather-main,
.itinerary-weather-wrap .weather-main { margin-top:5px; }
.home-overview-grid .weather-icon,
.itinerary-weather-wrap .weather-icon { font-size:26px; }
.home-overview-grid .weather-main strong,
.itinerary-weather-wrap .weather-main strong { font-size:26px; }
.home-overview-grid .weather-summary,
.itinerary-weather-wrap .weather-summary { margin:4px 0 6px; font-size:9px; line-height:1.35; }
.home-overview-grid .weather-metrics-row,
.itinerary-weather-wrap .weather-metrics-row { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin-top:0; }
.home-overview-grid .weather-metrics-row > span,
.itinerary-weather-wrap .weather-metrics-row > span { padding:5px 5px; }
.home-overview-grid .weather-metrics-row small,
.itinerary-weather-wrap .weather-metrics-row small { font-size:6px; }
.home-overview-grid .weather-metrics-row strong,
.itinerary-weather-wrap .weather-metrics-row strong { font-size:8px; }
.home-overview-grid .weather-disclaimer,
.itinerary-weather-wrap .weather-disclaimer { margin-top:4px; font-size:6px; }
/* The golden-reference report sizing (`.trip-app .weather-*`) must not enlarge the
   compact banner weather cards — at desktop widths each card is absolutely placed
   inside a short hero, so the report-size type wraps tall and spills below the
   banner. On wide screens the Home hero also collapses to its min-height (its title
   fits on one line), so the Home card overflowed too. These 3-class rules outrank the
   2-class golden rules and restore the intended compact size on both banners. */
@media(min-width:901px) {
  .trip-app .home-weather-wrap .weather-location,
  .trip-app .itinerary-weather-wrap .weather-location { font-size:15px; }
  .trip-app .home-weather-wrap .weather-summary,
  .trip-app .itinerary-weather-wrap .weather-summary { margin:4px 0 6px; font-size:10px; line-height:1.35; }
  .trip-app .home-weather-wrap .weather-metrics-row small,
  .trip-app .itinerary-weather-wrap .weather-metrics-row small { font-size:8px; }
  .trip-app .home-weather-wrap .weather-metrics-row strong,
  .trip-app .itinerary-weather-wrap .weather-metrics-row strong { font-size:10px; }
  .trip-app .home-weather-wrap .weather-disclaimer,
  .trip-app .itinerary-weather-wrap .weather-disclaimer { margin-top:4px; font-size:7px; }
}
.itinerary-day-hero {
  display:block;
  min-height:300px;
  padding:40px clamp(390px,38vw,510px) 34px clamp(26px,4vw,52px);
  border-radius:14px;
  background-image:linear-gradient(115deg,rgba(14,35,31,.9),rgba(20,51,72,.42)),var(--destination-banner);
  background-position:center;
  background-size:cover;
}
.itinerary-day-hero > div { position:relative; z-index:2; }
.itinerary-day-hero .itinerary-hero-date { margin:7px 0 5px; color:rgba(255,255,255,.9); font-size:15px; font-weight:800; }
.itinerary-day-hero h2 { max-width:720px; margin:0; color:#fff; font-size:clamp(34px,4vw,52px); line-height:1.02; }
.itinerary-print-button {
  position:relative;
  z-index:5;
  display:inline-flex;
  width:fit-content;
  min-height:46px;
  align-items:center;
  justify-content:center;
  margin-top:20px;
  padding:11px 19px;
  border:1px solid rgba(255,255,255,.7);
  border-radius:999px;
  color:#17231f;
  background:#f5c84b;
  font-size:12px;
  font-weight:800;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}
.itinerary-print-button:hover { color:#17231f; background:#ffe17c; transform:translateY(-2px); }
@media(max-width:900px) {
  .home-overview-grid .app-home-hero,
  .itinerary-day-hero { min-height:500px; padding:32px 24px 235px; }
  .home-overview-grid .home-weather-wrap,
  .itinerary-weather-wrap { top:auto; right:26px; bottom:28px; left:26px; width:auto; }
}
@media(max-width:620px) {
  .home-overview-grid,
  .itinerary-overview-grid { padding:10px; }
  .home-overview-grid .app-home-hero,
  .itinerary-day-hero { min-height:500px; padding:28px 18px 230px; }
  .home-overview-grid .home-weather-wrap,
  .itinerary-weather-wrap { right:20px; bottom:20px; left:20px; }
  .itinerary-day-hero h2 { font-size:34px; }
  .itinerary-print-button { min-height:42px; margin-top:15px; padding:9px 15px; font-size:10px; }
  .home-overview-grid .weather-summary,
  .itinerary-weather-wrap .weather-summary,
  .home-overview-grid .weather-disclaimer,
  .itinerary-weather-wrap .weather-disclaimer { display:none; }
}
/* On phones the weather card is absolutely pinned to the bottom of the hero.
   When the research notice is present it flows above that pinned card, so
   reserve extra bottom space only in that case to prevent the two overlapping. */
@media(max-width:900px) {
  .home-overview-grid .app-home-hero:has(#researchModeNotice:not([hidden])) { padding-bottom:310px; }
}

/* Printer-friendly selected-day itinerary */
@media print {
  @page { margin:12mm; }
  html,body,body.trip-mode,body.trip-mode .page-shell,body.trip-mode .result,.trip-app,.trip-app-views { height:auto !important; min-height:0 !important; overflow:visible !important; background:#fff !important; }
  .trip-app-header,.report-day-bar,.app-nav,.app-panel:not([data-panel="itinerary"]),.itinerary-print-button { display:none !important; }
  .app-panel[data-panel="itinerary"] { display:block !important; height:auto !important; overflow:visible !important; }
  .itinerary-overview-grid { position:static !important; display:block !important; padding:0 0 16px; background:#fff !important; }
  .itinerary-day-hero { min-height:0 !important; padding:18px 20px !important; border:1px solid #bbb; border-radius:8px; color:#111 !important; background:#f4f1e8 !important; box-shadow:none !important; }
  .itinerary-day-hero .eyebrow,.itinerary-day-hero .itinerary-hero-date,.itinerary-day-hero h2 { color:#111 !important; text-shadow:none !important; }
  .itinerary-day-hero h2 { font-size:28px !important; }
  .itinerary-weather-wrap { position:static !important; display:block !important; width:auto !important; height:auto !important; margin-top:10px !important; }
  .itinerary-weather-wrap .trip-weather-card { position:static !important; display:block !important; width:100% !important; min-height:0 !important; height:auto !important; padding:13px !important; border:1px solid #bbb !important; color:#111 !important; background:#f7f7f7 !important; box-shadow:none !important; backdrop-filter:none !important; }
  .itinerary-weather-wrap .trip-weather-bg { display:none; }
  .itinerary-weather-wrap .weather-kicker,.itinerary-weather-wrap .weather-date,.itinerary-weather-wrap .weather-condition,.itinerary-weather-wrap .weather-summary,.itinerary-weather-wrap .weather-disclaimer,.itinerary-weather-wrap .weather-metrics-row small { color:#444 !important; }
  .itinerary-weather-wrap .weather-metrics-row { grid-template-columns:repeat(2,minmax(0,1fr)); border-color:#bbb; }
  .itinerary-weather-wrap .weather-metrics-row > span { border-color:#ccc !important; }
  .itinerary-panel.app-panel-body { max-width:none !important; padding:0 !important; }
  .route-flow-widget { display:block !important; height:auto !important; overflow:visible !important; break-inside:auto !important; page-break-inside:auto !important; box-shadow:none !important; }
  .route-flow-list { display:block !important; }
  .route-flow-stop { display:grid !important; grid-template-columns:34px minmax(0,1fr) !important; width:100% !important; margin:0 0 7px !important; break-inside:avoid !important; page-break-inside:avoid !important; }
  .day-content { display:block !important; height:auto !important; overflow:visible !important; }
  .activity-card { position:relative !important; display:grid !important; grid-template-columns:58px 110px minmax(0,1fr) !important; width:100% !important; height:auto !important; min-height:0 !important; margin:0 0 10px !important; overflow:visible !important; break-inside:avoid !important; page-break-inside:avoid !important; box-shadow:none !important; transform:none !important; }
  .activity-photo { width:110px !important; height:78px !important; object-fit:cover; }
  .activity-copy,.activity-copy p,.activity-copy a { min-width:0 !important; overflow-wrap:anywhere; }
  .app-panel.active,.activity-card,.route-flow-widget { animation:none !important; }
  .activity-menu { display:none !important; }
}
/* v2 — Import updated plan (round-trip AI workflow) */
.import-callout { display:grid; gap:6px; max-width:620px; margin-top:14px; padding:16px 18px; border:1px dashed rgba(255,255,255,.4); border-radius:14px; background:rgba(255,255,255,.08); backdrop-filter:blur(8px); }
.import-callout strong { color:#fff; font-size:15px; }
.import-callout span { color:rgba(255,255,255,.78); font-size:11px; line-height:1.45; }
.import-callout .text-button { justify-self:start; padding:0; color:#fff; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.import-dialog textarea { width:100%; box-sizing:border-box; margin-top:10px; padding:12px; border-radius:12px; border:1px solid rgba(31,68,100,.3); font:inherit; font-size:.85rem; resize:vertical; min-height:160px; }
.import-dialog code { font-size:.85em; }
.import-precheck { margin-top:8px; color:#68716d; font-size:.78rem; font-weight:700; text-align:left; }
.import-precheck.detected { color:#236b4c; }
.import-precheck.truncated { color:#9b382c; }
.import-actions { margin-top:14px; display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; align-items:center; }
.import-file-label { position:relative; display:inline-flex; overflow:hidden; align-items:center; cursor:pointer; }
.import-file-label:focus-within { outline:3px solid #1c669c; outline-offset:3px; }
.import-error { margin-top:12px; padding:12px 14px; border-radius:12px; background:#fdecec; border:1px solid #f3b6b6; color:#8f1f1f; font-size:.85rem; text-align:left; }
.import-error ul { margin:6px 0 0; padding-left:18px; }
.import-error li { margin:2px 0; }
.ai-file-actions [data-open-import] { font-weight:700; }

/* Bottom trip navigation: one row on desktop, swipeable oversized row on mobile. */
.app-nav {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  justify-content: stretch;
  gap: 2px;
  overflow-x: hidden;
  padding-inline: clamp(6px, 2vw, 36px);
}
.app-nav-button {
  width: 100%;
  min-width: 0;
  flex: none;
  padding: 6px 4px;
}
.app-nav-button > span {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  flex: 0 0 54px;
  font-size: 25px;
}
.app-nav-button small {
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}
@media(max-width:760px) {
  .app-nav {
    display: flex;
    flex: 0 0 auto;
    min-height: 104px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 9px 18vw max(11px, env(safe-area-inset-bottom)) 10px;
    scrollbar-width: thin;
  }
  .app-nav-button {
    flex: 0 0 20vw;
    width: 20vw;
    min-width: 74px;
    max-width: 92px;
    min-height: 84px;
    gap: 5px;
    padding: 5px 4px;
    scroll-snap-align: start;
  }
  .app-nav-button > span {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    flex-basis: 58px;
    font-size: 27px;
  }
  .app-nav-button small {
    font-size: 10px;
    letter-spacing: 0;
  }
}

/* Viewport-contained Adventure step: the recommendations scroll, the workflow controls do not. */
.builder.builder-wide.builder-adventure {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.builder.builder-wide .trip-form[data-current-step="2"] {
  --adventure-board-height: clamp(280px, 56dvh, 520px);
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: clamp(9px, 1.5dvh, 16px) clamp(18px, 4vw, 58px);
  overflow: hidden;
}
.builder.builder-wide .trip-form[data-current-step="2"] .step-row {
  margin: 0;
  padding: 0 0 6px;
  font-size: 11px;
  line-height: 1.2;
}
.builder.builder-wide .trip-form[data-current-step="2"] .form-progress {
  height: 52px;
  margin: 5px 0 7px;
  gap: 4px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .form-progress span {
  height: 52px;
  min-height: 0;
  gap: 6px;
  padding-block: 6px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .form-progress span b {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  font-size: 8px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .form-progress span small {
  gap: 2px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .form-progress span small strong {
  font-size: clamp(8px, .7vw, 10px);
}
.builder.builder-wide .trip-form[data-current-step="2"] .form-progress span small em {
  font-size: clamp(6px, .55vw, 8px);
}
.builder.builder-wide .trip-form[data-current-step="2"] .security-note {
  min-height: 0;
  gap: 8px;
  margin: 0 0 7px;
  padding: 6px 9px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .security-note > span {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .security-note > div {
  gap: 1px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .security-note p {
  font-size: 8px;
  line-height: 1.25;
}
.builder.builder-wide .trip-form[data-current-step="2"] [data-form-step="2"].active {
  display: grid;
  grid-template-rows: auto auto auto auto auto auto;
  min-height: 0;
  align-content: start;
  overflow: hidden;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro {
  min-height: 0;
  padding: 3px 0 5px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro .eyebrow {
  margin-bottom: 2px;
  font-size: 8px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro h2 {
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.05;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro > p:not(.eyebrow) {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar {
  min-height: 0;
  gap: 10px;
  margin: 3px 0 6px;
  padding: 6px 9px;
  border-radius: 9px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar strong,
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar span {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar button {
  min-height: 30px;
  padding: 5px 11px;
  font-size: 9px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-board {
  display: block;
  width: 100%;
  height: var(--adventure-board-height);
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group[hidden] {
  display: none;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group-heading {
  min-height: 25px;
  margin: 0 0 4px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group-heading > span {
  width: 24px;
  height: 24px;
  font-size: 13px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group-heading h3 {
  font-size: 11px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group-heading small {
  font-size: 7px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  gap: 8px;
  align-content: start;
  padding: 1px 7px 7px 1px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding: 5px;
  scrollbar-color: var(--gold) #eee9de;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-list:focus-visible {
  outline: 3px solid #1c669c;
  outline-offset: -3px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-list .suggestion-bubble {
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 104px;
  gap: 0;
  border-radius: 10px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-image {
  width: 82px;
  min-height: 80px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-body {
  gap: 3px;
  padding: 7px 9px 5px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-top {
  gap: 5px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-top strong {
  font-size: 11px;
  line-height: 1.15;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-check {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-meta {
  overflow: hidden;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-detail {
  display: -webkit-box;
  overflow: hidden;
  font-size: 8px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-links {
  gap: 3px 8px;
  padding: 0 8px 6px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-links a {
  max-width: 100%;
  overflow: hidden;
  font-size: 7px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.builder.builder-wide .trip-form[data-current-step="2"] .selection-summary {
  min-height: 25px;
  margin: 5px 0 0;
  padding: 5px 9px;
  font-size: 9px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .preference-actions {
  margin: 5px 0 2px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .preference-actions .icon-nav-button {
  min-height: 34px;
  padding: 5px 12px;
  font-size: 9px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .compact-preference-error {
  min-height: 11px;
  margin: 0;
  font-size: 8px;
  line-height: 1.2;
}

@media (min-width: 1500px) {
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .builder.builder-wide .trip-form[data-current-step="2"] {
    --adventure-board-height: clamp(300px, 60dvh, 520px);
    min-height: 0;
    padding: 7px 10px 9px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .step-row {
    padding-bottom: 4px;
    font-size: 10px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress {
    height: 46px;
    margin: 4px 0 5px;
    gap: 2px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress span {
    height: 46px;
    gap: 2px;
    padding: 5px 7px 5px 10px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress span:first-child {
    padding-left: 5px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress span b {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    font-size: 7px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress span small strong {
    font-size: clamp(6px, 1.65vw, 8px);
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress span small em {
    font-size: clamp(5px, 1.3vw, 7px);
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .security-note {
    margin-bottom: 5px;
    padding: 5px 7px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .security-note .privacy-disclosure {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro {
    padding: 2px 0 4px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro h2 {
    font-size: 18px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro > p:not(.eyebrow) {
    font-size: 8px;
    -webkit-line-clamp: 1;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar {
    margin: 2px 0 5px;
    padding: 5px 7px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar span {
    display: none;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar button {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 8px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-right: 5px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-list .suggestion-bubble {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 88px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-image {
    width: 70px;
    min-height: 68px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-body {
    padding: 6px 8px 4px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-top strong {
    font-size: 10px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-detail {
    font-size: 7px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-links {
    padding: 0 7px 5px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .selection-summary {
    margin-top: 4px;
    padding-block: 4px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .preference-actions {
    margin-top: 4px;
  }
}

@media (max-height: 620px) {
  .builder.builder-wide .trip-form[data-current-step="2"] {
    --adventure-board-height: clamp(112px, 27dvh, 168px);
    padding-block: 5px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress span small em,
  .builder.builder-wide .trip-form[data-current-step="2"] .security-note .privacy-disclosure,
  .builder.builder-wide .trip-form[data-current-step="2"] #adventureStepCopy {
    display: none;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .security-note {
    padding-block: 4px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro {
    padding-block: 1px 3px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar {
    margin-bottom: 3px;
    padding-block: 4px;
  }
}

/* Wide, shallow browser windows (including desktop zoom) previously allowed the
   Adventure grid to shrink the title and toolbar tracks below their contents.
   Reserve real rows for those controls and give only the recommendation list
   the remaining flexible height. */
@media (min-width: 681px) and (max-height: 620px) {
  .builder.builder-wide .trip-form[data-current-step="2"] {
    --adventure-board-height: auto;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .step-row {
    padding-bottom: 3px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress,
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress span {
    height: 44px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress {
    margin-block: 3px 5px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .security-note {
    margin-bottom: 4px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] [data-form-step="2"].active {
    height: 100%;
    grid-template-rows: auto auto minmax(70px, 1fr) auto auto auto;
    align-content: stretch;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro {
    min-height: 35px;
    overflow: visible;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro h2 {
    font-size: clamp(18px, 1.8vw, 22px);
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar {
    min-height: 32px;
    margin-top: 2px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-board {
    height: auto;
    min-height: 70px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .compact-preference-error:empty {
    display: none;
  }
}

.activity-time small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .78em;
  font-weight: 600;
  line-height: 1.15;
}

/* Recommendation cards keep selection and outbound research links as separate controls. */
.suggestion-card-list .suggestion-bubble { cursor: default; }
.suggestion-select-button {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.suggestion-card-links {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 0 15px 12px;
}
.suggestion-select-button:focus-visible {
  outline: 3px solid #1f5f74;
  outline-offset: -3px;
}
.collection-open-button {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 8px;
  padding: 8px 13px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  color: var(--forest-dark);
  background: #fff7d8;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  cursor: pointer;
}

/* Consistent, high-contrast keyboard focus without changing pointer interactions. */
:where(a, button, select, textarea, input:not(.native-file-button), [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid #1c669c;
  outline-offset: 3px;
}
.native-file-button:focus-visible { outline: 0; }
@media(max-width:390px) {
  .app-nav {
    min-height: 98px;
    gap: 7px;
    padding-left: 9px;
    padding-right: 18vw;
  }
  .app-nav-button {
    flex-basis: 21vw;
    width: 21vw;
    min-width: 72px;
    min-height: 80px;
  }
  .app-nav-button > span {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    flex-basis: 54px;
    font-size: 26px;
  }
  .app-nav-button small {
    font-size: 9.5px;
  }
}

/* Homepage brand phrase: visually connects PLAN TO GUIDE to PlanToGuide. */
.builder #builderTitle .hero-brand-word {
  position: relative;
  display: inline-block;
  color: #ffd65a;
  font: 850 .88em/1 "DM Sans", sans-serif;
  letter-spacing: .035em;
  text-shadow: 0 4px 18px rgba(0,0,0,.2);
  transform-origin: 50% 80%;
  animation: heroBrandWordIn .72s cubic-bezier(.2,.85,.24,1.2) both;
}
.builder #builderTitle .hero-brand-plan { animation-delay: .22s; }
.builder #builderTitle .hero-brand-to {
  color: #fff3b5;
  animation-delay: .5s;
}
.builder #builderTitle .hero-brand-guide {
  color: #83dcff;
  animation-delay: .78s;
}
.builder #builderTitle .hero-brand-guide::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.08em;
  left: 0;
  height: .07em;
  border-radius: 999px;
  background: linear-gradient(90deg,#ffd65a,#83dcff);
  transform: scaleX(0);
  transform-origin: left;
  animation: heroBrandUnderline .65s ease-out 1.35s forwards;
}
@keyframes heroBrandWordIn {
  0% { opacity: 0; transform: translateY(.32em) scale(.84) rotate(-3deg); filter: blur(4px); }
  68% { opacity: 1; transform: translateY(-.04em) scale(1.07) rotate(1deg); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes heroBrandUnderline { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .builder #builderTitle .hero-brand-word,
  .builder #builderTitle .hero-brand-guide::after { animation: none; opacity: 1; transform: none; filter: none; }
}

/* Questionnaire polish: clearable destination, safer mobile date fields, compact adventure steps. */
.input-wrap {
  position: relative;
}
.input-wrap input {
  min-width: 0;
}
.input-clear-button {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #4d4a43;
  background: #eee7d9;
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}
.input-clear-button:hover,
.input-clear-button:focus-visible {
  color: #111;
  background: #f5c84b;
}
.input-clear-button:focus-visible { outline:3px solid #1c669c; outline-offset:3px; }
.input-clear-button[hidden] {
  display: none;
}
.date-field input {
  box-sizing: border-box;
  min-width: 9.8rem;
}

@media (max-width: 680px) {
  .date-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .date-arrow {
    display: none;
  }
  .date-field {
    width: 100%;
    box-sizing: border-box;
  }
  .date-field input {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    font-size: 14px;
  }
}

@media (max-width: 680px) {
  .builder.builder-wide .trip-form {
    min-height: 100dvh;
    padding: 10px 12px 14px;
  }
  .builder.builder-wide .step-row {
    margin-bottom: 4px;
  }
  .builder.builder-wide .form-progress {
    margin: 5px 0 7px;
  }
  .builder.builder-wide .security-note {
    margin: 7px 0;
    padding: 8px 10px;
  }
  .builder.builder-wide [data-form-step="2"].active {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    height: calc(100dvh - 122px);
    min-height: 0;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-intro {
    padding: 5px 0 6px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-intro .eyebrow {
    margin-bottom: 2px;
    font-size: 8px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-intro h2 {
    font-size: 21px;
    line-height: 1;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-intro > p:last-child {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-toolbar {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin: 4px 0 6px;
    padding: 8px 10px;
    border-radius: 9px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-toolbar strong {
    font-size: 9px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-toolbar span {
    display: none;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-toolbar button {
    width: auto;
    min-height: 31px;
    padding: 6px 10px;
    font-size: 9px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-board {
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-group {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-group[hidden] {
    display: none;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-group-heading {
    margin-bottom: 5px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-group-heading > span {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-group-heading h3 {
    font-size: 11px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-card-list {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 0;
    gap: 8px;
    padding: 1px 5px 8px 1px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-card-list .suggestion-bubble {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 104px;
    border-radius: 10px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-card-image {
    width: 76px;
    min-height: 104px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-card-body {
    gap: 4px;
    padding: 9px 10px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-card-top {
    gap: 5px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-card-top strong {
    font-size: 11px;
    line-height: 1.15;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-check {
    flex-basis: 19px;
    width: 19px;
    height: 19px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-card-meta {
    font-size: 7px;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-card-detail {
    display: -webkit-box;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .builder.builder-wide [data-form-step="2"] .suggestion-map-link {
    font-size: 7px;
  }
  .builder.builder-wide [data-form-step="2"] .selection-summary {
    margin-top: 6px;
    padding: 6px 9px;
    font-size: 9px;
  }
  .builder.builder-wide [data-form-step="2"] .preference-actions {
    margin: 7px 0 3px;
  }
  .builder.builder-wide [data-form-step="2"] .preference-actions .icon-nav-button {
    min-height: 36px;
    padding: 6px 12px;
  }
  .builder.builder-wide [data-form-step="2"] .compact-preference-error {
    min-height: 14px;
    margin: 1px 0 0;
    font-size: 8px;
  }
}


/* Trip creation transition echoes the homepage PLAN TO GUIDE brand animation. */
.trip-creation-brand-line {
  max-width: 620px;
  margin: 0;
  color: #173e35;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.trip-creation-brand-line .hero-brand-word {
  position: relative;
  display: inline-block;
  color: #c89414;
  font: 850 .9em/1 Aptos, "Aptos Display", "Segoe UI", Arial, sans-serif;
  letter-spacing: .035em;
  text-shadow: 0 4px 16px rgba(255,214,90,.28);
  transform-origin: 50% 80%;
  animation: heroBrandWordIn .72s cubic-bezier(.2,.85,.24,1.2) both;
}
.trip-creation-brand-line .hero-brand-plan { animation-delay: .22s; }
.trip-creation-brand-line .hero-brand-to { color: #8a6500; animation-delay: .5s; }
.trip-creation-brand-line .hero-brand-guide { color: #24748f; animation-delay: .78s; }
.trip-creation-brand-line .hero-brand-guide::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.08em;
  left: 0;
  height: .07em;
  border-radius: 999px;
  background: linear-gradient(90deg,#f5c84b,#83dcff);
  transform: scaleX(0);
  transform-origin: left;
  animation: heroBrandUnderline .65s ease-out 1.35s forwards;
}
@media(max-width:560px) {
  .trip-creation-transition-card img { width: clamp(138px, 43vw, 190px); height: clamp(138px, 43vw, 190px); }
  .trip-creation-brand-line { font-size: clamp(28px, 8vw, 40px); }
}
@media(prefers-reduced-motion:reduce) {
  .trip-creation-brand-line .hero-brand-word,
  .trip-creation-brand-line .hero-brand-guide::after { animation: none; opacity: 1; transform: none; filter: none; }
}

/* Tokyo2026-style bottom navigation dock */
.app-nav {
  position: relative;
  z-index: 100;
  display: flex;
  flex: 0 0 auto;
  min-height: 76px;
  gap: 0;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  background: rgba(245,242,238,.97);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0 max(12px, env(safe-area-inset-bottom));
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.app-nav-button {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 4px 2px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
  transition: color .2s ease, transform .2s ease;
}
.app-nav-button > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.app-nav-button small {
  display: block;
  max-width: 76px;
  overflow: hidden;
  color: inherit;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.08;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-nav-button:hover > span { transform: translateY(-2px) scale(1.03); }
.app-nav-button.active {
  color: var(--ink);
}
.app-nav-button.active > span {
  background: rgba(255,236,153,.55);
  box-shadow: 0 0 0 2px rgba(255,193,7,.45), 0 6px 16px rgba(245,200,75,.22);
  transform: scale(1.02);
}
.app-nav-button.active small { font-weight: 800; }
.app-nav-button[data-tab="home"] > span { color: #c0392b; }
.app-nav-button[data-tab="itinerary"] > span { color: #8a6500; }
.app-nav-button[data-tab="bookings"] > span { color: #2f7d47; }
.app-nav-button[data-tab="maps"] > span { color: #254b7a; }
.app-nav-button[data-tab="food"] > span { color: #9b4f66; }
.app-nav-button[data-tab="shop"] > span { color: #765f96; }
.app-nav-button[data-tab="photos"] > span { color: #155f62; }
.app-nav-button[data-tab="ai"] > span { color: #24748f; }

@media (max-width: 640px) {
  .app-nav {
    min-height: 75px;
    gap: 0;
    padding: 6px 8vw max(11px, env(safe-area-inset-bottom)) 4px;
    scrollbar-width: none;
  }
  .app-nav::-webkit-scrollbar { display: none; }
  .app-nav-button {
    flex: 0 0 calc((100vw - 8vw - 4px) / 6);
    width: calc((100vw - 8vw - 4px) / 6);
    min-width: 52px;
    max-width: 72px;
    min-height: 62px;
    gap: 4px;
  }
  .app-nav-button > span {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    flex-basis: 46px;
    font-size: 22px;
  }
  .app-nav-button small {
    max-width: 58px;
    font-size: 8px;
    letter-spacing: 0;
  }
}

/* Desktop report readability: keep the compact mobile treatment, but use the
   available viewing distance and screen area for clearer type and symbols. */
@media (min-width: 1024px) {
  .trip-app .welcome-row h3 { font-size: 28px; }
  .trip-app .home-widget-label { font-size: 13px; }
  .trip-app .home-widget-note { font-size: 12px; }
  .trip-app .checklist-text { font-size: 15px; }
  .trip-app .checklist-sub { font-size: 13px; }
  .trip-app .checklist-box { width: 24px; height: 24px; font-size: 15px; }
  .trip-app .emg-title { font-size: 17px; }
  .trip-app .emg-title > span { font-size: 22px; }
  .trip-app .emg-label,
  .trip-app .emg-value { font-size: 14px; }
  .trip-app .activity-time { font-size: 13px; }
  .trip-app .activity-icon { font-size: 24px; }
  .trip-app .activity-copy h3 { font-size: 18px; }
  .trip-app .activity-copy p { font-size: 14px; line-height: 1.55; }
  .trip-app .activity-type,
  .trip-app .activity-status { font-size: 11px; }
  .trip-app .collection-icon { width: 56px; height: 56px; font-size: 26px; }
  .trip-app .collection-card h3 { font-size: 19px; }
  .trip-app .collection-card p { font-size: 13px; }
  .trip-app .route-flow-stop time { font-size: 11px; }
  .trip-app .route-flow-stop strong { font-size: 13px; }
  .trip-app .route-flow-stop small { font-size: 11px; }
  .trip-app .report-day-bar .day-nav-icon { font-size: 30px; }
  .trip-app .report-day-bar .day-nav-date { font-size: 13px; }
  .trip-app .report-day-bar .day-nav-title { font-size: 10px; }
  .trip-app .app-nav-button > span {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    flex-basis: 54px;
    font-size: 29px;
  }
  .trip-app .app-nav-button small { max-width: 90px; font-size: 11px; }
}

/* Real-device mobile compaction: keep workflow controls fixed and scroll only the choices. */
.starter-suggestion-note[hidden] { display: none !important; }

@media (max-width: 680px) {
  .builder.builder-wide.builder-adventure,
  .builder.builder-wide.builder-adventure .trip-form[data-current-step="2"] {
    box-sizing: border-box;
    height: 100svh;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .builder.builder-wide.builder-adventure .trip-form[data-current-step="2"] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 6px 10px max(8px, env(safe-area-inset-bottom));
  }
  .builder.builder-wide.builder-adventure .step-row,
  .builder.builder-wide.builder-adventure .security-note,
  .builder.builder-wide.builder-adventure #adventureStepCopy,
  .builder.builder-wide.builder-adventure .form-footnote {
    display: none;
  }
  .builder.builder-wide.builder-adventure .form-progress {
    height: 42px;
    margin: 0 0 5px;
    gap: 2px;
  }
  .builder.builder-wide.builder-adventure .form-progress span {
    height: 42px;
    min-height: 0;
    gap: 3px;
    padding-block: 4px;
  }
  .builder.builder-wide.builder-adventure .form-progress span b {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    font-size: 7px;
  }
  .builder.builder-wide.builder-adventure .form-progress span small strong {
    font-size: clamp(7px, 2.1vw, 9px);
    line-height: 1;
  }
  .builder.builder-wide.builder-adventure .form-progress span small em {
    display: none;
  }
  .builder.builder-wide.builder-adventure [data-form-step="2"].active {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
    min-height: 0;
    align-content: stretch;
    overflow: hidden;
  }
  .builder.builder-wide.builder-adventure .suggestion-intro {
    min-height: 0;
    padding: 1px 0 4px;
  }
  .builder.builder-wide.builder-adventure .suggestion-intro .eyebrow {
    margin-bottom: 2px;
    font-size: 8px;
    line-height: 1;
  }
  .builder.builder-wide.builder-adventure .suggestion-intro h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.05;
  }
  .builder.builder-wide.builder-adventure .starter-suggestion-note:not([hidden]) {
    display: -webkit-box;
    margin: 4px 0 0;
    padding: 5px 7px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .builder.builder-wide.builder-adventure .suggestion-toolbar {
    min-height: 36px;
    margin: 2px 0 5px;
    padding: 4px 7px;
  }
  .builder.builder-wide.builder-adventure .suggestion-toolbar strong {
    font-size: 10px;
  }
  .builder.builder-wide.builder-adventure .suggestion-toolbar span {
    display: none;
  }
  .builder.builder-wide.builder-adventure .suggestion-toolbar button {
    min-height: 34px;
    padding: 5px 10px;
    font-size: 10px;
  }
  .builder.builder-wide.builder-adventure .suggestion-board {
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }
  .builder.builder-wide.builder-adventure .suggestion-group {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  .builder.builder-wide.builder-adventure .suggestion-group[hidden] {
    display: none;
  }
  .builder.builder-wide.builder-adventure .suggestion-group-heading {
    min-height: 26px;
    margin: 0 0 4px;
  }
  .builder.builder-wide.builder-adventure .suggestion-group-heading h3 {
    font-size: 11px;
  }
  .builder.builder-wide.builder-adventure .suggestion-card-list {
    height: 100%;
    min-height: 0;
    max-height: none;
    gap: 6px;
    padding: 1px 5px 6px 1px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .builder.builder-wide.builder-adventure .suggestion-card-list .suggestion-bubble {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 94px;
  }
  .builder.builder-wide.builder-adventure .suggestion-card-image {
    width: 72px;
    min-height: 72px;
  }
  .builder.builder-wide.builder-adventure .suggestion-card-body {
    gap: 3px;
    padding: 7px 8px 4px;
  }
  .builder.builder-wide.builder-adventure .suggestion-card-top strong {
    font-size: 11px;
    line-height: 1.15;
  }
  .builder.builder-wide.builder-adventure .suggestion-card-meta,
  .builder.builder-wide.builder-adventure .suggestion-card-detail,
  .builder.builder-wide.builder-adventure .suggestion-card-links a {
    font-size: 8px;
  }
  .builder.builder-wide.builder-adventure .suggestion-card-detail {
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }
  .builder.builder-wide.builder-adventure .selection-summary {
    min-height: 26px;
    margin: 4px 0 0;
    padding: 4px 8px;
    font-size: 9px;
  }
  .builder.builder-wide.builder-adventure .preference-actions {
    margin: 4px 0 0;
  }
  .builder.builder-wide.builder-adventure .preference-actions .icon-nav-button {
    min-height: 40px;
    padding: 5px 12px;
    font-size: 10px;
  }
  .builder.builder-wide.builder-adventure .compact-preference-error:empty {
    display: none;
  }
}

/* Step 4 now builds every output; the deliverables orbit the branded creation stage. */
.trip-creation-transition {
  overflow: hidden;
  /* Adtona logo palette: sun (gold/orange) top, water (blue) + mountains (green) below. */
  background:
    radial-gradient(circle at 16% 16%, rgba(247, 148, 30, .22), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 199, 30, .20), transparent 32%),
    radial-gradient(circle at 84% 84%, rgba(27, 95, 168, .20), transparent 34%),
    radial-gradient(circle at 18% 86%, rgba(45, 138, 61, .18), transparent 34%),
    radial-gradient(circle at 50% 45%, #fff8ec 0, #f6efe1 46%, #e2eef1 100%);
  transition: opacity .65s ease;
}
.trip-creation-transition::before,
.trip-creation-transition::after {
  position: absolute;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(211, 166, 45, .22);
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
}
.trip-creation-transition::before {
  top: -18%;
  left: -8%;
  box-shadow: 0 0 90px rgba(211, 166, 45, .18);
}
.trip-creation-transition::after {
  right: -10%;
  bottom: -22%;
  border-color: rgba(38, 125, 117, .2);
  box-shadow: 0 0 100px rgba(38, 125, 117, .16);
}
.trip-creation-transition.is-running::before {
  animation: creationAmbientLeft 8.8s ease-in-out both;
}
.trip-creation-transition.is-running::after {
  animation: creationAmbientRight 8.8s ease-in-out .18s both;
}
.trip-creation-transition.finishing {
  opacity: 0;
}
.trip-creation-transition-card {
  position: relative;
  display: grid;
  width: min(1200px, calc(100vw - 32px));
  height: min(720px, calc(100dvh - 32px));
  max-height: none;
  place-items: center;
  isolation: isolate;
}
.creation-center-stage {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(520px, 54vw);
  justify-items: center;
  text-align: center;
  opacity: 0;
}
.trip-creation-transition.is-running .creation-center-stage {
  animation: creationCoreIn .8s cubic-bezier(.2, .8, .24, 1) both;
}
.trip-creation-transition.finishing .creation-center-stage {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .42s ease, transform .42s ease;
}
.creation-center-stage > img {
  width: clamp(96px, 12vw, 132px);
  height: clamp(96px, 12vw, 132px);
  object-fit: contain;
  filter: drop-shadow(0 18px 25px rgba(18, 52, 71, .16));
}
.creation-center-stage > .eyebrow {
  margin: 3px 0 5px;
  color: #8a6500;
  font-size: 9px;
  letter-spacing: .18em;
}
.creation-center-stage .trip-creation-brand-line {
  margin: 0;
  color: #173e35;
  font-size: clamp(27px, 4.25vw, 43px);
  line-height: 1;
}
.creation-building-copy {
  max-width: 430px;
  margin: 8px 0 0;
  color: #59645f;
  font-size: 10px;
  line-height: 1.45;
}
.creation-output-intro {
  display: grid;
  max-width: 470px;
  gap: 2px;
  margin-top: 10px;
  justify-items: center;
}
.creation-output-intro .eyebrow {
  margin: 0;
  color: #8a6500;
  font-size: 8px;
  letter-spacing: .16em;
}
.creation-output-intro h3 {
  margin: 0;
  color: #173e35;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.1;
}
.creation-output-intro > p:not(.eyebrow) {
  margin: 1px 0 0;
  color: #59645f;
  font-size: 9px;
  line-height: 1.35;
}
.creation-center-stage .creation-progress {
  margin-top: 10px;
}
.creation-orbit-halo {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: clamp(300px, 38vw, 460px);
  aspect-ratio: 1;
  border: 1px solid rgba(211, 166, 45, .2);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.82);
  pointer-events: none;
}
.creation-orbit-halo::before,
.creation-orbit-halo::after {
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(38, 125, 117, .18);
  border-radius: inherit;
  content: "";
}
.creation-orbit-halo::after {
  inset: 25%;
  border-style: solid;
  border-color: rgba(211, 166, 45, .18);
}
.trip-creation-transition.is-running .creation-orbit-halo {
  animation: creationHaloPulse 2.8s ease-in-out .35s 3 both;
}
.creation-output-stack {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}
.creation-output-card {
  --card-enter-scale: .7;
  --card-peak-scale: 1.12;
  --card-hold-scale: 1.08;
  --card-dissolve-scale: .78;
  --card-exit-scale: .46;
  --entry-x: 0px;
  --entry-y: 0px;
  --orbit-x: 0px;
  --orbit-y: 0px;
  --exit-x: 0px;
  --exit-y: 0px;
  --orbit-rotate: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
  width: clamp(270px, 25vw, 330px);
  min-height: 86px;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  overflow: hidden;
  border: 1px solid rgba(36, 89, 76, .18);
  border-radius: 18px;
  color: #173e35;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(246, 239, 215, .88)),
    rgba(255, 255, 255, .9);
  box-shadow: 0 20px 46px rgba(18, 52, 71, .16), inset 0 1px rgba(255, 255, 255, .9);
  opacity: 0;
  filter: blur(7px);
  transform: translate(calc(-50% + var(--entry-x)), calc(-50% + var(--entry-y))) scale(var(--card-enter-scale)) rotate(var(--orbit-rotate));
  will-change: opacity, filter, transform;
  backdrop-filter: blur(8px);
}
.creation-output-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(#e7b62b, #267d75);
  content: "";
}
.trip-creation-transition.is-running .creation-output-card {
  animation: creationOrbitCard 2.65s cubic-bezier(.2, .75, .25, 1) both;
  animation-delay: calc(.9s + (var(--creation-card-index) * 1.35s));
}
.creation-output-card:nth-child(1) {
  --entry-x: -285px;
  --entry-y: -135px;
  --orbit-x: -420px;
  --orbit-y: -218px;
  --exit-x: -458px;
  --exit-y: -242px;
  --orbit-rotate: -2deg;
}
.creation-output-card:nth-child(2) {
  --entry-x: 285px;
  --entry-y: -135px;
  --orbit-x: 420px;
  --orbit-y: -218px;
  --exit-x: 458px;
  --exit-y: -242px;
  --orbit-rotate: 2deg;
}
.creation-output-card:nth-child(3) {
  --entry-x: -295px;
  --entry-y: 70px;
  --orbit-x: -430px;
  --orbit-y: 112px;
  --exit-x: -468px;
  --exit-y: 130px;
  --orbit-rotate: -1.5deg;
}
.creation-output-card:nth-child(4) {
  --entry-x: 295px;
  --entry-y: 70px;
  --orbit-x: 430px;
  --orbit-y: 112px;
  --exit-x: 468px;
  --exit-y: 130px;
  --orbit-rotate: 1.5deg;
}
.creation-output-card:nth-child(5) {
  --entry-x: 0px;
  --entry-y: 170px;
  --orbit-x: 0px;
  --orbit-y: 280px;
  --exit-x: 0px;
  --exit-y: 320px;
}
.creation-output-card strong {
  font-size: 12.5px;
  line-height: 1.2;
}
.creation-output-card span {
  color: #59645f;
  font-size: 9.5px;
  line-height: 1.35;
}

@keyframes creationCoreIn {
  0% { opacity: 0; transform: scale(.93); filter: blur(8px); }
  65% { opacity: 1; transform: scale(1.015); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes creationHaloPulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.82) rotate(0); }
  32% { opacity: .72; }
  70% { opacity: .38; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12) rotate(22deg); }
}
@keyframes creationOrbitCard {
  0% {
    opacity: 0;
    filter: blur(7px);
    transform: translate(calc(-50% + var(--entry-x)), calc(-50% + var(--entry-y))) scale(var(--card-enter-scale)) rotate(var(--orbit-rotate));
  }
  19% {
    opacity: 1;
    filter: blur(0);
    transform: translate(calc(-50% + var(--orbit-x)), calc(-50% + var(--orbit-y))) scale(var(--card-peak-scale)) rotate(var(--orbit-rotate));
  }
  34%, 62% {
    opacity: 1;
    filter: blur(0);
    transform: translate(calc(-50% + var(--orbit-x)), calc(-50% + var(--orbit-y))) scale(var(--card-hold-scale)) rotate(var(--orbit-rotate));
  }
  80% {
    opacity: .64;
    filter: blur(3px);
    transform: translate(calc(-50% + var(--exit-x)), calc(-50% + var(--exit-y))) scale(var(--card-dissolve-scale)) rotate(var(--orbit-rotate));
  }
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(calc(-50% + var(--exit-x)), calc(-50% + var(--exit-y))) scale(var(--card-exit-scale)) rotate(var(--orbit-rotate));
  }
}
@keyframes creationAmbientLeft {
  0%, 100% { opacity: 0; transform: scale(.72) rotate(-16deg); }
  24%, 68% { opacity: .8; }
  82% { opacity: .25; }
}
@keyframes creationAmbientRight {
  0%, 100% { opacity: 0; transform: scale(.78) rotate(18deg); }
  28%, 72% { opacity: .75; }
  84% { opacity: .22; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .creation-center-stage {
    width: min(460px, 48vw);
  }
  .creation-output-card {
    width: 240px;
    min-height: 76px;
    padding: 10px 12px;
  }
  .creation-output-card:nth-child(1) {
    --entry-x: clamp(-250px, -23vw, -205px); --entry-y: -130px;
    --orbit-x: clamp(-355px, -32vw, -300px); --orbit-y: -210px;
    --exit-x: clamp(-385px, -35vw, -325px); --exit-y: -232px;
  }
  .creation-output-card:nth-child(2) {
    --entry-x: clamp(205px, 23vw, 250px); --entry-y: -130px;
    --orbit-x: clamp(300px, 32vw, 355px); --orbit-y: -210px;
    --exit-x: clamp(325px, 35vw, 385px); --exit-y: -232px;
  }
  .creation-output-card:nth-child(3) {
    --entry-x: clamp(-255px, -24vw, -210px); --entry-y: 72px;
    --orbit-x: clamp(-365px, -33vw, -310px); --orbit-y: 118px;
    --exit-x: clamp(-395px, -36vw, -335px); --exit-y: 136px;
  }
  .creation-output-card:nth-child(4) {
    --entry-x: clamp(210px, 24vw, 255px); --entry-y: 72px;
    --orbit-x: clamp(310px, 33vw, 365px); --orbit-y: 118px;
    --exit-x: clamp(335px, 36vw, 395px); --exit-y: 136px;
  }
  .creation-output-card:nth-child(5) {
    --entry-x: 0px; --entry-y: 175px;
    --orbit-x: 0px; --orbit-y: 276px;
    --exit-x: 0px; --exit-y: 312px;
  }
  .creation-output-card strong { font-size: 11px; }
  .creation-output-card span { font-size: 8.6px; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .trip-creation-transition-card {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
  }
  .creation-center-stage {
    width: min(350px, 44vw);
  }
  .creation-output-card {
    width: 230px;
    min-height: 74px;
    padding: 9px 11px;
  }
  .creation-output-card:nth-child(1) {
    --entry-x: clamp(-195px, -22vw, -170px); --entry-y: -125px;
    --orbit-x: clamp(-285px, -32vw, -245px); --orbit-y: -205px;
    --exit-x: clamp(-310px, -35vw, -265px); --exit-y: -225px;
  }
  .creation-output-card:nth-child(2) {
    --entry-x: clamp(170px, 22vw, 195px); --entry-y: -125px;
    --orbit-x: clamp(245px, 32vw, 285px); --orbit-y: -205px;
    --exit-x: clamp(265px, 35vw, 310px); --exit-y: -225px;
  }
  .creation-output-card:nth-child(3) {
    --entry-x: clamp(-202px, -23vw, -176px); --entry-y: 75px;
    --orbit-x: clamp(-292px, -33vw, -250px); --orbit-y: 122px;
    --exit-x: clamp(-317px, -36vw, -270px); --exit-y: 140px;
  }
  .creation-output-card:nth-child(4) {
    --entry-x: clamp(176px, 23vw, 202px); --entry-y: 75px;
    --orbit-x: clamp(250px, 33vw, 292px); --orbit-y: 122px;
    --exit-x: clamp(270px, 36vw, 317px); --exit-y: 140px;
  }
  .creation-output-card:nth-child(5) {
    --entry-x: 0px; --entry-y: 170px;
    --orbit-x: 0px; --orbit-y: 270px;
    --exit-x: 0px; --exit-y: 300px;
  }
  .creation-output-card strong { font-size: 10.6px; }
  .creation-output-card span { font-size: 8.5px; }
}

@media (max-width: 760px) {
  .trip-creation-transition {
    padding: 8px;
  }
  .trip-creation-transition-card {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
  }
  .creation-center-stage {
    width: min(330px, 88vw);
  }
  .creation-center-stage > img {
    width: clamp(72px, 21vw, 94px);
    height: clamp(72px, 21vw, 94px);
  }
  .creation-center-stage > .eyebrow {
    margin: 2px 0 3px;
    font-size: 7.5px;
  }
  .creation-center-stage .trip-creation-brand-line {
    font-size: clamp(22px, 7.1vw, 30px);
  }
  .creation-building-copy {
    max-width: 310px;
    margin-top: 5px;
    font-size: 8.3px;
  }
  .creation-output-intro {
    max-width: 320px;
    margin-top: 7px;
  }
  .creation-output-intro .eyebrow {
    font-size: 7px;
  }
  .creation-output-intro h3 {
    font-size: 14px;
  }
  .creation-output-intro > p:not(.eyebrow) {
    font-size: 8px;
  }
  .creation-center-stage .creation-progress {
    margin-top: 7px;
  }
  .creation-orbit-halo {
    width: min(310px, 86vw);
  }
  .creation-output-card {
    --card-peak-scale: 1.03;
    --card-hold-scale: 1;
    --card-dissolve-scale: .72;
    --card-exit-scale: .46;
    grid-template-columns: minmax(130px, .9fr) minmax(0, 1.15fr);
    width: min(360px, calc(100vw - 34px));
    min-height: 62px;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 15px;
  }
  .creation-output-card strong {
    font-size: 10.5px;
  }
  .creation-output-card span {
    font-size: 8.5px;
  }
  .creation-output-card:nth-child(1) {
    --entry-x: 0px; --entry-y: -225px;
    --orbit-x: -12px; --orbit-y: -326px;
    --exit-x: -22px; --exit-y: -350px;
  }
  .creation-output-card:nth-child(2) {
    --entry-x: 0px; --entry-y: -145px;
    --orbit-x: 12px; --orbit-y: -246px;
    --exit-x: 22px; --exit-y: -270px;
  }
  .creation-output-card:nth-child(3) {
    --entry-x: 0px; --entry-y: 122px;
    --orbit-x: -12px; --orbit-y: 202px;
    --exit-x: -22px; --exit-y: 226px;
  }
  .creation-output-card:nth-child(4) {
    --entry-x: 0px; --entry-y: 196px;
    --orbit-x: 12px; --orbit-y: 276px;
    --exit-x: 22px; --exit-y: 300px;
  }
  .creation-output-card:nth-child(5) {
    --entry-x: 0px; --entry-y: 270px;
    --orbit-x: 0px; --orbit-y: 350px;
    --exit-x: 0px; --exit-y: 374px;
  }
}

@media (max-height: 720px) and (max-width: 760px) {
  .creation-center-stage > img {
    width: 68px;
    height: 68px;
  }
  .creation-center-stage .trip-creation-brand-line {
    font-size: clamp(20px, 6.5vw, 25px);
  }
  .creation-building-copy {
    margin-top: 3px;
  }
  .creation-output-intro {
    margin-top: 5px;
  }
  .creation-output-intro > p:not(.eyebrow) {
    display: none;
  }
  .creation-output-card {
    min-height: 50px;
    padding-block: 5px;
  }
  .creation-output-card:nth-child(1) {
    --entry-x: 0px; --entry-y: -150px;
    --orbit-x: -10px; --orbit-y: -220px;
    --exit-x: -18px; --exit-y: -242px;
  }
  .creation-output-card:nth-child(2) {
    --entry-x: 0px; --entry-y: -95px;
    --orbit-x: 10px; --orbit-y: -158px;
    --exit-x: 18px; --exit-y: -178px;
  }
  .creation-output-card:nth-child(3) {
    --entry-x: 0px; --entry-y: 92px;
    --orbit-x: -10px; --orbit-y: 142px;
    --exit-x: -18px; --exit-y: 160px;
  }
  .creation-output-card:nth-child(4) {
    --entry-x: 0px; --entry-y: 148px;
    --orbit-x: 10px; --orbit-y: 200px;
    --exit-x: 18px; --exit-y: 218px;
  }
  .creation-output-card:nth-child(5) {
    --entry-x: 0px; --entry-y: 202px;
    --orbit-x: 0px; --orbit-y: 254px;
    --exit-x: 0px; --exit-y: 272px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trip-creation-transition {
    overflow-y: auto;
    transition-duration: .18s;
  }
  .trip-creation-transition::before,
  .trip-creation-transition::after,
  .creation-orbit-halo {
    animation: none !important;
    opacity: .25;
  }
  .trip-creation-transition-card {
    display: grid;
    width: min(700px, calc(100vw - 24px));
    height: auto;
    min-height: min(640px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
    gap: 10px;
    padding: 16px;
    overflow-y: auto;
    align-content: center;
  }
  .creation-center-stage,
  .trip-creation-transition.is-running .creation-center-stage {
    width: min(520px, 100%);
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
  .creation-output-stack {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }
  .creation-output-card,
  .trip-creation-transition.is-running .creation-output-card {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    min-height: 50px;
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
  .creation-output-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 3px);
    justify-self: center;
  }
  .creation-progress i {
    animation: none;
    opacity: .75;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 560px) {
  .creation-output-stack {
    grid-template-columns: 1fr;
  }
  .creation-output-card,
  .creation-output-card:last-child {
    grid-column: auto;
    width: 100%;
  }
}

/* Tokyo-reference scale for roomy workflow screens. Mobile keeps its contained layout. */
@media (min-width: 1100px) and (min-height: 700px) {
  .builder.builder-wide .trip-form[data-current-step="2"] {
    --adventure-board-height: clamp(410px, 62dvh, 720px);
    padding: 14px clamp(32px, 4vw, 72px) 18px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .step-row { font-size: 14px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress {
    height: 66px;
    margin: 7px 0 10px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress span {
    height: 66px;
    gap: 10px;
    padding-block: 8px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress span b {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    font-size: 11px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress span small strong { font-size: 12px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress span small em { font-size: 9px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .security-note {
    gap: 11px;
    margin-bottom: 10px;
    padding: 9px 13px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .security-note > span {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    font-size: 14px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .security-note p { font-size: 11px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro { padding: 5px 0 9px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro .eyebrow { font-size: 11px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro h2 {
    font-size: clamp(31px, 2.7vw, 42px);
    line-height: 1;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro > p:not(.eyebrow) {
    margin-top: 7px;
    font-size: 13px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar {
    min-height: 48px;
    margin: 5px 0 9px;
    padding: 8px 12px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar strong,
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar span { font-size: 12px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar button {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 12px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group-heading {
    min-height: 36px;
    margin-bottom: 7px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group-heading > span {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group-heading h3 { font-size: 17px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 2px 8px 12px 2px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-list .suggestion-bubble {
    grid-template-columns: 122px minmax(0, 1fr);
    min-height: 148px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-image {
    width: 122px;
    min-height: 122px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-body {
    gap: 5px;
    padding: 12px 12px 7px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-top strong {
    font-size: 15px;
    line-height: 1.15;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-meta { font-size: 9px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-detail {
    font-size: 11px;
    line-height: 1.35;
    -webkit-line-clamp: 3;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-links a { font-size: 9px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .selection-summary {
    min-height: 36px;
    margin-top: 7px;
    padding: 7px 11px;
    font-size: 12px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .preference-actions .icon-nav-button {
    min-height: 46px;
    padding: 9px 18px;
    font-size: 12px;
  }
  .builder.builder-wide .trip-form[data-current-step="3"],
  .builder.builder-wide .trip-form[data-current-step="4"] {
    padding-inline: clamp(32px, 5vw, 88px);
  }
  .builder.builder-wide [data-form-step="3"].active .trip-style-grid,
  .builder.builder-wide [data-form-step="4"].active .trip-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .builder.builder-wide [data-form-step="3"].active h2,
  .builder.builder-wide [data-form-step="4"].active h2 { font-size: clamp(36px, 3.5vw, 54px); }
  .builder.builder-wide [data-form-step="3"].active .style-question,
  .builder.builder-wide [data-form-step="4"].active .style-question {
    gap: 8px;
    padding: 18px;
  }
  .builder.builder-wide [data-form-step="3"].active .style-question > span,
  .builder.builder-wide [data-form-step="4"].active .style-question > span { font-size: 15px; }
  .builder.builder-wide [data-form-step="3"].active .style-question small,
  .builder.builder-wide [data-form-step="4"].active .style-question small { font-size: 11px; }
  .builder.builder-wide [data-form-step="3"].active .style-question select,
  .builder.builder-wide [data-form-step="3"].active .style-question input,
  .builder.builder-wide [data-form-step="3"].active .style-question textarea,
  .builder.builder-wide [data-form-step="4"].active .style-question select,
  .builder.builder-wide [data-form-step="4"].active .style-question input,
  .builder.builder-wide [data-form-step="4"].active .style-question textarea { min-height: 46px; font-size: 13px; }
  .builder.builder-wide [data-form-step="3"].active .style-notes textarea {
    min-height: 42px;
    height: 42px;
  }
}

@media (min-width: 1600px) and (min-height: 800px) {
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-card-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Research status sits beside the Export button, inside the hero banner. */
.app-home-hero .research-mode-notice {
  width: min(100%, 440px);
  margin: 14px 0 0;
  padding: 12px 16px;
  border-color: rgba(255, 236, 173, .34);
  border-radius: 12px;
  background: rgba(8, 34, 44, .32);
  box-shadow: 0 10px 26px rgba(6, 24, 34, .22);
  backdrop-filter: blur(8px) saturate(1.1);
}
.app-home-hero .research-mode-notice .eyebrow { margin: 0; color: rgba(255, 236, 173, .9); font-size: 11px; letter-spacing: .04em; }
.app-home-hero .research-mode-notice h3 { margin: 3px 0 4px; color: #fff; font-size: 16px; }
.app-home-hero .research-mode-notice > p:not(.eyebrow) { margin: 0; color: rgba(255, 255, 255, .82); font-size: 12.5px; line-height: 1.4; }
/* Research status card: compact, beside the Export button and matched to its height. */
.app-home-hero .hero-export-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.app-home-hero .hero-export-row .hero-export-button { margin-top: 0; flex: 0 0 auto; }
.app-home-hero .hero-export-row .research-mode-notice {
  margin: 0;
  width: auto;
  max-width: 470px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 14px;
}
.app-home-hero .hero-export-row .research-mode-notice .eyebrow { font-size: 9px; }
.app-home-hero .hero-export-row .research-mode-notice h3 { margin: 1px 0 2px; font-size: 12px; }
.app-home-hero .hero-export-row .research-mode-notice > p:not(.eyebrow) { font-size: 9.5px; line-height: 1.3; }
@media (max-width: 620px) {
  .app-home-hero .hero-export-row { margin-top: 17px; }
  .app-home-hero .hero-export-row .research-mode-notice { flex-basis: 100%; }
}

/* The full animation is concise; repeat viewers can bypass it immediately. */
.trip-creation-transition { transition-duration: .36s; }
.trip-creation-transition.is-running::before { animation-duration: 5.8s; }
.trip-creation-transition.is-running::after { animation-duration: 5.8s; }
.trip-creation-transition.is-running .creation-orbit-halo {
  animation-duration: 2.25s;
  animation-iteration-count: 2;
}
.trip-creation-transition.is-running .creation-output-card {
  animation-duration: 1.75s;
  animation-delay: calc(.55s + (var(--creation-card-index) * .78s));
}
.creation-skip-button {
  position: absolute;
  z-index: 12;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(23, 62, 53, .28);
  border-radius: 999px;
  color: #173e35;
  background: rgba(255, 249, 226, .9);
  box-shadow: 0 8px 22px rgba(18, 52, 71, .12);
  font: 800 11px/1 "Aptos", "Inter", sans-serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.creation-skip-button:hover,
.creation-skip-button:focus-visible { color: #fff; background: #267d75; }
.creation-skip-button[hidden] { display: none; }

@media (max-width: 760px) {
  .creation-skip-button {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    min-height: 36px;
    padding: 7px 12px;
    font-size: 10px;
  }
  .home-weather-wrap .research-mode-notice { margin-top: 6px; }
}

/* Trip Basics supporting examples now finish the form, immediately before Next Step. */
.trip-basics-action-row {
  display: grid;
  grid-template-columns: minmax(0, 400px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 13px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.trip-basics-end-showcase {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.trip-basics-support-row {
  display: grid;
  grid-template-columns: minmax(0, 400px);
  width: 100%;
  gap: 9px;
  justify-content: start;
  justify-self: stretch;
  margin-left: 0;
}
.trip-basics-end-showcase .demo-showcase,
.trip-basics-end-showcase .import-callout {
  width: 100%;
  max-width: none;
  min-height: 0;
  gap: 3px;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid rgba(36, 89, 76, .15);
  border-radius: 11px;
  background: #f8f5ed;
  box-shadow: none;
  backdrop-filter: none;
}
.trip-basics-end-showcase .import-callout { border-style: dashed; background: rgba(219, 229, 216, .48); }
.trip-basics-end-showcase .support-action-card {
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.trip-basics-end-showcase .support-action-card:hover,
.trip-basics-end-showcase .support-action-card:focus-visible {
  border-color: rgba(36, 89, 76, .48);
  background: #fffdf8;
  box-shadow: 0 9px 22px rgba(36, 89, 76, .11);
  transform: translateY(-2px);
  outline: none;
}
.trip-basics-end-showcase .demo-showcase strong,
.trip-basics-end-showcase .import-callout strong {
  color: var(--ink);
  font-size: 10px;
  line-height: 1.2;
}
.trip-basics-end-showcase .demo-showcase span,
.trip-basics-end-showcase .import-callout span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}
.trip-basics-end-showcase .support-action-card span.support-card-action {
  justify-self: start;
  padding: 0;
  color: var(--forest);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}
.trip-basics-end-showcase .support-action-card:hover span.support-card-action,
.trip-basics-end-showcase .support-action-card:focus-visible span.support-card-action {
  color: var(--forest-dark);
  text-decoration: underline;
}
.trip-basics-end-showcase .home-deliverables-preview {
  gap: 7px;
  padding: 9px 10px;
  border-color: rgba(36, 89, 76, .14);
  border-radius: 11px;
  background: rgba(255, 253, 248, .94);
  box-shadow: none;
  backdrop-filter: none;
}
.trip-basics-end-showcase .home-deliverables-heading > span { color: #8a6500; }
.trip-basics-end-showcase .home-deliverables-heading > strong { color: var(--ink); }
.trip-basics-action-row .compact-next-button {
  margin-top: 0;
  margin-right: 0;
  margin-left: auto;
}

@media (max-width: 700px) {
  .trip-basics-action-row {
    grid-template-columns: minmax(0,1fr) minmax(128px,150px);
    gap: 9px;
    align-items: end;
    margin-bottom: 10px;
    padding-top: 11px;
  }
  .trip-basics-support-row { width: 100%; grid-template-columns: 1fr; gap: 7px; }
  .trip-basics-end-showcase { margin: 0; padding: 0; }
  .trip-basics-end-showcase .home-deliverables-heading { align-items: flex-start; }
  .trip-basics-end-showcase .home-deliverables-cards {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 1px 2px 5px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .trip-basics-end-showcase .home-deliverable-card {
    flex: 0 0 144px;
    min-height: 66px;
    scroll-snap-align: start;
  }
  .trip-basics-action-row .compact-next-button { width: 100%; min-width: 0; }
}

/* Trip Basics hero: the animated product mark is the main visual, positioned
   beside the opening message without the previous airplane or sun decoration. */
.builder:not(.builder-wide) .builder-copy {
  min-height: 330px;
  background: linear-gradient(135deg, rgba(28, 31, 38, .99), rgba(37, 75, 122, .94));
}
.builder:not(.builder-wide) .builder-copy::after {
  content: none !important;
  display: none !important;
}
.builder:not(.builder-wide) .builder-hero-lockup {
  display: grid;
  grid-template-columns: clamp(180px, 19vw, 260px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  width: 100%;
}
.builder:not(.builder-wide) .builder-hero-message {
  min-width: 0;
}
.builder:not(.builder-wide) .home-brand-lockup {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  text-align: center;
}
.builder:not(.builder-wide) .home-brand-lockup > span {
  flex: 0 0 auto;
  width: clamp(160px, 17vw, 230px);
  height: clamp(160px, 17vw, 230px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .24));
}
.builder:not(.builder-wide) .home-brand-lockup img {
  animation: mainLogoFloat 5.2s ease-in-out infinite;
}
.builder:not(.builder-wide) .home-brand-lockup strong {
  font-size: clamp(22px, 2.2vw, 32px);
}
.builder:not(.builder-wide) .home-brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .16em;
  color: #ffd65a;
  font-family: "DM Sans", sans-serif;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .035em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .24);
  white-space: nowrap;
}
.builder:not(.builder-wide) .home-brand-wordmark > span {
  position: relative;
  display: inline-block;
  transform-origin: 50% 80%;
  animation: heroBrandWordIn .72s cubic-bezier(.2,.85,.24,1.2) both;
}
.builder:not(.builder-wide) .home-brand-plan { color: #ffd65a; animation-delay: .22s; }
.builder:not(.builder-wide) .home-brand-to { color: #fff3b5; animation-delay: .5s; }
.builder:not(.builder-wide) .home-brand-guide { color: #83dcff; animation-delay: .78s; }
.builder:not(.builder-wide) .home-brand-guide::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.12em;
  left: 0;
  height: .08em;
  border-radius: 999px;
  background: linear-gradient(90deg,#ffd65a,#83dcff);
  transform: scaleX(0);
  transform-origin: left;
  animation: heroBrandUnderline .65s ease-out 1.35s forwards;
}
.builder:not(.builder-wide) .home-brand-lockup.brand-animation-reset img,
.builder:not(.builder-wide) .home-brand-lockup.brand-animation-reset .home-brand-wordmark > span,
.builder:not(.builder-wide) .home-brand-lockup.brand-animation-reset .home-brand-guide::after {
  animation: none !important;
}
.builder:not(.builder-wide) .builder-hero-message .eyebrow {
  margin-bottom: 10px;
}
.builder:not(.builder-wide) .builder-hero-message h1 {
  width: 100%;
  max-width: 920px;
  font-size: clamp(44px, 5.3vw, 76px);
}
.builder:not(.builder-wide) .builder-hero-message .lede {
  width: min(100%, 760px);
  margin-top: 18px;
}
.builder:not(.builder-wide) .journey-line,
.builder:not(.builder-wide) .trust-note {
  display: none;
}
@keyframes mainLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 760px) {
  .builder:not(.builder-wide) .builder-copy {
    min-height: 0;
    padding: 24px 18px 26px;
  }
  .builder:not(.builder-wide) .builder-hero-lockup {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }
  .builder:not(.builder-wide) .home-brand-lockup {
    gap: 7px;
  }
  .builder:not(.builder-wide) .home-brand-lockup > span {
    width: 88px;
    height: 88px;
  }
  .builder:not(.builder-wide) .home-brand-lockup strong {
    font-size: 10px;
    letter-spacing: .025em;
  }
  .builder:not(.builder-wide) .home-brand-wordmark {
    gap: .1em;
  }
  .builder:not(.builder-wide) .builder-hero-message .eyebrow {
    margin-bottom: 6px;
    font-size: 8px;
    line-height: 1.35;
  }
  .builder:not(.builder-wide) .builder-hero-message h1 {
    font-size: clamp(28px, 8.1vw, 38px);
    line-height: 1.02;
  }
  .builder:not(.builder-wide) .builder-hero-message .lede {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .builder:not(.builder-wide) .home-brand-lockup img { animation: none; }
  .builder:not(.builder-wide) .home-brand-wordmark > span,
  .builder:not(.builder-wide) .home-brand-guide::after { animation: none; opacity: 1; transform: none; filter: none; }
}

/* Adventure layout stability at every desktop height. Fixed-height image lists
   previously forced the title and helper rows to collapse into each other.
   The recommendation board is now the only row allowed to flex and scroll. */
@media (min-width: 681px) {
  .builder.builder-wide .trip-form[data-current-step="2"] [data-form-step="2"].active {
    height: 100%;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
    align-content: stretch;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-board {
    height: auto;
  }
}

@media (min-width: 681px) and (max-height: 620px) {
  .builder.builder-wide .trip-form[data-current-step="2"] [data-form-step="2"].active {
    grid-template-rows: auto auto minmax(70px, 1fr) auto auto auto;
  }
}

/* Golden-reference report readability
   The Tokyo guide uses a warm blush emergency panel with brick-red accents and
   substantially larger body type. Keep PlanToGuide's responsive structure while
   matching that contrast and bringing the generated guide to a comfortable
   reading size on both phones and desktop displays. */
.trip-app .emergency-widget {
  padding: 13px 15px;
  border: 1px solid rgba(192, 57, 43, .18);
  border-radius: 14px;
  color: #171717;
  background: #fdf0ee;
  box-shadow: none;
}
.trip-app .emg-title {
  gap: 9px;
  margin-bottom: 5px;
  color: #c0392b;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}
.trip-app .emg-title > span {
  font-size: 26px;
  line-height: 1;
}
.trip-app .emg-row {
  gap: 20px;
  padding: 6px 0;
  border-top-color: rgba(192, 57, 43, .18);
  line-height: 1.45;
}
.trip-app .emg-label,
.trip-app .emg-value {
  font-size: 17px;
  line-height: 1.45;
}
.trip-app .emg-label {
  flex: 0 0 clamp(220px, 32%, 360px);
  color: #272727;
  font-weight: 600;
}
.trip-app .emg-value {
  flex: 1 1 auto;
  color: #a93226;
  font-weight: 750;
}
.trip-app .emg-value a {
  color: #255f9b;
  text-underline-offset: 3px;
}
.trip-app .emg-prompt {
  color: #3e4045;
  font-size: 16px;
  line-height: 1.55;
}

.trip-app .home-sec-label { font-size: 12px; }
.trip-app .home-widget-label { font-size: 13px; }
.trip-app .home-widget-note { font-size: 12px; }
.trip-app .checklist-text { font-size: 16px; line-height: 1.4; }
.trip-app .checklist-sub { font-size: 13px; line-height: 1.45; }
.trip-app .activity-time { font-size: 13px; line-height: 1.4; }
.trip-app .activity-type,
.trip-app .activity-status,
.trip-app .status-tag { font-size: 10px; line-height: 1.35; }
.trip-app .activity-copy h4 { font-size: 19px; line-height: 1.28; }
.trip-app .activity-copy p { font-size: 15px; line-height: 1.58; }
.trip-app .activity-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 3px 0 5px;
}
.trip-app .activity-title-row h4 { margin: 0; }
.trip-app .activity-origin-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 800 9px/1 "DM Sans", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.trip-app .activity-origin-badge[hidden] { display: none; }
.trip-app .activity-origin-badge.is-selected {
  color: #24594c;
  background: #e5f0e9;
}
.trip-app .activity-origin-badge.is-favorite {
  color: #795600;
  background: #fff1bf;
}
.trip-app .collection-card h3 { font-size: 19px; line-height: 1.32; }
.trip-app .collection-card p { font-size: 14px; line-height: 1.55; }
.trip-app .booking-cards h3 { font-size: 19px; line-height: 1.32; }
.trip-app .booking-cards p,
.trip-app .booking-cards small { font-size: 14px; line-height: 1.5; }
.trip-app .route-flow-stop time { font-size: 12px; }
.trip-app .route-flow-stop strong { font-size: 15px; line-height: 1.35; }
.trip-app .route-flow-stop small { font-size: 13px; line-height: 1.45; }
.trip-app .weather-location { font-size: 19px; }
.trip-app .weather-summary { font-size: 13px; line-height: 1.5; }
.trip-app .weather-metrics-row small { font-size: 10px; }
.trip-app .weather-metrics-row strong { font-size: 13px; line-height: 1.35; }
.trip-app .weather-disclaimer { font-size: 10px; line-height: 1.45; }
.trip-app .map-estimate-note { font-size: 12px; line-height: 1.5; }
.trip-app .photo-manager p,
.trip-app .photo-day-map-sub { font-size: 13px; line-height: 1.5; }

@media (min-width: 1024px) {
  .trip-app .emg-title { font-size: 24px; }
  .trip-app .emg-title > span { font-size: 29px; }
  .trip-app .emg-label,
  .trip-app .emg-value { font-size: 19px; }
  .trip-app .emg-prompt { font-size: 18px; }
  .trip-app .activity-time { font-size: 14px; }
  .trip-app .activity-copy h4 { font-size: 21px; }
  .trip-app .activity-copy p { font-size: 16px; }
  .trip-app .collection-card h3,
  .trip-app .booking-cards h3 { font-size: 21px; }
  .trip-app .collection-card p,
  .trip-app .booking-cards p,
  .trip-app .booking-cards small { font-size: 15px; }
  .trip-app .route-flow-stop time { font-size: 13px; }
  .trip-app .route-flow-stop strong { font-size: 16px; }
  .trip-app .route-flow-stop small { font-size: 14px; }
  .trip-app .weather-location { font-size: 21px; }
  .trip-app .weather-summary { font-size: 15px; }
  .trip-app .weather-metrics-row strong { font-size: 14px; }
  .trip-app .app-nav-button small { font-size: 12px; }
}

@media (max-width: 720px) {
  .trip-app .activity-title-row { gap: 5px; }
  .trip-app .activity-origin-badge { padding: 3px 6px; font-size: 8px; }
}

@media print {
  .trip-app .activity-origin-badge {
    padding: 3px 6px;
    font-size: 8px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Home tab: bump the at-a-glance content to comfortable desktop reading sizes.
   The day-plan, next-stop, route and checklist widgets carry the smallest type,
   so raise those specifically without disturbing the phone layout. */
@media (min-width: 1024px) {
  .trip-app .home-panel-body .welcome-row h3 { font-size: 30px; }
  .trip-app .home-panel-body .home-sec-label { font-size: 13px; }
  .trip-app .home-panel-body .home-widget-label { font-size: 14px; }
  .trip-app .home-panel-body .home-widget-note { font-size: 13px; }
  .trip-app .home-panel-body .dayplan-kicker { font-size: 11px; }
  .trip-app .home-panel-body .dayplan-badge { font-size: 11px; }
  .trip-app .home-panel-body .dayplan-card time { font-size: 13px; }
  .trip-app .home-panel-body .dayplan-name { font-size: 15px; }
  .trip-app .home-panel-body .dayplan-icon { font-size: 16px; }
  .trip-app .home-panel-body .dayplan-more { font-size: 13px; }
  .trip-app .home-panel-body .rt-time { font-size: 13px; }
  .trip-app .home-panel-body .rt-leg-mode,
  .trip-app .home-panel-body .rt-leg-dur { font-size: 12px; }
  .trip-app .home-panel-body .ns-btn,
  .trip-app .home-panel-body .rt-btn { font-size: 13px; }
  .trip-app .home-panel-body .checklist-text { font-size: 17px; }
  .trip-app .home-panel-body .checklist-sub { font-size: 14px; }
  .trip-app .home-panel-body .checklist-count { font-size: 12px; }
  .trip-app .home-panel-body .home-widget small { font-size: 12px; }
}

@media (max-width: 640px) {
  .trip-app .emergency-widget { padding: 12px 14px; }
  .trip-app .emg-title { font-size: 20px; }
  .trip-app .emg-title > span { font-size: 24px; }
  .trip-app .emg-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
  }
  .trip-app .emg-label,
  .trip-app .emg-value {
    flex: 0 0 auto;
    width: 100%;
    font-size: 16px;
    text-align: left;
  }
  .trip-app .activity-copy h4 { font-size: 18px; }
  .trip-app .activity-copy p { font-size: 14px; }
  .trip-app .collection-card h3,
  .trip-app .booking-cards h3 { font-size: 18px; }
  .trip-app .collection-card p,
  .trip-app .booking-cards p,
  .trip-app .booking-cards small { font-size: 13px; }
  .trip-app .weather-summary { font-size: 13px; }
  .trip-app .app-nav-button small { font-size: 10px; }
}

/* Workflow navigation: align the Trip Basics importer with its action and use
   one substantial rectangular button treatment throughout the questionnaire. */
.trip-basics-action-row {
  align-items: start !important;
}

.trip-basics-action-row .trip-basics-end-showcase,
.trip-basics-action-row .trip-basics-support-row,
.trip-basics-action-row .import-callout {
  margin-top: 0 !important;
}

.builder .wizard-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.builder .compact-next-button,
.builder .wizard-actions .icon-nav-button,
.builder .wizard-actions .secondary-button,
.builder .wizard-actions .primary-button {
  width: auto;
  min-width: 230px;
  min-height: 49px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.2;
}

.builder .wizard-actions .secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.builder .preference-actions .icon-nav-button,
.builder.builder-wide .trip-form[data-current-step="2"] .preference-actions .icon-nav-button,
.builder.builder-wide [data-form-step="2"] .preference-actions .icon-nav-button,
.builder.builder-wide.builder-adventure .preference-actions .icon-nav-button {
  min-width: 230px;
  min-height: 49px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 620px) {
  .trip-basics-action-row {
    align-items: start !important;
  }

  .builder .trip-basics-action-row .compact-next-button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 13px;
    font-size: 12px;
  }

  .builder .wizard-actions {
    gap: 9px;
  }

  .builder .wizard-actions .icon-nav-button,
  .builder .wizard-actions .secondary-button,
  .builder .wizard-actions .primary-button,
  .builder .preference-actions .icon-nav-button,
  .builder.builder-wide .trip-form[data-current-step="2"] .preference-actions .icon-nav-button,
  .builder.builder-wide [data-form-step="2"] .preference-actions .icon-nav-button,
  .builder.builder-wide.builder-adventure .preference-actions .icon-nav-button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 13px;
    font-size: 12px;
  }
}

/* Final cascade override for the compact Step 4 fields. */
.builder [data-form-step="4"] .style-question textarea,
.builder.builder-wide [data-form-step="4"].active .style-question textarea {
  min-height: 40px;
  height: 40px;
  max-height: 120px;
  padding-block: 9px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Version 4 UI: opening splash and one-at-a-time recommendation deck
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.start-splash-active { overflow: hidden; }
.builder.start-splash-active .trip-form {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.start-splash[hidden] { display: none !important; }
.builder:not(.builder-wide) #startSplash.start-splash {
  position: fixed;
  z-index: 9000;
  inset: 0;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(30px, 6vw, 90px);
  place-content: center;
  overflow: hidden;
  color: #17303f;
  /* Adtona logo palette — bright "sunrise over water": sun (gold) top-right,
     mountains (green) + water (blue) below, so the logo wordmark stays legible. */
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 193, 52, .60), transparent 32%),
    radial-gradient(circle at 15% 88%, rgba(45, 150, 70, .28), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(41, 171, 226, .32), transparent 44%),
    linear-gradient(150deg, #fff4d6 0%, #ffe4bd 28%, #e2f0d7 60%, #cfe9f7 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: startSplashArrive .7s cubic-bezier(.2, .8, .2, 1) both;
}
.builder:not(.builder-wide) #startSplash.start-splash::after { content: none !important; }
.builder:not(.builder-wide) #startSplash .builder-hero-lockup {
  grid-template-columns: clamp(210px, 20vw, 310px) minmax(0, 1fr);
  width: min(100%, 1500px);
  gap: clamp(42px, 6vw, 100px);
}
.builder:not(.builder-wide) #startSplash .home-brand-lockup > span {
  width: clamp(190px, 19vw, 290px);
  height: clamp(190px, 19vw, 290px);
}
.builder:not(.builder-wide) #startSplash .home-brand-lockup strong { font-size: clamp(25px, 2.3vw, 38px); }
.builder:not(.builder-wide) #startSplash .builder-hero-message h1 { max-width: 1000px; font-size: clamp(50px, 5.8vw, 88px); }
.builder:not(.builder-wide) #startSplash .builder-hero-message .lede { max-width: 900px; font-size: clamp(14px, 1.35vw, 20px); }
/* Dark, legible text on the bright Adtona start screen. */
.builder:not(.builder-wide) #startSplash .builder-hero-message .eyebrow { color: #a85d10; }
.builder:not(.builder-wide) #startSplash .builder-hero-message h1 { color: #143a50; text-shadow: none; }
.builder:not(.builder-wide) #startSplash .builder-hero-message .lede { color: #33505f; }
.builder:not(.builder-wide) #startSplash .builder-hero-message .lede strong { color: #c9491a; }
.start-splash-actions {
  display: grid;
  justify-items: end;
  gap: 13px;
  width: min(100%, 1500px);
  margin: clamp(26px, 4vh, 52px) auto 0;
}
.start-splash-continue {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 22px;
  border: 1px solid rgba(20, 40, 55, .16);
  border-radius: 999px;
  color: #1b2834;
  background: #ffd65a;
  cursor: pointer;
  font: 800 13px "DM Sans", sans-serif;
  box-shadow: 0 13px 34px rgba(0, 0, 0, .2);
  transition: transform .2s ease, background .2s ease;
}
.start-splash-continue:hover { background: #ffe58f; transform: translateY(-2px); }
.start-splash-continue:focus-visible { outline: 3px solid #83dcff; outline-offset: 4px; }
.start-splash-progress {
  width: min(300px, 52vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 50, 70, .16);
}
.start-splash-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffd65a, #83dcff);
  transform: scaleX(0);
  transform-origin: left;
  animation: startSplashProgress 3.6s linear forwards;
}
.start-splash.is-leaving { animation: startSplashLeave .72s cubic-bezier(.55, 0, .75, .2) forwards !important; }
.trip-form.v4-reveal { animation: tripBasicsReveal .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes startSplashArrive { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes startSplashLeave { to { opacity: 0; visibility: hidden; transform: scale(1.035); filter: blur(8px); } }
@keyframes startSplashProgress { to { transform: scaleX(1); } }
@keyframes tripBasicsReveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Only the card changes; the existing wizard and selectedSuggestions Map remain
   the source of truth for saved drafts, itinerary generation, and export. */
.builder.builder-wide .trip-form[data-current-step="2"] {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
/* Size the Step 2 progress chevrons to their content (step number + two-line label)
   instead of a fixed height that was too short — the sub-label was overflowing below
   each chevron and getting clipped. Auto height keeps every step readable and aligned. */
.builder.builder-wide .trip-form[data-current-step="2"] .form-progress {
  height: auto;
  margin: 5px 0 9px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .form-progress span {
  height: auto;
  min-height: 0;
  padding-block: 9px;
  gap: 6px;
  justify-content: center;
}
.builder.builder-wide .trip-form[data-current-step="2"] .form-progress span b {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  font-size: 10px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .form-progress span small strong {
  font-size: 12px;
  line-height: 1.15;
}
.builder.builder-wide .trip-form[data-current-step="2"] .form-progress span small em {
  font-size: 9px;
  line-height: 1.2;
}
.builder.builder-wide .trip-form[data-current-step="2"] .security-note {
  display: none;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro {
  padding: 3px 0 6px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro h2 {
  font-size: clamp(25px, 2.35vw, 35px);
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro h2:focus {
  outline: none;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro > p:not(.eyebrow) {
  margin-top: 5px;
  font-size: 12px;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar {
  min-height: 42px;
  margin: 3px 0 7px;
  padding: 7px 11px;
}
.builder.builder-wide .trip-form[data-current-step="2"] [data-form-step="2"].active {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-board,
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group,
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-shell,
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-deck { min-height: 0; }
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-board { height: 100%; overflow: hidden; padding: 0; }
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group-heading {
  display: none;
}
.suggestion-swipe-shell {
  display: grid;
  width: min(100%, 1060px);
  height: 100%;
  margin: 0 auto;
  /* Card row is flexible; the action rail + hint rows stay pinned and visible. The card must
     never grow past this row (that pushes Skip/Include/Favorite off-screen — see smoke test). */
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 9px;
}
.suggestion-swipe-deck {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: stretch;
  perspective: 1200px;
}
.builder .suggestion-swipe-card,
.builder.builder-wide .suggestion-swipe-card {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(36, 89, 76, .22);
  border-radius: 22px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 20px 55px rgba(28, 31, 38, .16);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  transform-origin: 50% 92%;
  transition: transform .28s ease, opacity .28s ease, border-color .2s ease;
  will-change: transform, opacity;
}
.builder .suggestion-swipe-card:focus-visible { outline: 4px solid rgba(37, 75, 122, .36); outline-offset: 3px; }
.builder .suggestion-swipe-card.is-dragging { cursor: grabbing; transition: none; }
.builder .suggestion-swipe-card.is-including { opacity: 0; transform: translateX(115%) rotate(10deg); }
.builder .suggestion-swipe-card.is-skipping { opacity: 0; transform: translateX(-115%) rotate(-10deg); }
.builder .suggestion-swipe-card.is-favoriting { opacity: 0; transform: translateY(-7%) scale(.76); }
.suggestion-swipe-image-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--sage); }
.builder .suggestion-swipe-card .suggestion-card-image,
.builder.builder-wide .suggestion-swipe-card .suggestion-card-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transform: scale(1.015);
}
.builder .suggestion-swipe-card .suggestion-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 11px;
  padding: clamp(22px, 3vw, 42px);
  overflow: hidden;
  user-select: text;
}
.builder .suggestion-swipe-card .suggestion-card-top { display: flex; flex-wrap: wrap; gap: 9px; }
.builder .suggestion-swipe-card .suggestion-card-top strong { font: 600 clamp(25px, 2.5vw, 39px)/1.08 "Fraunces", serif; }
.builder .suggestion-swipe-card .suggestion-card-meta { color: #8a6500; font-size: 11px; line-height: 1.4; }
.builder .suggestion-swipe-card .suggestion-card-detail { flex: 0 1 auto; min-height: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; color: #58615f; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.6; }
.builder .suggestion-swipe-card .suggestion-card-links { display: grid; gap: 7px; margin-top: auto; }
.builder .suggestion-swipe-card .suggestion-map-link,
.builder .suggestion-swipe-card .source-credit { width: fit-content; color: var(--forest); font-size: 10px; font-weight: 800; }
/* Legacy multi-card rules carry more selector weight than the v4 deck. Keep the
   one-card presentation authoritative without removing styles still used by
   older exported guides. */
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-image {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-body {
  gap: 11px;
  padding: clamp(22px, 3vw, 42px);
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-top strong {
  font: 600 clamp(25px, 2.5vw, 39px)/1.08 "Fraunces", serif;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-meta {
  font-size: 11px;
  line-height: 1.4;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-detail {
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.6;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-links {
  gap: 7px;
  padding: 0;
}
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-map-link,
.builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .source-credit {
  font-size: 10px;
}
.suggestion-selected-badge {
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 999px;
  color: #174c40;
  background: #dbe5d8;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.suggestion-selected-badge.favorite {
  color: #6a4b00;
  background: #fff0b8;
}
.suggestion-deck-progress {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: white;
  background: rgba(17, 29, 38, .58);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.suggestion-decision-overlay {
  position: absolute;
  inset: clamp(12px, 2vw, 24px);
  z-index: 6;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border: 4px solid currentColor;
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity .12s ease;
}
.suggestion-decision-overlay > span { font-size: clamp(34px, 5vw, 66px); line-height: 1; }
.suggestion-decision-overlay > strong { font: 900 clamp(25px, 4vw, 52px)/1 "DM Sans", sans-serif; letter-spacing: .08em; }
.suggestion-decision-overlay.skip { color: #b72834; background: rgba(255, 90, 100, .18); opacity: var(--skip-progress, 0); transform: rotate(-2deg); }
.suggestion-decision-overlay.include { color: #087e50; background: rgba(52, 205, 137, .18); opacity: var(--include-progress, 0); transform: rotate(2deg); }
.suggestion-decision-overlay.favorite { color: #8c6200; background: rgba(255, 211, 75, .22); }
.suggestion-swipe-card.show-skip-decision .suggestion-decision-overlay.skip,
.suggestion-swipe-card.show-include-decision .suggestion-decision-overlay.include,
.suggestion-swipe-card.show-favorite-decision .suggestion-decision-overlay.favorite {
  opacity: 1;
  animation: suggestionDecisionPop .22s cubic-bezier(.18, .9, .22, 1.25) both;
}
@keyframes suggestionDecisionPop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; } }
.suggestion-swipe-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.6vw, 20px);
}
.suggestion-swipe-actions .suggestion-action-button {
  display: grid;
  width: 60px;
  height: 60px;
  min-height: 60px;
  padding: 0;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
  background: #fffdf8;
  box-shadow: 0 8px 20px rgba(28, 31, 38, .11);
  font: 900 27px/1 "DM Sans", sans-serif;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.suggestion-swipe-actions .suggestion-action-button:hover:not(:disabled) { transform: translateY(-3px) scale(1.04); box-shadow: 0 11px 24px rgba(28, 31, 38, .17); }
.suggestion-swipe-actions .suggestion-action-button:focus-visible { outline: 3px solid rgba(37, 75, 122, .42); outline-offset: 3px; }
.suggestion-redo-button { color: #ba8500; background: #fff9df !important; }
.suggestion-skip-button { color: #d64d57; background: #fff7f7 !important; }
.suggestion-include-button { color: #239d6b; background: #f2fff8 !important; }
.suggestion-favorite-button { color: #2f83d1; background: #f3f9ff !important; }
.suggestion-undo-button { color: #ba8500; }
.suggestion-undo-button:disabled { cursor: default; opacity: .42; }
.suggestion-swipe-hint { margin: 0; color: var(--muted); font-size: 10px; text-align: center; }
.suggestion-swipe-hint strong:first-of-type { color: #a64b42; }
.suggestion-swipe-hint strong:last-of-type { color: var(--forest); }
.suggestion-deck-complete {
  display: grid;
  height: 100%;
  min-height: 0;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 34px;
  border: 1px solid #cbd8c8;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(145deg, #f8f5ed, #e8efd9);
  box-shadow: 0 20px 55px rgba(28, 31, 38, .11);
}
.suggestion-deck-complete > span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: white; background: var(--forest); font-size: 28px; }
.suggestion-deck-complete h4 { margin: 3px 0 0; color: var(--ink); font: 600 31px "Fraunces", serif; }
.suggestion-deck-complete p { max-width: 510px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.suggestion-review-button { min-height: 42px; margin-top: 4px; padding: 8px 16px; border: 1px solid var(--forest); border-radius: 999px; color: var(--forest); background: white; cursor: pointer; font-weight: 800; }

/* On desktop the location photo already fills its card, but short browser
   windows can leave the flexible card row too shallow. Give the recommendation
   a useful photographic minimum and let only low-height desktops scroll rather
   than clipping the action rail or workflow navigation. */
@media (min-width: 761px) {
  .builder.builder-wide:has(> .trip-form[data-current-step="2"]) {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] [data-form-step="2"].active {
    height: max-content;
    min-height: max-content;
    grid-template-rows: auto;
    align-self: start;
    overflow: visible;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-board,
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group,
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-shell {
    height: auto;
    overflow: visible;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-shell {
    grid-template-rows: auto auto auto;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-deck {
    height: clamp(250px, 34dvh, 330px);
    min-height: clamp(250px, 34dvh, 330px);
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: clamp(18px, 2vw, 30px);
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-body > * {
    grid-column: 1;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-top strong {
    font: 600 clamp(24px, 2.1vw, 34px)/1.06 "Fraunces", serif;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-detail {
    align-self: start;
    font-size: clamp(13px, .95vw, 16px);
    line-height: 1.4;
    -webkit-line-clamp: 3;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-links {
    min-width: 0;
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  .builder:not(.builder-wide) #startSplash.start-splash { padding: 28px 20px; }
  .builder:not(.builder-wide) #startSplash .builder-hero-lockup { grid-template-columns: 1fr; justify-items: center; gap: 20px; text-align: center; }
  .builder:not(.builder-wide) #startSplash .home-brand-lockup { gap: 8px; }
  .builder:not(.builder-wide) #startSplash .home-brand-lockup > span { width: 132px; height: 132px; }
  .builder:not(.builder-wide) #startSplash .home-brand-lockup strong { font-size: 18px; }
  .builder:not(.builder-wide) #startSplash .builder-hero-message .eyebrow { font-size: 9px; }
  .builder:not(.builder-wide) #startSplash .builder-hero-message h1 { font-size: clamp(36px, 11vw, 52px); }
  .builder:not(.builder-wide) #startSplash .builder-hero-message .lede { margin-inline: auto; font-size: 12px; }
  .start-splash-actions { justify-items: center; margin-top: 24px; }

  .builder.builder-wide .trip-form[data-current-step="2"] {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 12px 13px 14px;
  }
  .builder.builder-wide .trip-form[data-current-step="2"] .step-row { padding-bottom: 8px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress { margin: 7px 0 9px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .security-note { display: none; }
  .builder.builder-wide .trip-form[data-current-step="2"] .privacy-disclosure { display: none; }
  .builder.builder-wide .trip-form[data-current-step="2"] [data-form-step="2"].active { grid-template-rows: auto auto minmax(0, 1fr) auto auto auto; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro { padding: 5px 0 4px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro .eyebrow { margin-bottom: 2px; font-size: 9px; line-height: 1.3; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro h2 { font-size: clamp(21px, 6vw, 27px); }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-intro > p:last-child { margin-top: 3px; font-size: 9px; line-height: 1.35; }
  .builder.builder-wide .trip-form[data-current-step="2"] .starter-suggestion-note { padding: 6px 8px; font-size: 8px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar { flex-direction: row; align-items: center; margin: 2px 0 6px; padding: 7px 9px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar strong { font-size: 9px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar span { display: none; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-toolbar button { width: auto; min-height: 34px; padding: 6px 11px; font-size: 9px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group { gap: 4px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group-heading { margin-bottom: 0; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group-heading > span { width: 25px; height: 25px; font-size: 13px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-group-heading h3 { font-size: 11px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-shell { gap: 5px; }
  /* Mobile: stack the photo above the description instead of beside it, and stop the
     description from being its own scroll container so horizontal swipes are never
     captured as a vertical scroll. */
  .builder .suggestion-swipe-card,
  .builder.builder-wide .suggestion-swipe-card { min-height: 0; grid-template-columns: 1fr; grid-template-rows: minmax(0, 44%) minmax(0, 1fr); border-radius: 14px; }
  .builder .suggestion-swipe-card .suggestion-card-body { overflow: hidden; touch-action: pan-y; }
  .builder .suggestion-swipe-card .suggestion-card-detail { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-body { gap: 7px; padding: 13px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-top strong { font: 700 18px/1.12 "DM Sans", sans-serif; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-meta { font-size: 10px; line-height: 1.35; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-detail { font-size: 12px; line-height: 1.45; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-links { gap: 4px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-map-link,
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .source-credit { font-size: 9px; }
  .suggestion-selected-badge { padding: 3px 5px; font-size: 9px; }
  .suggestion-deck-progress { top: 8px; right: 8px; padding: 4px 7px; font-size: 10px; }
  .suggestion-decision-overlay { inset: 8px; border-width: 3px; border-radius: 12px; }
  .suggestion-decision-overlay > span { font-size: 31px; }
  .suggestion-decision-overlay > strong { font-size: 24px; }
  .suggestion-swipe-actions { gap: clamp(8px, 4vw, 15px); }
  .suggestion-swipe-actions .suggestion-action-button { width: 48px; height: 48px; min-height: 48px; font-size: 22px; }
  .suggestion-swipe-hint { font-size: 9px; }
  .suggestion-deck-complete { min-height: 0; padding: 18px; border-radius: 14px; }
  .suggestion-deck-complete > span { width: 40px; height: 40px; font-size: 20px; }
  .suggestion-deck-complete h4 { font-size: 22px; }
  .suggestion-deck-complete p { font-size: 10px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .selection-summary { margin-top: 5px; padding: 6px 9px; font-size: 11px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .preference-actions { margin-top: 6px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .preference-actions .icon-nav-button { min-height: 48px; }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-footnote { display: none; }
}

@media (max-width: 430px) and (max-height: 740px) {
  .builder.builder-wide .trip-form[data-current-step="2"] .security-note { display: none; }
  .builder.builder-wide .trip-form[data-current-step="2"] .form-progress span { height: 54px; }
  .builder .suggestion-swipe-card,
  .builder.builder-wide .suggestion-swipe-card { grid-template-columns: 1fr; grid-template-rows: minmax(0, 38%) minmax(0, 1fr); }
  .builder.builder-wide .trip-form[data-current-step="2"] .suggestion-swipe-card .suggestion-card-detail { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .start-splash,
  .start-splash.is-leaving,
  .start-splash-progress i,
  .trip-form.v4-reveal,
  .suggestion-swipe-card,
  .suggestion-decision-overlay { animation: none !important; transition-duration: .01ms !important; }
}

/* Post-Step-4 creation transition — cream canvas with the animated logo and brand line
   centered, and the five "what we create" cards fading in at distributed spots around the
   words (two above, three below; the wide brand line leaves no room on the sides).
   These higher-specificity rules supersede the earlier orbiting-card treatment. */
.trip-creation-transition {
  background:
    radial-gradient(circle at 17% 18%, rgba(237, 188, 49, .19), transparent 28%),
    radial-gradient(circle at 84% 80%, rgba(38, 125, 117, .18), transparent 30%),
    radial-gradient(circle at 50% 42%, #fffdf7 0, #f5efe0 49%, #dfe9e6 100%);
  color: #17231f;
}
.trip-creation-transition::before,
.trip-creation-transition::after { display: none; }
/* Center-stage centered again; cards overlay the whole card and sit around it. */
.trip-creation-transition .trip-creation-transition-card {
  grid-auto-flow: initial;
  gap: 0;
  place-content: center;
  place-items: center;
  height: min(720px, calc(100dvh - 32px));
}
.trip-creation-transition .creation-center-stage { width: min(560px, 84vw); }
.trip-creation-transition .creation-center-stage > img {
  width: clamp(92px, 11vw, 128px);
  height: clamp(92px, 11vw, 128px);
}
.trip-creation-transition .creation-center-stage > .eyebrow {
  color: #8a6500;
  font-size: clamp(9px, 1vw, 11px);
}
.trip-creation-transition .creation-center-stage .trip-creation-brand-line {
  color: #173e35;
  font-size: clamp(26px, 4.2vw, 46px);
}
.trip-creation-transition .creation-output-stack {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.trip-creation-transition .creation-output-card {
  --sx: 0px;
  --sy: 0px;
  position: absolute;
  top: 50%;
  left: 50%;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 4px;
  width: clamp(220px, 22vw, 300px);
  min-height: 0;
  padding: 13px 16px 13px 20px;
  border: 1px solid rgba(36, 89, 76, .18);
  border-radius: 16px;
  color: #173e35;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(246, 239, 215, .9));
  box-shadow: 0 18px 40px rgba(18, 52, 71, .16);
  backdrop-filter: none;
  filter: none;
  opacity: 0;
  transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(.92);
}
.trip-creation-transition .creation-output-card strong { color: #173e35; font-size: 13.5px; line-height: 1.2; }
.trip-creation-transition .creation-output-card span { color: #59645f; font-size: 10.5px; line-height: 1.35; }
/* Distributed spots around the centered words: two above, three below. */
.trip-creation-transition .creation-output-card:nth-child(1) { --sx: clamp(-360px, -27vw, -250px); --sy: -248px; }
.trip-creation-transition .creation-output-card:nth-child(2) { --sx: clamp(250px, 27vw, 360px);   --sy: -248px; }
.trip-creation-transition .creation-output-card:nth-child(3) { --sx: clamp(-360px, -27vw, -250px); --sy: 232px; }
.trip-creation-transition .creation-output-card:nth-child(4) { --sx: 0px;                          --sy: 232px; }
.trip-creation-transition .creation-output-card:nth-child(5) { --sx: clamp(250px, 27vw, 360px);   --sy: 232px; }
.trip-creation-transition.is-running .creation-output-card {
  animation: creationCardSpotIn .5s cubic-bezier(.2, .8, .24, 1) both;
  animation-delay: calc(.5s + (var(--creation-card-index) * .5s));
}
@keyframes creationCardSpotIn {
  from { opacity: 0; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy) + 16px)) scale(.9); }
  to   { opacity: 1; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(1); }
}
/* Phones: the words and cards stack vertically — two above, three below. */
@media (max-width: 760px) {
  .trip-creation-transition .creation-center-stage { width: min(340px, 86vw); }
  .trip-creation-transition .creation-output-card { width: clamp(230px, 80vw, 320px); padding: 11px 14px 11px 18px; }
  .trip-creation-transition .creation-output-card strong { font-size: 12.5px; }
  .trip-creation-transition .creation-output-card span { font-size: 10px; }
  .trip-creation-transition .creation-output-card:nth-child(1) { --sx: 0px; --sy: clamp(-262px, -33vh, -206px); }
  .trip-creation-transition .creation-output-card:nth-child(2) { --sx: 0px; --sy: clamp(-182px, -23vh, -140px); }
  .trip-creation-transition .creation-output-card:nth-child(3) { --sx: 0px; --sy: clamp(150px, 20vh, 188px); }
  .trip-creation-transition .creation-output-card:nth-child(4) { --sx: 0px; --sy: clamp(226px, 28vh, 270px); }
  .trip-creation-transition .creation-output-card:nth-child(5) { --sx: 0px; --sy: clamp(302px, 36vh, 352px); }
}
@media (prefers-reduced-motion: reduce) {
  .trip-creation-transition.is-running .creation-output-card { animation: none; opacity: 1; }
}

/* Quick-pick prefill chips (Travel style + Constraints steps) */
.quick-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick-pick {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 12px "DM Sans", sans-serif;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.quick-pick:hover { border-color: var(--forest); }
.quick-pick.is-active { border-color: var(--forest); color: #fff; background: var(--forest); }
.quick-pick.is-active::before { content: "✓ "; }
.quick-pick:focus-visible { outline: 2px solid rgba(37, 75, 122, .4); outline-offset: 1px; }

/* ── Public-beta tooling: in-app footnote, feedback form, hidden metrics report ── */
.app-footnote {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 12px max(6px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  font-size: 10px;
}

/* Feedback dialog (reuses .export-dialog base) */
.feedback-dialog .feedback-category {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 0;
  border: 0;
}
.feedback-dialog .feedback-category label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.feedback-dialog .feedback-category input { accent-color: var(--forest); }
.feedback-dialog .feedback-category label:has(input:checked) {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--sage);
}
.feedback-dialog .feedback-field { display: block; margin-bottom: 12px; }
.feedback-dialog .feedback-field > span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--ink); }
.feedback-dialog .feedback-field > span em { color: var(--muted); font-weight: 500; }
.feedback-dialog .feedback-field input,
.feedback-dialog .feedback-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  resize: vertical;
}
.feedback-dialog .feedback-field input:focus,
.feedback-dialog .feedback-field textarea:focus { outline: 2px solid rgba(36,89,76,.4); outline-offset: 1px; }
.feedback-dialog .feedback-status { min-height: 16px; margin: 4px 0 10px; color: var(--forest); font-size: 12px; font-weight: 600; }

/* Hidden metrics report overlay (opened via #beta-metrics or Ctrl/Cmd+Shift+M) */
#ptgMetricsOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: start center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(8,18,15,.72);
  backdrop-filter: blur(4px);
}
#ptgMetricsOverlay .ptg-metrics-card {
  position: relative;
  width: min(720px, 100%);
  padding: 26px clamp(18px,3vw,32px) 30px;
  border-radius: 16px;
  color: #16211d;
  background: #fffdf8;
  box-shadow: 0 28px 90px rgba(0,0,0,.4);
  font-family: "DM Sans", system-ui, sans-serif;
}
#ptgMetricsOverlay h2 { margin: 0 0 6px; font: 600 24px/1.1 "Fraunces", serif; }
#ptgMetricsOverlay h3 { margin: 20px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #6b7b6f; }
#ptgMetricsOverlay .ptg-metrics-note { margin: 0 0 14px; font-size: 12px; line-height: 1.5; color: #4b5750; }
#ptgMetricsOverlay .ptg-metrics-note a { color: var(--forest); font-weight: 700; }
#ptgMetricsOverlay .ptg-metrics-stats { display: flex; flex-wrap: wrap; gap: 10px; }
#ptgMetricsOverlay .ptg-metrics-stats span {
  display: flex; flex-direction: column; flex: 1 1 140px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7f5ee; font-size: 11px; color: #6b7b6f;
}
#ptgMetricsOverlay .ptg-metrics-stats b { font-family: "Fraunces", serif; font-size: 18px; color: #16211d; }
#ptgMetricsOverlay .ptg-metrics-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#ptgMetricsOverlay .ptg-metrics-table td { padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: top; }
#ptgMetricsOverlay .ptg-metrics-table .ptg-num { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
#ptgMetricsOverlay .ptg-metrics-events td { font-size: 11px; color: #4b5750; word-break: break-word; }
#ptgMetricsOverlay .ptg-metrics-actions { display: flex; gap: 10px; margin-top: 18px; }
#ptgMetricsOverlay .ptg-metrics-actions button {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font: 700 12px "DM Sans", sans-serif;
}
#ptgMetricsOverlay .ptg-metrics-actions button:hover { border-color: var(--forest); color: var(--forest); }
#ptgMetricsOverlay .ptg-metrics-close {
  position: absolute; right: 14px; top: 10px; border: 0; background: transparent; color: #6b7b6f; font-size: 26px; line-height: 1; cursor: pointer;
}
