/* ─── AURORA AI WIDGET ───────────────────────────────── */
#aurora-widget {
  position: fixed;
  bottom: 6.8rem;
  right: 2rem;
  z-index: 79;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
  font-family: 'Raleway', sans-serif;
}

/* Botão de abertura — só a bolinha */
#aurora-btn {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #0e3b43 0%, #175060 100%);
  border: 1.5px solid rgba(200,155,91,.3);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(7,30,36,.35);
  transition: transform .25s ease, box-shadow .25s ease;
  user-select: none;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
#aurora-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(7,30,36,.48);
}
#aurora-btn .aurora-icon {
  font-size: 1.4rem;
  line-height: 1;
}
#aurora-btn .aurora-icon i {
  color: #7dd8e8;
  filter: drop-shadow(0 0 6px rgba(125,216,232,.55));
}
#aurora-btn span { display: none; }
#aurora-btn .aurora-dot {
  position: absolute;
  top: 3px; right: 3px;
  width: 10px; height: 10px;
  background: #4ade80;
  border-radius: 50%;
  border: 2px solid #0e3b43;
  box-shadow: 0 0 6px #4ade80;
  animation: auroraPulse 2s ease infinite;
}
@keyframes auroraPulse {
  0%,100% { opacity: 1; } 50% { opacity: .45; }
}

/* Janela do chat */
#aurora-chat {
  display: none;
  flex-direction: column;
  width: 340px;
  max-height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(7,30,36,.28), 0 0 0 1px rgba(200,155,91,.15);
  overflow: hidden;
  animation: auroraSlideUp .3s ease;
}
#aurora-chat.open { display: flex; }
@keyframes auroraSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.aurora-header {
  background: linear-gradient(135deg, #0e3b43 0%, #175060 100%);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.aurora-header-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #c89b5b, #b88746);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.aurora-header-avatar i {
  color: #fff;
}
.aurora-header-info { flex: 1; }
.aurora-header-name {
  font-size: .82rem;
  font-weight: 700;
  color: #e2c49a;
  letter-spacing: .04em;
}
.aurora-header-status {
  font-size: .65rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
}
.aurora-header-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.5);
  font-size: 1.1rem;
  padding: .2rem .3rem;
  transition: color .2s;
  line-height: 1;
}
.aurora-header-close:hover { color: #fff; }

/* Mensagens */
#aurora-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  background: #f8f6f2;
  scrollbar-width: thin;
  scrollbar-color: #d4a373 transparent;
}
#aurora-messages::-webkit-scrollbar { width: 3px; }
#aurora-messages::-webkit-scrollbar-thumb { background: #d4a373; border-radius: 4px; }

.aurora-msg {
  max-width: 86%;
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .8rem;
  line-height: 1.65;
  animation: aurMsgIn .25s ease;
}
@keyframes aurMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.aurora-msg.bot {
  background: #fff;
  color: #161616;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.aurora-msg.user {
  background: linear-gradient(135deg, #0e3b43, #175060);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.aurora-msg strong { color: #b88746; }
.aurora-msg.bot strong { color: #0e3b43; }

/* Indicador de digitação */
.aurora-typing {
  display: flex; align-items: center; gap: 4px;
  padding: .6rem .9rem;
  background: #fff;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.aurora-typing span {
  width: 6px; height: 6px;
  background: #b88746;
  border-radius: 50%;
  animation: aurDot 1.2s ease infinite;
}
.aurora-typing span:nth-child(2) { animation-delay: .2s; }
.aurora-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes aurDot {
  0%,80%,100% { transform: scale(.7); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Botões rápidos */
#aurora-quick {
  padding: .6rem .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  background: #f8f6f2;
  border-top: 1px solid #ede8df;
  flex-shrink: 0;
}
.aurora-quick-btn {
  font-family: 'Raleway', sans-serif;
  font-size: .68rem;
  letter-spacing: .06em;
  font-weight: 600;
  padding: .38rem .75rem;
  border: 1.5px solid #c89b5b;
  background: transparent;
  color: #8a6230;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.aurora-quick-btn:hover {
  background: #c89b5b;
  color: #fff;
}

/* Input */
#aurora-input-area {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem .9rem;
  border-top: 1px solid #ede8df;
  background: #fff;
  flex-shrink: 0;
}
#aurora-input {
  flex: 1;
  border: 1px solid #ede8df;
  border-radius: 20px;
  padding: .5rem .9rem;
  font-family: 'Raleway', sans-serif;
  font-size: .78rem;
  color: #161616;
  background: #f8f6f2;
  outline: none;
  transition: border-color .2s;
}
#aurora-input:focus { border-color: #c89b5b; }
#aurora-input::placeholder { color: rgba(22,22,22,.38); }
#aurora-send {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #c89b5b, #b88746);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: .85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0;
}
#aurora-send:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(184,135,70,.4); }

/* Card de imóvel no chat */
.aurora-prop-card {
  background: #fff;
  border: 1px solid #ede8df;
  border-left: 3px solid #c89b5b;
  border-radius: 10px;
  padding: .75rem .9rem;
  font-size: .76rem;
  align-self: flex-start;
  max-width: 92%;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  animation: aurMsgIn .25s ease;
}
.aurora-prop-card .apc-name {
  font-weight: 700;
  color: #0e3b43;
  font-size: .8rem;
  margin-bottom: .2rem;
}
.aurora-prop-card .apc-price {
  color: #b88746;
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: .35rem;
}
.aurora-prop-card .apc-loc {
  color: rgba(22,22,22,.55);
  font-size: .7rem;
  margin-bottom: .45rem;
}
.aurora-prop-card .apc-feat {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-bottom: .55rem;
}
.aurora-prop-card .apc-tag {
  font-size: .62rem;
  background: #f0ebe3;
  color: #8a6230;
  padding: .18rem .55rem;
  border-radius: 10px;
  font-weight: 600;
}
.aurora-prop-card .apc-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #25d366;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  padding: 0;
  text-decoration: none;
}

@media(max-width: 480px) {
  #aurora-widget { bottom: 6rem; right: 1rem; }
  #aurora-chat { width: calc(100vw - 2rem); }
  #aurora-btn { width: 48px; height: 48px; }
  #aurora-btn .aurora-icon { font-size: 1.2rem; }
}
@media(max-width: 360px) {
  #aurora-widget { right: .75rem; }
  #aurora-chat { width: calc(100vw - 1.5rem); }
}
