/* 猩伙伴民宿官网样式 */

/* ===== 本地思源字体声明 ===== */
@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 300;
  font-style: normal;
  src: url('../fonts/OTF/SimplifiedChinese/SourceHanSansSC-Light.otf') format('opentype');
}

@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 400;
  font-style: normal;
  src: url('../fonts/OTF/SimplifiedChinese/SourceHanSansSC-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 500;
  font-style: normal;
  src: url('../fonts/OTF/SimplifiedChinese/SourceHanSansSC-Medium.otf') format('opentype');
}

@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 700;
  font-style: normal;
  src: url('../fonts/OTF/SimplifiedChinese/SourceHanSansSC-Bold.otf') format('opentype');
}

@font-face {
  font-family: 'Noto Serif SC';
  font-weight: 400;
  font-style: normal;
  src: url('../fonts/OTF/SimplifiedChinese/SourceHanSerifSC-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'Noto Serif SC';
  font-weight: 600;
  font-style: normal;
  src: url('../fonts/OTF/SimplifiedChinese/SourceHanSerifSC-SemiBold.otf') format('opentype');
}

@font-face {
  font-family: 'Noto Serif SC';
  font-weight: 700;
  font-style: normal;
  src: url('../fonts/OTF/SimplifiedChinese/SourceHanSerifSC-Bold.otf') format('opentype');
}

/* CSS Variables */
:root {
  --primary: #1a1a2e;
  --primary-dark: #0f0f1a;
  --secondary: #16213e;
  --accent: #c4a35a;
  --accent-light: #d4b96a;
  --text-light: #eae7dc;
  --text-muted: #a0a0a0;
  --text-dark: #1a1a1a;
  --white: #ffffff;
  --bg-dark: #0f0f1a;
  --bg-card: rgba(30, 30, 50, 0.8);
  --border-color: rgba(196, 163, 90, 0.3);
  --luxury-gold: #d4af37;
  --river-blue: #4a90d9;
  --loft-purple: #9b59b6;
  --art-green: #27ae60;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC';
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 15px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.logo-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--text-light);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.admin-link {
  font-size: 0.85rem;
  color: var(--text-muted) !important;
  opacity: 0.7;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://images.unsplash.com/photo-1571896349842-33c89424de2d?w=1920') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 26, 0.6) 0%,
    rgba(15, 15, 26, 0.4) 50%,
    rgba(15, 15, 26, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1s ease 0.6s both;
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(196, 163, 90, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-outline:hover {
  background: var(--text-light);
  color: var(--primary-dark);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.hero-scroll span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  margin: 10px auto 0;
}

/* Communities Section */
.communities {
  background: var(--primary-dark);
}

/* 小区横向滚动容器 */
.communities-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.communities-scroll {
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 5px 30px;
}

.communities-scroll::-webkit-scrollbar {
  display: none;
}

.communities-track {
  display: flex;
  gap: 25px;
}

.community-scroll-btn {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.community-scroll-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.community-scroll-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 小区卡片（用于横向滚动） */
.community-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  position: relative;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.community-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.community-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

/* 动态背景颜色根据小区数量自动分配 */
.community-card:nth-child(3n+1) .community-bg {
  background: linear-gradient(135deg, #1a3a52 0%, #0d1f33 100%);
}

.community-card:nth-child(3n+2) .community-bg {
  background: linear-gradient(135deg, #2d3a4f 0%, #1a2332 100%);
}

.community-card:nth-child(3n+3) .community-bg {
  background: linear-gradient(135deg, #3d3a2f 0%, #1f1f1a 100%);
}

/* 添加新小区时的备用颜色 */
.community-card:nth-child(5n+4) .community-bg {
  background: linear-gradient(135deg, #4a3040 0%, #2a1f28 100%);
}

.community-card:nth-child(5n+5) .community-bg {
  background: linear-gradient(135deg, #2a4a4a 0%, #1a2a2a 100%);
}

.community-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 26, 0.95) 0%, rgba(15, 15, 26, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: var(--transition);
}

.community-card:hover .community-overlay {
  background: linear-gradient(to top, rgba(15, 15, 26, 0.98) 0%, rgba(15, 15, 26, 0.6) 100%);
}

.community-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.community-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 5px;
}

.community-area {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.community-count {
  font-size: 0.85rem;
  color: var(--text-light);
  background: rgba(196, 163, 90, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
}

.community-action {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.community-card:hover .community-action {
  opacity: 1;
  transform: translateY(0);
}

.btn-small {
  padding: 10px 25px;
  font-size: 0.9rem;
}

/* Property Scroll */
.property-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.property-scroll::-webkit-scrollbar {
  display: none;
}

.property-track {
  display: flex;
  gap: 25px;
  padding: 10px 5px 30px;
}

.property-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: visible; /* 修复抖动：overflow 移到 .property-image，卡片高度不再因 hover 展开而变化 */
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.property-card:hover {
  /* removed scale transform to avoid page jitter */
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.property-image {
  position: relative;
  height: 200px;
  overflow: hidden;           /* 图片缩放效果裁剪保留在此 */
  border-radius: 12px 12px 0 0; /* 补冲去掉 overflow:hidden 后卡片圆角不裁剪的问题 */
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover .property-image img {
  transform: scale(1.1);
}

.property-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
  background: var(--luxury-gold);
  color: var(--primary-dark);
}

.property-tag.river {
  background: var(--river-blue);
  color: white;
}

.property-tag.art {
  background: var(--art-green);
  color: white;
}

.property-info {
  padding: 20px;
}

.property-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
}

.property-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.property-community {
  color: var(--accent);
}

/* Property hover 覆盖层：绝对定位覆盖在卡片底部，不影响卡片高度，从根本消除页面抖动 */
.property-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15,15,26,0.97) 0%, rgba(15,15,26,0.88) 100%);
  padding: 12px 20px 14px;
  border-top: 1px solid rgba(196,163,90,0.3);
  border-radius: 0 0 12px 12px;
  display: none;
  z-index: 5;
}

.property-card:hover .property-hover {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* hover 层内文字使用亮色 */
.property-hover .property-feature {
  color: var(--text-light);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.property-feature {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.5;
}

.property-actions {
  display: flex;
  gap: 10px;
}

.btn-detail {
  flex: 1;
  padding: 8px 15px;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-detail:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.scroll-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.scroll-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.scroll-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

/* Features Section */
.features {
  background: var(--primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* About Section */
.about {
  background: var(--primary-dark);
  padding: 100px 0;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content {
  max-width: 600px;
}

.about-header {
  margin-bottom: 30px;
}

.about-label {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 15px;
  padding: 5px 15px;
  border: 1px solid var(--accent);
  border-radius: 20px;
}

.about-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
}

.about-text {
  margin-bottom: 35px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 20px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.about-highlight-item:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.about-highlight-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.about-highlight-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 5px;
}

.about-highlight-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 16px;
  pointer-events: none;
}

/* Contact Section */
.contact {
  background: var(--primary-dark);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-label {
  width: 80px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-value {
  font-size: 1.1rem;
  color: var(--text-light);
}

.contact-value a {
  color: var(--accent);
}

.contact-value a:hover {
  text-decoration: underline;
}

.contact-qr {
  display: flex;
  justify-content: center;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--primary);
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.footer-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: var(--accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--primary);
  border-radius: 16px;
  padding: 40px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  animation: modalIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.modal-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 5px;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.modal-properties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.modal-property {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.modal-property:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

/* Admin Login Modal */
.admin-login-modal {
  max-width: 400px;
  padding: 35px;
}

.admin-login-modal .modal-title {
  text-align: center;
  margin-bottom: 25px;
}

.modal-property-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-property-info {
  flex: 1;
}

.modal-property-name {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 5px;
}

.modal-property-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.modal-property-capacity {
  font-size: 0.8rem;
  color: var(--accent);
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1500;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.chat-icon {
  font-size: 1.5rem;
}

.chat-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: pulse 2s infinite;
}

.chat-box {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 450px;
  background: var(--primary);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-box.active {
  display: flex;
  animation: slideUp 0.3s ease;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border-color);
}

.chat-header h4 {
  font-size: 1rem;
  color: var(--accent);
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.chat-close:hover {
  color: var(--text-light);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message.bot {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text-light);
  border-bottom-left-radius: 4px;
}

.message.user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--primary-dark);
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: var(--secondary);
  border-top: 1px solid var(--border-color);
}

.chat-input {
  flex: 1;
  padding: 10px 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-send {
  padding: 10px 20px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: var(--primary-dark);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.chat-send:hover {
  background: var(--accent-light);
}

/* Property Detail Page */
.property-hero {
  height: 60vh;
  min-height: 400px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e; /* 图片加载前的占位深色背景 */
}

/* 图片加载完成后触发的渐入动画 */
.property-hero.hero-loaded {
  animation: heroFadeIn 0.5s ease;
}

@keyframes heroFadeIn {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

.property-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 26, 1) 0%, rgba(15, 15, 26, 0.3) 100%);
}

.property-hero-content {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
}

.property-detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.property-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.property-detail-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
}

.property-detail-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.property-tag-large {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  background: var(--luxury-gold);
  color: var(--primary-dark);
}

.property-tag-large.river {
  background: var(--river-blue);
  color: white;
}

.property-tag-large.art {
  background: var(--art-green);
  color: white;
}

.property-price {
  text-align: right;
}

.price-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.property-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.property-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.property-main h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.property-features-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 30px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: var(--bg-card);
  border-radius: 8px;
  font-size: 0.9rem;
}

.amenity-icon {
  color: var(--accent);
}

.property-sidebar h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.info-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info-value {
  color: var(--text-light);
  font-weight: 500;
}

.contact-card {
  background: linear-gradient(135deg, var(--accent) 0%, #a08040 100%);
  color: var(--primary-dark);
}

.contact-card h3 {
  color: var(--primary-dark);
}

.contact-card .info-label {
  color: rgba(0, 0, 0, 0.6);
}

.contact-card .info-value {
  color: var(--primary-dark);
}

.btn-contact {
  width: 100%;
  padding: 15px;
  margin-top: 15px;
  background: var(--primary-dark);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-contact:hover {
  background: var(--primary);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.gallery-item {
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Transport Info */
.transport-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.transport-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--bg-card);
  border-radius: 8px;
}

.transport-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.transport-info {
  flex: 1;
}

.transport-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.transport-value {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Back Button */
.back-btn {
  position: fixed;
  top: 100px;
  left: 30px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

/* Admin Page - Left Sidebar Layout */
.admin-container {
  display: flex;
  min-height: 100vh;
}

/* Left Sidebar */
.admin-sidebar {
  width: 240px;
  background: var(--secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.sidebar-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: var(--accent);
}

.sidebar-nav {
  flex: 1;
  padding: 15px 10px;
  overflow-y: auto;
}

.sidebar-item {
  width: 100%;
  padding: 12px 15px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
  text-align: left;
}

.sidebar-item:hover {
  background: rgba(196, 163, 90, 0.1);
  color: var(--text-light);
}

.sidebar-item.active {
  background: var(--accent);
  color: var(--primary-dark);
}

.sidebar-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.sidebar-text {
  flex: 1;
}

.sidebar-footer {
  padding: 15px;
  border-top: 1px solid var(--border-color);
}

/* Mobile Header */
.admin-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 15px;
  align-items: center;
  gap: 15px;
  z-index: 99;
}

.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
}

.mobile-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: var(--accent);
}

/* Main Content */
.admin-main {
  flex: 1;
  margin-left: 240px;
  padding: 30px;
  background: var(--bg-dark);
  min-height: 100vh;
}

.admin-section {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  scroll-margin-top: 20px;
}

.admin-section.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.6rem;
  color: var(--accent);
}

.admin-toolbar {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.admin-toolbar .form-input {
  max-width: 300px;
}

/* Login Form */
.login-container {
  max-width: 400px;
  margin: 150px auto;
  padding: 40px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.login-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.8rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  background: var(--primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-login:hover {
  background: var(--accent-light);
}

/* Table */
.admin-table {
  width: 100%;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--secondary);
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-table td {
  color: var(--text-light);
  font-size: 0.9rem;
}

.admin-table tr:hover td {
  background: rgba(196, 163, 90, 0.05);
}

.property-thumb {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

/* Property Images Grid for Edit */
.property-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.property-image-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}

.property-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-image-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: rgba(231, 76, 60, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-image-delete:hover {
  background: #e74c3c;
}

/* AI Team Matrix */
.ai-team-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  height: calc(100vh - 150px);
  min-height: 500px;
}

.ai-agent-list {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 15px;
  overflow-y: auto;
}

.ai-agent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  margin-bottom: 10px;
}

.ai-agent-card:hover {
  background: rgba(196, 163, 90, 0.1);
}

.ai-agent-card.active {
  background: rgba(196, 163, 90, 0.15);
  border-color: var(--accent);
}

.ai-agent-avatar {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border-radius: 10px;
}

.ai-agent-info h4 {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 3px;
}

.ai-agent-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ai-chat-window {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-avatar {
  font-size: 1.8rem;
}

.ai-chat-agent-info h4 {
  font-size: 1rem;
  color: var(--text-light);
}

.ai-chat-status {
  font-size: 0.8rem;
  color: #27ae60;
}

.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.ai-message {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.ai-message.user {
  flex-direction: row-reverse;
}

.ai-message-avatar {
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border-radius: 8px;
  flex-shrink: 0;
}

.ai-message-content {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--secondary);
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-message.user .ai-message-content {
  background: var(--accent);
  color: var(--primary-dark);
}

.ai-message-content p {
  margin: 0;
}

.ai-message-content .ai-agent-name {
  color: var(--accent);
  font-weight: 500;
}

.ai-chat-input-area {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.ai-chat-input {
  flex: 1;
  padding: 12px 15px;
  background: var(--primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.ai-chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.ai-chat-send {
  padding: 12px 25px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.ai-chat-send:hover {
  background: var(--accent-light);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

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

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

/* ========== Dashboard & Kanban Styles ========== */

/* Dashboard Cards */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.dashboard-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.dashboard-card-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 163, 90, 0.1);
  border-radius: 12px;
}

.dashboard-card-content {
  flex: 1;
}

.dashboard-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.dashboard-card-value {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: var(--secondary);
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.data-table td {
  color: var(--text-light);
  font-size: 0.9rem;
}

.data-table tr:hover td {
  background: rgba(196, 163, 90, 0.05);
}

/* Revenue Item */
.revenue-item {
  margin-bottom: 20px;
}

.revenue-item:last-child {
  margin-bottom: 0;
}

.revenue-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.revenue-item-name {
  font-size: 0.9rem;
  color: var(--text-light);
}

.revenue-item-value {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.revenue-bar {
  height: 8px;
  background: var(--secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.revenue-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.revenue-item-percent {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Stat Item */
.stat-item {
  margin-bottom: 20px;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stat-item-name {
  font-size: 0.9rem;
  color: var(--text-light);
}

.stat-item-value {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.stat-bar {
  height: 8px;
  background: var(--secondary);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--river-blue) 0%, #6ab0ff 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 12px;
}

.status-badge.status-success {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

.status-badge.status-warning {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
}

.status-badge.status-info {
  background: rgba(74, 144, 217, 0.2);
  color: #4a90d9;
}

.status-badge.status-default {
  background: rgba(160, 160, 160, 0.2);
  color: var(--text-muted);
}

/* Content Platform Filter */
.content-platform-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.platform-btn {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.platform-btn:hover {
  border-color: var(--accent);
  color: var(--text-light);
}

.platform-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

/* Image Preview */
.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.image-preview img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

/* Form file input */
.form-input[type="file"] {
  padding: 10px 15px;
  cursor: pointer;
}

/* Admin table hover effect */
.admin-table tr:hover td {
  background: rgba(196, 163, 90, 0.05);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    padding: 20px;
  }

  .dashboard-card-value {
    font-size: 1.5rem;
  }

  .content-platform-filter {
    flex-wrap: wrap;
  }

  .data-table {
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    padding: 10px 8px;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .community-card {
    flex: 0 0 280px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .modal-properties {
    grid-template-columns: 1fr;
  }

  .about-wrapper {
    gap: 50px;
  }

  .about-image img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .community-card {
    flex: 0 0 260px;
    height: 320px;
  }

  .community-scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .property-track {
    gap: 15px;
  }

  .property-card {
    flex: 0 0 260px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .admin-header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  /* Admin Sidebar Mobile */
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-mobile-header {
    display: flex;
  }

  .admin-main {
    margin-left: 0;
    padding: 80px 15px 20px;
  }

  .ai-team-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .ai-agent-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .ai-agent-card {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .modal-content {
    padding: 25px;
  }

  .property-detail-title {
    font-size: 1.8rem;
  }

  .property-detail-header {
    flex-direction: column;
  }

  .property-price {
    text-align: left;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chat-box {
    width: calc(100vw - 40px);
    right: -15px;
  }

  /* About Section Responsive */
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 300px;
  }

  .about-title {
    font-size: 1.6rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }
}

/* ========== Lightbox Styles ========== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  width: 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.7;
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 20px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .lightbox-img {
    max-width: 95%;
    max-height: 70vh;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 30px;
    width: 40px;
    height: 60px;
  }

  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }
}
