/* Ask Live Roatán — compact bottom-right bubble. Never a full-screen takeover. */
#lr-ask {
  position: fixed;
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: var(--lr-bottom, calc(10px + 64px));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: auto;
  height: auto;
  max-width: none;
  pointer-events: none;
  font-family: inherit;
}
#lr-ask > * {
  pointer-events: auto;
}

.lr-ask-launcher {
  box-sizing: border-box;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #0B2E40;
  color: #fff;
  box-shadow: 0 4px 16px rgba(11, 46, 64, 0.32);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  appearance: none;
  -webkit-appearance: none;
}
.lr-ask-launcher:hover,
.lr-ask-launcher:focus-visible {
  background: #13465e;
  outline: 2px solid #F4A261;
  outline-offset: 2px;
}
.lr-ask-launcher-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff;
}
.lr-ask-launcher-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.lr-ask-launcher-icon.is-close {
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
}
#lr-ask.is-open .lr-ask-icon-chat { display: none; }
#lr-ask:not(.is-open) .lr-ask-icon-x { display: none; }

.lr-ask-panel {
  box-sizing: border-box;
  width: calc(100vw - 24px);
  max-width: calc(100vw - 24px);
  height: auto;
  max-height: min(70dvh, calc(var(--lr-vv-height, 100dvh) - var(--lr-bottom, 74px) - 12px));
  background: #fffaf3;
  border: 1px solid #e4d4c0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(11, 46, 64, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lr-ask-panel[hidden] {
  display: none !important;
}

.lr-ask-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.15rem 0 1rem;
  background: #0B2E40;
  color: #fff;
  flex: 0 0 auto;
}
.lr-ask-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.lr-ask-close {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.lr-ask-close:hover,
.lr-ask-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: 2px solid #F4A261;
  outline-offset: -2px;
}

.lr-ask-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.lr-ask-intro {
  margin: 0;
  font-size: 0.86rem;
  color: #3a4a52;
  line-height: 1.45;
}
.lr-ask-msg {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.lr-ask-msg-user {
  align-self: flex-end;
  background: #0B2E40;
  color: #fff;
}
.lr-ask-msg-assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #eadccb;
  color: #1a2a32;
}
.lr-ask-msg.is-thinking { color: #6a5a4a; font-style: italic; }
.lr-ask-msg.is-error { color: #7a2a2a; }

.lr-ask-form {
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem 0.7rem;
  border-top: 1px solid #eadccb;
  background: #fff;
}
.lr-ask-loc {
  border: 0;
  background: none;
  color: #0B2E40;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0 0 0.3rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lr-ask-row {
  display: flex;
  gap: 0.4rem;
  align-items: flex-end;
}
.lr-ask-row textarea {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 96px;
  border: 1px solid #d7c4ae;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 16px; /* prevent iOS input zoom */
  line-height: 1.35;
  background: #fffaf3;
}
.lr-ask-send {
  border: 0;
  border-radius: 10px;
  background: #E07A3D;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

@media (min-width: 801px) {
  #lr-ask {
    bottom: var(--lr-bottom, 18px);
  }
  .lr-ask-panel {
    width: 360px;
    max-width: 360px;
    height: 520px;
    max-height: min(520px, calc(var(--lr-vv-height, 100dvh) - var(--lr-bottom, 18px) - 12px));
  }
}

.lr-ask-msg-assistant {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lr-ask-answer { margin: 0; }

.lr-ask-places {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.lr-ask-place {
  background: #fff;
  border: 1px solid #eadccb;
  border-radius: 10px;
  overflow: hidden;
}
.lr-ask-place-main {
  display: block;
  padding: 0.55rem 0.65rem 0.4rem;
  color: inherit;
  text-decoration: none;
}
.lr-ask-place-main:hover,
.lr-ask-place-main:focus-visible {
  background: #fff6ea;
  outline: none;
}
.lr-ask-place-name {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0B2E40;
}
.lr-ask-place-meta {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #3a4a52;
}
.lr-ask-place.is-open .lr-ask-place-meta { }
.lr-ask-place-actions {
  display: flex;
  gap: 0.35rem;
  padding: 0 0.5rem 0.5rem;
}
.lr-ask-place-call,
.lr-ask-place-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.lr-ask-place-call {
  background: #0B2E40;
  color: #fff;
}
.lr-ask-place-maps {
  background: #fff;
  color: #0B2E40;
  border: 1px solid #d7c4ae;
}

.lr-ask-loc-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-height: 1.2rem;
}
.lr-ask-loc-status {
  margin: 0;
  padding: 0 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: #0B2E40;
  line-height: 1.3;
}
.lr-ask-loc-forget {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  font-weight: 650;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lr-ask-loc[hidden],
.lr-ask-loc-status[hidden] { display: none !important; }
