/* ============================================================
   轻走 · P-Go — Calm Teal-Jade Editorial Travel Design System
   Airy Celadon Canvas + Deep Jade Primary + Generous Whitespace
   ============================================================ */

:root {
  --bg-page: #F4F7F5;
  --bg-stage: #E6EEEB;
  --surface: #FFFFFF;
  --surface-soft: #F7FAF8;
  --surface-tint: #ECF2EF;
  --border: #E2EBE7;
  --border-strong: #CBDAD4;

  --ink: #1A2825;
  --ink-2: #4E635E;
  --ink-3: #829690;

  /* 青绿主色系（柔和耐看、零促销感） */
  --accent: #1E7A6E;
  --accent-deep: #155E54;
  --accent-soft: #E8F4F1;
  --accent-border: #BFE0D9;

  --sage: #5AA596;
  --sand: #D4A46A;

  /* 温和避雷色（低饱和陶红灰） */
  --avoid: #B05258;
  --avoid-soft: #FAF1F2;
  --avoid-border: #E9CDD0;

  /* 雨天浅雾青蓝 */
  --rain: #2E687A;
  --rain-bg: #ECF4F6;
  --rain-border: #C4DCE4;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 2px 12px rgba(22, 52, 46, 0.045), 0 1px 2px rgba(22, 52, 46, 0.025);
  --shadow-float: 0 12px 34px rgba(20, 46, 41, 0.11);
  --shadow-device: 0 26px 68px rgba(22, 45, 40, 0.16), 0 4px 16px rgba(22, 45, 40, 0.06);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

button, input {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

/* ============================================================
   Desktop Studio Bar & Dual-Mode Preview Shell
   ============================================================ */

.studio-bar,
.device-statusbar,
.companion-panel {
  display: none;
}

.preview-stage {
  min-height: 100dvh;
}

.device-shell {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  background: var(--bg-page);
}

.app-root {
  min-height: 100dvh;
  position: relative;
}

@media (min-width: 920px) {
  body {
    background: radial-gradient(circle at 15% 10%, #F0F6F3 0%, #E3ECE8 100%);
    min-height: 100vh;
  }

  .studio-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 28px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }

  .studio-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .studio-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: grid;
    place-items: center;
  }

  .studio-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .studio-sub {
    font-size: 11.5px;
    color: var(--ink-3);
  }

  .studio-segmented {
    display: inline-flex;
    padding: 3px;
    border-radius: var(--radius-pill);
    background: var(--surface-tint);
    border: 1px solid var(--border);
  }

  .seg-btn {
    padding: 6px 15px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    transition: all 0.2s var(--ease);
  }

  .seg-btn.active {
    background: #fff;
    color: var(--accent-deep);
    box-shadow: 0 2px 6px rgba(22, 52, 46, 0.08);
  }

  .studio-nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .studio-pill {
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    transition: all 0.18s var(--ease);
  }

  .studio-pill:hover {
    background: var(--surface-tint);
  }

  .studio-pill.active {
    background: var(--accent-soft);
    color: var(--accent-deep);
  }

  /* ---- MODE 1: MOBILE FRAME ON DESKTOP ---- */
  body.mode-mobile-frame .preview-stage {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 26px 24px 40px;
    min-height: calc(100vh - 56px);
  }

  body.mode-mobile-frame .device-shell {
    width: 393px;
    height: min(836px, calc(100vh - 100px));
    min-height: 640px;
    border-radius: 44px;
    border: 9px solid #1C2624;
    box-shadow: var(--shadow-device);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: var(--bg-page);
  }

  body.mode-mobile-frame .device-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px 6px;
    background: rgba(244, 247, 245, 0.96);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    flex-shrink: 0;
    z-index: 40;
  }

  body.mode-mobile-frame .sb-island {
    width: 84px;
    height: 20px;
    border-radius: 12px;
    background: #141B19;
  }

  body.mode-mobile-frame .app-root {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  body.mode-mobile-frame .app-root::-webkit-scrollbar {
    display: none;
  }

  body.mode-mobile-frame .detail-bottom-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
  }

  body.mode-mobile-frame .modal-backdrop,
  body.mode-mobile-frame .sheet-container,
  body.mode-mobile-frame .toast,
  body.mode-mobile-frame .floating-tabbar {
    position: absolute;
  }

  body.mode-mobile-frame .companion-panel {
    display: block;
    width: 280px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 82px;
  }

  .companion-panel.collapsed {
    width: 148px;
  }

  .companion-panel.collapsed .companion-body {
    display: none;
  }

  .companion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .companion-panel:not(.collapsed) .companion-head {
    margin-bottom: 12px;
  }

  .companion-tag {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-deep);
    background: var(--accent-soft);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
  }

  .companion-collapse {
    font-size: 12px;
    color: var(--ink-3);
    font-weight: 600;
  }

  .companion-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
  }

  .companion-list {
    margin: 0 0 12px;
    padding-left: 16px;
    font-size: 12.5px;
    color: var(--ink-2);
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .companion-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .companion-try-btn {
    text-align: left;
    padding: 9px 11px;
    border-radius: 11px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    transition: all 0.16s var(--ease);
  }

  .companion-try-btn:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
    color: var(--accent-deep);
  }

  /* ---- MODE 2: DESKTOP ADAPTIVE WEB ---- */
  body.mode-desktop-web {
    background: var(--bg-page);
  }

  body.mode-desktop-web .preview-stage {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px 64px;
  }

  body.mode-desktop-web .device-shell {
    background: transparent;
    min-height: calc(100vh - 56px);
  }

  body.mode-desktop-web .companion-panel {
    display: none;
  }
}

/* ============================================================
   PAGE 1: HOME — AIRY WATERFALL FEED
   ============================================================ */

.top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 247, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 16px 10px;
}

.top-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.origin-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.16s;
}

.origin-btn:hover {
  border-color: var(--accent-border);
}

.origin-caret {
  font-size: 10px;
  color: var(--ink-3);
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fav-entry-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.fav-count-badge {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-cta-btn {
  height: 36px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 3px 10px rgba(30, 122, 110, 0.22);
  transition: background 0.18s var(--ease), transform 0.15s var(--ease);
}

.primary-cta-btn:hover {
  background: var(--accent-deep);
}

.primary-cta-btn:active {
  transform: scale(0.97);
}

/* Filter Pills Strip */
.filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 16px 8px;
  scrollbar-width: none;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.18s var(--ease);
}

.filter-pill:hover {
  border-color: var(--accent-border);
  color: var(--accent-deep);
}

.filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}

.feed-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 18px 12px;
  font-size: 12px;
  color: var(--ink-3);
}

/* Airy Double-Column Waterfall */
.waterfall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 14px 36px;
  align-items: start;
}

.waterfall-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.deal-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  display: flex;
  flex-direction: column;
}

.deal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(22, 52, 46, 0.08);
}

.deal-cover-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--surface-tint);
}

.deal-cover-wrap.aspect-tall { aspect-ratio: 3 / 3.7; }
.deal-cover-wrap.aspect-medium { aspect-ratio: 3 / 3.25; }
.deal-cover-wrap.aspect-square { aspect-ratio: 1 / 1; }

.deal-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.deal-card:hover .deal-cover-img {
  transform: scale(1.03);
}

.deal-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 38, 34, 0.14) 0%, rgba(16, 38, 34, 0) 40%, rgba(16, 38, 34, 0.16) 100%);
  pointer-events: none;
}

/* Calm Translucent Jade Badge (Zero Promo Feel) */
.deal-hook-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.deal-hook-badge.deal {
  background: rgba(24, 96, 86, 0.84);
  color: #fff;
}

.deal-hook-badge.hsr {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.card-fav-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  transition: transform 0.16s var(--ease);
}

.card-fav-btn:active {
  transform: scale(0.86);
}

.deal-card-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.deal-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deal-price-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--accent-deep);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.deal-price-symbol {
  font-size: 12px;
}

.deal-price-num {
  font-size: 16.5px;
  line-height: 1.15;
}

.deal-include {
  font-size: 11px;
  color: var(--ink-3);
}

.deal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 1px;
}

.relax-tag {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   PAGE 2: STEP-BY-STEP FUZZY GENERATOR WIZARD
   ============================================================ */

.subpage-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(244, 247, 245, 0.94);
  backdrop-filter: blur(14px);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.subpage-title {
  font-size: 15px;
  font-weight: 700;
}

.reset-btn {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 6px 8px;
}

.reset-btn:hover {
  color: var(--ink);
}

/* Wizard Step Indicator */
.wizard-container {
  padding: 8px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 2px;
}

.wiz-step-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  opacity: 0.48;
  transition: opacity 0.2s var(--ease);
}

.wiz-step-pill.active,
.wiz-step-pill.done {
  opacity: 1;
}

.wiz-step-bar {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: var(--border-strong);
  transition: background 0.25s var(--ease);
}

.wiz-step-pill.active .wiz-step-bar,
.wiz-step-pill.done .wiz-step-bar {
  background: var(--accent);
}

.wiz-step-text {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.wiz-step-pill.active .wiz-step-text {
  color: var(--accent-deep);
}

/* Main Airy Step Card */
.wizard-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeSlideIn 0.24s var(--ease);
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wiz-heading {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.wiz-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

.wiz-block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Step 1: Date Range Presets + Start/End Inputs + Flexible Days & Weekend Preference */
.range-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.range-preset-btn {
  text-align: left;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  transition: all 0.18s var(--ease);
}

.range-preset-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.rp-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.range-preset-btn.active .rp-title {
  color: var(--accent-deep);
}

.rp-desc {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.date-range-box {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.date-field label {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
}

.date-input {
  width: 100%;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}

.date-input:focus {
  border-color: var(--accent);
}

.date-sep {
  color: var(--ink-3);
  font-size: 13px;
  padding-top: 16px;
}

.days-pill-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.days-pill {
  padding: 9px 2px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  white-space: nowrap;
  transition: all 0.16s var(--ease);
}

.days-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pref-option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pref-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.16s var(--ease);
}

.pref-option-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.pref-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}

.pref-option-btn.active .pref-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Step 2: Budget */
.budget-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.budget-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}

.budget-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.budget-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-tint);
  outline: none;
  margin: 12px 0 16px;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(30, 122, 110, 0.35);
  cursor: pointer;
}

.budget-presets {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.budget-preset {
  flex: 1;
  padding: 8px 0;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.16s;
}

.budget-preset.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.budget-reach-box {
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* Step 3: Vibes & Avoid */
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.vibe-chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.16s var(--ease);
}

.vibe-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
  font-weight: 600;
}

.exclude-block {
  padding-top: 20px;
  border-top: 1px solid var(--surface-tint);
}

.exclude-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.exclude-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--avoid);
}

.exclude-pill-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--avoid);
  background: var(--avoid-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.exclude-chip {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1.5px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.16s var(--ease);
}

.exclude-chip.active {
  background: var(--avoid-soft);
  border-color: var(--avoid);
  color: var(--avoid);
  text-decoration: line-through;
  text-decoration-thickness: 1.3px;
}

.veto-live-box {
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--avoid-soft);
  border: 1px solid var(--avoid-border);
  font-size: 12px;
  color: #8E3F44;
  line-height: 1.55;
}

.free-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  font-size: 13px;
  outline: none;
  transition: border-color 0.16s;
}

.free-input:focus {
  border-color: var(--accent);
  background: #fff;
}

.quick-note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.quick-note-chip {
  font-size: 11.5px;
  color: var(--ink-3);
  background: var(--surface-tint);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.quick-note-chip:hover {
  color: var(--accent-deep);
}

/* Wizard Footer Buttons */
.wizard-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.wiz-prev-btn {
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.wiz-next-btn {
  flex: 1;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 5px 14px rgba(30, 122, 110, 0.22);
  transition: background 0.18s var(--ease), transform 0.15s;
}

.wiz-next-btn:hover {
  background: var(--accent-deep);
}

.wiz-next-btn:active {
  transform: scale(0.985);
}

/* Step 4: Top 3 Result View */
.summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-2);
}

.summary-edit-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.computing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.spinner-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid var(--surface-tint);
  border-top-color: var(--accent);
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.top3-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.top3-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 52, 46, 0.08);
}

.top3-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.role-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

.role-badge.deal { background: var(--accent-soft); color: var(--accent-deep); }
.role-badge.hsr { background: #ECF3F7; color: #2A5E73; }
.role-badge.chill { background: #F0F5EC; color: #3D6B3C; }

.surplus-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-deep);
}

.surplus-pill.tight {
  color: #8A6428;
}

.top3-main-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.top3-thumb {
  width: 84px;
  height: 84px;
  border-radius: 15px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-tint);
}

.top3-info {
  flex: 1;
  min-width: 0;
}

.top3-city-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.top3-city {
  font-size: 18px;
  font-weight: 700;
}

.top3-meta {
  font-size: 12px;
  color: var(--ink-3);
}

.top3-price {
  font-size: 21px;
  font-weight: 800;
  color: var(--accent-deep);
  margin: 4px 0;
}

.top3-weather-line {
  font-size: 12px;
  color: var(--ink-2);
}

.top3-reason {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

.mini-bar-track {
  height: 7px;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  gap: 2px;
  background: var(--surface-tint);
}

.bar-seg-transport { background: var(--accent); transition: width 0.35s var(--ease); }
.bar-seg-hotel { background: var(--sage); transition: width 0.35s var(--ease); }
.bar-seg-food { background: var(--sand); transition: width 0.35s var(--ease); }

.mini-bar-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 6px;
}

.match-tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--surface-tint);
}

.match-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.match-tag {
  font-size: 11px;
  color: var(--ink-2);
  background: var(--surface-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.top3-go-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.empty-result-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  padding: 30px 20px;
  text-align: center;
}

/* ============================================================
   PAGE 3: AIRY ELASTIC ITINERARY & LIVE BILL
   ============================================================ */

.detail-hero {
  position: relative;
  height: 225px;
  overflow: hidden;
  background: #1C2B28;
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 32, 29, 0.38) 0%, rgba(16, 32, 29, 0.08) 45%, rgba(16, 32, 29, 0.76) 100%);
}

.detail-hero-topbar {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.hero-icon-btn {
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.detail-hero-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: #fff;
  z-index: 5;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.hero-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.hero-pill.deal {
  background: rgba(30, 122, 110, 0.88);
}

.detail-hero-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}

.detail-hero-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
}

.detail-content {
  padding: 16px 16px 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Upper Budget Panel — Clean & Uncrowded */
.budget-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bill-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bill-kicker {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.bill-total {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-deep);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bill-total.bump {
  animation: pricePop 0.36s var(--ease);
}

@keyframes pricePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.045); color: var(--accent); }
  100% { transform: scale(1); }
}

.snapshot-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--ink-3);
  white-space: nowrap;
}

.snapshot-pill.verified {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
}

.bill-bar-track {
  height: 9px;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  gap: 2px;
  background: var(--surface-tint);
}

/* Clean Typographic Breakdown Strip (No heavy nested boxes) */
.bill-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.bill-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bill-item-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-t { background: var(--accent); }
.dot-h { background: var(--sage); }
.dot-f { background: var(--sand); }

.bill-item-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

/* Tier Switcher */
.tier-section-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tier-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-tint);
}

.tier-btn {
  padding: 8px 4px;
  border-radius: 11px;
  text-align: center;
  transition: all 0.2s var(--ease);
}

.tier-btn.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(22, 52, 46, 0.08);
}

.tier-btn-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.tier-btn.active .tier-btn-name {
  color: var(--accent-deep);
  font-weight: 700;
}

.tier-btn-price {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 1px;
}

/* Hotel District Box */
.district-rec-box {
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.district-rec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.district-rec-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.district-switch-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.district-rec-reason {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Soft Outlined L3 Verify Button */
.l3-verify-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.18s var(--ease);
}

.l3-verify-btn:hover {
  background: #DCEEE9;
}

.l3-verify-btn.loading {
  opacity: 0.78;
  pointer-events: none;
}

.l3-result-box {
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeSlideIn 0.25s var(--ease);
}

.l3-res-head {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-deep);
}

.l3-res-line {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.ota-links-row {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.ota-link {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}

/* Lower Section: Relaxed Daily Itinerary */
.itinerary-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.itinerary-panel.rainy-active {
  background: var(--rain-bg);
  border-color: var(--rain-border);
}

.itin-top-head {
  margin-bottom: 14px;
}

.itin-title {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.itin-anti-j-badge {
  font-size: 12px;
  color: var(--ink-3);
}

.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.day-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.district-focus-note {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Simplified Single-Row Rainy & Map Controls */
.p-controls-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.rainy-toggle-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.rainy-toggle-card.active {
  background: #DCECF1;
  border-color: var(--rain);
}

.rainy-label-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.rainy-toggle-card.active .rainy-label-text {
  color: var(--rain);
}

.ios-switch {
  width: 36px;
  height: 21px;
  border-radius: 99px;
  background: #CAD6D1;
  position: relative;
  flex-shrink: 0;
  transition: background 0.22s var(--ease);
}

.ios-switch::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  transition: transform 0.22s var(--ease);
}

.rainy-toggle-card.active .ios-switch {
  background: var(--rain);
}

.rainy-toggle-card.active .ios-switch::after {
  transform: translateX(15px);
}

.map-toggle-btn {
  padding: 10px 13px;
  border-radius: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.map-toggle-btn.active {
  border-color: var(--accent-border);
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.map-drawer {
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  animation: fadeSlideIn 0.24s var(--ease);
}

.district-map-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 8px;
  padding: 0 2px;
}

/* Slot Cards — Cleaner & More Airy */
.slots-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slot-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  transition: all 0.24s var(--ease);
}

.itinerary-panel.rainy-active .slot-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--rain-border);
}

.slot-card.highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 122, 110, 0.12);
}

.slot-card.swapping {
  animation: cardFlipPop 0.34s var(--ease);
}

@keyframes cardFlipPop {
  0% { opacity: 0.45; transform: scale(0.97) translateY(3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.slot-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.slot-time-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rainy-swapped-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--rain);
  background: #DCECF1;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.dice-swap-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.16s var(--ease);
}

.dice-swap-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.slot-poi-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 7px;
  line-height: 1.4;
}

.slot-meta-line {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.slot-cost-chip {
  color: var(--accent-deep);
  font-weight: 600;
}

.slot-highlight {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* Fixed Bottom Action Bar */
.detail-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 35;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bottom-fav-btn {
  padding: 11px 15px;
  border-radius: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.bottom-fav-btn.saved {
  background: var(--avoid-soft);
  border-color: var(--avoid-border);
  color: var(--avoid);
}

.bottom-share-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bottom-share-btn:hover {
  background: var(--accent-deep);
}

/* ============================================================
   SHEETS & TOAST
   ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(18, 34, 30, 0.42);
  backdrop-filter: blur(3px);
}

.sheet-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 16px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  max-height: 78%;
  overflow-y: auto;
  box-shadow: var(--shadow-float);
  animation: sheetUp 0.25s var(--ease);
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: var(--border-strong);
  margin: 0 auto 14px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 700;
}

.sheet-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-tint);
  display: grid;
  place-items: center;
  font-size: 13px;
}

.share-preview-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--ink-2);
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.city-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 9px;
}

.city-option-row.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.city-option-row.disabled {
  opacity: 0.55;
  background: var(--surface-soft);
}

.fav-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  margin-bottom: 9px;
  cursor: pointer;
}

.fav-item-thumb {
  width: 54px;
  height: 54px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%) translateY(16px);
  z-index: 80;
  background: rgba(24, 48, 44, 0.92);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   DESKTOP ADAPTIVE WEB LAYOUT (Clean & Spacious)
   ============================================================ */

@media (min-width: 920px) {
  body.mode-desktop-web .top-header {
    padding: 18px 0 12px;
  }

  body.mode-desktop-web .filter-strip {
    padding: 6px 0 10px;
  }

  body.mode-desktop-web .feed-meta-bar {
    padding: 4px 2px 16px;
  }

  body.mode-desktop-web .waterfall-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 0 0 48px;
  }

  body.mode-desktop-web .waterfall-col {
    gap: 18px;
  }

  body.mode-desktop-web .deal-card-body {
    padding: 14px 14px 16px;
  }

  body.mode-desktop-web .deal-title {
    font-size: 14px;
  }

  /* Page 2 Desktop: Focused centered wizard (Steps 1-3) + 3-col comparison (Step 4) */
  body.mode-desktop-web .wizard-container {
    max-width: 640px;
    margin: 12px auto 0;
    padding: 8px 0 48px;
  }

  body.mode-desktop-web .wizard-container.is-results {
    max-width: 1120px;
  }

  body.mode-desktop-web .results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
  }

  /* Page 3 Desktop Two-Column Split */
  body.mode-desktop-web .detail-hero {
    height: 300px;
    border-radius: 24px;
    margin-top: 16px;
  }

  body.mode-desktop-web .detail-content {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding: 22px 0 100px;
  }

  body.mode-desktop-web .budget-panel {
    position: sticky;
    top: 74px;
  }

  body.mode-desktop-web .detail-bottom-bar {
    max-width: 1124px;
    margin: 0 auto;
    left: 28px;
    right: 28px;
    bottom: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-float);
  }

  body.mode-desktop-web .sheet-container {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(460px, 92vw);
    border-radius: 24px;
    animation: fadeSlideIn 0.22s var(--ease);
  }
}

/* ============================================================
   FLOATING CAPSULE TAB BAR (轻走 · 探索 · 我的)
   ============================================================ */

.floating-tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(203, 218, 212, 0.85);
  box-shadow: 0 12px 32px rgba(20, 48, 42, 0.14), 0 2px 6px rgba(20, 48, 42, 0.05);
  transition: opacity 0.2s var(--ease), transform 0.22s var(--ease);
}

.floating-tabbar.hidden-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(24px);
}

.ftab-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.ftab-btn:hover {
  color: var(--accent-deep);
}

.ftab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 122, 110, 0.26);
}

.ftab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Give all primary tab pages generous bottom breathing room above floating capsule */
.tab-page-pad {
  padding-bottom: 102px !important;
}

/* ============================================================
   TAB 1: 轻走 (HOME WORKSPACE + SAVED SEARCH COMBINATIONS)
   ============================================================ */

.qz-page {
  padding: 8px 16px 104px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qz-hero-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #EFF7F4 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qz-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.qz-hero-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
}

.qz-hero-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

.qz-new-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 5px 14px rgba(30, 122, 110, 0.24);
  transition: background 0.18s var(--ease), transform 0.15s var(--ease);
}

.qz-new-btn:hover {
  background: var(--accent-deep);
}

.qz-new-btn:active {
  transform: scale(0.985);
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 2px;
  margin-bottom: -8px;
}

.section-heading {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.section-sub {
  font-size: 12px;
  color: var(--ink-3);
}

.combo-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.combo-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.combo-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(22, 52, 46, 0.08);
}

.combo-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.combo-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}

.combo-card-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.combo-tool-btn {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 3px 7px;
  border-radius: 8px;
  transition: all 0.15s;
}

.combo-tool-btn:hover {
  background: var(--surface-tint);
  color: var(--ink);
}

.combo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.combo-tag {
  font-size: 11.5px;
  color: var(--ink-2);
  background: var(--surface-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.combo-tag.avoid {
  color: var(--avoid);
  background: var(--avoid-soft);
}

.combo-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--surface-tint);
}

.combo-preview-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.combo-mini-thumbs {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.combo-mini-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -8px;
  background: var(--surface-tint);
}

.combo-mini-thumb:first-child {
  margin-left: 0;
}

.combo-preview-text {
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combo-preview-price {
  color: var(--accent-deep);
  font-weight: 700;
}

.combo-arrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.combo-empty-card {
  background: #fff;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

/* ============================================================
   TAB 3: 我的 (PROFILE + DEFAULT PREFERENCES + FAVORITES)
   ============================================================ */

.mine-page {
  padding: 12px 16px 104px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mine-profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
}

.mine-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  color: var(--accent-deep);
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mine-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.mine-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.mine-stats-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mine-stat-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.mine-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mine-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.mine-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.mine-card-hint {
  font-size: 11.5px;
  color: var(--ink-3);
}

.mine-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--surface-soft);
  font-size: 13px;
}

.mine-tier-pills {
  display: inline-flex;
  gap: 4px;
  background: var(--surface-tint);
  padding: 3px;
  border-radius: var(--radius-pill);
}

.mine-tier-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.mine-tier-pill.active {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 1px 4px rgba(22, 52, 46, 0.08);
}

.mine-fav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mine-fav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.mine-fav-card:hover {
  border-color: var(--accent-border);
  background: #fff;
}

.mine-fav-thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.mine-fav-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.38;
}

.mine-fav-meta {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 3px;
}

/* ============================================================
   DESKTOP ADAPTIVE OVERRIDES FOR 3-TAB STRUCTURE
   ============================================================ */

@media (min-width: 920px) {
  body.mode-desktop-web .qz-page {
    max-width: 980px;
    margin: 14px auto 0;
    padding: 8px 0 112px;
    gap: 24px;
  }

  body.mode-desktop-web .qz-hero-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px 30px;
    gap: 28px;
  }

  body.mode-desktop-web .qz-new-btn {
    width: auto;
    padding: 14px 26px;
    flex-shrink: 0;
  }

  body.mode-desktop-web .combo-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body.mode-desktop-web .mine-page {
    max-width: 1020px;
    margin: 16px auto 0;
    padding: 8px 0 112px;
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  body.mode-desktop-web .mine-left-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  body.mode-desktop-web .floating-tabbar {
    bottom: 22px;
    padding: 6px;
    gap: 6px;
  }

  body.mode-desktop-web .ftab-btn {
    height: 44px;
    padding: 0 22px;
    font-size: 13.5px;
  }
}

/* ============================================================
   CONTINUOUS-SCROLL FLEXIBLE ITINERARY (NO RIGID TIME SLOTS)
   ============================================================ */

.itin-flow-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Lightweight Sticky Day-Locator Bar + Global Rainy Switch */
.itin-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin: 0 -2px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(22, 52, 46, 0.06);
}

.day-anchor-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.day-anchor-pills::-webkit-scrollbar {
  display: none;
}

.day-anchor-pill {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-soft);
  transition: all 0.18s var(--ease);
}

.day-anchor-pill.active {
  background: var(--accent);
  color: #fff;
}

.rainy-mini-switch {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.rainy-mini-switch.active {
  background: #DCECF1;
  border-color: var(--rain);
  color: var(--rain);
}

.rainy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C4D2CD;
  transition: background 0.2s;
}

.rainy-mini-switch.active .rainy-dot {
  background: var(--rain);
}

/* Continuous Day Section Cards */
.day-section {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 66px;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.itin-flow-wrap.rainy-active .day-section {
  background: var(--rain-bg);
  border-color: var(--rain-border);
}

.day-sec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.day-sec-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  margin-bottom: 5px;
}

.itin-flow-wrap.rainy-active .day-sec-badge {
  background: #DCECF1;
  color: var(--rain);
}

.day-sec-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.day-sec-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

.day-map-link {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all 0.16s;
}

.day-map-link.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-deep);
}

/* Flexible Spot Cards (No Am/Pm labels) */
.day-spot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spot-card {
  padding: 14px 15px;
  border-radius: 15px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  transition: all 0.22s var(--ease);
}

.itin-flow-wrap.rainy-active .spot-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--rain-border);
}

.spot-card.highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 122, 110, 0.12);
}

.spot-card.swapping {
  animation: cardFlipPop 0.32s var(--ease);
}

.spot-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.spot-cue-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.spot-order-dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.itin-flow-wrap.rainy-active .spot-order-dot {
  background: var(--rain);
}

.spot-vibe-cue {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.spot-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.spot-action-pill {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.15s;
}

.spot-action-pill:hover {
  border-color: var(--accent-border);
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.spot-remove-btn {
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
}

.spot-remove-btn:hover {
  color: var(--avoid);
  background: var(--avoid-soft);
}

.day-chill-empty {
  padding: 18px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* Optional Same-District Add-On Pool */
.pool-strip {
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pool-strip-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.pool-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pool-add-chip {
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px dashed var(--border-strong);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.16s var(--ease);
}

.pool-add-chip:hover {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.pool-add-cost {
  font-size: 11px;
  color: var(--ink-3);
}

@media (min-width: 920px) {
  body.mode-desktop-web .itin-sticky-nav {
    top: 66px;
  }

  body.mode-desktop-web .day-section {
    scroll-margin-top: 128px;
    padding: 22px 22px;
  }
}

/* ============================================================
   AMAP LIVE ENRICHMENT & SAFE-AREA NATIVE POLISH
   ============================================================ */

.top-header {
  padding-top: max(12px, env(safe-area-inset-top, 12px));
}

.amap-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.spot-amap-extra {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.spot-amap-addr {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amap-nav-btn {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--accent-border);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s;
}

.amap-nav-btn:hover {
  background: var(--accent-soft);
}

.pool-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.amap-around-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-deep);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
}

.amap-around-btn:hover {
  background: #DCEEE9;
}

.amap-around-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.pool-add-chip.from-amap {
  border-style: solid;
  border-color: var(--accent-border);
  background: #F4FBF9;
}

.amap-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}
