* { box-sizing: border-box; }

body { 
  font-family: 'Sarabun', sans-serif; 
  background-color: #f5f7fa; 
  margin: 0; 
  padding: 0; 
  color: #2c3e50;
}

.btn-login {
  background-color: #0066cc;
  color: #ffffff;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-login:hover {
  background-color: #0052a3;
}

.btn-login:active {
  transform: scale(0.97);
}

.btn-login:focus-visible {
  outline: 3px solid rgba(0, 102, 204, 0.3);
  outline-offset: 2px;
}

/* ===== NAVBAR ===== */
nav {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-height: 80px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav img {
  height: 50px;
  object-fit: contain;
}

nav a {
  font-size: 15px;
  font-weight: 600;
  height: 100%;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  color: #2c3e50;
  transition: color 0.25s;
}

nav a:hover {
  color: #0066cc;
}

nav .flex-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: auto;
  flex-wrap: wrap;
}

.auth-menu {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #f0f4f8;
  border-radius: 20px;
}

.auth-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0066cc;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.btn-logout {
  background: #ef4444;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s;
  font-family: 'Sarabun', sans-serif;
}
.btn-logout:hover {
  background: #dc2626;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, #0066cc, #0052a3);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 40px;
  margin: 0 0 12px 0;
  font-weight: 700;
}

.page-header p {
  font-size: 18px;
  margin: 0;
  opacity: 0.95;
}

/* ===== FILTER BOX ===== */
.filter-section {
  max-width: 1200px;
  margin: -50px auto 50px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.filter-box {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border: 1px solid #e8ecf1;
}

.filter-box h3 {
  margin: 0 0 16px 0;
  color: #2c3e50;
  font-weight: 700;
  font-size: 16px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.filter-box input,
.filter-box select {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-family: 'Sarabun', sans-serif;
  font-size: 14px;
  transition: all 0.25s;
  width: 100%;
}

.filter-box input:focus,
.filter-box select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.filter-box button {
  background: #0066cc;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  width: 100%;
  grid-column: span 1;
}

.filter-box button:hover {
  background: #0052a3;
  transform: translateY(-2px);
}

/* ===== HOUSE CONTAINER ===== */
.house-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.house-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #e8ecf1;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.house-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.house-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.house-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.house-info h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
}

.house-info .price {
  font-size: 22px;
  font-weight: 700;
  color: #0066cc;
  margin: 12px 0;
}

.house-info .specs {
  font-size: 14px;
  color: #666;
  margin: 8px 0;
  line-height: 1.6;
  flex: 1;
}

.house-info button {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Sarabun', sans-serif;
  margin-top: 12px;
  transition: all 0.25s;
}

.house-info button:hover {
  background: #0052a3;
}

.no-result {
  text-align: center;
  color: #e74c3c;
  font-weight: 600;
  font-size: 16px;
  margin: 60px 0;
  grid-column: 1 / -1;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s;
  padding: 0;
}

.modal-close:hover {
  color: #333;
}

.modal-content h2 {
  margin: 0 0 12px 0;
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
}

.slider-container {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.8);
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.thumbnail-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 8px;
}

.thumbnail-container img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.25s;
}

.thumbnail-container img:hover {
  opacity: 0.9;
}

.thumbnail-container img.active {
  opacity: 1;
  border: 3px solid #0066cc;
}

/* ===== HOUSE DETAILS ===== */
.house-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.detail-item {
  padding: 14px;
  background: #f5f7fa;
  border-radius: 8px;
  border-left: 3px solid #0066cc;
  font-size: 14px;
}

.detail-item strong {
  color: #2c3e50;
}

hr {
  margin: 24px 0;
  border: none;
  border-top: 1px solid #e8ecf1;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin: 20px 0 12px 0;
}

/* ===== GRADE & BOQ SECTION ===== */
.grade-section,
.boq-section {
  background: #f5f7fa;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
}

.boq-group {
  margin-bottom: 16px;
}

.boq-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.boq-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: 'Sarabun', sans-serif;
  font-size: 14px;
  background: white;
}

.price-box {
  background: #0066cc;
  color: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin: 16px 0;
}

/* ===== ORDER BUTTON ===== */
.order-btn {
  background: #f39c12;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Sarabun', sans-serif;
  margin-top: 16px;
  transition: all 0.25s;
  font-size: 15px;
}

.order-btn:hover {
  background: #e67e22;
  transform: translateY(-2px);
}

/* ===== ORDER FORM ===== */
.order-form {
  margin-top: 20px;
  display: none;
  background: #f5f7fa;
  padding: 20px;
  border-radius: 8px;
}

.order-form.show {
  display: block;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-family: 'Sarabun', sans-serif;
  font-size: 14px;
  transition: all 0.25s;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.order-form textarea {
  resize: vertical;
  min-height: 80px;
}

.submit-order {
  background: #10b981;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  font-family: 'Sarabun', sans-serif;
  transition: all 0.25s;
}

.submit-order:hover {
  background: #059669;
}

.form-group-extra {
  margin-bottom: 16px;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.form-group-extra label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.form-group-extra input[type="file"] {
  font-size: 12px;
  color: #64748b;
}

.form-group-extra input[type="text"] {
  margin-bottom: 0;
}

/* ===== INFO SECTION ===== */
.info-box {
  background: #f0f9ff;
  border-left: 4px solid #0066cc;
  padding: 16px;
  border-radius: 6px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== FLOATING BUTTONS ===== */
.line-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #06C755;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  animation: floatBtn 2s infinite;
  transition: all 0.3s;
}

.call-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #e53935;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  animation: floatBtn 2s infinite 0.3s;
  transition: all 0.3s;
}

.line-float:hover,
.call-float:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

@keyframes floatBtn {
  0% { transform: translateY(0); }
  25% { transform: translateY(-8px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* ===== AI CHAT STYLES ===== */
.chat-toggle-ai {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 10000;
  transition: transform 0.3s;
}

.chat-toggle-ai:hover {
  transform: scale(1.1);
}

.chat-container-ai {
  position: fixed;
  bottom: 90px;
  left: 20px;
  z-index: 9999;
  font-family: 'Sarabun', sans-serif;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-box-ai {
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.header-ai {
  background: #2563eb;
  color: white;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
}

.messages-ai {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
}

.message-ai {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.5;
}

.user-ai {
  background: #2563eb;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.bot-ai {
  background: white;
  color: #1f2937;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.loading-ai {
  background: transparent;
  border: none;
  box-shadow: none;
  align-self: flex-start;
  font-style: italic;
  color: #6b7280;
  padding: 5px 0;
}

.input-area-ai {
  display: flex;
  background: white;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  gap: 10px;
  align-items: center;
}

.input-area-ai input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  font-family: 'Sarabun', sans-serif;
  width: 100%;
}

.input-area-ai input:focus {
  border-color: #2563eb;
}

.input-area-ai button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 16px;
  flex-shrink: 0;
}

/* ===== PREMIUM CHAT & BUTTON STYLES ===== */
.card-action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-detail-pro, .btn-chat-pro {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-family: 'Sarabun', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-detail-pro {
  background: #f0f4f8;
  color: #0066cc;
}

.btn-detail-pro:hover {
  background: #e1e8f0;
  color: #0052a3;
  transform: translateY(-2px);
}

.btn-chat-pro {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-chat-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

/* Modal Pro */
.chat-modal-pro {
  backdrop-filter: blur(8px);
}

.chat-content-pro {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2) !important;
  display: flex;
  flex-direction: column;
  max-width: 450px !important;
  height: 600px;
  max-height: 90vh;
}

.chat-header-pro {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chat-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #1e293b;
  border-radius: 50%;
}

.chat-header-pro h2 {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: white !important;
}

.chat-subtitle {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #94a3b8;
}

.modal-close-pro {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-pro:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.messages-container-pro {
  flex: 1;
  background: #f8fafc !important;
  padding: 24px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  height: auto !important;
  scroll-behavior: smooth;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.message-item {
  margin-bottom: 16px;
  display: flex;
  word-wrap: break-word;
}

.message-item.own {
  justify-content: flex-end;
}

.message-bubble {
  padding: 12px 16px !important;
  font-size: 15px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  animation: slideInUp 0.3s ease forwards;
  max-width: 75%;
  line-height: 1.5;
}

.message-bubble.own {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: white;
  border-bottom-right-radius: 4px !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  border-bottom-left-radius: 16px !important;
}

.message-bubble.other {
  background: white !important;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

.message-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 6px;
  display: block;
}

.message-bubble.own .message-time {
  color: #e2e8f0;
}

.message-bubble.other .message-time {
  color: #94a3b8;
}

.chat-input-area-pro {
  padding: 20px 24px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-input-area-pro input[type="text"] {
  flex: 1;
  padding: 14px 20px;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 24px;
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  transition: all 0.3s;
}

.chat-input-area-pro input[type="text"]:focus {
  outline: none;
  background: white;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-image-pro {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-image-pro:hover {
  color: #3b82f6;
  background: #f1f5f9;
}

.btn-send-pro {
  background: #3b82f6;
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send-pro:hover {
  background: #2563eb;
  transform: scale(1.05);
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-image {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 8px;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  nav .flex-nav { gap: 20px; }
  .filter-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .house-details { gap: 12px; }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 12px 16px;
  }

  nav .flex-nav {
    width: 100%;
    margin-left: 0;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  nav a { font-size: 14px; }

  .page-header {
    padding: 40px 20px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-header p {
    font-size: 16px;
  }

  .filter-section {
    margin: -30px auto 40px;
  }

  .filter-box {
    padding: 20px;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-box button {
    width: 100%;
  }

  .house-container {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .house-card img {
    height: 180px;
  }

  .modal-content {
    max-width: 90%;
    padding: 24px;
  }

  .house-details {
    grid-template-columns: 1fr;
  }

  .slider-container {
    margin-bottom: 16px;
  }

  .main-image {
    height: 250px;
  }

  .thumbnail-container {
    gap: 8px;
  }

  .thumbnail-container img {
    width: 80px;
    height: 60px;
  }

  .chat-box-ai {
    width: 90vw;
    height: 60vh;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 10px 12px;
  }

  nav img { height: 42px; }

  nav a { font-size: 12px; }

  nav .flex-nav { gap: 8px; }

  .page-header {
    padding: 30px 16px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .page-header p {
    font-size: 14px;
  }

  .filter-section {
    margin: -20px auto 30px;
  }

  .filter-box {
    padding: 16px;
  }

  .filter-row {
    gap: 12px;
  }

  .house-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .house-card img {
    height: 160px;
  }

  .house-info {
    padding: 16px;
  }

  .house-info h3 {
    font-size: 16px;
  }

  .house-info .price {
    font-size: 18px;
  }

  .house-info .specs {
    font-size: 13px;
  }

  .house-info button {
    padding: 9px 12px;
    font-size: 13px;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-content h2 {
    font-size: 22px;
  }

  .main-image {
    height: 200px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .house-details {
    gap: 8px;
  }

  .detail-item {
    padding: 10px;
    font-size: 13px;
  }

  h3 {
    font-size: 16px;
    margin: 16px 0 10px 0;
  }

  .order-btn {
    padding: 12px;
    font-size: 14px;
  }

  .no-result {
    font-size: 14px;
  }

  .line-float, .call-float {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .chat-toggle-ai {
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .chat-container-ai {
    bottom: 70px;
    left: 10px;
    right: 10px;
  }

  .chat-box-ai {
    width: 100%;
    height: 60vh;
  }
}

/* ===== PAYMENT & DEPOSIT STYLES ===== */
.payment-container {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  margin-top: 10px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.deposit-notice {
  font-size: 14px;
  color: #666;
  margin: 12px 0 24px;
  line-height: 1.5;
}

.deposit-amount-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deposit-amount-card .label {
  font-size: 14px;
  color: #0369a1;
  font-weight: 600;
}

.deposit-amount-card .amount {
  font-size: 32px;
  font-weight: 800;
  color: #0284c7;
}

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.promptpay-qr {
  width: 220px;
  height: 220px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  background: white;
}

.qr-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.account-info {
  font-size: 13px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 8px 16px;
  border-radius: 20px;
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-confirm-payment {
  background: #059669;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Sarabun', sans-serif;
}

.btn-confirm-payment:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.btn-back-order {
  background: none;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Sarabun', sans-serif;
}

.btn-back-order:hover {
  background: #f9fafb;
  color: #374151;
}