/* Welcome banner injected by custom.js on the empty home page,
   shown between the logo and the chat input. */
#hermes-welcome {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 1.25rem auto;
  padding: 1rem 1.25rem;
  text-align: center;
  color: hsl(var(--foreground));
  animation: hermes-welcome-fade-in 0.25s ease-out;
}

#hermes-welcome h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: hsl(var(--foreground));
}

#hermes-welcome p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.35rem 0;
  color: hsl(var(--muted-foreground));
}

#hermes-welcome strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

@keyframes hermes-welcome-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Highlight LLM-recommended actions (hotels & activities). */
button:has(svg.lucide-sparkles) {
  border-color: hsl(var(--primary)) !important;
  background-color: hsl(var(--primary) / 0.10) !important;
  color: hsl(var(--primary)) !important;
  box-shadow:
    0 0 0 1px hsl(var(--primary) / 0.55),
    0 0 12px 2px hsl(var(--primary) / 0.45);
  animation: recommended-pulse 2.4s ease-in-out infinite;
}
button:has(svg.lucide-sparkles) svg.lucide-sparkles {
  color: hsl(var(--primary));
}
@keyframes recommended-pulse {
  0%, 100% { box-shadow: 0 0 0 1px hsl(var(--primary) / 0.55), 0 0 10px 2px hsl(var(--primary) / 0.35); }
  50%      { box-shadow: 0 0 0 1px hsl(var(--primary) / 0.75), 0 0 18px 4px hsl(var(--primary) / 0.55); }
}

/* Hotel preview popup card. */
#hotel-preview-popup {
  position: fixed;
  z-index: 9999;
  display: none;
  width: max-content;
  max-width: 320px;
  min-width: 180px;
  padding: 10px 12px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: popup-fade-in 0.15s ease-out;
  pointer-events: auto;
}

/* Invisible hover bridge so the cursor stays "inside" the popup
   while moving from the button to it (prevents flicker/disappear). */
#hotel-preview-popup::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
#hotel-preview-popup::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
}

.hotel-preview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hotel-preview-favicon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.hotel-preview-domain {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  text-align: center;
  word-break: break-all;
}

.hotel-preview-link {
  font-size: 13px;
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: hsl(var(--primary) / 0.08);
  transition: background 0.15s ease;
}

.hotel-preview-link:hover {
  background: hsl(var(--primary) / 0.15);
}

@keyframes popup-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* In any container that holds a recommended (sparkles) action, hide the
   feedback thumbs-up/down buttons (matched by their lucide icon classes). */
*:has(> button:has(svg.lucide-sparkles)) > button:has(svg.lucide-thumbs-up),
*:has(> button:has(svg.lucide-sparkles)) > button:has(svg.lucide-thumbs-down),
div:has(button:has(svg.lucide-sparkles)) button:has(svg.lucide-thumbs-up),
div:has(button:has(svg.lucide-sparkles)) button:has(svg.lucide-thumbs-down) {
  display: none !important;
}

/* Light green styling for non-recommended action buttons sitting next to a
   recommended (sparkles) action — makes them clearly visible as clickable. */
*:has(> button:has(svg.lucide-sparkles)) > button:not(:has(svg.lucide-sparkles)):not(:has(svg.lucide-thumbs-up)):not(:has(svg.lucide-thumbs-down)) {
  background-color: hsl(var(--primary) / 0.06) !important;
  border-color: hsl(var(--primary) / 0.25) !important;
  color: hsl(var(--primary)) !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
*:has(> button:has(svg.lucide-sparkles)) > button:not(:has(svg.lucide-sparkles)):not(:has(svg.lucide-thumbs-up)):not(:has(svg.lucide-thumbs-down)):hover {
  background-color: hsl(var(--primary) / 0.14) !important;
  border-color: hsl(var(--primary) / 0.45) !important;
}
