/* Route 66 Copilot: Trip (home), Day, Ask empty state and the phone tab bar (trip-home.jsx).
   Light look: white, near-black text, one yellow for the main button, Ask and "today". Sizes in rem (text-size control). */

/* ---------- Trip ---------- */
.th { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.th-head { display: flex; flex-direction: column; gap: 2px; }
.th-eyebrow { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.th-title { margin: 0; font-family: var(--head); font-size: 1.75rem; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }

.th-ask {
  display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 6px 6px 6px 18px;
  border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(22, 23, 26, 0.08); color: var(--ink-2);
}
.th-ask input {
  flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--ink); font-size: 1rem; outline: none;
}
.th-ask input::placeholder { color: #66686F; }
.th-ask:focus-within { border-color: var(--ink); }
.th-ask .mic { min-height: 52px; background: var(--ink); color: var(--paper); }
.th-ask .mic-on { background: var(--yellow); color: var(--ink); }
.th-ask-go {
  width: 52px; height: 52px; flex-shrink: 0; border: 0; border-radius: var(--r-pill); background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}

.th-route { display: flex; flex-direction: column; gap: 10px; }
.th-map {
  position: relative; display: block; width: 100%; aspect-ratio: 360 / 176; padding: 0; border: 0; border-radius: var(--r-shell);
  background: #E9EEE5; overflow: hidden; color: var(--ink); text-align: left;
}
.th-map-loading { border-radius: var(--r-shell); }
.th-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.th-map-rest { fill: none; stroke: #8C9089; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 6; }
.th-map-done { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.th-map-stamp { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.6; }
.th-map-end { fill: var(--ink); }
.th-map-end-open { fill: #FFFFFF; stroke: var(--ink); stroke-width: 2; }
.th-map-today circle:first-child { fill: var(--yellow); fill-opacity: 0.35; }
.th-map-today circle:last-child { fill: var(--yellow); stroke: var(--ink); stroke-width: 2.6; }
.th-map-city { position: absolute; font-size: 0.8rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.th-map-city-e { top: 10px; right: 14px; }
.th-map-city-w { bottom: 10px; left: 14px; }
.th-map-photo {
  position: absolute; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; transform: translate(-50%, -118%);
  border: 3px solid #FFFFFF; box-shadow: 0 3px 10px rgba(22, 23, 26, 0.25);
}
.th-map-chip {
  position: absolute; transform: translate(-50%, 16px); padding: 3px 12px; border-radius: var(--r-pill);
  background: var(--ink); color: #FFFFFF; font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.th-progress { display: flex; flex-direction: column; gap: 6px; }
.th-progress p { margin: 0; font-size: 0.85rem; color: var(--ink-2); }
.th-bar { display: block; height: 8px; border-radius: var(--r-pill); background: var(--sand); overflow: hidden; }
.th-bar span { display: block; height: 100%; border-radius: var(--r-pill); background: var(--ink); }

.th-today { border: 1px solid var(--line); border-radius: var(--r-shell); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.th-today h2, .th-stops h2 { margin: 0; font-family: var(--head); font-size: 1.15rem; font-weight: 700; }
.th-today-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.th-today-sub { margin: -6px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.th-link { min-height: 48px; border: 0; background: none; padding: 0; font-weight: 700; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.th-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.th-num { display: flex; flex-direction: column; min-width: 0; }
.th-num-v { font-family: var(--head); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.th-num-v small { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-left: 2px; }
.th-num-l { font-size: 0.8rem; color: var(--ink-2); }
.th-cta {
  min-height: 62px; width: 100%; border: 0; border-radius: var(--r-pill); background: var(--yellow); color: var(--ink);
  font-size: 1.05rem; font-weight: 700; text-decoration: none; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 8px 0 24px; transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.th-cta:hover { background: var(--yellow-press); }
.th-cta:active { transform: scale(.98); }
.th-cta:disabled { background: var(--shell); cursor: not-allowed; }
.th-cta-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: rgba(22, 23, 26, 0.10); display: flex; align-items: center; justify-content: center; }

.th-stops { display: flex; flex-direction: column; gap: 12px; }
.th-cards {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin: 0 -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none;
}
.th-cards::-webkit-scrollbar { display: none; }
.th-card {
  flex: 0 0 min(240px, 70%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-align: left;
  border: 0; background: none; padding: 0; color: var(--ink);
}
.th-card img, .th-card-blank { width: 100%; aspect-ratio: 3 / 2; border-radius: 16px; object-fit: cover; background: var(--sand); }
.th-card-blank { display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.th-card-name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.th-card-meta { font-size: 0.85rem; color: var(--ink-2); }

.th-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.th-chip {
  min-height: 48px; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid #D3D4CF; background: var(--paper);
  color: var(--ink); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; text-align: left;
}
.th-chip:hover { background: var(--sand); }
.th-chip:disabled { opacity: .55; cursor: not-allowed; }
.th-credits { font-size: 0.8rem; color: var(--ink-2); }
.th-credits summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.th-credits p { margin: 0 0 8px; }

/* ---------- Day ---------- */
.dv { display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
.dv-trip { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.dv-chips { display: flex; gap: 8px; overflow-x: auto; margin: -4px -16px 0; padding: 4px 16px 6px; scrollbar-width: none; }
.dv-chips::-webkit-scrollbar { display: none; }
.dv-chip {
  flex: 0 0 auto; min-height: 56px; min-width: 72px; padding: 6px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2;
}
.dv-chip strong { font-size: 0.9rem; color: var(--ink); }
.dv-chip span { font-size: 0.8rem; }
.dv-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.dv-chip[aria-pressed="true"] strong { color: #FFFFFF; }
.dv-head h1 { margin: 0; font-family: var(--head); font-size: 1.7rem; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.dv-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 0.95rem; }

.dv-stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dv-stop { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-bottom: 22px; }
.dv-stop:not(:last-child)::before {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px;
  background: repeating-linear-gradient(#C9CAC6 0 4px, transparent 4px 8px);
}
.dv-n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #FFFFFF; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.dv-n-sleep { background: var(--yellow); color: var(--ink); }
.dv-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dv-name {
  border: 0; background: none; padding: 0; text-align: left; color: var(--ink); font-weight: 700; font-size: 1.05rem; line-height: 1.3;
  min-height: 48px; display: flex; align-items: center;
}
button.dv-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.dv-meta { font-size: 0.85rem; color: var(--ink-2); }
.dv-dir {
  align-self: flex-start; min-height: 48px; display: inline-flex; align-items: center; gap: 6px; padding: 0;
  font-size: 0.9rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px;
}
.dv-dir-btn { border: 0; background: none; }
.dv-photo { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; background: var(--sand); }
.dv-photo-blank { display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.dv-none { margin: 0; color: var(--ink-2); }
.dv-actions { display: flex; flex-direction: column; gap: 10px; }
.dv-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dv-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 4px; }
.dv-empty h1 { margin: 0; font-family: var(--head); font-size: 1.6rem; }
.dv-empty p { margin: 0; color: var(--ink-2); }

/* ---------- Ask, before the first question ---------- */
.ask-empty { display: flex; flex-direction: column; gap: 14px; padding: 12px 0 8px; }
.ask-empty h1 { margin: 0; font-family: var(--head); font-size: 1.75rem; letter-spacing: -0.02em; }
.ask-empty p { margin: 0; color: var(--ink-2); }
.ask-examples { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ask-past { align-self: flex-start; margin-top: 6px; }
.chat-tools { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }

/* ---------- Phone tab bar ---------- */
.tabbar {
  flex-shrink: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line);
}
.tb-item {
  min-height: 56px; border: 0; background: none; padding: 4px 0; color: var(--ink-2); font-size: 0.78rem; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
}
.tb-item[aria-current="page"] { color: var(--ink); font-weight: 800; }
.tb-ask-dot {
  width: 60px; height: 60px; margin-top: -28px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(22, 23, 26, 0.18);
}
.tb-ask { color: var(--ink); font-weight: 700; }
@media (min-width: 768px) { .tabbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .th-cta { transition: none; } }
/* Wide screens: Trip and Day stay phone-width so the map and cards keep their proportions */
.column.th, .column.dv { max-width: 620px; }
