/* AURA concierge — the PHP site uses this lightweight, dependency-free widget. */
:root {
  --aura-ink: #173642;
  --aura-ocean: #0b4f6c;
  --aura-ocean-deep: #06364a;
  --aura-turquoise: #22b8c8;
  --aura-coral: #f4845f;
  --aura-surface: #fffdf9;
  --aura-muted: #617077;
  --aura-line: rgb(23 54 66 / 14%);
  --aura-shadow: 0 24px 70px rgb(5 38 51 / 23%);
}

.ai-chat-root {
  position: relative;
  z-index: 60;
}

.ai-chat-launcher-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  justify-items: end;
  gap: 10px;
  z-index: 80;
}

.ai-chat-launcher {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--aura-ocean), var(--aura-ocean-deep));
  box-shadow: 0 14px 30px rgb(5 38 51 / 28%), inset 0 1px 0 rgb(255 255 255 / 24%);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ai-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgb(5 38 51 / 32%), inset 0 1px 0 rgb(255 255 255 / 24%);
}

.ai-chat-launcher:active {
  transform: translateY(0);
}

.ai-chat-launcher:focus-visible,
.ai-chat-panel button:focus-visible,
.ai-chat-panel a:focus-visible,
.ai-chat-panel textarea:focus-visible {
  outline: 3px solid var(--aura-turquoise);
  outline-offset: 3px;
}

.ai-chat-launcher svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-chat-launcher-label {
  position: absolute;
  right: 70px;
  bottom: 8px;
  width: max-content;
  max-width: 210px;
  padding: 9px 13px;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 14px 14px 3px 14px;
  color: var(--aura-ink);
  background: rgb(255 253 249 / 95%);
  box-shadow: 0 10px 28px rgb(5 38 51 / 13%);
  font-size: 11px;
  line-height: 1.45;
  pointer-events: none;
}

.ai-chat-unread {
  position: absolute;
  top: -5px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid var(--aura-surface);
  border-radius: 999px;
  color: #fff;
  background: var(--aura-coral);
  font-size: 10px;
  font-weight: 700;
}

.ai-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 94px;
  display: flex;
  flex-direction: column;
  width: min(430px, calc(100vw - 32px));
  height: min(700px, calc(100vh - 120px));
  height: min(700px, calc(100dvh - 120px));
  min-height: min(430px, calc(100vh - 120px));
  min-height: min(430px, calc(100dvh - 120px));
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 25px;
  color: var(--aura-ink);
  background: rgb(255 253 249 / 97%);
  box-shadow: var(--aura-shadow);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  z-index: 79;
  transform-origin: bottom right;
  animation: aura-panel-in .22s ease both;
}

.ai-chat-panel[hidden] {
  display: none;
}

.ai-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgb(34 184 200 / 28%), transparent 42%),
    linear-gradient(135deg, var(--aura-ocean-deep), var(--aura-ocean));
}

.ai-chat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ai-chat-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 14px;
  color: #fff;
  background: rgb(255 255 255 / 14%);
}

.ai-chat-avatar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-chat-title {
  min-width: 0;
}

.ai-chat-title strong,
.ai-chat-title small {
  display: block;
}

.ai-chat-title strong {
  font: 600 20px/1.1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .01em;
}

.ai-chat-title small {
  margin-top: 4px;
  color: rgb(255 255 255 / 76%);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ai-chat-head-actions {
  display: flex;
  gap: 4px;
}

.ai-chat-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgb(255 255 255 / 88%);
  background: transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.ai-chat-icon-button:hover {
  color: #fff;
  background: rgb(255 255 255 / 15%);
}

.ai-chat-icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--aura-line);
  color: var(--aura-muted);
  background: rgb(246 250 248 / 92%);
  font-size: 10px;
}

.ai-chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34a853;
  box-shadow: 0 0 0 3px rgb(52 168 83 / 13%);
}

.ai-chat-status-dot.is-basic {
  background: var(--aura-coral);
  box-shadow: 0 0 0 3px rgb(244 132 95 / 15%);
}

.ai-chat-messages {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 14px 10px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(11 79 108 / 25%) transparent;
}

.ai-chat-empty {
  display: grid;
  gap: 12px;
  padding: 8px 4px 14px;
}

.ai-chat-intro {
  padding: 15px;
  border: 1px solid rgb(11 79 108 / 12%);
  border-radius: 18px 18px 18px 5px;
  background: linear-gradient(145deg, #edf7f5, #fff);
}

.ai-chat-intro h3 {
  margin: 0 0 6px;
  color: var(--aura-ocean);
  font: 600 24px/1.05 "Cormorant Garamond", Georgia, serif;
}

.ai-chat-intro p {
  margin: 0;
  color: #47616a;
  font-size: 12px;
  line-height: 1.65;
}

.ai-chat-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-chat-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid rgb(11 79 108 / 13%);
  border-radius: 13px;
  color: var(--aura-ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.ai-chat-quick:hover {
  border-color: rgb(11 79 108 / 42%);
  background: #f3faf8;
  transform: translateY(-1px);
}

.ai-chat-quick span:first-child {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--aura-ocean);
  background: #e4f3f0;
}

.ai-chat-quick svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-chat-quick strong {
  font-size: 11px;
  line-height: 1.3;
}

.ai-chat-message {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  animation: aura-message-in .18s ease both;
}

.ai-chat-message > div {
  min-width: 0;
}

.ai-chat-message.is-user {
  justify-content: flex-end;
}

.ai-chat-message.is-assistant {
  align-items: flex-start;
}

.ai-chat-message-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-top: 2px;
  border-radius: 9px;
  color: var(--aura-ocean);
  background: #e4f3f0;
}

.ai-chat-message-avatar svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-chat-bubble {
  max-width: min(86%, 350px);
  padding: 10px 12px;
  border: 1px solid var(--aura-line);
  border-radius: 16px 16px 16px 4px;
  color: var(--aura-ink);
  background: #fff;
  font-size: 12px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.ai-chat-message.is-user .ai-chat-bubble {
  border-color: transparent;
  border-radius: 16px 16px 4px 16px;
  color: #fff;
  background: var(--aura-ocean);
}

.ai-chat-bubble p {
  margin: 0 0 7px;
}

.ai-chat-bubble p:last-child {
  margin-bottom: 0;
}

.ai-chat-bubble ul {
  margin: 6px 0 7px;
  padding-left: 18px;
}

.ai-chat-bubble li {
  margin: 3px 0;
}

.ai-chat-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: rgb(97 112 119 / 78%);
  font-size: 9px;
}

.ai-chat-message.is-user .ai-chat-meta {
  justify-content: flex-end;
}

.ai-chat-feedback {
  display: inline-flex;
  gap: 2px;
}

.ai-chat-feedback button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--aura-muted);
  background: transparent;
  cursor: pointer;
}

.ai-chat-feedback button:hover,
.ai-chat-feedback button.is-selected {
  color: var(--aura-ocean);
  background: #e4f3f0;
}

.ai-chat-feedback svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
}

.ai-chat-typing i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aura-ocean);
  animation: aura-dot 1s ease-in-out infinite;
}

.ai-chat-typing i:nth-child(2) {
  animation-delay: .15s;
}

.ai-chat-typing i:nth-child(3) {
  animation-delay: .3s;
}

.ai-chat-cards {
  display: grid;
  width: calc(100% - 35px);
  min-width: 0;
  gap: 9px;
  margin: 5px 0 13px 35px;
}

.ai-chat-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
  border: 1px solid rgb(11 79 108 / 12%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgb(5 38 51 / 6%);
}

.ai-chat-card > div {
  min-width: 0;
}

.ai-chat-card img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.ai-chat-card h4 {
  margin: 0 0 3px;
  color: var(--aura-ocean);
  font-size: 12px;
  line-height: 1.3;
}

.ai-chat-card p {
  margin: 0;
  color: var(--aura-muted);
  font-size: 10px;
  line-height: 1.45;
}

.ai-chat-card .ai-chat-card-price {
  margin-top: 4px;
  color: var(--aura-ink);
  font-weight: 700;
}

.ai-chat-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 5px;
  color: var(--aura-ocean);
  font-size: 10px;
  font-weight: 700;
}

.ai-chat-offer-card {
  display: block;
  padding: 11px;
  border: 1px dashed rgb(161 98 7 / 45%);
  border-radius: 14px;
  background: #fff9eb;
}

.ai-chat-offer-card h4 {
  color: #855407;
}

.ai-chat-code {
  display: inline-flex;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 6px;
  color: #855407;
  background: #fde9b4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.ai-chat-itinerary {
  display: grid;
  width: calc(100% - 35px);
  min-width: 0;
  gap: 7px;
  margin: 5px 0 13px 35px;
}

.ai-chat-itinerary-item {
  padding: 9px 10px;
  border-left: 3px solid var(--aura-turquoise);
  border-radius: 0 10px 10px 0;
  background: #eff8f6;
}

.ai-chat-itinerary-item strong,
.ai-chat-itinerary-item span,
.ai-chat-itinerary-item p {
  display: block;
}

.ai-chat-itinerary-item span {
  color: var(--aura-ocean);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ai-chat-itinerary-item strong {
  margin-top: 2px;
  font-size: 11px;
}

.ai-chat-itinerary-item p {
  margin: 2px 0 0;
  color: var(--aura-muted);
  font-size: 10px;
  line-height: 1.45;
}

.ai-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 5px 14px 9px;
}

.ai-chat-suggestions:empty {
  display: none;
}

.ai-chat-suggestion {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid rgb(11 79 108 / 22%);
  border-radius: 999px;
  color: var(--aura-ocean);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.ai-chat-suggestion:hover {
  border-color: var(--aura-ocean);
  background: #eaf7f4;
}

.ai-chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--aura-line);
  background: rgb(255 253 249 / 98%);
}

.ai-chat-composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 54px;
  max-height: 110px;
  padding: 10px 11px;
  border: 1px solid rgb(23 54 66 / 18%);
  border-radius: 13px;
  outline: none;
  color: var(--aura-ink);
  background: #fff;
  font-size: 12px;
  line-height: 1.4;
  overflow-y: hidden;
  resize: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.ai-chat-composer textarea:focus {
  border-color: var(--aura-ocean);
  box-shadow: 0 0 0 3px rgb(11 79 108 / 12%);
}

.ai-chat-composer textarea::placeholder {
  color: #87959a;
}

.ai-chat-composer button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--aura-ocean);
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
}

.ai-chat-composer button:hover {
  background: var(--aura-ocean-deep);
  transform: translateY(-1px);
}

.ai-chat-composer button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.ai-chat-composer .ai-chat-voice {
  color: var(--aura-ocean);
  background: #e4f3f0;
}

.ai-chat-composer .ai-chat-voice.is-listening {
  color: #fff;
  background: var(--aura-coral);
}

.ai-chat-composer svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-chat-privacy {
  margin: -4px 14px 10px;
  color: #7b898d;
  font-size: 11px;
  line-height: 1.4;
}

.ai-chat-privacy a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--aura-ocean);
  font-weight: 700;
}

@keyframes aura-panel-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes aura-dot {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 768px) {
  body.page-news .ai-chat-launcher-wrap,
  body.page-article .ai-chat-launcher-wrap {
    display: none;
  }
}

@media (max-width: 480px) {
  body.ai-chat-modal-open {
    overflow: hidden;
  }

  .ai-chat-launcher-wrap {
    right: 16px;
    bottom: 16px;
  }

  .ai-chat-launcher-label {
    display: none;
  }

  .ai-chat-panel {
    left: 8px;
    right: 8px;
    bottom: 84px;
    width: auto;
    height: min(700px, calc(100vh - 100px));
    height: min(700px, calc(100dvh - 100px));
    min-height: min(400px, calc(100vh - 100px));
    min-height: min(400px, calc(100dvh - 100px));
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    border-radius: 21px;
  }

  .ai-chat-cards,
  .ai-chat-itinerary {
    width: 100%;
    margin-left: 0;
  }

  .ai-chat-composer textarea {
    font-size: 16px;
  }

  body.page-news .ai-chat-panel,
  body.page-article .ai-chat-panel {
    bottom: max(8px, env(safe-area-inset-bottom));
    height: calc(100vh - 16px - env(safe-area-inset-bottom));
    height: calc(100dvh - 16px - env(safe-area-inset-bottom));
    min-height: 0;
    max-height: calc(100vh - 16px - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .ai-chat-head {
    padding-inline: 12px;
  }

  .ai-chat-title small {
    display: none;
  }

  .ai-chat-quick-grid {
    grid-template-columns: 1fr;
  }

  .ai-chat-messages {
    padding-inline: 10px;
  }
}

@media (max-height: 520px) {
  .ai-chat-root.is-open .ai-chat-launcher-wrap {
    display: none;
  }

  .ai-chat-panel {
    bottom: 8px;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    min-height: 0;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .ai-chat-head {
    padding-block: 10px;
  }

  .ai-chat-title small,
  .ai-chat-suggestions,
  .ai-chat-privacy {
    display: none;
  }

  .ai-chat-status {
    padding-block: 6px;
  }

  .ai-chat-composer {
    padding-block: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-panel,
  .ai-chat-message,
  .ai-chat-typing i,
  .ai-chat-launcher {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .ai-chat-panel,
  .ai-chat-quick,
  .ai-chat-card,
  .ai-chat-composer textarea {
    forced-color-adjust: none;
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  .ai-chat-launcher,
  .ai-chat-composer button {
    forced-color-adjust: none;
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
  }
}
