* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

::-webkit-scrollbar {
  background-color: rgba(0, 0, 0, 0);
  width: 6px;
  height: 6px;
}

.message-input::-webkit-scrollbar {
  background-color: rgba(0, 0, 0, 0);
  width: 0px;
  height: 0px;
}

::-webkit-scrollbar-button {
  height: 0;
  width: 0;
  background-color: rgba(0, 0, 0, 0);
}

::-webkit-scrollbar-thumb {
  background-color: rgb(125, 125, 127);
  border-radius: 1000px;
}

::-webkit-scrollbar-corner {
  width: 0;
  height: 0;
  background-color: rgba(0, 0, 0, 0);
}

body {
  font-family: -apple-system, SF UI Text, Helvetica Neue, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
  color: #374151;
}

.app-container {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.company-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 8px 0;
}

.messages-container-top {
  height: 50px;
  width: 100%;
}
.company-name {
  color: #374151;
  font-size: 16px;
  font-weight: 600;
}

.upgrade-btn {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s ease;
}

.upgrade-btn:hover {
  background: #e55a2b;
}

.company-tagline {
  color: #6b7280;
  font-size: 11px;
  margin-left: 36px;
  margin-top: -4px;
  margin-bottom: 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 4px 0;
  border-radius: 8px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.nav-item:hover {
  background: #f3f4f6;
}

.nav-item.active {
  background: #000000;
  color: white;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explore-section {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.explore-title {
  color: #374151;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.explore-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  border-radius: 12px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.explore-item:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

.explore-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 8px;
  background-size: cover;
  background-position: center;
}

.explore-icon.buy {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.explore-icon.sell {
  background: linear-gradient(135deg, #10b981, #047857);
}

.explore-icon.rent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.explore-icon.mortgage {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.explore-label {
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.chat-section {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-section-title {
  color: #374151;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.new-chat-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.new-chat-btn:hover {
  background: #f3f4f6;
}

.chat-item {
  padding: 12px 16px;
  margin: 2px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.chat-item:hover {
  background: #f3f4f6;
}

.chat-item.active {
  background: #000000;
  color: white;
}

.chat-item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-actions {
  opacity: 0;
  display: flex;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.chat-item:hover .chat-item-actions {
  opacity: 1;
}

.action-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.action-icon:hover {
  background: #f3f4f6;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.user-profile:hover {
  background: #f3f4f6;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
}

.user-plan {
  font-size: 12px;
  color: #6b7280;
}

.theme-toggle-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode {
  background: #111827;
  color: #f9fafb;
}

.dark-mode .company-name {
  color: #f9fafb;
}

.dark-mode .company-tagline {
  color: #9ca3af;
}

.dark-mode .nav-item {
  color: #f9fafb;
}

.dark-mode .nav-item:hover {
  background: #374151;
}

.dark-mode .nav-item.active {
  background: #ffffff;
  color: black;
}

.dark-mode .explore-section {
  border-bottom: 1px solid #374151;
}

.dark-mode .explore-title {
  color: #f9fafb;
}

.dark-mode .explore-item {
  background: #1f2937;
}

.dark-mode .explore-item:hover {
  background: #374151;
}

.dark-mode .explore-label {
  color: #f9fafb;
}

.dark-mode .chat-section-title {
  color: #f9fafb;
}

.dark-mode .new-chat-btn {
  border: 1px solid #4b5563;
  color: #f9fafb;
}

.dark-mode .new-chat-btn:hover {
  background: #374151;
}

.dark-mode .chat-item {
  color: #f9fafb;
}

.dark-mode .chat-item:hover {
  background: #374151;
}

.dark-mode .chat-item.active {
  background: #ffffff;
  color: black;
}

.dark-mode .user-profile:hover {
  background: #374151;
}

.dark-mode .user-plan {
  color: #9ca3af;
}

.dark-mode .send-button {
  background: #ffffff;
  color: #000000;
}

.dark-mode .send-button:hover {
  background: #e5e5e5;
}

.dark-mode .user-avatar {
  background: #ffffff;
  color: #000000;
}

.dark-mode .user-message .message-avatar {
  background: #ffffff;
  color: #000000;
}

.dark-mode .save-search-btn {
  background: #ffffff;
  color: #000000;
}

.dark-mode .save-search-btn:hover {
  background: #e5e5e5;
}

.dark-mode .agent-avatar {
  background: #ffffff;
  color: #000000;
}

.dark-mode .home-badge {
  background: #ffffff;
  color: #000000;
}

.dark-mode .listing-badge {
  background: #ffffff;
  color: #000000;
}

.dark-mode .nav-option.active::after {
  background: #ffffff;
}

.dark-mode .nav-item-bottom.active {
  color: #ffffff;
}

.dark-mode .nav-item-bottom:hover {
  color: #ffffff;
}

.dark-mode .type-dropdown:hover {
  border-color: #ffffff;
}

.dark-mode .filter-select:focus,
.dark-mode .filter-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.dark-mode .main-content {
  background: #111827;
}

.dark-mode .chat-header {
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid #374151;
}

.dark-mode .nav-option {
  color: #9ca3af;
}

.dark-mode .nav-option.active {
  color: #f9fafb;
  background: #374151;
}

.dark-mode .nav-option:hover:not(.active) {
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .empty-state h2 {
  color: #f9fafb;
}

.dark-mode .empty-state p {
  color: #9ca3af;
}

.dark-mode .suggestion {
  background: #1f2937;
  border: 1px solid #374151;
}

.dark-mode .suggestion:hover {
  background: #374151;
}

.dark-mode .suggestion-title {
  color: #f9fafb;
}

.dark-mode .suggestion-text {
  color: #9ca3af;
}

.dark-mode .input-container {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, #111827 58.85%);
}

.dark-mode .input-form {
  background: #1f2937;
  border: 1px solid #4b5563;
}

.dark-mode .message-input {
  background: transparent;
  color: #f9fafb;
}

.dark-mode .message-input::placeholder {
  color: #6b7280;
}

.dark-mode .input-footer {
  color: #9ca3af;
}

.dark-mode .home-list-container {
  background: #0f172a;
}

.dark-mode .search-input-wrapper {
  background: #1e293b;
}

.dark-mode .main-search-input {
  color: #f1f5f9;
}

.dark-mode .main-search-input::placeholder {
  color: #64748b;
}

.dark-mode .type-dropdown {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
}

.dark-mode .results-count {
  color: #94a3b8;
}

.dark-mode .home-card {
  background: #1e293b;
}

.dark-mode .home-price {
  color: #f1f5f9;
}

.dark-mode .home-address {
  color: #94a3b8;
}

.dark-mode .home-detail {
  color: #94a3b8;
}

.dark-mode .home-description {
  color: #e2e8f0;
}

.dark-mode .home-footer {
  border-top: 1px solid #334155;
}

.dark-mode .home-agent {
  color: #94a3b8;
}

.dark-mode .contact-btn {
  background: #334155;
  color: #f1f5f9;
}

.dark-mode .contact-btn:hover {
  background: #475569;
}

.dark-mode .theme-toggle-btn {
  background: #1f2937;
  border: 2px solid #374151;
  color: #f9fafb;
}

.dark-mode .mobile-menu-btn {
  background: #1f2937;
  border: 1px solid #374151;
  color: #f9fafb;
}

.dark-mode .bottom-nav {
  background: #1f2937;
  border-top: 1px solid #374151;
}

.dark-mode .message-action:hover {
  background: #374151;
}

.dark-mode .message-text code {
  background: #374151;
  color: #f9fafb;
}

.dark-mode .empty-state svg circle {
  fill: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .empty-state svg path {
  stroke: #ffffff !important;
}

.dark-mode .chat-header {
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid #374151;
}

.dark-mode .nav-option {
  color: #9ca3af;
}

.dark-mode .nav-option.active {
  color: #f9fafb;
  background: #374151;
}

.dark-mode .nav-option:hover:not(.active) {
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .empty-state h2 {
  color: #f9fafb;
}

.dark-mode .empty-state p {
  color: #9ca3af;
}

.dark-mode .suggestion {
  background: #1f2937;
  border: 1px solid #374151;
}

.dark-mode .suggestion:hover {
  background: #374151;
}

.dark-mode .suggestion-title {
  color: #f9fafb;
}

.dark-mode .suggestion-text {
  color: #9ca3af;
}

.dark-mode .input-container {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, #111827 58.85%);
}

.dark-mode .input-form {
  background: #1f2937;
  border: 1px solid #4b5563;
}

.dark-mode .input-form:focus-within {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.dark-mode .message-input {
  background: transparent;
  color: #f9fafb;
}

.dark-mode .message-input::placeholder {
  color: #6b7280;
}

.dark-mode .input-footer {
  color: #9ca3af;
}

.dark-mode .home-list-container {
  background: #0f172a;
}

.dark-mode .search-input-wrapper {
  background: #1e293b;
}

.dark-mode .main-search-input {
  color: #f1f5f9;
}

.dark-mode .main-search-input::placeholder {
  color: #64748b;
}

.dark-mode .type-dropdown {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
}

.dark-mode .results-count {
  color: #94a3b8;
}

.dark-mode .home-card {
  background: #1e293b;
}

.dark-mode .home-price {
  color: #f1f5f9;
}

.dark-mode .home-address {
  color: #94a3b8;
}

.dark-mode .home-detail {
  color: #94a3b8;
}

.dark-mode .home-description {
  color: #e2e8f0;
}

.dark-mode .home-footer {
  border-top: 1px solid #334155;
}

.dark-mode .home-agent {
  color: #94a3b8;
}

.dark-mode .contact-btn {
  background: #334155;
  color: #f1f5f9;
}

.dark-mode .contact-btn:hover {
  background: #475569;
}

.dark-mode .theme-toggle-btn {
  background: #1f2937;
  border: 2px solid #374151;
  color: #f9fafb;
}

.dark-mode .mobile-menu-btn {
  background: #1f2937;
  border: 1px solid #374151;
  color: #f9fafb;
}

.dark-mode .bottom-nav {
  background: #1f2937;
  border-top: 1px solid #374151;
}

.dark-mode .message-action:hover {
  background: #374151;
}

.dark-mode .message-text code {
  background: #374151;
  color: #f9fafb;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.chat-header {
  height: 60px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-option {
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-option.active {
  color: #374151;
  background: #f3f4f6;
}

.nav-option:hover:not(.active) {
  color: #374151;
  background: rgba(0, 0, 0, 0.05);
}

.nav-option.active::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: #000000;
}

.chat-container-content {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.messages-wrapper {
  max-width: 768px;
  margin: 0 auto;
  padding: 24px;
}

.message {
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-avatar {
  user-select: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-message .message-avatar {
  background: #000000;
  color: white;
}

.assistant-message .message-avatar {
  background: #ab68ff;
  color: white;
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-text {
  width: 100%;
  line-height: 1.6;
  font-size: 16px;
  word-wrap: break-word;
}

.message-text p {
  margin-bottom: 16px;
}

.message-text p:last-child {
  margin-bottom: 0;
}

.message-text code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
}

.message-text pre {
  background: #1a1a1a;
  color: #ececec;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
}

.message-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.message:hover .message-actions {
  opacity: 1;
}

.message-action {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  color: #6b7280;
}

.message-action:hover {
  background: #f3f4f6;
}

.input-container {
  position: sticky;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    #ffffff 58.85%
  );
  padding: 24px;
}

.input-wrapper {
  max-width: 768px;
  margin: 0 auto;
  position: relative;
}

.input-form {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 24px;
  box-shadow: 0 0 0 0 rgba(16, 163, 127, 0);
  transition: all 0.2s ease;
}

.input-form:focus-within {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.message-input {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.5;
  max-height: 200px;
  min-height: 56px;
  background: transparent;
  font-family: inherit;
}

.message-input::placeholder {
  color: #9ca3af;
}

.input-actions {
  display: flex;
  align-items: center;
  margin: 8px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.send-button {
  width: 32px;
  height: 32px;
  background: #000000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: white;
}

.send-button:hover {
  background: #333333;
  transform: scale(1.05);
}

.send-button:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
}

@keyframes wave {
  0%,
  100% {
    height: 8px;
  }
  50% {
    height: 16px;
  }
}

.input-footer {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: #6b7280;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 40px 40px 40px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-state h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #374151;
}

.empty-state p {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 32px;
  max-width: 400px;
}

.suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  max-width: 600px;
  width: 100%;
}

.suggestion {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.suggestion:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.suggestion-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.suggestion-text {
  font-size: 14px;
  color: #6b7280;
}

.typing-indicator {
  display: none;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  animation: typingAnimation 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .overlay.show {
    display: block;
  }

  .main-content {
    width: 100%;
  }

  .messages-wrapper {
    padding: 16px;
  }

  .input-container {
    padding: 16px;
  }

  .message-input {
    font-size: 16px;
    padding: 16px 20px;
  }

  .suggestions {
    grid-template-columns: 1fr;
  }

  .send-button {
    min-width: 36px;
    min-height: 36px;
    touch-action: manipulation;
  }

  .header-nav {
    gap: 12px;
  }

  .nav-option {
    font-size: 14px;
    padding: 6px 12px;
  }

  .homes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-list-wrapper {
    padding: 16px;
  }

  .company-logo {
    margin-bottom: 8px;
  }

  .company-tagline {
    margin-bottom: 12px;
  }

  .explore-section {
    padding: 12px 16px;
  }

  .explore-grid {
    gap: 8px;
  }

  .explore-item {
    padding: 12px 6px;
  }

  .explore-icon {
    width: 40px;
    height: 40px;
  }

  .explore-label {
    font-size: 12px;
  }

  .chat-section {
    padding: 12px 16px;
  }

  .nav-item {
    padding: 10px 12px;
    font-size: 13px;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }

  .home-list-wrapper {
    padding: 16px;
    padding-bottom: 100px;
  }

  .search-input-wrapper {
    padding: 10px 16px;
  }

  .main-search-input {
    font-size: 16px;
  }

  .search-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .search-type-selector {
    justify-content: space-between;
  }

  .save-search-btn {
    width: 100%;
    justify-self: stretch;
  }

  .homes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .home-card {
    border-radius: 12px;
  }

  .home-image {
    height: 200px;
  }

  .image-badges {
    top: 8px;
    left: 8px;
    gap: 4px;
  }

  .listing-badge,
  .tour-badge {
    padding: 3px 6px;
    font-size: 10px;
  }

  .time-badge {
    bottom: 8px;
    left: 8px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .home-actions {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .action-button {
    width: 32px;
    height: 32px;
  }

  .home-info {
    padding: 12px;
  }

  .home-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .home-details {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 14px;
    color: #6b7280;
  }

  .home-address {
    font-size: 14px;
    color: #6b7280;
  }

  .bottom-nav {
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  }

  .nav-item-bottom {
    padding: 4px;
  }

  .nav-icon-bottom {
    width: 22px;
    height: 22px;
  }

  .nav-label {
    font-size: 10px;
  }
}

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}

.home-list-container {
  display: none;
  flex: 1;
  overflow-y: auto;
  background: #f9fafb;
}

.home-list-container.active {
  display: block;
}

.home-list-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}

.search-section {
  margin-bottom: 20px;
}

.main-search-bar {
  position: relative;
  margin-bottom: 16px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f0f2f5;
  border-radius: 25px;
  padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: #6b7280;
  margin-right: 12px;
}

.main-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #374151;
  outline: none;
}

.main-search-input::placeholder {
  color: #9ca3af;
}

.search-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.search-type-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-dropdown {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.type-dropdown:hover {
  border-color: #000000;
}

.results-count {
  font-size: 14px;
  color: #6b7280;
}

.save-search-btn {
  background: #000000;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.save-search-btn:hover {
  background: #333333;
}

.homes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.home-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.home-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
  position: relative;
  overflow: hidden;
}

.home-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
}

.listing-badge {
  background: #000000;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.tour-badge {
  background: #8b5cf6;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.time-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #16a34a;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.home-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.action-button {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-button:hover {
  background: white;
  transform: scale(1.1);
}

.action-button.liked {
  color: #ef4444;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 12px 0;
  display: none;
  z-index: 100;
}

.bottom-nav.show {
  display: block;
}

.nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.nav-item-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #6b7280;
  transition: color 0.2s ease;
}

.nav-item-bottom.active {
  color: #000000;
}

.nav-item-bottom:hover {
  color: #000000;
}

.nav-icon-bottom {
  width: 24px;
  height: 24px;
}

.nav-label {
  font-size: 11px;
  font-weight: 500;
}

.homes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.home-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.home-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
  position: relative;
  overflow: hidden;
}

.home-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #000000;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.home-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.home-favorite:hover {
  background: white;
  transform: scale(1.1);
}

.home-favorite.liked {
  color: #ef4444;
}

.home-info {
  padding: 16px;
}

.home-price {
  font-size: 20px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.home-address {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-details {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.results-count {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

img {
  display: flex;
}

[class*="G-text-show-row"] {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  word-wrap: break-word;
  white-space: normal;
  -webkit-box-orient: vertical;
}

.G-text-show-row-1 {
  line-clamp: 1;
  -webkit-line-clamp: 1;
}

.G-text-show-row-2 {
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.G-text-show-row-3 {
  line-clamp: 3;
  -webkit-line-clamp: 3;
}

.G-text-show-row-10 {
  line-clamp: 10;
  -webkit-line-clamp: 10;
}

.G-user-select-none {
  user-select: none;
}

.G-display-none {
  display: none;
}

.G-flex-1 {
  display: flex;
  flex: 1;
}

.G-flex-row {
  display: flex;
  flex-direction: row;
}

.G-flex-row-center {
  width: 100%;
  display: flex;
  justify-content: center;
}

.G-flex-col-center {
  width: 100%;
  display: flex;
  align-items: center;
}

.G-flex-col {
  display: flex;
  flex-direction: column;
}

.G-flex-center-all {
  display: flex;
  justify-content: center;
  align-items: center;
}

.G-text-white-space-pre-wrap {
  white-space: pre-wrap;
}

.G-text-word-break-all {
  word-break: break-all;
}

.G-full-window {
  width: 100%;
  height: 100%;
}

.G-full-width {
  width: 100%;
}

.G-full-height {
  height: 100%;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
}

.data-table th,
.data-table td {
  border: 1px solid #ddd;
  padding: 6px;
  text-align: left;
}

.data-table th {
  background-color: #f2f2f2;
}

.data-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.data-table-main {
  width: 100%;
  max-height: 500px;
  overflow: auto;
}

.dark-mode .data-table th,
.dark-mode .data-table td {
  border: 1px solid #1f2937;
  padding: 6px;
  text-align: left;
}

.dark-mode .data-table th {
  background-color: #252e3c;
}

.dark-mode .data-table tr:nth-child(even) {
  background-color: #374151;
}
