.property-chatbot-online-dot {
  position: absolute;
  top: 6px;
  right: 0px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  z-index: 2;
}
.property-chatbot-newchat {
  background: #fff;
  color: #6C403F;
  border: 1.5px solid #6C403F;
  border-radius: 8px;
  padding: 4px 14px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: inherit;
  margin-left: 12px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.property-chatbot-newchat:hover {
  background: #6C403F;
  color: #fff;
}
/* --- Property Chatbot Styles --- */
.property-chatbot-root {
  position: fixed;
  bottom: -10px;
  right: 24px;
  z-index: 9999;
  font-family: 'Aileron', Arial, sans-serif;
  /* iOS scroll stability */
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}
.property-chatbot-fab {
  background: none;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 130px;
  height: 150px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: none;
  position: fixed;
  bottom: 13px;
  right: 10px;
  z-index: 10001;
  touch-action: manipulation;
}
.property-chatbot-fab img {
  width: 130px;
  height: 165px;
  object-fit: contain;
  background: none;
}
/* .property-chatbot-fab:hover {
  box-shadow: 0 4px 20px rgba(117,65,62,0.18);
} */
.property-chatbot-window {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 35px;
  right: 24px;
  width: 340px;
  max-width: 95vw;
  height: 600px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  z-index: 10000;
  transition: opacity 0.2s;
}
.property-chatbot-window.open {
  display: flex;
  opacity: 1;
}
.property-chatbot-header {
  display: flex;
  align-items: center;
  background: #6C403F;
  color: #fff;
  padding: 12px 16px;
  position: relative;
}
.property-chatbot-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.property-chatbot-avatar img {
  width: 48px;
  height: 48px;
  /* border-radius: 50%; */
  background: #fff;
  margin-right: 0;
  padding: 2px;
  object-fit: contain;
  /* box-shadow: 0 1px 4px rgba(0,0,0,0.10); */
}
.property-chatbot-title {
  font-family: 'Bai Jamjuree', 'Aileron', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  flex: 1;
}
.property-chatbot-title span {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  color: #f7e6e2;
}
.property-chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 8px;
}
.property-chatbot-messages {
  background: #f3f6fa;
  flex: 1;
  overflow-y: auto;
  padding: 18px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  max-height: 500px;
}
.property-chatbot-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2px;
}
.property-chatbot-msg.user {
  align-items: flex-end;
}
.property-chatbot-bubble {
  background: #fff;
  color: #222;
  border-radius: 16px 16px 16px 4px;
  padding: 10px 16px;
  font-size: 1rem;
  font-family: inherit;
  max-width: 100%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 2px;
  word-break: break-word;
}
.property-chatbot-msg.user .property-chatbot-bubble {
  background: #6C403F;
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
}
.property-chatbot-btns {
  display: flex;
  gap: 10px;
  margin: 6px 0 2px 0;
  flex-wrap: wrap;
}
.property-chatbot-btn {
  background: #6C403F;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 2px;
  transition: background 0.18s;
}
.property-chatbot-btn:disabled {
  background: #c7a29b;
  cursor: not-allowed;
}
.property-chatbot-btn:hover:not(:disabled) {
  background: #5e322e;
}
.property-chatbot-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 6px 0 2px 0;
}
.property-chatbot-form label {
  font-size: 0.85rem;
  color: #374151;
  font-weight: 500;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.property-chatbot-form input {
  padding: 4px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-top: 1px;
  font-family: inherit;
}
.property-chatbot-project-card {
  background: #e0e7ef;
  border-radius: 12px;
  padding: 10px 10px 10px 10px;
  margin: 10px 0 2px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.property-chatbot-project-card img {
  width: 100%;
  max-width: 265px;
  height: 178px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}
.property-chatbot-project-title {
  font-family: 'Bai Jamjuree', 'Aileron', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: #222;
}
.property-chatbot-project-type {
  font-size: 0.98rem;
  color: #6C403F;
  font-weight: 600;
}
.property-chatbot-project-desc {
  font-size: 0.97rem;
  color: #374151;
}

/* Logo inside avatar circle */
.chatbot-avatar {
    position: relative;
    width: 43px;
    height: 41px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-right: 8px;
    border: 1.5px solid #eee;
}
    .chatbot-avatar-logo {
    width: 32px;
    height: 32px;
    border-radius: 10%;
    object-fit: contain;
    display: block;
    z-index: 1;
    background: transparent;
    border: 1px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 0;
    }
.chatbot-avatar-initial {
  z-index: 1;
  font-family: 'Aileron', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.chatbot-status {
  position: absolute;
  right: -4px;
  top: 1px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  z-index: 2;
}
.chatbot-badge-info {
  display: flex;
  flex-direction: column;
}
.chatbot-badge-title {
  font-weight: 600;
}

/* ================= PROPERTY CHATBOT RESPONSIVE ================= */
@media (max-width: 992px) {
  .property-chatbot-fab {
    width: 160px;
    height: 120px;
    bottom: 79px;
    right: -25px;
  }
  .property-chatbot-fab img {
    width: 220px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .property-chatbot-root {
    /* Mobile scroll fix */
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: auto;
  }
  .property-chatbot-fab {
    width: 120px;
    height: 100px;
    bottom: 60px;
    right: -26px;
    /* Mobile scroll fix */
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: auto;
  }
  .property-chatbot-fab img {
    width: 180px;
    height: 187px;
  }
  .property-chatbot-window {
    width: 95vw;
    max-width: 95vw;
    right: -11px;
    bottom: 25px;
    height: 57vh;
  }
}

@media (max-width: 480px) {
  .property-chatbot-fab {
    width: 100px;
    height: 80px;
    bottom: 58px;
    right: -30px;
    /* Mobile scroll fix */
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: auto;
  }
  .property-chatbot-fab img {
    width: 140px;
    height: 160px;
  }
  .property-chatbot-window {
    width: 98vw;
    max-width: 98vw;
    right: -18px;
    bottom: 20px;
    height: 65vh;
  }
}
