/* Wanderform · Travel shaped together. */
:root {
  --paper: #F7F3EE;
  --ink: #1C1917;
  --ink-muted: #78716C;
  --terra: #C45C26;
  --terra-soft: #E8A07A;
  --olive: #6B7F5A;
  --line: #E7E5E4;
  --white: #FFFFFF;
  --phone-w: 390px;
  --phone-h: 844px;
  --radius: 14px;
  --nav-h: 64px;
  --status-h: 44px;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --shadow: 0 8px 32px rgba(28, 25, 23, 0.08);
}

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

html, body {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 92, 38, 0.06), transparent),
    var(--paper);
  z-index: 0;
}

.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;
}

/* Phone chrome */
.phone {
  position: relative;
  z-index: 1;
  width: min(100vw, var(--phone-w));
  height: min(100dvh, var(--phone-h));
  margin: 24px auto;
  background: var(--paper);
  border-radius: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 0 10px #ebe6df, 0 0 0 11px var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 420px) {
  .phone {
    margin: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

.status-bar {
  flex: 0 0 var(--status-h);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.status-icons { display: flex; align-items: center; gap: 6px; }

.screens {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.screen[hidden] { display: none !important; }
.screen.is-active[hidden] { display: flex !important; }

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 18px calc(var(--nav-h) + 20px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.top-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 18px 10px;
  gap: 12px;
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.icon-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.icon-btn:hover, .icon-btn:focus-visible { background: var(--line); outline: none; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.circle { border: 1px solid var(--line); }
.icon-btn.notify .notify-dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 7px; height: 7px;
  background: var(--terra);
  border-radius: 50%;
  border: 1.5px solid var(--paper);
}
.bookmark-btn[aria-pressed="true"] svg { fill: var(--terra); stroke: var(--terra); }

/* Search */
.search-wrap { margin-bottom: 14px; }
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  box-shadow: 0 1px 2px rgba(28,25,23,0.04);
}
.search-icon { color: var(--ink-muted); flex-shrink: 0; }
.search-field input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  padding: 10px 0;
  min-width: 0;
}
.search-field input::placeholder { color: var(--ink-muted); }
.search-field input:focus { outline: none; }
.search-field:focus-within { border-color: var(--terra-soft); box-shadow: 0 0 0 3px rgba(196,92,38,0.12); }

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: var(--terra-soft); }
.chip:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.chip.is-active {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--white);
}

.discover-count {
  margin: -8px 0 14px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted, #6b6560);
  opacity: 0.85;
}

/* Discover masonry */
.masonry {
  columns: 2;
  column-gap: 12px;
}
.dest-card {
  break-inside: avoid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  position: relative;
}
.dest-card:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}
.dest-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(28,25,23,0.06);
}
.dest-card[hidden] { display: none; }
.dest-img {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tone, #c4b5a5) 70%, white), var(--tone, #c4b5a5)),
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(28,25,23,0.04) 8px, rgba(28,25,23,0.04) 9px);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.dest-card.tall .dest-img { aspect-ratio: 3 / 4; }
.dest-img .card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}
/* Soft paper-tone wash — keeps Wanderform editorial, not travel-app blue */
.dest-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(250, 247, 242, 0.08) 0%,
    rgba(28, 25, 23, 0.18) 100%
  );
}
.dest-placeholder {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(28,25,23,0.45);
  letter-spacing: 0.02em;
}
.dest-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 4px;
}
.dest-blurb {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.dest-meta {
  font-size: 0.6875rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dest-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}
.dest-card:hover .dest-actions,
.dest-card:focus-within .dest-actions,
.dest-actions:focus-within {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (hover: none) {
  .dest-actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
.dest-action {
  appearance: none;
  border: none;
  background: rgba(247, 243, 238, 0.94);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28,25,23,0.12);
  pointer-events: auto;
}
.dest-action:hover {
  background: var(--white);
  color: var(--terra);
}
.dest-action.is-saved {
  color: var(--terra);
}

.olive-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive);
  display: inline-block;
  flex-shrink: 0;
}
.olive-dots {
  display: inline-flex;
  gap: 3px;
}
.olive-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--olive);
}

/* Plan */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.page-title.compact {
  font-size: 1.35rem;
  margin-bottom: 0;
  text-align: center;
}

.trip-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
.trip-art {
  height: 72px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  opacity: 0.7;
}
.trip-art svg { width: 100%; height: 100%; }
.trip-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.trip-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.avatar-row { display: flex; align-items: center; }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg, var(--ink-muted));
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.avatar.lg { width: 40px; height: 40px; font-size: 0.75rem; margin-left: 0; border: none; }
.avatar.more {
  background: var(--line);
  color: var(--ink);
  font-size: 0.6875rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.section-head.tight { margin-bottom: 8px; }
.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-aside {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.timeline {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.day-col {
  flex: 0 0 118px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px;
}
.day-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.day-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 3px solid transparent;
}
.day-circle.accent-olive { background: rgba(107,127,90,0.12); color: var(--olive); border-bottom-color: var(--olive); }
.day-circle.accent-terra { background: rgba(196,92,38,0.12); color: var(--terra); border-bottom-color: var(--terra); }
.day-name { font-size: 0.6875rem; color: var(--ink-muted); font-weight: 500; }
.day-acts {
  list-style: none;
  position: relative;
  padding-left: 12px;
}
.day-acts::before {
  content: "";
  position: absolute;
  left: 3px; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--line);
}
.act {
  position: relative;
  margin-bottom: 12px;
  padding-left: 8px;
}
.act:last-child { margin-bottom: 0; }
.act::before {
  content: "";
  position: absolute;
  left: -10px; top: 5px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--olive);
}
.act.terra::before { background: var(--terra); }
.act-time {
  display: block;
  font-size: 0.625rem;
  color: var(--ink-muted);
  margin-bottom: 1px;
}
.act-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

.btn-primary {
  appearance: none;
  border: none;
  background: var(--terra);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: #a84d1f; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.btn-secondary {
  appearance: none;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn-secondary:hover { border-color: var(--ink-muted); background: rgba(28, 25, 23, 0.04); }
.btn-secondary:active { transform: scale(0.98); }
.btn-secondary:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.btn-block { width: 100%; margin-bottom: 18px; }

.progress-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.budget-nums {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.budget-nums strong { color: var(--ink); }
.budget-nums .pct {
  float: right;
  font-weight: 600;
  color: var(--terra);
}
.bar {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: inherit; }
.bar-fill.terra { background: var(--terra); }

.olive-pill {
  display: inline-block;
  background: rgba(107,127,90,0.15);
  color: var(--olive);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}
.packing-toggle {
  width: 100%;
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 0;
}
.checklist {
  list-style: none;
  margin-top: 10px;
}
.checklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}
.checklist input[type="checkbox"] {
  appearance: none;
  width: 20px; height: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  position: relative;
  background: var(--white);
  transition: background 0.15s, border-color 0.15s;
}
.checklist input[type="checkbox"]:checked {
  background: var(--olive);
  border-color: var(--olive);
}
.checklist input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 6px; height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checklist input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}
.packing.collapsed .checklist { display: none; }

/* Stay */
.stay-chips .chip { font-size: 0.8125rem; }
.stay-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.stay-card {
  display: flex;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  transition: box-shadow 0.15s;
}
.stay-card:hover { box-shadow: 0 4px 16px rgba(28,25,23,0.06); }
.stay-card[hidden] { display: none; }
.stay-thumb {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tone, #c4b5a5) 75%, white), var(--tone, #c4b5a5));
  position: relative;
  overflow: hidden;
}
.stay-thumb .card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}
.badge-360 {
  position: absolute;
  left: 6px; bottom: 6px;
  z-index: 2;
  background: rgba(28,25,23,0.85);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.stay-body { flex: 1; min-width: 0; }
.stay-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}
.stay-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stay-loc {
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 6px;
}
.stay-price {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--terra);
  margin-bottom: 8px;
}
.curated-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--olive);
  background: rgba(107,127,90,0.12);
  padding: 3px 8px;
  border-radius: 999px;
}
.curated-tag::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--olive);
  border-radius: 2px 6px 2px 6px;
  opacity: 0.85;
}

.map-fab {
  position: absolute;
  right: 18px;
  bottom: calc(var(--nav-h) + 28px);
  z-index: 5;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(28,25,23,0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s;
}
.map-fab:hover { transform: translateY(-1px); }
.map-fab:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
#screen-stay:not(.is-active) .map-fab { display: none; }

/* Crew */
.crew-top { align-items: center; }
.crew-title-wrap { flex: 1; text-align: center; }
.crew-sub {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.member-list {
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 12px;
  margin-bottom: 18px;
}
.member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.member:last-child { border-bottom: none; }
.member-info { flex: 1; min-width: 0; }
.member-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}
.member-email {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.role-badge.organizer { background: var(--terra); color: var(--white); }
.role-badge.planner { background: var(--olive); color: var(--white); }
.role-badge.guest { background: var(--line); color: var(--ink); }

.poll-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}
.poll-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.poll-options { display: flex; flex-direction: column; gap: 10px; }
.poll-option {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.poll-option:hover { border-color: var(--terra-soft); }
.poll-option:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.poll-option[aria-pressed="true"] {
  border-color: var(--terra);
  box-shadow: 0 0 0 2px rgba(196,92,38,0.2);
  background: var(--white);
}
.poll-label {
  grid-column: 1;
  font-size: 0.8125rem;
  font-weight: 500;
}
.poll-pct {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-muted);
}
.poll-option[aria-pressed="true"] .poll-pct { color: var(--terra); }
.poll-track {
  grid-column: 1;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.poll-fill { display: block; height: 100%; border-radius: inherit; }
.poll-fill.terra { background: var(--terra); }
.poll-fill.olive { background: var(--olive); }
.poll-fill.muted { background: #A8A29E; }
.poll-foot {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.poll-closes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tasks .assignee {
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.text-link {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--terra);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.text-link:hover { text-decoration: underline; }

/* Bottom nav */
.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--nav-h);
  background: var(--white);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 0 4px 8px;
  z-index: 10;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 10px;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:hover { color: var(--terra); }
.nav-item:focus-visible { outline: 2px solid var(--terra); outline-offset: -4px; }
.nav-item.is-active {
  color: var(--terra);
  font-weight: 600;
}
.nav-item.is-active svg {
  stroke: var(--terra);
}

.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--ink);
  border-radius: 999px;
  opacity: 0.15;
  z-index: 11;
  pointer-events: none;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(28,25,23,0.2);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast[hidden] { display: none; }
.toast.is-show[hidden] { display: block; }

@media (min-width: 421px) {
  body { padding: 8px 0 32px; }
  .toast { bottom: max(40px, calc((100vh - var(--phone-h)) / 2 + 40px)); }
}

/* ---------- Book panel & CTAs ---------- */
.plan-book-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.btn-book-quick {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn-book-quick:hover {
  border-color: var(--terra-soft);
  color: var(--terra);
}
.btn-book-quick:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.book-cta-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  appearance: none;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(196,92,38,0.08), rgba(107,127,90,0.1));
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s;
}
.book-cta-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(28,25,23,0.08);
}
.book-cta-card:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}
.book-cta-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.book-cta-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terra);
}
.book-cta-copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.book-cta-note {
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.book-cta-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 600;
}

.chip-book.is-active,
.chip.chip-book:hover {
  border-color: var(--olive);
}

.book-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.35);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
}
.book-backdrop.is-open { opacity: 1; }
.book-backdrop[hidden] { display: none; }

.book-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-height: min(92%, 720px);
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(28,25,23,0.18);
  transform: translateY(110%);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.book-panel.is-open { transform: translateY(0); }
.book-panel[hidden] { display: none; }
.book-panel.is-open[hidden] { display: flex; }

.book-panel-inner {
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}
.book-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.book-panel-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 2px;
}
.book-panel-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.book-tabs {
  margin-bottom: 10px;
}
.book-partner-note {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}
.book-affiliate-disclosure {
  font-size: 0.7rem;
  color: var(--ink-muted);
  line-height: 1.45;
  margin: 0 0 14px;
  padding: 8px 10px;
  background: rgba(107, 127, 90, 0.08);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.book-form {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.book-form.is-active,
.book-form:not([hidden]) {
  display: flex;
}
.book-form[hidden] { display: none !important; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.field em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.8;
}
.field input,
.field select {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 11px 12px;
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--terra-soft);
  box-shadow: 0 0 0 3px rgba(196,92,38,0.12);
}
.book-form .btn-block { margin-bottom: 0; margin-top: 4px; }
.book-form .btn-block + .btn-block { margin-top: 10px; }
