:root {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--color-foreground);
  background: var(--color-background);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, a, select, textarea { touch-action: manipulation; }
button, summary { cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: default; opacity: .55; }

a:focus-visible, button:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

[hidden] { display: none !important; }

.site-header {
  max-width: 1240px;
  margin: auto;
  padding: 22px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--color-border);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}

.brand-wordmark {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.1;
}

.brand-dot { color: var(--color-accent); }
.brand small { color: var(--color-muted); font-size: 12px; }
.language { display: flex; align-items: center; gap: 12px; color: var(--color-muted); font-size: 13px; }

select {
  color: var(--color-foreground);
  background: var(--color-surface);
  border: 1px solid var(--color-input-border);
  border-radius: 9px;
  padding: 9px 10px;
  min-height: 44px;
}

main { max-width: 1240px; padding: 30px 42px 0; margin: auto; }
.welcome { margin-bottom: 26px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; font-weight: 500; margin: 0 0 10px; color: var(--color-muted); }
h1, h2 { font-weight: 600; letter-spacing: -.045em; }
h1 { font-size: clamp(30px, 3.5vw, 42px); line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 25px; margin: 0; line-height: 1.25; }
.intro { font-size: 16px; color: var(--color-muted); margin: 0; line-height: 1.6; }

.test-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: var(--color-muted);
  margin: 16px 0 0;
  line-height: 1.6;
}

.notice-dot { width: 7px; height: 7px; margin-top: 6px; flex-shrink: 0; border-radius: 50%; background: var(--color-accent); }
.layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 28px; align-items: start; }

.conversation {
  background: var(--color-chat-surface);
  border: 1px solid var(--color-chat-border);
  border-radius: 20px;
  box-shadow: 0 8px 28px var(--color-chat-shadow);
  overflow: hidden;
  min-width: 0;
}

.chat-heading { padding: 22px 26px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--color-border); }
.chat-heading .eyebrow { margin-bottom: 6px; }
.text-button { color: var(--color-link); border: 0; background: transparent; font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; flex-shrink: 0; }

.messages {
  height: clamp(160px, calc(100dvh - 590px), 350px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 22px 26px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message { max-width: 91%; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.message p { margin: 0; white-space: pre-wrap; }
.message.assistant { align-self: flex-start; border-radius: 3px 15px 15px 15px; background: var(--color-chat-answer); padding: 14px 16px; }
.message.user { align-self: flex-end; background: var(--color-action); color: var(--color-on-action); padding: 12px 16px; border-radius: 15px 3px 15px 15px; }
.speaker { font-size: 12px; display: block; font-weight: 500; margin-bottom: 6px; }
.assistant .speaker { color: var(--color-muted); }
.source-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.source-links a { font-size: 12px; color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; }
.open-note { font-size: 12px; color: var(--color-muted); margin-top: 8px !important; }

.suggestions { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding: 10px 26px; }
.suggestions button { white-space: nowrap; flex-shrink: 0; border: 1px solid var(--color-chat-border); border-radius: 9px; background: var(--color-chat-surface); color: var(--color-foreground); padding: 9px 12px; font-size: 13px; font-weight: 500; min-height: 40px; transition: background .15s, border-color .15s; }
.suggestions button:hover { background: var(--color-chat-answer); border-color: var(--color-input-border); }
.status { font-size: 12px; min-height: 18px; color: var(--color-muted); padding: 0 26px; margin: 2px 0 10px; }
.error { font-size: 14px; line-height: 1.6; color: var(--color-error); padding: 12px 15px; margin: 4px 26px 12px; border-radius: 9px; background: var(--color-error-background); }

.composer { margin: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 12px; border: 1px solid var(--color-composer-border); border-radius: 12px; background: var(--color-composer-surface); color: var(--color-composer-foreground); }
.composer-label { grid-column: 1 / -1; font-size: 12px; font-weight: 600; line-height: 1.5; }
.composer:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
textarea { border: 0; resize: vertical; min-height: 46px; max-height: 150px; width: 100%; min-width: 0; font-size: 16px; line-height: 1.6; padding: 4px 5px; color: var(--color-composer-foreground); background: transparent; }
textarea:focus-visible { outline: none; }
textarea::placeholder { color: var(--color-composer-muted); opacity: 1; }
.send-button { display: flex; align-items: center; gap: 12px; border: 0; border-radius: 9px; background: var(--color-action); color: var(--color-on-action); padding: 11px 14px; font-size: 14px; font-weight: 500; min-height: 44px; transition: background .15s; }
.send-button:hover:not(:disabled) { background: var(--color-action-hover); }
.send-button span:last-child { font-size: 20px; line-height: 1; }
.chat-footnote { padding: 0 26px; font-size: 12px; color: var(--color-muted); line-height: 1.6; margin: 12px 0 18px; }

.hotel-information { padding: 8px 0; }
.info-heading { padding: 0 0 21px; }
.info-heading .eyebrow { margin-bottom: 7px; }
.facts { border-top: 1px solid var(--color-border); }
details { border-bottom: 1px solid var(--color-border); padding: 0; }
summary { font-size: 15px; font-weight: 500; padding: 16px 1px; display: flex; justify-content: space-between; list-style: none; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--color-muted); font-size: 18px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { font-size: 14px; line-height: 1.7; color: var(--color-muted); margin: 0 0 12px; overflow-wrap: anywhere; }
details a { display: inline-block; font-size: 12px; color: var(--color-link); margin: 0 0 15px; text-underline-offset: 3px; }

.contact { margin-top: 24px; padding: 22px; background: var(--color-answer); border-radius: 14px; }
.contact h3 { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 0 0 13px; letter-spacing: -.03em; }
.contact p { font-size: 14px; line-height: 1.7; margin: 0 0 10px; }
.contact a { display: block; font-size: 14px; line-height: 1.8; color: var(--color-link); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact .muted { font-size: 12px; color: var(--color-muted); margin: 15px 0 0; }
.loading-copy { font-size: 14px; color: var(--color-muted); }

footer { max-width: 1240px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 32px auto 0; padding: 20px 42px 25px; border-top: 1px solid var(--color-border); font-size: 12px; color: var(--color-muted); }
.footer-brand { font-size: 20px; letter-spacing: -.055em; font-weight: 600; color: var(--color-foreground); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -70px; left: 15px; padding: 12px; background: var(--color-surface); color: var(--color-foreground); z-index: 3; }
.skip-link:focus { top: 10px; }

@media (max-width: 900px) {
  .site-header { padding: 19px 24px; }
  .language > span { display: none; }
  main { padding: 26px 24px 0; }
  .welcome { margin-bottom: 24px; }
  .layout { grid-template-columns: 1fr; gap: 28px; }
  .hotel-information { padding: 0 4px; }
  .messages { height: clamp(160px, calc(100dvh - 640px), 300px); }
  .info-heading { padding-bottom: 18px; }
  footer { padding: 20px 24px; }
  .test-notice { max-width: 560px; }
  h1 { font-size: 34px; }
}

@media (max-width: 420px) {
  main { padding: 24px 16px 0; }
  .site-header { padding: 18px 20px; gap: 14px; }
  .brand-wordmark { font-size: 29px; }
  .brand small { font-size: 11px; }
  select { font-size: 14px; padding: 8px; }
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .chat-heading { padding: 20px 18px; gap: 8px; }
  .chat-heading .eyebrow { font-size: 11px; }
  .text-button { font-size: 12px; }
  .messages { padding: 19px 18px 8px; }
  .suggestions { padding: 10px 18px; }
  .message { max-width: 94%; }
  .composer { margin: 0 12px; }
  .chat-footnote, .status { padding-left: 18px; padding-right: 18px; }
  .error { margin-left: 18px; margin-right: 18px; }
  .send-button { padding: 11px 12px; }
  footer { padding: 20px 20px; gap: 12px; }
}

@media (pointer: coarse) {
  .suggestions button, .text-button { min-height: 44px; }
  .contact a { min-height: 44px; padding: 5px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
