/* Nourwhere: ivory / night blue / champagne, boarding-pass details */
:root {
  /* Nourwhere palette: ivory / night blue / champagne / white */
  --ivory: #f7f5f0;
  --navy: #182a3a;
  --champagne: #c8b99a;
  --champagne-ink: #8a7650; /* champagne dark enough for text */
  --white: #ffffff;
  --terracotta: #c46a4e;

  --ink: var(--ivory); /* page background */
  --ink-2: var(--white); /* cards, forms */
  --ink-3: #f0ece4; /* subtle fills */
  --ink-4: #e6e0d5;
  --line: rgba(24, 42, 58, 0.1);
  --line-2: rgba(24, 42, 58, 0.18);
  --cream: var(--navy); /* main text */
  --cream-2: #4a5866;
  --muted: #7d8794;
  --ticket-ink: var(--navy);
  --lime: var(--navy); /* primary: buttons, active states, "keep" */
  --lime-deep: #0f1c28;
  --tomato: var(--terracotta); /* "nope" */
  --sky: var(--champagne); /* "must-do" */
  --pink: var(--champagne); /* viral */
  --sun: #b8893a; /* budget warning */

  --c-food: #c9826b;
  --c-cafe: #b89573;
  --c-sight: #8fa6a0;
  --c-culture: #8c8bb0;
  --c-nature: #7fa383;
  --c-nightlife: #a8798f;
  --c-shopping: #c8b99a;
  --c-experience: #6f8da8;

  --display: "Poppins", system-ui, sans-serif;
  --body: "Poppins", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;

  --radius: 22px;
  --gutter: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease-spring: cubic-bezier(0.2, 1.35, 0.4, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--cream);
  font: 400 15px/1.55 var(--body);
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Film grain + colour blooms */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60vmax 50vmax at 105% -10%, rgba(24, 42, 58, 0.059), transparent 60%),
    radial-gradient(55vmax 50vmax at -15% 110%, rgba(200, 185, 154, 0.11), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#app {
  position: relative;
  z-index: 1;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 12px;
}

.ico {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.ico svg {
  width: 100%;
  height: 100%;
}
.muted {
  color: var(--muted);
}
.cap::first-letter {
  text-transform: uppercase;
}
.hidden {
  visibility: hidden;
}

/* ---------- Screen shell ---------- */

.screen {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 6px) var(--gutter) calc(var(--safe-bottom) + 28px);
  animation: screen-in 0.45s var(--ease-out);
}
@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  font: 600 19px/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
  translate: 0 -5px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  font: 700 13px/1 var(--display);
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.chip-btn:hover {
  border-color: var(--cream);
}
.chip-btn:active {
  transform: scale(0.96);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--ink-3);
  border: 1.5px solid var(--line);
  transition: transform 0.15s, background 0.2s;
  flex: none;
}
.icon-btn .ico {
  width: 20px;
  height: 20px;
}
.icon-btn:active {
  transform: scale(0.92);
}
.icon-btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 15px/1 var(--display);
  letter-spacing: 0;
  text-decoration: none;
  transition: transform 0.15s var(--ease-out), box-shadow 0.2s, background 0.2s;
  user-select: none;
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(24, 42, 58, 0.203);
}
.btn-primary:active:not(:disabled) {
  box-shadow: 0 6px 18px -8px rgba(24, 42, 58, 0.18);
}
.btn-ghost {
  border: 1.5px solid var(--line-2);
  color: var(--cream);
}
.btn-ghost:hover {
  border-color: var(--cream);
}
.btn-lg {
  height: 58px;
  font-size: 16px;
  padding: 0 28px;
}
.btn-xl {
  height: 64px;
  font-size: 17px;
  padding: 0 30px;
}
.btn-small {
  height: 40px;
  font-size: 13px;
  padding: 0 16px;
}
.btn-block {
  width: 100%;
}
.btn .ico {
  width: 20px;
  height: 20px;
}
.btn-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin: 8px auto 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink-3);
  border: 1.5px solid var(--line);
  font: 600 14px/1 var(--body);
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.chip:hover {
  border-color: var(--line-2);
}
.chip:active {
  transform: scale(0.95);
}
.chip .ico {
  width: 16px;
  height: 16px;
}

.section-title {
  font: 600 20px/1.1 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.kicker {
  margin: 0;
  font: 700 11px/1.2 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Home ---------- */

.hero {
  padding: 18px 0 34px;
  position: relative;
}
.hero-stack {
  position: relative;
  height: 210px;
  margin: 8px 0 26px;
}
.mini-card {
  position: absolute;
  width: 150px;
  height: 196px;
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid rgba(24, 42, 58, 0.08);
  box-shadow: 0 24px 50px rgba(24, 42, 58, 0.2);
  color: var(--ink);
  animation: float 6s ease-in-out infinite;
}
.mini-card.s1 {
  left: 4%;
  top: 14px;
  background: var(--c-food);
  rotate: -12deg;
}
.mini-card.s2 {
  left: 50%;
  translate: -50% 0;
  top: 0;
  background: var(--lime);
  rotate: 3deg;
  z-index: 2;
  animation-delay: -2s;
}
.mini-card.s3 {
  right: 4%;
  top: 20px;
  background: var(--pink);
  rotate: 13deg;
  animation-delay: -4s;
}
@keyframes float {
  50% {
    transform: translateY(-9px);
  }
}
.mini-emoji {
  font-size: 54px;
  line-height: 1;
}
.mini-label {
  font: 600 13px/1.1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mini-card.s2::after {
  content: "YES!";
  position: absolute;
  top: 14px;
  right: -10px;
  padding: 4px 10px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  font: 700 18px/1 var(--display);
  rotate: 16deg;
  background: var(--lime);
}

.hero-title {
  font: 700 clamp(40px, 12.5vw, 58px) / 0.95 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--lime);
}
.hero-sub {
  color: var(--cream-2);
  opacity: 0.8;
  font-size: 16px;
  margin: 0 0 26px;
  max-width: 34ch;
}

.install {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  margin-bottom: 26px;
  border-radius: 18px;
  background: var(--ink-3);
  border: 1.5px dashed var(--line-2);
  font-weight: 600;
  font-size: 14px;
}
.install .btn {
  background: var(--cream);
  color: var(--ink);
}

.trips {
  margin-bottom: 34px;
}
.trip-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 20px;
  background: var(--ink-2);
  border: 1.5px solid var(--line);
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}
.trip-row:hover {
  border-color: var(--line-2);
}
.trip-row:active {
  transform: scale(0.985);
}
.trip-cover {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-4);
  display: grid;
  place-items: center;
  font: 700 26px/1 var(--display);
  flex: none;
}
.trip-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.trip-info strong {
  font: 600 16px/1.15 var(--display);
  letter-spacing: -0.02em;
}
.trip-info .muted {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trip-status {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font: 700 11px/1.3 var(--display);
  background: var(--ink-4);
  color: var(--cream-2);
}
.trip-status.ready {
  background: var(--lime);
  color: var(--ink);
}

.how-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 10px;
}
.how-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--ink-2);
  border: 1.5px solid var(--line);
  font-weight: 500;
}
.how-n {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font: 700 15px/1 var(--display);
  background: var(--cream);
  color: var(--ink);
  flex: none;
}
.how-list li:nth-child(2) .how-n {
  background: var(--lime);
}
.how-list li:nth-child(3) .how-n {
  background: var(--pink);
}
.how-list li:nth-child(4) .how-n {
  background: var(--sky);
}

.foot {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
  padding: 10px 0;
}

/* ---------- Wizard ---------- */

.wizard {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.steps {
  display: flex;
  gap: 6px;
  flex: 1;
  max-width: 200px;
}
.step-dot {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: var(--ink-4);
  transition: background 0.3s;
}
.step-dot.done {
  background: var(--cream);
}
.step-dot.active {
  background: var(--lime);
  box-shadow: 0 0 14px rgba(24, 42, 58, 0.27);
}
.wizard-body {
  flex: 1;
  padding: 22px 0 24px;
  animation: step-in 0.5s var(--ease-out);
}
@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
}
.wizard-foot {
  position: sticky;
  bottom: 0;
  padding: 14px 0 calc(var(--safe-bottom) + 6px);
  background: linear-gradient(to top, var(--ink) 65%, transparent);
}
.wizard-foot .btn {
  width: 100%;
}

.q {
  font: 700 clamp(30px, 9vw, 40px) / 1 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.q-hint {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 16px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap > .ico {
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
  color: var(--lime);
  pointer-events: none;
}
.big-input {
  width: 100%;
  height: 66px;
  padding: 0 20px 0 52px;
  border-radius: 20px;
  background: var(--ink-2);
  border: 2px solid var(--line-2);
  font: 700 21px/1 var(--display);
  letter-spacing: -0.02em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.big-input::placeholder {
  color: #a0a7af;
}
.big-input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 5px rgba(24, 42, 58, 0.054);
}

.suggest {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1.5px solid var(--line);
}
.suggest:empty {
  display: none;
}
.suggest li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.suggest li:last-child {
  border-bottom: 0;
}
.suggest li:hover,
.suggest li.active {
  background: var(--ink-3);
}
.suggest li > span:last-child {
  display: flex;
  flex-direction: column;
}
.suggest small {
  color: var(--muted);
  font-size: 13px;
}
.suggest-ico {
  font-size: 20px;
}
.popular {
  margin-top: 22px;
}

.field {
  display: block;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--ink-2);
  border: 1.5px solid var(--line);
}
.field.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.field-label {
  display: block;
  font: 700 14px/1.2 var(--display);
  letter-spacing: -0.01em;
}
.field-label small {
  color: var(--muted);
  font: 500 13px var(--body);
}
.date-input {
  width: 100%;
  margin-top: 10px;
  height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--ink-3);
  border: 1.5px solid var(--line);
  font: 700 17px var(--body);
  color-scheme: light;
}
.stepper-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.unit {
  color: var(--muted);
  font-size: 13px;
  width: 64px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stepper output {
  min-width: 34px;
  text-align: center;
  font: 700 26px/1 var(--display);
}
.stepper .icon-btn {
  background: var(--cream);
  color: var(--ink);
  border: 0;
}

.money-row {
  display: flex;
  gap: 10px;
}
.big-input.money {
  padding-left: 20px;
  font-size: 30px;
  -moz-appearance: textfield;
}
.big-input.money::-webkit-outer-spin-button,
.big-input.money::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.currency {
  height: 66px;
  padding: 0 14px;
  border-radius: 20px;
  background: var(--ink-3);
  border: 2px solid var(--line-2);
  font: 600 16px var(--display);
  flex: none;
}
.budget-perday {
  font: 700 15px var(--display);
  margin: 18px 0 6px;
  min-height: 1.2em;
}
.budget-tier {
  margin: 0 0 20px;
  min-height: 1.4em;
  font-weight: 600;
}
.budget-tier.tight {
  color: var(--sun);
}
.budget-tier.comfy {
  color: var(--lime);
}
.budget-tier.big {
  color: var(--pink);
}

.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}
.interest {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--ink-2);
  border: 2px solid var(--line);
  font: 700 14px/1 var(--body);
  transition: transform 0.2s var(--ease-spring), background 0.2s, border-color 0.2s, color 0.2s;
  animation: pop-in 0.4s var(--ease-spring) backwards;
  animation-delay: calc(var(--i) * 25ms);
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
}
.interest-emoji {
  font-size: 19px;
}
.interest.on {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.interest:nth-child(even).on {
  background: var(--lime);
}
.pace-title {
  margin: 0 0 12px;
}
.pace-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pace {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 18px;
  background: var(--ink-2);
  border: 2px solid var(--line);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.pace strong {
  font: 600 15px/1 var(--display);
}
.pace small {
  color: var(--muted);
  font-size: 12px;
}
.pace.on {
  border-color: var(--cream);
  background: var(--ink-3);
}
.pace.on strong {
  color: var(--lime);
}

.note {
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--ink-2);
  border: 2px solid var(--line-2);
  font-size: 17px;
  resize: vertical;
  outline: none;
  min-height: 130px;
}
.note:focus {
  border-color: var(--lime);
}
.recap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.recap-item {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--ink-3);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Loading ---------- */

.loading-body,
.error-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 5vh;
}
.shuffle {
  position: relative;
  width: 130px;
  height: 170px;
  margin-bottom: 34px;
}
.shuffle-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 52px;
  border: 2px solid rgba(24, 42, 58, 0.1);
  box-shadow: 0 18px 40px rgba(24, 42, 58, 0.2);
  animation: shuffle 3.2s var(--ease-out) infinite;
  animation-delay: calc(var(--i) * -0.8s);
}
.shuffle-card:nth-child(1) {
  background: var(--c-food);
}
.shuffle-card:nth-child(2) {
  background: var(--lime);
}
.shuffle-card:nth-child(3) {
  background: var(--pink);
}
.shuffle-card:nth-child(4) {
  background: var(--sky);
}
@keyframes shuffle {
  0% {
    transform: translateX(0) rotate(-4deg);
    z-index: 4;
  }
  20% {
    transform: translateX(140px) rotate(22deg);
    opacity: 0;
    z-index: 4;
  }
  21% {
    transform: translateX(0) rotate(0) scale(0.85);
    opacity: 0;
    z-index: 0;
  }
  40%,
  100% {
    transform: translateX(0) rotate(4deg) scale(0.92);
    opacity: 1;
    z-index: 1;
  }
}
.loading-title {
  font: 600 18px/1.25 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--muted);
}
.loading-place {
  display: block;
  font-size: clamp(34px, 11vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1;
  margin-top: 6px;
  word-break: break-word;
}
.gen-bar {
  width: 100%;
  max-width: 340px;
  height: 8px;
  border-radius: 99px;
  background: var(--ink-3);
  overflow: hidden;
  margin-bottom: 26px;
}
.gen-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lime), var(--champagne));
  box-shadow: 0 0 20px rgba(24, 42, 58, 0.27);
  transition: width 0.25s linear;
}
.gen-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  text-align: left;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}
.gen-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a3aab2;
  font-weight: 600;
  transition: color 0.3s;
}
.gen-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  flex: none;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s;
}
.gen-step.active {
  color: var(--cream);
}
.gen-step.active .gen-dot {
  border-color: var(--lime);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.gen-step.done {
  color: var(--cream-2);
}
.gen-step.done .gen-dot {
  background: var(--lime);
  border-color: var(--lime);
}
.gen-step.done .gen-dot::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  rotate: 45deg;
  translate: 0 -1px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.quip {
  font: italic 400 15px/1.5 var(--body);
  color: var(--lime);
  min-height: 3em;
  max-width: 300px;
  margin: 0;
}
.quip.in {
  animation: quip-in 0.5s var(--ease-out);
}
@keyframes quip-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.error-emoji {
  font-size: 72px;
  margin-bottom: 16px;
  animation: float 4s ease-in-out infinite;
}

/* ---------- Swipe ---------- */

.swipe {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--safe-bottom) + 10px);
  overflow: hidden;
  touch-action: none;
}
.swipe-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.swipe-title strong {
  font: 600 16px/1.1 var(--display);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}
.counter {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.done-btn {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.gauge {
  padding: 4px 2px 12px;
}
.gauge-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}
.gauge-spent {
  font: 600 13px/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.gauge-text {
  color: var(--muted);
  font-weight: 600;
}
.gauge-track {
  height: 8px;
  border-radius: 99px;
  background: var(--ink-3);
  overflow: hidden;
}
.gauge-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(24, 42, 58, 0.225);
  transition: width 0.5s var(--ease-spring), background 0.3s;
}
.gauge.warn .gauge-fill {
  background: var(--sun);
}
.gauge.warn .gauge-text {
  color: var(--sun);
}
.gauge.over .gauge-fill {
  background: var(--tomato);
  box-shadow: 0 0 14px rgba(196, 106, 78, 0.6);
}
.gauge.over .gauge-text {
  color: var(--tomato);
}

.stack {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 4px 0 6px;
  --pull: 0;
}
.swipe-card {
  position: absolute;
  inset: 0 0 18px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: 0 30px 60px -20px rgba(24, 42, 58, 0.32), 0 0 0 1.5px rgba(255, 255, 255, 0.06) inset;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transform-origin: 50% 90%;
  transform: translateY(calc((var(--depth) - var(--pull) * min(var(--depth), 1)) * 16px)) scale(calc(1 - (var(--depth) - var(--pull) * min(var(--depth), 1)) * 0.05));
  transition: transform 0.35s var(--ease-out);
}
.swipe-card:not(.top) {
  filter: brightness(calc(1 - var(--depth) * 0.22));
  pointer-events: none;
}
.swipe-card.top {
  cursor: grab;
  touch-action: none;
  transform: none;
  transition: none;
}
.swipe-card.dragging {
  cursor: grabbing;
  transition: none;
}
.swipe-card.springing {
  transition: transform 0.32s var(--ease-spring);
}
.swipe-card.flying {
  transition: transform 0.34s cubic-bezier(0.5, 0, 0.9, 0.5), opacity 0.34s;
}
.swipe-card.returning {
  transition: transform 0.38s var(--ease-out);
}
.swipe-card.from-left {
  transform: translate(-120vw, 30px) rotate(-24deg);
}
.swipe-card.from-right {
  transform: translate(120vw, 30px) rotate(24deg);
}
.swipe-card.from-top {
  transform: translate(0, -110vh);
}

.photo,
.sheet-photo,
.extra-photo {
  position: relative;
  overflow: hidden;
  background: var(--ink-4);
}
.photo {
  position: absolute;
  inset: 0;
}
.photo img,
.sheet-photo img,
.extra-photo img,
.hotel-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 50%),
    linear-gradient(160deg, var(--cat, var(--ink-4)), var(--ink-3));
}
.fallback span {
  font-size: 96px;
  filter: drop-shadow(0 10px 20px rgba(24, 42, 58, 0.14));
  translate: 0 -12%;
}
.extra-photo.fallback span {
  font-size: 26px;
  translate: none;
}
.sheet-photo.fallback span {
  font-size: 80px;
  translate: none;
}
.cat-food {
  --cat: var(--c-food);
}
.cat-cafe {
  --cat: var(--c-cafe);
}
.cat-sight {
  --cat: var(--c-sight);
}
.cat-culture {
  --cat: var(--c-culture);
}
.cat-nature {
  --cat: var(--c-nature);
}
.cat-nightlife {
  --cat: var(--c-nightlife);
}
.cat-shopping {
  --cat: var(--c-shopping);
}
.cat-experience {
  --cat: var(--c-experience);
}

.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(16, 28, 40, 0.45) 0%, transparent 22%, transparent 40%, rgba(16, 28, 40, 0.75) 66%, rgba(16, 28, 40, 0.97) 100%);
  pointer-events: none;
}

.stamp {
  position: absolute;
  top: 34px;
  padding: 6px 14px;
  border: 5px solid currentColor;
  border-radius: 14px;
  font: 700 34px/1 var(--display);
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  text-shadow: 0 2px 12px rgba(24, 42, 58, 0.14);
  background: rgba(16, 28, 40, 0.25);
  backdrop-filter: blur(2px);
}
.stamp-yes {
  left: 22px;
  color: var(--lime);
  rotate: -14deg;
}
.stamp-no {
  right: 22px;
  color: var(--tomato);
  rotate: 14deg;
}
.stamp-must {
  left: 50%;
  top: auto;
  bottom: 46%;
  translate: -50% 0;
  color: var(--sky);
  rotate: -6deg;
  white-space: nowrap;
}

.stickers {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  z-index: 2;
}
.stickers.inline {
  position: static;
  margin-bottom: 12px;
}
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font: 600 12px/1 var(--body);
  letter-spacing: 0.01em;
  background: rgba(16, 28, 40, 0.55);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sticker:nth-child(2) {

}
.sticker.viral {
  border-color: rgba(200, 185, 154, 0.55);
  color: #fff;
}
.sticker.tag {
  background: var(--ink-3);
  color: var(--cream-2);
  border-color: var(--line);
  backdrop-filter: none;
  font-weight: 500;
}

.card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 20px 18px;
  z-index: 2;
}
.price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font: 700 15px/1 var(--display);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.price-pill small {
  font: 700 11px var(--body);
  opacity: 0.7;
}
.price-pill.free {
  background: var(--lime);
}
.card-name {
  font: 700 clamp(26px, 7.4vw, 34px) / 1 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-wrap: balance;
}
.card-hook {
  margin: 0 0 12px;
  font: 400 15px/1.45 var(--body);
  color: rgba(255, 255, 255, 0.85);
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cream-2);
}
.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-meta small {
  opacity: 0.6;
}
.card-meta .ico {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}
.tap-hint {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 4px 0 2px;
}
.act {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-2);
  border: 2px solid var(--line-2);
  transition: transform 0.2s var(--ease-spring), background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.act:active {
  transform: scale(0.88);
}
.act .ico {
  width: 46%;
  height: 46%;
}
.act-undo {
  width: 46px;
  height: 46px;
  color: var(--muted);
}
.act-no {
  width: 68px;
  height: 68px;
  color: var(--tomato);
  border-color: rgba(196, 106, 78, 0.45);
}
.act-must {
  width: 56px;
  height: 56px;
  color: var(--sky);
  border-color: rgba(200, 185, 154, 0.45);
}
.act-yes {
  width: 68px;
  height: 68px;
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 8px 28px rgba(24, 42, 58, 0.135);
}
.act-yes .ico svg {
  fill: currentColor;
}
.actions[data-intent="no"] .act-no {
  background: var(--tomato);
  color: var(--ink);
  transform: scale(1.12);
}
.actions[data-intent="yes"] .act-yes {
  transform: scale(1.14);
  box-shadow: 0 8px 40px rgba(24, 42, 58, 0.27);
}
.actions[data-intent="must"] .act-must {
  background: var(--sky);
  color: var(--ink);
  transform: scale(1.14);
}
.swipe-help {
  text-align: center;
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.deck-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border-radius: 28px;
  border: 2px dashed var(--line-2);
  overflow: hidden;
}
.deck-empty h2 {
  font: 700 28px/1.05 var(--display);
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
}
.deck-empty p {
  margin: 0 0 18px;
  color: var(--cream-2);
}
.empty-emoji {
  font-size: 68px;
  animation: pop-in 0.6s var(--ease-spring);
}
.confetti i {
  position: absolute;
  top: -20px;
  left: calc(var(--i) * 7.4%);
  width: 10px;
  height: 16px;
  border-radius: 3px;
  background: var(--lime);
  animation: fall 2.6s ease-in forwards;
  animation-delay: calc(var(--i) * 70ms);
  opacity: 0.9;
}
.confetti i:nth-child(3n) {
  background: var(--pink);
}
.confetti i:nth-child(3n + 1) {
  background: var(--sky);
  border-radius: 50%;
  width: 10px;
  height: 10px;
}
@keyframes fall {
  to {
    transform: translateY(110vh) rotate(720deg);
  }
}

/* ---------- Sheet ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 42, 58, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.26s;
}
.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink-2);
  border-radius: 28px 28px 0 0;
  border: 1.5px solid var(--line);
  border-bottom: 0;
  padding-bottom: calc(var(--safe-bottom) + 18px);
  transform: translateY(100%);
  transition: transform 0.32s var(--ease-out);
}
.sheet.open .sheet-backdrop {
  opacity: 1;
}
.sheet.open .sheet-panel {
  transform: translateY(0);
}
.sheet-grab {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 22px;
  display: grid;
  place-items: center;
}
.sheet-grab::before {
  content: "";
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: var(--line-2);
  margin-top: 10px;
}
.sheet-photo {
  height: 240px;
  margin: -22px 0 0;
  border-radius: 28px 28px 0 0;
}
.sheet-content {
  padding: 20px var(--gutter) 6px;
}
.sheet-name {
  font: 700 30px/1 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.sheet-content > p {
  margin: 0 0 14px;
}
.sheet-content > .muted {
  font-size: 14px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 22px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: var(--ink-3);
  min-width: 0;
}
.fact small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
}
.fact strong {
  font: 600 15px/1.15 var(--display);
  word-break: break-word;
}
.sub {
  font: 600 12px/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 8px;
}
.tip {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(24, 42, 58, 0.036);
  border: 1.5px solid rgba(24, 42, 58, 0.113);
}
.tip strong {
  font: 600 13px var(--display);
  color: var(--lime);
}
.tip p {
  margin: 6px 0 0;
}
.address {
  font-weight: 600;
}
.hours {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--cream-2);
  display: grid;
  gap: 3px;
}
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 10px;
}
.credit {
  font-size: 12px;
  color: var(--muted);
}
.sheet-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 16px 0 4px;
  background: linear-gradient(to top, var(--ink-2) 70%, transparent);
}
.sheet.compact .sheet-panel {
  padding: 0 var(--gutter) calc(var(--safe-bottom) + 18px);
}
.menu-title {
  font: 600 20px/1.15 var(--display);
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
}
.menu-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
}
.menu-item .ico {
  width: 20px;
  height: 20px;
}
.menu-item.danger {
  color: var(--tomato);
}

/* ---------- Plan ---------- */

.plan-top-title {
  font: 600 16px/1 var(--display);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-title {
  font: 600 18px/1.1 var(--display);
  color: var(--muted);
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
}
.plan-title span {
  display: block;
  color: var(--cream);
  font-size: clamp(40px, 13vw, 60px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 4px 0 2px;
  word-break: break-word;
}
.plan-summary {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink);
  margin-bottom: 18px;
  overflow: hidden;
}
.plan-summary::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 22px solid rgba(16, 28, 40, 0.07);
}
.plan-summary .kicker {
  color: rgba(16, 28, 40, 0.6);
}
.total {
  font: 700 clamp(38px, 11vw, 50px) / 1 var(--display);
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}
.plan-summary .muted {
  color: rgba(16, 28, 40, 0.65);
  margin: 0 0 12px;
  font-weight: 600;
}
.delta {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font: 600 12px/1.2 var(--display);
}
.delta.over {
  color: var(--tomato);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dashed rgba(16, 28, 40, 0.2);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font: 700 20px/1.1 var(--display);
  letter-spacing: -0.02em;
}
.stat small {
  font-weight: 700;
  font-size: 12px;
  opacity: 0.6;
}

.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 14px;
  padding: 2px var(--gutter);
  scroll-snap-type: x proximity;
}
.day-tabs::-webkit-scrollbar {
  display: none;
}
.day-tab {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--ink-2);
  border: 2px solid var(--line);
  scroll-snap-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.day-tab strong {
  font: 600 14px/1 var(--display);
}
.day-tab small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.day-tab.on {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.day-tab.on small {
  color: rgba(16, 28, 40, 0.6);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--line);
  margin-bottom: 22px;
  background: var(--ink-2);
}
.map {
  height: 240px;
  background: #121118;
}
.leaflet-container {
  font-family: var(--body);
}
.leaflet-control-attribution {
  background: rgba(16, 28, 40, 0.7) !important;
  color: var(--muted) !important;
  font-size: 10px;
}
.leaflet-control-attribution a {
  color: var(--cream-2) !important;
}
.leaflet-bar a {
  background: var(--ink-3) !important;
  color: var(--cream) !important;
  border-color: var(--line) !important;
}
.pin {
  background: none;
  border: 0;
}
.pin-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 4px;
  rotate: -45deg;
  background: var(--cat, var(--lime));
  border: 2.5px solid var(--ink);
  box-shadow: 0 6px 14px rgba(24, 42, 58, 0.2);
  color: var(--ink);
  font: 700 12px/1 var(--display);
}
.pin-n b {
  rotate: 45deg;
}

.day-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}
.day-head .kicker {
  margin-bottom: 4px;
}
.day-title {
  font: 700 24px/1.05 var(--display);
  letter-spacing: -0.02em;
  margin: 0;
}
.day-cost {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
}
.day-cost small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.day-cost strong {
  font: 700 18px/1.1 var(--display);
  color: var(--lime);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.ticket {
  position: relative;
  display: flex;
  border-radius: 20px;
  background: var(--cream);
  color: var(--ticket-ink);
  box-shadow: 0 14px 30px -12px rgba(24, 42, 58, 0.24);
  animation: ticket-in 0.45s var(--ease-out) backwards;
}
.ticket:nth-child(odd) {

}
.ticket:nth-child(4n + 1) {

}
@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.ticket-stub {
  position: relative;
  flex: none;
  width: 92px;
  padding: 16px 8px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 2.5px dashed rgba(24, 42, 58, 0.22);
}
/* Perforation notches */
.ticket-stub::before,
.ticket-stub::after {
  content: "";
  position: absolute;
  right: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
}
.ticket-stub::before {
  top: -10px;
}
.ticket-stub::after {
  bottom: -10px;
}
.ticket-n {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ticket-ink);
  color: var(--cream);
  font: 700 12px/1 var(--display);
  margin-bottom: 6px;
}
.ticket-stub strong {
  font: 700 17px/1 var(--display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ticket-stub small {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(24, 42, 58, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ticket-main {
  flex: 1;
  min-width: 0;
  padding: 14px 4px 14px 14px;
  cursor: pointer;
}
.ticket-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ticket-emoji {
  font-size: 18px;
  line-height: 1.2;
}
.ticket-name {
  font: 600 16px/1.2 var(--display);
  letter-spacing: -0.02em;
}
.ticket-hook {
  margin: 4px 0 8px;
  font: 400 13.5px/1.45 var(--body);
  color: rgba(24, 42, 58, 0.68);
}
.ticket-addr {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(24, 42, 58, 0.6);
}
.ticket-addr .ico {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}
.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
}
.ticket-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ticket-meta .ico {
  width: 14px;
  height: 14px;
}
.price-tag {
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--ticket-ink);
  color: var(--cream);
  font: 600 12px/1 var(--display);
}
.price-tag.free {
  background: var(--lime);
  color: var(--ink);
}
.must-tag {
  color: var(--sky);
}
.closed {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--terracotta);
}
.ticket.warn {
  outline: 2.5px solid var(--sun);
}
.ticket-more {
  align-self: flex-start;
  margin: 6px 4px 0 0;
  color: rgba(24, 42, 58, 0.5);
}
.hop {
  display: flex;
  justify-content: flex-start;
  padding: 7px 0 7px 32px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  position: relative;
}
.hop::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  border-left: 2px dotted var(--line-2);
}
.hop span {
  position: relative;
  padding-left: 26px;
}
.empty-day {
  padding: 26px;
  text-align: center;
  border-radius: var(--radius);
  border: 2px dashed var(--line-2);
  color: var(--muted);
  font-weight: 600;
}

.extras,
.breakdown {
  margin-top: 34px;
}
.extras > .muted {
  margin: -6px 0 14px;
  font-size: 14px;
}
.extra-list {
  display: grid;
  gap: 10px;
}
.extra {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  border-radius: 18px;
  background: var(--ink-2);
  border: 1.5px solid var(--line);
}
.extra-photo {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  flex: none;
}
.extra-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}
.extra-info strong {
  font: 600 14px/1.2 var(--display);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.extra-info small {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.chip.add {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  font-size: 12.5px;
  font-weight: 700;
  flex: none;
  padding: 0 12px;
}

.bars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.bars li {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.bar-track {
  height: 12px;
  border-radius: 99px;
  background: var(--ink-3);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--cat);
  animation: grow 0.9s var(--ease-out);
  transform-origin: left;
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}
.bars strong {
  font: 600 13px var(--display);
  font-variant-numeric: tabular-nums;
}

.plan-actions {
  display: grid;
  gap: 10px;
  margin: 36px 0 18px;
}

/* ---------- Toast ---------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 24px);
  z-index: 60;
  translate: -50% 20px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 14px 40px rgba(24, 42, 58, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, translate 0.35s var(--ease-spring);
}
#toast.show {
  opacity: 1;
  translate: -50% 0;
}

/* ---------- Larger screens ---------- */

@media (min-width: 700px) {
  .swipe {
    max-height: 920px;
  }
  .map {
    height: 300px;
  }
}

@media (max-height: 680px) {
  .card-hook {
    font-size: 18px;
  }
  .tap-hint,
  .swipe-help {
    display: none;
  }
  .act-no,
  .act-yes {
    width: 58px;
    height: 58px;
  }
  .act-must {
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Progressive deck ---------- */

.more-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -4px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
}
.more-loading.show {
  display: flex;
}
.mini-spin,
.big-spin {
  display: inline-block;
  border-radius: 50%;
  border: 2px solid var(--lime);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.mini-spin {
  width: 12px;
  height: 12px;
}
.big-spin {
  width: 42px;
  height: 42px;
  border-width: 3px;
  margin-bottom: 14px;
}
.deck-empty.waiting p {
  color: var(--muted);
  font-weight: 600;
}

.sticker[class*="cat-"]::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat);
  box-shadow: 0 0 10px var(--cat);
}

/* ---------- Day-by-day decks ---------- */

.day-dots {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -2px calc(var(--gutter) * -1) 10px;
  padding: 0 var(--gutter);
}
.day-dots:empty {
  display: none;
}
.day-dots::-webkit-scrollbar {
  display: none;
}
.day-dot {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font: 600 12px/1 var(--body);
  color: var(--muted);
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.day-dot.on {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.day-dot.done {
  color: var(--lime);
  border-color: rgba(24, 42, 58, 0.158);
}
.day-dot.pending {
  opacity: 0.45;
}
.day-dot:disabled {
  opacity: 0.45;
  cursor: default;
}
.day-done-badge {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font: 700 26px/1 var(--body);
  box-shadow: 0 10px 30px -8px rgba(24, 42, 58, 0.225);
  animation: pop-in 0.5s var(--ease-spring);
}

.actions.empty .act:not(.act-undo) {
  visibility: hidden;
}

/* ---------- Stay ---------- */

.stay-opts {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.stay-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--ink-2);
  border: 2px solid var(--line);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.stay-opt.on {
  border-color: var(--lime);
  background: var(--ink-3);
}
.stay-ico {
  font-size: 30px;
  line-height: 1;
}
.stay-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stay-txt strong {
  font: 600 16px/1.2 var(--body);
}
.stay-txt small {
  color: var(--muted);
  font-size: 13px;
}
.stay-label {
  margin: 4px 0 10px;
}
.big-input.money.small,
.currency.small {
  height: 56px;
  font-size: 22px;
}
.currency.small {
  font-size: 15px;
}
.stay-presets {
  margin: 12px 0 18px;
}
.stay-body {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}
.stay-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 10px;
  color: var(--muted);
}
.area-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1.5px solid var(--line);
}
.area-card.best {
  border-color: rgba(24, 42, 58, 0.203);
  background: linear-gradient(160deg, rgba(24, 42, 58, 0.036), var(--ink-2) 60%);
}
.area-name {
  font: 700 22px/1.2 var(--body);
  margin: 6px 0 8px;
}
.area-why {
  margin: 0 0 14px;
  color: var(--cream-2);
  font-size: 14px;
}
.area-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.night-price {
  font: 700 16px/1 var(--body);
}
.night-price small {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}
.hotels-title {
  margin: 14px 0 0;
}
.hotel {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  border: 1.5px solid var(--line);
  transition: border-color 0.2s;
}
.hotel.on {
  border-color: var(--lime);
}
.hotel-photo {
  position: relative;
  height: 170px;
  overflow: hidden;
}
.hotel-body {
  padding: 14px 16px 16px;
}
.hotel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.hotel-name {
  font: 600 17px/1.25 var(--body);
}
.hotel-rating {
  flex: none;
  font-weight: 600;
  font-size: 14px;
}
.hotel-rating small {
  color: var(--muted);
  font-weight: 500;
}
.hotel-area {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.hotel-area .ico {
  width: 14px;
  height: 14px;
}
.hotel-hook {
  margin: 10px 0 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--lime);
}
.hotel-why {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--cream-2);
}
.hotel-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hotel-price > small {
  color: var(--muted);
  font-size: 13px;
}
.hotel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.est-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.stay-card:empty {
  display: none;
}
.stay-card {
  margin: -4px 0 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1.5px solid var(--line);
}
.stay-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.stay-row .extra-info small,
.stay-row .night-price {
  font-size: 13px;
}
.link-btn {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trip-total {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed rgba(16, 28, 40, 0.2);
}
.trip-total span {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}
.trip-total strong {
  font-weight: 700;
}
.pin-home {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  font-size: 17px;
  box-shadow: 0 6px 14px rgba(24, 42, 58, 0.2);
}
a.chip {
  text-decoration: none;
}

/* ================= Nourwhere light theme ================= */

body::before {
  background:
    radial-gradient(60vmax 50vmax at 105% -10%, rgba(200, 185, 154, 0.22), transparent 60%),
    radial-gradient(55vmax 50vmax at -15% 110%, rgba(24, 42, 58, 0.05), transparent 60%);
}
body::after {
  opacity: 0.025;
}

/* Elegant serif for big titles only */
.brand,
.hero-title,
.q,
.plan-title span,
.loading-place,
.card-name,
.sheet-name,
.day-title,
.area-name,
.deck-empty h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero-title {
  font-weight: 700;
}
.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
}
.brand {
  font-size: 23px;
}
.brand-dot {
  background: var(--champagne);
  box-shadow: none;
}

/* Hero cards */
.mini-card {
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -18px rgba(24, 42, 58, 0.35);
}
.mini-card.s1 {
  background: var(--white);
  color: var(--navy);
}
.mini-card.s2 {
  background: var(--navy);
  color: var(--ivory);
}
.mini-card.s2::after {
  background: var(--ivory);
  color: var(--navy);
  border-color: var(--navy);
}
.mini-card.s3 {
  background: #e8dfcc;
  color: var(--navy);
}

/* Buttons */
.btn-primary {
  background: var(--navy);
  color: var(--ivory);
  box-shadow: 0 12px 28px -12px rgba(24, 42, 58, 0.55);
}
.how-list li:nth-child(3) .how-n,
.how-list li:nth-child(4) .how-n {
  color: var(--navy);
}
.date-input {
  color-scheme: light;
}
.budget-tier.big {
  color: var(--champagne-ink);
}

/* Swipe cards: text sits on a photo, keep it white */
.swipe-card {
  color: var(--white);
  box-shadow: 0 30px 60px -24px rgba(24, 42, 58, 0.45);
}
.card-meta,
.card-meta span {
  color: rgba(255, 255, 255, 0.92);
}
.tap-hint {
  color: rgba(255, 255, 255, 0.7);
}
.sticker {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}
.sticker.viral {
  border-color: var(--champagne);
  color: var(--white);
}
.sticker.tag {
  background: var(--ink-3);
  color: var(--cream-2);
  border-color: var(--line);
}
.stickers.inline .sticker:not(.tag) {
  background: var(--navy);
}
.price-pill {
  background: var(--white);
  color: var(--navy);
}
.price-pill.free {
  background: var(--champagne);
  color: var(--navy);
}
.stamp {
  background: rgba(255, 255, 255, 0.9);
  text-shadow: none;
}
.stamp-yes {
  color: var(--navy);
}
.stamp-no {
  color: var(--terracotta);
}
.stamp-must {
  color: var(--champagne-ink);
}
.act {
  background: var(--white);
  box-shadow: 0 8px 22px -10px rgba(24, 42, 58, 0.35);
}
.act-must {
  color: var(--champagne-ink);
  border-color: var(--champagne);
}
.actions[data-intent="must"] .act-must {
  background: var(--champagne);
  color: var(--navy);
}
.gen-bar-fill {
  background: linear-gradient(90deg, var(--navy), var(--champagne));
  box-shadow: none;
}
.gen-step.done .gen-dot::after {
  border-color: var(--ivory);
}
.quip {
  color: var(--champagne-ink);
}
.shuffle-card:nth-child(3) {
  background: var(--terracotta);
}

/* Plan summary: a night-blue block */
.plan-summary .kicker,
.plan-summary .muted,
.stat small {
  color: rgba(247, 245, 240, 0.7);
}
.plan-summary {
  color: var(--ivory);
}
.plan-summary::after {
  border-color: rgba(200, 185, 154, 0.18);
}
.stat-row,
.trip-total {
  border-top-color: rgba(247, 245, 240, 0.22);
}
.delta {
  background: var(--champagne);
  color: var(--navy);
}
.delta.over {
  background: var(--terracotta);
  color: var(--ivory);
}
.day-cost strong {
  color: var(--navy);
}

/* Tickets: white cards on ivory */
.ticket {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 14px 30px -18px rgba(24, 42, 58, 0.45);
  border: 1px solid var(--line);
}
.ticket-n,
.price-tag {
  color: var(--ivory);
}
.price-tag.free {
  background: var(--champagne);
  color: var(--navy);
}
.must-tag {
  color: var(--champagne-ink);
}
.ticket.warn {
  outline-color: var(--sun);
}

/* Map */
.map {
  background: #ecebe6;
}
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.85) !important;
}
.pin-n {
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(24, 42, 58, 0.3);
}
.pin-home {
  background: var(--white);
  border-color: var(--navy);
}

/* Stay */
.area-card.best {
  border-color: var(--champagne);
  background: linear-gradient(160deg, rgba(200, 185, 154, 0.16), var(--white) 60%);
}
.hotel-hook {
  color: var(--champagne-ink);
}
.day-done-badge {
  background: var(--navy);
  color: var(--ivory);
}
.day-dot.done {
  color: var(--navy);
  border-color: var(--champagne);
}
.link-btn {
  color: var(--navy);
}
.fallback {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.45), transparent 55%),
    linear-gradient(160deg, var(--cat, var(--ink-4)), var(--ink-3));
}
.act-yes {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
  box-shadow: 0 10px 26px -10px rgba(24, 42, 58, 0.55);
}
.day-tab.on small {
  color: rgba(247, 245, 240, 0.7);
}
.stay-opt {
  position: relative;
}
.stay-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--line-2);
  transition: background 0.2s, border-color 0.2s;
}
.stay-opt.on .stay-check {
  background: var(--navy);
  border-color: var(--navy);
}
.stay-opt.on .stay-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--ivory);
  border-width: 0 2.5px 2.5px 0;
  rotate: 45deg;
}
.stay-opt:last-child .stay-check {
  border-radius: 50%;
}
.stay-multi {
  margin: -10px 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.area-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.total-unit {
  font: 500 15px var(--body);
  margin-left: 6px;
  opacity: 0.7;
}
.day-cost small:last-child {
  font-size: 11px;
}

/* ---------- Getting there ---------- */

.skip-btn {
  margin-top: 22px;
}
.date-nudge {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--champagne-ink);
  font-weight: 500;
}
.go-body {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}
.route {
  margin: -6px 0 2px;
  font-size: 15px;
}
.route-meta {
  color: var(--muted);
  font-size: 13px;
}
.insight {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--white);
}
.insight strong {
  font-size: 14px;
}
.insight.low {
  border-color: rgba(127, 163, 131, 0.6);
  background: rgba(127, 163, 131, 0.12);
}
.insight.high {
  border-color: rgba(196, 106, 78, 0.5);
  background: rgba(196, 106, 78, 0.08);
}
.go-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(127, 163, 131, 0.16);
  color: #4f7a55;
  font: 600 11px/1.3 var(--body);
  letter-spacing: 0.02em;
}
.go-title .live-badge {
  margin-left: 4px;
}
.flight,
.mode {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1.5px solid var(--line);
  transition: border-color 0.2s;
}
.flight.on,
.mode.on {
  border-color: var(--navy);
}
.flight-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.airline-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--ink-3);
  flex: none;
}
.airline-logo.blank {
  display: grid;
  place-items: center;
}
.flight-airline {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.flight-airline strong {
  font-weight: 600;
  font-size: 15px;
}
.flight-airline small {
  color: var(--champagne-ink);
  font-weight: 600;
  font-size: 12px;
}
.flight-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
}
.flight-price strong {
  font: 700 17px/1.1 var(--body);
}
.flight-price small {
  font-size: 11px;
  color: var(--muted);
}
.flight-times {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.ft {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ft strong {
  font: 600 17px/1 var(--body);
}
.ft small {
  color: var(--muted);
  font-size: 12px;
}
.ft-line {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
}
.ft-line i {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--line-2) 50%, transparent 50%) 0 0 / 8px 2px;
}
.mode {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mode-ico {
  font-size: 26px;
}
.mode-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.mode-info strong {
  font-weight: 600;
}
.mode-info small {
  color: var(--muted);
  font-size: 12.5px;
}
.go-links {
  margin: 0;
}
.cheapest-src {
  margin: -8px 0 12px;
  font-size: 12.5px;
  color: var(--champagne-ink);
  font-weight: 500;
}

.bus-from {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 14px;
}
.bus-ride {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-2);
}
.bus-ride:last-of-type {
  border-bottom: 0;
}
.bus-ride .flight-times {
  margin: 4px 0 8px;
}
.bus-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.bus-meta .tags {
  color: var(--champagne-ink);
  font-weight: 600;
  font-size: 12px;
}
.bus-meta .seats {
  color: var(--terracotta);
  font-weight: 600;
  font-size: 12px;
}
.bus-price {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.bus-price strong {
  font: 700 16px var(--body);
}
.bus-price small {
  color: var(--muted);
  font-size: 11px;
}
.ft sup {
  font-size: 10px;
  color: var(--terracotta);
  margin-left: 2px;
}
.flight.bus .hotel-actions {
  margin-top: 10px;
}

/* Transport modes */
.modes-box:empty {
  display: none;
}
.modes-label {
  margin: 22px 0 10px;
}
.mode-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.modes-note,
.modes-missing {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.price-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}
.price-legend:empty {
  display: none;
}
.legend-live {
  color: #4f7a55;
}
.legend-est,
.est-badge {
  color: var(--champagne-ink);
}
.est-badge {
  font-size: 11px;
  font-weight: 600;
}
.currency-tag {
  display: grid;
  place-items: center;
  padding: 0 16px;
  border-radius: 20px;
  background: var(--ink-3);
  border: 2px solid var(--line-2);
  font: 600 15px var(--body);
}
.over-budget {
  margin: -4px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--terracotta);
}
.score10 {
  display: inline-block;
  margin-right: 2px;
  padding: 1px 6px;
  border-radius: 6px 6px 6px 0;
  background: var(--navy);
  color: var(--ivory);
  font-weight: 700;
  font-size: 12.5px;
}
