/* 猩伙伴民宿官网样式 */

/* 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;
}

.vi-logo {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 2817 / 1021;
}

.vi-logo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vi-logo-text {
  filter: brightness(0) saturate(100%) invert(65%) sepia(27%) saturate(754%) hue-rotate(3deg) brightness(96%) contrast(86%);
  clip-path: inset(0 27% 0 0);
}

.vi-logo-mark {
  clip-path: inset(0 0 0 73%);
}

.vi-logo-nav {
  width: 132px;
}

.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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--text-muted) !important;
  opacity: 0.55;
  transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-menu .admin-link::after {
  display: none;
}

.admin-link:hover,
.admin-link:focus-visible {
  border-color: rgba(196, 163, 90, 0.42);
  background: rgba(196, 163, 90, 0.1);
  color: var(--accent) !important;
  opacity: 1;
}

.admin-link:focus-visible {
  outline: 2px solid rgba(196, 163, 90, 0.35);
  outline-offset: 3px;
}

.admin-link-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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('images/hero.webp') 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-card:focus-visible,
.property-card:focus-visible,
.modal-property:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.community-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.78) contrast(1.04) brightness(0.88);
  transform: scale(1.015);
  transition: background 0.3s ease, filter 0.35s ease, transform 0.55s ease;
  will-change: filter, transform;
}

/* 动态背景颜色根据小区数量自动分配 */
.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(180deg, rgba(8, 9, 17, 0.16) 8%, rgba(8, 9, 17, 0.42) 58%, rgba(8, 9, 17, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 30px;
  transition: var(--transition);
}

.community-card:hover .community-overlay {
  background: linear-gradient(180deg, rgba(8, 9, 17, 0.12) 8%, rgba(8, 9, 17, 0.36) 55%, rgba(15, 15, 26, 0.97) 100%);
}

.community-card:hover .community-bg,
.community-card:focus-within .community-bg {
  filter: saturate(0.88) contrast(1.05) brightness(0.94);
  transform: scale(1.045);
}

.community-eyebrow {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.community-name {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.35;
  margin-bottom: 12px;
}

.community-meta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-area {
  font-size: 0.86rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.community-count {
  font-size: 0.78rem;
  color: var(--text-light);
  background: rgba(196, 163, 90, 0.16);
  border: 1px solid rgba(196, 163, 90, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.community-action {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.community-card:hover .community-action {
  opacity: 1;
  max-height: 30px;
  margin-top: 14px;
  transform: translateY(0);
}

.community-card:focus-within .community-action {
  opacity: 1;
  max-height: 30px;
  margin-top: 14px;
  transform: translateY(0);
}

.community-link {
  color: var(--text-light);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.btn-small {
  padding: 10px 25px;
  font-size: 0.9rem;
}

/* Property Scroll */
.property-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -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-card.is-current {
  border-color: rgba(196, 163, 90, 0.72);
}

.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: opacity 0.4s ease, transform var(--transition);
  opacity: 0;
}

.property-image img.loaded {
  opacity: 1;
}

/* 骨架屏样式 */
.property-image {
  background: linear-gradient(90deg, #1a1a2e 25%, #252540 50%, #1a1a2e 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* 图片加载完成，隐藏骨架屏 */
.property-image img.loaded {
  opacity: 1;
}
.property-image:has(img.loaded) {
  background: transparent;
  animation: none;
}

/* 社区卡片骨架 - 依赖 JS 添加 loaded 类 */
.community-bg {
  background: linear-gradient(90deg, #1a1a2e 25%, #252540 50%, #1a1a2e 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  transition: background 0.3s ease, filter 0.35s ease, transform 0.55s ease;
}
.community-bg.loaded {
  animation: none;
}

.community-bg.loaded.load-failed {
  background-image: linear-gradient(135deg, #1a3a52 0%, #0d1f33 100%) !important;
  background-size: cover;
  background-position: center;
}

/* 房源详情页图片骨架 */
.property-images-grid .property-image-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #1a1a2e 25%, #252540 50%, #1a1a2e 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.property-images-grid .property-image-item:has(img.loaded) {
  background: transparent;
  animation: none;
}

.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);
}

.property-carousel-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 28px;
  margin-top: 18px;
}

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

.property-carousel-status[hidden] {
  display: none;
}

.all-properties-entry {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.properties-directory {
  min-height: calc(100vh - 150px);
  padding-top: 140px;
}

.properties-directory-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.properties-directory-toolbar label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.directory-count {
  margin-bottom: 22px;
  color: var(--text-muted);
}

.properties-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
}

.properties-directory-grid .property-card {
  min-width: 0;
}

@media (max-width: 1100px) {
  .properties-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .properties-directory-toolbar { grid-template-columns: 1fr; }
  .properties-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .properties-directory-grid { grid-template-columns: 1fr; }
}

.property-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.property-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.property-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(232, 232, 232, 0.38);
  transition: width 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.property-dot:hover::before,
.property-dot:focus-visible::before {
  background: rgba(196, 163, 90, 0.75);
}

.property-dot:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
  border-radius: 999px;
}

.property-dot.active::before {
  width: 22px;
  background: var(--accent);
}

.property-dot.edge:not(.active)::before {
  width: 5px;
  height: 5px;
  opacity: 0.6;
}

.property-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.property-counter i {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(196, 163, 90, 0.52);
}

.property-counter span:first-child {
  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 {
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
}

.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 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary-dark) 0%, #0d0d18 52%, var(--primary-dark) 100%);
  padding: clamp(96px, 8vw, 124px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

.about::before {
  content: '';
  position: absolute;
  width: min(52vw, 760px);
  aspect-ratio: 1;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(213, 169, 75, 0.075) 0%, rgba(61, 69, 105, 0.045) 38%, transparent 72%);
  pointer-events: none;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}

.about-content {
  max-width: 540px;
}

.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: 14px;
}

.about-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 14px 18px;
  background: rgba(29, 29, 50, 0.72);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.about-highlight-item:hover {
  border-color: var(--accent);
  transform: translateX(3px);
}

.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-media {
  position: relative;
  margin: 0;
  padding: 9px 9px 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), 0 8px 24px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}

.about-media::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 16% 8% -8%;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.48);
  filter: blur(28px);
}

.about-video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #05050c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.about-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05050c;
}

.about-video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 7px 14px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.16em;
}

.about-video-caption-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
}

.about-video-caption-primary::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(213, 169, 75, 0.42);
}

/* Contact Section */
.contact {
  background: var(--primary-dark);
  scroll-margin-top: 76px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.65fr);
  gap: 48px;
  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: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  column-gap: 16px;
  margin-bottom: 20px;
}

.contact-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.contact-value {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-value a {
  color: var(--accent);
}

.contact-value a:hover {
  text-decoration: underline;
}

.award-showcase {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(210px, 0.78fr) minmax(360px, 1.45fr);
  gap: 24px;
  min-width: 0;
  min-height: 430px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(30, 30, 50, 0.98), rgba(15, 15, 26, 0.96)),
    var(--primary-dark);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.award-showcase::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -170px;
  right: -110px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.2), rgba(196, 163, 90, 0) 68%);
  pointer-events: none;
}

.award-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 0 8px 4px;
}

.award-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--accent-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.award-eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.award-project-title {
  margin-bottom: 4px;
  color: var(--text-light);
  font-family: 'Noto Serif SC', serif;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.award-project-title-en {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.award-intro {
  padding-left: 16px;
  border-left: 1px solid rgba(196, 163, 90, 0.5);
}

.award-intro p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.85;
}

.award-intro p + p {
  margin-top: 12px;
}

.award-intro p[lang='en'] {
  color: var(--text-muted);
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  line-height: 1.65;
}

.award-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}

.award-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.award-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(234, 231, 220, 0.28);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.award-dot.active {
  width: 20px;
  background: var(--accent);
}

.award-dot:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.award-counter {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.award-counter span {
  color: var(--accent-light);
  font-size: 0.9rem;
}

.award-counter i {
  width: 16px;
  height: 1px;
  background: var(--border-color);
}

.award-carousel {
  position: relative;
  min-width: 0;
  height: 374px;
  align-self: center;
  overflow: hidden;
  background: #09090f;
  border: 1px solid rgba(196, 163, 90, 0.38);
  border-radius: 17px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.award-carousel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.award-slides,
.award-slide {
  position: absolute;
  inset: 0;
}

.award-slide {
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(18px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.award-slide.active {
  z-index: 1;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.award-slide::before {
  content: '';
  position: absolute;
  inset: -26px;
  background-image: var(--award-image);
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(0.7);
  opacity: 0.24;
  transform: scale(1.08);
}

.award-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 9, 15, 0.1) 55%, rgba(9, 9, 15, 0.86) 100%);
  pointer-events: none;
}

.award-slide img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 14px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.28));
}

.award-slide figcaption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 8px 10px;
  background: rgba(9, 9, 15, 0.78);
  border: 1px solid rgba(196, 163, 90, 0.22);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  color: var(--text-light);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.award-slide figcaption span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(196, 163, 90, 0.55);
  border-radius: 999px;
  background: rgba(15, 15, 26, 0.72);
  color: var(--accent-light);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  .award-slide {
    transition: none;
  }
}

/* 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;
}

.vi-logo-footer {
  width: 180px;
}

.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);
}

/* Standalone policy / service pages */
.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-bottom: 28px;
  padding: 9px 16px;
  border: 1px solid rgba(196, 163, 90, 0.48);
  border-radius: 999px;
  background: rgba(26, 26, 45, 0.72);
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-back-link span {
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1;
}

.page-back-link:hover,
.page-back-link:focus-visible {
  border-color: var(--accent);
  background: rgba(196, 163, 90, 0.12);
  color: var(--accent-light);
  transform: translateX(-2px);
}

.page-back-link:focus-visible {
  outline: 2px solid rgba(196, 163, 90, 0.36);
  outline-offset: 3px;
}

/* 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: 18px;
}

.modal-community-tabs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.modal-community-tab {
  appearance: none;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-community-tab:hover,
.modal-community-tab:focus-visible {
  border-color: var(--accent);
  color: var(--text-light);
  outline: none;
}

.modal-community-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--primary-dark);
}

.modal-empty {
  grid-column: 1 / -1;
  padding: 35px 20px;
  border: 1px dashed var(--border-color);
  border-radius: 10px;
  color: var(--text-muted);
  text-align: center;
}

.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;
}

.message-content {
  overflow-wrap: anywhere;
}

.message-content p {
  margin: 0;
}

.message-content p + p,
.message-content p + ul,
.message-content p + ol,
.message-content ul + p,
.message-content ol + p {
  margin-top: 0.75em;
}

.message-content ul,
.message-content ol {
  margin: 0.45em 0 0;
  padding-left: 1.35em;
}

.message-content li + li {
  margin-top: 0.35em;
}

.message-content strong {
  font-weight: 650;
  color: inherit;
}

.message-content code {
  padding: 0.08em 0.3em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit;
}

.message-content .message-heading {
  font-weight: 650;
}

.chat-privacy-note {
  margin: 0;
  padding: 8px 14px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.modal-property:focus-visible {
  border-color: var(--accent);
}

.chat-privacy-note a {
  color: var(--accent);
}

.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: var(--primary); /* 图片加载前的占位深色背景 */
}

/* 图片加载完成后触发的渐入动画 */
.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;
}

#adminDashboard {
  width: 100%;
  min-width: 0;
}

/* 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 {
  min-height: 68px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.vi-logo-admin {
  width: 132px;
  max-width: 100%;
}

.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 {
  display: grid;
  gap: 8px;
  padding: 14px 12px 16px;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(7, 10, 22, 0), rgba(7, 10, 22, 0.18));
}

.sidebar-account-action {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-account-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgba(213, 169, 75, 0.8);
}

.sidebar-account-action:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(213, 169, 75, 0.22);
  transform: translateY(-1px);
}

.sidebar-account-action:focus-visible {
  outline: 2px solid rgba(213, 169, 75, 0.72);
  outline-offset: 2px;
}

.sidebar-account-action-logout {
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
}

.sidebar-account-action-logout svg {
  color: rgba(255, 255, 255, 0.46);
}

.sidebar-account-action-logout:hover {
  color: #efb3b3;
  background: rgba(178, 72, 72, 0.08);
  border-color: rgba(210, 102, 102, 0.2);
}

/* 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;
}

.section-helper {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-create-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-create-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  padding: 10px 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.admin-create-btn span {
  font-size: 1.15rem;
  line-height: 1;
}

.admin-create-btn-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 8px 22px rgba(196, 163, 90, 0.18);
}

.admin-create-btn-secondary {
  border: 1px solid rgba(196, 163, 90, 0.42);
  background: rgba(196, 163, 90, 0.08);
  color: var(--accent-light);
}

.admin-create-btn:hover {
  transform: translateY(-1px);
}

.admin-create-btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 10px 26px rgba(196, 163, 90, 0.24);
}

.admin-create-btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(196, 163, 90, 0.14);
}

.admin-layer-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 14px;
}

.admin-layer-heading-community {
  margin-top: 4px;
}

.scenic-admin-heading {
  margin: 0 0 5px;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
}

.admin-layer-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.admin-layer-heading > span {
  flex: 0 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.76rem;
}

.scenic-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
  transition: opacity 160ms ease;
}

.scenic-admin-grid.is-updating {
  opacity: 0.56;
  pointer-events: none;
}

.scenic-admin-card {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 30, 50, 0.98), rgba(23, 23, 39, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.scenic-admin-card:hover,
.scenic-admin-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(196, 163, 90, 0.52);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.scenic-admin-card-media {
  position: relative;
  height: 118px;
  overflow: hidden;
  background: var(--secondary);
}

.scenic-admin-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 22, 0.52) 100%);
  pointer-events: none;
}

.scenic-admin-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.scenic-admin-card:hover .scenic-admin-card-media img {
  transform: scale(1.035);
}

.scenic-admin-card-index {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  min-width: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(8, 8, 18, 0.68);
  color: var(--text-light);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.scenic-admin-card-content {
  padding: 15px 15px 12px;
}

.scenic-admin-card-title {
  margin: 0 0 7px;
  overflow: hidden;
  color: var(--text-light);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenic-admin-card-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.scenic-admin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 49px;
  border-top: 1px solid var(--border-color);
  padding: 8px 10px;
}

.scenic-admin-card-actions {
  display: flex;
  gap: 4px;
}

.scenic-order-controls {
  display: flex;
  gap: 3px;
}

.scenic-order-btn {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.scenic-order-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scenic-order-btn:hover:not(:disabled),
.scenic-order-btn:focus-visible {
  border-color: rgba(196, 163, 90, 0.34);
  background: rgba(196, 163, 90, 0.1);
  color: var(--accent-light);
  outline: none;
}

.scenic-order-btn:disabled {
  opacity: 0.24;
  cursor: not-allowed;
}

.admin-action-btn {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px 8px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}

.admin-action-icon {
  display: inline-grid;
  place-items: center;
}

.admin-action-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-action-btn:hover,
.admin-action-btn:focus-visible {
  border-color: rgba(196, 163, 90, 0.34);
  background: rgba(196, 163, 90, 0.1);
  color: var(--accent-light);
  outline: none;
}

.admin-action-btn-danger {
  color: #b88d92;
}

.admin-action-btn-danger:hover,
.admin-action-btn-danger:focus-visible {
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.09);
  color: #ff8f84;
}

.admin-action-btn-icon {
  width: 32px;
  padding: 5px;
}

.admin-action-btn-icon > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.admin-row-actions {
  white-space: nowrap;
}

.admin-row-actions .admin-action-btn + .admin-action-btn {
  margin-left: 3px;
}

.chat-turn-message {
  min-width: 260px;
  max-width: 520px;
  line-height: 1.75;
  vertical-align: top;
  white-space: normal;
}

.chat-turn-question {
  color: var(--text-light);
  font-weight: 500;
}

.chat-turn-pending {
  color: var(--text-muted);
  font-style: italic;
}

.chat-turn-time {
  width: 150px;
  color: var(--text-muted) !important;
  white-space: nowrap;
  vertical-align: top;
}

.chat-turn-actions {
  width: 88px;
  vertical-align: top;
}

.form-help {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* 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;
}

.admin-login-notice {
  margin: -12px 0 22px;
  padding: 11px 13px;
  border: 1px solid rgba(210, 169, 81, 0.42);
  border-radius: 8px;
  background: rgba(210, 169, 81, 0.08);
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.65;
}

.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 shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@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);
}

.scenic-image-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scenic-image-field-heading .form-label {
  margin-bottom: 0;
}

.scenic-image-mode {
  border: 1px solid rgba(196, 163, 90, 0.42);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--accent-light);
  background: rgba(196, 163, 90, 0.08);
  font-size: 0.72rem;
}

.scenic-image-preview-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--primary-dark);
}

.scenic-image-preview-frame img {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.scenic-image-preview-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(9, 9, 18, 0.72);
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
}

/* 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 */
section[id] {
  scroll-margin-top: 76px;
}

@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;
  }

  .contact-info {
    max-width: 520px;
  }

  .award-showcase {
    grid-template-columns: minmax(220px, 0.8fr) minmax(380px, 1.4fr);
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .modal-properties {
    grid-template-columns: 1fr;
  }

  .scenic-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-wrapper {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .scenic-admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-section .section-header {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .admin-create-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .admin-layer-heading {
    align-items: flex-start;
  }

  .admin-layer-heading > span {
    margin-top: 2px;
  }

  .admin-table {
    overflow-x: auto;
  }

  .admin-table table {
    min-width: 780px;
  }

  .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;
  }

  .nav-menu .admin-link {
    width: 44px;
    height: 44px;
  }

  .nav-menu .admin-link-icon {
    width: 19px;
    height: 19px;
  }

  .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: 36px;
  }

  .about-media {
    order: -1;
    width: min(100%, 680px);
    margin-inline: auto;
    padding: 6px 6px 0;
    border-radius: 18px;
  }

  .about-video-shell {
    border-radius: 12px;
  }

  .about-video-caption {
    padding: 11px 5px 12px;
    font-size: 0.65rem;
  }

  .about-title {
    font-size: 1.6rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .contact {
    padding: 64px 0;
  }

  .contact-wrapper {
    gap: 34px;
  }

  .contact-info {
    max-width: none;
  }

  .award-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px;
  }

  .award-copy {
    padding: 4px 2px 0;
  }

  .award-project-title {
    font-size: 1.6rem;
  }

  .award-intro p {
    font-size: 0.88rem;
  }

  .award-intro p[lang='en'] {
    font-size: 0.74rem;
  }

  .award-controls {
    margin-top: 0;
    padding-top: 24px;
  }

  .award-carousel {
    width: 100%;
    height: min(112vw, 430px);
  }

  .award-slide figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 7px;
    font-size: 0.7rem;
  }

  .award-slide figcaption span {
    padding: 3px 7px;
    font-size: 0.62rem;
  }
}

/* ========== 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;
  }
}
/* Administrator access and website settings */
.admin-section-intro { color: var(--text-muted); font-size: .88rem; line-height: 1.7; margin-top: 8px; max-width: 720px; }
.admin-subsection-title { color: var(--text-primary); font-size: 1rem; margin: 28px 0 12px; }
.admin-settings-card { max-width: 920px; padding: 26px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-secondary); }
.admin-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.admin-settings-wide { grid-column: 1 / -1; }
.admin-status-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; border: 1px solid rgba(196,163,90,.35); }
.admin-status-pill.active { color: #c9e6c9; background: rgba(61,121,73,.16); border-color: rgba(88,158,101,.36); }
.admin-status-pill.disabled { color: #e3a8ae; background: rgba(155,54,67,.14); border-color: rgba(184,76,88,.34); }
.admin-current-badge { margin-left: 6px; color: var(--accent-light); font-size: .72rem; }
.admin-management-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.admin-management-action { border: 0; padding: 3px 0; background: transparent; color: var(--text-secondary); cursor: pointer; font: inherit; font-size: .8rem; }
.admin-management-action:hover { color: var(--accent-light); }
.admin-management-action.danger { color: #d7828c; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; }
.invite-result { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-color); }
.invite-result textarea { word-break: break-all; }
.admin-danger-note { color: #e7c7ca; line-height: 1.7; padding: 12px 14px; margin: 0 0 18px; border-left: 2px solid #b85a66; background: rgba(155,54,67,.1); }
.chat-delete-dialog { max-width: 480px; padding: 34px; }
.chat-delete-kicker { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; margin-bottom: 15px; border: 1px solid rgba(184,76,88,.38); border-radius: 999px; color: #e3a8ae; background: rgba(155,54,67,.12); font-size: .76rem; letter-spacing: .08em; }
.chat-delete-copy { margin: 12px 0 0; color: var(--text-secondary); line-height: 1.75; }
.chat-delete-status { min-height: 1.5em; margin: 14px 0 0; color: #e3a8ae; font-size: .88rem; line-height: 1.6; }
.chat-delete-actions { justify-content: flex-end; }
.chat-delete-confirm { border: 1px solid rgba(205,104,116,.65); background: rgba(155,54,67,.2); color: #f1d9dc; }
.chat-delete-confirm:hover, .chat-delete-confirm:focus-visible { border-color: #d7828c; background: #a23e4b; color: #fff; }
.chat-delete-confirm:disabled { cursor: wait; opacity: .58; }
@media (max-width: 720px) { .admin-settings-grid { grid-template-columns: 1fr; } .admin-settings-wide { grid-column: auto; } }
