@font-face {
  font-family: Karla;
  src: url("karla-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

.lmf-guide-page,
:host(.guide-host) {
  --guide-coral: #e86d69;
  --guide-navy: #16384d;
  --guide-paper: #fffcf6;
  --guide-ink: #172f40;
  --guide-muted: #466173;
  --guide-line: #d8e2e7;
  --guide-font: Karla, system-ui, -apple-system, sans-serif;
}

.lmf-guide-page {
  margin: 0;
  background: #f5f2ee;
  color: var(--guide-ink);
  font-family: var(--guide-font);
}

.lmf-guide-shell {
  display: flex;
  flex-direction: column;
  width: min(100%, 654px);
  height: 100vh;
  height: 100dvh;
  margin-inline: auto;
  background: var(--guide-paper);
}

.lmf-guide-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 48px;
  padding-inline: clamp(12px, 4vw, 30px);
  background: var(--guide-coral);
  color: white;
}

.lmf-guide-hero h1 {
  margin: 0;
  font: 750 19px/1.2 var(--guide-font);
  letter-spacing: -.025em;
}

.lmf-guide-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  margin-inline-end: -8px;
  border-radius: 8px;
  color: inherit;
}

.lmf-guide-close:hover { background: #78312d26; }
.lmf-guide-close:focus-visible { outline: 2px solid white; outline-offset: -3px; }

.lmf-guide-app { display: flex; flex: 1; min-height: 0; }
.lmf-guide-fallback { margin: 24px; }
.lmf-guide-fallback a { color: var(--guide-navy); }
.lmf-guide-app.lmf-guide-ready .lmf-guide-fallback { display: none; }

:host(.guide-host) { display: block; flex: 1; min-width: 0; min-height: 0; }

.panel.guide {
  position: relative;
  inset: auto;
  z-index: auto;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--guide-paper);
  box-shadow: none;
  color: var(--guide-ink);
  font: 16px/1.48 var(--guide-font);
}

.guide .messages {
  padding: 16px clamp(16px, 4vw, 30px) calc(20px + env(safe-area-inset-bottom));
  container-type: size;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

.guide .guide-turn {
  display: flow-root;
  /* Reserve a viewport below the newest question while its reply grows. */
  min-block-size: calc(100dvh - 84px - env(safe-area-inset-bottom));
  min-block-size: 100cqb;
}

.guide .chat-intro:empty { display: none; }

.guide .guide-composer {
  margin-top: 3px;
  min-width: 0;
}

.guide > .guide-composer {
  padding: 6px clamp(16px, 4vw, 30px) env(safe-area-inset-bottom);
  border-top: 1px solid var(--guide-line);
  background: var(--guide-paper);
}

.guide .guide-form-label {
  display: block;
  margin: 0 0 5px;
  color: var(--guide-navy);
  font-size: 16px;
  font-weight: 700;
}

.guide .guide-follow-up .guide-form-label {
  margin-block: 16px 7px;
  font-size: 17px;
}

.guide .guide-composer > form {
  margin: 0;
  gap: 6px;
  border: 1px solid #9db3bf;
  border-radius: 12px;
  background: white;
}

.guide .guide-composer > form:focus-within { outline-color: var(--guide-navy); }
.guide .guide-composer textarea { padding: 7px 9px; }
.guide .guide-composer textarea::placeholder { color: var(--guide-muted); }
.guide .guide-composer .send { background: var(--guide-navy); }
.guide .guide-composer .send:hover { background: #244f68; }

.guide .guide-composer .status { width: 100%; margin: 0; }
.guide .guide-composer .status:empty { display: none; }
.guide .guide-composer .status.error { max-height: none; }

.guide .guide-nav { margin: 12px 0 2px; }
.guide .guide-follow-up .guide-nav { margin: 0 0 12px; }
.guide .guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.guide .guide-tile {
  --tile: #dae5f0;
  --tile-icon: #c3d2e2;
  --tile-ink: #244458;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--tile);
  color: var(--tile-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.18;
  text-align: start;
  overflow-wrap: anywhere;
  transition: border-color 150ms, transform 150ms;
}

.guide .guide-quick .guide-tile {
  animation: guide-in 200ms ease-out var(--guide-delay, 0ms) both;
}
.guide .guide-follow-up .guide-quick .guide-tile { animation: none; }

.guide .guide-tile:active { transform: scale(.98); }
.guide .guide-tile:focus-visible,
.guide .guide-all summary:focus-visible { outline: 2px solid var(--guide-navy); outline-offset: 2px; }

.guide [data-group="stay"] { --tile: #f5d3e3; --tile-icon: #ebb4d0; --tile-ink: #632e4e; }
.guide [data-group="move"] { --tile: #c7dcff; --tile-icon: #9bc1ff; --tile-ink: #12386f; }
.guide [data-group="food"] { --tile: #ffe09b; --tile-icon: #ffc864; --tile-ink: #593100; }
.guide [data-group="fives"] { --tile: #ffd8b4; --tile-icon: #f7b983; --tile-ink: #623518; }
.guide [data-group="city"] { --tile: #bcebe7; --tile-icon: #93d8d2; --tile-ink: #12464a; }
.guide [data-group="people"] { --tile: #e4d6fa; --tile-icon: #d0b8ee; --tile-ink: #452673; }
.guide .guide-tile[data-topic="arrival"] { --tile: #e2d4ff; --tile-icon: #ceb4fa; --tile-ink: #452673; }
.guide .guide-tile[data-topic="running"] { --tile: #c8e7b8; --tile-icon: #a4d891; --tile-ink: #204723; }
.guide .guide-tile[data-topic="help"] { --tile: #ffd3cb; --tile-icon: #f9b0a6; --tile-ink: #6f2a27; }

.guide .guide-tile-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--tile-icon);
  color: inherit;
}

.guide .guide-tile-icon svg { width: 17px; height: 17px; }

.guide .guide-all { margin-top: 9px; }

.guide .guide-all summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #9db3bf;
  border-radius: 10px;
  background: #edf4f7;
  color: var(--guide-navy);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.guide .guide-all summary::-webkit-details-marker { display: none; }
.guide .guide-all summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  margin: -3px 2px 0 0;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.guide .guide-all[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.guide .guide-more { display: grid; gap: 15px; margin-top: 12px; }
.guide .guide-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--tile-ink, var(--guide-navy));
  font-size: 15px;
  font-weight: 700;
}
.guide .guide-group h3::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--tile-icon, var(--guide-line));
}

.guide .message {
  max-width: 100%;
  padding: clamp(12px, 3vw, 18px);
  border-color: var(--guide-line);
  border-radius: 3px 15px 15px 15px;
  background: white;
  color: var(--guide-ink);
}

.guide .message.user {
  width: fit-content;
  max-width: 90%;
  padding: 8px 12px;
  border-radius: 12px 12px 3px 12px;
  background: #fce4e0;
  color: #522e32;
}

.guide .messages .message > p {
  margin: 0;
  color: inherit;
  font-size: 16px;
  line-height: 1.46;
}

.guide .messages .message.user > p { font-size: 15px; font-weight: 600; }

.guide .message.streaming > .reply-text::after { content: none; }

.guide .messages .message > p.guide-reply-follow-up { margin-top: 12px; }

.guide .guide-contact {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 4px 11px;
  border: 1px solid #a7bbc6;
  border-radius: 8px;
  background: white;
  color: var(--guide-navy);
  font: 700 14px/1.25 var(--guide-font);
  text-decoration: none;
}

.guide .guide-contact:hover { background: #edf4f7; }
.guide .guide-contact:focus-visible { outline: 2px solid var(--guide-navy); outline-offset: 2px; }

.guide .message .speaker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--guide-navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.guide .message.user .speaker {
  display: block;
  margin-bottom: 2px;
  color: inherit;
  font-size: 12px;
}

.guide .guide-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--guide-navy);
  color: white;
  font-size: 17px;
  line-height: 1;
}

.guide .guide-cards { display: grid; gap: 11px; margin-top: 14px; }
.guide .guide-card {
  min-width: 0;
  border: 1px solid var(--guide-line);
  border-radius: 11px;
  overflow: hidden;
  background: white;
}

.guide .guide-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.guide .guide-card-story img { aspect-ratio: 4 / 3; }

.guide .guide-card-place {
  display: grid;
  grid-template-columns: clamp(86px, 30%, 162px) minmax(0, 1fr);
  align-items: start;
}
.guide .guide-card-place .guide-card-photo {
  margin: 10px 0 0 10px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f2ee;
}
.guide .guide-card-place img { aspect-ratio: 1; }

.guide .guide-card-body { min-width: 0; padding: 11px 12px; }
.guide .guide-card-title {
  margin: 0;
  color: var(--guide-navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.17;
}
.guide .guide-card-body p { margin: 4px 0 0; color: var(--guide-muted); font-size: 14px; line-height: 1.38; white-space: pre-line; }
.guide .guide-card-actions { display: flex; flex-wrap: wrap; gap: 0 12px; padding: 0 12px 7px; }
.guide .guide-card-place > .guide-card-actions { grid-column: 2; }
.guide .guide-card-actions a,
.guide .guide-card-exhibition a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--guide-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.guide .guide-card-actions a:hover,
.guide .guide-card-exhibition a:hover { text-decoration: underline; }

.guide .guide-card-exhibition {
  grid-column: 1 / -1;
  margin: 10px 11px 11px;
  padding: 9px 12px 2px;
  border-inline-start: 3px solid #a7bbc6;
  border-radius: 7px;
  background: #edf4f7;
  color: var(--guide-navy);
}

.guide .guide-card-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--guide-muted);
  font-size: 12px;
  font-weight: 700;
}

.guide .guide-card-exhibition-title { display: block; font-size: 16px; line-height: 1.25; }
.guide .guide-card-exhibition p { margin: 4px 0 0; color: var(--guide-muted); font-size: 14px; line-height: 1.38; }

.guide .guide-card-credit {
  grid-column: 1 / -1;
  display: block;
  padding: 4px 12px 6px;
  color: var(--guide-muted);
  font-size: 11px;
  line-height: 1.3;
}

.guide .guide-card-credit a { position: relative; z-index: 1; color: inherit; }

.guide .guide-card-map { position: relative; }
.guide .guide-card-map .guide-card-actions a::after { content: ""; position: absolute; inset: 0; }
.guide .guide-card-map:hover { border-color: #8da8b7; }
.guide .guide-card-map:focus-within { outline: 2px solid var(--guide-navy); outline-offset: 2px; }
.guide .guide-card-route { background: #edf4f7; }

.guide .chat-footer {
  padding: 0;
  max-height: none;
  overflow: visible;
}

.guide .chat-options summary { text-align: start; color: var(--guide-muted); }
.guide .breakfast-exit { width: 100%; margin-inline: 0; }
.guide .breakfast .bf-bubble { border-color: var(--guide-line); }

@keyframes guide-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 600px) {
  .guide .guide-tile { padding-inline: 10px; }
  .guide .guide-follow-up .guide-form-label { margin-top: 22px; font-size: 21px; }
}

@media (max-width: 480px) {
  .guide .guide-card-place > .guide-card-actions { grid-column: 1 / -1; }
}

@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  .lmf-guide-shell { box-shadow: 0 0 40px #172f4012; }
}

@media (max-width: 1099px), (pointer: coarse) {
  .lmf-guide-shell { width: 100%; }
}

@media (hover: hover) {
  .guide .guide-tile:hover { border-color: currentColor; transform: translateY(-1px); }
  .guide .guide-all summary:hover { background: #e0edf3; }
}

@media (prefers-reduced-motion: reduce) {
  .guide .guide-quick .guide-tile { animation: none; }
  .guide .guide-tile { transition: none; }
}
