/* A quiet, full-height travel conversation. Scoped to the assistant route. */
body[data-page="assistant"] { overflow: hidden; }
body[data-page="assistant"] :is(.site-footer, .wa-fab, .selection-bar) { display: none; }
.ai-page { position: fixed; top: var(--header-h); inset-inline: 0; height: calc(var(--ai-vh, 100dvh) - var(--header-h)); display: flex; flex-direction: column; overflow: hidden; background: #faf9f6; }
.ai-page *, .ai-page *::before, .ai-page *::after { box-sizing: border-box; }
.ai-page [hidden] { display: none !important; }
.ai-page :is(button, a, summary, textarea):focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.ai-page button { cursor: pointer; }
.ai-toolbar { position: relative; z-index: 5; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1120px, calc(100% - 80px)); margin-inline: auto; padding: 18px 0; border-bottom: 1px solid rgba(35,53,54,.09); }
.ai-toolbar__identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ai-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: #e9eee6; color: var(--gold); }
.ai-avatar svg { width: 27px; height: 27px; }
.ai-toolbar__identity > div { min-width: 0; }
.ai-toolbar h1 { font-family: var(--font); font-size: 1rem; font-weight: 500; letter-spacing: 0; margin: 0; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-toolbar__identity p { margin: 2px 0 0; font-size: .69rem; line-height: 1.5; color: var(--text-2); }
.ai-toolbar__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ai-new, .ai-contact, .ai-settings > summary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 12px; padding: 10px 14px; background: transparent; color: var(--cyan-deep); font: inherit; font-size: .8rem; line-height: 1.4; }
.ai-contact { background: #e9eee6; }
.ai-new:hover, .ai-contact:hover, .ai-settings > summary:hover { background: #dfe7dc; }
.ai-toolbar__actions svg { width: 20px; height: 20px; flex-shrink: 0; }
.ai-settings { position: relative; }
.ai-settings > summary { list-style: none; width: 44px; padding: 10px; cursor: pointer; }
.ai-settings > summary::-webkit-details-marker { display: none; }
.ai-settings[open] > summary { background: #e9eee6; }
.ai-settings__panel { position: absolute; top: calc(100% + 12px); right: 0; width: min(390px, calc(100vw - 32px)); max-height: min(540px, calc(var(--ai-vh, 100dvh) - var(--header-h) - 100px)); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; box-shadow: 0 16px 48px rgba(24,48,41,.13); }
.ai-settings__panel h2 { font-family: var(--font); font-size: 1rem; font-weight: 500; letter-spacing: 0; margin-bottom: 16px; }
.ai-preview-note, .ai-search-state, .ai-privacy, .ai-local-history { font-size: .78rem; line-height: 1.8; color: var(--text-2); }
.ai-search-state { color: var(--gold-deep); }
.ai-local-history { margin-block: 18px; padding-block: 18px; border-block: 1px solid var(--line); }
.ai-local-history label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.ai-local-history input { flex-shrink: 0; margin-top: 5px; width: 17px; height: 17px; accent-color: var(--cyan-deep); }
.ai-local-history p { margin: 10px 0 0; font-size: .71rem; }
.ai-privacy { margin: 0; }
.ai-context, .ai-connection-note { flex-shrink: 0; width: min(860px, calc(100% - 48px)); margin: 10px auto 0; border-radius: 10px; padding: 8px 14px; font-size: .75rem; line-height: 1.6; }
.ai-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #edf1e9; color: var(--cyan-deep); }
.ai-context > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-context a { flex-shrink: 0; text-decoration: underline; text-underline-offset: 3px; }
.ai-connection-note { background: #f7eddb; color: #70582f; }
.ai-service-notice { flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; width: min(860px, calc(100% - 48px)); margin: 10px auto 0; padding: 10px 14px; border-radius: 12px; background: #edf1e9; color: var(--cyan-deep); font-size: .8rem; line-height: 1.6; }
.ai-service-notice p { flex: 1 1 200px; margin: 0; }
.ai-service-notice .ai-text-button { flex-shrink: 0; min-height: 44px; padding: 8px 14px; border: 1px solid #bac9b9; border-radius: 12px; background: #fff; }
.ai-chat { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; flex: 1; }
.ai-transcript { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; padding: 32px max(24px, calc((100% - 860px) / 2)) 20px; scrollbar-width: thin; scrollbar-color: #c9d0c7 transparent; }
.ai-transcript > * { flex-shrink: 0; }
.ai-welcome { width: 100%; max-width: 740px; margin: auto; text-align: center; }
.ai-welcome__mark { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px; color: var(--gold); background: #eeede4; }
.ai-welcome__mark svg { width: 43px; height: 43px; }
.ai-welcome__eyebrow { color: var(--gold-deep); font-size: .64rem; letter-spacing: .16em; margin: 0 0 16px; }
.ai-welcome h2 { font-size: clamp(1.6rem, 3.1vw, 2.25rem); line-height: 1.35; margin-bottom: 14px; }
.ai-welcome > p:not(.ai-welcome__eyebrow) { max-width: 540px; margin: 0 auto; color: var(--text-2); font-size: .92rem; line-height: 1.85; }
.ai-prompts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 32px auto 0; }
.ai-prompts button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 76px; border: 1px solid rgba(35,53,54,.1); border-radius: 16px; background: rgba(255,255,255,.75); padding: 16px; color: var(--text); text-align: left; font: inherit; font-size: .84rem; line-height: 1.65; transition: background-color .16s, border-color .16s; }
.ai-prompts button:hover { border-color: #9bac9f; background: #fff; }
.ai-prompts button > span:last-child { color: var(--gold); flex-shrink: 0; }
.ai-message { margin-bottom: 30px; font-size: 1rem; overflow-wrap: anywhere; }
.ai-message--user { align-self: flex-end; max-width: 78%; margin-left: auto; padding: 13px 20px; background: #e8eee5; border-radius: 20px 20px 6px 20px; }
.ai-message--user .ai-message__who { display: none; }
.ai-message--assistant { position: relative; padding-left: 48px; width: 100%; }
.ai-message__who { display: flex; align-items: center; min-height: 28px; margin-bottom: 7px; color: var(--text-2); font-size: .73rem; }
.ai-message__who svg { position: absolute; left: 0; top: 0; width: 32px; height: 32px; padding: 7px; border: 1px solid #e2e4db; border-radius: 50%; background: #fff; color: var(--gold); }
.ai-message__body { position: relative; min-height: 1.8em; }
.ai-message__text { white-space: pre-wrap; line-height: 1.85; margin: 0; }
.ai-official-sources { margin-top: 14px; color: var(--text-2); font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
.ai-official-sources p { margin: 0; }
.ai-official-sources ul { margin: 4px 0 0; padding-inline-start: 20px; }
.ai-official-sources a { color: var(--cyan-deep); text-decoration: underline; text-underline-offset: 3px; }
.ai-message.is-entering { animation: ai-message-in 420ms cubic-bezier(.22,.68,.3,1) both; }
.ai-message.is-streaming.has-text .ai-message__text::after { content: ''; display: inline-block; width: 2px; height: .95em; margin-left: 3px; vertical-align: -.1em; background: var(--gold-deep); animation: ai-caret 1s ease-in-out infinite; }
.ai-typing { position: absolute; inset: 0 auto auto 0; display: inline-flex; gap: 5px; align-items: center; height: 1.8em; color: var(--text-2); }
.ai-typing span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: ai-typing 1.2s ease-in-out infinite; }
.ai-typing span:nth-child(2) { animation-delay: 120ms; }
.ai-typing span:nth-child(3) { animation-delay: 240ms; }
@keyframes ai-message-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ai-typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: .85; transform: translateY(-2px); } }
@keyframes ai-caret { 0%, 100% { opacity: .2; } 50% { opacity: .8; } }
.ai-result { display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 20px; max-width: 620px; margin-top: 20px; padding: 16px; border: 1px solid #e0e3d9; border-radius: 18px; background: #fff; }
.ai-result:not(:has(.ai-result__photo)) { grid-template-columns: minmax(0,1fr); }
.ai-result__photo { width: 96px; height: 136px; object-fit: cover; border-radius: 11px; background: #eeede4; }
.ai-result__content { min-width: 0; }
.ai-result__top { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; color: var(--gold-deep); font-size: .71rem; line-height: 1.5; }
.ai-result h3 { font-family: var(--font); font-size: .97rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; margin: 0 0 6px; }
.ai-result__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--text-2); font-size: .84rem; line-height: 1.65; }
.ai-result__link { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 100%; min-height: 42px; margin-top: 12px; padding: 9px 14px; border: 1px solid var(--cyan-deep); border-radius: 10px; background: var(--cyan-deep); color: #fff; font-size: .77rem; line-height: 1.5; }
.ai-result__link:hover { background: #315b56; border-color: #315b56; color: #fff; }
.ai-result__link > span { flex-shrink: 0; }
.ai-generation-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; min-height: 36px; margin-top: 14px; font-size: .73rem; color: var(--text-2); }
.ai-text-button { border: 0; border-radius: 7px; padding: 6px 0; background: transparent; color: var(--cyan-deep); font: inherit; font-size: .78rem; line-height: 1.6; }
.ai-text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.ai-generation-controls [data-ai-retry] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid #cbd7c7; border-radius: 12px; background: #eef3e9; color: var(--cyan-deep); font-size: .8rem; line-height: 1.5; transition: background-color .16s, border-color .16s; }
.ai-generation-controls [data-ai-retry]::before { content: ''; flex-shrink: 0; width: 17px; height: 17px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4v6h-6M20 10a8 8 0 1 0-1.8 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.ai-generation-controls [data-ai-retry]:hover { background: #dfe9d9; border-color: #9eb497; text-decoration: none; }
.ai-generation-controls [data-ai-retry]:active { background: #d4e2cc; }
.ai-message > .ai-text-button { margin-top: 12px; }
.ai-answer-status { font-size: .77rem; line-height: 1.7; margin: 12px 0 0; color: var(--text-2); }
.ai-compose { flex-shrink: 0; width: min(860px, calc(100% - 48px)); margin: 0 auto; padding: 14px 0 max(16px, env(safe-area-inset-bottom)); }
.ai-compose form { display: grid; grid-template-columns: minmax(0,1fr) 44px; align-items: end; gap: 12px; padding: 12px 12px 12px 20px; border: 1px solid #dce2d7; border-radius: 22px; background: #fff; box-shadow: 0 5px 24px rgba(35,53,54,.04); }
.ai-compose form:focus-within { border-color: #8fa497; box-shadow: 0 0 0 3px rgba(49,91,86,.08); }
.ai-compose textarea { display: block; width: 100%; min-width: 0; min-height: 30px; max-height: 132px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; resize: none; font: inherit; font-size: 1rem; line-height: 1.65; color: var(--text); }
.ai-compose textarea:focus-visible { outline: none; }
.ai-send { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: var(--cyan-deep); color: #fff; }
.ai-send:hover { background: #315b56; }
.ai-send svg { width: 23px; height: 23px; }
.ai-compose button:disabled, .ai-prompts button:disabled { opacity: .45; cursor: wait; }
.ai-compose__meta { display: flex; justify-content: space-between; gap: 14px; margin: 9px 8px 0; color: var(--text-3); font-size: .62rem; line-height: 1.6; }
.ai-error { margin: 8px 0 0; color: #9c2929; font-size: .78rem; line-height: 1.7; max-height: 96px; overflow-y: auto; }
.ai-handoff { position: absolute; inset: 0; z-index: 2; display: flex; overflow-y: auto; overscroll-behavior: contain; background: #faf9f6; }
.ai-handoff__inner { width: min(760px, calc(100% - 48px)); margin: auto; padding: 30px 0; }
.ai-handoff h2 { font-size: 1.7rem; line-height: 1.4; margin-bottom: 14px; }
.ai-handoff p { font-size: .9rem; line-height: 1.8; color: var(--text-2); }
.ai-handoff label { display: block; font-size: .8rem; margin-bottom: 10px; }
.ai-handoff textarea { display: block; width: 100%; min-height: 160px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; color: var(--text); font: inherit; font-size: .9rem; line-height: 1.8; resize: vertical; }
.ai-handoff__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 20px; }
.ai-page .btn { border-radius: 12px; font-size: .83rem; letter-spacing: 0; text-transform: none; }
.nav a.nav__link.is-on { color: #e2d3ae; }
@media (min-width:1181px) and (max-width:1380px) { .header-inner { gap:16px; padding-inline:22px; } .nav { gap:10px; } .nav a.nav__link, .nav button.nav__link { font-size:.75rem; letter-spacing:.01em; } .header-tools > .btn:not(.btn--wa) { padding:10px; } }
@media (max-width:760px) {
  .ai-toolbar { width: calc(100% - 32px); padding-block: 12px; gap: 10px; }
  .ai-avatar { width: 34px; height: 34px; }
  .ai-avatar svg { width: 24px; height: 24px; }
  .ai-toolbar h1 { font-size: .88rem; }
  .ai-toolbar__identity { gap: 9px; }
  .ai-toolbar__identity p { font-size: .63rem; }
  .ai-toolbar__actions { gap: 3px; }
  .ai-new, .ai-contact { width: 40px; min-height: 44px; padding: 10px; }
  .ai-new > span, .ai-contact > span { display: none; }
  .ai-settings > summary { width: 40px; }
  .ai-context, .ai-connection-note, .ai-service-notice { width: calc(100% - 32px); font-size: .7rem; }
  .ai-context { flex-wrap: wrap; gap: 4px 12px; }
  .ai-context > span { white-space: normal; }
  .ai-transcript { padding: 24px 18px 12px; }
  .ai-welcome { padding: 20px 0; }
  .ai-welcome__mark { width: 60px; height: 60px; margin-bottom: 18px; }
  .ai-welcome__eyebrow { font-size: .57rem; letter-spacing: .08em; }
  .ai-welcome h2 { font-size: 1.65rem; }
  .ai-welcome > p:not(.ai-welcome__eyebrow) { font-size: .88rem; }
  .ai-prompts { grid-template-columns: 1fr; gap: 9px; margin-top: 24px; }
  .ai-prompts button { min-height: 52px; padding: 12px 14px; font-size: .85rem; }
  .ai-message { margin-bottom: 26px; }
  .ai-message--user { max-width: 88%; padding: 11px 16px; }
  .ai-message--assistant { padding-left: 40px; }
  .ai-message__who svg { width: 29px; height: 29px; padding: 6px; }
  .ai-result { grid-template-columns: 70px minmax(0,1fr); gap: 12px; padding: 12px; margin-top: 16px; border-radius: 15px; }
  .ai-result__photo { width: 70px; height: 112px; border-radius: 9px; }
  .ai-result__top { font-size: .67rem; gap: 8px; }
  .ai-result h3 { font-size: .94rem; }
  .ai-result__summary { font-size: .83rem; }
  .ai-result__link { font-size: .73rem; padding: 8px 10px; gap: 10px; min-height: 44px; }
  .ai-generation-controls .ai-text-button { min-height: 44px; }
  .ai-compose { width: calc(100% - 32px); padding: 10px 0 max(12px,env(safe-area-inset-bottom)); }
  .ai-compose form { padding: 10px 10px 10px 14px; gap: 10px; border-radius: 20px; }
  .ai-compose__meta { justify-content: center; text-align: center; font-size: .6rem; }
  .ai-compose__hint { display: none; }
  .ai-settings__panel { padding: 20px; }
}
@media (prefers-reduced-motion:reduce) { .ai-message.is-entering, .ai-typing span, .ai-message.is-streaming.has-text .ai-message__text::after { animation:none; } }
