/* Pisco Chat UI v6.9 */
.pclpv6-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;
  width: 118px;
  height: 108px;
  cursor: pointer;
  animation: pclpPulse 2.4s infinite ease-in-out;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, .22));
}

@keyframes pclpPulse {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.035); }
  100% { transform: translateY(0) scale(1); }
}

.pclpv6-chatbox {
  position: fixed;
  right: 16px;
  bottom: 138px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: min(640px, 74vh);
  background: #fff;
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(15,23,42,.26);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.pclpv6-chatbox.open { display: flex; }

.pclpv6-header {
  background: linear-gradient(135deg,#0f2f6e,#1e3a8a 52%,#2563eb);
  color:#fff;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:700;
}
.pclpv6-header strong{display:block;font-size:16px;line-height:1.1;}
.pclpv6-header span{display:block;font-size:12px;font-weight:500;opacity:.86;margin-top:2px;}
.pclpv6-close {
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  width:32px;
  height:32px;
  border-radius:999px;
  font-size:22px;
  cursor:pointer;
  line-height:28px;
}

.pclpv6-messages {
  flex:1;
  padding: 14px;
  overflow-y:auto;
  gap: 10px;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.08), transparent 34%),
    linear-gradient(180deg,#f8fafc,#eef3f9);
}

.pclpv6-msg {
  padding:11px 13px;
  border-radius:16px;
  max-width:86%;
  font-size:14px;
  line-height:1.45;
  white-space:pre-wrap;
  box-shadow:0 3px 10px rgba(15,23,42,.045);
}
.pclpv6-msg.user {
  align-self:flex-end;
  background:#1e3a8a;
  color:#fff;
  border-bottom-right-radius:5px;
}
.pclpv6-msg.bot  {
  align-self:flex-start;
  background:#fff;
  color:#111827;
  border:1px solid rgba(226,232,240,.95);
  border-bottom-left-radius:5px;
}

.pclpv6-input-row {
  display:flex;
  gap:8px;
  padding:12px;
  border-top:1px solid #e5e7eb;
  background:#fff;
}
.pclpv6-input-row input {
  flex:1;
  padding:12px 13px;
  border:1px solid #d1d5db;
  border-radius:999px;
  outline:none;
  font-size:14px;
}
.pclpv6-input-row input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12);}
.pclpv6-input-row button {
  background:#1e3a8a;
  color:#fff;
  border:none;
  border-radius:999px;
  padding:10px 16px;
  cursor:pointer;
  font-weight:700;
  box-shadow:0 8px 18px rgba(30,58,138,.22);
}

.pclpv6-property-results{
  display:flex;
  flex-direction:column;
  gap:9px;
  width:94%;
  align-self:flex-start;
  margin-top:-2px;
}
.pclpv6-property-card{
  display:flex;
  gap:10px;
  background:#fff;
  border:1px solid rgba(203,213,225,.9);
  border-radius:16px;
  padding:9px;
  color:#111827;
  text-decoration:none;
  box-shadow:0 6px 18px rgba(15,23,42,.07);
  transition:transform .16s ease, box-shadow .16s ease;
}
.pclpv6-property-card:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(15,23,42,.12);}
.pclpv6-property-card img{width:82px;height:70px;object-fit:cover;border-radius:12px;flex:0 0 82px;background:#e5e7eb;}
.pclpv6-property-card strong{display:block;font-size:13.5px;line-height:1.25;color:#0f172a;margin-bottom:4px;}
.pclpv6-property-card span{display:block;font-size:12px;color:#64748b;line-height:1.35;margin-bottom:5px;}
.pclpv6-property-card em{display:inline-flex;font-style:normal;font-size:12px;font-weight:800;color:#1d4ed8;}

@media (max-width: 480px) {
  .pclpv6-chatbox { right: 8px; left: 8px; width:auto; bottom: 118px; height:70vh; }
  .pclpv6-launcher { right: 10px; bottom: 10px; width:100px; height:92px; }
  .pclpv6-property-card img{width:72px;height:62px;flex-basis:72px;}
}
