.faq-chatbot {
  position: fixed;
  right: 1.5rem;
  bottom: 100px;
  z-index: 65;
  font-family: var(--font-family, 'Poppins', Arial, sans-serif);
  font-size: 14px;
}
.faq-chatbot [hidden] { display: none !important; }
.faq-launcher, .faq-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  cursor: pointer;
}
.faq-panel {
  position: absolute;
  bottom: 56px;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(460px, calc(100vw - 3rem));
  height: min(680px, calc(100dvh - 176px));
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--text-main);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
}
.faq-heading { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 1rem; border-bottom: 1px solid var(--border-color); background: var(--primary); color: #FFFFFF; }
.faq-heading h2 { margin: 0 0 0.25rem; font-size: 1.1rem; color: inherit; }
.faq-heading span { font-size: 0.78rem; color: #FFFFFF; }
.faq-close { flex-shrink: 0; width: 44px; height: 44px; background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1.5rem; cursor: pointer; }
.faq-notice { flex-shrink: 0; margin: 0; padding: 0.5rem 0.85rem; font-size: 0.75rem; line-height: 1.45; background: var(--bg-subtle); }
.faq-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; background: #F8FAFC; }
.faq-message { width: fit-content; max-width: 100%; box-sizing: border-box; margin-bottom: 0.85rem; padding: 0.85rem 1rem; border: 1px solid var(--border-color); border-radius: 12px 12px 12px 3px; background: #FFFFFF; overflow-wrap: anywhere; }
.faq-message p { margin: 0; color: inherit; white-space: pre-line; font-size: 0.95rem; line-height: 1.65; }
.faq-message--visitor { margin-left: auto; background: #FEF3C7; }
.faq-message a, .faq-message button { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.35rem; padding: 0.25rem 0; border: 0; background: transparent; color: var(--primary); font-size: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.faq-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: max-content; flex-shrink: 0; max-height: 112px; overflow-y: auto; overscroll-behavior: contain; gap: 0.35rem; padding: 0.5rem 0.65rem; border-top: 1px solid var(--border-color); }
.faq-topics button { box-sizing: border-box; min-width: 0; width: 100%; height: auto; min-height: 44px; max-height: none; padding: 0.4rem; border: 1px solid var(--border-dark); border-radius: 8px; background: #FFFFFF; color: var(--text-main); font-size: 0.78rem; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; word-break: normal; cursor: pointer; }
.faq-topics button:hover,
.faq-topics button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.faq-topics-label { flex-shrink: 0; margin: 0; padding: 0.6rem 0.85rem 0; font-size: 0.8rem; font-weight: 700; }
.faq-form { flex-shrink: 0; padding: 0.5rem 0.85rem 0.65rem; border-top: 1px solid var(--border-color); }
.faq-form label { display: block; margin-bottom: 0.35rem; font-size: 0.8rem; font-weight: 700; }
.faq-form > div { display: flex; gap: 0.4rem; }
.faq-form input { min-width: 0; width: 100%; min-height: 44px; padding: 0.6rem; border: 1px solid var(--border-dark); border-radius: 8px; font-size: 16px; }
.faq-chatbot :is(button, a, [tabindex]):focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.faq-form input:focus,
.faq-form input:focus-visible {
  outline: none;
  box-shadow: none !important;
  border-color: var(--border-dark);
}
@media (max-width: 640px) {
  .faq-chatbot { right: 0.875rem; bottom: calc(0.65rem + env(safe-area-inset-bottom)); }
  .landing-page.booking-actions-visible .faq-chatbot { bottom: calc(46px + 1.95rem + env(safe-area-inset-bottom)); }
  .landing-page.mobile-nav-open .faq-chatbot { visibility: hidden; }
  .faq-panel { position: fixed; top: calc(0.5rem + env(safe-area-inset-top)); right: 0.5rem; bottom: calc(0.5rem + env(safe-area-inset-bottom)); left: 0.5rem; width: auto; height: auto; }
  .faq-heading { padding: 0.65rem 0.85rem; }
  .faq-messages { padding: 0.75rem; }
  .faq-message { padding: 0.7rem 0.8rem; }
  .faq-topics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
}
@media (max-height: 500px) {
  .faq-panel { position: fixed; top: 0.5rem; bottom: 0.5rem; right: 0.5rem; height: auto; }
  .faq-notice { padding-block: 0.25rem; }
  .faq-topics { max-height: 52px; }
  .faq-heading { padding-block: 0.25rem; }
}
/* This stylesheet loads after the page stylesheets, so these rules win the
   cascade over the equal-specificity !important footer padding. Keep the last
   footer link above its floating launcher at the bottom of the page. */
.landing-page footer { padding-bottom: 5rem !important; }
/* Desktop/tablet launcher sits ~145px above the viewport bottom, so lift the
   footer's last row fully clear of it when scrolled to the end. */
@media (min-width: 641px) {
  .landing-page footer { padding-bottom: 10rem !important; }
}
