/* ============ vacAItion.ai — styles ============ */
:root {
  color-scheme: dark;
  --bg: #0b0e17; --bg-2: #111527; --card: rgba(255,255,255,0.055); --card-solid: #161b2e;
  --border: rgba(255,255,255,0.09); --border-strong: rgba(255,255,255,0.22);
  --text: #eef1f8; --muted: #9aa3b8;
  --accent: #ff6b57; --accent-soft: rgba(255,107,87,0.14); --accent-2: #8b5cf6; --grad: linear-gradient(135deg,#ff6b57,#ff9d43);
  --good: #34d399; --good-soft: rgba(52,211,153,0.14); --warn: #fbbf24; --bad: #f87171; --bad-soft: rgba(248,113,113,0.14); --info: #38bdf8;
  --radius: 16px; --shadow: 0 10px 34px rgba(0,0,0,0.45); --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --input-bg: rgba(255,255,255,0.06); --chip-bg: rgba(255,255,255,0.07); --hover: rgba(255,255,255,0.08);
  --topbar: rgba(11,14,23,0.85); --overlay: rgba(4,6,12,0.7); --user-bubble: linear-gradient(135deg,#ff6b57,#ff8a43); --ai-bubble: #161b2e;
  --grid-line: rgba(255,255,255,0.07); --tab-active-bg: rgba(255,255,255,0.1);
  --ev-flight: #38bdf8; --ev-hotel: #a78bfa; --ev-activity: #34d399; --ev-meal: #fbbf24;
  --ring: 0 0 0 3px var(--accent-soft);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fb; --bg-2: #ffffff; --card: #ffffff; --card-solid: #ffffff;
  --border: rgba(16,24,48,0.1); --border-strong: rgba(16,24,48,0.24);
  --text: #131a2e; --muted: #5d6784;
  --accent: #f0553f; --accent-soft: rgba(240,85,63,0.1); --accent-2: #7c4ee8;
  --good: #0f9f6e; --good-soft: rgba(15,159,110,0.12); --warn: #d48a06; --bad: #dc3e3e; --bad-soft: rgba(220,62,62,0.1); --info: #0891b2;
  --shadow: 0 12px 34px rgba(19,26,46,0.12); --shadow-sm: 0 1px 4px rgba(19,26,46,0.1);
  --input-bg: #f4f6fb; --chip-bg: #eef1f8; --hover: rgba(19,26,46,0.05);
  --topbar: rgba(255,255,255,0.86); --overlay: rgba(19,26,46,0.45); --ai-bubble: #ffffff;
  --grid-line: rgba(19,26,46,0.08); --tab-active-bg: rgba(19,26,46,0.07);
  --ev-flight: #0284c7; --ev-hotel: #7c3aed; --ev-activity: #059669; --ev-meal: #d97706;
}
* { box-sizing: border-box; }
/* Theme switch: crossfade colors instead of snapping.  `.theme-anim` is added by
   App.toggleTheme() only for the duration of the switch, so normal hover/focus
   transitions elsewhere are unaffected and first paint is instant. */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, background .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease, fill .45s ease, opacity .45s ease !important;
}
@media (prefers-reduced-motion: reduce) { html.theme-anim, html.theme-anim * { transition: none !important; } }
.btn-ghost.sq#btn-theme, #home-theme, #dash-theme { overflow: hidden; }
.theme-icon { display: inline-block; transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .3s; }
html.theme-anim .theme-icon { transform: rotate(180deg) scale(.6); opacity: 0; }
html, body { height: 100%; }
/* UI typeface: Outfit everywhere except Fraunces display headings.
   font-size-adjust scales every Outfit size up (~10%) without touching each px value. */
body { margin: 0; font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size-adjust: 0.55; letter-spacing: 0.005em; background: var(--bg); color: var(--text); display: flex; flex-direction: column; overflow: hidden; -webkit-font-smoothing: antialiased; }
.display, .vc-body b { font-size-adjust: none; }
.display { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; }
.display em { font-style: italic; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* `hidden` must always win — the planner shell sets display:flex on its class,
   which used to override the attribute and left the planner visible after logout. */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 12px; } .good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
code { background: var(--chip-bg); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

/* ===== buttons ===== */
.btn-ghost { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; font-weight: 600; transition: background .15s, border-color .15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; line-height: 1.2; }
.btn-ghost:hover { background: var(--hover); border-color: var(--border-strong); }
.btn-ghost.sq { width: 36px; height: 36px; padding: 0; font-size: 16px; }
.btn-ghost.danger { color: var(--bad); }
.gcal-logo { width: 20px; height: 20px; display: block; flex: none; }
/* All-day row (hotel stay spanning the trip) */
.allday-lbl { grid-column: 1; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; justify-content: flex-end; padding: 0 6px 6px 0; }
.ev-span { margin: 0 4px 6px; padding: 4px 10px; border-radius: 6px; border: 0; text-align: left; display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; cursor: pointer; font: inherit; font-size: 13px; color: #fff; background: var(--ev-hotel); }
.ev-span b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ev-span span { opacity: .85; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ev-span:hover { filter: brightness(1.08); }
/* Booking: one quiet row in the event sheet + a small tick on booked events */
.bk-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.bk-row.booked { border-color: var(--good); }
.bk-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.bk-check input { width: 16px; height: 16px; accent-color: var(--good); }
.bk-conf { flex: 1; min-width: 160px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.bk-conf:focus { border-color: var(--good); }
.bk-conf[hidden] { display: none !important; }
.bk-num { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.bk-num input { width: 58px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; color: var(--text); font: inherit; font-size: 14px; }
.bk-official-wrap { display: contents; }
.bk-official { align-self: center; padding: 0 4px; }
.bk-tick { font-style: normal; display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 4px; border-radius: 50%; background: #fff; color: var(--good); font-size: 10px; font-weight: 800; vertical-align: 1px; }
.cal-head .ev-span.ev-hotel { background: var(--ev-hotel); border: 0; color: #fff; }
#btn-gcal.synced { color: var(--good, #2e9d5b); border-color: currentColor; }
.btn-ghost.logout:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.btn-primary { background: var(--grad); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; box-shadow: 0 6px 18px rgba(255,107,87,0.3); transition: transform .1s, filter .15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; line-height: 1.2; }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; transform: none; }
.btn-primary.sm, .btn-ghost.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-primary.lg, .btn-ghost.lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.link-btn { background: transparent; border: 0; color: var(--accent); font-weight: 700; padding: 6px 0; align-self: center; }
.link-btn:hover { text-decoration: underline; }

/* ===== brand ===== */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand.as-btn { background: transparent; border: 0; padding: 0; }
.brand.small { font-size: 15px; } .brand.small .logo { width: 26px; height: 26px; font-size: 14px; border-radius: 8px; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: #f4f6fb; display: grid; place-items: center; color: #fff; font-size: 18px; box-shadow: var(--shadow-sm); flex: none; overflow: hidden; }
.logo img { width: 82%; height: 82%; object-fit: contain; display: block; }
.brand-ai { color: var(--accent); } .brand-dot { color: var(--muted); font-weight: 500; }

/* ===== public flow (home / auth / dashboard / quiz) ===== */
.planner-app { min-height: 100%; display: flex; flex-direction: column; }
.public-flow { min-height: 100%; overflow-y: auto; background: var(--bg); scroll-behavior: smooth; }
.public-screen { display: none; min-height: 100vh; padding: 0 24px; }
.public-screen.active { display: flex; flex-direction: column; }
.public-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1120px, 100%); margin: 0 auto; padding: 18px 0; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: var(--hover); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

/* home */
.home-screen { position: relative; background: var(--bg); isolation: isolate; }
.home-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,23,.55), rgba(11,14,23,.82) 55%, var(--bg)); }
[data-theme="light"] .home-bg::after { background: linear-gradient(180deg, rgba(244,246,251,.55), rgba(244,246,251,.85) 55%, var(--bg)); }
#destination-photo-credits { width: min(1120px, 100%); margin: 0 auto; padding-bottom: 18px; }
.home-bg { position: absolute; inset: 0 0 auto 0; height: 100vh; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,14,23,.55) 0%, rgba(11,14,23,.82) 55%, var(--bg) 100%), url("../assets/hero.jpg") center 30% / cover no-repeat; }
[data-theme="light"] .home-bg { background: linear-gradient(180deg, rgba(244,246,251,.55) 0%, rgba(244,246,251,.85) 55%, var(--bg) 100%), url("../assets/hero.jpg") center 30% / cover no-repeat; }
.home-screen > :not(.home-bg) { position: relative; }
.home-hero { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 48px; align-items: center; padding: 56px 0 72px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-copy h1 { font-size: clamp(40px, 5.8vw, 68px); line-height: 1.02; }
.hero-copy p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 560px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-panel { border: 1px solid var(--border); border-radius: 20px; background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: blur(16px); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.demo-chat { display: flex; flex-direction: column; gap: 10px; }
.demo-msg { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; max-width: 92%; }
.demo-msg.user { align-self: flex-end; background: var(--user-bubble); color: #fff; border-bottom-right-radius: 5px; }
.demo-msg.ai { align-self: flex-start; background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.demo-day { border: 1px solid var(--border); border-radius: 14px; background: var(--card); overflow: hidden; }
.demo-day-head { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; } .demo-day-head span { color: var(--muted); }
.demo-ev { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 13px; } .demo-ev + .demo-ev { border-top: 1px solid var(--grid-line); }
.demo-ev i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; } .demo-ev span { color: var(--muted); font-variant-numeric: tabular-nums; width: 42px; }
.demo-ev.ev-flight i { color: var(--ev-flight); } .demo-ev.ev-hotel i { color: var(--ev-hotel); } .demo-ev.ev-meal i { color: var(--ev-meal); }
.demo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.demo-stats div { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--card); display: flex; flex-direction: column; gap: 2px; }
.demo-stats b { font-size: 18px; } .demo-stats span { color: var(--muted); font-size: 12px; }

.home-section { width: min(1120px, 100%); margin: 0 auto; padding: 56px 0; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border: 1px solid var(--border); border-radius: 16px; background: var(--bg-2); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.step-n { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; }
.step h3 { font-size: 18px; } .step p { color: var(--muted); line-height: 1.55; font-size: 14px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { border: 1px solid var(--border); border-radius: 16px; background: var(--card); padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-icon { font-size: 24px; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); display: grid; place-items: center; }
.feature h3 { font-size: 16px; } .feature p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.dest-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
/* photo cards + marquee + comparison (home) */
.feature.photo { padding: 0; overflow: hidden; gap: 0; }
.feature-img { aspect-ratio: 16 / 9; background-size: cover; background-position: center; transition: transform .5s ease; }
.feature.photo:hover .feature-img { transform: scale(1.04); }
.feature-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; background: var(--card); position: relative; }
.photo-marquee { width: 100%; overflow: hidden; margin: 8px 0 24px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 14px; width: max-content; animation: mq 70s linear infinite; }
.photo-marquee:hover .mq-track { animation-play-state: paused; }
.mq-tile { width: 220px; height: 150px; border-radius: 16px; background-size: cover; background-position: center; box-shadow: var(--shadow-sm); flex: none; }
.mq-tile:nth-child(odd) { height: 170px; margin-top: -10px; }
@keyframes mq { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
.cmp th, .cmp td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.cmp thead th.us { color: var(--accent); font-size: 15px; }
.cmp td:first-child { font-weight: 600; color: var(--text); width: 28%; }
.cmp td.us { background: color-mix(in srgb, var(--accent) 7%, transparent); font-weight: 600; }
.cmp td.y::before, .cmp td.n::before, .cmp td.m::before { display: inline-block; width: 16px; font-weight: 800; }
.cmp td.y::before { content: "✓"; color: #16a34a; } .cmp td.n::before { content: "✕"; color: #dc2626; } .cmp td.m::before { content: "–"; color: var(--muted); }
.cmp td.n, .cmp td.m { color: var(--muted); }
.cmp-note { margin-top: 10px; }
.dest-tile { position: relative; aspect-ratio: 3 / 4; border: 0; border-radius: 16px; background-size: cover; background-position: center; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 14px; overflow: hidden; text-align: left; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.dest-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.8)); }
.dest-tile > * { position: relative; } .dest-tile b { font-size: 17px; } .dest-tile span { font-size: 12px; opacity: .85; }
.dest-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.home-cta { position: relative; width: min(1120px, 100%); margin: 0 auto 40px; padding: 64px 32px; border-radius: 24px; background-size: cover; background-position: center; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: var(--shadow); overflow: hidden; isolation: isolate; }
.home-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,107,87,.85), rgba(139,92,246,.75)); z-index: -1; }
.home-cta h2 { font-size: clamp(26px, 3.2vw, 36px); } .home-cta p { opacity: .92; max-width: 520px; line-height: 1.5; }
.home-cta .btn-primary { background: #fff; color: #c8412d; margin-top: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.public-footer { width: min(1120px, 100%); margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }

/* centered card screens: intro / auth / quiz */
.card-screen { position: relative; align-items: center; justify-content: center; padding: 24px; background: var(--bg); isolation: isolate; }
.screen-photo { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.card-screen::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,14,23,.72), rgba(11,14,23,.9)); }
[data-theme="light"] .card-screen::after { background: linear-gradient(180deg, rgba(244,246,251,.72), rgba(244,246,251,.9)); }
.public-card { width: min(520px, 100%); border: 1px solid var(--border); border-radius: 20px; background: color-mix(in srgb, var(--bg-2) 94%, transparent); backdrop-filter: blur(18px); box-shadow: var(--shadow); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.public-card h2 { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.public-card > p, .public-card p.muted { color: var(--muted); line-height: 1.55; font-size: 15px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.intro-steps { display: grid; gap: 10px; }
.intro-steps div { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--card); display: flex; align-items: center; gap: 12px; font-weight: 600; }
.intro-steps b { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.auth-card { gap: 14px; }
.auth-card h2 { margin-bottom: 6px; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.auth-card input { background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 13px; color: var(--text); font: inherit; font-size: 15px; }
.auth-card input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.google-btn { width: 100%; padding: 11px 14px; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.auth-error { min-height: 18px; color: var(--bad) !important; font-size: 13px; }
.auth-error:empty { display: none; }
.auth-card .btn-primary { padding: 12px 18px; }

/* vacations dashboard */
.public-screen.vacation-screen { background: var(--bg); position: relative; padding-left: 100px; }
.app-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 76px; height: 100vh; box-sizing: border-box; z-index: 20; display: flex; flex-direction: column; padding: 18px 12px; background: color-mix(in srgb, var(--bg-2) 88%, transparent); border-right: 1px solid var(--border); backdrop-filter: blur(18px); transition: width .22s ease; overflow: hidden; }
.app-sidebar:hover, .app-sidebar:focus-within { width: 238px; }
.sidebar-brand { display:flex; align-items:center; gap:12px; color:var(--text); text-decoration:none; padding:0 8px 24px; white-space:nowrap; cursor:default; user-select:none; }
.brand#brand-home { cursor:pointer; user-select:none; transition: opacity .15s, transform .12s ease; }
.brand#brand-home:hover { opacity:.85; } .brand#brand-home:active { transform: scale(.97); }
.sidebar-brand .logo { flex:none; }
.sidebar-wordmark { opacity:0; transform:translateX(-8px); transition:.2s; font-weight:700; font-size:18px; }
.app-sidebar:hover .sidebar-wordmark, .app-sidebar:focus-within .sidebar-wordmark { opacity:1; transform:none; }
.sidebar-nav, .sidebar-bottom { display:flex; flex-direction:column; gap:6px; }
.sidebar-bottom { margin-top:auto; }
.sidebar-link { width:100%; display:flex; align-items:center; gap:14px; padding:11px 12px; border:0; border-radius:11px; background:transparent; color:var(--muted); font:inherit; cursor:pointer; text-align:left; white-space:nowrap; }
.sidebar-link span { width:28px; flex:none; text-align:center; font-size:19px; }
.sidebar-link b { opacity:0; transition:.15s; font-size:13px; }
.app-sidebar:hover .sidebar-link b, .app-sidebar:focus-within .sidebar-link b { opacity:1; }
.sidebar-link:hover, .sidebar-link.active { color:var(--text); background:var(--accent-soft); }
.sidebar-logout:hover { color:var(--bad); background:var(--bad-soft); }
.dashboard-topbar { justify-content: flex-end; }
.mobile-brand { display:none; }
/* Telegram-style doodle wallpaper: the SVG tile is used as a mask so its colour follows the theme; a second copy drifts slowly for depth. */
.vacation-hero { position: absolute; inset: 0 0 auto 0; height: 460px; z-index: 0; pointer-events: none; overflow: hidden; }
/* Telegram-style doodle wallpaper below the photo: the SVG tile is a mask so its colour follows the theme; fully transparent over the photo, fades in where the photo fades out. */
.vacation-pattern { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 300px, #000 460px); mask-image: linear-gradient(180deg, transparent 300px, #000 460px); }
.vacation-pattern::before, .vacation-pattern::after { content: ""; position: absolute; inset: -600px; background: linear-gradient(160deg, #ff7a59, #ffb26b 45%, #7ac7ff); -webkit-mask: url("../assets/pattern-travel-ai-mask.png") 0 0 / 432px 288px repeat; mask: url("../assets/pattern-travel-ai-mask.png") 0 0 / 432px 288px repeat; opacity: .26; will-change: transform; animation: patternDrift 28s linear infinite; }
/* second, larger and fainter copy drifting the other way = floating depth */
.vacation-pattern::after { -webkit-mask-size: 648px 432px; mask-size: 648px 432px; -webkit-mask-position: 216px 144px; mask-position: 216px 144px; opacity: .1; animation: patternDriftBack 46s linear infinite; }
[data-theme="light"] .vacation-pattern::before { background: linear-gradient(160deg, #e0552f, #f28a3e 45%, #2f7fd6); opacity: .24; }
[data-theme="light"] .vacation-pattern::after { background: linear-gradient(160deg, #e0552f, #f28a3e 45%, #2f7fd6); opacity: .09; }
@keyframes patternDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(432px, 288px, 0); } }
@keyframes patternDriftBack { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-648px, 432px, 0); } }
/* ----- alternative home backgrounds (js/home-bg.js); the doodle ::before only shows for data-bg="doodles" ----- */
.vacation-pattern:not([data-bg="doodles"])::before, .vacation-pattern:not([data-bg="doodles"])::after { display: none; }
.vacation-pattern > * { position: absolute; inset: 0; width: 100%; height: 100%; }
/* dotted globe (canvas) */
.hb-globe { opacity: 1; }
.vacation-pattern[data-bg="globe"] { -webkit-mask-image: linear-gradient(180deg, transparent 220px, #000 380px); mask-image: linear-gradient(180deg, transparent 220px, #000 380px); }
/* switcher: Dotted globe ↔ Doodles */
.homebg-switch { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 4px; background: var(--card-solid); border: 1px solid var(--border); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; }
.homebg-switch span { min-width: 140px; text-align: center; }
.homebg-switch button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--text); font-size: 18px; cursor: pointer; }
.homebg-switch button:hover { background: var(--hover); }
.public-screen:not(.vacation-screen) .homebg-switch, .vacation-screen:not(.active) .homebg-switch { display: none; }
@media (prefers-reduced-motion: reduce) { .vacation-pattern::before, .vacation-pattern::after { animation-duration: 120s; } }
.vacation-hero .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; will-change: transform, opacity; }
.vacation-hero .slide.on { opacity: 1; }
.vacation-hero .slide.zooming { animation: kenBurns 18s ease-in-out both; }
@keyframes kenBurns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.vacation-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,23,.5) 0%, rgba(11,14,23,.15) 30%, rgba(11,14,23,.4) 60%, var(--bg) 100%); }
[data-theme="light"] .vacation-hero::after { background: linear-gradient(180deg, rgba(244,246,251,.45) 0%, rgba(244,246,251,.1) 30%, rgba(244,246,251,.45) 60%, var(--bg) 100%); }
@media (prefers-reduced-motion: reduce) { .vacation-hero .slide.zooming { animation: none; } }
#profile-strip { display: none; }
.vacation-screen > :not(.app-sidebar):not(.vacation-hero):not(.vacation-pattern):not(.homebg-switch) { position: relative; z-index: 1; }
.vacation-screen .vacation-head .display, .vacation-screen .vacation-head .muted, .vacation-screen .public-nav .brand-name { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
[data-theme="light"] .vacation-screen .vacation-head .display, [data-theme="light"] .vacation-screen .vacation-head .muted, [data-theme="light"] .vacation-screen .public-nav .brand-name { text-shadow: 0 1px 12px rgba(255,255,255,.8); }
.vacation-shell { width: min(1120px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding: 16px 0 48px; }
.vacation-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.vacation-head > div:first-child { padding: 14px 18px 12px; margin-left: -18px; border-radius: 18px; background: rgba(11,14,23,.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08); }
[data-theme="light"] .vacation-head > div:first-child { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.6); }
.vacation-head h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 8px 0 6px; letter-spacing: -0.02em; }
.vacation-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* Controls that sit on top of the hero photo need a solid frosted backing, not the translucent card tint. */
.vacation-screen .dashboard-topbar .btn-ghost, .vacation-screen .dashboard-topbar .user-chip, .vacation-screen .vacation-actions .btn-ghost { background: rgba(17,21,39,.88); border-color: rgba(255,255,255,.18); color: var(--text); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.vacation-screen .dashboard-topbar .btn-ghost:hover, .vacation-screen .vacation-actions .btn-ghost:hover { background: rgba(28,34,58,.96); border-color: rgba(255,255,255,.32); }
[data-theme="light"] .vacation-screen .dashboard-topbar .btn-ghost, [data-theme="light"] .vacation-screen .dashboard-topbar .user-chip, [data-theme="light"] .vacation-screen .vacation-actions .btn-ghost { background: rgba(255,255,255,.9); border-color: rgba(16,24,48,.14); box-shadow: 0 4px 14px rgba(16,24,48,.12); }
[data-theme="light"] .vacation-screen .dashboard-topbar .btn-ghost:hover, [data-theme="light"] .vacation-screen .vacation-actions .btn-ghost:hover { background: #ffffff; border-color: rgba(16,24,48,.28); }
.vacation-screen .vacation-actions .btn-primary { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.12); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 13px; color: var(--muted); max-width: 240px; }
.user-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.profile-strip { border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); padding: 12px 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.profile-strip span { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; margin-right: 4px; }
.profile-strip b { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; }
.profile-strip b.trait { background: var(--chip-bg); color: var(--text); }
.profile-strip .link-btn { margin-left: auto; padding: 0; }
.vacation-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.vacation-card { text-align: left; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-2); color: var(--text); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.vacation-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.vacation-card.current { border-color: var(--accent); }
.vc-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #334, #223) center / cover; position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding: 10px; }
.vc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), transparent 40%, rgba(0,0,0,.35)); pointer-events: none; }
.vc-img > * { position: relative; z-index: 1; }
.vc-status { background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; }
.vc-status { font-size: 13px; padding: 6px 13px; letter-spacing: .07em; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.vc-status.planned { background: #3f9b6f; color: #0f3d26; backdrop-filter: none; }
.vc-status.progress { background: var(--grad, var(--accent)); color: #fff; backdrop-filter: none; }
.vc-current { margin-left: auto; margin-right: 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.vc-del { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 13px; opacity: 0; transition: opacity .15s, background .15s; }
.vacation-card:hover .vc-del, .vc-del:focus-visible { opacity: 1; } .vc-del:hover { background: var(--bad); }
.vc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.vc-body b { font-size: 20px; letter-spacing: -0.01em; font-family: "Fraunces", Georgia, serif; font-weight: 600; }
.vc-body em { color: var(--muted); font-style: normal; font-size: 14px; }
.vc-body small { margin-top: 6px; color: var(--muted); font-size: 12px; }
.empty-vacations { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; gap: 10px; background: rgba(17,21,39,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
[data-theme="light"] .empty-vacations { background: rgba(255,255,255,.72); border-color: rgba(16,24,48,.12); }
.empty-vacations .big { font-size: 40px; }
.empty-vacations h2 { font-size: 26px; letter-spacing: -0.01em; } .empty-vacations p { color: var(--muted); max-width: 400px; font-size: 15px; } .empty-vacations .btn-primary { margin-top: 8px; }
.empty-vacations .kicker { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* quiz */
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quiz-meta { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.quiz-bar { height: 5px; border-radius: 999px; background: var(--chip-bg); overflow: hidden; max-width: 260px; }
.quiz-bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .3s ease; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-choice { min-height: 160px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); color: var(--text); padding: 0; overflow: hidden; text-align: left; display: flex; flex-direction: column; gap: 0; transition: transform .15s, border-color .15s, background .15s, box-shadow .15s; }
.quiz-choice .qc-img { display: block; aspect-ratio: 16/10; background-size: cover; background-position: center; transition: transform .35s ease; }
.quiz-choice:hover .qc-img { transform: scale(1.04); }
.quiz-choice .qc-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.quiz-choice:hover { box-shadow: var(--shadow); }
.quiz-card { width: min(760px, 100%); }
.quiz-choice em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--accent); background: var(--accent-soft); border-radius: 8px; width: 28px; height: 28px; display: grid; place-items: center; }
.quiz-choice:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--accent-soft); }
.quiz-choice b { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }

/* ===== planner top bar ===== */
.planner-app { position: relative; isolation: isolate; }
.trip-bg { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.trip-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, transparent), color-mix(in srgb, var(--bg) 94%, transparent) 40%, var(--bg) 100%); }
.planner-app.has-trip .bubble { backdrop-filter: blur(8px); }
.planner-app.has-trip .topbar { background: color-mix(in srgb, var(--topbar) 70%, transparent); }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--topbar); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; min-height: 58px; }
.tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-left: 8px; flex: none; }
.tab { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--tab-active-bg); color: var(--text); }
.badge { background: var(--accent); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.trip-chip { font-size: 13px; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; min-width: 0; flex: 0 1 auto; }
.topbar-right { flex: none; }
.trip-chip b { color: var(--text); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-group { display: flex; gap: 4px; padding: 0 4px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.ai-status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; padding-right: 4px; }
.ai-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.ai-status.on i { background: var(--good); box-shadow: 0 0 8px var(--good); } .ai-status.error i { background: var(--bad); }

/* ===== toast ===== */
.toast { position: fixed; left: 50%; top: 72px; transform: translate(-50%, -12px); background: var(--card-solid); color: var(--text); border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 16px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* views */
.view { display: none; flex: 1; min-height: 0; }
.view.active { display: flex; flex-direction: column; }

/* ===== chat ===== */
.chat-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; max-width: 1080px; width: 100%; margin: 0 auto; padding: 0 16px; min-width: 0; }
.ai-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent); font-size: 13px; line-height: 1.4; }
.messages { flex: 1; overflow-y: auto; padding: 22px 4px 12px; display: flex; flex-direction: column; gap: 18px; scroll-behavior: smooth; }
.msg { display: flex; gap: 12px; align-items: flex-start; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.user { justify-content: flex-end; }
.msg .avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; font-size: 16px; box-shadow: var(--shadow-sm); }
.bubble-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 100%; flex: 1; }
.msg.user .bubble-col { flex: 0 1 auto; max-width: 70%; align-items: flex-end; }
.bubble { padding: 12px 16px; border-radius: 16px; line-height: 1.5; font-size: 15px; background: var(--ai-bubble); border: 1px solid var(--border); box-shadow: var(--shadow-sm); max-width: 760px; }
.msg.user .bubble { background: var(--user-bubble); color: #fff; border: 0; border-bottom-right-radius: 6px; }
.msg.ai .bubble { border-bottom-left-radius: 6px; }
.bubble ul { margin: 6px 0; padding-left: 20px; }
.bubble strong { font-weight: 700; }
.typing .bubble { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.dots { display: inline-flex; gap: 4px; } .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .4; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .3; transform: scale(.9);} 40% { opacity: 1; transform: scale(1.1);} }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--chip-bg); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; transition: all .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.composer { display: flex; gap: 10px; padding: 12px 0 6px; border-top: 1px solid var(--border); }
.composer textarea { flex: 1; resize: none; background: var(--input-bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; color: var(--text); font: inherit; font-size: 15px; outline: none; max-height: 160px; line-height: 1.4; }
.composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* hold-to-talk mic */
.btn-mic { position: relative; flex: 0 0 auto; width: 46px; align-self: stretch; min-height: 44px; border-radius: 14px; border: 1px solid var(--border); background: var(--input-bg); color: var(--muted); display: grid; place-items: center; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: color .15s, background .15s, border-color .15s, transform .12s; }
.btn-mic:hover { color: var(--accent); border-color: var(--accent); }
.btn-mic svg { position: relative; z-index: 1; }
.btn-mic.unsupported { opacity: .5; }
.btn-mic .mic-ring { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; }
.btn-mic.rec { color: #fff; background: var(--bad); border-color: var(--bad); transform: scale(1.06); }
.btn-mic.rec .mic-ring { animation: micPulse 1.2s ease-out infinite; }
.btn-mic.handsfree { background: var(--accent); border-color: var(--accent); }
@keyframes micPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.composer textarea.listening { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
/* personalization tip under each reply */
.reply-tip { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 12px; max-width: 560px; border-radius: 12px; background: var(--accent-soft); color: var(--muted); font-size: 13px; line-height: 1.45; }
.reply-tip .tip-ico { color: var(--accent); font-size: 12px; line-height: 1.6; }
.data-status { font-size: 11px; color: var(--muted); text-align: center; padding: 4px 0 10px; }

/* cards */
.cards { max-width: 100%; min-width: 0; }
.card-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.card-col { display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--card-solid); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-img { aspect-ratio: 16/10; background-size: cover; background-position: center; position: relative; }
.card-img-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; display: flex; flex-direction: column; }
.card-img-title b { font-size: 16px; } .card-img-title span { font-size: 12px; opacity: .85; }
.pill { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(6px); }
.pill.right { left: auto; right: 8px; } .pill.accent { background: var(--accent); } .pill.good { background: var(--good); color: #062; } .pill.bad { background: var(--bad); }
.pill.photo-real { top: auto; bottom: 8px; left: 8px; background: rgba(0,0,0,.55); font-weight: 600; }
.photo-credit { font-size: 11px; color: var(--muted); } .photo-credit a { color: var(--muted); } .photo-credit a:hover { color: var(--text); text-decoration: underline; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.card-body p { margin: 0; color: var(--muted); line-height: 1.4; }
.meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; } .meta b { color: var(--text); font-size: 14px; }
.dest-card { cursor: pointer; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.hc-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .hc-title b { font-size: 15px; }
.stars { color: var(--warn); font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.rating { color: var(--good); }
.amen { display: flex; flex-wrap: wrap; gap: 5px; } .amen span { background: var(--chip-bg); border-radius: 6px; padding: 2px 7px; font-size: 11px; color: var(--muted); }

/* venue (activity / restaurant) photo catalog cards */
.venue-card { cursor: pointer; }
.venue-card .clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-img.ph, .gallery .main.ph { display: grid; place-items: center; }
.ph-activity[data-i="0"], .ph-activity.main { background: linear-gradient(135deg, #f7b267, #f4845f); }
.ph-activity[data-i="1"] { background: linear-gradient(135deg, #7bdff2, #b2f7ef); }
.ph-activity[data-i="2"] { background: linear-gradient(135deg, #cdb4db, #ffafcc); }
.ph-activity[data-i="3"] { background: linear-gradient(135deg, #a8e6cf, #dcedc1); }
.ph-activity[data-i="4"] { background: linear-gradient(135deg, #ffd6a5, #fdffb6); }
.ph-activity[data-i="5"] { background: linear-gradient(135deg, #9bf6ff, #bdb2ff); }
.ph-restaurant[data-i="0"], .ph-restaurant.main { background: linear-gradient(135deg, #e07a5f, #f2cc8f); }
.ph-restaurant[data-i="1"] { background: linear-gradient(135deg, #81b29a, #f4f1de); }
.ph-restaurant[data-i="2"] { background: linear-gradient(135deg, #3d405b, #81b29a); }
.ph-restaurant[data-i="3"] { background: linear-gradient(135deg, #f2cc8f, #e07a5f); }
.ph-restaurant[data-i="4"] { background: linear-gradient(135deg, #ffb4a2, #e5989b); }
.ph-restaurant[data-i="5"] { background: linear-gradient(135deg, #b5838d, #6d6875); }
.ph-icon { font-size: 40px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); } .ph-icon.big { font-size: 64px; }
.gallery.solo { grid-template-columns: 1fr; } .gallery.solo .main { aspect-ratio: 16/9; }

.flight-card { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(230px, 2fr) minmax(170px, 1fr); gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; }
.flight-card.tagged { border-color: var(--border-strong); }
.fc-left { display: flex; gap: 10px; align-items: center; min-width: 0; } .fc-left b { font-size: 14px; }
.airline-dot { width: 38px; height: 38px; border-radius: 10px; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.fc-mid { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.time { display: flex; flex-direction: column; } .time b { font-size: 17px; } .time span { font-size: 12px; color: var(--muted); }
.route { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.route .line { width: 100%; height: 2px; background: var(--border-strong); position: relative; display: flex; justify-content: space-between; align-items: center; }
.route .line i { width: 7px; height: 7px; border-radius: 50%; background: var(--text); } .route .line i.stop { background: var(--accent); }
.fc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.fc-right .price { font-size: 20px; }
.tag { background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.fc-right .actions { justify-content: flex-end; }

.day-row { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.day-card ul { list-style: none; margin: 0; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.day-card li { display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; align-items: baseline; padding-left: 8px; border-left: 3px solid var(--border); }
.day-card li:has(.li-thumb) { grid-template-columns: 30px 62px 1fr auto; align-items: center; }
.li-thumb { width: 30px; height: 30px; border-radius: 7px; background-size: cover; background-position: center; flex: none; display: block; }
.day-strip { display: grid; gap: 3px; height: 92px; }
.day-strip.n1 { grid-template-columns: 1fr; } .day-strip.n2 { grid-template-columns: 1fr 1fr; } .day-strip.n3 { grid-template-columns: 1.6fr 1fr 1fr; }
.day-strip div { background-size: cover; background-position: center; }
.ed-photo { aspect-ratio: 16 / 7; border-radius: 12px; background-size: cover; background-position: center; margin: 4px 0 0; }
.side-item .thumb.real { box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.day-card li .t { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; } .day-card li .c { color: var(--muted); font-size: 11px; }
.day-card li.ev-flight { border-color: var(--ev-flight);} .day-card li.ev-hotel { border-color: var(--ev-hotel);} .day-card li.ev-activity { border-color: var(--ev-activity);} .day-card li.ev-meal { border-color: var(--ev-meal);}
.day-card li.free { border-color: transparent; color: var(--muted); }
.day-head { padding: 10px 12px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: baseline; } .day-head span { font-size: 12px; color: var(--muted); }
.open-schedule { margin-top: 10px; }

.budget-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.bc-head { display: flex; align-items: baseline; gap: 10px; } .bc-head b { font-size: 24px; } .bc-head span { color: var(--muted); font-size: 13px; }
.bar { height: 10px; border-radius: 999px; background: var(--chip-bg); display: flex; overflow: hidden; } .bar i { display: block; height: 100%; }
.s0 { background: var(--ev-flight);} .s1 { background: var(--ev-hotel);} .s2 { background: var(--ev-activity);} .s3 { background: var(--ev-meal);}
.bc-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13px; } .bc-rows div { display: flex; align-items: center; gap: 6px; } .bc-rows b { margin-left: auto; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.research-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.research-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.research-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.research-head b { font-size: 15px; }
.research-head span:not(.tag) { color: var(--muted); font-size: 12px; }
.research-card p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 13px; }
.research-results { display: grid; gap: 8px; }
.research-result { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.research-result:hover { border-color: var(--border-strong); background: var(--hover); }
.research-result b { font-size: 14px; }
.research-result span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.research-result em { color: var(--accent); font-size: 12px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.research-actions { margin-top: 0; }

/* ===== schedule ===== */
#view-schedule { padding: 14px 18px 12px; gap: 12px; overflow: hidden; min-width: 0; }
.sched-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.sched-head h2 { font-size: 22px; } .sched-actions { display: flex; gap: 8px; }
.sched-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; flex: 1; min-height: 0; min-width: 0; }
.sched-main { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.sched-aside { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; }
.sched-aside h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 8px; }
.side-item { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-bottom: 8px; font-size: 13px; }
.side-item.hotel { cursor: pointer; } .side-item .thumb { width: 54px; height: 44px; border-radius: 8px; background-size: cover; background-position: center; flex: none; }
.tips { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.cal-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 40px; }
.cal-empty .big { font-size: 48px; } .cal-empty h3 { color: var(--text); } .cal-empty p { max-width: 420px; margin: 0 0 8px; }
.cal-wrap { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.cal-grid { --cols: 7; min-width: calc(56px + var(--cols) * 118px); }
.cal-weeknav { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.cal-weeknav b { font-size: 18px; font-weight: 600; margin-left: 6px; }
.wk-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.wk-arrow:hover { background: var(--bg-3, var(--bg)); }
.day-h.off { opacity: .45; }
.day-col.off { background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--grid-line) 55%, transparent) 8px 9px); }
.cal-grid.wide { min-width: calc(56px + var(--cols) * 104px); }
.cal-head { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(0, 1fr)); position: sticky; top: 0; background: var(--bg-2); z-index: 3; border-bottom: 1px solid var(--border); }
.day-h { padding: 10px 8px; text-align: center; border-left: 1px solid var(--grid-line); display: flex; flex-direction: column; gap: 2px; }
.day-h span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .day-h b { font-size: 14px; font-weight: 600; } .day-h em { font-style: normal; font-size: 20px; font-weight: 800; }
.day-h.today em { background: var(--accent); color: #fff; border-radius: 50%; padding: 2px 6px; }
.cal-body { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(0, 1fr)); position: relative; }
.cal-body .gutter { position: relative; } .cal-body .hr { position: absolute; right: 8px; transform: translateY(-7px); font-size: 11px; color: var(--muted); }
.day-col { position: relative; border-left: 1px solid var(--grid-line); min-width: 0; }
.hline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--grid-line); }
.ev { position: absolute; border-radius: 8px; padding: 4px 7px; font-size: 12px; overflow: hidden; cursor: grab; border-left: 4px solid; box-shadow: var(--shadow-sm); user-select: none; touch-action: none; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.ev b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ev span { font-size: 11px; opacity: .8; }
.ev.dragging { opacity: .85; z-index: 10; box-shadow: var(--shadow); cursor: grabbing; }
.bc-note { margin: 2px 0 6px; }

/* ---- click-to-zoom card ---- */
.cards.hotel .card, .cards.livehotel .card, .cards.venue .card, .cards.discover .card, .cards.tripadvisor .card { cursor: zoom-in; }
body.cz-lock { overflow: hidden; }
.cz { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 3vh 3vw; background: var(--overlay); backdrop-filter: blur(6px); }
.cz.open { display: flex; }
.cz-card { position: relative; width: min(1180px, 100%); max-height: 94vh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); background: var(--card-solid, var(--bg-2)); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.cz-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; cursor: pointer; }
.cz-gallery { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #000; min-height: 0; }
.cz-main { position: relative; flex: 1; min-height: 360px; border-radius: 14px; overflow: hidden; }
.cz-img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: czfade .25s ease; }
@keyframes czfade { from { opacity: .3; } to { opacity: 1; } }
.cz-ph { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); } .cz-ph span { font-size: 64px; } .cz-ph small { opacity: .8; }
.cz-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; } .cz-nav:hover { background: rgba(0,0,0,.75); }
.cz-nav.prev { left: 12px; } .cz-nav.next { right: 12px; }
.cz-count { position: absolute; bottom: 12px; right: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.cz-thumbs { display: flex; gap: 8px; overflow-x: auto; } .cz-thumbs:empty { display: none; }
.cz-thumb { flex: 0 0 92px; height: 64px; border-radius: 10px; background-size: cover; background-position: center; cursor: pointer; opacity: .6; outline: 2px solid transparent; transition: opacity .15s; }
.cz-thumb:hover { opacity: .9; } .cz-thumb.on { opacity: 1; outline-color: var(--accent); }
.cz-body { padding: 26px 26px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.cz-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-right: 40px; } .cz-title h2 { font-size: 28px; line-height: 1.15; margin: 0; }
.cz-price { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); } .cz-price b { font-size: 26px; } .cz-price b small { font-size: 14px; font-weight: 500; color: var(--muted); } .cz-price span { font-size: 13px; color: var(--muted); }
.cz-addr { font-size: 14px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; } .cz-addr a { color: var(--accent); font-size: 13px; }
.cz-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0; } .cz-facts div { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; } .cz-facts dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .cz-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.cz-body p { margin: 0; line-height: 1.55; }
.cz-map { width: 100%; height: 180px; border: 0; border-radius: 14px; background: var(--border); flex: none; }
.cz-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
@media (max-width: 820px) { .cz { padding: 0; } .cz-card { grid-template-columns: 1fr; max-height: 100vh; height: 100%; border-radius: 0; overflow-y: auto; } .cz-main { min-height: 260px; flex: none; height: 42vh; } .cz-body { overflow: visible; } }
/* tentative = added/booked from a card but not confirmed yet: dashed, translucent */
.ev.tentative { border-style: dashed; border-width: 1px 1px 1px 4px; opacity: .78; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.05) 6px 12px); }
.ev.tentative:hover { opacity: 1; }
i.tent { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .02em; padding: 0 5px; border-radius: 6px; border: 1px dashed currentColor; opacity: .9; }
.ev-flight { background: color-mix(in srgb, var(--ev-flight) 22%, var(--bg-2)); border-color: var(--ev-flight); }
.ev-hotel { background: color-mix(in srgb, var(--ev-hotel) 22%, var(--bg-2)); border-color: var(--ev-hotel); }
.ev-activity { background: color-mix(in srgb, var(--ev-activity) 22%, var(--bg-2)); border-color: var(--ev-activity); }
.ev-meal { background: color-mix(in srgb, var(--ev-meal) 24%, var(--bg-2)); border-color: var(--ev-meal); }
.sched-aside .budget-card { max-width: none; }

/* ===== sheet / modal ===== */
.sheet { position: fixed; inset: 0; background: var(--overlay); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; backdrop-filter: blur(4px); }
.sheet.open { display: flex; }
.sheet-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; width: min(760px, 100%); max-height: 92vh; overflow-y: auto; position: relative; box-shadow: var(--shadow); animation: rise .2s ease; }
.sheet-card.small { width: min(560px, 100%); }
.sheet .close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; z-index: 2; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; height: 300px; padding: 6px; }
.gallery.wide { height: 340px; }
.gallery .main, .gallery .thumbs div { background-size: cover; background-position: center; border-radius: 14px; position: relative; }
.gallery .thumbs div { cursor: zoom-in; transition: filter .15s; } .gallery .thumbs div:hover { filter: brightness(1.08); }
.gallery .pill { top: 8px; left: 8px; }
.gallery .thumbs { display: grid; gap: 6px; }
.sheet-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.sheet-body h3 { font-size: 22px; }
.price-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-box b { font-size: 22px; } .price-box .pill { position: static; margin-left: 8px; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tip { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin: 0; font-size: 14px; }
.edit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.edit-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.edit-row label:first-child, .edit-row label:last-child { grid-column: 1 / -1; }
.edit-row input, .edit-row select { background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; color: var(--text); font: inherit; font-size: 14px; }
.sheet-body h4 { margin-top: 8px; }

/* responsive */
@media (max-width: 1250px) {
  .sched-layout { grid-template-columns: minmax(0, 1fr) 250px; }
  .flight-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fc-right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; text-align: left; gap: 8px; }
  .fc-right .actions { margin: 0; }
}
@media (max-width: 1000px) {
  .sched-layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .sched-aside { flex-direction: row; flex-wrap: wrap; gap: 10px 18px; max-height: 32vh; }
  .sched-aside > div { flex: 1 1 260px; } .sched-aside h4 { margin-top: 6px; }
  .tabs .tab { padding: 8px 10px; } .trip-chip { display: none; }
  .ai-status { display: none; }
  .home-hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 56px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .dest-strip { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .flight-card { grid-template-columns: 1fr; } .fc-mid { grid-template-columns: auto 1fr auto; }
  .msg.user .bubble-col { max-width: 90%; } .bubble { font-size: 14px; }
  .public-screen { padding: 0 16px; }
  .public-nav { padding: 14px 0; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy p { font-size: 16px; }
  .hero-actions, .card-actions, .vacation-actions { width: 100%; }
  .hero-actions > *, .card-actions > *, .vacation-actions > * { flex: 1; }
  .home-section { padding: 40px 0; }
  .steps, .features, .quiz-options { grid-template-columns: 1fr; }
  .dest-strip { grid-template-columns: repeat(2, 1fr); }
  .home-cta { padding: 36px 20px; }
  .quiz-choice { min-height: 110px; } .quiz-choice .qc-img { aspect-ratio: 16/7; }
  .public-card { padding: 22px; }
  .user-chip span:last-child { display: none; } .user-chip { padding-right: 4px; }
  .topbar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .tabs { margin-left: 0; order: 3; width: 100%; } .tabs .tab { flex: 1; justify-content: center; }
  .topbar-right { margin-left: auto; }
  #btn-new span, #btn-vacations { display: none; }
  .brand-name { display: none; } .topbar .brand-name { display: none; }
  .gallery { grid-template-columns: 1fr; height: 220px; } .gallery .thumbs { display: none; }
  .sched-head { align-items: flex-start; } .sched-actions { width: 100%; } .sched-actions > * { flex: 1; justify-content: center; }
  .edit-row { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .composer, .sched-actions, .sched-aside, .data-status, .toast { display: none !important; }
  body { overflow: visible; } .view { display: none !important; } #view-schedule { display: flex !important; }
  .cal-wrap { overflow: visible; border: 0; }
}

/* ============ Polish layer — small, subtle refinements ============ */
html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }
::selection { background: rgba(255,107,87,.28); color: inherit; }
[data-theme="light"] ::selection { background: rgba(240,85,63,.22); }
p, .muted, .bubble, .step p, .feature p { text-wrap: pretty; }
h1, h2, h3, .display { text-wrap: balance; }

/* Keyboard focus: one consistent, soft accent ring */
:where(button, a, input, textarea, select, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }

/* Buttons: tactile press, softer hover glow, gentle top highlight */
.btn-primary { position: relative; letter-spacing: .005em; box-shadow: 0 6px 18px rgba(255,107,87,.28), inset 0 1px 0 rgba(255,255,255,.22); transition: transform .12s ease, box-shadow .2s ease, filter .15s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255,107,87,.34), inset 0 1px 0 rgba(255,255,255,.26); filter: brightness(1.04); }
.btn-primary:active { transform: translateY(0) scale(.985); box-shadow: 0 3px 10px rgba(255,107,87,.28); filter: brightness(.98); }
.btn-ghost { transition: background .15s, border-color .15s, transform .12s ease, box-shadow .15s; }
.btn-ghost:active { transform: scale(.975); }
.chip:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.chip:active { transform: translateY(0) scale(.97); }

/* Public nav: frosted bar so it reads as a real header when the hero photo sits behind it */
#screen-home .public-nav { position: sticky; top: 0; z-index: 30; padding: 12px 18px; margin-top: 8px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--bg-2) 72%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow-sm); }
.nav-links a { transition: color .15s, background .15s; }
.brand .logo, .sidebar-brand .logo { box-shadow: 0 4px 12px rgba(255,107,87,.35), inset 0 1px 0 rgba(255,255,255,.3); }

/* Hero: a touch more contrast on the headline and a calmer sub-copy measure */
.hero-copy h1 { text-shadow: 0 1px 0 rgba(0,0,0,.04); }
.hero-copy p { max-width: 540px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-panel { box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04) inset; }

/* Cards: consistent lift + soft border glow on hover */
.step, .feature { transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.step:hover, .feature:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.step-n { box-shadow: inset 0 0 0 1px rgba(255,107,87,.25); }
.feature-icon { transition: transform .18s ease, background .18s; }
.feature:hover .feature-icon { transform: translateY(-2px) rotate(-4deg); background: var(--accent-soft); }

/* Destination tiles: subtle zoom on the photo, cleaner label, sheen line at the top */
.dest-tile { transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease; isolation: isolate; }
.dest-tile::before { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, transparent 35%, rgba(0,0,0,.82) 100%); transition: opacity .22s; }
.dest-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.dest-tile:hover { transform: translateY(-4px) scale(1.012); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.dest-tile b { text-shadow: 0 1px 8px rgba(0,0,0,.5); letter-spacing: -0.01em; }
.dest-tile span { text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* CTA band: gentle depth so it doesn't read as flat paint */
.home-cta { box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08) inset; }
.home-cta h2 { text-shadow: 0 2px 14px rgba(0,0,0,.18); }
.home-cta .btn-primary:hover { filter: none; background: #fff; box-shadow: 0 12px 26px rgba(0,0,0,.22); }

/* Section rhythm */
.home-section { padding: 64px 0; }
.home-section .eyebrow + h2, .section-head h2 { margin-top: 6px; }
.public-footer { color: var(--muted); }

/* Dashboard */
.vacation-list .card:hover, .vc:hover { transform: translateY(-3px); }
.vc-img { transition: filter .2s ease; } .vc:hover .vc-img { filter: saturate(1.08) brightness(1.03); }
.empty-vacations h2 { background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--text) 70%, var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Planner: softer bubbles, crisper composer */
.msg.ai .bubble { box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.04); }
.msg.user .bubble { box-shadow: 0 6px 16px rgba(255,107,87,.22); }
.composer textarea { transition: border-color .15s, box-shadow .15s, background .15s; }
.composer textarea:focus { background: color-mix(in srgb, var(--input-bg) 60%, var(--bg-2)); }
.card, .side-item { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .15s; }
.side-item:hover { border-color: var(--border-strong); }

/* Scrollbars: thin and theme-aware (WebKit + Firefox) */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); border: 3px solid transparent; background-clip: padding-box; }

@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-ghost, .chip, .step, .feature, .dest-tile, .card, .vc, .feature-icon { transition: none !important; }
  .btn-primary:hover, .step:hover, .feature:hover, .dest-tile:hover, .card:hover, .vc:hover { transform: none !important; }
}

.trip-setup-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(7,10,18,.62); backdrop-filter: blur(12px); animation: fadeIn .22s ease; }
.trip-setup-backdrop.closing { animation: fadeOut .18s ease forwards; }
.trip-setup-backdrop.closing .trip-setup { animation: popOut .18s ease forwards; }
.trip-setup-backdrop[hidden] { display: none; }
.trip-setup { width: min(1400px, 100%); height: calc(100vh - 40px); max-height: calc(100vh - 40px); overflow-y: auto; display: flex; flex-direction: column; padding: 36px 44px; animation: popIn .28s cubic-bezier(.2,.8,.2,1); border: 1px solid var(--border-strong); border-radius: 24px; background: color-mix(in srgb, var(--card-solid) 92%, transparent); box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.trip-setup-head { display:flex; justify-content:space-between; gap:20px; margin-bottom:22px; }
.trip-setup h2 { font-size: clamp(28px, 5vw, 40px); margin-top: 6px; }
.trip-setup label { display:flex; flex-direction:column; gap:7px; color:var(--text); font-size:13px; font-weight:700; }
.trip-setup input:not([type="radio"]) { width:100%; padding:12px 13px; border:1px solid var(--border); border-radius:11px; background:var(--input-bg); color:var(--text); font:inherit; font-weight:500; outline:none; }
.trip-setup input:not([type="radio"]):focus { border-color:var(--accent); box-shadow:var(--ring); }
.setup-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }
.date-choice { display:flex; gap:14px; flex-wrap:wrap; border:0; padding:0; margin:20px 0 0; }
.date-choice legend { width:100%; color:var(--text); font-size:13px; font-weight:700; margin-bottom:2px; }
.date-option { flex-direction:row !important; align-items:center; gap:8px !important; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:var(--input-bg); cursor:pointer; }
.setup-note { margin:14px 0 0; padding:12px 14px; border-radius:12px; color:var(--muted); background:var(--accent-soft); line-height:1.5; font-size:13px; }
.trip-setup-actions { display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-top:24px; flex-wrap:wrap; }
@media (max-width: 620px) { .setup-grid { grid-template-columns:1fr; } .trip-setup { padding:22px; } .trip-setup-actions > * { flex:1; } }

/* Live hotels (LiteAPI) + compact research sources */
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 2px; color: var(--muted); font-size: 12px; }
.sources-head { font-weight: 700; margin-right: 4px; }
.sources-head .ok { color: #2fbf71; }
.source-chip { border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; color: var(--muted); text-decoration: none; background: var(--card); font-size: 11.5px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-chip:hover { border-color: var(--border-strong); color: var(--text); }
.hotel-card.live .card-img { height: 150px; }
.pill.photo-real.right { right: 8px; left: auto; }

.sources-tip { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); font-size: 11.5px; animation: rise .3s ease; }
.sources-tip .link-btn { font-size: 11px; padding: 0; color: var(--muted); text-decoration: underline; }
.pill.accent.right { right: 8px; left: auto; }
.discover-card .card-img { height: 140px; }

/* Tripadvisor cards */
.pill.ta { background: #34e0a1; color: #0b2b1e; font-weight: 800; }
.ta-line { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.ta-bubbles { color: #34e0a1; letter-spacing: 1px; font-size: 13px; }
.ta-credit { flex-basis: 100%; color: var(--muted); font-size: 11.5px; padding: 2px 4px; }
.ta-credit a { color: var(--muted); }

.live-rate { display: inline-block; margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); animation: rise .3s ease; }
.live-rate.up { background: rgba(224, 82, 82, .14); color: #d84a4a; }
.live-rate.down { background: rgba(47, 191, 113, .14); color: #1f9a5b; }

/* Stepped trip setup */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes popOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.trip-setup-head { margin-bottom: 14px; }
.trip-setup h2 { transition: opacity .2s; }
.setup-progress { display: flex; gap: 6px; margin: 0 0 18px; }
.setup-progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--border); transition: background .3s; }
.setup-progress i.on { background: var(--accent); }
.setup-step { animation: stepIn .28s cubic-bezier(.2,.8,.2,1); }
.setup-step.back { animation: stepInBack .28s cubic-bezier(.2,.8,.2,1); }
.setup-step[hidden] { display: none; }
.setup-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.setup-step { flex: 1; display: flex; flex-direction: column; }
.setup-step[data-step="dest"] .setup-tiles { flex: 1; grid-auto-rows: 1fr; }
.setup-step[data-step="dest"] .setup-tile { aspect-ratio: auto; min-height: 150px; }
.setup-when-grid { flex: 1; display: grid; grid-template-columns: minmax(360px, 560px) 1fr; gap: 36px; align-items: start; }
.setup-when-form { display: flex; flex-direction: column; }
/* Static photo: fixed 4:3 frame capped to the viewport, no looping zoom (it read as "throbbing"). */
.setup-when-photo { position: relative; border-radius: 22px; background-size: cover; background-position: center; width: 100%; max-width: 720px; aspect-ratio: 4 / 3; max-height: calc(100vh - 260px); min-height: 300px; overflow: hidden; box-shadow: 0 18px 60px rgba(0,0,0,.25); }
.setup-when-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.7)); }
.setup-when-caption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.setup-when-caption b { font-size: 26px; font-family: inherit; }
.setup-when-caption span { font-size: 14px; opacity: .9; line-height: 1.45; }
@media (max-width: 1100px) { .setup-when-grid { grid-template-columns: 1fr; } .setup-when-photo { min-height: 220px; max-height: 280px; max-width: none; aspect-ratio: 16 / 9; order: -1; } }
.trip-setup .setup-step[data-step="dest"] #setup-destination { padding: 18px 20px; font-size: 18px; border-radius: 14px; }
.setup-tile { position: relative; aspect-ratio: 16 / 11; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; cursor: pointer; padding: 0; color: #fff; text-align: left; font: inherit; transition: transform .18s, border-color .18s, box-shadow .18s; }
.setup-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72)); }
.setup-tile b, .setup-tile span { position: relative; z-index: 1; display: block; padding: 0 14px; }
.setup-tile b { font-size: 20px; margin-top: auto; }
.setup-tile span { font-size: 13px; opacity: .85; padding-bottom: 14px; }
.setup-tile { display: flex; flex-direction: column; justify-content: flex-end; }
.setup-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.setup-tile.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.setup-tile.selected::before { content: "✓"; position: absolute; top: 8px; right: 8px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.setup-from { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.setup-from-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--input-bg); color: var(--text); font: inherit; cursor: pointer; }
.setup-from-chip:hover { border-color: var(--border-strong); }
.setup-from-chip b { font-size: 14px; }
.setup-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.setup-quick .chip { font-size: 12px; }
.setup-error { margin: 12px 0 0; color: #d84a4a; font-size: 13px; font-weight: 600; }
.trip-setup-actions { margin-top: 20px; }
#trip-setup-back { margin-right: auto; }
@media (max-width: 1100px) { .setup-tiles { grid-template-columns: repeat(3, 1fr); } .trip-setup { padding: 24px; } }
@media (max-width: 620px) { .setup-tiles { grid-template-columns: repeat(2, 1fr); } }

/* 3-photo strips on cards */
.card-img.strip { position: relative; display: grid; grid-template-columns: 1fr; height: 150px; padding: 0; background: none; overflow: hidden; }
.card-img.strip.has-thumbs { grid-template-columns: 2fr 1fr; gap: 3px; }
.strip-main { background-size: cover; background-position: center; transition: background-image .25s; }
.strip-thumbs { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; }
.strip-thumb { background-size: cover; background-position: center; cursor: pointer; transition: filter .15s, transform .15s; }
.strip-thumb:hover { filter: brightness(1.12); }
.card-img.strip .pill { z-index: 2; }
.card-img.strip .pill.photo-real { left: 8px; bottom: 8px; top: auto; }

/* Add-to-trip button states */
.btn-added { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; background: #2fbf71; color: #fff; transition: background .25s, color .25s, border-color .25s, transform .15s; }
.btn-added .check { width: 16px; height: 16px; display: inline-grid; place-items: center; }
.btn-added .check svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.btn-added.checking { animation: pop .45s cubic-bezier(.2,.8,.2,1); }
.btn-added.checking .check svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .1s ease-out forwards; }
.btn-added.removable { background: color-mix(in srgb, #2fbf71 14%, transparent); color: #1f9a5b; border-color: color-mix(in srgb, #2fbf71 45%, transparent); }
.btn-added.removable:hover { background: rgba(224, 82, 82, .12); color: #d84a4a; border-color: rgba(224, 82, 82, .45); }
.btn-added.removable:hover .check { display: none; }
.btn-added.removable:hover::before { content: "✕"; font-size: 12px; }
@keyframes pop { 0% { transform: scale(.92); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Live research activity feed in the typing bubble */
/* Bubble hugs its content: just the "Thinking…" line until research rows appear,
   then grows down (row) and sideways (to the widest row, capped at 520px). */
.typing .bubble { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: fit-content; max-width: min(520px, 100%); }
.typing .tline { align-self: flex-start; }
.typing .activity { max-width: 100%; }
.tline { display: flex; align-items: center; gap: 10px; }
/* Rows stack in one grid cell (instead of position:absolute) so the box can size to the text. */
.activity { position: relative; display: grid; grid-template-columns: minmax(0, max-content); height: 24px; overflow: hidden; margin-top: 2px; }
.activity[hidden] { display: none; }
.act-row { grid-area: 1 / 1; position: relative; min-width: 0; height: 24px; display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .38s; }
.act-text { overflow: hidden; text-overflow: ellipsis; }
.act-text a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.act-text a:hover { border-bottom-color: var(--accent); }
.act-row.in { transform: translateY(-14px); opacity: 0; }
.act-row.on { transform: none; opacity: 1; }
.act-row.out { transform: translateY(14px); opacity: 0; }
.act-ico { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; overflow: hidden; }
.act-ico img { position: absolute; inset: 0; width: 16px; height: 16px; border-radius: 50%; object-fit: cover; background: #fff; opacity: 0; transition: opacity .2s; }
.act-ico img.ok { opacity: 1; }
.act-letter { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 9.5px; font-weight: 800; font-style: normal; }
.act-ico.spin { box-shadow: 0 0 0 2px transparent; }
.act-ico.spin::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); animation: spin .9s linear infinite; }
.act-ico { position: relative; }
.act-ico.done { background: #2fbf71; color: #fff; font-size: 11px; font-weight: 800; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.price-src { margin-top: 2px; font-size: 11.5px; }
.hc-why { margin-top: 6px; color: var(--text); opacity: .82; line-height: 1.4; }

/* Buttons: Outfit (inherited from body, size boosted by font-size-adjust).
   600 weight — 700 reads heavy in Outfit — plus slightly open tracking. */
.btn-primary, .btn-ghost, .btn-added, .link-btn {
  font-weight: 600;
  letter-spacing: 0.012em;
}
.btn-primary { font-weight: 600; letter-spacing: 0.018em; }
.btn-primary.lg, .btn-ghost.lg { letter-spacing: 0.02em; }
.btn-ghost.sq { font-size: 16px; letter-spacing: 0; font-size-adjust: none; }

/* ---- add-to-schedule confirmation (party size, time, special requests) ---- */
.confirm-sheet { z-index: 70; }
.ac-card .sheet-body { gap: 14px; }
.ac-steps { display: flex; gap: 8px; font-size: 12px; font-weight: 600; }
.ac-steps span { padding: 5px 11px; border-radius: 999px; background: var(--chip-bg); color: var(--muted); border: 1px solid var(--border); }
.ac-steps span.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.ac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ac-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.ac-grid input, .ac-grid select, .ac-card textarea, .ed-req textarea { font: inherit; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: inherit; }
.ac-card textarea, .ed-req textarea { width: 100%; resize: vertical; box-sizing: border-box; }
.ac-note { grid-column: 1 / -1; margin: 0; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chip { font-size: 12px; padding: 5px 11px; }
.ac-chip.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.ac-actions { align-items: center; } .ac-spacer { flex: 1; }
@media (max-width: 520px) { .ac-grid { grid-template-columns: 1fr; } }
.ev .ev-req { display: block; font-style: normal; font-size: 10.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-req { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); }
.manifest { display: flex; flex-direction: column; gap: 8px; }
.mf-item { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; gap: 2px; }
.mf-req { color: var(--accent); }
@media print { .manifest .mf-item { break-inside: avoid; } }
/* verified price box in the enlarged card */
.cz-price q { display: block; margin-top: 4px; font-size: 12px; font-style: italic; opacity: .8; quotes: "“" "”"; }
.cz-price a { color: var(--accent); }
.cz-price span .ok { color: var(--good, #16a34a); font-size: inherit; font-weight: 700; }
.cz-checking, .cz-unverified { font-size: 18px; font-weight: 600; opacity: .75; }
.cz-extras { font-size: 12px; }

/* ---- "↓ 1 unseen response" pill: reply arrived while the user was scrolled up ---- */
.chat-wrap { position: relative; }
.unseen-pill { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); cursor: pointer; }
.unseen-pill:hover { filter: brightness(1.06); transform: translateX(-50%) translateY(-1px); }
.unseen-pill .up-arrow { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 14px; }
.unseen-pill.pop { animation: unseen-in .32s cubic-bezier(.2,.9,.3,1.3); }
@keyframes unseen-in { from { opacity: 0; transform: translateX(-50%) translateY(16px) scale(.92); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .unseen-pill.pop { animation: none; } }

/* ---- confirmed = solid colour, tentative = light shade of the same colour ---- */
.ev.ev-flight:not(.tentative)   { background: var(--ev-flight);   border-color: color-mix(in srgb, var(--ev-flight) 70%, #000); color: #fff; }
.ev.ev-hotel:not(.tentative)    { background: var(--ev-hotel);    border-color: color-mix(in srgb, var(--ev-hotel) 70%, #000); color: #fff; }
.ev.ev-activity:not(.tentative) { background: var(--ev-activity); border-color: color-mix(in srgb, var(--ev-activity) 70%, #000); color: #fff; }
.ev.ev-meal:not(.tentative)     { background: var(--ev-meal);     border-color: color-mix(in srgb, var(--ev-meal) 70%, #000); color: #fff; }
.ev:not(.tentative) span, .ev:not(.tentative) .ev-req { opacity: .92; }
.ev.tentative, .tt-item.tentative { opacity: 1; border-style: dashed; border-width: 1px 1px 1px 4px; color: var(--text);
  background-image: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, currentColor 5%, transparent) 7px 14px); }
.ev.ev-flight.tentative,   .tt-item.ev-flight   { background-color: color-mix(in srgb, var(--ev-flight) 12%, var(--bg-2)); }
.ev.ev-hotel.tentative,    .tt-item.ev-hotel    { background-color: color-mix(in srgb, var(--ev-hotel) 12%, var(--bg-2)); }
.ev.ev-activity.tentative, .tt-item.ev-activity { background-color: color-mix(in srgb, var(--ev-activity) 12%, var(--bg-2)); }
.ev.ev-meal.tentative,     .tt-item.ev-meal     { background-color: color-mix(in srgb, var(--ev-meal) 14%, var(--bg-2)); }
.ev .tent { font-style: normal; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 4px; background: color-mix(in srgb, currentColor 10%, transparent); }

/* ---- readable calendar events: no overlapping lines, compact modes for short slots ---- */
.ev { font-size-adjust: none; line-height: 1.3; gap: 2px; padding: 5px 8px; }
.ev > * { flex-shrink: 0; min-width: 0; }
.ev b { font-size: 12.5px; }
.ev > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .tent { display: inline-block; line-height: 1.4; margin-left: 2px; vertical-align: 1px; }
.ev.ev-sm .ev-req { display: none; }
.ev.ev-xs { flex-direction: row; align-items: center; gap: 6px; padding: 2px 7px; }
.ev.ev-xs b { flex-shrink: 1; }
.ev.ev-xs > span { flex-shrink: 0; font-size: 10.5px; }
.ev.ev-xs .tent, .ev.ev-xs .ev-req { display: none; }
.ev:hover { z-index: 6; }

/* legend + tentative tray (chosen but no dates yet) */
.sched-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.sched-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.sched-legend .lg::before { content: ""; width: 22px; height: 12px; border-radius: 3px; }
.sched-legend .solid::before { background: var(--ev-activity); }
.sched-legend .tent::before { background: color-mix(in srgb, var(--ev-activity) 14%, var(--bg-2)); border: 1px dashed var(--ev-activity); border-left-width: 3px; border-left-style: solid; }
.tent-tray { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; background: var(--bg-2); }
.tt-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.tt-item { border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.tt-item.ev-flight { border-color: var(--ev-flight); } .tt-item.ev-hotel { border-color: var(--ev-hotel); } .tt-item.ev-activity { border-color: var(--ev-activity); } .tt-item.ev-meal { border-color: var(--ev-meal); }
.tt-item span { font-size: 11.5px; color: var(--muted); } .tt-item .ev-req { font-style: normal; font-size: 11px; color: var(--accent); }
.badge.bump { animation: badge-bump .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes badge-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ---- side-by-side flight picker: outbound left, home right ---- */
.cards.flightpair { width: 100%; }
.fp { border: 1px solid var(--border); border-radius: 16px; background: var(--card-solid); box-shadow: var(--shadow-sm); overflow: hidden; }
.fp-cols { display: grid; grid-template-columns: 1fr 1fr; }
.fp-col { position: relative; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: opacity .2s; }
.fp-col + .fp-col { border-left: 1px solid var(--border); }
.fp-col header { display: flex; align-items: center; gap: 10px; }
.fp-col header > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fp-col header b { font-size: 14px; } .fp-col header small { font-size: 12px; color: var(--muted); }
.fp-step { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--accent); color: #fff; flex: none; }
.fp-col.done .fp-step { background: var(--good, #16a34a); }
/* ChatGPT-style ‹ 2/3 › page switcher + "More options" */
.fp-pager { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12px; flex: none; }
.fp-pager b { font-weight: 600; min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; }
.fp-pager button { width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.fp-pager button:hover:not(:disabled) { background: var(--hover); }
.fp-pager button:disabled { opacity: .3; cursor: default; }
.fp-more { align-self: center; border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fp-more:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.fp-more:disabled { opacity: .6; cursor: progress; }
.fp-list { display: flex; flex-direction: column; gap: 8px; }
.fp-opt { display: grid; grid-template-columns: minmax(118px, 1.2fr) minmax(0, 1.5fr) auto 22px; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .12s; }
.fp-opt:hover { border-color: var(--accent); transform: translateY(-1px); }
.fp-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.fp-col.done .fp-opt:not(.on) { opacity: .5; }
.fp-col.done .fp-opt:not(.on):hover { opacity: 1; }
.fp-air { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fp-air .airline-dot { width: 30px; height: 30px; border-radius: 8px; font-size: 10px; font-style: normal; }
.fp-air > span { display: flex; flex-direction: column; min-width: 0; }
.fp-air b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-air small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-air .tag { align-self: flex-start; margin-top: 2px; font-style: normal; font-size: 10px; padding: 1px 7px; white-space: nowrap; }
.fp-times { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fp-tt { display: flex; align-items: center; gap: 8px; }
.fp-tt b { font-size: 14px; white-space: nowrap; }
.fp-tt i { flex: 1; min-width: 12px; height: 2px; background: var(--border-strong); border-radius: 2px; }
.fp-times small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-times small.ns { color: var(--good, #16a34a); font-weight: 600; }
.fp-price { display: flex; flex-direction: column; align-items: flex-end; }
.fp-price b { font-size: 16px; } .fp-price small { font-size: 10.5px; color: var(--muted); }
.fp-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.fp-opt.on .fp-check { background: var(--accent); border-color: var(--accent); }
.fp-col.locked { opacity: .45; }
.fp-col.locked .fp-list { pointer-events: none; cursor: default; }
.fp-sum { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg-2); font-size: 13px; }
.fp-total { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.fp-total b { font-size: 18px; } .fp-total small { font-size: 11px; color: var(--muted); }
.fp-ok { color: var(--good, #16a34a); font-weight: 700; }
@media (max-width: 860px) {
  .fp-cols { grid-template-columns: 1fr; }
  .fp-col + .fp-col { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 520px) { .fp-opt { grid-template-columns: 1fr auto 22px; } .fp-times { grid-column: 1 / -1; grid-row: 2; } }

/* ===== "just added / updated" sparkle ring on calendar items ===== */
@property --ring-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ev.ev-new, .ev-span.ev-new, .tt-item.ev-new { position: relative; z-index: 6; overflow: clip; overflow-clip-margin: 8px; animation: ev-new-glow 1.6s ease-in-out infinite; }
.ev-span.ev-new, .tt-item.ev-new { position: relative; }
.ev.ev-new { position: absolute; }
.ev-new::before { content: ""; position: absolute; inset: -4px; border-radius: 11px; padding: 2.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--ring-ang), transparent 0 8%, #fff7c2 12%, #ffd34d 17%, var(--accent) 24%, transparent 32% 52%, #fff 56%, #7ee0ff 61%, #c58bff 67%, transparent 75% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 3px rgba(255, 225, 120, .9)); animation: ev-ring-spin 1.8s linear infinite; }
/* twinkling sparkles riding the ring */
.ev-new::after { content: ""; position: absolute; inset: -6px; border-radius: 12px; pointer-events: none; z-index: 3;
  background:
    radial-gradient(circle at 8% 0%, #fff 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 92% 100%, #fff 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 100% 30%, #ffe680 0 1.3px, transparent 2.3px),
    radial-gradient(circle at 0% 72%, #bfeaff 0 1.3px, transparent 2.3px),
    radial-gradient(circle at 55% 0%, #fff 0 1.1px, transparent 2px),
    radial-gradient(circle at 40% 100%, #ffd6ff 0 1.1px, transparent 2px);
  animation: ev-twinkle 1.1s ease-in-out infinite alternate; }
.ev-new.fading::before, .ev-new.fading::after { opacity: 0; transition: opacity .8s ease; }
.ev-new.fading { animation: none; }
@keyframes ev-ring-spin { to { --ring-ang: 360deg; } }
@keyframes ev-twinkle { 0% { opacity: .25; transform: scale(.98); } 50% { opacity: 1; } 100% { opacity: .55; transform: scale(1.02) rotate(.4deg); } }
@keyframes ev-new-glow { 0%, 100% { box-shadow: var(--shadow-sm), 0 0 0 0 rgba(255, 210, 90, 0); } 50% { box-shadow: var(--shadow-sm), 0 0 14px 2px rgba(255, 210, 90, .45); } }

/* ===== budget card: animated total + "+$ / −$" change pill ===== */
.budget-card .bar .seg { transition: width 1.1s cubic-bezier(.22, .8, .25, 1); }
.bc-head b { font-variant-numeric: tabular-nums; transition: color .4s ease; }
.bc-head b.flash-up { color: var(--good); } .bc-head b.flash-down { color: var(--bad); }
.bc-head { flex-wrap: wrap; }
.bc-delta { align-self: center; font-size: 13px !important; font-weight: 700; padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; animation: bc-delta-in .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.bc-delta.up { color: var(--good) !important; background: var(--good-soft); }
.bc-delta.down { color: var(--bad) !important; background: var(--bad-soft); }
@keyframes bc-delta-in { from { opacity: 0; transform: translateX(-8px) scale(.85); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .ev-new::before, .ev-new::after, .ev.ev-new, .ev-span.ev-new, .tt-item.ev-new { animation: none; }
  .budget-card .bar .seg { transition: none; } .bc-delta { animation: none; }
}
/* browsers without overflow-clip-margin (Safari) would clip an outside ring — draw it on the edge instead */
@supports not (overflow-clip-margin: 8px) { .ev.ev-new::before { inset: 0; border-radius: 8px; } .ev.ev-new::after { inset: 0; } }

/* ===== Book tab (js/booking.js) ===== */
#view-book { padding: 14px 18px 12px; gap: 12px; overflow: hidden; min-width: 0; }
.bk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.bk-head h2 { font-size: 22px; } .bk-head p { margin: 4px 0 0; }
.bk-progress { width: 220px; height: 8px; border-radius: 99px; background: var(--chip-bg); overflow: hidden; }
.bk-progress i { display: block; height: 100%; background: var(--good); border-radius: inherit; transition: width .3s; }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; flex: 1; min-height: 0; }
.bk-main { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.bk-aside { overflow-y: auto; min-height: 0; }
.bk-group { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 10px 0 0; }
.bk-card { background: var(--card-solid); border: 1px solid var(--border); border-left: 4px solid var(--ev-activity); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.bk-card.bk-flight { border-left-color: var(--ev-flight); } .bk-card.bk-hotel { border-left-color: var(--ev-hotel); } .bk-card.bk-meal { border-left-color: var(--ev-meal); }
.bk-card.booked { border-color: var(--good); border-left-color: var(--good); background: linear-gradient(0deg, var(--good-soft), var(--good-soft)), var(--card-solid); }
.bk-card.booked .bk-links, .bk-card.booked .bk-kit-wrap { display: none; }
.bk-card-top { display: flex; align-items: center; gap: 12px; }
.bk-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--chip-bg); font-size: 18px; flex: none; }
.bk-card.booked .bk-icon { background: var(--good); color: #fff; font-weight: 800; }
.bk-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bk-info b { font-size: 15px; } .bk-info span { color: var(--muted); font-size: 13px; }
.bk-price { font-weight: 700; white-space: nowrap; }
.bk-links { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-kit { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-kit.empty { color: var(--muted); font-size: 12px; }
.bk-copy { display: inline-flex; align-items: center; gap: 6px; background: var(--chip-bg); border: 1px dashed var(--border-strong); border-radius: 8px; padding: 4px 8px; font-size: 12px; color: var(--text); max-width: 100%; }
.bk-copy span { color: var(--muted); } .bk-copy b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bk-copy i { font-style: normal; color: var(--muted); }
.bk-copy:hover { border-color: var(--accent); } .bk-copy.copied { border-style: solid; border-color: var(--good); } .bk-copy.copied i::before { content: "✓ "; color: var(--good); }
.bk-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bk-traveler { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.bk-traveler h3 { margin: 0; font-size: 17px; } .bk-traveler p { margin: 0; }
.bk-traveler label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
.bk-traveler input { background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); font: inherit; font-size: 14px; outline: none; width: 100%; }
.bk-traveler input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.bk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-others { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
@media (max-width: 1000px) { .bk-layout { grid-template-columns: 1fr; overflow-y: auto; } .bk-main, .bk-aside { overflow: visible; } .bk-aside { order: -1; } }

/* ===== Developer panel (hold ⌘G) — js/devpanel.js ===== */
.dev-hint { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); z-index: 300; padding: 10px 16px 12px; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; overflow: hidden; }
.dev-hint.show { opacity: 1; transform: translate(-50%, 0); }
.dev-hint i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.dev-hint.go i { animation: devHold var(--hold, 600ms) linear forwards; }
@keyframes devHold { to { transform: scaleX(1); } }
.dev-panel { position: fixed; inset: 0; z-index: 290; display: grid; place-items: center; padding: 24px; background: rgba(5,8,18,.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s; }
.dev-panel.open { opacity: 1; }
.dev-card { width: min(1100px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--card-solid); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; transform: translateY(8px) scale(.99); transition: transform .18s; }
.dev-panel.open .dev-card { transform: none; }
.dev-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.dev-head b { font-size: 17px; display: block; } .dev-sub { font-size: 12px; color: var(--muted); }
.dev-head-actions { display: flex; gap: 8px; align-items: center; }
.dev-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--text); font-size: 15px; cursor: pointer; } .dev-x:hover { background: var(--hover); }
.dev-body { overflow-y: auto; padding: 16px 20px 8px; display: flex; flex-direction: column; gap: 18px; }
.dev-body h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.dev-body h4 .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.dev-panel .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dev-panel .ok .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.dev-panel .bad .dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
.dev-panel .warn .dot { background: #f59e0b; }
.dev-panel .idle .dot { background: #60a5fa; }
.dev-panel .off .dot { background: transparent; border: 1.5px solid var(--muted); }
.dev-planner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); }
.dev-planner .dot { margin-top: 6px; } .dev-planner.off { border-color: rgba(239,68,68,.45); }
.dev-planner .muted { font-size: 12px; margin-top: 2px; }
.dev-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.dev-svc { position: relative; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); display: flex; flex-direction: column; gap: 6px; }
.dev-svc.bad { border-color: rgba(239,68,68,.5); } .dev-svc.ok { border-color: rgba(34,197,94,.4); }
.dev-svc-top { display: flex; align-items: center; gap: 8px; } .dev-svc-top b { font-size: 14px; flex: 1; }
.dev-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--chip-bg); color: var(--muted); white-space: nowrap; }
.dev-svc.ok .dev-pill { color: #16a34a; background: rgba(34,197,94,.12); } .dev-svc.bad .dev-pill { color: #ef4444; background: rgba(239,68,68,.12); }
.dev-svc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.dev-panel .mono, .dev-panel code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; }
.dev-svc-detail { font-size: 12px; color: var(--muted); word-break: break-word; } .dev-svc-detail.bad, .dev-panel .bad { color: #ef4444; }
.dev-models { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.dev-models .ok { color: #16a34a; } .dev-models .bad { color: #ef4444; }
.dev-svc.warn { border-color: rgba(245,158,11,.5); } .dev-svc.warn .dev-pill { color: #d97706; background: rgba(245,158,11,.14); }
.dev-test { align-self: flex-end; margin-top: auto; font-size: 12px; padding: 2px 0; }
.dev-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dev-log { height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); padding: 6px 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; line-height: 1.45; }
.dev-line { display: grid; grid-template-columns: 58px auto 1fr; gap: 8px; padding: 3px 10px; align-items: baseline; }
.dev-line time { white-space: nowrap; }
.dev-line time { color: var(--muted); } .dev-line .tag { font-weight: 700; color: var(--muted); }
.dev-line.warn { background: rgba(245,158,11,.08); } .dev-line.warn .tag { color: #f59e0b; }
.dev-line.error { background: rgba(239,68,68,.09); } .dev-line.error .tag, .dev-line.error span { color: #ef4444; }
.dev-empty { padding: 14px; color: var(--muted); font-size: 13px; font-family: inherit; }
.dev-settings { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; }
.dev-settings label { display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.dev-foot { padding: 10px 20px; border-top: 1px solid var(--border); font-size: 12px; }
@media (max-width: 820px) { .dev-two { grid-template-columns: 1fr; } .dev-head { flex-wrap: wrap; } }

/* perf: the animated globe sits behind these panels — live backdrop blur re-renders every frame
   and was making the dashboard laggy. Solid-ish glass instead (looks nearly identical). */
.app-sidebar, .vacation-head > div:first-child, .vacation-screen .dashboard-topbar .btn-ghost,
.vacation-screen .dashboard-topbar .user-chip, .vacation-screen .vacation-actions .btn-ghost,
.empty-vacations, .vc-status { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.app-sidebar { background: color-mix(in srgb, var(--bg-2) 96%, transparent); }
.vacation-head > div:first-child { background: rgba(11,14,23,.86); }
[data-theme="light"] .vacation-head > div:first-child { background: rgba(255,255,255,.9); border-color: rgba(16,24,48,.08); box-shadow: 0 8px 30px rgba(16,24,48,.12); }
.empty-vacations { background: rgba(17,21,39,.9); }

/* ---- travel time: airport transfers, gaps between stops ---- */
:root { --ev-transit: #94a3b8; } [data-theme="light"] { --ev-transit: #64748b; }
.ev.ev-transit, .ev.ev-transit:not(.tentative) { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ev-transit) 16%, var(--bg-2)) 0 6px, color-mix(in srgb, var(--ev-transit) 8%, var(--bg-2)) 6px 12px); border-color: var(--ev-transit); color: var(--text); cursor: pointer; box-shadow: none; }
.ev.ev-transit b { font-weight: 500; }
.day-card li.ev-transit { border-color: var(--ev-transit); border-left-style: dashed; color: var(--muted); }
.ev-leg { position: absolute; left: 10px; right: 6px; z-index: 1; pointer-events: auto; display: flex; align-items: center; border-left: 2px dotted var(--ev-transit); padding-left: 6px; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; overflow: hidden; }
.ev-leg span { background: color-mix(in srgb, var(--bg-2) 88%, transparent); border-radius: 6px; padding: 0 5px; white-space: nowrap; line-height: 1.5; }
.ev-leg.thin { align-items: flex-start; } .ev-leg.thin span { transform: translateY(-1px); }
.ev-leg.est span { font-style: italic; }
.ev-leg.tight { border-left-color: #ef4444; z-index: 3; }
.ev-leg.tight span { color: #fff; background: #ef4444; font-weight: 600; }
.day-card li.leg { border-left: 2px dotted var(--ev-transit); color: var(--muted); font-size: 11.5px; padding-top: 0; padding-bottom: 0; }
.day-card li.leg.tight { border-left-color: #ef4444; color: #ef4444; }
.ed-legs { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--ev-transit) 10%, var(--bg-2)); font-size: 13px; }
.ed-leg.tight { color: #ef4444; } .ed-leg em { font-style: normal; font-weight: 600; }

/* verified card prices (js/prices.js) */
.vp-checking { color: var(--muted); font-size: 12px; animation: vpPulse 1.1s ease-in-out infinite; }
@keyframes vpPulse { 50% { opacity: .45; } }
.vp-none { color: var(--muted); font-size: 12px; }
.vp-ok { color: var(--good, #2ea86b); font-size: 11.5px; font-weight: 600; text-decoration: none; margin-left: 4px; }
.vp-ok:hover { text-decoration: underline; }
.vp-src { margin-top: 2px; }
/* quick-reply options fade out once you move on */
.chips.chips-out { opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }

.hero-trust li::before { content: "—"; margin-right: 6px; color: var(--accent); font-weight: 700; }
