/* Rentify Modern Chatbot Styles */
:root {
  --chatbot-primary: #100351; /* Dark Purple */
  --chatbot-accent: #f6e900; /* Bright Yellow */
  --chatbot-text: #333333;
  --chatbot-text-light: #ffffff;
  --chatbot-bg: #ffffff;
  --chatbot-bg-light: #f8f9fa;
  --chatbot-border: #e0e0e0;
  --chatbot-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --chatbot-radius: 16px;
  --chatbot-transition: all 0.3s ease;
  --chatbot-z-index: 999999;
}

/* Chatbot Container */
.rentify-chatbot-container {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  right: max(20px, env(safe-area-inset-right, 20px));
  z-index: var(--chatbot-z-index);
  font-family: "Montserrat", sans-serif;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

/* Chatbot Bubble */
.rentify-chatbot-bubble {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgb(6, 6, 95);
  /* background: #dfd20a; */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--chatbot-shadow);
  position: relative;
  transition: var(--chatbot-transition);
  pointer-events: auto;
  align-self: flex-end;
  opacity: 0;
  transform: scale(0.5);
}

.rentify-chatbot-bubble.show {
  opacity: 1;
  transform: scale(1);
  animation: chatBubbleEntrance 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rentify-chatbot-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.rentify-chatbot-bubble-icon svg {
  color: white;
  transition: var(--chatbot-transition);
}

.rentify-chatbot-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--chatbot-accent);
  color: var(--chatbot-primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0);
  transition: var(--chatbot-transition);
}

.rentify-chatbot-notification-badge.pulse {
  animation: pulse 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rentify-chatbot-notification-badge.hidden {
  display: none;
}

/* Chatbot Window */
.rentify-chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: min(380px, calc(100vw - 40px));
  height: min(550px, calc(100vh - 140px));
  max-height: calc(100vh - 140px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--chatbot-transition);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  border: 1px solid rgba(230, 230, 230, 0.3);
  z-index: 1000000;
}

.rentify-chatbot-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: chatWindowOpen 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rentify-chatbot-window.minimized {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
}

@keyframes chatWindowOpen {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Chatbot Header */
.rentify-chatbot-header {
  background: linear-gradient(135deg, #0c0134 0%, #090125 100%);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 2px 10px rgba(16, 3, 81, 0.1);
}

.rentify-chatbot-header-info {
  display: flex;
  align-items: center;
}

.rentify-chatbot-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px; /* Add this to prevent squishing */
  min-height: 44px; /* Add this to prevent squishing */
  border-radius: 50%;
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  position: relative; /* Add this */
}

.rentify-chatbot-avatar.small {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-width: 2px;
}

.rentify-chatbot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rentify-chatbot-title {
  display: flex;
  flex-direction: column;
}

.rentify-chatbot-title h3 {
  color: var(--chatbot-text-light);
  font-weight: 700;
  font-size: 17px;
  margin: 0;
  padding: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rentify-chatbot-status {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rentify-chatbot-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
  }
  50% {
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.8);
  }
  100% {
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
  }
}

.rentify-chatbot-header-actions {
  display: flex;
  gap: 8px;
}

.rentify-chatbot-header-actions button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--chatbot-text-light);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.rentify-chatbot-header-actions button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.rentify-chatbot-refresh {
  position: relative;
}

.rentify-chatbot-refresh:hover {
  background: rgba(246, 233, 0, 0.2) !important;
  border-color: rgba(246, 233, 0, 0.3) !important;
  color: var(--chatbot-accent) !important;
}

.rentify-chatbot-refresh:active {
  transform: scale(0.95) rotate(180deg);
  transition: transform 0.3s ease;
}

/* Messages Container */
.rentify-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #fafbfc;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(16, 3, 81, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(246, 233, 0, 0.03) 0%,
      transparent 50%
    );
  scroll-behavior: smooth;
}

.rentify-chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.rentify-chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.rentify-chatbot-messages::-webkit-scrollbar-thumb {
  background-color: rgba(16, 3, 81, 0.2);
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.rentify-chatbot-messages::-webkit-scrollbar-thumb:hover {
  background-color: rgba(16, 3, 81, 0.4);
}
/* Enhanced Message Styling */
.rentify-chatbot-message {
  display: flex;
  align-items: flex-start;
  max-width: 85%;
  animation: messageAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 16px;
}

.rentify-chatbot-message.bot-message {
  align-self: flex-start;
}

.rentify-chatbot-message.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-content {
  padding: 14px 18px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-message .message-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom-left-radius: 6px;
  margin-left: 8px;
  color: var(--chatbot-text);
  border-color: rgba(16, 3, 81, 0.1);
}

.user-message .message-content {
  background: linear-gradient(135deg, var(--chatbot-primary) 0%, #2d1b69 100%);
  border-bottom-right-radius: 6px;
  margin-right: 8px;
  color: var(--chatbot-text-light);
  box-shadow: 0 3px 12px rgba(16, 3, 81, 0.25);
}

.message-content p {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
  word-break: break-word;
  font-weight: 500;
}

.message-time {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 6px;
  display: block;
  text-align: right;
  font-weight: 400;
}

.message-feedback {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
  opacity: 0;
  transition: all 0.3s ease;
}

.bot-message .message-content:hover .message-feedback {
  opacity: 1;
}

.feedback-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 12px;
  color: var(--chatbot-text);
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.feedback-button:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.feedback-button.like:hover {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.feedback-button.dislike:hover {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

@keyframes messageAppear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rentify-chatbot-feedback-confirmation {
  align-self: center;
  background-color: var(--chatbot-bg-light);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin: 10px 0;
  color: var(--chatbot-text);
  animation: fadeIn 0.3s ease-out;
  text-align: center;
  border: 1px solid var(--chatbot-border);
}

.rentify-chatbot-feedback-confirmation.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

/* Typing Indicator */
.typing-indicator {
  align-self: flex-start;
}

.typing-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--chatbot-bg);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: 60px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--chatbot-border);
  border-radius: 50%;
  display: inline-block;
  animation: typingAnimation 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

/* Suggested Messages inside Chat */
.suggested-messages-container {
  margin: 15px 0;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: block !important;
  max-width: 100% !important;
}

.suggestions-content {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
  border: 1px solid #e1e8f5;
  border-radius: 12px;
  padding: 16px;
  margin: 8px 0;
}

.suggestions-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--chatbot-primary);
}

.suggestions-title i {
  color: #f39c12;
  font-size: 14px;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.suggested-message-pill {
  background: white;
  border: 1px solid #dfe6f1;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: var(--chatbot-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.suggested-message-pill:hover {
  background: var(--chatbot-primary);
  color: white;
  border-color: var(--chatbot-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(16, 3, 81, 0.15);
}

.suggested-message-pill i {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.suggested-message-pill:hover i {
  transform: translateX(2px);
  opacity: 1;
}

/* Enhanced Property Cards */
.property-image {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.rentify-chatbot-property-card:hover .property-overlay {
  opacity: 1;
}

.property-quick-info {
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.property-type {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.property-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--chatbot-primary);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.property-details {
  padding: 16px;
}

.property-details h4 {
  font-size: 16px;
  margin: 0 0 8px 0;
  font-weight: 700;
  color: var(--chatbot-text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--chatbot-primary);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-price i {
  font-size: 12px;
  opacity: 0.8;
}

.property-location {
  font-size: 12px;
  margin: 0 0 12px 0;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-location i {
  color: #e74c3c;
  font-size: 11px;
}

.property-specs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px 0;
  flex-wrap: wrap;
}

.property-specs .spec {
  font-size: 11px;
  color: #666;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e9ecef;
}

.property-specs .spec i {
  font-size: 10px;
  color: var(--chatbot-primary);
}

.property-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.property-cta {
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-cta.primary {
  background: var(--chatbot-primary);
  color: white;
  padding: 10px 16px;
  flex: 1;
}

.property-cta.primary:hover {
  background: #1a0562;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 3, 81, 0.25);
}

.property-cta.secondary {
  background: #f8f9fa;
  color: #666;
  padding: 10px;
  border: 1px solid #e9ecef;
  width: 40px;
  height: 40px;
  justify-content: center;
}

.property-cta.secondary:hover {
  background: #e9ecef;
  color: #e74c3c;
  transform: scale(1.05);
}

/* Enhanced Property Cards Container */
.rentify-chatbot-property-cards-container {
  margin: 16px 0;
  padding: 8px 0;
}

.rentify-chatbot-property-card {
  width: 280px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.rentify-chatbot-property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--chatbot-primary);
}

/* Navigation Arrows Enhancement */
.property-nav-arrow {
  background: white;
  border: 2px solid var(--chatbot-primary);
  color: var(--chatbot-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.property-nav-arrow:hover {
  background: var(--chatbot-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(16, 3, 81, 0.25);
}

/* Enhanced Input Area */
.rentify-chatbot-input-area {
  display: flex;
  align-items: flex-end;
  padding: 20px 24px;
  border-top: 1px solid rgba(16, 3, 81, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  gap: 12px;
}

.rentify-chatbot-input {
  flex: 1;
  border: 2px solid #e9ecef;
  border-radius: 24px;
  padding: 12px 18px;
  font-size: 14px;
  resize: none;
  max-height: 120px;
  min-height: 44px;
  background: white;
  transition: all 0.3s ease;
  outline: none;
  font-family: inherit;
  color: var(--chatbot-text);
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rentify-chatbot-input:focus {
  border-color: var(--chatbot-primary);
  box-shadow: 0 0 0 3px rgba(16, 3, 81, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.rentify-chatbot-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.rentify-chatbot-send {
  background: linear-gradient(135deg, var(--chatbot-primary) 0%, #2d1b69 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(16, 3, 81, 0.25);
  position: relative;
  overflow: hidden;
}

.rentify-chatbot-send:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(16, 3, 81, 0.35);
}

.rentify-chatbot-send:active {
  transform: translateY(0) scale(0.95);
}

.rentify-chatbot-send::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.rentify-chatbot-send:hover::before {
  width: 100%;
  height: 100%;
}

/* Microphone Button */
.rentify-chatbot-microphone {
  background: #f8f9fa;
  color: var(--chatbot-text);
  border: 2px solid #e9ecef;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.rentify-chatbot-microphone:hover {
  transform: translateY(-1px) scale(1.05);
  border-color: var(--chatbot-primary);
  background: #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rentify-chatbot-microphone:active {
  transform: translateY(0) scale(0.95);
}

.rentify-chatbot-microphone.recording {
  background: #fef2f2;
  border-color: #ef4444;
  color: #ef4444;
  animation: recordingPulse 1.5s infinite;
}

.rentify-chatbot-microphone.recording:hover {
  background: #fee2e2;
  border-color: #dc2626;
  color: #dc2626;
}

@keyframes recordingPulse {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15),
      0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25),
      0 0 0 6px rgba(239, 68, 68, 0);
  }
}

/* Property Cards Container */
.rentify-chatbot-property-cards-container {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  margin: 12px 0;
}

.rentify-chatbot-property-cards-scroll-area {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--chatbot-primary) transparent;
  gap: 12px;
  width: 100%;
}

.rentify-chatbot-property-cards-scroll-area::-webkit-scrollbar {
  height: 6px;
}

.rentify-chatbot-property-cards-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.rentify-chatbot-property-cards-scroll-area::-webkit-scrollbar-thumb {
  background-color: var(--chatbot-primary);
  border-radius: 6px;
}

/* Property Card Styles */
.rentify-chatbot-property-card {
  flex: 0 0 auto;
  width: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: var(--chatbot-bg);
}

.rentify-chatbot-property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.property-card-content {
  width: 240px;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 12px !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-image {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.rentify-chatbot-property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--chatbot-primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.property-card-content h4 {
  font-size: 16px;
  margin: 10px 12px 5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--chatbot-primary);
  margin: 0 12px 5px;
}

.property-location {
  font-size: 12px;
  margin: 0 12px 10px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-specs {
  display: flex;
  gap: 8px;
  margin: 0 12px 12px;
  flex-wrap: wrap;
}

.property-specs .spec {
  font-size: 13px;
  color: #666;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

.property-cta {
  background-color: var(--chatbot-primary);
  color: white;
  border: none;
  width: 100%;
  padding: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--chatbot-transition);
}

.property-cta:hover {
  background-color: var(--chatbot-accent);
  color: var(--chatbot-primary);
}

/* Navigation Arrows */
.property-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--chatbot-primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0.8;
  transition: opacity 0.2s, background-color 0.2s;
}

.property-nav-arrow:hover {
  opacity: 1;
  background-color: var(--chatbot-accent);
}

.prev-arrow {
  left: -8px;
}

.next-arrow {
  right: -8px;
}

/* Dark Mode Adjustments */
.dark-mode .rentify-chatbot-property-card {
  background-color: #333;
}

/* Enhanced Responsive Design */
@media (max-width: 480px) {
  .rentify-chatbot-container {
    bottom: max(15px, env(safe-area-inset-bottom, 15px));
    right: max(15px, env(safe-area-inset-right, 15px));
  }

  .rentify-chatbot-window {
    width: calc(100vw - 30px);
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    bottom: 70px;
    right: 0;
    border-radius: 16px;
  }

  .rentify-chatbot-bubble {
    width: 55px;
    height: 55px;
  }

  .rentify-chatbot-header {
    padding: 16px 20px;
  }

  .rentify-chatbot-header h3 {
    font-size: 16px;
  }

  .rentify-chatbot-avatar {
    width: 38px;
    height: 38px;
    margin-right: 12px;
  }

  .rentify-chatbot-header-actions {
    gap: 6px;
  }

  .rentify-chatbot-header-actions button {
    width: 30px;
    height: 30px;
  }

  .rentify-chatbot-messages {
    padding: 16px;
  }

  .rentify-chatbot-input-area {
    padding: 16px 20px;
    gap: 10px;
  }

  .rentify-chatbot-microphone,
  .rentify-chatbot-send {
    width: 40px;
    height: 40px;
  }

  .suggested-message-pill {
    font-size: 11px;
    padding: 8px 12px;
  }

  .suggestions-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .rentify-chatbot-property-card {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 320px) {
  .rentify-chatbot-window {
    width: calc(100vw - 20px);
    height: calc(100vh - 80px);
    bottom: 65px;
  }

  .rentify-chatbot-header {
    padding: 14px 16px;
  }

  .rentify-chatbot-messages {
    padding: 12px;
  }

  .rentify-chatbot-input-area {
    padding: 12px 16px;
    gap: 8px;
  }

  .message-content {
    padding: 12px 16px;
  }
}

@media (min-height: 700px) and (max-width: 480px) {
  .rentify-chatbot-window {
    height: calc(100vh - 140px);
    max-height: 600px;
  }
}

@media (max-height: 600px) {
  .rentify-chatbot-window {
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
  }

  .rentify-chatbot-messages {
    padding: 16px;
  }
}

/* Tablet Responsive Design */
@media (min-width: 481px) and (max-width: 768px) {
  .rentify-chatbot-window {
    width: min(400px, calc(100vw - 40px));
    height: min(580px, calc(100vh - 140px));
  }

  .suggestions-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* Large Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .rentify-chatbot-window {
    height: calc(100vh - 100px);
    width: min(380px, calc(100vw - 40px));
  }
}

/* Dark Mode Support */
.dark-mode .rentify-chatbot-window {
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(60, 60, 60, 0.7);
}

.dark-mode .rentify-chatbot-messages {
  background-color: #222;
}

.dark-mode .bot-message .message-content {
  background-color: #333;
  color: #f0f0f0;
}

.dark-mode .rentify-chatbot-input-area {
  background-color: #222;
  border-color: #444;
}

.dark-mode .rentify-chatbot-input {
  background-color: #333;
  border-color: #444;
  color: #f0f0f0;
}

.dark-mode .rentify-chatbot-input::placeholder {
  color: #aaa;
}

.dark-mode .rentify-chatbot-suggested-messages {
  background-color: #222;
  border-color: #444;
}

.dark-mode .rentify-chatbot-suggested-message {
  background-color: #333;
  border-color: #444;
  color: #f0f0f0;
}

.dark-mode .rentify-chatbot-feedback-confirmation {
  background-color: #333;
  border-color: #444;
  color: #f0f0f0;
}

/* Animations */
@keyframes chatBubbleEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes messageAppear {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingAnimation {
  0%,
  80%,
  100% {
    transform: scale(0.6);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Medium Screen Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .rentify-chatbot-window {
    width: min(380px, calc(100vw - 50px));
    height: min(550px, calc(100vh - 140px));
  }

  .suggestions-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .rentify-chatbot-property-card {
    width: 280px;
  }
}

/* Enhanced Accessibility */
.rentify-chatbot-bubble:focus,
.rentify-chatbot-send:focus,
.suggested-message-pill:focus,
.property-cta:focus {
  outline: 2px solid var(--chatbot-primary);
  outline-offset: 2px;
}

/* Performance Optimizations */
.rentify-chatbot-property-card,
.suggested-message-pill,
.message-content {
  will-change: transform;
}

/* Additional Dark Mode Enhancements */
.dark-mode .suggestions-content {
  background: linear-gradient(135deg, #2a2a30 0%, #35353b 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .suggested-message-pill {
  background: #35353b;
  color: #e5e5e5;
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .property-details h4 {
  color: #e5e5e5;
}

.dark-mode .property-specs .spec {
  background: #35353b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #b0b0b5;
}
