/* Pisco Chat UI */
.pclpv6-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;
  width: 120px;
  height: 110px;
  cursor: pointer;
  animation: pclpPulse 2s infinite ease-in-out;
}

@keyframes pclpPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pclpv6-chatbox {
  position: fixed;
  right: 16px;
  bottom: 140px;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(2,6,23,.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
}

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

.pclpv6-header {
  background:#f3f4f6;
  color:#111827;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:600;
}
.pclpv6-close {
  background:transparent;
  border:none;
  color:#1e3a8a;
  font-size:20px;
  cursor:pointer;
  line-height:1;
}

.pclpv6-messages {
  padding: 12px;
  overflow-y:auto;
  gap: 8px;
  display:flex;
  flex-direction:column;
}

.pclpv6-msg { padding:10px 12px; border-radius:10px; max-width:85%; }
.pclpv6-msg.user { align-self:flex-end; background:#e0f2fe; }
.pclpv6-msg.bot  { align-self:flex-start; background:#f3f4f6; }

.pclpv6-input-row {
  display:flex; gap:8px; padding:10px; border-top:1px solid #e5e7eb;
}
.pclpv6-input-row input {
  flex:1; padding:10px 12px; border:1px solid #d1d5db; border-radius:8px;
}
.pclpv6-input-row button {
  background:#1e3a8a; color:#fff; border:none; border-radius:8px; padding:10px 14px; cursor:pointer;
}

@media (max-width: 480px) {
  .pclpv6-chatbox { right: 8px; left: 8px; width:auto; bottom: 120px; }
  .pclpv6-launcher { right: 10px; bottom: 10px; width:100px; height:92px; }
}

/* Level 2 – Sava design + property cards */
.pclpv6-chatbox {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, .22);
  overflow: hidden;
}
.pclpv6-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  min-height: 52px;
  padding: 12px 14px;
}
.pclpv6-header strong { display:block; font-size:16px; line-height:1.1; }
.pclpv6-header span { display:block; font-size:12px; opacity:.88; font-weight:400; margin-top:2px; }
.pclpv6-close { color:#fff; opacity:.95; }
.pclpv6-messages { background:#f7f8fb; min-height: 320px; }
.pclpv6-msg { line-height:1.45; font-size:14px; }
.pclpv6-msg.bot { background:#fff; border:1px solid #e5e7eb; color:#172033; }
.pclpv6-msg.user { background:#dbeafe; color:#0f172a; }
.pclpv6-input-row { background:#fff; }
.pclpv6-input-row input { border-radius:999px; }
.pclpv6-input-row button { border-radius:999px; background:#1e3a8a; font-weight:700; }

.pclpv6-results {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:4px 0 12px 0;
  width:92%;
}
.pclpv6-card {
  display:flex;
  gap:10px;
  align-items:stretch;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  overflow:hidden;
  text-decoration:none;
  color:#111827;
  box-shadow:0 4px 14px rgba(15,23,42,.07);
  transition:transform .15s ease, box-shadow .15s ease;
}
.pclpv6-card:hover {
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(15,23,42,.11);
}
.pclpv6-card img {
  width:92px;
  min-height:86px;
  object-fit:cover;
  flex:0 0 92px;
  background:#e5e7eb;
}
.pclpv6-card-body {
  padding:9px 10px 8px 0;
  min-width:0;
}
.pclpv6-card-title {
  font-size:13px;
  line-height:1.3;
  font-weight:700;
  color:#111827;
  margin-bottom:4px;
}
.pclpv6-card-meta {
  font-size:12px;
  line-height:1.35;
  color:#64748b;
  margin-bottom:6px;
}
.pclpv6-card-link {
  font-size:12px;
  font-weight:700;
  color:#1e3a8a;
}
@media (max-width:480px) {
  .pclpv6-card img { width:82px; flex-basis:82px; }
  .pclpv6-results { width:100%; }
}
