:root {
  --color-bg: #eef3ff;
  --color-surface: #ffffff;
  --color-surface-hover: #f4f7ff;
  --color-border: #d7deef;
  --color-text: #0e1b3d;
  --color-text-muted: #5a6585;
  --color-accent: #d9381e;
  --color-accent-hover: #b82e17;
  --color-accent-text: #ffffff;
  --font-heading: "Bricolage Grotesque", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Helvetica Neue", "Segoe UI", sans-serif;

  /* Neutral, Google-style palette for the floating map card (list + detail views) —
     deliberately not the app's own warm theme, to match that reference UI exactly. */
  --map-card-bg: #ffffff;
  --map-card-border: #e8eaed;
  --map-card-text: #202124;
  --map-card-text-muted: #5f6368;
  --map-card-hover: #f1f3f4;
  --map-card-accent: #202124;
  --map-card-accent-text: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: 0.01em;
}

.app-layout {
  min-height: 100vh;
  /* 260px for the fixed sidebar, plus a bit extra so the centered content column
     isn't flush against the sidebar — the navy sidebar reads as "occupied" visually,
     so true centering within the remaining space alone looks left-heavy. */
  padding-left: 288px;
}

/* The page scrolls as a whole (one browser-level scrollbar) instead of boxing the
   conversation into its own fixed-height scroll region — the sidebar is position:
   fixed (not sticky) so it always covers the full viewport height, even during
   elastic overscroll past the top/bottom of a long page, which a sticky sidebar
   can't guarantee once the document is taller than one screen. .app-layout's
   padding-left reserves space for it (plus a bit extra, see above) since it's no
   longer a flex sibling. */
html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: 999px;
}

.sidebar {
  width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.1rem 0.9rem;
  background: #0e1b3d;
  color: #ffffff;
}

.sidebar-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
}

.sidebar-brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-chat-button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  width: 100%;
  border: 2px solid #ffc83d;
  border-radius: 16px;
  background: #ffc83d;
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 #ffffff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.new-chat-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #ffffff;
}

.conversation-list-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
}

.conversation-list-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a9b6da;
  padding: 0 0.6rem 0.2rem;
}

.conversation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.conversation-item:hover {
  background: #1a2a52;
}

.conversation-item-active,
.conversation-item-active:hover {
  background: #24345f;
}

.conversation-item-badge {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.badge-coral { background: #ffe2da; color: #b8301a; }
.badge-blue { background: #dce6ff; color: #2747a8; }
.badge-purple { background: #e9ddff; color: #5b2bb5; }
.badge-yellow { background: #ffc83d; color: #0e1b3d; }
.badge-teal { background: #7fd6c2; color: #0e1b3d; }

.conversation-item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}

.conversation-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-item-meta {
  font-size: 0.78rem;
  color: #a9b6da;
}

.sidebar-about {
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem;
  border-radius: 14px;
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
  box-shadow: 4px 4px 0 #ffffff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sidebar-about:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #ffffff;
}

.sidebar-about-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}

.sidebar-social-links {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-social-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-accent-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}

.sidebar-social-link:hover {
  color: #ffc83d;
}

.conversation-item.disabled,
.new-chat-button.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.chat-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0 0.5rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
}

.brand-mark-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
}

.sidebar-toggle {
  display: none;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.chat-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* On the start screen (no messages yet), the log hugs its content instead of
   filling the page, and .chat-page-empty centers that content + the input bar
   together — so the input sits right under the greeting, not pinned to the
   bottom of the viewport. Widened to fit the two-column hero + stat cards. */
.chat-page-empty {
  justify-content: center;
  max-width: 1180px;
}

.chat-page-empty .chat-log {
  flex: 0 1 auto;
}

.chat-page-empty .chat-form {
  margin: 0;
}

.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2rem 1.25rem 2rem 0;
}

.empty-state {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  text-align: left;
  padding: 1.5rem 0 2rem;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

.hero-main {
  flex: 999 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-badge {
  align-self: flex-start;
  background: #ffc83d;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transform: rotate(-2deg);
}

.hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-title-accent {
  color: var(--color-accent);
}

.hero-subtitle {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 34rem;
  color: var(--color-text-muted);
}

.stat-grid {
  flex: 1 1 280px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card {
  border-radius: 20px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1;
}

.stat-label {
  font-weight: 500;
  font-size: 0.9rem;
}

.stat-card-navy {
  background: var(--color-text);
  color: var(--color-accent-text);
  transform: rotate(-3deg);
}

.stat-card-yellow {
  background: #ffc83d;
  color: var(--color-text);
  transform: rotate(2deg) translateY(10px);
}

.stat-card-teal {
  background: #7fd6c2;
  color: var(--color-text);
  transform: rotate(2deg);
}

.stat-card-accent {
  background: var(--color-accent);
  color: var(--color-accent-text);
  transform: rotate(-2deg) translateY(10px);
}

.suggestion-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.suggestion-label {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.suggestion-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
}

.suggestion-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  min-height: 150px;
  padding: 1.1rem;
  border: 2px solid var(--color-text);
  border-radius: 20px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.suggestion-chip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--color-text);
}

.suggestion-chip-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  background: #ffe2da;
}

.suggestion-chips .suggestion-chip:nth-child(2) .suggestion-chip-icon {
  color: #2747a8;
  background: #dce6ff;
}

.suggestion-chips .suggestion-chip:nth-child(3) .suggestion-chip-icon {
  color: #5b2bb5;
  background: #e9ddff;
}

.suggestion-chips .suggestion-chip:nth-child(4) .suggestion-chip-icon {
  color: var(--color-text);
  background: #ffc83d;
}

.suggestion-chips .suggestion-chip:nth-child(5) .suggestion-chip-icon {
  color: #1e7a64;
  background: #d4f3eb;
}

.suggestion-chip-city {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.suggestion-chip-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.15;
}

.suggestion-footer-hint {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.chat-bubble {
  max-width: 85%;
  font-size: 0.96rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.chat-bubble-user {
  align-self: flex-end;
  padding: 0.6rem 0.95rem;
  border-radius: 16px 16px 4px 16px;
  background: var(--color-accent);
  color: var(--color-accent-text);
}

.chat-bubble-assistant {
  align-self: flex-start;
  max-width: 100%;
  color: var(--color-text);
}

.chat-bubble-assistant p {
  margin: 0 0 0.75em;
}

.chat-bubble-assistant ul {
  margin: 0 0 0.75em;
  padding-left: 1.25em;
}

.chat-bubble-assistant li {
  margin-bottom: 0.25em;
}

.chat-bubble-assistant p:last-child,
.chat-bubble-assistant ul:last-child {
  margin-bottom: 0;
}

.chat-bubble-assistant strong {
  font-weight: 600;
}

.chat-bubble-assistant code {
  background: var(--color-surface);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}

.spot-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.spot-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--color-text);
  border-radius: 20px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.spot-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--color-text);
}

.spot-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.spot-card-badge {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spot-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.spot-card-category {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #ffe2da;
  color: #8e2312;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.spot-card-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.chat-bubble-pending {
  opacity: 0.55;
  font-style: italic;
  color: var(--color-text-muted);
}

.chat-map {
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.chat-map-canvas {
  position: absolute;
  inset: 0;
}

/* A floating card overlaid on the map, not a sidebar splitting its space. Collapses
   down to just its header on request, so the map underneath is easier to see. */
.chat-map-list {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 320px;
  max-width: calc(100% - 1.5rem);
  max-height: calc(100% - 1.5rem);
  overflow: hidden;
  background: var(--map-card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: max-height 0.2s ease;
}

.chat-map-list.chat-map-list-collapsed {
  max-height: 2.7rem;
}

.chat-map-list-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: none;
  border-bottom: 1px solid var(--map-card-border);
  background: none;
  color: var(--map-card-text);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}

.chat-map-list-toggle-icon {
  color: var(--map-card-text-muted);
  transition: transform 0.2s ease;
}

.chat-map-list-collapsed .chat-map-list-toggle-icon {
  transform: rotate(180deg);
}

.chat-map-list-items {
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.map-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: none;
  border-bottom: 1px solid var(--map-card-border);
  background: none;
  color: var(--map-card-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.map-list-item:last-child {
  border-bottom: none;
}

.map-list-item:hover,
.map-list-item-active {
  background: var(--map-card-hover);
}

.map-list-item-active {
  box-shadow: inset 3px 0 0 var(--map-card-accent);
}

.map-list-item-thumb {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 8px;
  object-fit: cover;
  background: var(--map-card-border);
}

.map-list-item-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 8px;
  background: var(--map-card-border);
  color: var(--map-card-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.map-list-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding-top: 0.1rem;
}

.map-list-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--map-card-text);
}

.map-list-item-meta {
  font-size: 0.82rem;
  color: var(--map-card-text-muted);
}

.map-list-item-note {
  font-size: 0.85rem;
  color: var(--map-card-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* A small white rating badge on the map itself — real rating when we have one,
   otherwise the spot's position in the list. Solid when it's the selected spot. */
.map-marker-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  border-radius: 6px;
  border: none;
  background: var(--map-card-bg);
  color: var(--map-card-text);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.map-marker-badge:hover {
  background: var(--map-card-hover);
  transform: scale(1.15);
}

.map-marker-badge-active {
  background: var(--map-card-accent);
  color: var(--map-card-accent-text);
}

/* The detail view replaces the list inside the same floating card when a spot is
   selected — same footprint, so the card doesn't jump in size when switching. */
.chat-map-detail-view {
  display: none;
  position: relative;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.chat-map-list-showing-detail .chat-map-list-header,
.chat-map-list-showing-detail .chat-map-list-items {
  display: none;
}

.chat-map-list-showing-detail .chat-map-detail-view {
  display: flex;
}

.chat-map-detail-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  width: 1.8rem;
  height: 1.8rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--map-card-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.chat-map-detail-photo {
  flex-shrink: 0;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--map-card-border);
}

.chat-map-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-map-detail-body {
  padding: 0.9rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chat-map-detail-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--map-card-text);
}

.chat-map-detail-meta {
  font-size: 0.85rem;
  color: var(--map-card-text-muted);
}

.chat-map-detail-directions {
  align-self: flex-start;
  margin-top: 0.3rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--map-card-accent);
  color: var(--map-card-accent-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.chat-map-detail-directions:hover {
  background: #000000;
}

.chat-map-detail-phone,
.chat-map-detail-website {
  font-size: 0.85rem;
  color: var(--map-card-text);
}

.chat-map-detail-notes-label {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--map-card-text-muted);
}

.chat-map-detail-notes {
  font-size: 0.88rem;
  color: var(--map-card-text);
}

.chat-map-detail-pager {
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-top: 1px solid var(--map-card-border);
}

.chat-map-detail-pager-label {
  font-size: 0.82rem;
  color: var(--map-card-text-muted);
}

.chat-map-detail-prev,
.chat-map-detail-next {
  width: 1.8rem;
  height: 1.8rem;
  border: none;
  border-radius: 50%;
  background: var(--map-card-hover);
  color: var(--map-card-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-map-detail-prev:disabled,
.chat-map-detail-next:disabled {
  opacity: 0.35;
  cursor: default;
}


.chat-form {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  border: 2px solid var(--color-text);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 4px 4px 0 var(--color-text);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.6rem 0;
  color: var(--color-text);
  font-size: 0.95rem;
}

.chat-form input::placeholder {
  color: var(--color-text-muted);
}

.chat-form input:focus {
  outline: none;
}

.chat-form-submit {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 14px;
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-size: 1.05rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.chat-form-submit:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.chat-form-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 700px) {
  .app-layout {
    padding-left: 0;
  }

  .chat-header {
    display: flex;
  }

  .sidebar-toggle {
    display: flex;
  }

  .sidebar {
    inset: 0 25% 0 0;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  }

  .app-layout.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .app-layout.sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 10;
  }

  .chat-page {
    padding: 0 0.9rem;
  }

  .chat-map {
    height: 480px;
  }

  /* On narrow screens the floating card becomes a bottom sheet instead of a
     top-right corner card, so it doesn't crowd out the map. */
  .chat-map-list {
    top: auto;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    width: auto;
    max-width: none;
    max-height: 45%;
  }
}
