/* Melos Tours — widget asistente flotante */
.melos-chat-root {
  position: fixed;
  bottom: 92px;
  right: 28px;
  z-index: 750;
  font-family: var(--body, 'Plus Jakarta Sans', sans-serif);
}

.melos-chat-launcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: linear-gradient(135deg, #00d45e 0%, #00a848 100%);
  color: #041a0c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(0, 212, 94, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.melos-chat-launcher:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0, 212, 94, 0.55);
}
.melos-chat-launcher-icon {
  display: flex;
  width: 22px;
  height: 22px;
}
.melos-chat-launcher-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.melos-chat-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  background: #0f1f14;
  border: 1px solid rgba(0, 212, 94, 0.25);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.melos-chat-panel[hidden] {
  display: none !important;
}

.melos-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0, 212, 94, 0.12);
  border-bottom: 1px solid rgba(0, 212, 94, 0.2);
}
.melos-chat-header-text strong {
  display: block;
  font-family: var(--display, 'Barlow Condensed', sans-serif);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.melos-chat-header-text span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.melos-chat-close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.melos-chat-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.melos-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 320px;
}

.melos-chat-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.melos-chat-msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-bottom-left-radius: 4px;
}
.melos-chat-msg--bot strong {
  color: #c8e835;
  font-weight: 700;
}
.melos-chat-msg--user {
  align-self: flex-end;
  background: rgba(0, 212, 94, 0.2);
  color: #eafff0;
  border-bottom-right-radius: 4px;
}
.melos-chat-msg--typing {
  opacity: 0.7;
  font-style: italic;
}

.melos-chat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.melos-chat-link {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(0, 212, 94, 0.18);
  border: 1px solid rgba(0, 212, 94, 0.35);
  color: #00d45e;
}
.melos-chat-link:hover {
  background: #00d45e;
  color: #041a0c;
}

.melos-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}
.melos-chat-chip {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.melos-chat-chip:hover {
  border-color: rgba(0, 212, 94, 0.4);
  color: #00d45e;
}

.melos-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}
.melos-chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
}
.melos-chat-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.melos-chat-form input:focus {
  outline: none;
  border-color: rgba(0, 212, 94, 0.5);
}
.melos-chat-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #00d45e;
  color: #041a0c;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.melos-chat-send:hover {
  filter: brightness(1.08);
}
.melos-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .melos-chat-root {
    right: 16px;
    bottom: 88px;
  }
  .melos-chat-launcher-label {
    display: none;
  }
  .melos-chat-launcher {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .melos-chat-panel {
    right: -4px;
    width: calc(100vw - 32px);
  }
}
