/* Triply: dark, cinematic travel UI (shared by landing, chat, and the plan page) */
:root {
  --bg: #0f0f10;
  --bg2: #17171a;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.09);
  --text: #ecebe6;
  --muted: rgba(236, 235, 230, 0.6);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --olive: #8FA05E;
  --tomato: #D9614C;
  --mustard: #E0A93B;
  --mauve: #A9748A;
  --teal: #5E9E97;
  --denim: #7C9CC0;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Raleway", "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hand { font-family: "Caveat", cursive; }
.muted, .muted-light { color: var(--muted); }

/* ---------- Shared site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px;
  background: rgba(15, 15, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.4rem; letter-spacing: 0.01em; text-decoration: none; color: #f4efe6; }
.brand-logo { width: 34px; height: 34px; display: block; }
.welcome-brand .brand-logo { width: 42px; height: 42px; }
.brand .dot { color: var(--mustard); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { font-weight: 600; font-size: 0.92rem; text-decoration: none; color: #f4efe6; opacity: 0.72; padding: 4px 0; border-bottom: 1.5px solid transparent; }
.site-nav a:hover { opacity: 1; }
.site-nav a.active { opacity: 1; border-bottom-color: var(--mustard); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.1); color: #fff;
  font-weight: 800; display: grid; place-items: center;
}

.profile-menu {
  position: fixed; top: calc(var(--header-h) + 8px); right: 18px; z-index: 60;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - var(--header-h) - 24px); overflow: auto;
  padding: 16px; border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(24, 24, 27, 0.96); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.profile-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.profile-tabs button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 0.8rem; }
.profile-tabs button.active { background: #f4efe6; color: #1a1a1a; border-color: #f4efe6; }
.profile-body { display: grid; gap: 10px; font-size: 0.88rem; }
.profile-body .eyebrow { font-family: "Caveat", cursive; color: var(--mustard); font-size: 1.35rem; margin: 0; }
.profile-body label { display: grid; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.profile-body select, .docs-select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #1d1d20; color: var(--text); }
.profile-body input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: rgba(255, 255, 255, 0.06); }
.profile-body .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); }
.profile-body .row span { color: var(--muted); }
.profile-body .row strong { text-align: right; font-weight: 600; }
.profile-body .trip-link { display: flex; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 12px; background: var(--glass); text-decoration: none; }
.profile-body .trip-link:hover { background: var(--glass-2); }
.person { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--glass); }
.person .face { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1a1a1a; }
.person strong { display: block; }
.person span { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.group-card { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); display: grid; gap: 8px; }
.group-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.faces { display: flex; }
.faces .face { width: 28px; height: 28px; margin-left: -6px; border-radius: 50%; border: 2px solid #18181b; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: #1a1a1a; }
.faces .face:first-child { margin-left: 0; }

.btn { border: 1.5px solid #f4efe6; border-radius: 999px; padding: 9px 16px; font-weight: 700; background: #f4efe6; color: #1a1a1a; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.warm { background: var(--mustard); border-color: var(--mustard); color: #1a1a1a; }
.btn.small { padding: 6px 12px; font-size: 0.82rem; }
.btn:disabled { opacity: 0.45; cursor: default; }

/* ---------- Chat workspace ---------- */
.chat-body {
  background:
    radial-gradient(90% 60% at 80% -10%, rgba(224, 169, 59, 0.12), transparent 60%),
    radial-gradient(70% 60% at -10% 110%, rgba(94, 158, 151, 0.12), transparent 60%),
    var(--bg);
}
.workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  height: calc(100vh - var(--header-h));
  padding: 14px;
}
.panel { min-height: 0; border: 1px solid var(--line-soft); border-radius: 22px; background: var(--glass); backdrop-filter: blur(8px); }
.trips-rail { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.trips-rail .rail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.trips-rail .rail-title { margin: 12px 4px 4px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.trip-list { display: grid; gap: 6px; overflow: auto; min-height: 0; padding-right: 2px; align-content: start; }
.trip-item { display: grid; grid-template-columns: minmax(0, 1fr) 26px; align-items: center; border-radius: 12px; background: var(--glass); }
.trip-item.active, .trip-item:hover { background: var(--glass-2); }
.trip-item.active { box-shadow: inset 3px 0 0 var(--mustard); }
.trip-item button { border: 0; background: transparent; text-align: left; }
.trip-open { display: grid; gap: 3px; padding: 9px 10px; min-width: 0; }
.trip-open strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; text-transform: capitalize; }
.trip-open span { color: var(--muted); font-size: 0.74rem; }
.trip-delete { width: 26px; height: 26px; border-radius: 50%; color: var(--muted); font-size: 0.8rem; }
.trip-delete:hover { background: var(--glass-2); color: var(--text); }

.chat-column { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line-soft); }
.chat-head .kicker { font-family: "Caveat", cursive; color: var(--mustard); font-size: 1.3rem; }
.chat-head h1 { margin: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.chat-head h1.is-place { text-transform: capitalize; }
.chat-form button:disabled, #regen-button:disabled { opacity: .5; cursor: progress; }
.chat-head-actions { display: flex; gap: 10px; align-items: center; }
.trip-crew { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 0.82rem; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 20px 0; }
.quick-chips button { border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 0.82rem; }
.quick-chips button:hover { background: var(--glass-2); border-color: rgba(255, 255, 255, 0.35); }
.chat-log { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
.chat-log > * { flex-shrink: 0; } /* keep cards at full size; the log scrolls, not the cards */
.message { max-width: 78%; padding: 11px 15px; border-radius: 18px; font-size: 0.94rem; line-height: 1.5; white-space: pre-wrap; }
.message.assistant { align-self: flex-start; background: var(--glass-2); border: 1px solid var(--line-soft); border-top-left-radius: 6px; }
.message.user { align-self: flex-end; background: #f4efe6; color: #1a1a1a; border-top-right-radius: 6px; }
.message .open-plan-inline { margin-top: 10px; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 13px 15px; border-radius: 18px; background: var(--glass-2); }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--mustard); animation: bounce 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-5px); opacity: 1; } }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line-soft); }
.chat-form textarea { resize: none; min-height: 50px; max-height: 140px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 15px; background: rgba(255, 255, 255, 0.06); outline: none; }
.chat-form textarea:focus { border-color: rgba(255, 255, 255, 0.45); }
.chat-form textarea::placeholder { color: var(--muted); }
.chat-form button { align-self: end; height: 50px; padding: 0 22px; border: 0; border-radius: 16px; background: #f4efe6; color: #1a1a1a; font-weight: 800; }

/* group chat */
.message.other { align-self: flex-start; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-top-left-radius: 6px; }
.msg-from { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.message.user .msg-from { color: rgba(26, 26, 26, 0.6); }
.msg-from .face { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.64rem; font-weight: 800; color: #1a1a1a; }
.speaker-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px 0; font-size: 0.84rem; }
.speaker-row label { font-weight: 700; }
.speaker-row select { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: #1d1d20; color: var(--text); font-weight: 700; }
.speaker-row .muted { font-size: 0.78rem; }
.regen-count:not(:empty) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #1a1a1a; color: var(--mustard); font-size: 0.72rem; }

/* ---------- Live agent run card ---------- */
.agent-run { align-self: stretch; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.04); overflow: hidden; }
.agent-run > summary { list-style: none; display: grid; gap: 8px; padding: 13px 15px; cursor: pointer; }
.agent-run > summary::-webkit-details-marker { display: none; }
.run-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.run-top strong { font-size: 1rem; font-weight: 800; }
.run-top span { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.run-current { color: var(--muted); font-size: 0.85rem; }
.run-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.run-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--mustard), var(--tomato)); transition: width 300ms ease; }
.run-interests { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-rows { display: grid; gap: 2px; padding: 0 10px 12px; max-height: min(340px, 45vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.agent-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 7px 6px; border-radius: 10px; }
.agent-row:hover { background: var(--glass); }
.agent-row .status { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 0.7rem; font-weight: 900; }
.agent-row.running .status { border-color: var(--mustard); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.agent-row.done .status { border-color: var(--olive); background: var(--olive); color: #fff; }
.agent-row.library .status { border-color: var(--mustard); background: var(--mustard); color: #1a1a1a; font-size: 0.62rem; }
.agent-row.error .status { border-color: var(--tomato); background: var(--tomato); color: #fff; }
.agent-row .name { font-weight: 700; font-size: 0.86rem; }
.agent-row.queued .name { color: var(--muted); font-weight: 600; }
.agent-row .summary { color: var(--muted); font-size: 0.8rem; line-height: 1.4; margin-top: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Group trip picker ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: #18181b; box-shadow: var(--shadow); }
.modal h2 { margin: 0 0 4px; font-size: 1.4rem; font-weight: 800; }
.modal p { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.modal .section-label { margin: 14px 0 6px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.modal .quick-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { display: grid; grid-template-columns: 22px 38px 1fr; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; }
.pick:hover { background: var(--glass); }
.pick:has(input:checked) { border-color: var(--mustard); background: rgba(224, 169, 59, 0.08); }
.pick input { width: 18px; height: 18px; accent-color: var(--mustard); }
.pick .face { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1a1a1a; }
.pick strong { display: block; }
.pick span { color: var(--muted); font-size: 0.8rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ---------- Destination page (the plan): cinematic, Japan-landing style ---------- */
.dest { font-family: "Raleway", "Nunito Sans", sans-serif; }
.dest .muted-light, .dest .muted-light * { color: rgba(236, 235, 230, 0.62); }
.dest .accent { color: var(--mustard); }
.dest-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.7); color: #fff;
  text-decoration: none; font-weight: 700; letter-spacing: 0.02em;
  backdrop-filter: blur(6px); background: rgba(255, 255, 255, 0.06);
}
.dest-btn.solid { background: #f4efe6; color: #1a1a1a; border-color: #f4efe6; }
.dest-btn:hover { transform: translateY(-1px); }

.dest-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  overflow: hidden;
  background: #222 var(--hero) center / cover no-repeat;
}
.dest-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dest-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 16, 0.15) 0%, rgba(15, 15, 16, 0.05) 35%, rgba(15, 15, 16, 0.75) 78%, #0f0f10 100%);
}
.dest-hero-inner {
  position: relative; z-index: 1;
  width: min(1200px, 100%); margin: 0 auto;
  padding: 28px 28px 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
}
.dest-name {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3.4rem, 13vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  mix-blend-mode: soft-light;
  word-break: break-word;
}
.dest-hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dest-title { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; color: #fff; }
.dest-summary { margin: 0 0 16px; max-width: 620px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.dest-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.dest-card {
  position: relative; margin: 0;
  width: 118px; height: 150px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.dest-card img { width: 100%; height: 100%; object-fit: cover; }
.dest-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 9px 8px;
  font-size: 0.8rem; line-height: 1.2; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.dest-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.dest-section { width: min(1200px, 100%); margin: 0 auto; padding: 56px 28px; }
.dest-rule {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 30px;
  font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(236, 235, 230, 0.55);
}
.dest-rule::after { content: ""; flex: 1; height: 1.5px; background: rgba(236, 235, 230, 0.35); }
.dest-h { font-size: 1.5rem; font-weight: 800; margin: 0 0 8px; }
.dest-empty { text-align: center; padding: 60px 0; }

.dest-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.dest-about-text p { line-height: 1.7; margin: 0 0 14px; }
.dest-highlights { margin: 6px 0 16px; padding-left: 18px; line-height: 1.7; }
.dest-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dest-chips span { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.85rem; }
.dest-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.dest-timeline::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1.5px; background: rgba(236, 235, 230, 0.35); }
.dest-timeline li { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; position: relative; padding: 14px 0; }
.dest-timeline li::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: #ecebe6; box-shadow: 0 0 0 4px #0f0f10;
}
.tl-label { text-decoration: none; text-align: right; display: grid; gap: 2px; }
.tl-label span { font-size: 0.85rem; color: rgba(236, 235, 230, 0.6); }
.tl-label strong { font-size: 1.2rem; color: #fff; }
.tl-label em { font-style: normal; font-size: 0.85rem; color: var(--mustard); }
.tl-photos { display: flex; gap: 8px; }
.tl-photos img { width: 96px; height: 70px; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4); }
.tl-photos img:nth-child(2) { transform: translateY(16px); }
.dest-timeline li.flip .tl-label { order: 2; text-align: left; }
.dest-timeline li.flip .tl-photos { order: 1; justify-content: flex-end; }

.dest-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.dest-tile {
  padding: 18px; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}
.dest-tile .ico { font-size: 1.4rem; }
.dest-tile h3 { margin: 6px 0 10px; font-size: 1.15rem; font-weight: 800; }
.dest-tile p { margin: 0 0 8px; line-height: 1.5; font-size: 0.92rem; }
.dest-big { font-size: 1.5rem !important; font-weight: 800; }
.dest-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.dest-panel { padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); }
.dest-panel h3 { margin: 0 0 10px; font-weight: 800; }
.dest-panel ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.dest-check { margin: 0 0 10px; line-height: 1.5; font-size: 0.92rem; }
.dest-checkitem { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 0.92rem; }

.dest-daynav { position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0; margin-bottom: 10px; background: rgba(15, 15, 16, 0.9); backdrop-filter: blur(6px); }
.dest-daynav a { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); text-decoration: none; font-weight: 700; font-size: 0.88rem; }
.dest-daynav a:hover { background: rgba(255, 255, 255, 0.1); }
.dest-day { padding: 26px 0 34px; border-top: 1px solid rgba(255, 255, 255, 0.1); scroll-margin-top: calc(var(--header-h) + 60px); }
.dest-day-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; margin-bottom: 18px; }
.dest-day-num { margin: 0; font-size: 2.6rem; font-weight: 900; line-height: 1; color: rgba(236, 235, 230, 0.35); text-transform: uppercase; }
.dest-day-head h3 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 800; }
.dest-day-head p { margin: 0 0 8px; line-height: 1.6; }
.dest-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.dest-facts span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 0.84rem; }
.dest-facts em { font-style: normal; color: rgba(236, 235, 230, 0.6); }

.dest-cta { position: relative; padding: 90px 28px; background: #222 var(--cta) center / cover no-repeat; }
.dest-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#0f0f10, rgba(15, 15, 16, 0.45) 40%, rgba(15, 15, 16, 0.7)); }
.dest-cta-box {
  position: relative; max-width: 440px; margin-left: max(28px, calc((100vw - 1200px) / 2));
  padding: 26px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dest-cta-box p { line-height: 1.6; }

/* stops (dark) */
.day-stops { display: grid; gap: 6px; }
.stop {
  display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px;
  padding: 14px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 150ms ease, background 150ms ease;
}
.stop:hover, .stop.hot { border-color: var(--mustard); background: rgba(255, 255, 255, 0.07); }
.stop-time { text-align: center; }
.stop-time strong { display: block; font-size: 1.05rem; }
.stop-time span { color: rgba(236, 235, 230, 0.55); font-size: 0.74rem; }
.stop-num { width: 26px; height: 26px; margin: 8px auto 0; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.78rem; }
.stop-main { display: grid; gap: 7px; min-width: 0; }
.stop-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.stop-top h4 { margin: 4px 0 0; font-size: 1.08rem; line-height: 1.25; }
.stop-top .place { color: rgba(236, 235, 230, 0.6); font-size: 0.82rem; }
.stop-thumb { width: 110px; height: 80px; border-radius: 10px; object-fit: cover; }
.stop .why { margin: 0; font-style: italic; color: rgba(236, 235, 230, 0.78); font-size: 0.9rem; }
.stop .what { margin: 0; line-height: 1.6; font-size: 0.92rem; }
.stop .order { margin: 0; padding: 7px 11px; border-radius: 10px; background: rgba(217, 97, 76, 0.16); font-size: 0.88rem; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: rgba(255, 255, 255, 0.08); }
.chip .swatch { width: 8px; height: 8px; border-radius: 50%; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 2px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; background: rgba(255, 255, 255, 0.08); }
.badge.book { background: rgba(224, 169, 59, 0.3); }
.stop details { font-size: 0.86rem; }
.stop details summary { cursor: pointer; font-weight: 700; color: var(--mustard); font-size: 0.82rem; }
.stop details dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 8px 0 0; }
.stop details dt { color: rgba(236, 235, 230, 0.55); font-weight: 700; font-size: 0.78rem; }
.stop details dd { margin: 0; line-height: 1.45; }
.stop-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.leg { margin: 0 0 0 30px; padding: 6px 0 6px 18px; border-left: 2px dashed rgba(236, 235, 230, 0.25); color: rgba(236, 235, 230, 0.55); font-size: 0.8rem; }
.link-btn { border: 0; background: none; padding: 0; color: var(--mustard); font-weight: 700; font-size: 0.84rem; text-decoration: none; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.dest-btn.small-route { padding: 7px 14px; font-size: 0.84rem; }

/* group trip additions on stops */
.stop .for-whom { display: inline-flex; gap: 4px; align-items: center; }
.stop .for-whom .face { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.66rem; font-weight: 800; color: #1a1a1a; }
.stop .group-note { margin: 0; padding: 8px 11px; border-radius: 10px; background: rgba(124, 156, 192, 0.14); font-size: 0.88rem; line-height: 1.5; }
.stop.split { border-style: dashed; }
.transport-group { padding: 10px 0; border-top: 1px dashed rgba(255, 255, 255, 0.14); }
.transport-group:first-of-type { border-top: 0; }

/* ---------- Illustrated poster map ---------- */
.map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.day-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.day-filter button {
  border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: inherit;
  border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.84rem;
}
.day-filter button.active { background: #f4efe6; color: #1a1a1a; border-color: #f4efe6; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: inherit; font-weight: 900; }
.poster { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.poster-map { height: min(72vh, 680px); background: #A9D6F2; z-index: 0; }
.poster-map .street-tiles { filter: saturate(0.3) sepia(0.2) brightness(1.08) contrast(0.9); }
.poster-title { position: absolute; left: 26px; bottom: 22px; z-index: 500; pointer-events: none; display: grid; }
.poster-title strong {
  font-family: "Raleway", sans-serif; font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 0.9;
  text-transform: uppercase; color: #fff;
  text-shadow: 0 4px 18px rgba(40, 80, 110, 0.35);
}
.poster-title em { font-family: "Caveat", cursive; font-style: normal; font-size: clamp(1.8rem, 4vw, 2.8rem); color: #C9703F; margin: -4px 0 0 40px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.legend-chip { border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); color: inherit; border-radius: 999px; padding: 5px 12px; font-size: 0.84rem; font-weight: 700; }
.legend-chip.off { opacity: 0.35; text-decoration: line-through; }
.poster-wrap.expanded {
  position: fixed; inset: calc(var(--header-h) + 10px) 14px 14px; z-index: 80;
  display: flex; flex-direction: column; padding: 12px; border-radius: 22px; background: #0f0f10;
}
.poster-wrap.expanded .poster { flex: 1; }
.poster-wrap.expanded .poster-map { height: 100%; }

.map-pin-wrap { background: transparent; border: 0; }
.map-x { display: grid; place-items: center; width: 18px; height: 18px; font-size: 15px; font-weight: 900; color: #2b2b2b; }
.map-label {
  display: inline-grid; white-space: nowrap;
  font-family: "Raleway", sans-serif; font-weight: 900; font-size: 1rem;
  letter-spacing: 0.02em; text-transform: uppercase; color: #D9713C;
  text-shadow: 0 0 3px #F6E8DC, 0 0 6px #F6E8DC, 0 0 10px #F6E8DC;
}
.map-label small { font-size: 0.66rem; letter-spacing: 0.08em; color: #8a6a52; }
.map-label.small { font-size: 0.72rem; font-weight: 800; text-transform: none; color: #b0592e; }
.map-sticker { display: block; font-size: 26px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.18)); }
.map-stop {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: #2b2b2b; font-weight: 900; font-size: 0.74rem;
  border: 3px solid var(--c, #C9A27E); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: transform 150ms ease;
}
.map-stop.hot { transform: scale(1.4); }
.teardrop {
  border-radius: 50% 50% 50% 0;
  border: 5px solid #C9A27E;
  background: #C9A27E;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(60, 40, 20, 0.3);
  transition: transform 150ms ease;
}
.teardrop:hover { transform: scale(1.08); }
.teardrop img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 10px 12px; line-height: 1.35; min-width: 200px; color: #2b2b2b; }
.pop img { width: 100%; height: 96px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; }
.pop .pop-meta { color: #7c766a; font-size: 0.76rem; font-weight: 700; }
.pop strong { display: block; font-size: 0.95rem; margin: 2px 0; }
.pop p { margin: 4px 0; font-size: 0.8rem; }
.pop a { font-weight: 800; font-size: 0.8rem; color: var(--denim); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .dest-about { grid-template-columns: 1fr; }
  .dest-day-head { grid-template-columns: 1fr; gap: 6px; }
  .dest-day-num { font-size: 2rem; }
}
@media (max-width: 760px) {
  .site-header { padding: 0 16px; }
  .site-nav { gap: 14px; }
  .site-nav a.hide-sm { display: none; }
  .workspace { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - var(--header-h)); padding: 10px; }
  .trips-rail { max-height: 170px; }
  .chat-column { min-height: calc(100vh - var(--header-h) - 200px); }
  .message { max-width: 92%; }
  .dest-section { padding: 40px 16px; }
  .dest-hero-inner { padding: 20px 16px 28px; }
  .dest-card { width: 96px; height: 124px; }
  .dest-timeline::before, .dest-timeline li::before { left: 0; }
  .dest-timeline li, .dest-timeline li.flip { grid-template-columns: 1fr; padding-left: 20px; gap: 10px; }
  .tl-label, .dest-timeline li.flip .tl-label { order: 0; text-align: left; }
  .dest-timeline li.flip .tl-photos { order: 1; justify-content: flex-start; }
  .poster-map { height: 460px; }
  .stop { grid-template-columns: 46px minmax(0, 1fr); }
  .stop-thumb { width: 72px; height: 56px; }
  .stop details dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  .site-header, .dest-hero-actions, .map-toolbar, .dest-daynav, .dest-cta { display: none !important; }
}


/* ---------- Welcome + account ---------- */
.welcome { position: relative; min-height: 100vh; display: flex; background: #1b1b1d var(--hero) center / cover no-repeat; }
.welcome::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,16,.35), rgba(15,15,16,.2) 30%, rgba(15,15,16,.85) 80%, #0f0f10); }
.welcome-inner { position: relative; z-index: 1; width: min(1200px, 100%); margin: 0 auto; padding: 24px 28px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.welcome-brand { font-size: 1.6rem; }
.welcome-giant { margin: 0; font-weight: 800; font-size: clamp(3.6rem, 15vw, 12rem); line-height: .85; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.82); mix-blend-mode: soft-light; }
.welcome-card { width: min(520px, 100%); padding: 26px; border-radius: 22px; background: rgba(20,20,22,.72); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.welcome-card h1 { margin: 4px 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.1; }
.welcome-card p { line-height: 1.55; }
.welcome-kicker { font-size: 1.6rem; color: var(--mustard); }
.welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; }
.welcome-actions .btn { padding: 11px 22px; }
.welcome-guest { font-size: .95rem; color: #fff; }
.welcome-note { font-size: .82rem; margin: 8px 0 0; }
.welcome-demo { margin-top: 14px; font-size: .78rem; color: var(--muted); }
.account-card { margin-top: auto; }
.account-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.account-tabs button { flex: 1; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px; font-weight: 700; }
.account-tabs button.active { background: #f4efe6; color: #1a1a1a; border-color: #f4efe6; }
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: grid; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.form-grid input { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: rgba(255,255,255,.06); outline: none; }
.form-grid input:focus { border-color: rgba(255,255,255,.5); }
.form-hint { font-size: .78rem; font-weight: 600; color: var(--muted); }
.form-hint.bad { color: #f08a78; }
.form-hint.good { color: #a9c47a; }
.form-error { margin: 0; padding: 9px 12px; border-radius: 10px; background: rgba(217,97,76,.16); color: #f4b7aa; font-size: .88rem; }
.strength { height: 4px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; transition: width .2s ease, background .2s ease; }
.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-weight: 800; }
.dev-code { font-size: .8rem; color: var(--mustard); }
.friend-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.friend-list { display: grid; gap: 8px; margin-top: 12px; }
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps span { flex: 1; height: 3px; border-radius: 99px; background: rgba(255,255,255,.15); }
.steps span.on { background: var(--mustard); }

/* ---------- Plan docked beside the chat ---------- */
.workspace.docked { grid-template-columns: 240px minmax(0, 1fr) minmax(320px, 400px); }
.plan-dock { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.dock-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.dock-head .hand { color: var(--mustard); font-size: 1.3rem; }
.dock-body { flex: 1; min-height: 0; overflow: auto; padding: 12px; display: grid; gap: 10px; align-content: start; }
.dock-title { margin: 0; font-size: 1.05rem; font-weight: 800; }
.dock-sub { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.dock-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.dock-tabs button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 0.78rem; color: var(--text); }
.dock-tabs button.active { background: #f4efe6; color: #1a1a1a; border-color: #f4efe6; }
.dock-day { margin: 2px 0 0; font-weight: 800; font-size: 0.92rem; }
.dock-stop { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 8px; border-radius: 10px; background: var(--glass); }
.dock-stop time { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.dock-stop strong { display: block; font-size: 0.86rem; line-height: 1.3; }
.dock-stop span { display: block; color: var(--muted); font-size: 0.76rem; }
.dock-stop .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dock-empty { color: var(--muted); font-size: 0.86rem; text-align: center; padding: 24px 8px; }
.dock-updated { animation: dockflash 1.2s ease; }
@keyframes dockflash { from { box-shadow: inset 0 0 0 2px var(--mustard); } to { box-shadow: none; } }
@media (max-width: 1100px) {
  .workspace.docked { grid-template-columns: 210px minmax(0, 1fr); }
  .workspace.docked .plan-dock { position: fixed; inset: calc(var(--header-h) + 8px) 8px 8px auto; width: min(400px, calc(100vw - 16px)); z-index: 40; box-shadow: var(--shadow); }
}

/* ---------- Active trips (D-022) ---------- */
.trip-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(143, 160, 94, 0.18); color: #cfe0a4; font-size: 0.8rem; font-weight: 700; }
.trip-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9fd36b; box-shadow: 0 0 0 4px rgba(159, 211, 107, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(159, 211, 107, 0.05); } }
.loc-toggle.on { border-color: #9fd36b !important; color: #cfe0a4; }
.chat-form.with-attach { grid-template-columns: auto 1fr auto; }
.attach-btn { align-self: end; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); font-size: 1.2rem; cursor: pointer; }
.attach-btn:hover { background: var(--glass-2); }
.attach-preview { display: flex; align-items: center; gap: 10px; margin: 0 14px; padding: 8px 10px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); font-size: 0.84rem; }
.attach-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.attach-preview button { margin-left: auto; border: 0; background: transparent; color: var(--muted); }
.message img.msg-photo { display: block; max-width: 220px; border-radius: 10px; margin-top: 8px; }
.place-cards { display: grid; gap: 6px; margin-top: 10px; }
.place-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft); }
.place-card strong { font-size: 0.9rem; }
.place-card span { color: var(--muted); font-size: 0.78rem; }
.place-card .links { grid-column: 1 / -1; display: flex; gap: 12px; }
.place-card a { color: var(--mustard); font-weight: 700; font-size: 0.8rem; text-decoration: none; }
.booking-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 10px; border-radius: 12px; background: var(--glass); margin-bottom: 8px; }
.booking-row .ico { font-size: 1.2rem; }
.booking-row strong { display: block; }
.booking-row span { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.booking-row a { color: var(--mustard); font-weight: 700; text-decoration: none; }
.booking-row button { border: 0; background: transparent; color: var(--muted); }
.modal textarea, .modal input, .modal select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: rgba(255, 255, 255, 0.06); color: var(--text); }
.modal .form-grid { gap: 10px; }
.modal .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dest-status { position: absolute; top: 18px; right: 28px; z-index: 2; display: flex; gap: 8px; }
