/* Shared visual layer for the public site and trip workspace. */
html { scroll-behavior: smooth; }
body { font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { min-width: 0; }
button { line-height: 1.4; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #9bbbff;
  outline-offset: 3px;
}
::selection { color: #fff; background: var(--accent); }
:where(h1, h2, h3, p, strong, span, small) { overflow-wrap: anywhere; }
.icon { align-items: center; justify-content: center; }
.icon svg { stroke-width: 1.8; }
.meta, .table-meta, .form-label, .section-head p { font-size: 14px; }

/* Public homepage: an open photograph, followed by an unframed route. */
body[data-current-view="home"], .home-page { color: var(--text); background: #fff; }
.home-nav {
  min-height: 88px;
  padding: 16px max(32px, calc((100% - 1376px) / 2));
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  z-index: 10;
}
.home-brand { gap: 0; }
.home-brand-mark, .brand-mark {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  color: var(--accent);
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}
.home-brand-mark { width: 180px; height: 60px; }
.home-brand-mark img, .brand-mark img { transform: none; }
.home-brand-copy { display: none; }
.home-nav-links { gap: 36px; }
.home-nav-link { padding: 14px 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.home-nav-link:hover, .home-nav-link:focus-visible, .home-nav-link.is-active { color: var(--ink); }
.home-nav-link.is-active::after { height: 3px; bottom: 4px; background: var(--accent); }
.home-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  max-width: 190px;
  padding: 9px 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.home-nav-cta .account-chevron { color: #fff; }
.home-nav-cta:hover, .home-nav-cta:focus-visible { color: #fff; border-color: var(--accent); background: var(--accent); }
.home-hero {
  display: flex;
  align-items: center;
  height: min(720px, calc(100svh - 170px));
  min-height: 470px;
  padding: 48px max(40px, calc((100% - 1344px) / 2));
  background: #08618c url("./assets/waylo-coast.jpg") center 54% / cover no-repeat;
}
.home-hero-copy { width: min(100%, 640px); max-width: none; text-shadow: 0 2px 8px rgba(0, 34, 56, .2); }
.home-kicker { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.home-hero .home-kicker { color: #fff; font-size: 13px; }
.home-hero h1 { margin: 14px 0 22px; font-size: 104px; line-height: 1; font-weight: 800; letter-spacing: 0; }
.home-hero-lead { margin-bottom: 18px; max-width: none; color: #fff; font-size: 32px; line-height: 1.5; font-weight: 600; }
.home-hero-detail { max-width: 450px; color: #fff; font-size: 16px; line-height: 1.7; margin-bottom: 0; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.home-primary-button, .home-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  transition: background .18s, color .18s, transform .18s;
}
.home-primary-button { color: var(--ink); border: 1px solid #fff; background: #fff; }
.home-primary-button > span { font-size: 22px; line-height: 1; color: var(--accent); }
.home-secondary-button { border: 1px solid rgba(255, 255, 255, .75); color: #fff; background: rgba(0, 36, 63, .1); }
.home-primary-button:hover, .home-primary-button:focus-visible { color: var(--accent); background: #f2f6ff; transform: translateY(-2px); }
.home-secondary-button:hover, .home-secondary-button:focus-visible { color: var(--ink); background: #fff; transform: translateY(-2px); }
.home-trust-row { margin-top: 22px; gap: 16px; color: #fff; font-size: 13px; font-weight: 500; }
.home-trust-row span + span { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .5); }
.home-hero-caption { bottom: 30px; right: 40px; gap: 5px; color: #fff; text-align: right; text-shadow: 0 2px 5px rgba(0, 0, 0, .45); }
.home-hero-caption span { font-size: 12px; letter-spacing: 0; }
.home-hero-caption strong { font-size: 16px; font-weight: 500; }
.home-route-showcase { padding: 40px max(40px, calc((100% - 1344px) / 2)) 48px; scroll-margin-top: 20px; background: #fff; }
.home-route-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.home-route-heading h2 { margin: 9px 0 7px; font-size: 32px; line-height: 1.3; }
.home-route-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.home-route-heading p > span { margin-inline: 10px; color: var(--accent); }
.home-route-meta { display: grid; justify-items: end; gap: 10px; font-size: 13px; color: var(--muted); }
.home-route-stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 30px; }
.home-route-stop { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.home-route-stop::before { content: ""; position: absolute; left: 0; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.home-route-stop:nth-child(2)::before { background: #dc734b; }
.home-route-stop:nth-child(3)::before { background: #15938a; }
.home-route-day { color: var(--accent); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.home-route-stop:nth-child(2) .home-route-day { color: #aa422e; }
.home-route-stop:nth-child(3) .home-route-day { color: #087b73; }
.home-route-stop h3 { margin-top: 9px; font-size: 18px; font-weight: 650; }
.home-route-stop p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.home-inspiration { padding: 24px max(40px, calc((100% - 1344px) / 2)) 64px; background: #fff; }
.home-inspiration-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 32px; }
.home-landscape { min-width: 0; margin: 0; }
.home-landscape:nth-child(2) { margin-top: 56px; }
.home-landscape img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.home-landscape figcaption { padding-top: 20px; }
.home-landscape figcaption span { color: #087b73; font-size: 14px; font-weight: 600; }
.home-landscape:nth-child(2) figcaption span { color: #aa422e; }
.home-landscape h3 { margin: 8px 0; color: var(--ink); font-size: 23px; line-height: 1.5; }
.home-landscape p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.home-image-credit { margin: 24px 0 0; text-align: right; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .home-inspiration { padding: 24px 24px 40px; }
  .home-inspiration-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-landscape:nth-child(2) { margin-top: 0; }
  .home-landscape h3 { font-size: 21px; }
}
.home-pathways { padding: 66px max(40px, calc((100% - 1344px) / 2)); background: #f6f7f9; color: var(--ink); }
.home-section-heading { margin-bottom: 36px; }
.home-section-heading .home-kicker, .home-bottom-cta .home-kicker { color: var(--muted); }
.home-section-heading h2, .home-bottom-cta h2 { margin: 12px 0 0; color: var(--ink); font-size: 34px; line-height: 1.4; }
.home-pathway-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; max-width: none; }
.home-pathway { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 16px; min-height: 0; padding: 24px 0 0; border-top: 1px solid #cdd2da; }
.home-pathway-index { color: #8a909b; font-size: 14px; font-weight: 500; }
.home-pathway > .icon { width: 30px; height: 30px; margin: 0; color: var(--accent); }
.home-pathway > .icon svg { width: 30px; height: 30px; }
.home-pathway:nth-child(2) > .icon { color: #b64e35; }
.home-pathway:nth-child(3) > .icon { color: #087f8c; }
.home-pathway h3 { grid-column: 1 / -1; margin: 0; font-size: 21px; color: var(--ink); }
.home-pathway p { grid-column: 1 / -1; max-width: 310px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.home-bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 64px max(40px, calc((100% - 1344px) / 2)); background: #fff; border: 0; color: var(--ink); }
.home-bottom-cta .home-primary-button { color: #fff; border-color: var(--accent); background: var(--accent); }
.home-bottom-cta .home-primary-button > span { color: #fff; }
.home-bottom-cta .home-primary-button:hover, .home-bottom-cta .home-primary-button:focus-visible { background: var(--accent-hover); }
.home-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px max(40px, calc((100% - 1344px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.home-footer strong { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; color: var(--ink); font-size: 21px; }
.home-footer strong span { color: var(--muted); font-size: 13px; font-weight: 400; }

/* Workspace chrome and repeated content. */
.app-shell { grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { padding: 26px 16px; gap: 30px; color: var(--text); background: #fff; border-right: 1px solid var(--line); }
.brand { display: block; border-bottom: 0; padding: 0 4px; cursor: pointer; }
.brand-mark { width: 180px; height: 64px; }
.brand > div:last-child { display: none; }
.brand strong { color: var(--ink); font-size: 20px; }
.brand span { color: var(--muted); font-size: 12px; }
.nav-list { gap: 8px; }
body[data-current-view="editor"] .brand { display: grid; grid-template-columns: 44px; justify-content: center; }
body[data-current-view="editor"] .brand-mark { width: 44px; height: 44px; overflow: hidden; }
body[data-current-view="editor"] .brand-mark img {
  width: 106px;
  max-width: none;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}
.nav-item { min-height: 46px; padding: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-item:hover, .nav-item:focus-visible { border-color: transparent; color: var(--ink); background: var(--panel-alt); }
.nav-item.active { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
.nav-item.active .icon { color: var(--accent); }
.main-shell { padding: 0 28px 36px; }
.topbar { min-height: 96px; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.topbar h1 { font-size: 25px; font-weight: 750; }
.topbar .eyebrow { font-size: 12px; color: var(--muted); }
.top-actions { gap: 10px; }
.notice-row { margin: 20px 0; padding: 16px 18px; border: 0; border-left: 3px solid #e8ac4d; border-radius: 0; background: #fff; }
.notice-row strong { color: var(--ink); }
.status-pills > span { border: 0; border-radius: 4px; background: var(--panel-alt); color: var(--muted); font-size: 12px; }
.status-pills b { color: var(--ink); }
.trip-tabs { margin-top: 12px; padding: 0; gap: 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.trip-tabs-label { color: var(--muted); font-size: 13px; }
.trip-tabs-list { gap: 14px; }
.trip-tab { min-height: 46px; padding: 11px 4px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-size: 14px; white-space: nowrap; }
.trip-tab.active { color: var(--accent); background: transparent; border-color: var(--accent); }
.trip-tab:hover { color: var(--accent); background: transparent; }
.primary-button, .ghost-button, .quiet-button, .account-button { min-height: 42px; padding: 9px 14px; font-size: 14px; font-weight: 600; }
.primary-button { border-color: var(--accent); background: var(--accent); color: #fff; }
.primary-button:hover, .primary-button:focus-visible { border-color: var(--accent-hover); background: var(--accent-hover); transform: none; }
.ghost-button, .quiet-button { background: #fff; }
.ghost-button:hover, .quiet-button:hover { border-color: var(--line-strong); color: var(--ink); background: var(--panel-alt); transform: none; }
.icon-button { width: 34px; height: 34px; min-height: 34px; flex: 0 0 34px; border: 0; color: var(--muted); background: var(--panel-alt); }
.icon-button:hover { color: var(--accent); background: var(--accent-soft); }
.danger-button { color: var(--coral); border-color: var(--coral-line); background: #fff; }
.danger-button:hover { color: var(--coral-ink); border-color: var(--coral-line); background: var(--coral-quiet); }
.restore-button { color: var(--accent); border-color: #c7d8fd; background: var(--accent-soft); }
.module-panel, .module-section, .side-panel { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.module-section { overflow: visible; }
.module-panel { padding: 0; }
.section-head { padding: 18px 0 22px; border-bottom: 0; gap: 18px; }
.section-head h2 { margin-bottom: 6px; font-size: 22px; }
.section-body { padding: 0; }
.workspace-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; }
.side-panel { padding: 20px 0 20px 24px; border-left: 1px solid var(--line); }
.side-panel h2 { font-size: 18px; }
.metrics-grid { gap: 0; padding: 22px 0; margin-bottom: 12px; border-block: 1px solid var(--line); }
.metric { padding: 0 20px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric > span { font-size: 13px; color: var(--muted); }
.metric strong { margin: 10px 0 6px; color: var(--ink); font-size: 30px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric .meta { font-size: 12px; }
.workspace-guide { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 20px 0; gap: 20px; border: 0; border-radius: 0; background: transparent; }
.workspace-guide h2 { margin: 0 0 6px; font-size: 20px; }
.workspace-guide p { margin: 0; font-size: 14px; color: var(--muted); }
.trip-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.trip-card { display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 18px; border-color: var(--line); background: #fff; transition: border-color .18s, box-shadow .18s; }
.trip-card:hover { border-color: #bdc8dc; box-shadow: 0 8px 24px rgba(32, 33, 36, .05); }
.trip-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.trip-card .meta { line-height: 1.8; }
.trip-card .trip-actions { margin-top: auto; padding-top: 18px; }
.trip-card .tag-row { padding-bottom: 16px; }
.trip-thumb { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 110px; padding: 18px; border: 0; margin-bottom: 18px; background: var(--accent-soft); color: var(--accent); }
.trip-thumb > div { min-width: 0; }
.trip-thumb span:not(.icon) { display: block; color: #6480ab; font-size: 12px; margin-bottom: 8px; }
.trip-thumb strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 17px; line-height: 1.4; }
.trip-thumb > .icon, .trip-thumb > .icon svg { width: 28px; height: 28px; flex-basis: 28px; }
.trip-card:nth-child(3n + 2) .trip-thumb { color: #a3482f; background: #fff0e8; }
.trip-card:nth-child(3n + 2) .trip-thumb span:not(.icon) { color: #9e6956; }
.trip-card:nth-child(3n) .trip-thumb { color: #107b72; background: #eaf6f4; }
.trip-card:nth-child(3n) .trip-thumb span:not(.icon) { color: #5c807a; }
.progress-track, .bar-track { height: 5px; margin-top: 16px; border: 0; background: #ebedf1; }
.progress-track span, .bar-track span { border-radius: inherit; }
.tag { min-height: 25px; border-radius: 4px; font-size: 12px; }
.route-summary, .budget-summary, .mini-panel { border-color: var(--line); box-shadow: none; }
.summary-line { padding-block: 12px; font-size: 14px; }
.module-card, .choice-button, .export-card, .suggestion-card { background: #fff; }
.module-card:hover { border-color: #bfd2fc; background: var(--accent-soft); }
.empty-state { padding: 28px; line-height: 1.7; border-color: var(--line-strong); background: transparent; }
.example-trip-card { background: #fff; }
.example-timeline strong { font-size: 14px; }
.example-timeline small { font-size: 12px; white-space: normal; }

/* Forms and account dialogs share comfortable, consistent controls. */
.two-column-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 32px; }
.form-grid { gap: 22px 20px; }
.field { min-width: 0; gap: 8px; }
.field input, .field select, .field textarea, .date-select-button { min-height: 48px; padding: 12px 14px; border-color: #d5d9e1; background: #fff; font-size: 15px; }
.field input:hover, .field select:hover, .date-select-button:hover { border-color: #aab5c8; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid #dce8ff; outline-offset: 1px; }
.field input::placeholder, .field textarea::placeholder { color: #87909e; }
.form-label { color: var(--text); font-weight: 600; }
.create-flow { max-width: 1180px; margin-inline: auto; }
.create-flow .section-body { padding: 0 0 30px; }
.create-progress { padding-bottom: 24px; margin-bottom: 28px; }
.create-progress-head { font-size: 14px; }
.create-progress-track { height: 4px; background: #e5e9f0; }
.create-step-list { gap: 16px; margin-top: 20px; }
.create-step > span { width: 30px; height: 30px; flex-basis: 30px; border-color: var(--line); background: #fff; font-size: 13px; }
.create-step strong { font-size: 14px; }
.create-step small { font-size: 12px; }
.create-step.active > span, .create-step.complete > span { color: #fff; background: var(--accent); border-color: var(--accent); }
.date-range-group { gap: 20px; }
.create-date-picker { max-height: min(460px, calc(100svh - 40px)); border-color: var(--line); box-shadow: var(--shadow); overscroll-behavior: contain; }
.calendar-day { min-height: 34px; font-size: 14px; }
.calendar-weekdays { font-size: 12px; }
.create-flow-actions { flex-wrap: wrap; gap: 16px; margin-top: 30px; padding-top: 24px; }
.create-route-actions { flex-wrap: wrap; gap: 12px; }
.signed-in-note, .local-data-alert { border: 0; border-left: 3px solid #e7ac48; border-radius: 0; font-size: 14px; }
.signed-in-note { background: var(--accent-soft); border-left-color: var(--accent); }
.create-preview-note { border: 0; border-radius: 0; background: transparent; padding: 18px 0; }
.account-menu { color: var(--text); box-shadow: var(--shadow); }
.account-avatar { color: #fff; background: var(--accent); letter-spacing: 0; font-size: 13px; }
.account-menu-note, .account-form-note { font-size: 13px; }
.account-modal-backdrop, .preview-backdrop { background: rgba(32, 33, 36, .48); backdrop-filter: blur(5px); }
.account-dialog { width: min(480px, 100%); max-height: calc(100svh - 40px); box-shadow: 0 24px 72px rgba(32, 33, 36, .2); }
.account-dialog-head { padding: 28px 28px 22px; }
.account-dialog-head h2 { margin-top: 6px; font-size: 28px; }
.account-form, .account-profile { gap: 20px; padding: 26px 28px; }
.account-form .field > span { font-size: 14px; font-weight: 600; }
.account-form .input-with-icon input { padding-left: 46px; }
.account-form .input-with-icon .icon { left: 15px; }
.account-submit { min-height: 48px; }
.account-switch { padding: 0 24px 28px; font-size: 14px; flex-wrap: wrap; }
.account-errors { font-size: 14px; }
.account-profile-grid > div { border: 0; border-radius: 4px; }

/* Daily planning stays compact, with clear city, day and traffic hierarchy. */
body[data-current-view="editor"] .main-shell { padding-inline: 20px; }
.planner-workbench { gap: 20px; }
.planner-mode-bar { padding: 10px 0 16px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; }
.mode-switch { gap: 3px; padding: 4px; border-color: var(--line); background: #eaedf2; }
.mode-switch button { min-height: 36px; padding: 6px 12px; border-radius: 5px; color: var(--muted); font-size: 14px; font-weight: 600; }
.mode-switch button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(32, 33, 36, .08); }
.planner-grid { grid-template-columns: 180px minmax(0, 1fr) 310px; gap: 20px; }
.planner-day-rail { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.planner-board { min-width: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.planner-resource-panel { min-width: 0; padding: 0 0 0 18px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.day-rail-list { gap: 8px; }
.add-day-button { min-height: 42px; border-radius: 6px; color: var(--accent); font-size: 14px; }
.day-rail-card { grid-template-columns: minmax(0, 1fr) 28px; min-height: 86px; padding: 8px 4px 8px 8px; border-color: transparent; background: transparent; gap: 4px; }
.day-rail-select { grid-template-columns: 36px minmax(0, 1fr); gap: 9px; }
.day-rail-tools { gap: 2px; }
.day-delete-button, .drag-handle { width: 26px; height: 26px; }
.day-rail-card:hover { background: #edf0f5; }
.day-rail-card.active { border-color: #c4d6ff; background: var(--accent-soft); }
.day-badge { width: 34px; height: 34px; border-radius: 6px; color: var(--muted); background: #e7eaf0; font-size: 12px; font-weight: 700; }
.day-rail-card.active .day-badge { color: #fff; background: var(--accent); }
.day-rail-card small { font-size: 12px; }
.day-rail-card strong { font-size: 14px; font-weight: 600; line-height: 1.6; }
.planner-day-header { padding: 22px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.day-route-input { gap: 9px; }
.day-route-input strong { font-size: 22px; line-height: 1.5; }
.date-link, .text-link { font-size: 14px; font-weight: 600; }
.planner-actions { justify-content: flex-start; gap: 8px; }
.planner-actions .ghost-button { min-height: 36px; padding: 8px 10px; font-size: 13px; }
.square-add-button { width: 36px; min-width: 36px; height: 36px; background: var(--accent); border-color: var(--accent); }
.planner-standard, .planner-map-mode { padding: 8px 22px 22px; }
.day-summary-row { gap: 10px; padding: 10px 0; font-size: 13px; border-bottom: 0; }
.duration-badge { min-width: 0; height: auto; padding: 4px 8px; border: 0; border-radius: 4px; color: #9b6514; background: #fff6dc; font-size: 13px; font-weight: 600; }
.schedule-controls, .compact-schedule-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; padding: 14px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.schedule-controls > button { grid-column: 1 / -1; justify-self: end; min-height: 34px; padding: 6px 10px; font-size: 13px; }
.timeline { margin-top: 20px; gap: 12px; padding-left: 16px; }
.timeline::before { width: 1px; background: #d6dce6; }
.timeline-row { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
.timeline-row::before { width: 9px; height: 9px; top: 19px; left: -13px; border-color: var(--accent); }
.time-label { padding-top: 14px; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.timeline-card { padding: 14px; border-color: var(--line); }
.timeline-card h3 { font-size: 15px; }
.timeline-card header { flex-wrap: wrap; gap: 8px; }
.timeline-card header > div { min-width: 0; }
.timeline-card .inline-actions { margin-left: auto; }
.timeline-card .icon-button { width: 28px; height: 28px; min-height: 28px; flex-basis: 28px; }
.timeline-card p { font-size: 13px; line-height: 1.7; }
.timeline-card.transport-card { border-color: #c1e3e6; background: #f2fbfc; }
.travel-leg { margin-left: 60px; max-width: calc(100% - 60px); border: 0; border-radius: 4px; padding: 5px 0; background: transparent; }
.travel-label { white-space: normal; }
.leg-mode-select { border-radius: 4px; font-size: 13px; }
.accommodation-prompt { background: var(--panel-alt); border-color: var(--line-strong); font-size: 14px; line-height: 1.6; }
.resource-head { grid-template-columns: minmax(0, 1fr) 36px; align-items: center; }
.city-select { border-color: var(--line); font-size: 16px; font-weight: 650; }
.resource-city-label > span { font-size: 12px; line-height: 1.4; }
.resource-tabs { margin-top: 16px; gap: 0; }
.resource-tabs button { min-height: 40px; padding: 7px 2px; font-size: 13px; }
.resource-filters { font-size: 12px; gap: 6px 10px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.resource-card-grid { grid-template-columns: 1fr; gap: 12px; }
.resource-card { border-color: var(--line); }
.resource-image, .resource-image.hotel-image { display: flex; align-items: center; gap: 8px; min-height: 0; padding: 11px 14px 0; background: transparent; color: var(--accent); font-size: 12px; }
.resource-image.hotel-image { color: #9b6514; }
.resource-card-body { padding: 10px 14px 14px; }
.resource-card h3 { font-size: 15px; line-height: 1.6; }
.resource-card p { font-size: 13px; line-height: 1.65; }
.rating-line { margin-top: 10px; color: #a4761c; }
.resource-card > button { min-height: 39px; font-size: 13px; color: var(--accent); background: #fff; }
.resource-card > button:hover { background: var(--accent-soft); }
.planner-popover, .floating-menu, .create-date-picker { box-shadow: var(--shadow); }
.ai-route-banner { border: 0; border-left: 3px solid var(--accent); border-radius: 0; }
.toast { z-index: 140; font-size: 14px; }
.preview-dialog { border: 0; box-shadow: var(--shadow); }
.preview-day { border-color: var(--line); }
.preview-dialog-head { background: #fff; }
.preview-summary .metric { padding: 12px; }
.data-table th { background: #eef0f4; color: var(--text); font-size: 13px; }
.data-table td { padding-block: 14px; font-size: 14px; }

@media (min-width: 1700px) {
  .planner-grid { grid-template-columns: 210px minmax(0, 1fr) 370px; }
  .planner-day-header { grid-template-columns: minmax(0, 1fr) auto; }
  .resource-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .main-shell { padding-inline: 22px; }
  .workspace-grid, .two-column-grid { grid-template-columns: minmax(0, 1fr); }
  .side-panel { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .planner-grid { grid-template-columns: minmax(0, 1fr) 285px; }
  .planner-day-rail { grid-column: 1 / -1; overflow-x: auto; padding-bottom: 8px; }
  .day-rail-list { grid-auto-flow: column; grid-auto-columns: 180px; }
  .day-rail-card.drop-before::before,
  .day-rail-card.drop-after::after { top: 0; bottom: 0; width: 3px; height: auto; }
  .day-rail-card.drop-before::before { left: -6px; right: auto; }
  .day-rail-card.drop-after::after { right: -6px; left: auto; }
  .planner-resource-panel { padding-left: 12px; }
  .planner-standard, .planner-map-mode, .planner-day-header { padding-inline: 16px; }
  .home-hero h1 { font-size: 88px; }
  .home-hero-lead { font-size: 29px; }
  .home-hero-caption { display: none; }
  .metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric { padding-inline: 12px; }
  .metric strong { font-size: 26px; }
}
@media (max-width: 900px) {
  .planner-grid { grid-template-columns: minmax(0, 1fr); }
  .planner-resource-panel { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .resource-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-nav { padding-inline: 28px; gap: 20px; }
  .home-nav-links { gap: 24px; }
  .home-hero { padding-inline: 32px; }
  .home-route-showcase, .home-pathways, .home-bottom-cta, .home-footer { padding-inline: 32px; }
  .home-route-heading h2 { font-size: 28px; }
  .home-route-stops { gap: 20px; }
  .home-route-stop h3 { font-size: 16px; }
  .home-pathway-grid { gap: 24px; }
}
@media (max-width: 760px) {
  .app-shell, body[data-current-view="editor"] .app-shell { display: block; }
  .sidebar, body[data-current-view="editor"] .sidebar { position: relative; height: auto; padding: 16px 18px 0; gap: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand, body[data-current-view="editor"] .brand { display: block; width: 150px; padding: 0; }
  .brand-mark, body[data-current-view="editor"] .brand-mark { width: 150px; height: 52px; }
  .brand-mark img, body[data-current-view="editor"] .brand-mark img { width: 100%; max-width: none; height: 100%; object-fit: contain; }
  .brand strong { font-size: 18px; }
  .brand span { margin-top: 0; }
  .nav-list { width: 100%; gap: 12px; padding: 0; }
  .nav-item, body[data-current-view="editor"] .nav-item { grid-template-columns: 18px max-content; justify-content: start; min-height: 44px; padding: 10px 6px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; gap: 7px; }
  body[data-current-view="editor"] .nav-item > span:not(.icon) { display: inline; }
  .nav-item.active { border-bottom-color: var(--accent); background: transparent; }
  body[data-current-view="editor"] .nav-item::after, body[data-current-view="editor"] .nav-item::before { display: none; }
  .main-shell, body[data-current-view="editor"] .main-shell { padding: 0 18px 28px; }
  .topbar { padding: 18px 0; gap: 16px; min-height: 0; }
  .top-actions { gap: 8px; }
  .top-actions .account-slot { margin-left: auto; }
  .top-actions .ghost-button, .top-actions .primary-button { flex: 0 1 auto; padding: 8px 10px; font-size: 13px; min-height: 36px; }
  .account-button { min-height: 36px; padding: 8px 10px; font-size: 13px; }
  .notice-row { padding: 12px; gap: 12px; margin-block: 16px; }
  .trip-tabs { padding: 0; gap: 6px; }
  .trip-tabs-label { border: 0; padding: 4px 0; }
  .trip-tabs-list { gap: 16px; }
  .trip-tab { min-height: 40px; font-size: 13px; }
  .section-head { display: flex; flex-wrap: wrap; padding-top: 14px; }
  .section-head h2 { font-size: 21px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; padding-block: 18px; }
  .metric { padding: 0 14px; }
  .metric:nth-child(odd) { padding-left: 0; }
  .metric:nth-child(even) { border-right: 0; }
  .metric strong { font-size: 27px; }
  .workspace-guide { grid-template-columns: minmax(0, 1fr); }
  .workspace-guide > button { justify-self: start; }
  .trip-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
  .trip-card { padding: 16px; }
  .side-panel { padding-top: 20px; }
  .form-grid { gap: 20px; }
  .create-step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .create-step { flex-direction: column; }
  .create-step strong { font-size: 13px; }
  .create-step small { display: none; }
  .date-range-group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .date-select-button { padding: 10px; font-size: 14px; }
  .create-date-picker { width: min(390px, calc(100vw - 36px)); }
  .create-route-actions { width: 100%; }
  .create-route-actions > button { min-width: 0; flex: 1 1 140px; }
  .planner-mode-bar { display: flex; flex-wrap: wrap; gap: 10px; }
  .mode-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .planner-top-links { justify-content: flex-start; }
  .planner-top-links > button { flex: 1; }
  .planner-grid { gap: 16px; }
  .day-rail-list { grid-auto-columns: 168px; }
  .planner-day-header { padding: 18px 14px; }
  .planner-standard, .planner-map-mode { padding: 6px 14px 18px; }
  .planner-actions .ghost-button { flex: 0 1 auto; }
  .day-route-input strong { font-size: 20px; }
  .schedule-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-controls .field input { padding: 9px; min-height: 42px; font-size: 14px; }
  .timeline { padding-left: 13px; }
  .timeline-row { grid-template-columns: 42px minmax(0, 1fr); gap: 6px; }
  .timeline-row::before { left: -10px; }
  .time-label { font-size: 12px; }
  .timeline-card { padding: 10px; }
  .timeline-card header { display: grid; }
  .timeline-card .inline-actions { justify-self: end; }
  .timeline-card .icon-button { width: 34px; height: 34px; min-height: 34px; flex-basis: 34px; }
  .travel-leg { margin-left: 48px; max-width: calc(100% - 48px); }
  .resource-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .resource-filters { font-size: 13px; }
  .account-modal-backdrop { padding: 16px; }
  .account-dialog { max-height: calc(100svh - 32px); }
  .account-dialog-head { padding: 22px; }
  .account-form, .account-profile { padding: 22px; }
  .account-dialog-head h2 { font-size: 25px; }
  .account-switch { padding-inline: 20px; }
  .home-nav { min-height: 72px; padding: 14px 20px 0; grid-template-columns: 1fr auto; gap: 12px; }
  .home-brand-mark { width: 146px; height: 50px; }
  .home-nav-links { border-top: 1px solid var(--line); gap: 28px; justify-content: center; }
  .home-nav-link { flex: 0 1 auto; padding: 12px 0; font-size: 14px; }
  .home-nav-link.is-active::after { bottom: 0; }
  .home-nav-cta { min-height: 36px; max-width: 150px; padding: 7px 14px; font-size: 13px; }
  .home-hero { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 440px; height: calc(100svh - 180px); max-height: 620px; padding: 32px 24px; background-position: 42% center; }
  .home-hero-copy { width: 100%; }
  .home-hero .home-kicker { font-size: 12px; }
  .home-hero h1 { font-size: 72px; margin: 16px 0 20px; }
  .home-hero-lead { font-size: 27px; line-height: 1.6; }
  .home-hero-detail { max-width: 320px; font-size: 14px; }
  .home-hero-actions { gap: 10px; margin-top: 24px; }
  .home-primary-button, .home-secondary-button { gap: 12px; min-height: 46px; padding: 10px 16px; font-size: 14px; }
  .home-trust-row { gap: 12px; margin-top: 20px; font-size: 12px; }
  .home-trust-row span + span { padding-left: 12px; }
  .home-route-showcase { padding: 30px 24px 36px; }
  .home-route-heading { align-items: flex-start; gap: 14px; }
  .home-route-heading h2 { font-size: 25px; }
  .home-route-heading p { font-size: 13px; }
  .home-route-meta { font-size: 12px; flex: 0 0 auto; }
  .home-route-meta > span:last-child { display: none; }
  .home-route-stops { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; }
  .home-route-stop { padding: 0 0 24px 24px; border-top: 0; border-left: 1px solid var(--line); }
  .home-route-stop:last-child { padding-bottom: 0; }
  .home-route-stop::before { top: 8px; left: -4px; }
  .home-route-stop h3 { margin-top: 5px; font-size: 17px; }
  .home-route-stop p { font-size: 13px; }
  .home-pathways { padding: 44px 24px; }
  .home-section-heading { margin-bottom: 28px; }
  .home-section-heading h2, .home-bottom-cta h2 { font-size: 27px; }
  .home-pathway-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-pathway { gap: 12px; padding-top: 20px; }
  .home-pathway h3 { font-size: 19px; }
  .home-pathway p { max-width: none; font-size: 14px; }
  .home-bottom-cta { display: grid; padding: 44px 24px; gap: 24px; }
  .home-bottom-cta .home-primary-button { justify-self: start; }
  .home-footer { padding: 24px; align-items: flex-start; }
  .home-footer strong { display: grid; gap: 8px; }
  .home-footer > span { max-width: 100px; font-size: 12px; text-align: right; }
}
@media (max-width: 380px) {
  .home-hero h1 { font-size: 62px; }
  .home-hero-lead { font-size: 23px; }
  .home-hero-actions { gap: 8px; }
  .home-primary-button, .home-secondary-button { font-size: 13px; gap: 8px; padding-inline: 12px; }
  .home-route-heading { flex-wrap: wrap; }
  .resource-card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 800px) {
  .home-hero { min-height: 360px; padding-block: 30px; }
  .home-hero h1 { font-size: 72px; }
  .home-hero-lead { font-size: 26px; line-height: 1.45; }
  .home-hero-detail, .home-trust-row { display: none; }
}
@media (max-height: 650px) {
  .home-hero { min-height: 280px; height: calc(100svh - 180px); padding-block: 24px; }
  .home-hero h1 { font-size: 56px; margin-block: 10px; }
  .home-hero-lead { font-size: 22px; margin-bottom: 10px; }
  .home-hero-actions { margin-top: 16px; }
  .home-trust-row { margin-top: 12px; }
  .home-hero-detail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body, .main-shell { color: #202124; background: #fff; }
  .main-shell { padding: 0; }
  .trip-card, .planner-board, .side-panel, .module-section { box-shadow: none; }
  .preview-backdrop { background: #fff; backdrop-filter: none; }
  .preview-summary .metric { border-right: 1px solid #e4e7ec; }
}

/* Waylo homepage v2: visual travel discovery with an immediate planning flow. */
body[data-current-view="home"],
body[data-current-view="home"] .app-shell,
.home-page {
  color: #092c66;
  background: #fff;
}
.home-page { font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif; }
.home-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 96px;
  padding: 18px max(40px, calc((100% - 1280px) / 2));
  border: 0;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 rgba(12, 48, 101, .08);
}
.home-brand { justify-self: start; gap: 0; }
.home-brand-mark { width: 190px; height: 58px; border: 0; border-radius: 0; background: transparent; }
.home-brand-mark img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.home-nav-links { display: flex; align-items: center; justify-content: center; gap: 32px; }
.home-nav-link {
  min-height: 44px;
  padding: 12px 0;
  border: 0;
  color: #234574;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.home-nav-link:hover,
.home-nav-link:focus-visible,
.home-nav-link.is-active { color: #165dff; }
.home-nav-link.is-active::after { height: 2px; bottom: 3px; background: #165dff; }
.home-account-anchor { justify-self: end; }
.home-nav-cta {
  min-height: 42px;
  max-width: 180px;
  padding: 8px 20px;
  border: 1px solid #165dff;
  border-radius: 999px;
  color: #0b4ed1;
  background: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 700;
}
.home-nav-cta .account-chevron { color: inherit; }
.home-nav-cta:hover,
.home-nav-cta:focus-visible { color: #fff; border-color: #165dff; background: #165dff; }

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  height: 650px;
  min-height: 650px;
  padding: 142px max(40px, calc((100% - 1280px) / 2)) 64px;
  overflow: visible;
  background-color: #d9edff;
  background-image: url("./assets/waylo-hero.jpg");
  background-position: center center;
  background-size: cover;
}
.home-hero-copy { z-index: 2; width: min(100%, 850px); max-width: 850px; text-shadow: none; }
.home-hero .home-kicker,
.home-kicker { color: #165dff; font-size: 12px; font-weight: 800; letter-spacing: 0; }
.home-hero h1 {
  max-width: 650px;
  margin: 14px 0 16px;
  color: #072b64;
  font-size: 58px;
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: 0;
}
.home-hero-lead { max-width: 590px; margin: 0 0 7px; color: #234b80; font-size: 20px; font-weight: 600; line-height: 1.55; }
.home-hero-detail { max-width: 560px; margin: 0; color: #42638d; font-size: 16px; line-height: 1.65; }
.home-planner {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(180px, 1fr) minmax(145px, .75fr) auto;
  align-items: stretch;
  width: min(100%, 850px);
  margin-top: 28px;
  padding: 10px;
  border: 1px solid rgba(26, 83, 161, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 48px rgba(19, 62, 121, .18);
}
.home-planner-field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 18px;
  border-right: 1px solid #dce5f2;
  color: #165dff;
}
.home-planner-field > .icon { width: 22px; height: 22px; }
.home-planner-field > .icon svg { width: 22px; height: 22px; }
.home-planner-field > span:last-child { display: grid; min-width: 0; gap: 1px; }
.home-planner-field strong { color: #143b70; font-size: 13px; font-weight: 750; }
.home-planner input,
.home-planner select {
  width: 100%;
  min-height: 26px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #617a9d;
  background: transparent;
  font: inherit;
  font-size: 13px;
}
.home-planner input::placeholder { color: #8da0bb; }
.home-planner input[type="date"] { color-scheme: light; }
.home-plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
  padding: 12px 24px;
  border: 1px solid #165dff;
  border-radius: 7px;
  color: #fff;
  background: #165dff;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
.home-plan-button:hover,
.home-plan-button:focus-visible { border-color: #0847c8; background: #0847c8; }
.home-plan-button .icon,
.home-plan-button .icon svg { width: 18px; height: 18px; }

.home-feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 34px max(40px, calc((100% - 1280px) / 2));
  border-bottom: 1px solid #e5ecf6;
  background: #fff;
}
.home-feature { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; }
.home-feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #165dff; background: #edf4ff; }
.home-feature-icon .icon,
.home-feature-icon .icon svg { width: 23px; height: 23px; }
.home-feature > div { display: grid; gap: 3px; }
.home-feature strong { color: #113a73; font-size: 14px; }
.home-feature > div > span { color: #7890af; font-size: 12px; }

.home-destinations { padding: 64px max(40px, calc((100% - 1280px) / 2)) 72px; background: #f8fbff; scroll-margin-top: 16px; }
.home-section-heading { max-width: 700px; margin-bottom: 32px; }
.home-section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; max-width: none; }
.home-section-heading h2,
.home-bottom-cta h2 { margin: 9px 0 8px; color: #092c66; font-size: 34px; line-height: 1.28; }
.home-section-heading p,
.home-bottom-cta p { margin: 0; color: #6b83a3; font-size: 15px; line-height: 1.7; }
.home-text-button,
.home-route-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  color: #165dff;
  background: transparent;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
.home-destination-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-destination-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #0b356d;
  text-align: left;
  box-shadow: 0 12px 30px rgba(18, 55, 103, .12);
}
.home-destination-card img { display: block; width: 100%; height: 240px; object-fit: cover; transition: transform .35s ease; }
.home-destination-card:hover img,
.home-destination-card:focus-visible img { transform: scale(1.035); }
.home-destination-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 12px;
  padding: 18px;
  background: rgba(4, 29, 67, .82);
}
.home-destination-overlay strong { font-size: 18px; line-height: 1.35; }
.home-destination-overlay small { align-self: center; font-size: 12px; }
.home-destination-overlay em { grid-column: 1 / -1; color: rgba(255, 255, 255, .78); font-size: 12px; font-style: normal; }

.home-route-showcase { padding: 68px max(40px, calc((100% - 1280px) / 2)) 72px; color: #fff; background: #071f49; scroll-margin-top: 16px; }
.home-route-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.home-route-heading .home-kicker { color: #70a2ff; }
.home-route-heading h2 { margin: 9px 0 7px; color: #fff; font-size: 36px; line-height: 1.25; }
.home-route-heading p { margin: 0; color: #a9bdd9; font-size: 15px; }
.home-route-heading p > span { margin-inline: 10px; color: #6c9fff; }
.home-route-button { padding: 9px 18px; border: 1px solid #6c9fff; border-radius: 6px; color: #fff; }
.home-route-button:hover,
.home-route-button:focus-visible { background: #165dff; }
.home-route-stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 38px; }
.home-route-stop { position: relative; min-width: 0; padding: 22px 0 0; border-top: 1px solid #44638b; }
.home-route-stop::before { top: -5px; width: 9px; height: 9px; background: #4e85ff; }
.home-route-stop:nth-child(2)::before,
.home-route-stop:nth-child(3)::before { background: #4e85ff; }
.home-route-day,
.home-route-stop:nth-child(2) .home-route-day,
.home-route-stop:nth-child(3) .home-route-day { color: #7eacff; font-size: 12px; }
.home-route-stop h3 { margin: 9px 0 0; color: #fff; font-size: 19px; }
.home-route-stop p { margin: 7px 0 0; color: #a9bdd9; font-size: 13px; }

.home-pathways { padding: 68px max(40px, calc((100% - 1280px) / 2)) 76px; color: #12396f; background: #fff; }
.home-pathway-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; max-width: none; }
.home-pathway { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 14px; min-height: 180px; padding: 24px 0 0; border-top: 1px solid #cdd9ea; }
.home-pathway-index { color: #8197b5; font-size: 13px; }
.home-pathway > .icon { width: 29px; height: 29px; margin: 0; color: #165dff; }
.home-pathway > .icon svg { width: 29px; height: 29px; }
.home-pathway:nth-child(2) > .icon,
.home-pathway:nth-child(3) > .icon { color: #165dff; }
.home-pathway h3 { grid-column: 1 / -1; margin: 0; color: #113a73; font-size: 20px; }
.home-pathway p { grid-column: 1 / -1; max-width: 330px; margin: 0; color: #6b83a3; font-size: 14px; line-height: 1.7; }

.home-bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 54px max(40px, calc((100% - 1280px) / 2)); color: #fff; background: #165dff; }
.home-bottom-cta .home-kicker { color: #c8dcff; }
.home-bottom-cta h2 { color: #fff; }
.home-bottom-cta p { color: #dce8ff; }
.home-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 11px 20px;
  border: 1px solid #fff;
  border-radius: 7px;
  color: #0b4ed1;
  background: #fff;
  font-size: 14px;
  font-weight: 750;
}
.home-primary-button > span { color: #165dff; font-size: 20px; }
.home-bottom-cta .home-primary-button { color: #0b4ed1; border-color: #fff; background: #fff; }
.home-bottom-cta .home-primary-button > span { color: #165dff; }
.home-primary-button:hover,
.home-primary-button:focus-visible,
.home-bottom-cta .home-primary-button:hover,
.home-bottom-cta .home-primary-button:focus-visible { color: #fff; border-color: #082d6d; background: #082d6d; transform: translateY(-1px); }
.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px max(40px, calc((100% - 1280px) / 2)); border-top: 0; color: #7d91ac; background: #f7faff; font-size: 12px; }
.home-footer strong { display: flex; align-items: center; gap: 18px; color: #092c66; font-size: 20px; }
.home-footer strong span { color: #7d91ac; font-size: 13px; font-weight: 400; }
.home-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.home-footer nav button,
.home-footer nav a { padding: 0; border: 0; color: #526b8e; background: transparent; font: inherit; text-decoration: none; }
.home-footer nav button:hover,
.home-footer nav button:focus-visible,
.home-footer nav a:hover,
.home-footer nav a:focus-visible { color: #165dff; }

@media (max-width: 1100px) {
  .home-nav { grid-template-columns: 180px minmax(0, 1fr) auto; padding-inline: 28px; }
  .home-nav-links { gap: 20px; }
  .home-nav-link { font-size: 13px; }
  .home-hero { padding-inline: 34px; background-position: 58% center; }
  .home-feature-strip,
  .home-destinations,
  .home-route-showcase,
  .home-pathways,
  .home-bottom-cta,
  .home-footer { padding-inline: 34px; }
  .home-destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .home-nav {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    min-height: 0;
    padding: 12px 20px 0;
    background: #fff;
  }
  .home-brand-mark { width: 150px; height: 48px; }
  .home-nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    border-top: 1px solid #e5ecf6;
    scrollbar-width: none;
  }
  .home-nav-links::-webkit-scrollbar { display: none; }
  .home-nav-link { flex: 0 0 auto; padding: 11px 0; }
  .home-nav-cta { min-height: 36px; max-width: 130px; padding: 7px 13px; font-size: 13px; }
  .home-hero {
    align-items: flex-start;
    height: auto;
    min-height: 690px;
    padding: 54px 24px 46px;
    background-position: 64% center;
  }
  .home-hero-copy { width: 100%; }
  .home-hero h1 { max-width: 420px; margin-top: 12px; font-size: 43px; }
  .home-hero-lead { max-width: 400px; font-size: 18px; }
  .home-hero-detail { max-width: 360px; font-size: 14px; }
  .home-planner { grid-template-columns: minmax(0, 1fr); width: min(100%, 460px); padding: 8px; margin-top: 24px; }
  .home-planner-field { min-height: 58px; border-right: 0; border-bottom: 1px solid #dce5f2; }
  .home-plan-button { width: 100%; margin-top: 8px; }
  .home-feature-strip { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 30px 24px; }
  .home-destinations,
  .home-route-showcase,
  .home-pathways,
  .home-bottom-cta { padding: 48px 24px; }
  .home-section-heading-row,
  .home-route-heading,
  .home-bottom-cta { align-items: flex-start; flex-direction: column; }
  .home-section-heading h2,
  .home-route-heading h2,
  .home-bottom-cta h2 { font-size: 29px; }
  .home-destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-destination-overlay { padding: 13px; }
  .home-destination-overlay strong { font-size: 15px; }
  .home-destination-overlay em { display: none; }
  .home-route-stops { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-route-stop { padding: 0 0 26px 24px; border-top: 0; border-left: 1px solid #44638b; }
  .home-route-stop:last-child { padding-bottom: 0; }
  .home-route-stop::before { top: 7px; left: -5px; }
  .home-pathway-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .home-pathway { min-height: 0; }
  .home-footer { align-items: flex-start; padding: 24px; }
  .home-footer strong { display: grid; gap: 4px; }
  .home-footer > span { max-width: 130px; text-align: right; }
}

@media (max-width: 480px) {
  .home-nav-links { gap: 20px; }
  .home-nav-link { font-size: 12px; }
  .home-hero { min-height: 670px; padding-top: 44px; background-position: 69% center; }
  .home-hero h1 { font-size: 38px; }
  .home-hero-lead { font-size: 17px; }
  .home-destination-grid { grid-template-columns: minmax(0, 1fr); }
  .home-destination-card img { height: 220px; }
  .home-footer { display: grid; }
  .home-footer > span { max-width: none; text-align: left; }
}

/* Public destination, guide, and brand pages. */
body[data-public-view="true"],
body[data-public-view="true"] .app-shell,
.public-page { color: #102f5f; background: #fff; }
body[data-public-view="true"] .app-shell { display: block; min-height: 100vh; }
body[data-public-view="true"] .sidebar,
body[data-public-view="true"] .topbar,
body[data-public-view="true"] .trip-tabs,
body[data-public-view="true"] .notice-row { display: none; }
body[data-public-view="true"] .main-shell { width: 100%; max-width: none; min-height: 100vh; padding: 0; }
body[data-public-view="true"] .view { width: 100%; margin: 0; }
.public-page { min-height: 100vh; font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif; }
.public-page:not(.home-page) .public-nav {
  position: sticky;
  top: 0;
  min-height: 84px;
  padding-block: 12px;
  background: rgba(255, 255, 255, .97);
}
.public-page:not(.home-page) .home-brand-mark { height: 54px; }

.legal-document,
.shared-document,
.shared-empty {
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-document { padding: 68px 0 88px; }
.legal-document > header { padding-bottom: 30px; border-bottom: 1px solid #dbe5f1; }
.legal-document h1,
.shared-document h1,
.shared-empty h1 { margin: 12px 0 8px; color: #092c66; font-size: clamp(34px, 5vw, 58px); letter-spacing: 0; }
.legal-document > header p,
.shared-document > header p { margin: 0; color: #6b83a3; }
.legal-document section { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 34px; padding: 30px 0; border-bottom: 1px solid #e6edf6; }
.legal-document h2 { margin: 0; color: #12396f; font-size: 20px; }
.legal-document section p { margin: 0; color: #526b8e; line-height: 1.85; }
.legal-document a { color: #165dff; }

.shared-document { padding: 60px 0 88px; }
.shared-document > header { padding: 32px; color: #fff; background: #0b3472; }
.shared-document > header .home-kicker { color: #9fc0ff; }
.shared-document > header h1 { color: #fff; }
.shared-document > header p,
.shared-document > header > span:last-child { display: block; margin-top: 8px; color: #cadbfa; }
.shared-day-list { display: grid; gap: 16px; margin-top: 20px; }
.shared-day-list article { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding: 24px; border: 1px solid #dbe5f1; background: #fff; }
.shared-day-list article > div > span { color: #165dff; font-size: 12px; font-weight: 800; }
.shared-day-list h2 { margin: 7px 0 3px; color: #12396f; font-size: 21px; }
.shared-day-list small { color: #7589a6; }
.shared-day-list ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.shared-day-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid #e8eef7; }
.shared-day-list li:last-child { border-bottom: 0; }
.shared-day-list time { color: #165dff; font-size: 13px; font-weight: 750; }
.shared-day-list li span { display: grid; gap: 3px; }
.shared-empty { display: grid; justify-items: start; gap: 12px; min-height: 62vh; padding: 100px 0; }
.shared-empty > .icon { width: 40px; height: 40px; color: #165dff; }
.shared-empty p { margin: 0 0 12px; color: #6b83a3; }

@media (max-width: 760px) {
  .legal-document,
  .shared-document,
  .shared-empty { width: min(100% - 32px, 940px); }
  .legal-document { padding-top: 42px; }
  .legal-document section,
  .shared-day-list article { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shared-document > header { padding: 24px; }
  .home-footer nav { justify-content: flex-start; }
}

.public-hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 350px;
  padding: 72px max(40px, calc((100% - 1280px) / 2));
  overflow: hidden;
  color: #fff;
  background-color: #163f73;
  background-position: center;
  background-size: cover;
}
.public-hero::before,
.guide-article-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(4, 25, 55, .48);
}
.public-hero > div { position: relative; z-index: 1; width: min(100%, 760px); }
.public-hero .home-kicker { color: #b9d2ff; }
.public-hero h1 {
  max-width: 760px;
  margin: 12px 0 12px;
  color: #fff;
  font-size: 46px;
  line-height: 1.2;
}
.public-hero p { max-width: 680px; margin: 0; color: rgba(255, 255, 255, .88); font-size: 17px; line-height: 1.75; }
.public-destination-hero { background-image: url("./assets/banner-destinations-queenstown.jpg"); background-position: center 54%; }
.public-guides-hero { background-image: url("./assets/banner-guides-lisbon.jpg"); background-position: center 52%; }
.public-about-hero { min-height: 430px; background-image: url("./assets/waylo-hero.jpg"); background-position: center 44%; }

.region-jump {
  position: sticky;
  top: 84px;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 15px 32px;
  overflow-x: auto;
  border-bottom: 1px solid #e1e9f4;
  background: rgba(255, 255, 255, .96);
  scrollbar-width: none;
}
.region-jump::-webkit-scrollbar { display: none; }
.region-jump a { color: #45658e; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.region-jump a:hover,
.region-jump a:focus-visible { color: #165dff; }
.destination-directory { padding: 14px max(40px, calc((100% - 1280px) / 2)) 72px; background: #f8fafc; }
.destination-region { padding: 54px 0 58px; scroll-margin-top: 140px; border-bottom: 1px solid #dce5f0; }
.destination-region:last-child { border-bottom: 0; }
.destination-region > header { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 32px; margin-bottom: 30px; }
.destination-region > header .home-kicker { grid-column: 1; }
.destination-region > header h2 { grid-column: 1; margin: 4px 0 0; color: #0a326c; font-size: 30px; }
.destination-region > header p { grid-column: 2; grid-row: 1 / span 2; align-self: end; max-width: 620px; margin: 0; color: #6a809d; line-height: 1.7; }
.country-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.country-item { min-width: 0; padding-top: 16px; border-top: 2px solid #bacbe0; }
.country-item h3 { margin: 0 0 10px; color: #163b6d; font-size: 17px; }
.city-list { display: grid; gap: 2px; }
.city-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 7px 0;
  border: 0;
  color: #607894;
  background: transparent;
  text-align: left;
}
.city-list button span { color: #9aadc3; }
.city-list button:hover,
.city-list button:focus-visible { color: #165dff; }
.city-list button:hover span,
.city-list button:focus-visible span { color: #165dff; transform: translateX(3px); }

.guide-directory { padding: 68px max(40px, calc((100% - 1280px) / 2)) 84px; background: #f8fafc; }
.public-section-heading { max-width: 720px; margin-bottom: 34px; }
.public-section-heading h2 { margin: 9px 0 8px; color: #0a326c; font-size: 34px; }
.public-section-heading p { margin: 0; color: #6a809d; line-height: 1.7; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-card { display: grid; grid-template-rows: 220px minmax(0, 1fr); min-width: 0; overflow: hidden; border: 1px solid #d9e3ef; border-radius: 8px; background: #fff; box-shadow: 0 10px 26px rgba(26, 60, 105, .08); }
.guide-cover { display: block; width: 100%; height: 220px; padding: 0; overflow: hidden; border: 0; background: #dbe7f3; }
.guide-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.guide-cover:hover img,
.guide-cover:focus-visible img { transform: scale(1.035); }
.guide-card-body { display: grid; align-content: start; gap: 12px; padding: 20px; }
.guide-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #3167a7; font-size: 12px; font-weight: 700; }
.guide-card h3 { margin: 0; color: #12396f; font-size: 20px; line-height: 1.45; }
.guide-card p { margin: 0; color: #6a809d; font-size: 14px; line-height: 1.7; }
.guide-card footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 2px; color: #8394aa; font-size: 12px; }
.guide-read-button,
.guide-back {
  justify-self: start;
  min-height: 36px;
  padding: 7px 0;
  border: 0;
  color: #165dff;
  background: transparent;
  font-weight: 750;
}
.guide-read-button span { margin-left: 8px; }

.guide-article-hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 500px;
  padding: 72px max(40px, calc((100% - 1020px) / 2));
  overflow: hidden;
  color: #fff;
  background: #102f5f;
}
.guide-article-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-article-hero > div { position: relative; z-index: 1; width: min(100%, 820px); }
.guide-back { margin-bottom: 36px; color: #fff; }
.guide-article-hero .home-kicker { color: #c7dbff; }
.guide-article-hero h1 { max-width: 800px; margin: 12px 0; color: #fff; font-size: 44px; line-height: 1.22; }
.guide-article-hero p { max-width: 720px; margin: 0; color: rgba(255, 255, 255, .86); font-size: 17px; line-height: 1.7; }
.guide-byline { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: #d6e4fb; font-size: 13px; }
.guide-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; max-width: 1020px; margin: 0 auto; padding: 72px 40px 88px; }
.guide-article-body { min-width: 0; }
.guide-article-body > section { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid #dce5f0; }
.guide-article-body > section > span { color: #165dff; font-size: 13px; font-weight: 800; }
.guide-article-body h2 { margin: -5px 0 12px; color: #12396f; font-size: 25px; }
.guide-article-body p { margin: 0; color: #536d8f; font-size: 16px; line-height: 1.9; }
.guide-note { padding: 20px; border-left: 3px solid #e2a646; background: #fff8eb; }
.guide-note strong { color: #73501b; }
.guide-note p { margin: 8px 0 0; color: #7c6848; font-size: 13px; line-height: 1.7; }
.guide-plan-panel { position: sticky; top: 116px; align-self: start; padding: 24px; border: 1px solid #d6e2ef; border-radius: 8px; background: #f7faff; }
.guide-plan-panel h2 { margin: 10px 0; color: #12396f; font-size: 22px; line-height: 1.4; }
.guide-plan-panel p { margin: 0 0 20px; color: #6a809d; font-size: 14px; line-height: 1.7; }
.guide-plan-panel .home-plan-button { width: 100%; }

.about-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; padding: 84px max(40px, calc((100% - 1120px) / 2)); background: #fff; }
.about-story h2 { max-width: 500px; margin: 12px 0 0; color: #0a326c; font-size: 36px; line-height: 1.4; }
.about-story-copy { display: grid; gap: 22px; }
.about-story-copy p { margin: 0; color: #536d8f; font-size: 16px; line-height: 1.95; }
.about-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding: 68px max(40px, calc((100% - 1120px) / 2)) 80px; background: #f5f8fc; }
.about-values article { min-width: 0; padding-top: 22px; border-top: 2px solid #b7c9df; }
.about-values article > span { color: #165dff; font-size: 13px; font-weight: 800; }
.about-values h3 { margin: 16px 0 9px; color: #12396f; font-size: 22px; }
.about-values p { margin: 0; color: #6a809d; line-height: 1.75; }
.public-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 56px max(40px, calc((100% - 1120px) / 2)); color: #fff; background: #165dff; }
.public-cta .home-kicker { color: #c8dcff; }
.public-cta h2 { margin: 9px 0 7px; color: #fff; font-size: 32px; }
.public-cta p { max-width: 680px; margin: 0; color: #dce8ff; line-height: 1.7; }

@media (max-width: 980px) {
  .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-article-layout { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .guide-plan-panel { position: static; }
  .about-story { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 760px) {
  .public-page:not(.home-page) .public-nav { top: 0; min-height: 0; padding-block: 12px 0; }
  .region-jump { top: 106px; justify-content: flex-start; gap: 22px; padding-inline: 24px; }
  .public-hero { min-height: 310px; padding: 52px 24px; }
  .public-about-hero { min-height: 390px; background-position: 63% center; }
  .public-hero h1,
  .guide-article-hero h1 { font-size: 34px; }
  .public-hero p,
  .guide-article-hero p { font-size: 15px; }
  .destination-directory,
  .guide-directory { padding-inline: 24px; }
  .destination-region > header { grid-template-columns: minmax(0, 1fr); }
  .destination-region > header .home-kicker,
  .destination-region > header h2,
  .destination-region > header p { grid-column: 1; grid-row: auto; }
  .destination-region > header p { margin-top: 9px; }
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-article-hero { min-height: 470px; padding: 52px 24px; }
  .guide-article-layout { padding: 52px 24px 64px; }
  .about-story,
  .about-values,
  .public-cta { padding: 52px 24px; }
  .about-values { grid-template-columns: minmax(0, 1fr); }
  .about-story h2 { font-size: 30px; }
  .public-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .country-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-card { grid-template-rows: 200px minmax(0, 1fr); }
  .guide-cover { height: 200px; }
  .guide-article-body > section { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
