:root,
body[data-theme="snow"] {
  --ink: #1c1814;
  --ink-soft: #4a423a;
  --muted: #7a7168;
  --line: #e6dfd4;
  --paper: #faf7f2;
  --paper-deep: #f0e9df;
  --white: #fffefb;
  --accent: #d4b06a;
  --accent-deep: #b8944a;
  --accent-ink: #241c0a;
  --accent-soft: rgba(212, 176, 106, 0.32);
  --confirmed: #2f6b4f;
  --confirmed-bg: #e7f3ec;
  --maybe: #8a6a1f;
  --maybe-bg: #f8efd6;
  --no: #7a7168;
  --no-bg: #eeebe6;
  --danger: #9b3b3b;
  --shadow: 0 10px 30px rgba(28, 24, 20, 0.06);
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Manrope", system-ui, sans-serif;
  --bg: radial-gradient(1200px 500px at 10% -10%, rgba(212, 176, 106, 0.2), transparent 55%),
    linear-gradient(180deg, #faf7f2 0%, #f0e9df 100%);
  --chrome-bg: rgba(250, 247, 242, 0.9);
  --th-bg: #fffefb;
  --noise-opacity: 0.03;
}

/* Editorial: glacier — softer, less clinical (optional cool light) */
body[data-theme="glacier"] {
  --ink: #1e3340;
  --ink-soft: #3d5563;
  --muted: #6a7f8c;
  --line: #d5e2e9;
  --paper: #f4f7f8;
  --paper-deep: #e8eef2;
  --white: #ffffff;
  --accent: #4a90c8;
  --accent-deep: #3a78ab;
  --accent-ink: #ffffff;
  --accent-soft: rgba(74, 144, 200, 0.2);
  --confirmed: #2f6b4f;
  --confirmed-bg: #e2f2ea;
  --maybe: #8a6a1f;
  --maybe-bg: #f6eed7;
  --no: #6a7f8c;
  --no-bg: #e8eef2;
  --danger: #a03d3d;
  --shadow: 0 10px 30px rgba(30, 51, 64, 0.07);
  --bg: radial-gradient(1200px 500px at 10% -10%, rgba(74, 144, 200, 0.12), transparent 55%),
    linear-gradient(180deg, #f4f7f8 0%, #e4ebf0 100%);
  --chrome-bg: rgba(244, 247, 248, 0.9);
  --th-bg: #f8fafb;
  --noise-opacity: 0.025;
}

/* Editorial: Nordic Night — ice cyan on near-black */
body[data-theme="nordic"] {
  --ink: #e8eef6;
  --ink-soft: #c5d0de;
  --muted: #8b98ab;
  --line: rgba(255, 255, 255, 0.12);
  --paper: #0b1220;
  --paper-deep: #070d18;
  --white: #121a2a;
  --accent: #7eb8c9;
  --accent-deep: #5f9aab;
  --accent-ink: #071018;
  --accent-soft: rgba(126, 184, 201, 0.28);
  --confirmed: #8fd0ae;
  --confirmed-bg: rgba(47, 107, 79, 0.35);
  --maybe: #e4c775;
  --maybe-bg: rgba(138, 106, 31, 0.3);
  --no: #9aa3b2;
  --no-bg: rgba(255, 255, 255, 0.08);
  --danger: #e08a8a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --bg: radial-gradient(1000px 480px at 85% -15%, rgba(126, 184, 201, 0.14), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #070d18 100%);
  --chrome-bg: rgba(11, 18, 32, 0.9);
  --th-bg: #151e30;
  --noise-opacity: 0.04;
}

/* Editorial: Sunny Powder — warm daylight lodge (inviting default) */
body[data-theme="powder"] {
  --ink: #2a2118;
  --ink-soft: #4a3f34;
  --muted: #7a6e62;
  --line: #e8dfd2;
  --paper: #faf6f0;
  --paper-deep: #f0e8dc;
  --white: #fffdf9;
  --accent: #e0b45c;
  --accent-deep: #c9963a;
  --accent-ink: #2a1c08;
  --accent-soft: rgba(224, 180, 92, 0.28);
  --confirmed: #2f6b4f;
  --confirmed-bg: #e7f3ec;
  --maybe: #8a6a1f;
  --maybe-bg: #f8efd6;
  --no: #7a6e62;
  --no-bg: #f0e8dc;
  --danger: #a03d3d;
  --shadow: 0 10px 28px rgba(42, 33, 24, 0.07);
  --bg: radial-gradient(1100px 500px at 12% -12%, rgba(224, 180, 92, 0.2), transparent 55%),
    linear-gradient(180deg, #faf6f0 0%, #f0e8dc 100%);
  --chrome-bg: rgba(250, 246, 240, 0.92);
  --th-bg: #fffdf9;
  --noise-opacity: 0.03;
}

/* Editorial: Pine & Slate — warm olive wood, not cold steel */
body[data-theme="pine"] {
  --ink: #1f241c;
  --ink-soft: #3e4638;
  --muted: #6a7364;
  --line: #d8ddd0;
  --paper: #f3f0e8;
  --paper-deep: #e6e2d6;
  --white: #faf8f2;
  --accent: #7a8f5c;
  --accent-deep: #5f7348;
  --accent-ink: #faf8f2;
  --accent-soft: rgba(122, 143, 92, 0.24);
  --confirmed: #2f6b4f;
  --confirmed-bg: #dfece4;
  --maybe: #8a6a1f;
  --maybe-bg: #f0e8d2;
  --no: #6a7364;
  --no-bg: #e6e2d6;
  --danger: #9b3b3b;
  --shadow: 0 10px 30px rgba(31, 36, 28, 0.08);
  --bg: radial-gradient(1100px 480px at 14% -10%, rgba(122, 143, 92, 0.16), transparent 55%),
    linear-gradient(180deg, #f3f0e8 0%, #e4dfd2 100%);
  --chrome-bg: rgba(243, 240, 232, 0.92);
  --th-bg: #faf8f2;
  --noise-opacity: 0.03;
}

/* Editorial: Copper Lodge — distinct from gold: copper CTAs on warm stone */
body[data-theme="daylodge"] {
  --ink: #1c1612;
  --ink-soft: #4a3c32;
  --muted: #7a6a5c;
  --line: #e5d9cc;
  --paper: #f8f2ea;
  --paper-deep: #ebe1d4;
  --white: #fffaf4;
  --accent: #c17a4a;
  --accent-deep: #a46338;
  --accent-ink: #fff8f2;
  --accent-soft: rgba(193, 122, 74, 0.24);
  --confirmed: #2f6b4f;
  --confirmed-bg: #e2f2ea;
  --maybe: #8a6a1f;
  --maybe-bg: #f6eed7;
  --no: #7a6a5c;
  --no-bg: #ebe1d4;
  --danger: #a03d3d;
  --shadow: 0 10px 28px rgba(28, 22, 18, 0.08);
  --bg: radial-gradient(1000px 480px at 86% -10%, rgba(193, 122, 74, 0.16), transparent 55%),
    linear-gradient(180deg, #f8f2ea 0%, #ebe1d4 100%);
  --chrome-bg: rgba(248, 242, 234, 0.92);
  --th-bg: #fffaf4;
  --noise-opacity: 0.03;
}

/* Photo themes — VP-style destination backdrop with glass surfaces */
body[data-theme="peaks"],
body[data-theme="chalet"],
body[data-theme="apres"],
body[data-theme="dawn"],
body[data-theme="frost"],
body[data-theme="ember"] {
  --ink: #f2efe9;
  --ink-soft: #dcd7cd;
  --muted: #b3ada2;
  --line: rgba(255, 255, 255, 0.16);
  --paper: rgba(16, 20, 28, 0.55);
  --paper-deep: rgba(12, 15, 21, 0.6);
  --white: rgba(16, 20, 28, 0.64);
  --confirmed: #9fd8ba;
  --confirmed-bg: rgba(47, 107, 79, 0.45);
  --maybe: #ecd28a;
  --maybe-bg: rgba(138, 106, 31, 0.4);
  --no: #c4beb4;
  --no-bg: rgba(255, 255, 255, 0.12);
  --danger: #eb9c9c;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --th-bg: rgba(255, 255, 255, 0.06);
  --chrome-bg: rgba(10, 13, 20, 0.72);
  --noise-opacity: 0;
}

body[data-theme="peaks"] {
  --accent: #f4b653;
  --accent-deep: #e09f33;
  --accent-ink: #2b1c04;
  --accent-soft: rgba(244, 182, 83, 0.35);
  --bg: linear-gradient(rgba(10, 14, 22, 0.5), rgba(10, 14, 22, 0.78)),
    url("../images/hero-mountain.png") center / cover no-repeat fixed;
}

body[data-theme="chalet"] {
  --accent: #e8a25c;
  --accent-deep: #d18a41;
  --accent-ink: #2b1804;
  --accent-soft: rgba(232, 162, 92, 0.35);
  --bg: linear-gradient(rgba(12, 12, 22, 0.5), rgba(12, 12, 22, 0.8)),
    url("../images/hero-chalet.png") center / cover no-repeat fixed;
}

body[data-theme="apres"] {
  --accent: #d96a5a;
  --accent-deep: #bf4f40;
  --accent-ink: #2d0f0a;
  --accent-soft: rgba(217, 106, 90, 0.32);
  --bg: linear-gradient(rgba(20, 10, 14, 0.52), rgba(20, 10, 14, 0.82)),
    url("../images/hero-apres.png") center / cover no-repeat fixed;
}

/* Photo: Valley Dawn — blue-hour ridge, soft apricot CTA */
body[data-theme="dawn"] {
  --accent: #e8b86d;
  --accent-deep: #d09a4a;
  --accent-ink: #24180a;
  --accent-soft: rgba(232, 184, 109, 0.34);
  --bg: linear-gradient(185deg, rgba(8, 16, 28, 0.42), rgba(12, 22, 38, 0.78)),
    url("../images/hero-mountain.png") center / cover no-repeat fixed;
}

/*
 * Premium Winter Escape skins (Crystal Peak / Firelight Lodge)
 * Distinct type, glass, shape, and motion — not just a new photo.
 */
body[data-theme="frost"],
body[data-theme="ember"] {
  --font-ui: "Inter", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ink: #f7f8fa;
  --ink-soft: #e2e6ee;
  --muted: #a8b0c0;
  --line: rgba(255, 255, 255, 0.18);
  --confirmed: #9fd8ba;
  --confirmed-bg: rgba(47, 107, 79, 0.45);
  --maybe: #ecd28a;
  --maybe-bg: rgba(138, 106, 31, 0.4);
  --no: #c4beb4;
  --no-bg: rgba(255, 255, 255, 0.12);
  --danger: #eb9c9c;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  --th-bg: rgba(255, 255, 255, 0.08);
  --noise-opacity: 0;
  --escape-glass: rgba(255, 255, 255, 0.1);
  --escape-glass-border: rgba(255, 255, 255, 0.2);
  --escape-ease: 500ms ease-out;
}

/* Ice — crisp panes, cool midnight, amber heat for CTAs */
body[data-theme="frost"] {
  --accent: #e8a45a;
  --accent-deep: #d4893a;
  --accent-ink: #1a1206;
  --accent-soft: rgba(232, 164, 90, 0.34);
  --radius: 10px;
  --paper: rgba(255, 255, 255, 0.08);
  --paper-deep: rgba(255, 255, 255, 0.06);
  --white: rgba(255, 255, 255, 0.1);
  --chrome-bg: rgba(8, 18, 32, 0.55);
  --bg: linear-gradient(185deg, rgba(6, 16, 30, 0.35), rgba(4, 10, 20, 0.78)),
    url("../images/resort-zermatt.png") center / cover no-repeat fixed;
}

/* Fire — softer lodge radii, wood warmth, firelight CTAs */
body[data-theme="ember"] {
  --accent: #f0a04a;
  --accent-deep: #d9842e;
  --accent-ink: #1f1206;
  --accent-soft: rgba(240, 160, 74, 0.38);
  --radius: 20px;
  --paper: rgba(255, 248, 240, 0.1);
  --paper-deep: rgba(40, 22, 14, 0.45);
  --white: rgba(255, 248, 240, 0.11);
  --chrome-bg: rgba(22, 12, 10, 0.55);
  --escape-glass: rgba(255, 236, 214, 0.1);
  --escape-glass-border: rgba(255, 200, 140, 0.22);
  --bg: linear-gradient(185deg, rgba(28, 14, 10, 0.4), rgba(10, 6, 6, 0.82)),
    url("../images/chalet-interior-1.png") center / cover no-repeat fixed;
}

body[data-kind="photo"] .surface,
body[data-kind="photo"] .table-wrap,
body[data-kind="photo"] .room,
body[data-kind="photo"] .resort,
body[data-kind="photo"] .flight-option,
body[data-kind="photo"] .arrival,
body[data-kind="photo"] .filters,
body[data-kind="photo"] .modal {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body[data-kind="photo"] .filters {
  background: rgba(16, 20, 28, 0.72);
}

body[data-kind="photo"] .modal {
  background: rgba(18, 22, 30, 0.92);
}

body[data-kind="photo"] .toast {
  background: var(--accent);
  color: var(--accent-ink);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  background: var(--bg);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%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");
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--line);
}

.chrome-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0;
}

.brand-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.brand-block {
  min-width: 0;
  flex: 1 1 auto;
}

.wordmark {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1;
  margin: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

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

.trip-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.trip-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.trip-sync {
  color: var(--muted);
  white-space: nowrap;
}

.chrome-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 0 1 auto;
  max-width: min(100%, 36rem);
}

/* One chrome status line — next step (or Plan ready) */
.chrome-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  margin: 0.55rem 0 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.chrome-status-next {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.chrome-status-next:hover {
  color: var(--ink);
}

.chrome-status-frac {
  margin-left: 0.45rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

body[data-kind="photo"] .chrome-status-next,
body[data-theme="nordic"] .chrome-status-next {
  color: var(--accent);
}

/* —— Post-wizard peak-end —— */
.trip-ready {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

.trip-ready-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.trip-ready-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--confirmed);
}

.trip-ready-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.trip-ready-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36rem;
}

.trip-ready-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

body[data-kind="photo"] .trip-ready-inner,
body[data-vibe="escape"] .trip-ready-inner {
  background: var(--escape-glass, rgba(16, 20, 28, 0.64));
  border-color: var(--escape-glass-border, var(--line));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}


.nav-tabs {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  padding-bottom: 0;
  margin: 0 -0.25rem;
}

.nav-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-tab:hover {
  color: var(--ink);
}

.nav-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent-deep);
}

.nav-tab.is-done::after {
  content: "";
  width: 0.32em;
  height: 0.55em;
  margin-left: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.1em);
  opacity: 0.75;
}

.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.panel-enter {
  animation: rise 320ms ease both;
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
  line-height: 1;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #cfc8bb;
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}

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

.btn-ghost {
  background: transparent;
}

.btn-danger {
  color: var(--danger);
  border-color: #e7c8c8;
  background: #fff7f7;
}

.btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.my-trips-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 820px) {
  .grid-2 {
    grid-template-columns: 1.2fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

.surface {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.surface-pad {
  padding: 1.1rem 1.15rem;
}

.surface h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.stat-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stat-row .value {
  font-weight: 700;
}

/* Headline money — must stay readable on every template.
   Never use --accent-ink here (that's for text ON solid accent buttons). */
.price {
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-deep) 22%, transparent);
}

.price-local {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.9;
}

/* Photo / dark editorial: bright accent on a solid dark chip */
body[data-kind="photo"] .price,
body[data-theme="nordic"] .price {
  color: var(--accent);
  background: rgba(8, 11, 17, 0.72);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

/* Trip pulse + budget footers: slightly larger so the group total reads as the hero figure */
.stat-row .price,
.roster tfoot .price {
  font-size: 1.08em;
  letter-spacing: -0.01em;
}

body[data-kind="photo"] .resort-deal {
  color: var(--ink);
  background: rgba(8, 11, 17, 0.45);
}

body[data-kind="photo"] .resort-blurb {
  color: var(--muted);
}

.filters {
  position: sticky;
  top: 132px;
  z-index: 20;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  padding: 0.75rem;
  margin-bottom: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  .filters {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

.field,
.select,
.input {
  width: 100%;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.field:focus,
.select:focus,
.input:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
}

.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.quote-includes {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

.quote-includes .label {
  margin-bottom: 0.45rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0.25rem 0;
  cursor: pointer;
}

.check-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent-deep);
}

.quote-incomplete-note {
  margin: 0.45rem 0 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

table.roster {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

table.roster th,
table.roster td {
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 0.88rem;
}

table.roster th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--th-bg);
  position: sticky;
  top: 0;
}

table.roster tr:last-child td {
  border-bottom: 0;
}

table.roster tr {
  animation: fadeRow 280ms ease both;
}

@keyframes fadeRow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.who {
  font-weight: 700;
}

.sub {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.badge:disabled {
  cursor: default;
}

.badge-confirmed {
  background: var(--confirmed-bg);
  color: var(--confirmed);
}

.badge-likely {
  background: #e8f0d8;
  color: #4a6420;
}

.badge-maybe {
  background: var(--maybe-bg);
  color: var(--maybe);
}

.badge-no {
  background: var(--no-bg);
  color: var(--no);
}

.room-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.room {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.room.is-unassigned {
  background: #fffaf2;
  border-style: dashed;
}

.room.is-over {
  border-color: #e0b4b4;
  box-shadow: 0 0 0 3px rgba(155, 59, 59, 0.12);
}

.room-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.room-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
}

.room-cap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.room-cap .input {
  width: 3.4rem;
  padding: 0.35rem 0.45rem;
}

.stay-occupancy {
  margin: 0 0 0.65rem;
}

.room-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.65rem;
  margin: 0.35rem 0 0.25rem;
}

.room-fields .input {
  width: 100%;
  max-width: 6.5rem;
  padding: 0.35rem 0.45rem;
}

.room-price {
  margin: 0.5rem 0 0.65rem;
}

.room-price-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.room-price-row .input {
  max-width: 8rem;
}

.room-estimate {
  margin: 0.3rem 0 0;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
}

.over-flag {
  color: var(--danger);
  font-weight: 700;
  margin-left: 0.4rem;
}

.select-sm {
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  width: auto;
}

/* ---------- theme switcher ---------- */

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.25rem;
  background: var(--white);
}

.theme-switch .btn {
  border: 0;
  background: transparent;
  padding: 0.25rem 0.5rem;
  font-size: 0.95rem;
  line-height: 1;
}

.theme-switch .btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

.theme-name {
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 6.5rem;
  text-align: center;
  color: var(--ink);
}

/* ---------- trip wizard ---------- */

.modal-wide {
  width: min(760px, 100%);
}

.drill {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  height: min(52vh, 460px);
}

.drill-col {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-deep) transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem;
  background: var(--paper);
}

.drill-col::-webkit-scrollbar {
  width: 8px;
}

.drill-col::-webkit-scrollbar-thumb {
  background: var(--accent-deep);
  border-radius: 999px;
}

.drill-col::-webkit-scrollbar-track {
  background: transparent;
}

.drill-col .label {
  padding: 0.25rem 0.5rem;
}

.drill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  transition: background 120ms ease;
  min-width: 0;
}

.drill-item-main {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drill-item-meta {
  flex: 0 1 46%;
  max-width: 46%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  font-weight: 500;
}

/* Village + ski area: stack so long area names don’t warp the row */
.drill-item--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.12rem;
}

.drill-item--stack .drill-item-main,
.drill-item--stack .drill-item-meta {
  flex: none;
  max-width: none;
  width: 100%;
  text-align: left;
}

.drill-item:hover {
  background: var(--accent-soft);
}

.drill-item.is-active {
  background: var(--white);
  box-shadow: var(--shadow);
}

.drill-item.is-picked {
  background: var(--accent);
  color: var(--accent-ink);
}

.drill-item.is-picked .sub {
  color: var(--accent-ink);
  opacity: 0.75;
}

.drill-area {
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  padding-top: 0.8rem;
}

.wizard-results {
  display: grid;
  gap: 0.25rem;
  max-height: 46vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem;
  background: var(--paper);
}

@media (max-width: 640px) {
  .drill {
    grid-template-columns: 1fr;
    max-height: 60vh;
  }

  .theme-name {
    min-width: 4.5rem;
  }
}

.room-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
}

.room-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.guest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.guest-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

.flight-list {
  display: grid;
  gap: 0.65rem;
}

.flight-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.flight-option:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.flight-option.is-selected {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.flight-option input {
  accent-color: var(--accent-deep);
}

.flight-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-ink);
  white-space: nowrap;
}

.arrival-list {
  display: grid;
  gap: 0.65rem;
}

.arrival {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.arrival-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.names {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
}

.budget-table th,
.budget-table td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.budget-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.budget-table tfoot td {
  border-bottom: 0;
  font-weight: 800;
  padding-top: 0.95rem;
}

.budget-table input {
  width: 100%;
  min-width: 5.5rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.42);
  z-index: 50;
  display: grid;
  place-items: center;
  /* When Alpine hides via x-show, don't leave an invisible click trap */
  pointer-events: auto;
}

.modal-backdrop[style*="display: none"],
.modal-backdrop[hidden] {
  pointer-events: none !important;
}

.modal {
  width: min(560px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(20, 20, 20, 0.2);
  padding: 1.25rem;
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.85rem;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.modal-head h3 {
  margin-bottom: 0.35rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.trip-dates {
  margin: 0;
  padding: 0.85rem 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 72%, var(--white));
}

.trip-dates > .label,
.trip-dates legend.label {
  padding: 0;
  float: none;
  width: auto;
  margin-bottom: 0.35rem;
}

.trip-dates-hint,
.trip-dates-summary {
  margin: 0 0 0.7rem;
}

.trip-dates-summary {
  color: var(--ink-soft);
  font-weight: 600;
}

.trip-dates-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.trip-dates-row .input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.trip-dates-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-auth-submit {
  min-width: 8.5rem;
}

.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: rise 220ms ease both;
}

.empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}

.empty .btn {
  margin-top: 0.75rem;
}

/* —— Landing (cold-start) —— */
.chrome-planner-actions {
  display: contents;
}

.app-shell.is-landing .chrome-landing {
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.55), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.app-shell.is-landing .wordmark-landing {
  font-size: 1.35rem;
  opacity: 0.9;
}

/* Full-bleed chrome: wordmark left edge, actions right — matches hero inset */
.app-shell.is-landing .chrome-landing .chrome-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.85rem clamp(1.25rem, 4vw, 3.5rem) 0.65rem;
}

.app-shell.is-landing .chrome-landing .brand-row {
  align-items: center;
  width: 100%;
  gap: 1.25rem;
}

.app-shell.is-landing .chrome-landing .chrome-actions {
  max-width: none;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 0.55rem;
}

.main-landing {
  max-width: none;
  margin: 0;
  padding: 0;
}

.main-landing .panel-enter {
  animation: none;
}

.landing {
  color: var(--ink);
  scroll-margin-top: 0;
}

#landing-story {
  scroll-margin-top: 4.5rem;
}

.landing-hero {
  position: relative;
  min-height: calc(100dvh - 4.25rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem) 3.5rem;
  overflow: hidden;
}

.landing-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 10, 18, 0.72) 0%, rgba(6, 10, 18, 0.28) 48%, rgba(6, 10, 18, 0.08) 100%),
    linear-gradient(0deg, rgba(6, 10, 18, 0.7) 0%, transparent 52%);
  pointer-events: none;
}

body[data-kind="editorial"] .landing-hero-veil {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--paper) 88%, transparent) 0%, transparent 70%),
    linear-gradient(0deg, var(--paper-deep) 0%, transparent 55%);
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.landing-brand {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 8.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  animation: landing-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  max-width: 18ch;
  animation: landing-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 90ms both;
}

.landing-lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.5;
  color: var(--ink-soft);
  animation: landing-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 160ms both;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  animation: landing-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 230ms both;
}

.btn-landing {
  padding: 0.8rem 1.35rem;
  font-size: 0.95rem;
}

.btn-landing-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--ink) 35%, transparent);
  color: var(--ink);
}

.btn-landing-ghost:hover {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.landing-cta-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.8rem 0.35rem;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.landing-cta-link:hover {
  color: var(--ink);
}

.landing-scroll {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3.5rem);
  bottom: 1.15rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: landing-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 320ms both;
}

.landing-scroll:hover {
  color: var(--ink);
}

.landing-scroll-icon {
  animation: landing-bob 1.8s ease-in-out infinite;
}

.landing-chapter {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.landing-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-chapter-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.landing-chapter-copy {
  margin: 0;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.landing-story {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}

body[data-kind="editorial"] .landing-story {
  background: var(--paper-deep);
}

.landing-path {
  border-top: 1px solid var(--line);
}

.landing-steps {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.landing-steps li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.landing-step-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--muted);
  line-height: 1.2;
}

.landing-steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.landing-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 36rem;
}

.landing-find {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-deep) 70%, transparent);
}

.landing-search {
  margin-top: 1.75rem;
  max-width: 36rem;
}

.landing-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.landing-search-input {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 2.75rem;
  font-size: 1rem;
}

.landing-popular {
  margin-top: 1.75rem;
}

.landing-popular-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-popular-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.landing-popular-item {
  appearance: none;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  padding: 0.15rem 0;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.landing-popular-item:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

.landing-climax {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3.5rem);
  text-align: left;
  max-width: 1120px;
  margin: 0 auto;
}

.landing-climax-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  max-width: 14ch;
}

.landing-climax-copy {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.5;
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@media (min-width: 900px) {
  .landing-steps {
    grid-template-columns: 1fr 1fr;
    border-top: 0;
    gap: 0 2.5rem;
  }

  .landing-steps li {
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-brand,
  .landing-headline,
  .landing-lede,
  .landing-cta,
  .landing-scroll,
  .landing-scroll-icon {
    animation: none;
  }
}

/* Editorial landing: keep brand readable without photo depth */
body[data-kind="editorial"] .app-shell.is-landing .chrome-landing {
  background: color-mix(in srgb, var(--chrome-bg) 92%, transparent);
}

/* photo themes already paint body — landing chapters need readable surfaces */
body[data-kind="photo"] .landing-story,
body[data-kind="photo"] .landing-find {
  backdrop-filter: blur(10px);
}

.funnel {
  display: grid;
  gap: 0.55rem;
}

.funnel-bar {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.85rem;
}

.bar-track {
  height: 8px;
  background: var(--paper-deep);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent-deep);
  border-radius: inherit;
}

.bar-fill.maybe {
  background: #d4b35a;
}

.bar-fill.pending {
  background: #b2ada4;
}

/* ---------- crew filters ---------- */

.filters-4 {
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
}

.filters-5 {
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .filters-4,
  .filters-5 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- resorts ---------- */

.resort-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Compare mode: wider tracks so expanded cards breathe; fewer per row. */
.resort-grid.is-compare-mode {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.resort {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 100%;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    opacity 160ms ease,
    padding 160ms ease,
    transform 160ms ease;
}

.resort.is-selected {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.resort.is-expanded {
  padding: 1.25rem 1.3rem 1.35rem;
}

.resort-expand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.2rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

/* Soften alternatives once a trip destination is chosen — keep compare usable */
.resort-grid.has-trip-destination .resort:not(.is-selected):not(.is-comparing),
.resort-grid.is-compare-mode .resort:not(.is-expanded) {
  opacity: 0.78;
}

.resort-grid.has-trip-destination .resort:not(.is-selected):hover,
.resort-grid.has-trip-destination .resort.is-comparing,
.resort-grid.is-compare-mode .resort.is-expanded,
.resort-grid.is-compare-mode .resort:not(.is-expanded):hover {
  opacity: 1;
}

@media (max-width: 720px) {
  .resort-grid.is-compare-mode {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Browse-only top media band (UX: before title; hide when compareModeActive). */
.resort-media {
  flex-shrink: 0;
  height: 140px;
  margin: -1.1rem -1.15rem 0.7rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: transparent;
}

.resort-media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

@media (max-width: 720px) {
  .resort-media {
    height: 120px;
  }
}

.resort-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.resort-top .sub {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.resort-actions {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.resort-actions > .btn {
  width: 100%;
}

.resort-actions-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.85rem;
  min-height: 1.25rem;
}

@media (max-width: 720px) {
  .resort-actions-meta .btn-text {
    padding: 0.55rem 0.2rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

.btn-text {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem 0;
  margin: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
}

.btn-text:hover,
.btn-text:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--ink);
  outline: none;
}

.btn-text.is-on {
  color: var(--accent-ink);
  text-decoration-color: color-mix(in srgb, var(--accent-ink) 50%, transparent);
}

.resort-actions-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.resort.is-comparing {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow);
}

.btn-compare-on {
  background: var(--accent-soft);
  border-color: var(--accent-deep);
  color: var(--accent-ink);
  font-weight: 700;
}

.resort-filter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.resort-fit-filters {
  margin: 0 0 1rem;
  text-align: center;
}

.fit-discover {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.25rem 0.2rem;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.fit-discover:hover {
  color: var(--ink);
}

.resort-fit-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.resort-fit-chips {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.resort-fit-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: min(100%, 40rem);
}

.fit-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.fit-chip:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.fit-chip.is-on {
  border-color: var(--accent-deep);
  background: var(--accent-soft);
  color: var(--ink);
}

/* Reset action — text link under the trapeze, not another vibe chip */
.fit-clear {
  appearance: none;
  border: 0;
  background: transparent;
  margin-top: 0.15rem;
  padding: 0.25rem 0.2rem;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.fit-clear:hover {
  color: var(--ink);
}

body[data-kind="photo"] .fit-chip,
body[data-theme="nordic"] .fit-chip {
  background: rgba(8, 11, 17, 0.45);
}

body[data-kind="photo"] .fit-chip.is-on,
body[data-theme="nordic"] .fit-chip.is-on {
  border-color: var(--accent);
  color: var(--accent);
}

body[data-kind="photo"] .fit-clear,
body[data-theme="nordic"] .fit-clear {
  color: var(--ink-soft);
}

body[data-kind="photo"] .fit-clear:hover,
body[data-theme="nordic"] .fit-clear:hover {
  color: var(--accent);
}

button.linkish {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
  padding: 0;
}

button.linkish:hover {
  color: var(--ink);
}

.km-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.km-tag .sub {
  max-width: 9.5rem;
  text-align: right;
  line-height: 1.3;
}

.linked-note {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.linked-note.is-linked {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.linked-note.is-pass {
  background: transparent;
  border: 1px dashed var(--line-strong, var(--line));
  color: var(--muted);
}

.compare-panel {
  margin: 0 0 1.25rem;
  transition: box-shadow 280ms ease, border-color 280ms ease;
}

.compare-panel.is-compare-focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (prefers-reduced-motion: reduce) {
  .compare-panel {
    transition: none;
  }
}

.resort-details {
  margin: 0.35rem 0 0.15rem;
}

.compare-matrix th {
  white-space: nowrap;
}

.compare-matrix th .btn {
  margin-left: 0.3rem;
  padding: 0 0.4rem;
}

.compare-matrix td.is-cheapest {
  background: var(--accent-soft);
  border-radius: 6px;
  font-weight: 700;
}

/* Option A: fixed-order criteria on compared cards */
.fit-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0.15rem 0 0.25rem;
}

.fit-compare-cell {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.fit-compare-cell .fit-label {
  font-size: 0.68rem;
}

.fit-compare-cell .fit-stars {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.fit-compare-grid .fit-attr {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
}

.compare-people {
  margin-top: 0.85rem;
}

.compare-fit {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.compare-fit-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.compare-fit-stars {
  letter-spacing: 0.04em;
  font-size: 0.88rem;
  color: var(--ink);
  white-space: nowrap;
}

.compare-matrix td.is-best-fit {
  background: var(--accent-soft);
  border-radius: 6px;
}

.compare-fit-attr {
  margin: 0.45rem 0 0;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.btn-icon + .btn-icon {
  margin-left: 0.35rem;
}

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

.btn-icon-danger:hover {
  border-color: #c0504a;
  background: rgba(192, 80, 74, 0.12);
  color: #a13a35;
}

.btn-icon.is-primary {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
  background: var(--accent-soft);
}

/* ---------- destination banner ---------- */

.dest-banner {
  position: relative;
  min-height: 96px;
  display: flex;
  align-items: flex-end;
  background: var(--banner-img) center 60% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.dest-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 11, 17, 0.72) 0%, rgba(8, 11, 17, 0.35) 55%, rgba(8, 11, 17, 0.15) 100%);
}

.dest-banner-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.1rem;
  color: #f4f1ea;
}

.dest-banner-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.82;
}

.dest-banner-title {
  margin: 0.15rem 0 0;
  font-family: var(--display, inherit);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.dest-banner-sub {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  opacity: 0.88;
}

.dest-banner--compact {
  min-height: 88px;
}

.dest-banner--compact .dest-banner-inner {
  padding: 0.55rem 1.25rem 0.65rem;
}

.dest-banner--compact .dest-banner-title {
  font-size: 1.25rem;
}

.dest-banner--compact .dest-banner-sub {
  display: none;
}

@media (max-width: 700px) {
  .dest-banner,
  .dest-banner--compact {
    min-height: 72px;
  }

  .dest-banner-title,
  .dest-banner--compact .dest-banner-title {
    font-size: 1.1rem;
  }
}

/* Each theme brings its own banner photo. */
body {
  --banner-img: url("../images/banner-mountain.jpg");
}

body[data-theme="chalet"] {
  --banner-img: url("../images/banner-chalet.jpg");
}

body[data-theme="apres"] {
  --banner-img: url("../images/banner-apres.jpg");
}

body[data-theme="frost"] {
  --banner-img: url("../images/resort-zermatt.png");
}

body[data-theme="ember"] {
  --banner-img: url("../images/chalet-interior-1.png");
}

/* ---------- Premium Winter Escape skin (vibe=escape) ---------- */

body[data-vibe="escape"] {
  letter-spacing: 0.005em;
}

body[data-vibe="escape"] .chrome {
  background: var(--chrome-bg);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border-bottom: 1px solid var(--escape-glass-border);
}

/* Landing: escape skins use the same full-bleed chrome as other photo themes */
body[data-vibe="escape"] .app-shell.is-landing .chrome-landing {
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.55), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: transparent;
}

body[data-theme="ember"] .app-shell.is-landing .chrome-landing {
  background: linear-gradient(180deg, rgba(22, 12, 10, 0.55), transparent);
}

body[data-vibe="escape"] .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 3.4vw, 2.55rem);
}

body[data-theme="frost"] .wordmark {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Keep quiet chrome wordmark on landing (escape size must not win) */
body[data-vibe="escape"] .app-shell.is-landing .wordmark-landing {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0.9;
}

body[data-vibe="escape"] .trip-meta {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

body[data-vibe="escape"] .nav-tabs {
  gap: 0.35rem;
  padding-bottom: 0.35rem;
}

body[data-vibe="escape"] .nav-tab {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem;
  border-bottom-width: 0;
  border-radius: var(--radius);
  transition: color var(--escape-ease), background var(--escape-ease), box-shadow var(--escape-ease);
}

body[data-theme="frost"] .nav-tab.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -2px 0 var(--accent);
}

body[data-theme="ember"] .nav-tab.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: none;
}

body[data-vibe="escape"] .main {
  max-width: 1080px;
  padding: 2.25rem 1.5rem 5rem;
}

body[data-vibe="escape"] .section-head {
  margin-bottom: 1.6rem;
  gap: 1.1rem;
}

body[data-vibe="escape"] .section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
}

body[data-vibe="escape"] .section-head p {
  font-family: var(--font-ui);
  max-width: 28rem;
  line-height: 1.55;
}

body[data-vibe="escape"] .panel-enter {
  animation: escape-fade var(--escape-ease) both;
}

@keyframes escape-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body[data-vibe="escape"] .btn {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: background var(--escape-ease), border-color var(--escape-ease), color var(--escape-ease),
    transform var(--escape-ease), box-shadow var(--escape-ease);
}

body[data-vibe="escape"] .btn:hover {
  transform: translateY(-1px);
}

body[data-vibe="escape"] .btn-primary {
  box-shadow: 0 8px 24px rgba(212, 137, 58, 0.28);
}

body[data-vibe="escape"] .surface,
body[data-vibe="escape"] .table-wrap,
body[data-vibe="escape"] .room,
body[data-vibe="escape"] .resort,
body[data-vibe="escape"] .flight-option,
body[data-vibe="escape"] .arrival,
body[data-vibe="escape"] .filters,
body[data-vibe="escape"] .modal {
  background: var(--escape-glass);
  border: 1px solid var(--escape-glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body[data-vibe="escape"] .modal {
  background: rgba(12, 16, 24, 0.72);
}

body[data-theme="ember"] .modal {
  background: rgba(22, 12, 10, 0.78);
}

body[data-vibe="escape"] .input,
body[data-vibe="escape"] .select,
body[data-vibe="escape"] textarea.input {
  font-family: var(--font-ui);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(0, 0, 0, 0.22);
  border-color: var(--escape-glass-border);
  transition: border-color var(--escape-ease), box-shadow var(--escape-ease);
}

body[data-vibe="escape"] .resort-grid {
  gap: 1.65rem 1.35rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

body[data-vibe="escape"] .resort {
  padding: 1.35rem 1.3rem 1.25rem;
  transition: border-color var(--escape-ease), box-shadow var(--escape-ease), transform var(--escape-ease);
}

/* Match escape card padding so the band still bleeds to the border box. */
body[data-vibe="escape"] .resort-media {
  margin: -1.35rem -1.3rem 0.7rem;
}

body[data-vibe="escape"] .resort:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body[data-vibe="escape"] .dest-banner {
  min-height: 210px;
  overflow: hidden;
  background: none;
  border-bottom: 1px solid var(--escape-glass-border);
}

body[data-vibe="escape"] .dest-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--banner-img) center 55% / cover no-repeat;
  transform: scale(1.03);
  transition: transform var(--escape-ease);
  z-index: 0;
}

body[data-vibe="escape"] .dest-banner:hover::before {
  transform: scale(1.08);
}

body[data-vibe="escape"] .dest-banner::after {
  background: linear-gradient(
    105deg,
    rgba(4, 10, 18, 0.78) 0%,
    rgba(4, 10, 18, 0.35) 52%,
    rgba(4, 10, 18, 0.12) 100%
  );
  z-index: 0;
}

body[data-theme="ember"] .dest-banner::after {
  background: linear-gradient(
    105deg,
    rgba(18, 8, 6, 0.8) 0%,
    rgba(18, 8, 6, 0.4) 55%,
    rgba(18, 8, 6, 0.15) 100%
  );
}

body[data-vibe="escape"] .dest-banner-inner {
  padding: 1.6rem 1.75rem 1.5rem;
}

body[data-vibe="escape"] .dest-banner-kicker {
  font-family: var(--font-ui);
  letter-spacing: 0.14em;
  font-weight: 500;
}

body[data-vibe="escape"] .dest-banner-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
}

body[data-vibe="escape"] .dest-banner--compact {
  min-height: 88px;
}

body[data-vibe="escape"] .dest-banner--compact .dest-banner-title {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

body[data-vibe="escape"] .dest-banner--compact:hover::before {
  transform: scale(1.03);
}

body[data-vibe="escape"] .landing-brand {
  font-family: var(--font-display);
  font-weight: 600;
}

body[data-vibe="escape"] .landing-headline,
body[data-vibe="escape"] .landing-chapter-title,
body[data-vibe="escape"] .landing-climax-title {
  font-family: var(--font-display);
  font-weight: 600;
}

body[data-vibe="escape"] .landing-lede,
body[data-vibe="escape"] .landing-chapter-copy,
body[data-vibe="escape"] .landing-climax-copy {
  font-family: var(--font-ui);
  line-height: 1.6;
}

/* Escape planner main must not constrain the full-bleed landing */
body[data-vibe="escape"] .main-landing {
  max-width: none;
  padding: 0;
}

body[data-vibe="escape"] .toast {
  border-radius: var(--radius);
  font-family: var(--font-ui);
}

@media (max-width: 700px) {
  body[data-vibe="escape"] .dest-banner,
  body[data-vibe="escape"] .dest-banner--compact {
    min-height: 72px;
  }

  body[data-vibe="escape"] .main {
    padding: 1.5rem 1.1rem 4rem;
  }
}

/* ---------- resort card stats ---------- */

.flag {
  margin-right: 0.35rem;
  font-size: 1.05em;
}

.resort-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.6rem 0 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resort-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.resort-stat-value {
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.25;
  white-space: normal;
  overflow: hidden;
}

.resort-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.fit-block {
  margin: 0.2rem 0 0.35rem;
}

.area-stats {
  margin: 0.3rem 0 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.area-stats-score {
  display: flex;
  align-items: baseline;
  gap: 0.12rem;
  line-height: 1;
}

.area-stats-overall {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.area-stats-denom {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.area-stats-terrain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.84rem;
}

.area-stats-km {
  color: var(--ink);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.area-stats-domain {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.area-stats-lifts {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.area-stats-lifts::before {
  content: "·";
  margin-right: 0.45rem;
  color: var(--muted);
}

.piste-mix {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.piste-chip {
  display: inline-block;
  min-width: 2.85rem;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

/* Soft tints + rim — readable on light and dark paper (esp. black runs). */
.piste-easy {
  color: #1a3f8f;
  background: rgba(47, 111, 237, 0.16);
  border-color: rgba(47, 111, 237, 0.45);
}

.piste-inter {
  color: #8a2222;
  background: rgba(214, 69, 69, 0.16);
  border-color: rgba(214, 69, 69, 0.45);
}

.piste-diff {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  border-color: color-mix(in srgb, var(--ink) 42%, transparent);
}

/* Dark templates: lift blue/red chip contrast; black = rimmed charcoal, not solid fill. */
body[data-theme="nordic"] .piste-easy,
body[data-theme="peaks"] .piste-easy,
body[data-theme="chalet"] .piste-easy,
body[data-theme="apres"] .piste-easy,
body[data-theme="dawn"] .piste-easy,
body[data-theme="frost"] .piste-easy,
body[data-theme="ember"] .piste-easy {
  color: #b8ccff;
  background: rgba(120, 160, 255, 0.2);
  border-color: rgba(160, 190, 255, 0.55);
}

body[data-theme="nordic"] .piste-inter,
body[data-theme="peaks"] .piste-inter,
body[data-theme="chalet"] .piste-inter,
body[data-theme="apres"] .piste-inter,
body[data-theme="dawn"] .piste-inter,
body[data-theme="frost"] .piste-inter,
body[data-theme="ember"] .piste-inter {
  color: #ffc0c0;
  background: rgba(230, 110, 110, 0.22);
  border-color: rgba(245, 150, 150, 0.55);
}

body[data-theme="nordic"] .piste-diff,
body[data-theme="peaks"] .piste-diff,
body[data-theme="chalet"] .piste-diff,
body[data-theme="apres"] .piste-diff,
body[data-theme="dawn"] .piste-diff,
body[data-theme="frost"] .piste-diff,
body[data-theme="ember"] .piste-diff {
  color: #f2eee6;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.48);
}

.fit-strip {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
}

.fit-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.fit-nav {
  flex: 0 0 1.5rem;
  align-self: center;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.fit-nav:hover {
  border-color: var(--accent-deep);
  background: var(--accent-soft);
}

.fit-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

.fit-stars {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}

.fit-label {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.fit-attr {
  margin: 0.25rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .fit-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.6rem;
  }
}

/* ---------- currency selector ---------- */

.currency-select {
  width: auto;
  padding: 0.35rem 1.7rem 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- airport autocomplete ---------- */

.airport-field {
  position: relative;
}

.airport-field .input.is-invalid {
  border-color: #c0504a;
}

.ac-list {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow-y: auto;
}

.ac-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.7rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.ac-item:hover {
  background: var(--accent-soft);
}

.ac-item strong {
  display: inline-block;
  min-width: 2.6rem;
}

.ac-item .sub {
  display: block;
  font-size: 0.75rem;
}

.ac-item-city {
  border-bottom: 1px solid var(--line);
}

.ac-item-city strong::after {
  content: " ✈";
  font-size: 0.7em;
  opacity: 0.6;
}

/* ---------- quote thumbnails ---------- */

.quote-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.quote-body {
  min-width: 0;
}

.quote-thumb {
  flex: 0 0 auto;
  display: block;
  width: 104px;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

.quote-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Nothing found yet — a quiet snow-slope glyph rather than a broken frame. */
.quote-thumb.is-empty {
  background:
    linear-gradient(160deg, var(--accent-soft) 0%, transparent 70%),
    var(--paper-deep);
}

/* ---------- quote tags ---------- */

.quote-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Photo / dark glass: accent-ink washes out — use accent text on dark chip */
body[data-kind="photo"] .quote-tag,
body[data-theme="nordic"] .quote-tag {
  color: var(--accent);
  background: rgba(8, 11, 17, 0.55);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

/* ---------- money + budget destination pills ---------- */

.money-sub-switch {
  margin-bottom: 1rem;
}

.budget-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pill-wrap {
  display: inline-flex;
  align-items: center;
}

.pill {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

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

.pill.is-active {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: var(--accent-ink);
}

.pill-wrap .pill {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.pill-x {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.pill-x:hover {
  color: #a13a35;
  background: rgba(192, 80, 74, 0.1);
}

.budget-add-select {
  max-width: 14rem;
}

.resort-blurb {
  margin: 0.55rem 0 0.15rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.4em * 2);
}

.resort-blurb.is-spacer {
  visibility: hidden;
  user-select: none;
}

.resort-signals,
.resort-pass-label {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
  min-height: 1.35em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resort-pass-label {
  font-weight: 600;
  color: var(--ink);
}

.resort-deal {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}

/* ---------- budget rules ---------- */

.rules-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.origin-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

/* ---------- travel ---------- */

.travel-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.link-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.link-row a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/*
 * Quote / content links — kill browser purple (fails on dark glass).
 * Accent color + underline: 4.5:1 target and not color-only (UX Pro Max).
 */
.main a:not(.btn):not(.landing-scroll):not(.wordmark) {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 140ms ease;
}

.main a:not(.btn):not(.landing-scroll):visited {
  color: var(--accent-deep);
}

.main a:not(.btn):not(.landing-scroll):hover {
  color: var(--accent);
}

.main a:not(.btn):not(.landing-scroll):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Dark / photo skins: use the brighter accent for contrast on glass */
body[data-kind="photo"] .main a:not(.btn):not(.landing-scroll),
body[data-kind="photo"] .main a:not(.btn):not(.landing-scroll):visited,
body[data-theme="nordic"] .main a:not(.btn):not(.landing-scroll),
body[data-theme="nordic"] .main a:not(.btn):not(.landing-scroll):visited {
  color: var(--accent);
}

body[data-kind="photo"] .main a:not(.btn):not(.landing-scroll):hover,
body[data-theme="nordic"] .main a:not(.btn):not(.landing-scroll):hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

/* ---------- settle ---------- */

.is-owed {
  color: var(--confirmed);
}

.owes {
  color: var(--danger);
}

.stat-row .value {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

/* ---------- toggles ---------- */

.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.toggle input {
  accent-color: var(--accent-deep);
  width: 1rem;
  height: 1rem;
}

.toggle.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .brand-row {
    flex-wrap: wrap;
  }

  .chrome-actions {
    max-width: none;
    justify-content: flex-start;
  }

  .chrome-inner,
  .main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .app-shell.is-landing .main-landing {
    padding-left: 0;
    padding-right: 0;
  }

  .landing-hero {
    min-height: calc(100dvh - 3.75rem);
    padding-bottom: 4rem;
  }

  .landing-steps li {
    grid-template-columns: 2.75rem 1fr;
  }

  .travel-form {
    grid-template-columns: 1fr;
  }
}
