/* SMI-159 Trips — Desk/X dark chrome (Graham planner). */
:root {
  --bg: #000000;
  --bg-elev: #0b0c0e;
  --hairline: #2f3336;
  --text: #e7e9ea;
  --muted: #71767b;
  --blue: #1d9bf0;
  --like: #f91880;
  --amber: #f5b800;
  --amber-soft: #ffd24a;
  --mint: #00ba7c;
  --danger: #f4212e;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tap: 44px;
  --feed-max: 720px;
  --hand: var(--sans);
  --serif: var(--sans);
  --ink: var(--text);
  --ink-soft: var(--muted);
  --date-red: var(--amber);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}
body { min-height: 100vh; background: var(--bg); }

.desk {
  max-width: var(--feed-max);
  margin: 0 auto;
  padding: 0 0 80px;
}
.store-back { margin: 0; padding: 12px 16px 0; font-size: 0.88rem; }
.store-back a { color: var(--muted); font-weight: 700; text-decoration: none; }
.store-back a:hover { color: var(--blue); }

.notebook {
  position: relative;
  background: var(--bg);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  background-image: none;
}
.binding, .washi { display: none !important; }

.spread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-sticker {
  width: 40px; height: 40px; object-fit: contain; flex-shrink: 0;
  background: var(--bg-elev); border: 1px solid var(--hairline); border-radius: 999px;
}
.brand-copy { min-width: 0; }
.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}
.place { margin: 2px 0 0; font-style: normal; font-size: 0.82rem; color: var(--muted); }
.date-block { text-align: right; min-width: auto; padding: 0; border: 0; background: transparent; }
.date-block .dow {
  display: block; font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.date-block .dom {
  display: block; font-size: 1.4rem; line-height: 1.1;
  color: var(--text); font-weight: 800;
}
.date-block .moy { display: block; font-size: 0.75rem; color: var(--muted); }
.zone-line {
  margin: 0; padding: 8px 16px 4px; font-size: 0.82rem; color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}
.life-auth { margin: 8px 16px 0; }
.life-lock {
  position: relative; background: var(--bg-elev); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 16px; max-width: 520px; color: var(--text);
}
.life-chip { margin: 0; font-size: 1.05rem; color: var(--amber); font-weight: 800; }
.life-err { color: var(--danger); font-size: 0.9rem; min-height: 1.2em; }
.life-lock input[type="text"] {
  width: 100%; min-height: var(--tap); margin-top: 4px; padding: 12px;
  border: 1px solid var(--hairline); background: var(--bg); color: var(--text);
  font: inherit; border-radius: 12px;
}

.tab, h2.tab {
  display: block;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0;
  margin: 0 0 6px;
  background: none;
  line-height: 1.2;
  color: var(--text);
}
.tab-mint { background: none; color: var(--text); }
.page-hint { margin: 0 0 12px; font-size: 0.82rem; color: var(--muted); }

.trip-form { margin-top: 0; padding: 0; }
.step {
  margin: 0;
  padding: 14px 16px 16px;
  background: var(--bg);
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: none;
  touch-action: manipulation;
}
.chip.chip-avatar {
  display: inline-flex; flex-direction: row; align-items: center;
  gap: 10px; padding: 4px 12px 4px 4px; text-align: left;
}
.chip-face {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  flex: 0 0 36px; background: var(--bg-elev); border: 1px solid var(--hairline);
  box-shadow: none; pointer-events: none;
}
.chip.is-on .chip-face { border-color: var(--blue); }
.chip.is-dog.is-on .chip-face { border-color: var(--amber); }
.chip-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.15; min-width: 0; }
.chip.is-on {
  border-color: transparent;
  background: rgba(29, 155, 240, 0.16);
  color: var(--text);
  box-shadow: none;
}
.chip.is-dog.is-on { background: rgba(245, 184, 0, 0.16); }
.chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.chip-label { font-weight: 800; }
.chip-hint { font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0; text-transform: none; }

.field {
  display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.field input, .field select,
.stop-search-row select,
.stop-search-row input[type="text"],
.field input[type="number"] {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-elev);
  width: 100%;
}
.field input:focus, .field select:focus,
.stop-search-row input:focus, .stop-search-row select:focus {
  outline: 2px solid var(--blue); outline-offset: 1px;
}
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-sticker, .btn-tiny, .btn-mini {
  min-height: var(--tap); min-width: var(--tap); padding: 0 16px; border: 0;
  font: inherit; font-weight: 800; cursor: pointer; touch-action: manipulation;
}
.btn-sticker {
  appearance: none;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.95rem;
  box-shadow: none;
  border: 0;
}
.btn-sticker:hover { filter: brightness(0.92); }
.btn-sticker-mint { background: var(--blue); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--hairline);
  margin-top: 4px;
  font-size: 0.9rem;
}
.btn-sticker:disabled { opacity: 0.55; cursor: wait; }
.btn-mini {
  appearance: none; border: 1px solid var(--hairline); background: transparent;
  color: var(--blue); border-radius: 999px; padding: 6px 12px;
  font-weight: 800; font-size: 0.78rem; min-height: 32px; min-width: auto;
}
.form-actions { margin: 8px 16px 18px; }

.status-line {
  margin: 0 16px 12px; padding: 10px 12px;
  background: rgba(245, 184, 0, 0.12); border: 1px solid rgba(245, 184, 0, 0.35);
  border-radius: 12px; font-size: 0.9rem; color: var(--text);
}
.assumptions { margin: 0 16px 16px; font-size: 0.78rem; color: var(--muted); }

.results {
  margin: 0;
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--hairline);
}
.option-grid {
  display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 8px;
}
@media (min-width: 720px) {
  .option-grid { grid-template-columns: 1fr; }
}

.option-card {
  background: var(--bg);
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 14px 4px 14px;
  box-shadow: none;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
  touch-action: manipulation;
}
.option-card:hover { background: rgba(231, 233, 234, 0.03); }
.option-card:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.option-card.is-cheapest { box-shadow: inset 3px 0 0 var(--mint); }
.option-card.is-pet { box-shadow: inset 3px 0 0 var(--amber); }
.option-card.is-cheapest.is-pet { box-shadow: inset 3px 0 0 var(--mint), inset 6px 0 0 var(--amber); }
.option-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px;
}
.option-title {
  margin: 0; font-family: var(--sans); font-size: 1.05rem; font-weight: 800; line-height: 1.2;
}
.option-cta {
  margin: 0; font-size: 0.82rem; font-weight: 700; color: var(--blue);
}
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: rgba(231,233,234,0.08); color: var(--muted);
}
.badge-cheapest { background: rgba(0,186,124,0.18); color: #00ba7c; }
.badge-fastest { background: rgba(29,155,240,0.18); color: var(--blue); }
.badge-pet-friendly { background: rgba(245,184,0,0.18); color: var(--amber-soft); }

.compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compare-cell {
  background: var(--bg-elev); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 10px;
}
.compare-label {
  margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.compare-value {
  margin: 2px 0 0; font-family: var(--sans); font-size: 1.35rem; font-weight: 800; color: var(--text);
}
.compare-sub { margin: 2px 0 0; font-size: 0.78rem; color: var(--muted); }

.breakdown { list-style: none; margin: 0; padding: 0; font-size: 0.84rem; }
.breakdown li {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--hairline);
}
.breakdown .src { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.notes { margin: 8px 0 0; font-size: 0.84rem; color: var(--amber); font-style: normal; }

.flex-box {
  margin: 8px 0 12px; padding: 12px 14px;
  background: var(--bg-elev); border: 1px solid var(--hairline); border-radius: 12px;
}
.flex-box h3 { margin: 0 0 4px; font-family: var(--sans); font-size: 1rem; font-weight: 800; }
.flex-box ul { margin: 0; padding: 0 0 0 18px; font-size: 0.88rem; color: var(--muted); }
.flex-box li { margin: 0 0 6px; }

.colophon {
  margin-top: 0; padding: 16px; border-top: 1px solid var(--hairline);
  color: var(--muted); font-size: 0.82rem;
}
.rental-tag { margin: 0; width: 100%; font-size: 0.78rem; font-weight: 700; color: var(--muted); }

.trip-map {
  height: 320px; width: 100%; border-radius: 12px;
  border: 1px solid var(--hairline); margin: 8px 0 10px;
  z-index: 1; background: #15202b;
}
.dest-hotel-ask { border: none; margin: 10px 0 0; padding: 0; }
.dest-hotel-ask legend {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.check-row {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px;
  font-size: 0.9rem; color: var(--muted);
}
.check-row input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.check-row em { font-style: italic; color: var(--muted); font-weight: 600; }
.stop-search-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 10px;
}
.stop-search-row .grow { flex: 1 1 160px; }
.stop-results, .stops-list, .itin-list { list-style: none; margin: 0 0 12px; padding: 0; }
.stop-results li, .stops-list li, .itin-list li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 0; margin: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--hairline);
  border-radius: 0; font-size: 0.9rem;
}
.stop-results .src, .muted { color: var(--muted); font-size: 0.78rem; }
.subhead { margin: 8px 0 6px; font-family: var(--sans); font-size: 1rem; font-weight: 800; }
.itin-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 8px; }
.itin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.file-btn { display: inline-flex; align-items: center; cursor: pointer; }

.school-banner {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 12px;
  font-size: 0.88rem; font-weight: 700; line-height: 1.35;
  border: 1px solid rgba(245,184,0,0.35); background: rgba(245,184,0,0.12); color: var(--text);
}
.school-banner.level-fall-break,
.school-banner.level-no-school {
  border-color: rgba(0,186,124,0.4); background: rgba(0,186,124,0.12); color: #00ba7c;
}
.school-banner.level-overlap {
  border-color: rgba(244,33,46,0.4); background: rgba(244,33,46,0.12); color: #ff7a82;
}
.school-banner.level-ok {
  border-color: var(--hairline); background: var(--bg-elev); color: var(--muted);
}

/* Detail drill-in (second screen) */
.detail-screen {
  padding: 8px 16px 40px;
  min-height: 60vh;
}
.detail-back {
  appearance: none; border: 0; background: transparent; color: var(--blue);
  font: inherit; font-weight: 800; font-size: 0.95rem; padding: 8px 0;
  min-height: var(--tap); cursor: pointer; touch-action: manipulation;
}
.detail-head { padding: 4px 0 12px; border-bottom: 1px solid var(--hairline); }
.detail-title {
  margin: 4px 0 0; font-size: 1.35rem; font-weight: 800; line-height: 1.2; color: var(--text);
}
.detail-sub { margin: 6px 0 8px; color: var(--muted); font-size: 0.9rem; }
.detail-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0;
}
.detail-section {
  margin: 0 0 18px; padding: 12px 0 4px;
  border-top: 1px solid var(--hairline);
}
.detail-section h3 {
  margin: 0 0 8px; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); font-weight: 800;
}
.detail-kv {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; border-bottom: 1px solid var(--hairline); font-size: 0.92rem;
}
.detail-kv span { color: var(--muted); }
.detail-kv strong { color: var(--text); font-weight: 700; text-align: right; }
.alt-card {
  width: 100%; text-align: left; appearance: none; cursor: pointer;
  background: transparent; border: 0; border-bottom: 1px solid var(--hairline);
  color: inherit; font: inherit; padding: 12px 0; touch-action: manipulation;
}
.alt-card:hover { background: rgba(231,233,234,0.03); }
.alt-card strong { display: block; font-size: 0.95rem; }
.alt-card .alt-meta { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

[hidden] { display: none !important; }

@media (max-width: 560px) {
  .date-row { grid-template-columns: 1fr; }
  .chip-face { width: 32px; height: 32px; flex-basis: 32px; }
}


.detail-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline);
}
.detail-toolbar .page-hint { margin: 0; flex: 1 1 180px; }
.detail-edit-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 12px;
}
.field-inline-label {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.detail-hotels-summary { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.hotel-edit-card, .stop-edit-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--hairline);
}
.hotel-edit-card .grow, .stop-edit-card .grow { flex: 1 1 140px; min-width: 120px; }
.hotel-edit-card input[type="text"] {
  width: 100%; min-height: 40px; padding: 8px 10px;
  border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--bg-elev); color: var(--text); font: inherit;
}
.stop-edit-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-stop-search { margin-bottom: 8px; }

/* SMI-159 day maps · hotel swap · save-anywhere */
.compare-save-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 0 0 14px;
}
.compare-save-row .page-hint { margin: 0; flex: 1 1 160px; }
.day-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px;
}
.day-tab {
  appearance: none; cursor: pointer; touch-action: manipulation;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: transparent; color: var(--text);
  font: inherit; font-size: 0.78rem; font-weight: 700;
  padding: 7px 12px; max-width: 100%;
  text-align: left; line-height: 1.25;
}
.save-name-field { min-width: 200px; margin: 0; }
.save-name-field input { width: 100%; }
.detail-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.detail-toolbar .page-hint { flex: 1 1 100%; margin: 0; }
.option-cta-hint { margin: 6px 0 0; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.day-tab.is-on {
  background: #1d9bf0; border-color: #1d9bf0; color: #fff;
}
.day-summary {
  margin: 0 0 10px; padding: 10px 12px;
  border: 1px solid var(--hairline); border-radius: 12px;
  background: rgba(231,233,234,0.03);
}
.day-summary-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
}
.day-summary-grid .span-2 { grid-column: 1 / -1; }
.day-summary-grid .muted {
  display: block; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px;
}
.day-summary-grid strong { font-size: 0.9rem; font-weight: 650; }
.hotel-priced { margin-top: 6px; }
.hotel-priced .hotel-name { margin: 0 0 4px; }
.hotel-priced .hotel-why { margin: 0 0 4px; font-size: 0.86rem; color: var(--muted); }
.hotel-priced .hotel-bed { margin: 0 0 4px; font-size: 0.8rem; }
.hotel-priced .hotel-links { margin: 6px 0 0; font-size: 0.82rem; }
.hotel-priced .money { color: var(--text); font-weight: 700; }
.book-link { color: #1d9bf0; text-decoration: none; }
.book-link:hover { text-decoration: underline; }
.hotel-alts { margin-top: 12px; }
.hotel-alt-card {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--hairline);
}
.hotel-day-card { align-items: flex-start; }
.subhead {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); margin: 8px 0 4px;
}
@media (max-width: 560px) {
  .day-summary-grid { grid-template-columns: 1fr; }
}

/* SMI-159 hotel media · photo + Street View */
.hotel-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 6px;
}
@media (max-width: 560px) {
  .hotel-media { grid-template-columns: 1fr; }
}
.hotel-media-panel {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(231,233,234,0.04);
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
}
.hotel-media-panel .media-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px 0;
}
.hotel-media-panel img,
.hotel-media-panel iframe {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border: 0;
  background: #0a0a0a;
}
.hotel-media-panel .media-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.hotel-media-panel .media-actions {
  padding: 6px 8px 8px;
  font-size: 0.78rem;
}
.hotel-media-panel .media-actions a { color: #1d9bf0; text-decoration: none; }
.hotel-media-panel .media-actions a:hover { text-decoration: underline; }
.hotel-media-panel .src {
  padding: 0 8px 6px;
  font-size: 0.68rem;
  color: var(--muted);
}
.hotel-alt-card .hotel-media { margin-top: 6px; }
.hotel-alt-card.is-selected {
  border-color: #1d9bf0;
  box-shadow: inset 0 0 0 1px rgba(29,155,240,0.35);
}

/* Trip overview + day-focused panels (v8) */
.trip-summary-card {
  background: var(--bg-elev, #15202b);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px 10px !important;
  margin-bottom: 14px;
}
.trip-summary-grid { margin-top: 8px; }
.day-panel {
  margin: 14px 0 8px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--hairline);
}
.day-panel .subhead { margin-top: 0; }
.adjust-plan-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 16px 0 8px; padding: 12px 0 4px;
  border-top: 1px solid var(--hairline);
}
.adjust-plan-row .page-hint { margin: 0; flex: 1 1 200px; }
.stop-result-meta {
  display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px;
}
.stop-result-time {
  display: inline-block; margin-top: 4px; padding: 2px 8px;
  border-radius: 999px; background: rgba(29,155,240,0.15); color: #1d9bf0;
  font-size: 0.75rem; font-weight: 700;
}
.stop-results li.is-candidate-pin { border-left: 3px solid #e6c36a; padding-left: 8px; }
.hotel-media-panel img.media-fallback-tile {
  width: 100%; height: 160px; object-fit: cover; border-radius: 8px;
  background: #0f1419;
}
.media-placeholder {
  min-height: 72px; display: flex; flex-direction: column; justify-content: center;
  gap: 6px; padding: 12px; border-radius: 8px; background: rgba(231,233,234,0.04);
  font-size: 0.85rem; color: var(--muted);
}

/* —— Airbnb-style home lookup —— */
.lookup-hero {
  margin: 0 0 8px;
  padding: 8px 16px 18px;
  border-bottom: 1px solid var(--hairline);
}
.lookup-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.airbnb-search {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  padding: 4px;
}
.airbnb-seg {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 16px;
  min-width: 0;
  border-radius: 999px;
  cursor: text;
}
.airbnb-seg:hover,
.airbnb-seg:focus-within {
  background: rgba(231, 233, 234, 0.06);
}
.airbnb-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.airbnb-seg input {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0;
  min-height: 24px;
  width: 100%;
  outline: none;
}
.airbnb-seg input::placeholder { color: var(--muted); font-weight: 600; }
.airbnb-divider {
  width: 1px;
  align-self: stretch;
  margin: 10px 0;
  background: var(--hairline);
  flex: 0 0 1px;
}
.date-range-trigger,
.guests-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  padding: 0;
  cursor: pointer;
  min-height: 24px;
}
.guests-trigger { color: var(--blue); }
.airbnb-go {
  appearance: none;
  border: 0;
  margin: 2px;
  padding: 0 22px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  flex: 0 0 auto;
  align-self: center;
}
.airbnb-go:hover { filter: brightness(1.06); }
.airbnb-go:disabled { opacity: 0.55; cursor: wait; }
.sr-date {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.date-range-panel {
  margin: 12px 0 0;
  padding: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.date-range-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.date-range-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}
.dr-dow {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 0;
}
.dr-day {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}
.dr-day:hover { background: rgba(29, 155, 240, 0.12); }
.dr-day.is-muted { color: var(--muted); opacity: 0.45; }
.dr-day.is-in-range { background: rgba(29, 155, 240, 0.16); border-radius: 0; }
.dr-day.is-start,
.dr-day.is-end {
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
}
.dr-day.is-start.is-in-range { border-radius: 999px 0 0 999px; }
.dr-day.is-end.is-in-range { border-radius: 0 999px 999px 0; }
.dr-day.has-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--amber);
}
.dr-day.has-mark.mark-break::after { background: #00ba7c; }
.dr-day.has-mark.mark-school::after { background: #ff7a82; }
.dr-month-label {
  grid-column: 1 / -1;
  margin: 8px 0 4px;
  font-size: 0.9rem;
  font-weight: 800;
}
.important-dates { margin-top: 8px; }
.important-dates-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.important-dates-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.88rem;
}
.important-dates-list .mark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--amber);
}
.important-dates-list .mark-dot.break { background: #00ba7c; }
.important-dates-list .mark-dot.school { background: #ff7a82; }
.important-dates-list .mark-dot.note { background: var(--blue); }
.date-range-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.prefs-drawer {
  margin: 14px 0 0;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--bg);
  padding: 0 4px 4px;
}
.prefs-drawer > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 12px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--blue);
}
.prefs-drawer > summary::-webkit-details-marker { display: none; }
.prefs-step { border-bottom: 0; padding-top: 4px; }

.recent-saves { margin: 18px 0 4px; }
.recent-saves-head { margin-bottom: 8px; }
.recent-saves-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .recent-saves-grid { grid-template-columns: 1fr 1fr; }
}
.recent-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  border-radius: 16px;
  padding: 14px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  touch-action: manipulation;
}
.recent-card:hover { border-color: rgba(29, 155, 240, 0.45); }
.recent-card strong { font-size: 1rem; font-weight: 800; }
.recent-card .muted { font-size: 0.78rem; }
.recent-empty {
  padding: 14px;
  border: 1px dashed var(--hairline);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Hotel placeholder clarity */
.hotel-placeholder-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(245, 184, 0, 0.18);
  color: var(--amber-soft);
  vertical-align: middle;
}
.hotel-day-card .btn-find-others {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
  font-weight: 800;
}
.hotel-why-strong { font-weight: 700; color: var(--text); }

@media (max-width: 720px) {
  .airbnb-search { border-radius: 24px; }
  .airbnb-divider { display: none; }
  .airbnb-seg { flex: 1 1 100%; border-radius: 16px; }
  .airbnb-go { width: 100%; border-radius: 999px; margin-top: 4px; }
}


/* —— Home declutter · user badge · recent strip —— */
.header-tools {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.user-badge {
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  flex: 0 0 auto;
  touch-action: manipulation;
}
.user-badge:hover { border-color: rgba(29, 155, 240, 0.55); }
.user-badge.is-in {
  background: rgba(29, 155, 240, 0.18);
  border-color: rgba(29, 155, 240, 0.55);
  color: var(--blue);
}
.user-badge.has-face {
  padding: 0;
  overflow: hidden;
  background: var(--bg-elev);
}
.user-badge .badge-face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}
.life-auth-panel {
  margin: 4px 16px 8px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--bg-elev);
}
.life-auth-panel[hidden] { display: none !important; }
.recent-saves-strip {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .recent-saves-strip { grid-template-columns: repeat(3, 1fr); }
}
.recent-card-compact { padding: 12px; gap: 4px; }
.recent-card-compact strong { font-size: 0.92rem; }
.see-all-saved-wrap {
  margin: 10px 0 0;
  text-align: right;
}
.see-all-saved {
  color: #1d9bf0;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.see-all-saved:hover { text-decoration: underline; }
.lookup-hero {
  padding-top: 14px;
}

.prefs-gear {
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  touch-action: manipulation;
}
.prefs-gear:hover { border-color: rgba(29, 155, 240, 0.55); }
.fav-star-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 6px;
}
.fav-star {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  min-width: 36px;
  min-height: 36px;
}
.fav-star.is-on { color: #f5b800; }
.fav-type-tip { font-size: 0.62rem; max-width: 72px; text-align: center; line-height: 1.2; }
.hotel-detour { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.hotel-alt-card, .is-candidate-pin, .stop-results li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* —— Day timeline meter (24h) —— */
.day-timeline-wrap {
  margin: 16px 0 8px;
  padding: 12px 12px 10px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--bg-elev);
}
.day-timeline-head { margin-bottom: 8px; }
.day-timeline-head .subhead { margin: 0 0 4px; }
.day-timeline {
  position: relative;
  height: 72px;
  margin: 8px 0 4px;
  user-select: none;
  touch-action: none;
}
.tl-track {
  position: absolute;
  left: 0; right: 0;
  top: 28px;
  height: 10px;
  border-radius: 999px;
  background: rgba(231,233,234,0.12);
  overflow: hidden;
}
.tl-drive {
  position: absolute;
  top: 0; bottom: 0;
  background: linear-gradient(90deg, #1d9bf0, #7fc4b0);
  border-radius: 999px;
  opacity: 0.85;
}
.tl-traffic {
  position: absolute;
  left: 0; right: 0;
  top: 28px;
  height: 10px;
  pointer-events: none;
  z-index: 2;
}
.tl-traffic-seg {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 2px;
}
.tl-traffic-seg.is-peak { background: rgba(245, 184, 0, 0.55); }
.tl-traffic-seg.is-heavy { background: rgba(244, 33, 46, 0.45); }
.tl-hotel-band {
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  border-radius: 3px;
  opacity: 0.55;
  pointer-events: none;
}
.tl-checkout {
  top: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(201, 180, 216, 0.55) 0 6px,
    transparent 6px 10px
  );
}
.tl-checkin {
  top: 16px;
  background: repeating-linear-gradient(
    90deg,
    rgba(127, 196, 176, 0.65) 0 6px,
    transparent 6px 10px
  );
}
.tl-marks {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  bottom: 18px;
  pointer-events: none;
  z-index: 3;
}
.tl-mark {
  position: absolute;
  top: 22px;
  width: 2px;
  height: 22px;
  margin-left: -1px;
  background: #fff;
  border-radius: 1px;
}
.tl-mark.is-start { background: #7fc4b0; width: 3px; }
.tl-mark.is-arrive { background: #c45c4a; width: 3px; }
.tl-mark.is-stop { background: #e6c36a; }
.tl-mark.is-open-edge { background: #1d9bf0; height: 28px; top: 18px; }
.tl-mark-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-handle {
  position: absolute;
  top: 20px;
  width: 18px;
  height: 26px;
  margin-left: -9px;
  border-radius: 6px;
  background: #fff;
  border: 2px solid #1d9bf0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  cursor: ew-resize;
  z-index: 5;
  touch-action: none;
}
.tl-handle::after {
  content: "";
  position: absolute;
  left: 5px; right: 5px;
  top: 6px; bottom: 6px;
  border-left: 1px solid rgba(0,0,0,0.25);
  border-right: 1px solid rgba(0,0,0,0.25);
}
.tl-hours {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--muted);
  font-weight: 600;
}
.day-timeline-caption {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.day-timeline-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.gas-gauge {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 120px;
  max-width: 160px;
  padding: 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
}
.gas-gauge-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.gas-gauge-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(231,233,234,0.12);
  overflow: hidden;
}
.gas-gauge-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c45c4a, #e6c36a 40%, #7fc4b0);
  transition: width 0.15s ease;
}
.gas-gauge input[type="range"] {
  width: 100%;
  margin: 2px 0 0;
  accent-color: #1d9bf0;
}
.gas-gauge-readout {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}
.gas-fill-hint { margin: 0 0 6px; }
.tl-mark.is-gas {
  background: #8aaa78;
  width: 3px;
}

/* Brand prefs typeahead + pills + hotel find (trips-x-v15) */
.brand-pref-row { margin: 6px 0 10px; min-height: 28px; align-items: center; }
.brand-pref-empty { font-size: 0.85rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.brand-pref-chip.is-on,
.hotel-brand-chip.is-on {
  background: #1d9bf0;
  color: #fff;
  border-color: #1d9bf0;
}
.brand-pref-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 10px;
}
.brand-pref-pill-label { font-weight: 700; }
.brand-pref-pill-x {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.85;
  font-weight: 800;
}
.brand-pref-custom { margin: 0 0 12px; max-width: 320px; }
.brand-typeahead { position: relative; width: 100%; }
.brand-suggest-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: #15202b;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}
.brand-suggest-item {
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
}
.brand-suggest-item.is-active,
.brand-suggest-item:hover {
  background: rgba(29, 155, 240, 0.22);
}
.hotel-find-tools {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.hotel-find-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.map-corridor-label {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: #b9c0c7;
}
.is-maybe-closed { opacity: 0.72; }
.is-maybe-closed .stop-result-time { color: #e6a06a; }

/* Day focus fullscreen (trips-x-v16) */
.day-focus {
  border-top: 0;
  padding: 0;
  margin: 0;
}
body.is-day-focus {
  overflow: hidden;
}
body.is-day-focus .detail-screen > :not(#detail-map-wrap):not(.detail-status) {
  display: none !important;
}
body.is-day-focus #detail-map-wrap {
  display: block !important;
}
body.is-day-focus .detail-screen {
  padding: 0;
  min-height: 100dvh;
}
.day-focus-chrome {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: #000;
  color: var(--text);
  padding:
    max(8px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  box-sizing: border-box;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.day-focus-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 44px;
  margin-bottom: 6px;
}
.day-focus-back,
.day-focus-gear {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  flex: 0 0 auto;
}
.day-focus-banner {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: #15202b;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.day-focus-banner-chev { opacity: 0.7; font-size: 0.85rem; }
.day-focus-map-wrap {
  flex: 0 0 auto;
  height: 40dvh;
  min-height: 200px;
  max-height: 46dvh;
  display: flex;
  flex-direction: column;
  margin: 4px 0 8px;
}
.day-focus-map.trip-map,
.day-focus .trip-map.day-focus-map {
  flex: 1 1 auto;
  height: 100% !important;
  min-height: 0;
  margin: 0;
  border-radius: 14px;
}
.day-timeline-wrap.is-compact {
  flex: 0 0 auto;
  margin: 0 0 6px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.day-meter-toggle {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  min-height: 40px;
  cursor: pointer;
  touch-action: manipulation;
}
.day-timeline-wrap.is-compact:not(.is-expanded) .day-timeline-expand {
  display: none;
}
.day-timeline-wrap.is-expanded .day-meter-toggle-chev {
  transform: rotate(180deg);
}
.day-timeline-wrap.is-expanded {
  max-height: 42dvh;
  overflow: auto;
}
.day-timeline-expand { padding: 0 10px 10px; }

.day-focus-carousel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}
.day-focus-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: #15202b;
  scrollbar-width: none;
}
.day-focus-track::-webkit-scrollbar { display: none; }
.day-focus-card {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  padding: 12px 14px 16px;
  overflow-y: auto;
  min-height: 0;
}
/* Override [hidden] for carousel: both cards must stay in the scroll track */
.day-focus-track > .day-focus-card[hidden] {
  display: block !important;
}
.day-focus-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 4px;
  flex: 0 0 auto;
}
.day-focus-dot {
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  touch-action: manipulation;
}
.day-focus-dot.is-on {
  background: #1d9bf0;
  width: 18px;
}
.day-focus-picker {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(720px, 100%);
  max-height: 55dvh;
  overflow: auto;
  z-index: 90;
  background: #15202b;
  border: 1px solid rgba(255,255,255,0.16);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  padding:
    12px
    max(12px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  box-shadow: 0 -12px 40px rgba(0,0,0,0.5);
}
.day-focus-picker-option {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 750;
  font-size: 0.95rem;
  padding: 14px 8px;
  cursor: pointer;
  touch-action: manipulation;
}
.day-focus-picker-option.is-on {
  color: #1d9bf0;
}
.adjust-plan-row {
  flex: 0 0 auto;
  margin-top: 6px;
}
@media (min-width: 720px) {
  .day-focus-chrome {
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
  }
}

.hotel-brand-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin: 8px 0 4px;
}
.hotel-brand-search-row .grow { flex: 1 1 140px; margin: 0; }

.lunch-window-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 320px;
  margin: 6px 0 4px;
}
.tl-lunch-band {
  position: absolute;
  top: 8px;
  height: 10px;
  border-radius: 4px;
  background: rgba(230, 195, 106, 0.35);
  border: 1px solid rgba(230, 195, 106, 0.55);
  pointer-events: none;
  z-index: 2;
}
.tl-mark.is-lunch-gas { background: #8aaa78; box-shadow: 0 0 0 2px rgba(230,195,106,0.7); }
.stop-edit-card.is-merged-lunch-gas { border-left: 3px solid #8aaa78; }

.colophon .build-chip {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}


/* Destination · Search this area + brand pins (trips-x-v23) */
.day-focus-map-wrap { position: relative; }
.map-search-area-btn {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  background: #111;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  cursor: pointer;
}
.map-search-area-btn:hover { background: #222; }
.hotel-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hotel-brand-chip-logo,
.hotel-alt-brand-logo {
  border-radius: 50%;
  vertical-align: middle;
  flex-shrink: 0;
}
.hotel-map-pin-wrap { background: transparent !important; border: 0 !important; }
.hotel-map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}
.hotel-map-pin.is-selected .hotel-map-pin-logo {
  outline: 2px solid #1d9bf0;
  border-radius: 50%;
}
.hotel-map-pin-logo { border-radius: 50%; background: #fff; }
.hotel-map-pin-price {
  background: #111;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.hotel-alt-head { display: flex; gap: 8px; align-items: flex-start; }
.hotel-alt-title { line-height: 1.25; }
.hotel-alt-meta { margin: 4px 0; font-size: 0.88rem; }
.hotel-alt-addr { margin: 2px 0; font-size: 0.84rem; }
.hotel-alt-check,
.hotel-alt-fees { margin: 2px 0; font-size: 0.8rem; }
.hotel-stars { font-weight: 700; letter-spacing: 0.02em; }
.hotel-selected-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1d9bf0;
  color: #fff;
  padding: 1px 6px;
  border-radius: 6px;
  vertical-align: middle;
}
.hotel-alt-card.is-selected {
  background: rgba(29, 155, 240, 0.08);
  border-radius: 12px;
  padding-left: 8px;
  padding-right: 8px;
}
.hotel-priced.is-selected-hotel .hotel-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.hotel-alt-card.is-highlight {
  background: rgba(255, 196, 0, 0.12);
  border-radius: 12px;
  outline: 2px solid #f5a623;
  padding-left: 8px;
  padding-right: 8px;
}
.hotel-highlight-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f5a623;
  color: #111;
  padding: 1px 6px;
  border-radius: 6px;
  vertical-align: middle;
}
.hotel-map-pin.is-highlight .hotel-map-pin-logo {
  outline: 3px solid #f5a623;
  border-radius: 50%;
}
.btn-hotel-use {
  background: linear-gradient(135deg, #1d9bf0, #7c5cff) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 800 !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 10px rgba(29, 155, 240, 0.35);
}
.btn-hotel-use.is-ready {
  background: linear-gradient(135deg, #f5a623, #ff5c8a) !important;
  box-shadow: 0 2px 12px rgba(245, 166, 35, 0.45);
  transform: scale(1.04);
}
.btn-hotel-use.is-on {
  background: #5b6b7a !important;
  box-shadow: none;
  opacity: 0.85;
}
.hotel-alt-tap { cursor: pointer; }

/* Pin flags + stop parity (trips-x-v24) */
.pin-flags-panel { margin: 8px 0 12px; }
.pin-flags-head { margin: 0 0 4px; }
.pin-flags-empty { margin: 0; font-size: 0.82rem; }
.pin-flags-list { list-style: none; margin: 0; padding: 0; }
.pin-flag-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--hairline);
}
.pin-flag-btn {
  border: 1px solid var(--hairline);
  background: transparent;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}
.pin-flag-btn.is-on {
  background: #7c5cff;
  color: #fff;
  border-color: #7c5cff;
}
.hotel-map-pin.is-flagged .hotel-map-pin-logo {
  outline: 2px solid #7c5cff;
  border-radius: 50%;
}
.stop-alt-card {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--hairline);
}
.stop-alt-card.is-highlight {
  background: rgba(255, 196, 0, 0.12);
  border-radius: 12px;
  outline: 2px solid #f5a623;
  padding-left: 8px; padding-right: 8px;
}
.stop-alt-tap { cursor: pointer; }

/* SMI-161 booked Trips + bottom rail */
body {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
.trips-bottom-rail {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  min-height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(0,0,0,0.92);
  border-top: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}
.rail-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 12px;
}
.rail-btn.is-on { color: #fff; }
.rail-ico { font-size: 1.25rem; line-height: 1; }
.booked-view { padding: 8px 4px 24px; }
.booked-header h2 { margin: 0 0 4px; font-size: 1.45rem; }
.booked-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.booked-card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
}
.booked-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.booked-meta { margin: 4px 0; font-size: 0.88rem; }
.booked-total { font-size: 1.15rem; font-weight: 800; margin: 8px 0 4px; }
.booked-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.booked-links a { color: #1d9bf0; font-weight: 700; text-decoration: none; font-size: 0.88rem; }
.booked-links a:hover { text-decoration: underline; }
.booked-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1d9bf0;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}
body.is-booked-view #planner-view { display: none; }
body.is-booked-view #booked-view { display: block; }
body.is-booked-view #booked-view[hidden] { display: block; }
#booked-view[hidden] { display: none; }
.locked-corridor-chip {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(29,155,240,0.15);
  color: #8ecdf8;
  font-size: 0.78rem;
  font-weight: 700;
}

.booked-checkin-refs {
  display: grid;
  gap: 6px;
  margin: 10px 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(29,155,240,0.12);
  border: 1px solid rgba(29,155,240,0.35);
}
.booked-ref { font-size: 0.95rem; line-height: 1.35; }
.booked-ref-label {
  display: inline-block;
  min-width: 8.5em;
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.booked-ref-value {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.booked-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  font-weight: 600;
}
.booked-note-warn {
  color: #f6c177;
}

.booked-link-directions {
  color: #f6c177 !important;
}
.booked-link-maps {
  color: #1d9bf0;
}

.booked-card.is-family-stay {
  border-color: rgba(0,186,124,0.45);
  background: rgba(0,186,124,0.06);
}
.booked-badge-family {
  background: #00ba7c !important;
}

/* trips-x-v28 — Airbnb-warm light theme + share viewer */
body[data-theme="light"] {
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --hairline: #ebebeb;
  --text: #222222;
  --muted: #6a6a6a;
  --blue: #ff385c;
  --like: #ff385c;
  --amber: #e07912;
  --mint: #008a05;
  --danger: #c13515;
  background: #ffffff;
  color: #222222;
}
body[data-theme="light"] .desk,
body[data-theme="light"] .notebook { background: #ffffff; }
body[data-theme="light"] .airbnb-search {
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
body[data-theme="light"] .airbnb-go {
  background: #ff385c;
  color: #fff;
}
body[data-theme="light"] .booked-card,
body[data-theme="light"] .option-card,
body[data-theme="light"] .day-summary-grid,
body[data-theme="light"] .detail-screen {
  background: #fff;
  color: #222;
}
body[data-theme="light"] .trips-bottom-rail {
  background: rgba(255,255,255,0.96);
  border-top: 1px solid #ebebeb;
}
body[data-theme="light"] .rail-btn { color: #6a6a6a; }
body[data-theme="light"] .rail-btn.is-on { color: #222; }
body[data-theme="light"] .booked-checkin-refs {
  background: #fff8f6;
  border-color: #ffd1dc;
}
body[data-theme="light"] .locked-corridor-chip { color: #b4234a; background: #fff0f3; }

.theme-toggle, .share-trip {
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.theme-toggle { min-width: 36px; padding: 0 10px; }
.header-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.day-date-heading {
  margin: 10px 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.day-party-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 0 0 8px;
}
.party-chip {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  padding: 0;
}
.party-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.party-chip.is-vehicle { border-radius: 8px; width: 36px; }

/* Public share viewer — open with the link, no login */
body.is-share-view #planner-view,
body.is-share-view #booked-view,
body.is-share-view #trips-bottom-rail,
body.is-share-view .colophon,
body.is-share-view #life-auth { display: none !important; }
#share-view { display: none; padding: 8px 4px 32px; }
body.is-share-view #share-view { display: block; }
.share-card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 16px;
  margin: 8px 0 12px;
  background: var(--bg-elev);
}
.share-card h2 { margin: 0 0 6px; font-size: 1.35rem; }
.share-meta { margin: 4px 0; color: var(--muted); }
.share-day { margin-top: 14px; }
.share-day h3 { margin: 0 0 4px; font-size: 1.05rem; }


.share-route-card, .share-hotel-card {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 8px 0 0;
  background: var(--bg-elev);
}
.share-day { margin-top: 22px; padding-top: 4px; }
.share-day .day-date-heading { margin-top: 0; }
.share-party { margin-bottom: 10px; }
body.is-share-view .spread-header { margin-bottom: 8px; }
body.is-share-view .store-back { display: none; }
body[data-theme="light"] {
  --bg: #f7f7f7;
  --bg-elev: #ffffff;
  --text: #222222;
  --muted: #717171;
  --hairline: #ebebeb;
  --accent: #ff385c;
}
body[data-theme="light"] .airbnb-search {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  border-color: #dddddd;
  background: #fff;
}
body[data-theme="light"] .share-route-card,
body[data-theme="light"] .share-hotel-card,
body[data-theme="light"] .share-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
body[data-theme="light"] .option-card,
body[data-theme="light"] .booked-card {
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}


.share-menu { position: relative; }
.share-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 240px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.share-menu-panel[hidden] { display: none !important; }
.share-menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}
.share-menu-item:hover, .share-menu-item:focus-visible {
  background: rgba(231, 233, 234, 0.08);
  outline: none;
}
.share-menu-item strong { font-size: 0.92rem; }
.share-menu-item span { font-size: 0.75rem; color: var(--muted); }
body[data-theme="light"] .share-menu-panel {
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
body[data-theme="light"] .share-menu-item:hover,
body[data-theme="light"] .share-menu-item:focus-visible {
  background: #f7f7f7;
}

.detail-open-days {
  margin-top: 12px;
  width: 100%;
}


.detail-days-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-day-card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: var(--bg-elev);
}
.detail-day-card .day-date-heading {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
}
body.is-share-view .day-date-heading,
.share-day .day-date-heading {
  display: block !important;
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}
body[data-theme="light"] .detail-day-card,
body[data-theme="light"] .share-day {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}


.booked-day {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 8px;
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--hairline);
}
.booked-day:last-of-type { border-bottom: 0; }
.booked-day .day-date-heading {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.booked-route-card .booked-links { margin-top: 8px; }
.booked-lodging-card {
  margin: 0;
}
.booked-list { gap: 4px; }
body[data-theme="light"] .booked-day .booked-lodging-card,
body[data-theme="light"] .booked-route-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}


/* Trips tab lodging photo strip + Desk-style lightbox */
.booked-photo-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 12px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.booked-photo-thumb {
  flex: 0 0 auto;
  width: 112px;
  height: 84px;
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: #111;
}
.booked-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.booked-photo-label {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 2px 6px;
  border-radius: 999px;
}
body.media-viewer-open { overflow: hidden; }
.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.media-viewer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}
.media-viewer-stage {
  position: relative;
  z-index: 1;
  width: min(960px, 100vw);
  height: min(90vh, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px 32px;
  box-sizing: border-box;
  touch-action: pan-y;
}
.media-viewer-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.media-viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.media-viewer-counter {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 600;
}
.media-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.media-viewer-prev { left: 8px; }
.media-viewer-next { right: 8px; }

.booked-stops,
.travel-cards {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Shared stop card system — travel-cards (planned) + review-cards (after review) */
.stop-card,
.travel-card,
.booked-stop {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}
.stop-card.review-card,
.review-card {
  border-color: rgba(245, 184, 0, 0.35);
  background: linear-gradient(160deg, rgba(245, 184, 0, 0.08), rgba(255, 255, 255, 0.03) 42%);
}
.stop-card.is-skipped {
  border-color: rgba(113, 118, 123, 0.55);
  opacity: 0.78;
}
.booked-stop-kind,
.stop-card-kind {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.stop-card-name,
.booked-stop-name { margin: 0; }
.stop-card-address { margin: 4px 0 0; }
.stop-card-notes { margin: 8px 0 0; }
.stop-card-skipped {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.stop-skipped-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(113, 118, 123, 0.35);
  color: var(--text);
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
  vertical-align: middle;
}

/* SMI-164 review glyphs */
.stop-review {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stop-review-stars,
.stop-review-paws {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.stop-review-star {
  font-size: 1.15rem;
  color: rgba(231, 233, 234, 0.22);
}
.stop-review-star.is-on {
  color: #f5c518;
  text-shadow: 0 0 10px rgba(245, 197, 24, 0.35);
}
.stop-review-paw {
  font-size: 1.05rem;
  filter: grayscale(1) opacity(0.35);
}
.stop-review-paw.is-on {
  filter: none;
  color: #1d9bf0;
  /* tint emoji toward brand blue where supported */
  filter: sepia(1) saturate(6) hue-rotate(170deg) brightness(0.95);
}
.stop-review-list { margin-top: 4px; }
.stop-review-list-label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.stop-review-list.is-plus .stop-review-list-label { color: var(--mint); }
.stop-review-list.is-minus .stop-review-list-label { color: #f91880; }
.stop-review-list ul {
  margin: 0;
  padding: 0 0 0 1.1em;
}
.stop-review-list li {
  margin: 0 0 3px;
  font-size: 0.9rem;
  color: var(--text);
}
.stop-review-list.is-plus li::marker { color: var(--mint); }
.stop-review-list.is-minus li::marker { color: #f91880; }

body[data-theme="light"] .stop-card,
body[data-theme="light"] .travel-card,
body[data-theme="light"] .booked-stop {
  background: #f7f7f7;
}
body[data-theme="light"] .stop-card.review-card,
body[data-theme="light"] .review-card {
  background: linear-gradient(160deg, rgba(245, 184, 0, 0.14), #f7f7f7 42%);
}
.share-hotel-photo {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 0 8px;
}


/* SMI-163 — past days collapse to stats; tap expands stops */
.share-day-toggle,
.booked-day-toggle {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.share-day-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
.share-day-toggle-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.share-day-toggle .day-date-heading {
  margin: 0;
}
.share-day-phase {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.share-day.is-today .share-day-phase { color: var(--accent); }
.share-day.is-done .share-day-phase { color: var(--muted); }
.share-day-chev,
.share-day-expand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  margin-top: 0;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: rgba(29, 155, 240, 0.12);
  color: #8ecdf8;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 1;
}
.share-day.is-expanded > .share-day-toggle .share-day-expand,
.share-day.is-expanded .share-day-expand {
  background: rgba(113, 118, 123, 0.2);
  color: var(--text);
  border-color: rgba(113, 118, 123, 0.55);
}
.share-day-stats {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgba(231, 233, 234, 0.04);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}
.share-day-stats.muted { color: var(--muted); font-weight: 500; }
.share-day.is-expanded > .share-day-stats { display: none; }
.share-day.is-collapsed > .share-day-body { display: none; }
.share-day-body { margin-top: 8px; }
.detail-day-card.share-day {
  padding-top: 12px;
}
.booked-day.share-day {
  list-style: none;
}
body[data-theme="light"] .share-day-stats {
  background: #f7f7f7;
}

/* trips-directions-v1 — Directions on share route + hotel/lodging cards */
.share-route-card .booked-links,
.share-hotel-card .booked-links { margin-top: 6px; }
.share-hotel-address { opacity: 0.85; }
.booked-links .booked-link-directions { font-weight: 800; }
.itin-list .share-stay-links { margin-top: 4px; }

/* trips-x-v43 — trip card (cover + heading), swipe indicator, layout fixes */
.trip-card {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 12px 16px;
  align-items: start;
  margin: 12px 0 8px;
}

.trip-cover {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cover-bg, #e8d5c4);
  display: grid;
  place-items: center;
}
.trip-cover-initial { font-size: 2.6rem; font-weight: 800; color: rgba(0,0,0,0.38); }
.trip-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-card-body { min-width: 0; }
.trip-card-dates { margin: 0 0 6px; font-size: 0.88rem; }
.trip-details summary { cursor: pointer; font-weight: 700; font-size: 0.88rem; }
.trip-field { display: grid; gap: 4px; margin: 8px 0; font-size: 0.82rem; font-weight: 700; }
.trip-field input { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--bg-elev); color: inherit; }
.trip-field-hint { font-size: 0.78rem; margin: 4px 0 8px; }

/* Empty "Recently saved" card fills its column. */
.recent-saves-strip > .recent-empty { grid-column: 1 / -1; }

/* One divider above About pricing (hero already draws one). */
.lookup-hero { border-bottom: 0; }

/* Tab group: centered, 480px max; indicator follows the finger. */
.trips-bottom-rail { justify-content: center; }
.trips-bottom-rail .rail-btn { flex: 1 1 0; max-width: 240px; }
.trips-bottom-rail::before { content: none; }
.rail-ind {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(240px, calc((100% - 24px) / 2));
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  color: #fff;
  transform: translateX(calc(-100% + var(--rail-i, 0) * 100% + var(--swipe-dx, 0px)));
  transition: transform 0.22s ease;
  pointer-events: none;
}
.trips-bottom-rail[data-active="1"] { --rail-i: 1; }
body[data-theme="light"] .rail-ind { color: #222; }
@media (prefers-reduced-motion: reduce) { .rail-ind { transition: none; } }
body[data-theme="light"] .booked-header { color: #222; }
@media (max-width: 520px) {
  .trip-card { grid-template-columns: 132px 1fr; gap: 12px; }
}

/* ===== trips-x-v44 — Remmy review ===== */
:root { --bar-h: calc(56px + env(safe-area-inset-bottom, 0px)); --gap-1: 8px; --gap-2: 12px; --gap-3: 16px; --gap-4: 24px; }

/* 1 + 6 — bar truly fixed; page padded by its height; footer at the true bottom */
body { padding-bottom: 0; }
#notebook.notebook { display: flex; flex-direction: column; min-height: 100dvh; padding-block: 0 var(--bar-h) !important; }
#app-body { flex: 1 0 auto; align-content: space-between; }
#app-body > .booked-view, #app-body > #share-view { flex-basis: 100%; }
.about-pricing.colophon { border-top: 1px solid var(--hairline); padding: var(--gap-3); margin-bottom: 0; }
.trips-bottom-rail {
  position: fixed; inset-inline: 0; bottom: 0; left: 0; right: 0;
  min-height: 0; height: var(--bar-h);
  padding: 0 12px env(safe-area-inset-bottom, 0px);
  align-items: center; box-sizing: border-box;
}
@media (min-width: 900px) and (orientation: landscape) {
  #notebook.notebook { padding-block: 0 !important; }
  .trips-bottom-rail {
    position: static; height: auto; inset: auto;
    justify-content: flex-start; gap: var(--gap-4);
    padding: 0 var(--gap-3); margin: 0 0 var(--gap-3);
    background: transparent !important; backdrop-filter: none;
    border-top: 0; border-bottom: 1px solid var(--hairline);
  }
  .trips-bottom-rail .rail-ind { display: none; }
  .trips-bottom-rail .rail-btn {
    flex: 0 0 auto; max-width: none; flex-direction: row; gap: 6px;
    padding: 12px 2px; border-radius: 0; position: relative; font-size: 0.9rem;
  }
  .trips-bottom-rail .rail-ico { font-size: 1rem; }
  .trips-bottom-rail .rail-btn.is-on::after {
    content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px;
    background: currentColor; border-radius: 2px;
    transform: translateX(var(--swipe-dx, 0px)); transition: transform .22s ease;
  }
  body[data-theme="light"] .trips-bottom-rail .rail-btn { color: #6a6a6a; }
  body[data-theme="light"] .trips-bottom-rail .rail-btn.is-on { color: #222; }
}
@media (prefers-reduced-motion: reduce) { .trips-bottom-rail .rail-btn.is-on::after { transition: none; } }

/* 2 — intrinsic trip layout */
.booked-view { padding: 0 var(--gap-3) var(--gap-4); }
.trip-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--gap-4);
  align-items: start;
}
@media (orientation: portrait) {
  .trip-layout { grid-template-columns: minmax(0, 1fr); max-inline-size: 44rem; margin-inline: auto; }
}
@media (orientation: landscape) {
  .trip-hero { position: sticky; top: var(--gap-3); }
}
.trip-days, .trip-money { min-width: 0; }
.trip-money:empty { display: none; }
.trip-money .booked-corridor-summary { margin: 0; }

/* 4 — hero: cover then auto heading; one spacing step before the first day */
.trip-card { display: flex; flex-direction: column; gap: var(--gap-2); margin: var(--gap-3) 0 0; }
.trip-card .trip-cover { inline-size: 100%; }
.trip-cover img { object-position: 50% 0; }
.trip-card h2 { margin: 0; font-size: 1.45rem; line-height: 1.2; }
.trip-card-dates { margin: 0; }
.trip-hero .trip-card { margin-top: 0; }
.booked-view { padding-top: var(--gap-3); }

/* 3 — day cards */
.booked-view .booked-list { display: flex; flex-direction: column; gap: var(--gap-2); margin: 0; }
.booked-view .booked-day.share-day {
  margin: 0; padding: var(--gap-3); gap: var(--gap-2);
  border: 0 !important; border-radius: 16px;
  background: var(--bg-elev);
}
body[data-theme="light"] .booked-view .booked-day.share-day { background: #f6f6f6; box-shadow: none; }
.booked-view .booked-day-toggle { align-items: center; }
.booked-view .share-day-toggle-main { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: var(--gap-1); }
.booked-view .share-day-phase { text-transform: none; letter-spacing: 0; font-size: 0.85rem; font-weight: 500; color: var(--muted) !important; }
.booked-view .share-day-phase::before { content: "· "; }
.booked-view .share-day.is-today .share-day-phase { color: var(--accent) !important; }
.booked-view .share-day-expand {
  position: relative; font-size: 0; inline-size: 36px; block-size: 36px; min-width: 0; padding: 0;
  border-radius: 999px; border: 1px solid var(--hairline); background: transparent; color: var(--text);
}
.booked-view .share-day-expand::before, .booked-view .share-day-expand::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; inline-size: 14px; block-size: 2px;
  background: currentColor; border-radius: 2px; transform: translate(-50%, -50%);
}
.booked-view .share-day-expand::after { transform: translate(-50%, -50%) rotate(90deg); }
.booked-view .share-day.is-expanded .share-day-expand::after { display: none; }
.booked-view .share-day.is-expanded .share-day-expand { background: transparent; }
.booked-view .share-day-stats { margin: 0; }

/* 5 — Explore */
.airbnb-search input::placeholder { color: #6a6a6a !important; opacity: 1; }
body:not([data-theme="light"]) .airbnb-search input::placeholder { color: #a0a4a8 !important; }
.prefs-drawer { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.prefs-drawer > summary {
  display: inline-block; padding: var(--gap-1) 0; background: transparent !important;
  color: var(--muted) !important; font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px;
}
.prefs-drawer[open] > summary { color: var(--text) !important; }
body > .desk { padding-bottom: 0 !important; }

/* ===== trips-x-v45 — Money tab + placeholder fix ===== */
#notebook .airbnb-search input::placeholder { color: var(--t-ink-2, #5f6368) !important; opacity: 1; }
#app-body > .money-view { flex-basis: 100%; padding: var(--gap-3); }
.money-heading { margin: 0 0 var(--gap-3); font-size: 1.45rem; }
.money-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--gap-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: start;
}
@media (orientation: portrait) { .money-view .money-list, .money-view > * { max-inline-size: 44rem; margin-inline: auto; } }
.money-row { border-radius: 16px; background: var(--bg-elev); padding: var(--gap-3); display: grid; gap: var(--gap-2); }
body[data-theme="light"] .money-row { background: #f6f6f6; }
.money-row-btn {
  appearance: none; border: 0; background: transparent; color: inherit; font: inherit; text-align: left;
  display: grid; grid-template-columns: 96px 1fr; gap: var(--gap-3); align-items: center; padding: 0; cursor: pointer;
}
.money-thumb .trip-cover { inline-size: 96px; border-radius: 10px; }
.money-thumb .trip-cover-initial { font-size: 1.6rem; }
.money-main { display: grid; gap: 2px; min-width: 0; }
.money-title { font-weight: 700; font-size: 0.95rem; }
.money-big { font-size: 1.8rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.money-big.muted { font-size: 1.05rem; font-weight: 600; }
.money-of { font-size: 0.85rem; }
.money-bar { block-size: 4px; border-radius: 4px; background: var(--hairline); overflow: hidden; }
.money-bar > span { display: block; block-size: 100%; border-radius: 4px; }
.money-bar.is-under > span { background: #1a9e5a; }
.money-bar.is-near > span { background: #e0a100; }
.money-bar.is-over > span { background: #d93a3a; }
.money-breakdown { inline-size: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.money-breakdown th, .money-breakdown td { padding: 6px 0; text-align: right; border-top: 1px solid var(--hairline); }
.money-breakdown th[scope="row"], .money-breakdown thead th:first-child { text-align: left; font-weight: 600; }
.money-breakdown thead th { border-top: 0; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.money-updated { margin: 0; font-size: 0.8rem; }
/* three tabs: indicator thirds of the 480 group */
.trips-bottom-rail .rail-btn { max-width: 160px; }
.rail-ind { width: min(160px, calc((100% - 24px) / 3)); transform: translateX(calc(-150% + var(--rail-i, 0) * 100% + var(--swipe-dx, 0px))); }
.trips-bottom-rail[data-active="2"] { --rail-i: 2; }
@media (min-width: 900px) and (orientation: landscape) { .trips-bottom-rail .rail-btn { max-width: none; } }
body[data-theme="light"] .money-view { color: #222; }
.money-txns { font-size: 0.88rem; }
.money-txns summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.money-txns ul { list-style: none; margin: 4px 0 0; padding: 0; }
.money-txns li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }

/* ===== trips-x-v46 — Money tab review ===== */
.money-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); }
.money-breakdown td.is-over { color: #d93a3a; font-weight: 700; }
.money-breakdown th[scope="row"] { position: relative; padding-bottom: 10px; }
.money-cat-bar { position: absolute; left: 0; right: 0; bottom: 3px; block-size: 3px; border-radius: 3px; background: var(--hairline); overflow: hidden; }
.money-cat-bar > span { display: block; block-size: 100%; background: #1a9e5a; }
.money-cat-bar.is-near > span { background: #e0a100; }
.money-cat-bar.is-over > span { background: #d93a3a; }
.money-breakdown th[scope="row"] { width: 40%; }
.money-cat.has-txns { cursor: pointer; }
.money-cat.has-txns > th::after { content: " ›"; color: var(--muted); }
.money-cat.is-open > th::after { content: " ⌄"; }
.money-cat-n { font-size: 0.78rem; }
.money-txn-row td { padding: 0 0 8px; border-top: 0; text-align: left; }
.money-txn-list { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
.money-txn-list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.trip-lodging-split { font-size: 0.85rem; margin: 6px 0; }
.booked-corridor-summary .booked-total { font-size: 1.1rem; font-weight: 800; }

/* v49 — transaction amounts line up with the Actual column */
.money-breakdown tr.money-txn-row td { padding: 3px 0; border-top: 0; font-size: 0.85rem; }
.money-breakdown td.money-txn-desc { text-align: left; padding-left: 12px; color: var(--muted); }
.money-breakdown td.money-txn-amt { text-align: right; }

/* trips-x-v50 · codename passcode gate + lock (quiet, tablet + phone) */
.trip-gate{display:grid;place-items:center;padding-block:clamp(2rem,8vh,5rem) 2rem;padding-inline:1rem}
.trip-gate-card{inline-size:min(100%,26rem);display:grid;justify-items:center;gap:.75rem;text-align:center;padding:clamp(1.5rem,4vw,2.5rem);border:1px solid var(--hairline);border-radius:20px;background:var(--bg-elev)}
.trip-gate-ico{display:grid;place-items:center;inline-size:56px;block-size:56px;border-radius:50%;background:color-mix(in oklab,var(--mint) 18%,transparent);color:var(--mint)}
.trip-gate-ico svg{inline-size:28px;block-size:28px}
.trip-gate h2{margin:0;font-size:clamp(1.5rem,1.2rem + 1.5vw,2rem);font-weight:800;letter-spacing:-.02em;color:var(--text)}
.trip-gate-lead{margin:0;color:var(--muted);max-inline-size:28ch}
.trip-gate-form{display:grid;justify-items:center;gap:.6rem;inline-size:100%;margin-block-start:.5rem}
.trip-gate-form label{font-size:.82rem;font-weight:700;color:var(--muted)}
.trip-gate-form input{font:inherit;font-size:1.75rem;letter-spacing:.4em;text-align:center;inline-size:min(100%,10ch);padding:.5rem .75rem;border:1px solid var(--hairline);border-radius:14px;background:var(--bg);color:var(--text)}
.trip-gate-form input:focus-visible,.trip-gate-btn:focus-visible,.trip-lock:focus-visible{outline:2px solid var(--mint);outline-offset:2px}
.trip-gate-btn{font:inherit;font-weight:800;min-block-size:48px;min-inline-size:10rem;padding-inline:1.5rem;border:0;border-radius:999px;background:var(--mint);color:#fff;cursor:pointer}
.trip-gate-btn:disabled{opacity:.6;cursor:default}
.trip-gate-msg{margin:0;min-block-size:1.4em;font-size:.9rem;color:var(--muted)}
.trip-lock{display:inline-grid;place-items:center;inline-size:44px;block-size:44px;border:1px solid var(--hairline);border-radius:999px;background:var(--bg-elev);color:var(--text);cursor:pointer;padding:0}
.trip-lock[hidden]{display:none}
.trip-lock svg{inline-size:18px;block-size:18px}
.trip-code{border:1px solid var(--hairline);border-radius:14px;padding:.75rem 1rem 1rem;margin-block-start:1rem;display:grid;gap:.5rem}
.trip-code legend{font-weight:800;padding-inline:.25rem}
.trip-code-btns{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.trip-code-clear{font:inherit;font-weight:700;background:none;border:0;color:var(--muted);text-decoration:underline;text-underline-offset:3px;min-block-size:44px;cursor:pointer}
.trip-code-msg{margin:0;min-block-size:1.2em}
#app-body:not([hidden]){animation:trip-in .18s ease-out}
@keyframes trip-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){#app-body:not([hidden]){animation:none}}

/* trips-x-v51 · Remmy gate/unlock/lock pass */
/* gate: no card, field and button share one width, content sits at ~40% of the viewport */
.trip-gate{min-block-size:calc(100dvh - 64px);display:grid;grid-template-rows:1fr auto 2.5fr;justify-items:center;padding:1rem;color:var(--text)}
.trip-gate-card{grid-row:2;inline-size:min(100%,20rem);border:0;background:none;padding:0;gap:.75rem}
.trip-gate-form{--w:min(100%,16rem)}
.trip-gate-form input,.trip-gate-btn{inline-size:var(--w);min-inline-size:0;box-sizing:border-box}
.trip-gate-form input{font-size:2rem;font-variant-numeric:tabular-nums;letter-spacing:.35em;text-indent:.35em;min-block-size:56px}
.trip-gate-msg:empty{visibility:hidden}
/* lock: borderless icon, same weight as the theme moon */
header.appbar .trip-lock{all:unset;box-sizing:border-box;flex:none;inline-size:36px;block-size:36px;border-radius:50%;display:inline-grid;place-items:center;cursor:pointer;color:inherit}
header.appbar .trip-lock:hover{background:rgba(128,128,128,.14)}
header.appbar .trip-lock:focus-visible{outline:2px solid var(--accent,#1d9bf0);outline-offset:2px}
header.appbar .trip-lock[hidden]{display:none}
header.appbar .trip-lock svg{inline-size:18px;block-size:18px}
/* after unlock: real text colors, no outer card or day panel — only the item cards are contained */
#share-view{color:var(--text);padding:0 0 32px}
.share-card,body[data-theme="light"] .share-card{border:0;border-radius:0;padding:0;margin:0;background:none;box-shadow:none}
.share-card h2{color:var(--text)}
.share-day,body[data-theme="light"] .share-day{background:none;box-shadow:none;border:0;padding-inline:0}
.share-day.is-done{opacity:.6}
.share-day-body{display:grid;gap:8px}
.share-day-body>*{inline-size:100%;max-inline-size:none;margin:0;box-sizing:border-box}
.share-day-body .share-stop-cards{display:grid;gap:8px;padding:0;margin:0;grid-template-columns:1fr}
.share-day-body .share-stop-cards>li{inline-size:auto;max-inline-size:none;margin:0}
.share-day-body .share-party{margin:0}
/* chevron collapse control */
.share-day-chev,.share-day-expand,.booked-view .share-day-expand{border:0;background:none;color:var(--text);padding:0;min-width:36px;min-height:36px;inline-size:36px;block-size:36px;border-radius:50%;font-size:0}
.share-day-expand svg{transition:transform .2s ease}
.share-day.is-expanded .share-day-expand svg{transform:rotate(180deg)}
.share-day.is-expanded > .share-day-toggle .share-day-expand,.share-day.is-expanded .share-day-expand{background:none;border:0;color:var(--text)}
.booked-view .share-day-expand::before,.booked-view .share-day-expand::after{display:none}
@media (prefers-reduced-motion:reduce){.share-day-expand svg{transition:none}}
/* codename edit: plain heading, app button */
.trip-code{border:0;padding:0;margin-block-start:1.25rem;display:grid;gap:.5rem}
.trip-code-h{margin:0;font-size:1rem;font-weight:800;color:var(--text)}
/* gate: no app nav behind it (it pushed the gate down on wide screens) */
body:has(#trip-gate) #trips-bottom-rail{display:none!important}
